/**
 * ============================================================================
 *  GenQ Website CMS - Sistema di gestione contenuti e generazione statica
 * ============================================================================
 *
 *  Copyright (c) 2026 Multisoft S.r.l. - www.multisoft.it
 *  Tutti i diritti riservati / All rights reserved.
 *
 * ----------------------------------------------------------------------------
 *  ITALIANO
 * ----------------------------------------------------------------------------
 *
 *  Il presente software, comprensivo del codice sorgente, della struttura,
 *  dell'architettura, della documentazione e di ogni componente accessorio, è
 *  opera dell'ingegno di Multisoft S.r.l. ed è protetto dalla Legge 22 aprile
 *  1941 n. 633 e successive modifiche, che all'art. 2 comma 8 e agli artt.
 *  64-bis e seguenti - introdotti dal D.Lgs. 29 dicembre 1992 n. 518 in
 *  attuazione della Direttiva 91/250/CEE, oggi Direttiva 2009/24/CE -
 *  equipara i programmi per elaboratore alle opere letterarie.
 *
 *  La tutela è altresì riconosciuta a livello internazionale dalla Convenzione
 *  di Berna per la protezione delle opere letterarie e artistiche e dal
 *  Trattato OMPI sul diritto d'autore (WCT, 1996), art. 4.
 *
 *  QUESTO SOFTWARE NON È RILASCIATO SOTTO LICENZA LIBERA O OPEN SOURCE.
 *  Non si applicano GPL, MIT, Apache, BSD o altre licenze OSI-approved.
 *
 *  LICENZA D'USO
 *  Il software è concesso in licenza d'uso perpetua, non esclusiva e non
 *  trasferibile, limitatamente all'esercizio del sito web gen-q.org da parte
 *  del licenziatario. Il licenziatario può utilizzare il software, accedere al
 *  codice sorgente, studiarne il funzionamento, effettuare copie di sicurezza e
 *  apportare le modifiche necessarie all'uso previsto, nei limiti dei diritti
 *  inderogabili riconosciuti all'utente legittimo dall'art. 64-ter L. 633/1941.
 *
 *  SONO VIETATI, salvo previo consenso scritto di Multisoft S.r.l.:
 *   - la cessione, la sublicenza, il noleggio o la distribuzione a terzi, a
 *     qualsiasi titolo, del codice sorgente o di sue porzioni;
 *   - la commercializzazione del software o di opere da esso derivate;
 *   - il riutilizzo dell'architettura o dei moduli per la realizzazione di
 *     prodotti destinati a soggetti diversi dal licenziatario;
 *   - la rimozione, l'alterazione o l'occultamento delle presenti note di
 *     copyright e di ogni altro avviso di titolarità presente nei sorgenti.
 *
 *  La violazione di quanto sopra comporta la decadenza della licenza e
 *  l'applicazione delle sanzioni civili e penali previste dagli artt. 156 e
 *  seguenti e 171-bis L. 633/1941.
 *
 *  Il software è fornito "così com'è". Multisoft S.r.l. non presta garanzie
 *  ulteriori rispetto a quanto espressamente pattuito e non risponde di danni
 *  derivanti da modifiche apportate da terzi.
 *
 * ----------------------------------------------------------------------------
 *  ENGLISH
 * ----------------------------------------------------------------------------
 *
 *  This software, including its source code, structure, architecture,
 *  documentation and all ancillary components, is an original work authored by
 *  Multisoft S.r.l. and is protected under Italian Copyright Law (Legge
 *  633/1941, as amended by Legislative Decree 518/1992 implementing Directive
 *  91/250/EEC, now Directive 2009/24/EC on the legal protection of computer
 *  programs), which affords computer programs the same protection as literary
 *  works. International protection applies under the Berne Convention and the
 *  WIPO Copyright Treaty (1996), art. 4.
 *
 *  THIS SOFTWARE IS NOT RELEASED UNDER ANY FREE OR OPEN SOURCE LICENCE.
 *  GPL, MIT, Apache, BSD and other OSI-approved licences do not apply.
 *
 *  LICENCE OF USE
 *  A perpetual, non-exclusive, non-transferable licence is granted solely for
 *  the operation of the gen-q.org website by the licensee. The licensee may
 *  use the software, access and study the source code, make back-up copies and
 *  carry out modifications necessary for the intended use, within the
 *  non-waivable rights granted to the lawful user by art. 64-ter of Law
 *  633/1941 and art. 5 of Directive 2009/24/EC.
 *
 *  THE FOLLOWING ARE PROHIBITED without the prior written consent of
 *  Multisoft S.r.l.: transfer, sublicensing, rental or distribution of the
 *  source code or any part thereof to third parties; commercial exploitation
 *  of the software or of derivative works; reuse of its architecture or
 *  modules for products intended for parties other than the licensee; removal,
 *  alteration or concealment of these copyright notices.
 *
 *  Breach terminates the licence and triggers the civil and criminal remedies
 *  set out in arts. 156 ff. and 171-bis of Law 633/1941.
 *
 *  The software is provided "as is". Multisoft S.r.l. gives no warranties
 *  beyond those expressly agreed and accepts no liability for damage arising
 *  from modifications made by third parties.
 *
 * ============================================================================
 */

/* =========================================================
   GenQ - Design system (foglio di stile UNICO condiviso)
   Tutte le variabili di brand sono dichiarate in :root.
   Nessuna risorsa esterna: font di sistema, tutto locale.

   Fase 6-bis: file identico a contenuti/assets/style.css (mockup
   approvati), con l'unica aggiunta della sezione finale
   "Integrazione CMS" per i due casi non illustrati dai mockup
   (hero home senza immagine, testo libero nel banner "Perché
   scegliere GenQ"): vedi commenti lì per il dettaglio.
   ========================================================= */

:root {
  /* --- Colori brand --- */
  --navy:        #101728;   /* superficie scura primaria */
  --navy-2:      #0c1120;   /* superficie scura profonda  */
  --navy-3:      #182137;   /* card su fondo scuro        */
  --pink:        #E6007E;   /* accento primario           */
  --pink-ink:    #C4006B;   /* magenta per testo/link su fondo chiaro (AA) */
  --purple:      #9340FF;   /* accento secondario         */
  --purple-ink:  #6C2ACF;   /* viola per testo su fondo chiaro (AA) */

  /* --- Neutri --- */
  --white:       #ffffff;
  --bg:          #ffffff;   /* fondo pagina chiaro        */
  --bg-soft:     #F4F3F8;   /* sezioni alternate          */
  --ink:         #14161C;   /* testo principale su chiaro */
  --muted:       #565E6E;   /* testo secondario su chiaro (AA su bianco) */
  --line:        rgba(16,23,40,.12);
  --line-dark:   rgba(255,255,255,.12);

  /* --- Gradienti servizi --- */
  --grad-1: linear-gradient(135deg, #5170ff, #ff66c4);
  --grad-2: linear-gradient(135deg, #004aad, #cb6ce6);
  --grad-3: linear-gradient(135deg, #8c52ff, #5ce1e6);
  --grad-4: linear-gradient(135deg, #E6007E, #9340FF);
  --grad-brand: linear-gradient(120deg, #E6007E 0%, #9340FF 100%);

  /* --- Tipografia --- */
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  /* Scala fluida - ridotta di circa il 20% rispetto all'originale (Fase 7,
     fix richiesto dal committente: "i testi sono un po' troppo grandi"). */
  --fs-900: clamp(2.2rem, 1.4rem + 3.4vw, 4.2rem);
  --fs-800: clamp(1.8rem, 1.3rem + 2.3vw, 3rem);
  --fs-700: clamp(1.5rem, 1.2rem + 1.4vw, 2.2rem);
  --fs-600: clamp(1.25rem, 1.1rem + .7vw, 1.6rem);
  --fs-500: clamp(1.08rem, 1rem + .3vw, 1.25rem);
  --fs-400: 1rem;         /* 16px corpo */
  --fs-300: .9rem;        /* ~14px      */
  --fs-200: .78rem;       /* ~12px eyebrow */

  /* --- Spaziature --- */
  --sp-1: .5rem;  --sp-2: 1rem;  --sp-3: 1.5rem;  --sp-4: 2rem;
  --sp-5: 3rem;   --sp-6: 4rem;  --sp-7: 6rem;    --sp-8: 8rem;

  /* --- Raggi / ombre / layout --- */
  --r-sm: 10px;  --r-md: 18px;  --r-lg: 28px;  --r-pill: 999px;
  --shadow: 0 18px 50px rgba(16,23,40,.14);
  --shadow-lg: 0 40px 90px rgba(16,23,40,.22);
  --maxw: 1200px;
  --gutter: clamp(1.1rem, 4vw, 4rem);
  --header-h: 74px;
}

/* ========== Reset ========== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: var(--fs-400);
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--pink-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; padding: 0; }
h1, h2, h3, h4 { line-height: 1.12; letter-spacing: -.02em; font-weight: 800; }
h1 { font-size: var(--fs-900); font-weight: 900; }
h2 { font-size: var(--fs-800); }
h3 { font-size: var(--fs-600); }
p { text-wrap: pretty; }
::selection { background: var(--pink); color: #fff; }

/* Accessibilità: focus visibile ovunque */
:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 3px;
  border-radius: 4px;
}
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--pink); color: #fff; padding: .7rem 1.1rem; border-radius: 0 0 var(--r-sm) 0;
  font-weight: 700;
}
.skip-link:focus { left: 0; }

/* ========== Layout helpers ========== */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(3rem, 7vw, 6.5rem); }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--navy); color: #fff; }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }
.section--dark a { color: #ff8fc4; }
.eyebrow {
  display: inline-block; font-size: var(--fs-200); font-weight: 800;
  letter-spacing: .16em; text-transform: uppercase; color: var(--pink-ink);
  margin-bottom: var(--sp-2);
}
.section--dark .eyebrow { color: #ff8fc4; }
.lead { font-size: var(--fs-500); color: var(--muted); max-width: 62ch; }
.section--dark .lead { color: rgba(255,255,255,.82); }
.center { text-align: center; }
.center .lead, .center > p { margin-inline: auto; }
.mt-1{margin-top:var(--sp-1)} .mt-2{margin-top:var(--sp-2)} .mt-3{margin-top:var(--sp-3)}
.mt-4{margin-top:var(--sp-4)} .mt-5{margin-top:var(--sp-5)}
.text-pink { color: var(--pink-ink); }
.section--dark .text-pink { color: var(--pink); }
.text-purple { color: var(--purple-ink); }
.section--dark .text-purple { color: #b98bff; }

/* ========== Bottoni ========== */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font: inherit; font-weight: 800; font-size: var(--fs-300);
  padding: .85rem 1.5rem; border-radius: var(--r-pill);
  border: 2px solid transparent; cursor: pointer; text-decoration: none;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn--primary { background: var(--pink); color: #fff; }
.btn--primary:hover { background: #c4006b; color: #fff; }
.btn--ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn--ghost:hover { background: rgba(230,0,126,.08); }
.section--dark .btn--ghost { color: #fff; }
.section--dark .btn--ghost:hover { background: rgba(255,255,255,.1); }
.btn--lg { padding: 1.05rem 1.9rem; font-size: var(--fs-400); }

/* ========== Header / Nav ========== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(16,23,40,.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-dark);
  color: #fff;
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; min-height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; gap: .5rem; color: #fff; font-weight: 900; font-size: 1.5rem; letter-spacing: -.03em; }
.brand:hover { text-decoration: none; }
.brand img { height: 30px; width: auto; }
.nav-toggle {
  display: none; background: none; border: 0; color: #fff; cursor: pointer;
  padding: .5rem; border-radius: var(--r-sm);
}
.nav-toggle svg { width: 28px; height: 28px; }

.nav-menu { display: flex; align-items: center; gap: clamp(.6rem, 1.6vw, 1.6rem); }
.nav-menu > li { position: relative; }
.nav-menu a, .nav-menu .subnav-btn {
  display: inline-flex; align-items: center; gap: .3rem;
  color: #fff; font-weight: 600; font-size: var(--fs-300);
  padding: .55rem .4rem; background: none; border: 0; cursor: pointer; font-family: inherit;
}
.nav-menu a:hover, .nav-menu .subnav-btn:hover { color: #ff8fc4; text-decoration: none; }
.nav-menu a[aria-current="page"] { color: #ff8fc4; }
.nav-menu a[aria-current="page"]::after {
  content: ""; display: block; height: 2px; background: var(--pink);
  position: absolute; left: .4rem; right: .4rem; bottom: .3rem;
}
.nav-cta { margin-left: .4rem; }
.nav-cta a { background: var(--pink); color: #fff; padding: .6rem 1.1rem !important; border-radius: var(--r-pill); font-weight: 800; }
.nav-cta a:hover { background: #c4006b; color: #fff; }

/* Dropdown "Cosa facciamo" */
.subnav-head { display: flex; align-items: center; gap: .1rem; }
.subnav-btn { padding-inline: .25rem !important; }
.subnav-btn svg { width: 14px; height: 14px; transition: transform .2s; }
.has-sub[data-open="true"] .subnav-btn svg { transform: rotate(180deg); }
.subnav {
  position: absolute; top: 100%; left: 0; min-width: 260px;
  background: var(--navy-3); border: 1px solid var(--line-dark);
  border-radius: var(--r-md); padding: .5rem; box-shadow: var(--shadow-lg);
  display: none;
}
.has-sub[data-open="true"] .subnav { display: block; }
.subnav a { display: block; padding: .6rem .75rem; border-radius: var(--r-sm); font-weight: 600; }
.subnav a:hover { background: rgba(255,255,255,.07); color: #fff; }

/* ========== Footer ========== */
.site-footer { background: var(--navy-2); color: rgba(255,255,255,.75); padding-block: var(--sp-6) var(--sp-4); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--sp-5); }
.site-footer .brand { margin-bottom: var(--sp-2); }
.footer-payoff { max-width: 34ch; color: rgba(255,255,255,.7); }
.footer-col h4 { color: #fff; font-size: var(--fs-300); text-transform: uppercase; letter-spacing: .12em; margin-bottom: var(--sp-2); }
.footer-col a { color: rgba(255,255,255,.78); font-weight: 600; display: inline-block; padding: .2rem 0; }
.footer-col a:hover { color: #ff8fc4; }
.social-row { display: flex; gap: .6rem; margin-top: var(--sp-2); }
.social-row a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.08); color: #fff; }
.social-row a:hover { background: var(--pink); }
.social-row svg { width: 20px; height: 20px; }
.footer-legal { margin-top: var(--sp-5); padding-top: var(--sp-3); border-top: 1px solid var(--line-dark); font-size: var(--fs-300); color: rgba(255,255,255,.55); }

/* ========== Hero ========== */
.hero { position: relative; background: var(--navy); color: #fff; overflow: hidden; }
.hero__inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: var(--sp-5); align-items: center; padding-block: clamp(3rem, 7vw, 6rem); }
.hero h1 { color: #fff; }
.hero .lead { color: rgba(255,255,255,.85); }
.hero__blob { position: absolute; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ff3fa5, #E6007E 58%, #9340FF); }
.hero__media { position: relative; z-index: 2; aspect-ratio: 4/5; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__cluster { position: relative; display: grid; place-items: center; }
.hero__cluster .hero__blob { width: 74%; aspect-ratio: 1; z-index: 1; opacity: .92; }

/* ========== Card ========== */
.grid { display: grid; gap: var(--sp-3); }
/* minmax(0,1fr) e non 1fr: con 1fr una cella con contenuto intrinseco largo
   (es. una foto con dimensioni native molto grandi) può allargare la propria
   colonna oltre la frazione, rendendo una card più grande delle altre. */
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 4px 18px rgba(16,23,40,.05);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card__media { aspect-ratio: 16/10; overflow: hidden; background: var(--bg-soft); }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: var(--sp-3); display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.card__meta { font-size: var(--fs-300); color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.card h3 a { color: var(--ink); }
.card h3 a:hover { color: var(--pink-ink); }
.card__link { margin-top: auto; font-weight: 800; color: var(--pink-ink); }

/* Card servizio con icona gradiente */
.svc-icon { width: 64px; height: 64px; border-radius: var(--r-md); display: grid; place-items: center; color: #fff; margin: var(--sp-3) var(--sp-3) 0; }
.svc-icon svg { width: 30px; height: 30px; }
.svc-1{background:var(--grad-1)} .svc-2{background:var(--grad-2)} .svc-3{background:var(--grad-3)} .svc-4{background:var(--grad-4)}

/* ========== Sezione servizio alternata (hub) ========== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-5); align-items: center; }
.split + .split { margin-top: var(--sp-6); }
.split__media { aspect-ratio: 4/3; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split--flip .split__media { order: -1; }

/* ========== Banner "Perché GenQ" (identico in ogni servizio) ========== */
.why-banner {
  background: var(--grad-brand); color: #fff; border-radius: var(--r-lg);
  padding: clamp(2rem, 5vw, 4rem); position: relative; overflow: hidden;
}
.why-banner::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px;
  border-radius: 50%; background: rgba(255,255,255,.14);
}
.why-banner h2 { color: #fff; position: relative; z-index: 1; }
.why-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3,1fr); gap: var(--sp-4); margin-top: var(--sp-4); }
.why-grid .num { font-size: var(--fs-800); font-weight: 900; line-height: 1; }
.why-grid p { color: rgba(255,255,255,.92); margin-top: .3rem; }

/* ========== Team ========== */
.member { text-align: center; }
.member__photo { width: 100%; aspect-ratio: 1; border-radius: var(--r-lg); overflow: hidden; background: var(--bg-soft); }
.member__photo img { width: 100%; height: 100%; object-fit: cover; }
.member h3 { margin-top: var(--sp-2); font-size: var(--fs-500); }
.member .role { color: var(--pink-ink); font-weight: 800; font-size: var(--fs-300); }
.member .bio { color: var(--muted); font-size: var(--fs-300); margin-top: .4rem; }

/* ========== Valori ========== */
.value { padding: var(--sp-3); border-left: 3px solid var(--pink); background: var(--bg-soft); border-radius: 0 var(--r-md) var(--r-md) 0; }
.value h3 { font-size: var(--fs-500); }
.value p { color: var(--muted); margin-top: .4rem; }

/* ========== Percorso / step ========== */
.steps { counter-reset: step; display: grid; gap: var(--sp-3); }
.step { display: grid; grid-template-columns: auto 1fr; gap: var(--sp-3); align-items: start; }
.step__num { counter-increment: step; width: 52px; height: 52px; border-radius: 50%; background: var(--grad-brand); color: #fff; font-weight: 900; font-size: 1.3rem; display: grid; place-items: center; }
.step__num::before { content: counter(step); }
.step h3 { font-size: var(--fs-500); }
.step p { color: var(--muted); }

/* ========== FAQ accordion ========== */
.faq details { border: 1px solid var(--line); border-radius: var(--r-md); padding: 0; margin-bottom: var(--sp-2); background: var(--white); }
.faq summary { cursor: pointer; padding: var(--sp-3); font-weight: 800; font-size: var(--fs-500); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.6rem; color: var(--pink-ink); line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details > p { padding: 0 var(--sp-3) var(--sp-3); color: var(--muted); }

/* ========== Loghi partner ========== */
.logos { display: flex; flex-wrap: wrap; gap: var(--sp-4); align-items: center; justify-content: center; }
.logos img { height: 46px; width: auto; filter: grayscale(1); opacity: .6; transition: filter .2s, opacity .2s; }
.logos img:hover { filter: grayscale(0); opacity: 1; }

/* ========== Donazione box ========== */
.donation-box { background: var(--navy); color: #fff; border-radius: var(--r-lg); padding: clamp(1.6rem,4vw,2.6rem); }
.donation-box h3 { color: #fff; }
/* Etichetta a riga piena, valore sotto (il box vive in una colonna stretta
   della griglia "Come puoi aiutare": non c'è spazio per label+valore+bottone
   affiancati). Il wrapping spezza tra le parole (break-word), MAI dentro -
   solo l'IBAN (un'unica "parola" di 27 caratteri) può andare a capo in
   qualunque punto (.donation-iban, overflow-wrap anywhere). */
.donation-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: .15rem; margin-top: var(--sp-3); }
.donation-row dt { margin-top: .9rem; color: rgba(255,255,255,.55); font-weight: 700; font-size: var(--fs-300); text-transform: uppercase; letter-spacing: .06em; }
.donation-row dt:first-child { margin-top: 0; }
.donation-row dd { margin: 0; font-weight: 800; min-width: 0; overflow-wrap: break-word; }
.donation-row dd.donation-iban { overflow-wrap: anywhere; font-variant-ligatures: none; }
.donation-row > span:empty { display: none; }
.donation-row .copy-btn { justify-self: start; margin-top: .5rem; }
.copy-btn { background: rgba(255,255,255,.1); color: #fff; border: 0; border-radius: var(--r-sm); padding: .35rem .7rem; font: inherit; font-size: var(--fs-300); font-weight: 700; cursor: pointer; }
.copy-btn:hover { background: var(--pink); }

/* ========== Carousel home (degrada senza JS: scroll orizzontale) ========== */
.carousel { position: relative; }
.carousel__track { display: grid; grid-auto-flow: column; grid-auto-columns: min(85%, 380px); gap: var(--sp-3); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: var(--sp-2); scrollbar-width: thin; }
.carousel__track > * { scroll-snap-align: start; }
.carousel__btns { display: flex; gap: .5rem; justify-content: flex-end; margin-bottom: var(--sp-2); }
.carousel__btns button { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--line); background: var(--white); cursor: pointer; font-size: 1.2rem; color: var(--ink); }
.carousel__btns button:hover { border-color: var(--pink); color: var(--pink-ink); }

/* ========== Galleria + lightbox ========== */
.gallery { display: grid; grid-template-columns: repeat(4,1fr); gap: var(--sp-2); }
.gallery button { padding: 0; border: 0; background: none; cursor: pointer; border-radius: var(--r-md); overflow: hidden; aspect-ratio: 1; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s; }
.gallery button:hover img { transform: scale(1.05); }
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(5,7,15,.92); display: none; place-items: center; padding: 5vw; }
.lightbox[open], .lightbox.is-open { display: grid; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: var(--r-md); }
.lightbox__close { position: absolute; top: 1.2rem; right: 1.4rem; background: none; border: 0; color: #fff; font-size: 2.4rem; cursor: pointer; line-height: 1; }

/* ========== Blockquote testimonianza ========== */
.quote { border-left: 4px solid var(--pink); padding: var(--sp-2) var(--sp-4); font-size: var(--fs-600); font-weight: 700; font-style: italic; }
.quote cite { display: block; font-size: var(--fs-300); font-weight: 700; font-style: normal; color: var(--muted); margin-top: var(--sp-2); }

/* ========== Meta riga (case study) ========== */
.meta-row { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; color: var(--muted); font-weight: 700; font-size: var(--fs-300); text-transform: uppercase; letter-spacing: .06em; }
.meta-row span + span::before { content: "·"; margin-right: 1.2rem; color: var(--pink); }

/* ========== Hero interno (pagine) ========== */
.page-hero { background: var(--navy); color: #fff; padding-block: clamp(2.6rem, 6vw, 4.5rem); }
.page-hero h1 { color: #fff; }
.page-hero .lead { color: rgba(255,255,255,.82); margin-top: var(--sp-2); }
.banner-img { aspect-ratio: 21/9; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); }
.banner-img img { width: 100%; height: 100%; object-fit: cover; }

/* ========== CTA finale ========== */
.cta-final { text-align: center; }
.cta-final h2 { max-width: 20ch; margin-inline: auto; }

/* ========== 404 ========== */
.err { min-height: 70vh; display: grid; place-content: center; text-align: center; gap: var(--sp-3); background: var(--navy); color: #fff; }
.err .big { font-size: clamp(6rem, 20vw, 14rem); font-weight: 900; line-height: .9; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.err h1 { color: #fff; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1000px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .why-grid { grid-template-columns: 1fr; gap: var(--sp-3); }
  .gallery { grid-template-columns: repeat(3,1fr); }
}
@media (max-width: 900px) {
  /* Menu mobile */
  .nav-toggle { display: inline-flex; }
  .nav-menu {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy); border-bottom: 1px solid var(--line-dark);
    padding: var(--sp-2) var(--gutter) var(--sp-4);
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
    transform: translateY(-120%); transition: transform .28s ease; visibility: hidden;
  }
  .nav[data-open="true"] .nav-menu { transform: translateY(0); visibility: visible; }
  .nav-menu > li { width: 100%; border-bottom: 1px solid var(--line-dark); }
  .nav-menu a, .nav-menu .subnav-btn { width: 100%; padding: .95rem .2rem; font-size: var(--fs-500); justify-content: space-between; }
  .nav-menu a[aria-current="page"]::after { display: none; }
  .subnav { position: static; display: none; border: 0; box-shadow: none; background: transparent; padding: 0 0 .5rem .8rem; min-width: 0; }
  .has-sub[data-open="true"] .subnav { display: block; }
  .nav-cta { margin: var(--sp-2) 0 0; }
  .nav-cta a { display: inline-flex; }
  .subnav-head { width: 100%; justify-content: space-between; }
  .subnav-head a { width: auto; }
}
@media (max-width: 820px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__cluster { max-width: 460px; margin-inline: auto; }
  .split, .split--flip { grid-template-columns: 1fr; }
  .split--flip .split__media { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  /* Il layout base della .donation-row (etichetta sopra, valore sotto) è
     già adatto agli schermi stretti: nessun override necessario. */
}
@media (max-width: 560px) {
  .grid--4, .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: var(--sp-4); }
  .meta-row span + span::before { content: ""; margin: 0; }
  .meta-row { flex-direction: column; gap: .2rem; }
}

/* Rispetto delle preferenze di movimento */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; transition: none !important; }
}

/* =========================================================
   INTEGRAZIONE CMS (Fase 6-bis) - casi non illustrati dai mockup
   ========================================================= */

/* Home: l'hero_immagine è opzionale (campo aggiunto allo schema "home", non
   presente nei mockup originali). Con immagine: layout invariato (grid due
   colonne, vedi .hero__inner sopra). Senza immagine: singola colonna, testo
   centrato, per un fallback pulito invece di lasciare metà griglia vuota. */
.hero__inner--solo { grid-template-columns: 1fr; text-align: center; }
.hero__inner--solo > div:first-child { max-width: 62ch; margin-inline: auto; }

/* Sezioni ".split" (card servizio dell'hub /cosa-facciamo/): se il servizio
   non ha ancora un'immagine di testata caricata da admin, niente colonna
   immagine vuota - testo a colonna singola. */
.split--solo { grid-template-columns: 1fr; }

/* Banner "Perché scegliere GenQ": il mockup mostra 3 statistiche fisse come
   ESEMPIO di contenuto, ma il campo dati "perche_genq" dello schema
   "servizio" è testo libero (richtext, allowlist p/br/strong/em/a/ul/ol/li:
   non può produrre il markup .why-grid/.num del mockup). Il banner resta
   graficamente identico (stesso sfondo/cerchio decorativo/h2 fisso); il
   testo del servizio è iniettato in questo contenitore, con tipografia
   leggibile su fondo scuro coerente col resto del sito (.section--dark .lead). */
.why-banner__content { position: relative; z-index: 1; margin-top: var(--sp-3); max-width: 62ch; color: rgba(255, 255, 255, .92); font-size: var(--fs-500); }
.why-banner__content :last-child { margin-bottom: 0; }

/* =========================================================
   Banner di consenso tracker (pre-deploy, assets/js/consent.js)
   Fascia fissa in basso (NON una modale): il resto della pagina resta
   leggibile/navigabile sotto. Iniettata via JS solo se almeno un tracker è
   configurato in "Impostazioni sito" e nessuna scelta è già salvata.
   ========================================================= */
.consent-banner {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 200;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2) var(--sp-4);
  padding: var(--sp-3) var(--gutter);
  background: var(--navy);
  color: rgba(255, 255, 255, .92);
  border-top: 1px solid var(--line-dark);
  box-shadow: 0 -18px 50px rgba(16, 23, 40, .28);
}
.consent-banner__text { flex: 1 1 42ch; margin: 0; font-size: var(--fs-300); line-height: 1.55; }
.consent-banner__text a { color: #fff; text-decoration: underline; }
.consent-banner__actions { display: flex; flex-wrap: wrap; gap: .6rem; flex: 0 0 auto; }
.consent-banner .btn--ghost { color: #fff; }
.consent-banner .btn--ghost:hover { background: rgba(255, 255, 255, .1); }
/* Spazio per non coprire contenuti in fondo pagina (es. footer) mentre il
   banner è visibile. */
body.has-consent-banner { padding-bottom: 6.5rem; }
@media (max-width: 640px) {
  .consent-banner { flex-direction: column; align-items: stretch; text-align: center; }
  .consent-banner__actions { justify-content: center; }
  body.has-consent-banner { padding-bottom: 9rem; }
}
.why-banner__content a { color: #fff; text-decoration: underline; }

/* =========================================================
   Breadcrumb (navigazione + SEO)
   Renderizzato dal layout subito sopra ogni hero/page-hero (entrambe su
   fondo --navy): stesso sfondo, senza bordo tra i due blocchi, per apparire
   visivamente come parte della hero invece che come una fascia separata -
   testo chiaro, sempre leggibile su fondo scuro. Assente su home/404 (vedi
   partials/breadcrumb.php: breadcrumb_items()).
   ========================================================= */
.breadcrumb { background: var(--navy); padding-block: .7rem; }
.breadcrumb ol {
  display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .45rem;
  list-style: none; margin: 0; padding: 0; font-size: var(--fs-300);
}
.breadcrumb li { display: flex; align-items: center; gap: .45rem; color: rgba(255,255,255,.55); }
.breadcrumb li:not(:last-child)::after { content: "\203A"; color: rgba(255,255,255,.35); }
.breadcrumb a { color: rgba(255,255,255,.75); font-weight: 600; }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }
.breadcrumb li[aria-current="page"] { color: #fff; font-weight: 700; }

/* =========================================================
   Hero fotografica delle pagine fisse (chi-siamo, cosa-facciamo, progetti,
   sostieni-genq, contatti): stesso pattern "split" della hero home
   (.hero__inner), ma con un riquadro immagine in formato orizzontale
   (16:10, coerente con la dimensione consigliata 1600×900 del campo
   "immagine_testata") invece del formato verticale di .hero__media. Applicata
   SOLO quando il campo è valorizzato: senza immagine il markup di
   .page-hero resta invariato (container a colonna singola, come prima).
   ========================================================= */
.page-hero__inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: var(--sp-5); align-items: center; }
.page-hero__media { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 16/10; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 820px) {
  .page-hero__inner { grid-template-columns: 1fr; }
}

/*
 * ============================================================================
 *  GenQ Website CMS - Sistema di gestione contenuti e generazione statica
 * ============================================================================
 *
 *  Copyright (c) 2026 Multisoft S.r.l. - www.multisoft.it
 *  Tutti i diritti riservati / All rights reserved.
 *
 * ----------------------------------------------------------------------------
 *  ITALIANO
 * ----------------------------------------------------------------------------
 *
 *  Il presente software, comprensivo del codice sorgente, della struttura,
 *  dell'architettura, della documentazione e di ogni componente accessorio, è
 *  opera dell'ingegno di Multisoft S.r.l. ed è protetto dalla Legge 22 aprile
 *  1941 n. 633 e successive modifiche, che all'art. 2 comma 8 e agli artt.
 *  64-bis e seguenti - introdotti dal D.Lgs. 29 dicembre 1992 n. 518 in
 *  attuazione della Direttiva 91/250/CEE, oggi Direttiva 2009/24/CE -
 *  equipara i programmi per elaboratore alle opere letterarie.
 *
 *  La tutela è altresì riconosciuta a livello internazionale dalla Convenzione
 *  di Berna per la protezione delle opere letterarie e artistiche e dal
 *  Trattato OMPI sul diritto d'autore (WCT, 1996), art. 4.
 *
 *  QUESTO SOFTWARE NON È RILASCIATO SOTTO LICENZA LIBERA O OPEN SOURCE.
 *  Non si applicano GPL, MIT, Apache, BSD o altre licenze OSI-approved.
 *
 *  LICENZA D'USO
 *  Il software è concesso in licenza d'uso perpetua, non esclusiva e non
 *  trasferibile, limitatamente all'esercizio del sito web gen-q.org da parte
 *  del licenziatario. Il licenziatario può utilizzare il software, accedere al
 *  codice sorgente, studiarne il funzionamento, effettuare copie di sicurezza e
 *  apportare le modifiche necessarie all'uso previsto, nei limiti dei diritti
 *  inderogabili riconosciuti all'utente legittimo dall'art. 64-ter L. 633/1941.
 *
 *  SONO VIETATI, salvo previo consenso scritto di Multisoft S.r.l.:
 *   - la cessione, la sublicenza, il noleggio o la distribuzione a terzi, a
 *     qualsiasi titolo, del codice sorgente o di sue porzioni;
 *   - la commercializzazione del software o di opere da esso derivate;
 *   - il riutilizzo dell'architettura o dei moduli per la realizzazione di
 *     prodotti destinati a soggetti diversi dal licenziatario;
 *   - la rimozione, l'alterazione o l'occultamento delle presenti note di
 *     copyright e di ogni altro avviso di titolarità presente nei sorgenti.
 *
 *  La violazione di quanto sopra comporta la decadenza della licenza e
 *  l'applicazione delle sanzioni civili e penali previste dagli artt. 156 e
 *  seguenti e 171-bis L. 633/1941.
 *
 *  Il software è fornito "così com'è". Multisoft S.r.l. non presta garanzie
 *  ulteriori rispetto a quanto espressamente pattuito e non risponde di danni
 *  derivanti da modifiche apportate da terzi.
 *
 * ----------------------------------------------------------------------------
 *  ENGLISH
 * ----------------------------------------------------------------------------
 *
 *  This software, including its source code, structure, architecture,
 *  documentation and all ancillary components, is an original work authored by
 *  Multisoft S.r.l. and is protected under Italian Copyright Law (Legge
 *  633/1941, as amended by Legislative Decree 518/1992 implementing Directive
 *  91/250/EEC, now Directive 2009/24/EC on the legal protection of computer
 *  programs), which affords computer programs the same protection as literary
 *  works. International protection applies under the Berne Convention and the
 *  WIPO Copyright Treaty (1996), art. 4.
 *
 *  THIS SOFTWARE IS NOT RELEASED UNDER ANY FREE OR OPEN SOURCE LICENCE.
 *  GPL, MIT, Apache, BSD and other OSI-approved licences do not apply.
 *
 *  LICENCE OF USE
 *  A perpetual, non-exclusive, non-transferable licence is granted solely for
 *  the operation of the gen-q.org website by the licensee. The licensee may
 *  use the software, access and study the source code, make back-up copies and
 *  carry out modifications necessary for the intended use, within the
 *  non-waivable rights granted to the lawful user by art. 64-ter of Law
 *  633/1941 and art. 5 of Directive 2009/24/EC.
 *
 *  THE FOLLOWING ARE PROHIBITED without the prior written consent of
 *  Multisoft S.r.l.: transfer, sublicensing, rental or distribution of the
 *  source code or any part thereof to third parties; commercial exploitation
 *  of the software or of derivative works; reuse of its architecture or
 *  modules for products intended for parties other than the licensee; removal,
 *  alteration or concealment of these copyright notices.
 *
 *  Breach terminates the licence and triggers the civil and criminal remedies
 *  set out in arts. 156 ff. and 171-bis of Law 633/1941.
 *
 *  The software is provided "as is". Multisoft S.r.l. gives no warranties
 *  beyond those expressly agreed and accepts no liability for damage arising
 *  from modifications made by third parties.
 *
 * ============================================================================
 */
