/* Reset e box-sizing */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Variabili CSS */
:root {
    --yellow: #FFD966;
    --text-dark: #000000;
    --text-gray: #666666;
    --width-50: 50%;
    --width-70: 70%;
    --width-100: 100%;
    --spacing-small: 1rem;
    --spacing-medium: 1.5rem;
    --padding-medium: 3rem 1.5rem;
    --spacing-large: 2rem;
    --padding-xl: 6rem 0;
    --spacing-xl: 3rem;
    --gap: 3rem;
}

/* Typography */
body {
    font-family: 'IBM Plex Sans Condensed', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #FEFBF3;
}

h1, em, a {
    font-family: 'Gelasio', serif;
    font-style: italic;
}

/* Links */
a {
    color: inherit;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: var(--yellow);
    text-underline-offset: 3px;
    text-decoration-thickness: 2px;
    transition: all 0.2s ease;
}

a:hover {
    text-decoration-thickness: 3px;
}

/* Emphasis */
em {
    font-weight: 600;
}

/* Container */
.container {
    max-width: var(--width-100);
    margin: auto;
    padding: var(--padding-medium);
}

/* Hero Section */
.hero-section {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-large);
    align-items: flex-start;
}

/* Header Section - Mobile First */
.header-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-medium);
    width: 100%;
}

/* Image Container */
.image-container {
    align-self: flex-start;
}

.profile-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    background-color: var(--yellow);
    display: block;
}

/* Title Section */
.title-section {
    align-self: flex-start;
}

.greeting {
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 0.25rem;
    color: var(--text-dark);
}

.name {
    font-size: 2.5rem;
    font-weight: 400;
    line-height: 1.2;
    color: var(--text-dark);
}

/* Content */
.content {
    width: var(--width-100);
    align-self: flex-start;
}

.content p {
    margin-bottom: var(--spacing-small);
    font-size: 1rem;
    line-height: 1.7;
}

.content p:last-child {
    margin-bottom: 0;
}

/* Desktop Layout */
@media (min-width: 768px) {
    .container {
        width: var(--width-70);
        padding: var(--padding-xl);
    }
    
    .hero-section {
        gap: var(--spacing-xl);
    }
    
    /* Header section diventa orizzontale in desktop */
    .header-section {
        flex-direction: row;
        align-items: center;
        gap: var(--spacing-large);
    }
    
    .image-container {
        flex-shrink: 0;
    }
    
    .profile-image {
        width: 180px;
        height: 180px;
    }
    
    .title-section {
        flex: 1;
        align-self: center;
    }
    
    .greeting {
        font-size: 1.5rem;
    }
    
    .name {
        font-size: 3.5rem;
    }
    
    .content p {
        font-size: 1.1rem;
        margin-bottom: var(--spacing-medium);
    }
}

/* Large Desktop */
@media (min-width: 1024px) {

    .header-section {
        gap: var(--gap);
    }
    
    .profile-image {
        width: 200px;
        height: 200px;
    }
    
    .greeting {
        font-size: 1.75rem;
    }
    
    .name {
        font-size: 4rem;
    }


    
}

/* Very Large Desktop */
@media (min-width: 1280px) {

    .container {
        max-width: var(--width-50);
    }

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    a {
        transition: none;
        animation: none;
    }
}

/* Focus states */
a:focus {
    outline: 2px solid var(--yellow);
    outline-offset: 2px;
}