/* Nitido · lo stile «Galleria» del sito pubblico (proposta A, approvata dal titolare il 2/11/2026 per la home, esteso a tutto il
   sito lo stesso giorno). La fotografia di matrimonio come scenografia, le schermate vere che galleggiano sopra.
   Bianco puro, nero neutro freddo, un solo accento: il vino (più acceso solo sul nero). L'oro vive solo nelle schede Atelier.
   Caratteri: quelli di caratteri.css (Geist, DM Serif Display). Il foglio si carica da sito/base.html su ogni pagina del sito.

   Regola: ogni selettore sta sotto body.sx-ga (o html.moto / html.statico body.sx-ga per il movimento): la classe la mette
   sito/base.html, quindi le pagine dell'app non lo vedono mai. Le variabili sono definite sullo stesso body, senza toccare quelle
   di nitido.css (--nx-*). La cornice (testata, menù, piede) e i pezzi delle pagine di testo (domande, guide, moduli) restano in
   sito.css. Il movimento è gentile: parte solo se la pagina ha la classe «moto» su <html> (la mette lo script in testa a
   sito/base.html, mai con «riduci movimento» o con ?statico) e lo comanda js/sito-galleria.js. Senza JavaScript la pagina è
   completa e tutta visibile.

   Indice: variabili e base · 1 apertura (+ apertura con foto delle pagine dei mestieri) · 2 garanzie · 3 cos'è e tavola ·
   4 prima e dopo · 5 a chi serve · 6 percorso · 7 dentro Nitido · 8 due facce · 9 portale · 10 dati · 11 piani · 12 chiusura ·
   13 pezzi delle altre pagine (momenti, fascia con foto) · movimento · schermi medi e stretti */

body.sx-ga {
  --w: #FFFFFF;
  --ink: #0E1114;
  --ink2: #5F656D;
  --rule: #E6E8EB;
  --grey: #F4F5F6;
  --line-ui: #8A9199;
  --wine: #6B1E2C;
  --wine-hi: #7B2839;
  --wine-lo: #631A28;
  --wine-veil: #F3EDEE;
  --wine-lit: #A6394F;        /* il vino che «si accende» sul nero: solo titoli grandi, linee e punti */
  --paid: #1F6B4F;
  --k0: #08090B;              /* nero galleria */
  --k1: #0E1114;              /* grafite */
  --k2: #161A1F;
  --k3: #1F242A;
  --k-rule: #2A2F35;
  --k-ink: #EEF0F2;
  --k-ink2: #A9B0B8;
  --gold: #E2C68C;            /* SOLO scheda Atelier */
  --gold-line: rgba(212, 180, 122, .6);
  --serif: "DM Serif Display", "Times New Roman", serif;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1232px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --sh-float: 0 0 0 1px rgba(16, 24, 40, .05), 0 18px 40px -14px rgba(16, 24, 40, .22), 0 60px 120px -40px rgba(16, 24, 40, .38);
  --sh-dark: 0 0 0 1px rgba(255, 255, 255, .07), 0 30px 60px -20px rgba(0, 0, 0, .7), 0 90px 160px -50px rgba(0, 0, 0, .85);
}
body.sx-ga svg.i { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
body.sx-ga .wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
body.sx-ga .wrap--hero { max-width: 1180px; }
body.sx-ga .eb { font: 600 11px/1.35 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink2); }
body.sx-ga .eb--wine { color: var(--wine); }
body.sx-ga .eb--lit { color: var(--k-ink2); }
body.sx-ga .eb--lit::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--wine-lit); margin-right: 10px; vertical-align: 1px; box-shadow: 0 0 12px var(--wine-lit); }
body.sx-ga .num.eb--lit::before { width: 28px; height: 1px; border-radius: 0; margin-right: 0; box-shadow: none; opacity: 1; }
body.sx-ga .eb--k { color: var(--k-ink2); }
body.sx-ga .num { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 22px; }
body.sx-ga .num::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .6; }
body.sx-ga .h2 { font: 400 clamp(36px, 5.4vw, 78px)/1.0 var(--serif); letter-spacing: -.028em; text-wrap: balance; }
body.sx-ga .h2 em, body.sx-ga h1 em { font-style: italic; color: var(--wine); }
body.sx-ga .scuro .h2 em, body.sx-ga .scuro h3 em { color: var(--wine-lit); }
body.sx-ga .lede { margin-top: 22px; max-width: 56ch; font-size: 18px; line-height: 1.55; color: var(--ink2); text-wrap: pretty; }
body.sx-ga .scuro { background: var(--k1); color: var(--k-ink); }
body.sx-ga .scuro .lede { color: var(--k-ink2); }

body.sx-ga .azioni { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ───────── 1. apertura (fedele a oggi, con più profondità) ───────── */
body.sx-ga .hero { position: relative; padding: 84px 0 76px; overflow: hidden; }
body.sx-ga .hero::before { /* un pavimento grigio freddo appena percepibile sotto le schermate: profondità, non colore */
  content: ""; position: absolute; right: -10%; top: 12%; width: 70%; height: 86%; z-index: -1;
  background: radial-gradient(60% 55% at 60% 55%, rgba(14, 17, 20, .07), rgba(14, 17, 20, 0) 70%); }
body.sx-ga .hero-g { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 56px; align-items: center; }
body.sx-ga .hero h1 { font: 400 clamp(40px, 5.6vw, 68px)/1.02 var(--serif); letter-spacing: -.024em; text-wrap: balance; margin-top: 14px; }
body.sx-ga .hero-n { margin-top: 18px; font-size: 13px; color: var(--ink2); }
body.sx-ga .hero-s { position: relative; padding-bottom: 36px; perspective: 1600px; }
body.sx-ga .shot { display: block; width: 100%; border-radius: 14px; border: 1px solid var(--rule); background: #fff; }
body.sx-ga .hero .shot--pc { box-shadow: 0 2px 4px rgba(16, 24, 40, .04), 0 24px 60px -10px rgba(16, 24, 40, .20), 0 70px 120px -50px rgba(16, 24, 40, .35); }
body.sx-ga .hero .shot--tel { width: 34%; position: absolute; right: -2%; bottom: 0; border-radius: 22px; box-shadow: 0 2px 4px rgba(16, 24, 40, .06), 0 18px 44px rgba(16, 24, 40, .24), 0 60px 90px -30px rgba(16, 24, 40, .35); }

/* ───────── 2. garanzie (scelta B «Disegni», 3/11: una scheda con un disegno per garanzia, su fondo grigio) ───────── */
body.sx-ga .garanzie { background: var(--grey); padding: 56px 0; }
body.sx-ga .garanzie-g { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
body.sx-ga .garanzia { background: #fff; border-radius: 18px; padding: 14px 14px 26px; box-shadow: 0 0 0 1px rgba(16, 24, 40, .05), 0 14px 30px -18px rgba(16, 24, 40, .28); }
body.sx-ga .garanzia-d { height: 150px; display: grid; place-items: center; border-radius: 12px; background: linear-gradient(180deg, var(--wine-veil), #FAF7F7); }
body.sx-ga .garanzia-d svg { width: 78%; max-width: 200px; height: auto; }
body.sx-ga .garanzia-d .t { fill: #fff; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
body.sx-ga .garanzia-d .n { fill: var(--ink); }
body.sx-ga .garanzia-d .v { fill: var(--wine); }
body.sx-ga .garanzia-d .vl { fill: var(--wine-veil); stroke: var(--wine); stroke-width: 1.5; }
body.sx-ga .garanzia-d .r { fill: #D9DCE0; }
body.sx-ga .garanzia-d .p { fill: var(--ink2); }
body.sx-ga .garanzia-d .vs { fill: none; stroke: var(--wine); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
body.sx-ga .garanzia-d .vs--forte { stroke-width: 3; }
body.sx-ga .garanzia-t { margin: 20px 12px 0; font: 400 23px/1.12 var(--serif); letter-spacing: -.01em; color: var(--ink); text-wrap: balance; }
body.sx-ga .garanzia-p { margin: 8px 12px 0; font-size: 14px; line-height: 1.5; color: var(--ink2); }

/* ───────── 3. cos'è ───────── */
body.sx-ga .sez { padding: 140px 0; }
body.sx-ga .cose-g { display: grid; gap: 64px; }
body.sx-ga .cose-g .h2 { max-width: 21ch; }
body.sx-ga .idee { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 32px; }
body.sx-ga .idee > div { padding: 26px 0 28px; border-top: 1px solid var(--rule); }
body.sx-ga .idee .n { font: italic 400 15px/1 var(--serif); color: var(--wine); }
body.sx-ga .idee h3 { margin: 12px 0 8px; font: 600 17px/1.3 var(--sans); letter-spacing: -.005em; }
body.sx-ga .idee p { font-size: 15px; line-height: 1.55; color: var(--ink2); }

/* la tavola: foto a tutta larghezza, schermate sopra */
body.sx-ga .tavola { position: relative; margin-top: 110px; padding-bottom: 150px; }
body.sx-ga .tavola-foto { position: relative; height: min(64vw, 760px); overflow: hidden; }
body.sx-ga .tavola-foto img { width: 100%; height: 118%; object-fit: cover; object-position: 50% 40%; will-change: transform; }
body.sx-ga .tavola-foto::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 9, 11, .72) 0%, rgba(8, 9, 11, .35) 38%, rgba(8, 9, 11, 0) 62%), linear-gradient(0deg, rgba(8, 9, 11, .45), rgba(8, 9, 11, 0) 40%); }
body.sx-ga .tavola-t { position: absolute; z-index: 2; left: max(24px, calc((100vw - var(--wrap)) / 2 + 24px)); top: 18%; max-width: 470px; color: #fff; }
body.sx-ga .tavola-t .h3 { margin-top: 18px; font: 400 clamp(32px, 3.6vw, 52px)/1.04 var(--serif); letter-spacing: -.02em; }
body.sx-ga .tavola-t .h3 em { font-style: italic; }
body.sx-ga .tavola-t p { margin-top: 16px; color: rgba(255, 255, 255, .82); font-size: 16px; max-width: 40ch; }
body.sx-ga .tavola-s { position: absolute; z-index: 3; right: max(24px, calc((100vw - var(--wrap)) / 2 + 24px)); bottom: 0; width: min(58vw, 760px); }
body.sx-ga .tavola-s .shot { box-shadow: var(--sh-dark); border-color: rgba(255, 255, 255, .5); }
body.sx-ga .tavola-s .shot--tel { position: absolute; width: 27%; left: -12%; bottom: -40px; border-radius: 22px; }

/* ───────── 4. infografica 1: prima / con Nitido ───────── */
body.sx-ga .inf1 { position: relative; padding: 140px 0 150px; background: radial-gradient(70% 60% at 72% 58%, rgba(107, 30, 44, .22), rgba(107, 30, 44, 0) 70%), var(--k1); overflow: hidden; }
body.sx-ga .inf1-h { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 56px; align-items: end; margin-bottom: 72px; }
body.sx-ga .inf1-etic { display: grid; grid-template-columns: 58% 42%; margin-bottom: 18px; }
body.sx-ga .inf1-etic p { display: flex; align-items: center; gap: 10px; }
body.sx-ga .inf1-etic p:last-child { padding-left: 4%; }
body.sx-ga .inf1-etic b { font: 400 26px/1 var(--serif); color: #fff; letter-spacing: -.01em; }
body.sx-ga .inf1-etic b em { color: var(--wine-lit); font-style: italic; }
body.sx-ga .palco { position: relative; aspect-ratio: 1180 / 600; }
body.sx-ga .palco svg.fili { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
body.sx-ga .fili path { fill: none; stroke: url(#ga-filo); stroke-width: 1.4; vector-effect: non-scaling-stroke; }
body.sx-ga .fili .hub { fill: var(--wine); }
body.sx-ga .fili .hub-ring { fill: none; stroke: var(--wine-lit); stroke-width: 1; opacity: .5; vector-effect: non-scaling-stroke; }
body.sx-ga .fili .corsa { fill: #fff; }
body.sx-ga .frammento { position: absolute; width: 21%; display: flex; gap: 12px; align-items: center; padding: 13px 14px; border-radius: 14px;
  background: var(--k2); border: 1px solid var(--k-rule); box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .8); transform: rotate(var(--r, 0deg)); }
body.sx-ga .frammento .ic { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 10px; background: var(--k3); color: var(--k-ink2); }
body.sx-ga .frammento .ic svg { width: 19px; height: 19px; }
body.sx-ga .frammento b { display: block; font: 600 13px/1.25 var(--sans); color: var(--k-ink); }
body.sx-ga .frammento span { display: block; margin-top: 3px; font-size: 12.5px; line-height: 1.35; color: var(--k-ink2); }
body.sx-ga .hub-tag { position: absolute; left: 59.3%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; display: grid; place-items: center;
  background: var(--wine); box-shadow: 0 0 0 10px rgba(107, 30, 44, .25), 0 0 60px rgba(184, 71, 92, .55); }
body.sx-ga .hub-tag img { width: 30px; height: 30px; border-radius: 7px; }

/* la scheda della coppia, disegnata */
body.sx-ga .scheda { position: absolute; right: 0; top: 4%; width: 34.5%; padding: 26px 26px 22px; border-radius: 20px; background: #fff; color: var(--ink);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .5), 0 40px 80px -30px rgba(0, 0, 0, .9), 0 0 120px -20px rgba(184, 71, 92, .45); }
body.sx-ga .scheda-top { display: flex; justify-content: space-between; align-items: center; }
body.sx-ga .badge { display: inline-flex; align-items: center; gap: 6px; font: 600 11.5px/1 var(--sans); color: var(--paid); }
body.sx-ga .badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--paid); }
body.sx-ga .scheda-nome { margin-top: 12px; font: 400 40px/1 var(--serif); letter-spacing: -.02em; }
body.sx-ga .scheda-nome em { color: var(--wine); font-style: italic; }
body.sx-ga .scheda-meta { margin-top: 8px; font-size: 13px; color: var(--ink2); }
body.sx-ga .scheda-tappe { display: flex; gap: 6px; margin: 18px 0 6px; flex-wrap: wrap; }
body.sx-ga .scheda-tappe li { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 500; color: var(--ink2); padding: 5px 8px; border-radius: 99px; background: var(--grey); }
body.sx-ga .scheda-tappe li.ok svg { width: 12px; height: 12px; color: var(--paid); stroke-width: 2.2; }
body.sx-ga .scheda-tappe li.ora { background: var(--wine-veil); color: var(--wine); font-weight: 600; }
body.sx-ga .scheda-righe > div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--rule); font-size: 13.5px; }
body.sx-ga .scheda-righe dt { color: var(--ink2); }
body.sx-ga .scheda-righe dd { font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
body.sx-ga .scheda-righe .paid { color: var(--paid); }
body.sx-ga .scheda-righe .wine { color: var(--wine); }
body.sx-ga .scheda-prox { margin-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--wine-veil); font-size: 13px; }
body.sx-ga .scheda-prox span { font: 600 10.5px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--wine); }
body.sx-ga .scheda-prox b { font-weight: 600; }
body.sx-ga .inf1-piede { margin-top: 64px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--k-rule); }
body.sx-ga .inf1-piede > div { padding: 24px 28px 0 0; }
body.sx-ga .inf1-piede b { display: block; font: 400 22px/1.15 var(--serif); color: #fff; margin-bottom: 8px; }
body.sx-ga .inf1-piede p { font-size: 14.5px; color: var(--k-ink2); max-width: 34ch; }

/* ───────── 5. a chi serve ───────── */
body.sx-ga .mestieri { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 72px; }
body.sx-ga .mestiere-foto { position: relative; aspect-ratio: 4 / 4.6; border-radius: 4px; overflow: visible; }
body.sx-ga .mestiere-foto .ph { position: absolute; inset: 0; overflow: hidden; border-radius: 4px; }
body.sx-ga .mestiere-foto .ph img { width: 100%; height: 112%; object-fit: cover; }
body.sx-ga .mestiere-foto .shot-w { position: absolute; width: 74%; right: max(-6%, -24px); bottom: -12%; } /* mai oltre il margine di .wrap: a 1024 px usciva di 4 px */
body.sx-ga .mestiere-foto .shot { box-shadow: var(--sh-float); }
body.sx-ga .mestiere-t { padding: 80px 8% 0 0; }
body.sx-ga .mestiere-t h3 { margin-top: 14px; font: 400 clamp(28px, 2.8vw, 40px)/1.06 var(--serif); letter-spacing: -.02em; }
body.sx-ga .mestiere-t p { margin-top: 14px; color: var(--ink2); font-size: 16px; max-width: 46ch; }
body.sx-ga .freccia { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; font-weight: 600; font-size: 15px; text-decoration: none; color: var(--wine); }
body.sx-ga .freccia svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
body.sx-ga .freccia:hover svg { transform: translateX(4px); }

/* ───────── 6. infografica 2: percorso a due corsie ───────── */
body.sx-ga .inf2 { padding: 140px 0 150px; border-top: 1px solid var(--rule); }
body.sx-ga .inf2-h { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; align-items: end; margin-bottom: 64px; }
body.sx-ga .legenda { display: grid; gap: 12px; justify-self: end; }
body.sx-ga .legenda p { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--ink2); }
body.sx-ga .legenda i { width: 30px; height: 18px; border-radius: 6px; flex: none; }
body.sx-ga .legenda .lf i { background: #fff; box-shadow: 0 0 0 1px var(--rule), 0 4px 10px -4px rgba(16, 24, 40, .2); }
body.sx-ga .legenda .lc i { background: var(--k1); }
body.sx-ga .corsie { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-template-rows: auto auto auto; gap: 0 14px; }
body.sx-ga .corsia-label { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
body.sx-ga .corsia-label svg { width: 18px; height: 18px; color: var(--wine); }
body.sx-ga .corsia-label--c { margin: 14px 0 0; order: 99; }
body.sx-ga .c-f, body.sx-ga .c-c { position: relative; padding: 18px 16px 18px; border-radius: 14px; font-size: 14px; line-height: 1.5; }
body.sx-ga .c-f { background: #fff; color: var(--ink2); box-shadow: 0 0 0 1px var(--rule), 0 10px 24px -14px rgba(16, 24, 40, .25); }
body.sx-ga .c-c { background: var(--k1); color: var(--k-ink2); box-shadow: 0 18px 30px -18px rgba(14, 17, 20, .7); }
body.sx-ga .c-f b, body.sx-ga .c-c b { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: var(--ink); }
body.sx-ga .c-c b { color: #fff; }
body.sx-ga .c-f::after, body.sx-ga .c-c::before { content: ""; position: absolute; left: 50%; width: 1px; height: 26px; background: var(--rule); }
body.sx-ga .c-f::after { top: 100%; }
body.sx-ga .c-c::before { bottom: 100%; background: #C9CED4; }
body.sx-ga .binario { grid-column: 1 / -1; position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0 14px; padding: 26px 0; }
body.sx-ga .binario::before, body.sx-ga .binario-fill { content: ""; position: absolute; left: calc(100% / 12); right: calc(100% / 12); top: 56px; height: 2px; background: var(--rule); }
body.sx-ga .binario-fill { background: var(--wine); transform-origin: left center; transform: scaleX(var(--p, 1)); }
body.sx-ga .nodo { position: relative; z-index: 1; display: grid; justify-items: center; text-align: center; gap: 2px; }
body.sx-ga .nodo-c { width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 1.5px solid var(--wine); color: var(--wine);
  box-shadow: 0 0 0 8px #fff; transition: background .5s, color .5s, transform .5s var(--ease); }
body.sx-ga .nodo-c svg { width: 24px; height: 24px; }
body.sx-ga .nodo.on .nodo-c, html.statico body.sx-ga .nodo-c { background: var(--wine); color: #fff; }
body.sx-ga .nodo-n { margin-top: 10px; font: italic 400 14px/1 var(--serif); color: var(--wine); }
body.sx-ga .nodo-t { font: 400 25px/1.1 var(--serif); letter-spacing: -.01em; }
body.sx-ga .inf2-nota { margin-top: 34px; font-size: 13px; color: var(--ink2); }

/* ───────── 7. dentro Nitido (nero, con foto) ───────── */
body.sx-ga .dentro { position: relative; background: var(--k0); color: var(--k-ink); padding: 0 0 150px; overflow: hidden; }
body.sx-ga .dentro-fondo { position: absolute; left: 0; right: 0; top: 0; height: 1080px; overflow: hidden; }
body.sx-ga .dentro-fondo img { width: 100%; height: 120%; object-fit: cover; object-position: 50% 30%; will-change: transform; }
body.sx-ga .dentro-fondo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 9, 11, .78) 0%, rgba(8, 9, 11, .42) 50%, rgba(8, 9, 11, .12) 100%), linear-gradient(180deg, rgba(8, 9, 11, .25) 0%, rgba(8, 9, 11, 0) 25%, rgba(8, 9, 11, .55) 58%, var(--k0) 88%); }
body.sx-ga .dentro-h { position: relative; padding-top: 200px; max-width: 900px; min-height: 620px; }
body.sx-ga .dentro-h .h2 { font-size: clamp(42px, 7vw, 104px); color: #fff; }
body.sx-ga .dentro-h .lede { color: rgba(255, 255, 255, .78); }
body.sx-ga .sala { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.15fr); gap: 64px; align-items: center; margin-top: 150px; }
body.sx-ga .dentro-h + .sala { margin-top: 40px; }
body.sx-ga .sala--inv { grid-template-columns: minmax(0, 2.15fr) minmax(0, 1fr); }
body.sx-ga .sala--inv .sala-t { order: 2; }
body.sx-ga .sala-t { border-top: 1px solid var(--k-rule); padding-top: 22px; }
body.sx-ga .sala-t .n { font: italic 400 64px/1 var(--serif); color: var(--wine-lit); }
body.sx-ga .sala-t h3 { margin-top: 18px; font: 400 clamp(28px, 2.6vw, 38px)/1.08 var(--serif); letter-spacing: -.015em; color: #fff; }
body.sx-ga .sala-t p { margin-top: 14px; color: var(--k-ink2); font-size: 16px; }
body.sx-ga .sala-s { position: relative; perspective: 1800px; }
body.sx-ga .sala-s::before { /* passe-partout: un riquadro sottile dietro la schermata, sfalsato, per la profondità */
  content: ""; position: absolute; inset: -28px 28px 28px -28px; border: 1px solid rgba(184, 71, 92, .45); border-radius: 18px; }
body.sx-ga .sala--inv .sala-s::before { inset: -28px -28px 28px 28px; }
body.sx-ga .sala-s .shot { position: relative; border-color: rgba(255, 255, 255, .12); box-shadow: var(--sh-dark); transform-origin: 50% 100%; }
body.sx-ga .parete { margin-top: 170px; border-top: 1px solid var(--k-rule); padding-top: 40px; }
body.sx-ga .parete-h { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
body.sx-ga .parete-h h3 { font: 400 clamp(26px, 2.6vw, 38px)/1.1 var(--serif); color: #fff; letter-spacing: -.015em; }
body.sx-ga .parete-h h3 em { font-style: italic; color: var(--wine-lit); }
body.sx-ga .parete-g { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; margin-top: 40px; }
body.sx-ga .parete-g figure { display: grid; gap: 14px; }
body.sx-ga .parete-g .shot { border-color: rgba(255, 255, 255, .1); box-shadow: var(--sh-dark); }
body.sx-ga .parete-g figcaption { display: flex; gap: 10px; align-items: baseline; font-size: 14px; color: var(--k-ink2); }
body.sx-ga .parete-g figcaption b { color: #fff; font-weight: 600; }
body.sx-ga .nota-k { margin-top: 30px; font-size: 13px; color: var(--k-ink2); }

/* ───────── 8. infografica 3: due facce ───────── */
body.sx-ga .facce { position: relative; display: grid; grid-template-columns: 1fr 1fr; }
body.sx-ga .faccia { padding: 130px max(24px, calc((100vw - var(--wrap)) / 2 + 24px)) 130px; }
body.sx-ga .faccia--f { padding-right: 88px; background: #fff; }
body.sx-ga .faccia--c { padding-left: 88px; background: var(--k1); color: var(--k-ink); }
body.sx-ga .faccia .h2 { font-size: clamp(34px, 4.2vw, 60px); }
body.sx-ga .faccia--c .h2 { color: #fff; }
body.sx-ga .faccia--c .h2 em { color: var(--wine-lit); }
body.sx-ga .vantaggi { margin-top: 48px; display: grid; gap: 0; }
body.sx-ga .vantaggi li { display: grid; grid-template-columns: 52px 1fr; gap: 18px; padding: 20px 0; border-top: 1px solid var(--rule); }
body.sx-ga .faccia--c .vantaggi li { border-color: var(--k-rule); }
body.sx-ga .v-ic { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: var(--wine); background: var(--wine-veil); }
body.sx-ga .faccia--c .v-ic { color: #fff; background: rgba(184, 71, 92, .16); box-shadow: inset 0 0 0 1px rgba(184, 71, 92, .45); }
body.sx-ga .v-ic svg { width: 24px; height: 24px; }
body.sx-ga .vantaggi h3 { font: 600 17px/1.3 var(--sans); letter-spacing: -.005em; }
body.sx-ga .faccia--c .vantaggi h3 { color: #fff; }
body.sx-ga .vantaggi p { margin-top: 4px; font-size: 15px; color: var(--ink2); }
body.sx-ga .faccia--c .vantaggi p { color: var(--k-ink2); }
body.sx-ga .sigillo { position: absolute; left: 50%; top: 50%; margin-top: -74px; z-index: 3; width: 148px; height: 148px; margin-left: -74px; border-radius: 50%; display: grid; place-items: center; text-align: center;
  background: var(--wine); color: #fff; box-shadow: 0 0 0 10px #fff, 0 0 0 11px var(--rule), 0 30px 60px -20px rgba(107, 30, 44, .7); }
body.sx-ga .sigillo b { display: block; font: 400 21px/1.05 var(--serif); }
body.sx-ga .sigillo b em { font-style: italic; }
body.sx-ga .sigillo span { display: block; width: 26px; height: 1px; margin: 8px auto; background: rgba(255, 255, 255, .5); }

/* ───────── 9. portale ───────── */
body.sx-ga .portale { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 72px; align-items: center; }
body.sx-ga .portale-l { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 40px; }
body.sx-ga .portale-l li { padding: 11px 0; border-top: 1px solid var(--rule); font-size: 14.5px; line-height: 1.5; color: var(--ink2); }
body.sx-ga .portale-l li b { color: var(--ink); font-weight: 600; }
body.sx-ga .portale-l .eb { margin-bottom: 10px; }
body.sx-ga .portale-s { position: relative; padding: 0 0 70px 130px; }
body.sx-ga .portale-s .ph { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 4px; }
body.sx-ga .portale-s .ph img { width: 100%; height: 112%; object-fit: cover; object-position: 55% 0; }
body.sx-ga .portale-s .shot-w { position: absolute; left: 0; bottom: 0; width: 41%; }
body.sx-ga .portale-s .shot--tel { border-radius: 26px; border: 1px solid var(--rule); box-shadow: var(--sh-float); }
body.sx-ga .portale-tag { position: absolute; right: 22px; bottom: 94px; display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
body.sx-ga .portale-tag span { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 99px; background: rgba(255, 255, 255, .94); font-size: 13px; font-weight: 600; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .35); }
body.sx-ga .portale-tag b { font: 400 20px/1 var(--serif); color: var(--wine); }

/* ───────── 10. infografica 4: dati ───────── */
body.sx-ga .dati { padding: 140px 0 150px; background: var(--k0); color: var(--k-ink); }
body.sx-ga .dati-g { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.4fr); gap: 72px; }
body.sx-ga .dati .h2 { color: #fff; }
body.sx-ga .tessere { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--k-rule); border-left: 1px solid var(--k-rule); }
body.sx-ga .tessera { position: relative; padding: 32px 30px 34px; border-right: 1px solid var(--k-rule); border-bottom: 1px solid var(--k-rule); min-height: 290px; display: grid; align-content: space-between; gap: 26px; }
body.sx-ga .tessera h3 { font: 600 17px/1.3 var(--sans); color: #fff; }
body.sx-ga .tessera p { margin-top: 6px; font-size: 14.5px; color: var(--k-ink2); max-width: 36ch; }
body.sx-ga .tessera .grande { margin: 0; font: 400 112px/.9 var(--serif); letter-spacing: -.04em; color: #fff; }
body.sx-ga .tessera .grande em { font-style: italic; color: var(--wine-lit); }
body.sx-ga .tessera .grande small { font: 400 34px/1 var(--serif); letter-spacing: -.01em; color: var(--k-ink2); margin-left: 8px; }
body.sx-ga .anello { width: 112px; height: 112px; }
body.sx-ga .anello circle { fill: var(--wine-lit); }
body.sx-ga .anello .c { fill: none; stroke: var(--k-rule); }
body.sx-ga .archivio { display: flex; align-items: center; gap: 14px; }
body.sx-ga .archivio .box { width: 92px; height: 92px; border-radius: 22px; display: grid; place-items: center; background: var(--k2); box-shadow: inset 0 0 0 1px var(--k-rule); color: #fff; }
body.sx-ga .archivio .box svg { width: 40px; height: 40px; stroke-width: 1.3; }
body.sx-ga .archivio .fr { width: 60px; height: 2px; background: linear-gradient(90deg, var(--k-rule), var(--wine-lit)); position: relative; }
body.sx-ga .archivio .fr::after { content: ""; position: absolute; right: -2px; top: -4px; border: 5px solid transparent; border-left: 7px solid var(--wine-lit); border-right: 0; }
body.sx-ga .archivio .zip { white-space: nowrap; padding: 12px 16px; border-radius: 12px; border: 1px dashed rgba(184, 71, 92, .7); font-size: 13px; color: #fff; }
body.sx-ga .linea-t { margin-top: 56px; }
body.sx-ga .linea-t .eb { margin-bottom: 18px; }
body.sx-ga .lt { display: grid; grid-template-columns: 1.3fr .7fr 1.6fr; }
body.sx-ga .lt > div { position: relative; padding-top: 22px; }
body.sx-ga .lt > div::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; border-radius: 3px; }
body.sx-ga .lt .a::before { background: #fff; }
body.sx-ga .lt .b::before { background: linear-gradient(90deg, #fff, var(--wine-lit)); }
body.sx-ga .lt .c::before { background: repeating-linear-gradient(90deg, var(--wine-lit) 0 10px, transparent 10px 16px); }
body.sx-ga .lt b { display: block; color: #fff; font-size: 14px; font-weight: 600; }
body.sx-ga .lt span { display: block; margin-top: 4px; font-size: 13.5px; color: var(--k-ink2); padding-right: 16px; }
body.sx-ga .lt .c b { font: 400 26px/1 var(--serif); color: var(--wine-lit); }

/* ───────── 11. piani ───────── */
body.sx-ga .piani { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 64px; align-items: stretch; }
body.sx-ga .piano { position: relative; display: flex; flex-direction: column; padding: 30px 26px 26px; border-radius: 20px; text-decoration: none; color: var(--ink); background: #fff;
  box-shadow: 0 0 0 1px var(--rule), 0 12px 30px -18px rgba(16, 24, 40, .25); transition: transform .45s var(--ease), box-shadow .45s var(--ease); min-height: 410px; }
body.sx-ga .piano:hover { transform: translateY(-6px); box-shadow: 0 0 0 1px var(--rule), 0 30px 60px -24px rgba(16, 24, 40, .35); }
body.sx-ga .piano h3 { font: 400 36px/1 var(--serif); letter-spacing: -.015em; display: flex; align-items: center; gap: 10px; }
body.sx-ga .piano-p { margin-top: 26px; display: flex; gap: 8px; align-items: baseline; font-size: 13px; color: var(--ink2); }
body.sx-ga .piano-p b { font: 600 38px/1 var(--sans); letter-spacing: -.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
body.sx-ga .piano-a { margin-top: 8px; font-size: 13px; color: var(--ink2); }
body.sx-ga .piano-u { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--rule); font-size: 13.5px; font-weight: 600; }
body.sx-ga .piano-c { margin-top: 8px; font-size: 14.5px; line-height: 1.5; color: var(--ink2); }
body.sx-ga .piano .nx-btn { position: static; margin-top: auto; width: 100%; }
body.sx-ga .piano .nx-btn::after { content: ""; position: absolute; inset: 0; border-radius: 20px; }
body.sx-ga .piano:focus-within { outline: 2px solid var(--wine); outline-offset: 3px; }
body.sx-ga .piano-sp { flex: 1; min-height: 24px; }
body.sx-ga .piano--elite { background: radial-gradient(120% 80% at 20% 0%, #84303F 0%, var(--wine) 45%, #561622 100%); color: #fff; box-shadow: 0 30px 60px -28px rgba(107, 30, 44, .8); }
body.sx-ga .piano--elite .piano-p, body.sx-ga .piano--elite .piano-a, body.sx-ga .piano--elite .piano-c { color: #F3E4E7; }
body.sx-ga .piano--elite .piano-p b { color: #fff; }
body.sx-ga .piano--elite .piano-u { border-color: rgba(255, 255, 255, .22); }
body.sx-ga .piano--elite .nx-btn { background: #fff; color: var(--wine); box-shadow: none; }
body.sx-ga .piano--atelier { background: radial-gradient(120% 80% at 80% 0%, #1D2227 0%, var(--k1) 50%, #07080A 100%); color: #fff; box-shadow: inset 0 0 0 1px var(--gold-line), 0 30px 60px -28px rgba(0, 0, 0, .7); }
body.sx-ga .piano--atelier h3 { color: var(--gold); }
body.sx-ga .piano--atelier h3 svg { width: 26px; height: 26px; stroke: var(--gold); stroke-width: 1.4; }
body.sx-ga .piano--atelier .piano-p, body.sx-ga .piano--atelier .piano-a, body.sx-ga .piano--atelier .piano-c { color: #C9CED4; }
body.sx-ga .piano--atelier .piano-p b { color: #fff; }
body.sx-ga .piano--atelier .piano-u { border-color: rgba(212, 180, 122, .35); color: var(--gold); }
body.sx-ga .piano--atelier .nx-btn { background: #fff; color: var(--ink); box-shadow: none; }
body.sx-ga .piano--atelier::after { content: ""; position: absolute; inset: 10px; border-radius: 14px; border: 1px solid rgba(212, 180, 122, .18); pointer-events: none; }
body.sx-ga .nota { margin-top: 24px; font-size: 13px; color: var(--ink2); }
body.sx-ga .nota a, body.sx-ga .inf2-nota a { text-decoration: underline; text-underline-offset: 3px; }

/* ───────── 12. chiusura (la fascia comune _chiusura.html, ridisegnata solo qui) ───────── */
body.sx-ga .sx-chiusura { position: relative; overflow: hidden; background: radial-gradient(80% 120% at 85% 10%, #7E2A3A 0%, var(--wine) 45%, #4F1420 100%); color: #fff; padding: 150px 0 140px; }
body.sx-ga .sx-chiusura::before { /* la & grande: la sposta lo script con --ga-amp */
  content: "&"; position: absolute; right: -2%; top: 50%; transform: translateY(calc(-50% + var(--ga-amp, 0px))); font: italic 400 min(56vw, 760px)/.8 var(--serif); color: rgba(255, 255, 255, .06); pointer-events: none; user-select: none; }
body.sx-ga .sx-chiusura .sx-wrap { max-width: var(--wrap); }
body.sx-ga .sx-chiusura-in { position: relative; display: grid; grid-template-columns: 1.4fr 1fr; gap: 64px; align-items: end; }
body.sx-ga .sx-chiusura .nx-eb { color: #F3E4E7; }
body.sx-ga .sx-chiusura h2 { margin-top: 18px; font: 400 clamp(46px, 7.4vw, 112px)/.98 var(--serif); letter-spacing: -.03em; }
body.sx-ga .sx-chiusura h2 em { font-style: italic; color: #fff; }
body.sx-ga .sx-chiusura-d p { font-size: 17px; line-height: 1.55; color: #F3E4E7; max-width: 40ch; }

/* ───────── 13. pezzi delle altre pagine ───────── */
/* apertura con foto (fotografi, wedding planner): il testo a sinistra, a destra un ritratto con la schermata che galleggia */
body.sx-ga .hero.hero--foto { padding: 96px 0 110px; }
body.sx-ga .hero.hero--foto .hero-g { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 80px; }
body.sx-ga .hero.hero--foto h1 { font-size: clamp(44px, 6vw, 84px); line-height: 1; letter-spacing: -.03em; }
body.sx-ga .hero-foto { position: relative; padding-bottom: 56px; }
body.sx-ga .hero-foto .ph { position: relative; margin-left: 16%; aspect-ratio: 4 / 4.9; overflow: hidden; border-radius: 4px; }
body.sx-ga .hero-foto .ph img { width: 100%; height: 112%; object-fit: cover; will-change: transform; }
body.sx-ga .hero-foto .shot-w { position: absolute; left: 0; bottom: 0; width: 72%; }
body.sx-ga .hero-foto .shot { box-shadow: var(--sh-float); }

/* dentro Nitido senza foto di sfondo: il nero con un alone di vino */
body.sx-ga .dentro--semplice { background: radial-gradient(60% 46% at 88% 0%, rgba(107, 30, 44, .42), rgba(107, 30, 44, 0) 70%), var(--k0); }
body.sx-ga .dentro--semplice .dentro-h { padding-top: 150px; min-height: 0; }
body.sx-ga .dentro--semplice .dentro-h .h2 { font-size: clamp(42px, 6.4vw, 96px); }
body.sx-ga .dentro--semplice .dentro-h + .sala { margin-top: 110px; }

/* un momento del lavoro: a sinistra il numero e il titolo (fermi mentre scorri), a destra le funzioni in due colonne */
body.sx-ga .momento { padding: 140px 0; }
body.sx-ga .momento + .momento:not(.scuro), body.sx-ga .sez--riga { border-top: 1px solid var(--rule); }
body.sx-ga .momento-g { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.5fr); gap: 80px; align-items: start; }
body.sx-ga .momento-h { position: sticky; top: 120px; }
body.sx-ga .momento-h .h2 { font-size: clamp(34px, 4vw, 58px); }
body.sx-ga .momento.scuro .h2 { color: #fff; }
body.sx-ga .momento-p p { font-size: 18px; line-height: 1.6; color: var(--ink2); max-width: 52ch; }
body.sx-ga .momento-p p + p { margin-top: 18px; }
body.sx-ga .momento-p .freccia { margin-right: 28px; }
body.sx-ga .voci { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0 44px; }
body.sx-ga .voci li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 18px; align-content: start; padding: 28px 0 30px; border-top: 1px solid var(--rule); }
body.sx-ga .voci--testo li { grid-template-columns: minmax(0, 1fr); }
body.sx-ga .voci h3 { font: 600 17px/1.3 var(--sans); letter-spacing: -.005em; }
body.sx-ga .voci p { margin-top: 10px; font-size: 15px; line-height: 1.55; color: var(--ink2); }
body.sx-ga .voce-piano { display: inline-block; margin-top: 9px; padding: 5px 9px; border-radius: 99px; font: 600 10.5px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--wine); background: var(--wine-veil); }
body.sx-ga .scuro .voci li { border-color: var(--k-rule); }
body.sx-ga .scuro .voci h3 { color: #fff; }
body.sx-ga .scuro .voci p, body.sx-ga .momento.scuro .momento-p p { color: var(--k-ink2); }
body.sx-ga .scuro .voce-piano { color: #fff; background: rgba(166, 57, 79, .22); box-shadow: inset 0 0 0 1px rgba(184, 71, 92, .45); }
body.sx-ga .scuro .v-ic { color: #fff; background: rgba(184, 71, 92, .16); box-shadow: inset 0 0 0 1px rgba(184, 71, 92, .45); }
body.sx-ga .scuro .freccia { color: #fff; }

/* il portale nelle pagine dei mestieri: un solo elenco; senza schermata del telefono la foto sta da sola */
body.sx-ga .portale-u { display: block; list-style: none; }
body.sx-ga .portale-u li:last-child { border-bottom: 1px solid var(--rule); }
body.sx-ga .portale-s.portale-s--solo { padding: 0; }
body.sx-ga .portale-s.portale-s--solo .portale-tag { bottom: 22px; }

/* i simboli disegnati a mano (sito/_simboli.html): fuori dal flusso, senza stile in linea */
body.sx-ga .sx-simboli { position: absolute; overflow: hidden; }

/* la fascia con la foto a tutta larghezza (chi siamo) */
body.sx-ga .fascia-foto { position: relative; display: grid; align-items: end; min-height: min(58vw, 660px); overflow: hidden; background: var(--k0); color: #fff; }
body.sx-ga .fascia-ph { position: absolute; inset: 0; overflow: hidden; }
body.sx-ga .fascia-ph img { width: 100%; height: 118%; object-fit: cover; object-position: 50% 45%; will-change: transform; }
body.sx-ga .fascia-foto::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8, 9, 11, .82) 0%, rgba(8, 9, 11, .34) 46%, rgba(8, 9, 11, .06) 100%); }
body.sx-ga .fascia-t { position: relative; z-index: 2; padding-top: 120px; padding-bottom: 72px; }
body.sx-ga .fascia-t .eb { color: rgba(255, 255, 255, .75); }
body.sx-ga .fascia-c { margin-top: 18px; max-width: 20ch; font: 400 clamp(34px, 4.8vw, 70px)/1.02 var(--serif); letter-spacing: -.026em; text-wrap: balance; }
body.sx-ga .fascia-c em { font-style: italic; }

@media (max-width: 980px) {
  body.sx-ga .hero.hero--foto .hero-g, body.sx-ga .momento-g { grid-template-columns: 1fr; }
  body.sx-ga .hero.hero--foto .hero-g { gap: 56px; }
  body.sx-ga .momento-g { gap: 44px; }
  body.sx-ga .momento-h { position: static; }
  body.sx-ga .hero-foto .ph { margin-left: 22%; }
}
@media (max-width: 720px) {
  body.sx-ga .hero.hero--foto { padding: 48px 0 64px; }
  body.sx-ga .hero.hero--foto h1 { font-size: clamp(40px, 11vw, 54px); }
  body.sx-ga .hero-foto { padding-bottom: 40px; }
  body.sx-ga .hero-foto .ph { margin-left: 18%; }
  body.sx-ga .hero-foto .shot-w { width: 82%; }
  body.sx-ga .dentro--semplice .dentro-h { padding-top: 96px; }
  body.sx-ga .dentro--semplice .dentro-h .h2 { font-size: clamp(40px, 11vw, 54px); }
  body.sx-ga .dentro--semplice .dentro-h + .sala { margin-top: 64px; }
  body.sx-ga .momento { padding: 88px 0 92px; }
  body.sx-ga .voci { grid-template-columns: 1fr; }
  body.sx-ga .voci li { grid-template-columns: 44px minmax(0, 1fr); gap: 14px; padding: 22px 0 24px; }
  body.sx-ga .voci--testo li { grid-template-columns: minmax(0, 1fr); }
  body.sx-ga .portale-s.portale-s--solo .portale-tag { margin-left: 0; }
  /* sul telefono la foto sta sopra e il testo sotto: la coppia, in basso nella foto, resta visibile */
  body.sx-ga .fascia-foto { display: block; min-height: 0; }
  body.sx-ga .fascia-ph { position: relative; height: 400px; }
  body.sx-ga .fascia-ph img { object-position: 50% 84%; }
  body.sx-ga .fascia-foto::after { display: none; }
  body.sx-ga .fascia-t { padding-top: 36px; padding-bottom: 56px; }
  body.sx-ga .momento-p .freccia { display: flex; margin-right: 0; }
}

/* ───────── movimento ───────── */
html.moto body.sx-ga [data-r] { opacity: 0; transform: translate3d(0, 34px, 0); transition: opacity 1.1s var(--ease), transform 1.2s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
html.moto body.sx-ga [data-r="sx"] { transform: translate3d(-40px, 0, 0); }
html.moto body.sx-ga [data-r="dx"] { transform: translate3d(40px, 0, 0); }
/* prima di apparire, [data-r="dx"] sta 40 px più a destra: senza ritaglio sul telefono allargava la pagina (417 px su 390) */
body.sx-ga .sez { overflow-x: clip; }
html.moto body.sx-ga [data-r="zoom"] { transform: scale(.94); }
html.moto body.sx-ga [data-r].in { opacity: 1; transform: none; }
html.moto body.sx-ga .frammento { transition: opacity 1s var(--ease), transform 1.4s var(--ease); }
html.moto body.sx-ga .palco:not(.in) .frammento { opacity: 0; transform: translate3d(var(--fx, -40px), var(--fy, 20px), 0) rotate(calc(var(--r, 0deg) * 3)); }
html.moto body.sx-ga .palco .frammento { transition-delay: calc(var(--d, 0) * 110ms); }
html.moto body.sx-ga .palco:not(.in) .scheda { opacity: 0; transform: translate3d(40px, 0, 0) scale(.96); }
html.moto body.sx-ga .scheda { transition: opacity 1.2s var(--ease) .9s, transform 1.4s var(--ease) .9s; }
html.moto body.sx-ga .palco:not(.in) .hub-tag { transform: scale(0); }
html.moto body.sx-ga .hub-tag { transition: transform .9s cubic-bezier(.3, 1.6, .5, 1) .7s; }
html.moto body.sx-ga .vantaggi li .v-ic svg * { stroke-dasharray: 80; stroke-dashoffset: 80; transition: stroke-dashoffset 1.6s var(--ease); transition-delay: calc(var(--d, 0) * 90ms + .2s); }
html.moto body.sx-ga .vantaggi li.in .v-ic svg * { stroke-dashoffset: 0; }
html.moto body.sx-ga .hero-t > * { animation: ga-sale 1.1s var(--ease) both; }
html.moto body.sx-ga .hero-t > :nth-child(2) { animation-delay: .08s; } html.moto body.sx-ga .hero-t > :nth-child(3) { animation-delay: .18s; }
html.moto body.sx-ga .hero-t > :nth-child(4) { animation-delay: .28s; } html.moto body.sx-ga .hero-t > :nth-child(5) { animation-delay: .36s; }
html.moto body.sx-ga .hero .shot--pc { animation: ga-entra-pc 1.6s var(--ease) .15s both; }
html.moto body.sx-ga .hero .shot--tel { animation: ga-entra-tel 1.5s var(--ease) .55s both; }
html.moto body.sx-ga .anello g { animation: ga-gira 80s linear infinite; transform-origin: 56px 56px; }
@keyframes ga-sale { from { opacity: 0; transform: translate3d(0, 24px, 0); } }
@keyframes ga-entra-pc { from { opacity: 0; transform: translate3d(0, 50px, 0) rotateX(14deg) scale(.96); } }
@keyframes ga-entra-tel { from { opacity: 0; transform: translate3d(30px, 90px, 0); } }
@keyframes ga-gira { to { transform: rotate(360deg); } }
html.statico body.sx-ga .corsa { display: none; }
@media (prefers-reduced-motion: reduce) { body.sx-ga .corsa { display: none; } body.sx-ga, body.sx-ga * { animation: none !important; transition: none !important; } }

/* ───────── schermi medi ───────── */
@media (max-width: 1100px) {
  body.sx-ga .faccia--f { padding-right: 56px; } body.sx-ga .faccia--c { padding-left: 56px; }
  body.sx-ga .piani { grid-template-columns: repeat(2, 1fr); }
  body.sx-ga .piano { min-height: 0; }
  body.sx-ga .garanzie-g { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 980px) {
  body.sx-ga .hero-g, body.sx-ga .cose-g, body.sx-ga .inf1-h, body.sx-ga .inf2-h, body.sx-ga .portale, body.sx-ga .sx-chiusura-in { grid-template-columns: 1fr; }
  body.sx-ga .dati-g { grid-template-columns: minmax(0, 1fr); } /* con 1fr il contenuto più largo allargava la colonna oltre lo schermo */
  body.sx-ga .hero-g { gap: 48px; }
  body.sx-ga .cose-g { gap: 40px; }
  body.sx-ga .idee { grid-template-columns: 1fr 1fr; }
  body.sx-ga .legenda { justify-self: start; }
  /* prima / con Nitido: da palco a colonna */
  body.sx-ga .inf1-etic { display: none; }
  body.sx-ga .palco { aspect-ratio: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  body.sx-ga .palco svg.fili, body.sx-ga .hub-tag { display: none; }
  body.sx-ga .frammento { position: static; width: auto; transform: rotate(var(--r, 0deg)) !important; }
  body.sx-ga .palco::after { content: ""; grid-column: 1 / -1; height: 70px; margin: 6px auto; width: 2px; background: linear-gradient(180deg, var(--k-rule), var(--wine-lit)); }
  body.sx-ga .scheda { position: static; width: auto; grid-column: 1 / -1; order: 99; }
  body.sx-ga .inf1-piede { grid-template-columns: 1fr; }
  body.sx-ga .inf1-piede > div { padding: 22px 0; border-bottom: 1px solid var(--k-rule); }
  /* percorso: verticale */
  body.sx-ga .corsie { display: block; }
  body.sx-ga .binario { display: none; }
  body.sx-ga .corsia-label { display: none; }
  body.sx-ga .tappa-m { display: grid !important; }
  body.sx-ga .c-f, body.sx-ga .c-c { display: none; }
  body.sx-ga .mestieri { grid-template-columns: 1fr; gap: 90px; }
  body.sx-ga .sala, body.sx-ga .sala--inv { grid-template-columns: 1fr; gap: 56px; margin-top: 110px; }
  body.sx-ga .sala--inv .sala-t { order: 0; }
  body.sx-ga .parete-g { grid-template-columns: 1fr; }
  body.sx-ga .facce { grid-template-columns: 1fr; }
  body.sx-ga .faccia--f, body.sx-ga .faccia--c { padding: 110px 24px; }
  body.sx-ga .sigillo { top: auto; bottom: auto; position: relative; left: auto; margin: -74px auto; z-index: 3; }
  body.sx-ga .facce { display: flex; flex-direction: column; }
  body.sx-ga .portale-s { padding-left: 60px; }
}
body.sx-ga .tappa-m { display: none; }
body.sx-ga .tappa-m { position: relative; grid-template-columns: 54px 1fr; gap: 0 18px; padding-bottom: 34px; }
body.sx-ga .tappa-m::before { content: ""; position: absolute; left: 26px; top: 54px; bottom: 0; width: 2px; background: linear-gradient(180deg, var(--wine), var(--rule)); }
body.sx-ga .tappa-m:last-child::before { display: none; }
body.sx-ga .tappa-m .nodo-c { width: 54px; height: 54px; box-shadow: none; background: var(--wine); color: #fff; }
body.sx-ga .tappa-m .nodo-c svg { width: 22px; height: 22px; }
body.sx-ga .tappa-m h3 { font: 400 28px/1.1 var(--serif); letter-spacing: -.01em; display: flex; align-items: baseline; gap: 10px; padding-top: 10px; }
body.sx-ga .tappa-m h3 span { font: italic 400 15px/1 var(--serif); color: var(--wine); }
body.sx-ga .tappa-m .due { grid-column: 2; display: grid; gap: 10px; margin-top: 14px; }
body.sx-ga .tappa-m .c-f, body.sx-ga .tappa-m .c-c { display: block; }
body.sx-ga .tappa-m .c-f::after, body.sx-ga .tappa-m .c-c::before { display: none; }
body.sx-ga .tappa-m .lane { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font: 600 10.5px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink2); }
body.sx-ga .tappa-m .c-c .lane { color: rgba(255, 255, 255, .72); }

@media (max-width: 720px) {
  body.sx-ga .wrap, body.sx-ga .sx-chiusura .sx-wrap { padding: 0 20px; }
  body.sx-ga .hero { padding: 40px 0 44px; }
  body.sx-ga .hero .shot--tel { width: 38%; right: 0; }
  body.sx-ga .garanzie { padding: 36px 0; }
  body.sx-ga .garanzie-g { gap: 12px; }
  body.sx-ga .garanzia { padding: 8px 8px 18px; border-radius: 14px; }
  body.sx-ga .garanzia-d { height: 100px; border-radius: 10px; }
  body.sx-ga .garanzia-t { font-size: 18px; margin: 14px 6px 0; }
  body.sx-ga .garanzia-p { font-size: 13px; margin: 6px 6px 0; }
  body.sx-ga .sez, body.sx-ga .inf1, body.sx-ga .inf2, body.sx-ga .dati { padding: 88px 0 96px; }
  body.sx-ga .h2 { font-size: clamp(36px, 10.4vw, 48px); line-height: 1.02; }
  body.sx-ga .lede { font-size: 17px; }
  body.sx-ga .idee { grid-template-columns: 1fr; }
  body.sx-ga .dentro-h { min-height: 0; padding-bottom: 20px; }
  body.sx-ga .dentro-fondo::after { background: linear-gradient(180deg, rgba(8, 9, 11, .62) 0%, rgba(8, 9, 11, .72) 45%, var(--k0) 92%); }
  body.sx-ga .parete-g figcaption { display: block; }
  body.sx-ga .parete-g figcaption b { margin-right: 8px; }
  body.sx-ga .tavola { margin-top: 72px; padding-bottom: 190px; }
  body.sx-ga .tavola-foto { height: 560px; }
  body.sx-ga .tavola-foto::after { background: linear-gradient(180deg, rgba(8, 9, 11, .75) 0%, rgba(8, 9, 11, .3) 45%, rgba(8, 9, 11, .1) 70%, rgba(8, 9, 11, .4) 100%); }
  body.sx-ga .tavola-foto img { object-position: 30% 50%; }
  body.sx-ga .tavola-t { left: 20px; right: 20px; top: 44px; }
  body.sx-ga .tavola-s { left: 20px; right: 20px; width: auto; }
  body.sx-ga .tavola-s .shot--tel { width: 34%; left: auto; right: -2%; bottom: -60px; }
  body.sx-ga .palco { grid-template-columns: 1fr; gap: 10px; }
  body.sx-ga .frammento:nth-child(odd) { margin-right: 22px; } body.sx-ga .frammento:nth-child(even) { margin-left: 22px; }
  body.sx-ga .scheda { padding: 22px 18px 18px; }
  body.sx-ga .scheda-nome { font-size: 36px; }
  body.sx-ga .mestieri { margin-top: 48px; gap: 84px; }
  body.sx-ga .mestiere-foto .shot-w { width: 70%; right: -2%; }
  body.sx-ga .mestiere-t { padding: 60px 0 0; }
  body.sx-ga .dentro-fondo { height: 760px; }
  body.sx-ga .dentro-h { padding-top: 110px; }
  body.sx-ga .dentro-h .h2 { font-size: clamp(42px, 12vw, 56px); }
  body.sx-ga .sala, body.sx-ga .sala--inv { margin-top: 90px; gap: 44px; }
  body.sx-ga .sala-s::before, body.sx-ga .sala--inv .sala-s::before { inset: -14px 14px 14px -14px; }
  body.sx-ga .sala-t .n { font-size: 48px; }
  body.sx-ga .parete { margin-top: 110px; }
  body.sx-ga .faccia--f, body.sx-ga .faccia--c { padding: 88px 20px; }
  body.sx-ga .faccia--c { padding-top: 110px; }
  body.sx-ga .vantaggi li { grid-template-columns: 44px 1fr; gap: 14px; }
  body.sx-ga .v-ic { width: 44px; height: 44px; } body.sx-ga .v-ic svg { width: 21px; height: 21px; }
  body.sx-ga .sigillo { width: 132px; height: 132px; margin: -66px auto; }
  body.sx-ga .portale-l { grid-template-columns: 1fr; gap: 26px; }
  body.sx-ga .portale-s { padding: 0 0 70px 56px; }
  body.sx-ga .portale-s { display: flex; flex-direction: column; }
  body.sx-ga .portale-tag { position: static; order: -1; justify-content: flex-start; margin: 0 0 14px -56px; }
  body.sx-ga .portale-s .shot-w { width: 48%; }
  body.sx-ga .portale-s .shot--tel { border-radius: 20px; }
  body.sx-ga .portale-tag span { padding: 7px 11px; font-size: 12px; }
  body.sx-ga .tessere { grid-template-columns: minmax(0, 1fr); }
  body.sx-ga .tessera { min-height: 0; padding: 28px 22px; }
  body.sx-ga .tessera .grande { font-size: 92px; }
  body.sx-ga .lt { grid-template-columns: 1fr; gap: 22px; }
  body.sx-ga .piani { grid-template-columns: 1fr; }
  body.sx-ga .sx-chiusura { padding: 100px 0; }
  body.sx-ga .sx-chiusura::before { font-size: 120vw; right: -20%; }
}

/* ───────── ritocchi per la pagina dentro la cornice del sito ───────── */
body.sx-ga section[id] { scroll-margin-top: 64px; }                       /* la testata fissa non copre i titoli delle ancore */
body.sx-ga #cose.sez { padding-bottom: 0; }
body.sx-ga #a-chi-serve .h2 { max-width: 15ch; }
body.sx-ga .mestieri article:nth-child(2) { margin-top: 120px; }
body.sx-ga .legenda b { color: var(--ink); }
body.sx-ga .inf1 .h2 { color: #fff; }
body.sx-ga .tavola-t .eb, body.sx-ga .dentro-h .eb { color: rgba(255, 255, 255, .75); }
body.sx-ga .sala-t .eb { margin-top: 18px; }
body.sx-ga .shot-w .shot { width: 100%; }
body.sx-ga .piano:focus-within .nx-btn:focus-visible { outline: 0; }
@media (max-width: 360px) { body.sx-ga .archivio .fr { width: 28px; } body.sx-ga .archivio .zip { white-space: normal; } }
