/* ==========================================================================
   SISTEMA TIPOGRAFICO BROCCOLINI (caricato per ultimo da tutte le pagine)
   - Titoli (hero inclusi): Cormorant Garamond 400 MAIUSCOLO; frase hero in Outfit 400
   - Titoli:          Cormorant Garamond 400. MAIUSCOLO solo per i titoli-manifesto
                      brevi; elenchi e titoli-frase in maiuscole/minuscole
   - Paragrafi narrativi e testi di supporto: Outfit 350 (come il riferimento)
   - Etichette, sottotitoli brevi, bottoni, legale: Space Mono MAIUSCOLO spaziato
   - Outfit resta solo per hero e campi dei form
   Il prefisso "body" serve a vincere sulle regole inline delle pagine.
   ========================================================================== */

:root {
    --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --mono: 'Space Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
    --sans: 'Outfit', system-ui, sans-serif;
    --ink-soft: #68635d;
    --ink-faint: #8c8c8c;
    --fd: var(--serif); /* font "display" delle landing */
}

/* ── LOGO ─────────────────────────────────────────────────────────────── */
body .logo-name {
    font-family: var(--serif); font-weight: 500;
    font-size: clamp(1.6rem, 2.1vw, 2.25rem); letter-spacing: 0.14em; line-height: 0.95;
    padding-left: 0.14em; /* compensa lo spazio dopo l'ultima lettera: resta centrato */
}
body .logo-sub { font-family: var(--mono); font-weight: 400; font-size: 0.6rem; letter-spacing: 0.5em; padding-left: 0.5em; }
body .logo-rule { margin: 0.35rem 0 0.3rem; }
body :is(.footer-logo, .foot-logo, .lp-logo) .logo-name { font-family: var(--serif); font-weight: 500; }
body :is(.footer-logo, .foot-logo, .lp-logo) .logo-sub { font-family: var(--mono); font-weight: 400; }
body :is(.footer-logo, .foot-logo) .logo-name { font-size: clamp(2.4rem, 4vw, 3.4rem); }
@media (min-width: 961px) { body .nav-bar { height: 84px; } }

/* ── HERO (home): il titolo segue lo stile di TUTTI i titoli (Cormorant MAIUSCOLO);
   la frase sotto resta in Outfit come il testo hero del riferimento ── */
body :is(.hero-title, .hero-usp) { font-style: normal; color: #fff; text-shadow: 0 4px 12px rgba(0,0,0,0.25); }
body .hero-title {
    font-family: var(--serif); font-weight: 400; text-transform: uppercase;
    font-size: clamp(2.6rem, 6.2vw, 5.8rem); line-height: 0.95; letter-spacing: -0.02em;
}
body .hero-usp { font-family: var(--sans); font-weight: 400; text-transform: none; }
body .hero-usp {
    margin-top: clamp(1rem, 2vh, 1.5rem); max-width: clamp(280px, 45vw, 600px);
    font-size: clamp(1.2rem, 2.5vw, 1.8rem); line-height: 1.35; letter-spacing: 0; text-wrap: balance;
}
@media (min-width: 961px) {
    body .hero-left { max-width: 76%; }
    body .hero-usp { max-width: none; }
}
@media (max-width: 768px) {
    body .hero-title { font-size: clamp(2.2rem, 9.5vw, 3rem); }
    body .hero-usp { font-size: clamp(1.15rem, 5vw, 1.45rem); max-width: 100%; }
}

/* ── HERO della home inglese: stessa impostazione della home italiana ──
   (via le parole giganti agganciate alla foto e l'evidenziatore oro) */
body .hero-dist, body .hero-cta--desk, body .tl-marker { display: none; }
body :is(.tagline-line-1, .tagline-line-2) { font-weight: 400; }
body .tl-word, body .tl-word.lit { color: inherit; text-transform: inherit; }
body .hero-usp strong { font-weight: 500; }
body .hero:has(.hero-dist) .hero-left { justify-content: flex-start; }
body .hero:has(.hero-dist) .hero-left .hero-cta { margin-top: auto; align-self: flex-start; }
@media (min-width: 961px) {
    body .hero:has(.hero-dist) { aspect-ratio: auto; min-height: 100vh; padding-top: 80px; }
    body .hero:has(.hero-dist) .hero-left { display: flex; }
}

/* ── HERO delle pagine interne e delle landing ────────────────────────── */
body .page-title {
    font-family: var(--serif); font-weight: 400; font-style: normal; text-transform: uppercase;
    font-size: clamp(2.8rem, 6.4vw, 5.6rem); line-height: 0.95; letter-spacing: -0.02em;
}
body .page-title em { font-style: normal; color: inherit; }
body :is(header.hero h1, .banner h1) {
    font-family: var(--serif); font-weight: 400; font-style: normal; text-transform: uppercase;
    letter-spacing: -0.02em; line-height: 0.98;
}
body header.hero h1 { font-size: clamp(2.3rem, 4.6vw, 4.2rem); }
body .banner h1 { font-size: clamp(2rem, 3.8vw, 3.4rem); }
body :is(header.hero h1, .banner h1) em { font-style: normal; color: inherit; }
body :is(header.hero .hero-sub, .banner-sub) {
    font-family: var(--sans); font-weight: 400; text-transform: none; letter-spacing: 0;
    font-size: clamp(1.1rem, 1.8vw, 1.45rem); line-height: 1.4;
}

/* "La nostra forza è nei dettagli" (titolo su foto): come il titolo hero */
body .det-title { font-family: var(--serif); font-weight: 400; font-style: normal; text-transform: uppercase; letter-spacing: -0.02em; line-height: 0.95; }

/* ── SEZIONE DETTAGLIO editoriale (.dtl), ricalcata sulla sezione studio del riferimento ── */
body .dtl-title {
    font-family: var(--serif); font-weight: 400; font-style: normal; text-transform: uppercase;
    font-size: clamp(3.2rem, 7vw, 7.5rem); line-height: 1.02; letter-spacing: -0.02em;
}
body .dtl-text {
    font-family: var(--sans); font-weight: 350; text-transform: none; color: #2b2b2b;
    font-size: clamp(1.05rem, 1.35vw, 1.35rem); line-height: 1.5; letter-spacing: -0.008em;
}
body .dtl-aside-text {
    font-family: var(--mono); font-weight: 400; text-transform: uppercase; color: var(--ink-faint);
    font-size: clamp(0.75rem, 0.8vw, 0.85rem); line-height: 1.45; letter-spacing: 0.07em;
}
body .dtl-lab {
    font-family: var(--mono); font-weight: 400; text-transform: uppercase;
    font-size: clamp(0.6rem, 1.9cqw, 0.75rem); letter-spacing: 0.1em; line-height: 1;
}
@media (max-width: 1024px) {
    body .dtl-title { font-size: clamp(2.6rem, 11vw, 4.6rem); }
    body .dtl-text { font-size: clamp(1.16rem, 4.4vw, 1.58rem); line-height: 1.32; }
}

/* ── TITOLI SERIF ─────────────────────────────────────────────────────── */
/* manifesto brevi: MAIUSCOLO */
body :is(.section-title, .ba-title, .stats-title, .portfolio-title, .process-title, .cta-title,
         .form-title, .about-cta-title, .ask-title,
         .benefits h2, .zpa-copy h2, .process h2:not(.process-title), .lf-left h2, .cf-body h2) {
    font-family: var(--serif); font-weight: 400; font-style: normal; text-transform: uppercase;
    letter-spacing: -0.02em; line-height: 0.95;
}
/* titoli di secondo livello (voci, fasi, card): anche loro MAIUSCOLO */
body :is(.service-title, .flow-step, .b-item h3, .step, .cfg-name, .pf-cap h3) {
    font-family: var(--serif); font-weight: 400; font-style: normal; text-transform: uppercase;
    letter-spacing: -0.01em; line-height: 1;
}
/* frasi intere (domande FAQ, frase-manifesto di Chi siamo): maiuscole/minuscole */
body :is(.faq-q, .about-lead) {
    font-family: var(--serif); font-weight: 400; font-style: normal; text-transform: none;
    letter-spacing: -0.01em;
}
/* parole evidenziate: niente corsivo né oro (titoli monocolore e monostile) */
body :is(.section-title, .portfolio-title, .process-title, .cta-title, .form-title,
         .about-cta-title, .ask-title, .about-lead, .page-title) em { font-style: normal; color: inherit; }

/* dimensioni: il peso sottile chiede più corpo */
body :is(.section-title, .stats-title, .process-title) { font-size: clamp(2.3rem, 4.4vw, 4rem); }
body .portfolio-title { font-size: clamp(2.3rem, 4.4vw, 4rem); }
body :is(.benefits h2, .zpa-copy h2, .process h2:not(.process-title), .lf-left h2, .cf-body h2, .form-title, .about-cta-title, .ask-title) {
    font-size: clamp(2.1rem, 3.8vw, 3.4rem);
}
body .det-copy { max-width: 62%; }
body .faq-q { font-size: clamp(1.35rem, 2vw, 1.65rem); line-height: 1.25; }
body :is(.b-item h3, .cfg-name) { font-size: clamp(1.35rem, 1.8vw, 1.6rem); line-height: 1.2; }
body .step { font-size: clamp(1.35rem, 2vw, 1.7rem); }
body .pf-cap h3 { font-size: 1.35rem; }
body .about-lead { font-size: clamp(1.9rem, 3.2vw, 2.9rem); line-height: 1.15; }

/* numeri */
body :is(.figure-num, .stat-value, .figure-suffix, .stat .n, .stat .n sup, .about-mark-num, .b-num) {
    font-family: var(--serif); font-weight: 400; letter-spacing: -0.03em;
}

/* ── TESTO NARRATIVO (Outfit 350, come i paragrafi del riferimento e il testo dell'hero) ── */
body :is(.det-text-copy p, .det-intro, .about-p, .faq-a p, .benefits .lead, .lf-left p, .cf-body p, .shop .hero-sub) {
    font-family: var(--sans); font-weight: 350; letter-spacing: -0.008em; text-transform: none; color: #2b2b2b;
}
/* paragrafi narrativi principali */
body :is(.det-text-copy p, .det-intro, .about-p) { font-size: clamp(1.25rem, 1.65vw, 1.62rem); line-height: 1.32; }
/* testi di supporto (risposte, introduzioni delle landing) */
body :is(.faq-a p, .benefits .lead, .lf-left p, .cf-body p, .shop .hero-sub) { font-size: clamp(1.05rem, 1.35vw, 1.35rem); line-height: 1.5; }
body :is(.about-p, .faq-a p, .det-text-copy p) strong { font-weight: 500; }
/* rientro della prima riga sui testi narrativi lunghi, come nel riferimento (solo desktop) */
@media (min-width: 961px) {
    body :is(.det-text-copy p:first-child, .about-lead + .about-p) { text-indent: clamp(100px, 12vw, 180px); }
}
body .footer-tagline { font-family: var(--sans); font-weight: 350; letter-spacing: -0.008em; font-size: 1.15rem; line-height: 1.4; }
body :is(.contact-value, .lfc-val, .ask-success-title, .form-success-title) {
    font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em;
}
body .contact-value { font-size: clamp(1.7rem, 2.6vw, 2.3rem); }
body .lfc-val { font-size: 1.35rem; }
body .nav-mobile ul li a { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; }

/* ── ETICHETTE, SOTTOTITOLI BREVI, BOTTONI (monospace maiuscolo) ──────── */
body :is(.service-desc, .ba-sub, .pf-desc, .figure-label, .process-intro, .ask-sub, .contact-note,
         .process .lead, .b-item p, .stat .l,
         .cfg-dim, .cfg-note, .cfg-inphoto, .cfg-summary-txt) {
    font-family: var(--mono); font-weight: 400; font-size: clamp(0.75rem, 0.8vw, 0.85rem);
    line-height: 1.6; letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-soft);
}
body :is(.anno-label, .ba-label, .ba-hint, .pf-hint, .zp-hint, .zpa-label, .gallery-hint, .page-eyebrow,
         .contact-label, .form-label, .fg label, .lfc-lab, .about-mark-label, .footer-col-title,
         .hero-trust, .hero-photo-badge, .hero-thumb-lab, .hero-thumb, .step-sep, .cfg-qty button, .cfg-qty output,
         .hero-cta, .hero-link, .ba-cta, .cta-btn, .mobile-cta, .fab-action, .btn, .btn-contact, .btn-submit,
         .submit-btn, .cfg-cta, .about-cta a, .lp-nav-call, .lang-opt, .lang-sep,
         .footer-copy, .foot-copy, .consent, .form-privacy, .form-consent, .ask-success-sub) {
    font-family: var(--mono); font-weight: 400; text-transform: uppercase; letter-spacing: 0.08em;
}
body #pageCurtain .pc-mark { font-family: var(--mono); font-weight: 400; letter-spacing: 0.22em; }
body .nav-mobile .mobile-cta { font-family: var(--mono); font-weight: 400; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.85rem; }
/* conferma invio form: gli stili inline delle pagine vanno superati */
body #formSuccess p:first-child { font-family: var(--serif) !important; font-weight: 400 !important; font-size: clamp(1.9rem, 3vw, 2.4rem) !important; }
body #formSuccess p:last-child { font-family: var(--mono); font-weight: 400 !important; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.75rem !important; }
body :is(.hero-cta, .hero-link, .ba-cta, .cta-btn, .mobile-cta, .btn, .btn-contact, .btn-submit,
         .submit-btn, .cfg-cta, .about-cta a) { font-size: 0.78rem; }
body .fab-action { font-size: 0.72rem; }
body .anno-label { letter-spacing: 0.1em; }
body :is(.footer-copy, .foot-copy, .consent, .form-privacy) { font-size: 0.7rem; line-height: 1.6; }
/* link del footer in Outfit, come footer__link del riferimento (il legale resta in mono) */
body .footer-links a { font-family: var(--sans); font-weight: 350; text-transform: none; letter-spacing: 0; font-size: 0.95rem; }
body .figure-label { color: var(--ink-faint); font-size: 0.72rem; }
/* email: minuscolo e spezzabile, altrimenti in monospace allarga la colonna su mobile */
body a[href^="mailto:"]:is(.footer-links a, .lfc-val, .contact-value, .foot-copy a) { text-transform: none; overflow-wrap: anywhere; }
body .footer-grid > * { min-width: 0; }
/* su mobile il logo spaziato non sta in mezza colonna: gli do tutta la riga */
@media (max-width: 960px) { body .footer-grid > *:has(.footer-logo) { grid-column: 1 / -1; } }
body .pf-cap p { font-family: var(--mono); font-weight: 400; text-transform: uppercase; letter-spacing: 0.07em; color: rgba(255,255,255,0.82); font-size: 0.68rem; }
body header.hero .hero-trust { color: rgba(255,255,255,0.82); font-size: 0.72rem; }
body .service-desc { max-width: 40ch; }
body .ba-sub { max-width: 34ch; }
body :is(.pf-desc, .process-intro) { max-width: 52ch; margin-left: auto; margin-right: auto; }
/* i campi dei form restano in Outfit: è testo che scrive l'utente */
body :is(input, textarea, select, option) { font-family: var(--sans); }

/* ── DESKTOP: titoli e sottotitoli su una riga dove lo spazio lo consente ── */
@media (min-width: 961px) {
    body :is(.service-desc, .ba-sub, .pf-desc, .process-intro, .figure-label) { max-width: none; }
    body .figure-label { font-size: 0.68rem; white-space: nowrap; }
    body .ba-split { grid-template-columns: minmax(420px, 520px) 1fr; }
    body .pf-head { max-width: none; }
    body :is(.stats-title, .portfolio-title, .cta-title, .section-title) { max-width: none; white-space: nowrap; }
    body .section-title { font-size: clamp(2.1rem, 3.3vw, 3.6rem); }
    body :is(.portfolio-title, .cta-title) { font-size: clamp(2.3rem, 3.6vw, 3.8rem); }
    body .stats-title { font-size: clamp(2.3rem, 3.6vw, 4rem); }
    body .cta-title br { display: none; }
    body .cta-title em::before { content: ' '; }
}

/* ── MOBILE: bottoni lunghi su una riga ───────────────────────────────── */
@media (max-width: 600px) {
    body :is(.cta-btn, .ba-cta, .hero-cta) { font-size: 0.7rem; letter-spacing: 0.05em; white-space: nowrap; max-width: 100%; }
    body .cta-btn { padding-left: 1.6rem; padding-right: 1.6rem; }
    body .cta-section { padding-left: 1.5rem; padding-right: 1.5rem; }
}
/* telefoni stretti (Android da 360 px): se non c'è spazio il testo va a capo invece di
   allargare la pagina e creare lo scroll orizzontale */
@media (max-width: 380px) {
    body :is(.cta-btn, .ba-cta, .hero-cta) { white-space: normal; text-align: center; line-height: 1.4; }
}

/* ── MOBILE: tocco comodo e niente zoom indesiderato (iPhone e Android) ── */
@media (max-width: 960px) {
    /* area di tocco ≥ 44 px senza cambiare l'aspetto: si allarga solo la zona cliccabile */
    body .nav-lang a { position: relative; }
    body .nav-lang a::after { content: ''; position: absolute; inset: -13px -8px; }
    body .nav-hamburger { position: relative; }
    body .nav-hamburger::after { content: ''; position: absolute; inset: -5px; }
    body .lp-nav-call { min-height: 44px; display: inline-flex; align-items: center; }
    body .cfg-qty button { min-width: 44px; min-height: 44px; }
    body a.contact-value { display: flex; align-items: center; min-height: 44px; }
    /* iPhone ingrandisce la pagina se un campo ha il testo sotto 16 px: lo evitiamo */
    body :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea) { font-size: 16px; }
    body input[type="checkbox"] { width: 22px; height: 22px; flex: none; }
    /* footer: email su una riga sola, colonne in pila */
    body .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    body a[href^="mailto:"]:is(.footer-links a, .foot-copy a) { overflow-wrap: normal; word-break: normal; }
    /* spazio in fondo così il pulsante flottante non copre privacy e cookie policy */
    body footer { padding-bottom: 10.5rem; }
}
