/* =========================================
   1. SETUP & VARIABLES
   ========================================= */

/* Import Fonts:
   - Playfair Display: Serif editoriale, alto contrasto (Headlines)
   - Inter: Clean sans-serif, alta leggibilità (Body)
*/
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500&family=Playfair+Display:ital,wght@0,400;0,600;1,400&display=swap');

:root {
    /* --- COLOR PALETTE --- */
    --c-white: #FFFFFF;        /* Primary: Pure White */
    --c-bg-soft: #F3F4F6;      /* Primary: Soft Cloud */
    
    --c-identity-lilac: #c8a6f2; /* Identity: Muted Lilac (Dividers, Backgrounds) */
    --c-identity-blue: #87cdea;  /* Identity: Dusty Blue (Links, Hover, Accents) */
    
    --c-text: #2A2A2A;         /* Text: Soft Charcoal */
    --c-text-light: #6B7280;   /* Secondary text for less visual weight */

    /* --- TYPOGRAPHY --- */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    /* --- SPACING & LAYOUT --- */
    --container-width: 1200px;
    --header-height: 90px;
    --spacing-section: 8rem; /* Molto respiro tra le sezioni */
}

/* =========================================
   2. RESET & GLOBAL STYLES
   ========================================= */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--c-white);
    color: var(--c-text);
    font-family: var(--font-body);
    line-height: 1.7; /* Line-height generoso per leggibilità */
    -webkit-font-smoothing: antialiased;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul, ol {
    list-style: none;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.visually-hidden {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

.text-center { text-align: center; }

/* =========================================
   3. TYPOGRAPHY SYSTEM
   ========================================= */

h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 400; /* Regular weight per eleganza, non bold pesante */
    line-height: 1.2;
    color: var(--c-text);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
}

h2 {
    font-size: clamp(2rem, 3vw, 2.5rem);
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

p {
    font-weight: 300;
    margin-bottom: 1.5rem;
    max-width: 60ch; /* Limite larghezza per leggibilità ottimale */
}

/* =========================================
   4. UI ELEMENTS & BUTTONS
   ========================================= */

/* Pulsanti: forme precise, nessun arrotondamento eccessivo */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--c-text); /* Charcoal */
    color: var(--c-white);
    border-color: var(--c-text);
}

.btn-primary:hover {
    background-color: var(--c-identity-blue); /* Dusty Blue hover */
    border-color: var(--c-identity-blue);
    color: var(--c-white);
}

.btn-secondary {
    background-color: transparent;
    color: var(--c-text);
    border-bottom: 1px solid var(--c-identity-lilac); /* Lilla underline */
    padding: 0.5rem 0; /* Stile link testuale */
}

.btn-secondary:hover {
    color: var(--c-identity-blue);
    border-color: var(--c-identity-blue);
}

/* =========================================
   5. HEADER & NAVIGATION
   ========================================= */

.site-header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    background-color: rgba(255, 255, 255, 0.95); /* Leggera trasparenza */
    border-bottom: 1px solid var(--c-bg-soft);
    z-index: 100;
}

.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-family: var(--font-heading); /* Serif */
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.15em; /* Spaziatura ampia */
    color: var(--c-text);
    font-weight: 400;
}

.nav-list {
    display: none; /* Mobile first hidden */
}

@media (min-width: 900px) {
    .nav-list {
        display: flex;
        gap: 3rem;
    }
    
    .nav-list a {
        font-size: 0.9rem;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        font-weight: 400;
    }

    .nav-list a:hover {
        color: var(--c-identity-blue); /* Hover Blue */
    }
}

/* =========================================
   6. HERO SECTION
   ========================================= */

.hero {
    padding: 4rem 0 var(--spacing-section);
    /* Nessun background color, clean white */
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

.eyebrow {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--c-text-light);
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--c-text-light);
    margin-bottom: 2.5rem;
    font-family: var(--font-heading);
    font-style: italic;
}

.hero-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Nessun effetto, nessuna ombra */
}

@media (min-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr 0.9fr;
        gap: 6rem;
    }
    
    /* Spostare l'ordine per avere l'immagine a destra */
    .hero-content { order: 1; }
    .hero-image-wrapper { order: 2; }
}

/* =========================================
   7. SOCIAL PROOF
   ========================================= */

.social-proof {
    background-color: var(--c-bg-soft); /* Soft Cloud background */
    padding: 4rem 0;
}

.trust-quote {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 2rem;
    color: var(--c-text);
}

.trust-badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--c-text-light);
}

.badge span {
    color: var(--c-identity-lilac); /* Lilla accent */
    margin-right: 0.5rem;
}

/* =========================================
   8. SERVICES
   ========================================= */

.services {
    padding: var(--spacing-section) 0;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.service-card {
    border-top: 1px solid var(--c-identity-lilac); /* Lilla Divider */
    padding-top: 2rem;
}

.service-details li {
    margin-bottom: 0.5rem;
    color: var(--c-text-light);
    font-weight: 300;
}

.services-cta-wrapper {
    text-align: center;
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 3rem;
    }
}

/* =========================================
   9. PORTFOLIO
   ========================================= */

.portfolio {
    padding-bottom: var(--spacing-section);
}

.section-header {
    margin-bottom: 4rem;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem; /* Spaziatura pulita tra immagini */
}

.portfolio-item img {
    width: 100%;
    aspect-ratio: 4/5; /* Formato verticale elegante */
    object-fit: cover;
    margin-bottom: 1rem;
    /* Nessun filtro aggressivo */
}

.caption {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--c-text-light);
}

/* =========================================
   10. APPROACH
   ========================================= */

.approach {
    background-color: var(--c-bg-soft);
    padding: var(--spacing-section) 0;
}

.process-steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    counter-reset: steps;
}

.step-item {
    padding-left: 2rem;
    border-left: 1px solid var(--c-identity-lilac); /* Linea guida Lilla */
}

.step-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--c-identity-lilac); /* Numero in Lilla */
    line-height: 1;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .process-steps {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* =========================================
   11. ABOUT SECTION
   ========================================= */

.about {
    padding: var(--spacing-section) 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image img {
    /* Foto piccola o ritratto soft */
    max-width: 300px;
    margin: 0 auto;
    border-radius: 0; /* Squadrata per rigore */
}

@media (min-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr 2fr; /* Immagine più piccola, più spazio al testo */
    }
    .about-image img { margin: 0; }
}

/* =========================================
   12. TESTIMONIALS
   ========================================= */

.testimonials {
    padding-bottom: var(--spacing-section);
    text-align: center; /* Quote centrata */
}

.quote-card blockquote p {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    line-height: 1.4;
    font-style: italic;
    margin: 0 auto 2rem;
    max-width: 800px; /* Evita righe troppo lunghe */
}

.quote-card figcaption {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--c-text-light);
}

/* =========================================
   13. FINAL CTA & FOOTER
   ========================================= */

.cta-final {
    padding: 6rem 0;
    background-color: var(--c-bg-soft);
}

.action-wrapper {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.microcopy {
    font-size: 0.8rem;
    color: var(--c-text-light);
    margin-top: 0.5rem;
}

.site-footer {
    padding: 3rem 0;
    font-size: 0.85rem;
    color: var(--c-text-light);
    border-top: 1px solid var(--c-bg-soft);
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: center;
}

.footer-links a {
    margin: 0 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-links a:hover {
    color: var(--c-identity-blue);
}

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
    
    .footer-links a { margin: 0 0 0 2rem; }
}