/* Landing «Christmas Packaging 2026» · Flavio Sampaolo S.r.l.
   Mobile-first: le regole senza media query sono il telefono (390 px), poi si sale.
   Ogni colore, spazio, raggio e durata viene da tokens.css. I colori derivati si ottengono
   con color-mix() dai token, mai scritti a mano. */

@import url("/css/tokens.css");
@import url("/css/fonts.css");

/* ------------------------------------------------------------------ base */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--gutter);
}

body {
  margin: 0;
  background: var(--crema);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

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

p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 500; }

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--rosso);
  outline-offset: 3px;
  border-radius: 6px;
}

.vh {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.salta {
  position: absolute;
  left: var(--gutter);
  top: -80px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--carta);
  border-radius: var(--r-pill);
  text-decoration: none;
}
.salta:focus { top: var(--gutter); }

.contenitore {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sezione { padding-top: var(--section-y); }
.sezione--stretta { padding-top: calc(var(--section-y) * 0.6); }

/* ------------------------------------------------------------------ tipografia */

.eyebrow {
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  font-weight: 600;
  color: var(--rosso);
}

.titolo-2 {
  font-size: var(--fs-h2);
  line-height: var(--lh-title);
  letter-spacing: var(--tracking-title);
  font-weight: 500;
  text-wrap: balance;
}

/* Accento editoriale v2: le parole marcate *x* in copy.md. Stessa dimensione del testo
   intorno, corretta otticamente con --serif-scala. Mai su blocchi interi. */
.serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: calc(1em * var(--serif-scala));
  line-height: 1;
  letter-spacing: 0;
}
/* Nei titoli il serif sale a 600: con le aste di Source Serif pesa quanto Outfit accanto. */
:is(h1, h2, h3, .hero__titolo, .titolo-2, .grazie__titolo) .serif {
  font-weight: 600;
  letter-spacing: -0.01em;
}
.hero__titolo .serif,
.titolo-2 .serif { color: var(--rosso); }
.pannello--verde .serif { color: var(--oro-chiaro); }
strong { font-weight: 600; }

.lead {
  font-size: var(--fs-lead);
  color: var(--ink-soft);
  max-width: 44ch;
}

.etichetta-laterale {
  font-size: var(--fs-label);
  font-weight: 500;
  line-height: 1.35;
  color: var(--ink-soft);
  max-width: 18ch;
}

.etichetta-centrale {
  font-size: var(--fs-label);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  font-weight: 500;
  color: var(--oro-chiaro);
}

/* ------------------------------------------------------------------ bottoni */

.bottone {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 30px;
  border: 0;
  border-radius: var(--r-pill);
  font: inherit;
  font-size: var(--fs-body);
  font-weight: 500;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform var(--dur-fast) var(--ease-out),
    background-color var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out);
}
.bottone:active { transform: scale(0.97); }

.bottone--rosso { background: var(--rosso); color: var(--carta); }
.bottone--rosso:hover { background: var(--rosso-scuro); }

.bottone--carta { background: var(--carta); color: var(--ink); }
.bottone--carta:hover { background: var(--crema-2); }

.bottone--verde { background: var(--verde); color: var(--on-dark); }
.bottone--verde:hover { background: var(--verde-2); }

.bottone--linea {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--ink);
}
.bottone--linea:hover { background: var(--ink); color: var(--carta); }

.bottone--piccolo { min-height: 44px; padding: 0 20px; font-size: 0.9375rem; }
.bottone--largo { width: 100%; min-height: 60px; }

.bottone[disabled] { cursor: progress; opacity: 0.72; }

/* bottone + pill, come «Let's go! · PRICE 20€» del riferimento */
.azione {
  display: flex;
  align-items: stretch;
  flex-wrap: nowrap;
}
.azione .bottone { padding: 0 24px; white-space: nowrap; }
.azione--centro { justify-content: center; }

.pill {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-height: 56px;
  margin-left: -26px;
  padding: 6px 18px 6px 40px;
  border-radius: var(--r-pill);
  box-shadow: inset 0 0 0 1.5px var(--ink);
  color: var(--ink);
  line-height: 1;
}
.pill__k {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
}
.pill__v {
  margin-top: 4px;
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.pill--scura {
  background: var(--verde-2);
  color: var(--on-dark);
  box-shadow: none;
}

.link-freccia {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--rosso);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 5px;
}
.link-freccia::after {
  content: "";
  width: 10px; height: 10px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform var(--dur-fast) var(--ease-out);
}
.link-freccia:hover::after { transform: translateX(4px) rotate(45deg); }

/* ------------------------------------------------------------------ numeri (pin, passi) */

.numero {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--rosso);
  color: var(--carta);
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

/* ------------------------------------------------------------------ pannelli */

.pannello {
  position: relative;
  border-radius: var(--r-panel);
  padding: 36px 20px;
}
.pannello--crema { background: var(--crema-2); }
.pannello--verde { background: var(--verde); color: var(--on-dark); overflow: hidden; }

/* ------------------------------------------------------------------ nav */

.nav {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 40;
  padding-top: 12px;
}
.nav__riga {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 64px;
}
.nav__menu {
  display: inline-grid;
  place-content: center;
  gap: 5px;
  width: 48px; height: 48px;
  border: 0;
  border-radius: 50%;
  background: var(--carta);
  color: var(--ink);
  cursor: pointer;
}
.nav__menu-linea {
  display: block;
  width: 16px; height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform var(--dur-fast) var(--ease-out);
}
.nav__menu[aria-expanded="true"] .nav__menu-linea:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav__menu[aria-expanded="true"] .nav__menu-linea:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.nav__logo { display: block; width: 52px; height: 52px; flex: none; border-radius: 50%; }
.nav__logo img { width: 100%; height: 100%; }

.nav__voci {
  position: absolute;
  top: calc(100% + 4px);
  left: var(--gutter);
  right: var(--gutter);
  display: none;
  flex-direction: column;
  padding: 10px;
  background: var(--carta);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-float);
}
.nav__voci.is-aperto { display: flex; }
.nav__voci a {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 0 14px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 500;
}
.nav__voci a:hover { background: var(--crema); }

.nav__pill {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: var(--r-pill);
  box-shadow: inset 0 0 0 1.5px var(--ink);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.nav__pill:hover { background: var(--ink); color: var(--carta); }

/* ------------------------------------------------------------------ nastro */

/* v2: foto vera di un nastro in organza (con trasparenza) rivelata da una maschera SVG
   che segue la sua linea centrale. Solo stroke-dashoffset, durata e curva dai token.
   dashoffset 1.02 e non 1: a 1 il tratto a lunghezza zero con cap tondo disegna un puntino. */
.nastro {
  position: absolute;
  top: 0;
  left: 0;
  aspect-ratio: 3 / 2;
  pointer-events: none;
}
.nastro svg { width: 100%; height: 100%; overflow: visible; }
.nastro__maschera {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1 2;
  stroke-dashoffset: 1.02;
  transition: stroke-dashoffset var(--dur-nastro) var(--ease-in-out) var(--ritardo-nastro);
}
.nastro.is-srotolato .nastro__maschera { stroke-dashoffset: 0; }
html.no-js .nastro { display: none; }

/* ------------------------------------------------------------------ 1 · hero */

.hero {
  position: relative;
  isolation: isolate;
  padding-top: 92px;
  overflow-x: clip;
  overflow-y: visible;
}
/* Telefono: la foto con i numeri sale subito dopo titolo e bottone, cosi' chi arriva
   dall'annuncio la ritrova nella prima schermata; il sottotitolo scende sotto la foto. */
.hero__griglia {
  display: flex;
  flex-direction: column;
}
.hero__testo { display: contents; }
.hero__testo > * { position: relative; z-index: 3; }
.hero__testo .eyebrow { order: 1; }
.hero__titolo { order: 2; }
.hero__testo .azione { order: 3; }
.etichetta-laterale--piva { order: 4; }
.hero__foto { order: 5; margin-top: 26px; }
.hero__sotto { order: 6; }
.hero__titolo {
  margin: 14px 0 18px;
  font-size: var(--fs-h1);
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-title);
  font-weight: 500;
  text-wrap: balance;
}
.hero__sotto {
  font-size: var(--fs-lead);
  color: var(--ink-soft);
  max-width: 48ch;
  margin-top: 24px;
}
.etichetta-laterale--piva {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  max-width: none;
  color: var(--ink);
}
.etichetta-laterale--piva::before {
  content: "";
  width: 28px; height: 2px;
  background: var(--rosso);
}

/* Nastro dell'hero: misure in % della larghezza della foto (i margini in % si
   calcolano sulla larghezza), cosi' l'anello resta sopra lo spazio fra i due
   pacchi in alto a ogni viewport. */
.nastro--hero {
  z-index: 2;
  width: 180%;
  margin-left: -71%;   /* anello a 0,58 della foto, coda sinistra fuori pagina, coda destra oltre il bordo */
  margin-top: -19%;    /* anello appena sotto il bordo alto: e' il fiocco del pacco */
}

.hero__foto {
  position: relative;
  z-index: auto;
  --taglio: 0.067;
}
.hero__telaio {
  position: relative;
  z-index: 1;
  aspect-ratio: 10 / 11;
  border-radius: var(--r-panel);
  overflow: hidden;
  background: var(--crema-2);
}
.hero__piano {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  aspect-ratio: 4 / 5;
  transform: translateY(calc(var(--taglio) * -100%));
}
.hero__piano img { width: 100%; height: 100%; object-fit: cover; }
.hero__piano--pin { z-index: 4; pointer-events: none; }

.hero__suggerimento {
  margin-top: 14px;
  font-size: 0.9375rem;
  color: var(--ink-soft);
  text-align: center;
}

/* pin */
.pin {
  position: absolute;
  width: 44px; height: 44px;
  margin: -22px 0 0 -22px;
  pointer-events: auto;
  transition:
    transform var(--dur) cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity var(--dur) var(--ease-out);
}
/* I numeri compaiono uno alla volta quando il nastro passa loro accanto (js/pagina.js, calendarioPin) */
html.js .hero .pin:not(.is-visibile) { opacity: 0; transform: scale(0.6); }

/* Coordinate in % della foto p09 intera (1010x1262), piano 4:5 */
.pin--1 { left: 36.8%; top: 34.0%; --i: 0; }
.pin--2 { left: 16.7%; top: 80.5%; --i: 1; }
.pin--3 { left: 87.9%; top: 84.5%; --i: 2; }
.pin--4 { left: 40.6%; top: 67.0%; --i: 3; }
.pin--5 { left: 72.7%; top: 34.2%; --i: 4; }
.pin--6 { left: 10.4%; top: 58.7%; --i: 5; }
.pin--desk { display: none; }

.pin__bottone {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  border-radius: 50%;
}
.pin__bottone > span[aria-hidden] {
  display: grid;
  place-items: center;
  width: var(--pin-size-mobile);
  height: var(--pin-size-mobile);
  border-radius: 50%;
  background: var(--rosso);
  color: var(--carta);
  font-weight: 600;
  font-size: 0.9375rem;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 0 0 3px var(--carta);
  transition: transform var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out);
}
.pin__bottone:hover > span[aria-hidden],
.pin__bottone[aria-expanded="true"] > span[aria-hidden] {
  transform: scale(1.12);
  background: var(--rosso-scuro);
}

.pin__etichetta {
  position: absolute;
  bottom: calc(100% + 4px);
  left: 50%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: max-content;
  max-width: 220px;
  padding: 10px 14px 11px;
  border-radius: 14px;
  background: var(--crema);
  box-shadow: var(--shadow-float);
  transform: translateX(-50%);
  font-size: 0.875rem;
  line-height: 1.35;
  color: var(--ink);
  animation: pin-apri var(--dur) var(--ease-out);
}
.pin__etichetta[hidden] { display: none; }
.pin__etichetta strong {
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rosso);
}
@keyframes pin-apri {
  from { opacity: 0; transform: translateX(-50%) translateY(6px) scale(0.96); }
  to { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}

/* ------------------------------------------------------------------ 2 · come funziona */

.come {
  display: grid;
  gap: 24px;
}
.come__titolo { max-width: 16ch; }
.come__mock { margin: 8px 0 4px; }

.telefono { display: grid; justify-items: center; gap: 14px; }
.telefono__schermo {
  width: min(100%, 320px);
  aspect-ratio: 2 / 3;
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--crema);
}
.telefono__video { width: 100%; height: 100%; object-fit: cover; }
.telefono__didascalia {
  max-width: 30ch;
  font-size: 0.9375rem;
  line-height: 1.45;
  text-align: center;
  color: var(--ink-soft);
}

.passi {
  display: grid;
  gap: 26px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}
.passo {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  align-items: start;
}
.passo__titolo {
  margin: 6px 0 8px;
  font-size: var(--fs-h3);
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.passo p { color: var(--ink-soft); max-width: 46ch; }

/* ------------------------------------------------------------------ 3 · form */

.form-griglia { display: grid; gap: 28px; }
.form-intro .titolo-2 { margin-bottom: 14px; max-width: 14ch; }
/* Telefono: foto piccola accanto al sottotitolo, cosi' il form resta vicino */
.form-intro {
  display: grid;
  grid-template-columns: minmax(0, 36%) minmax(0, 1fr);
  column-gap: 16px;
  align-items: center;
}
.form-intro .titolo-2 { grid-column: 1 / -1; }
.form-intro .lead { grid-column: 2; grid-row: 2; }
.form-foto {
  grid-column: 1;
  grid-row: 2;
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--crema-2);
}
.form-foto img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }

.modulo {
  padding: 26px 16px 22px;
  background: var(--carta);
  border-radius: var(--r-panel);
}
.modulo__blocco {
  display: grid;
  gap: 18px;
  min-width: 0;
  margin: 0 0 30px;
  padding: 0;
  border: 0;
}
.modulo__legenda {
  float: left;
  grid-column: 1 / -1;
  width: 100%;
  margin-bottom: 4px;
  padding: 0 0 12px;
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 14%, transparent);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--rosso);
}
.modulo__legenda + * { clear: both; }

.campo { min-width: 0; }
.campo label {
  display: block;
  margin-bottom: 7px;
  font-weight: 500;
  font-size: 1rem;
}
.campo input,
.campo select {
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  border: 1.5px solid color-mix(in srgb, var(--ink) 22%, transparent);
  border-radius: var(--r-field);
  background: var(--carta);
  color: var(--ink);
  font: inherit;
  font-size: var(--fs-body);
  transition: border-color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out);
}
.campo input::placeholder { color: var(--ink-soft); opacity: 0.85; }
.campo input:hover,
.campo select:hover { border-color: color-mix(in srgb, var(--ink) 45%, transparent); }
.campo input:focus,
.campo select:focus {
  outline: 2px solid var(--rosso);
  outline-offset: 1px;
  border-color: var(--rosso);
}
.campo [aria-invalid="true"] {
  border-color: var(--errore);
  background: var(--errore-bg);
}
.campo__aiuto {
  margin-top: 7px;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--ink-soft);
}
.campo__errore {
  margin-top: 7px;
  font-size: 0.9375rem;
  line-height: 1.4;
  font-weight: 500;
  color: var(--errore);
}

.select { position: relative; }
.select select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 44px;
  cursor: pointer;
}
.select::after {
  content: "";
  position: absolute;
  right: 20px;
  top: 50%;
  width: 8px; height: 8px;
  margin-top: -6px;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: rotate(45deg);
  pointer-events: none;
}

.modulo__domanda {
  float: left;
  grid-column: 1 / -1;
  width: 100%;
  margin-bottom: 12px;
  padding: 0;
  font-weight: 500;
}
.scelta {
  clear: both;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.scelta__voce { position: relative; display: block; cursor: pointer; }
.scelta__voce input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}
.scelta__voce span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border-radius: var(--r-pill);
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--ink) 22%, transparent);
  font-weight: 500;
  transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.scelta__voce input:checked + span {
  background: var(--verde);
  color: var(--on-dark);
  box-shadow: none;
}
.scelta__voce input:focus-visible + span {
  outline: 2px solid var(--rosso);
  outline-offset: 3px;
}

.consensi {
  display: grid;
  gap: 16px;
  padding-top: 22px;
  border-top: 1px solid color-mix(in srgb, var(--ink) 14%, transparent);
}
.spunta {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 4px 14px;
  align-items: start;
}
.spunta input {
  appearance: none;
  -webkit-appearance: none;
  display: grid;
  place-content: center;
  width: 26px; height: 26px;
  margin: 1px 0 0;
  border: 1.5px solid color-mix(in srgb, var(--ink) 40%, transparent);
  border-radius: 8px;
  background: var(--carta);
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.spunta input::after {
  content: "";
  width: 7px; height: 12px;
  margin-top: -3px;
  border-right: 2.5px solid var(--carta);
  border-bottom: 2.5px solid var(--carta);
  transform: rotate(45deg) scale(0);
  transition: transform var(--dur-fast) var(--ease-out);
}
.spunta input:checked { background: var(--rosso); border-color: var(--rosso); }
.spunta input:checked::after { transform: rotate(45deg) scale(1); }
.spunta input[aria-invalid="true"] { border-color: var(--errore); background: var(--errore-bg); }
.spunta label {
  font-size: 0.9375rem;
  line-height: 1.5;
  cursor: pointer;
  padding-block: 1px;
}
.spunta label a { color: var(--rosso); text-underline-offset: 3px; }
.spunta .campo__errore { grid-column: 2; margin-top: 0; }

.trappola {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.modulo__disclaimer {
  margin: 26px 0 14px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink);
}

.avviso-errore {
  margin-top: 16px;
  padding: 18px;
  border-radius: var(--r-card);
  background: var(--errore-bg);
  color: var(--ink);
}
.avviso-errore p { margin-bottom: 14px; font-weight: 500; }
.avviso-errore[hidden] { display: none; }

/* ------------------------------------------------------------------ 4 · per chi è */

.testata {
  display: grid;
  gap: 14px;
  margin-bottom: 32px;
}
.testata .titolo-2 { max-width: 18ch; }

/* Tre card foto uguali. Su mobile scorrono in orizzontale con snap (il contenitore
   sborda fino ai bordi dello schermo, la pagina no); da 1024px griglia a 3 colonne. */
.bento {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(80%, 340px);
  align-items: stretch;
  gap: var(--gap);
  margin-inline: calc(-1 * var(--gutter));
  padding: 4px var(--gutter) 12px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: thin;
  scrollbar-color: var(--oro) transparent;
}
.bento:focus-visible { outline: 2px solid var(--rosso); outline-offset: 2px; }
.bento__card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--carta);
  scroll-snap-align: start;
}
.bento__card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 50%; }
.bento__didascalia { padding: 18px 18px 22px; }
.bento__tag {
  margin-bottom: 8px;
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rosso);
  line-height: 1.3;
}
.bento__didascalia p { font-size: 1rem; line-height: 1.45; }

/* Fascia verde sotto le card: i due testi che prima stavano nelle card scura e oro. */
.fascia-perchi {
  display: grid;
  gap: 24px;
  margin-top: var(--gap);
  padding: 32px 22px;
  border-radius: var(--r-card);
  background: var(--verde);
  color: var(--on-dark);
  font-size: var(--fs-h3);
  line-height: 1.35;
  letter-spacing: -0.005em;
}
.fascia-perchi p { position: relative; padding-left: 22px; max-width: 34ch; }
.fascia-perchi p::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--rosso);
  box-shadow: 0 0 0 2px var(--oro);
}
.fascia-perchi .serif { color: var(--oro-chiaro); }
.fascia-perchi strong { color: var(--on-dark); }

/* ------------------------------------------------------------------ 5 · accanto al panettone */

.accanto { display: grid; gap: 18px; }
.accanto__titolo { max-width: 16ch; }
.accanto__foto {
  margin-top: 10px;
  border-radius: var(--r-panel);
  overflow: hidden;
  background: var(--crema-2);
}
.accanto__foto img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.accanto__testo { padding-top: 8px; }
.accanto__corpo { font-size: var(--fs-lead); max-width: 44ch; }
.righe {
  display: grid;
  gap: 20px;
  margin: 30px 0 34px;
  padding: 0;
  list-style: none;
}
.riga {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  align-items: start;
}
.riga p { padding-top: 1px; color: var(--ink-soft); max-width: 44ch; }
.riga__titolo {
  display: block;
  margin-bottom: 2px;
  font-size: 1.125rem;
  color: var(--ink);
}

/* ------------------------------------------------------------------ 6 · finestra */

.finestra { padding: 56px 20px 0; text-align: center; }
.finestra__testo { max-width: 780px; margin-inline: auto; }
.finestra .titolo-2 { margin: 14px auto 18px; max-width: 16ch; }
.finestra__corpo {
  max-width: 58ch;
  margin: 0 auto 30px;
  color: var(--on-dark-soft);
}

.collage {
  --scala: 0.44;
  position: relative;
  height: calc(460px * var(--scala) + 40px);
  margin: 40px -20px 0;
}
.cerchio {
  position: absolute;
  left: var(--x);
  top: calc(var(--y) * var(--scala) + 20px);
  width: calc(var(--d) * var(--scala));
  height: calc(var(--d) * var(--scala));
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--verde);
  transform: translate3d(0, var(--py, 0px), 0);
  will-change: transform;
}
.cerchio--1 { --x: -3%; --y: 100px; --d: 300px; }
.cerchio--2 { --x: 19%; --y: 10px;  --d: 170px; }
.cerchio--3 { --x: 28%; --y: 190px; --d: 250px; }
.cerchio--4 { --x: 46%; --y: 30px;  --d: 320px; }
.cerchio--5 { --x: 69%; --y: 0px;   --d: 150px; }
.cerchio--6 { --x: 73%; --y: 160px; --d: 290px; }

/* ------------------------------------------------------------------ 6 · dal vivo */

.vivo { display: grid; gap: 30px; }
.vivo .titolo-2 { margin: 12px 0 28px; max-width: 17ch; }
.appuntamenti {
  display: grid;
  gap: 22px;
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
}
.appuntamento {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 16px;
  align-items: start;
}
.appuntamento__chip {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  border-radius: 16px;
  background: var(--rosso);
  color: var(--carta);
  font-size: 1.375rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
/* Icone v3 disegnate su misura, a linea: cartellino regalo col fiocco (data) e goccia
   con il nastro alla base (indirizzo). Tratto in --rosso, eco sfalsata di 2px in --oro. */
.appuntamento__icona { display: grid; place-items: start center; }
.icona { display: block; overflow: visible; }
.icona__tratto,
.icona__eco {
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icona__tratto { stroke: var(--rosso); }
.icona__eco { stroke: var(--oro); stroke-width: 1.25; }
.icona__fondo { fill: var(--carta); }
.icona__nastro { stroke-width: 1.25; }
.icona__mese {
  fill: var(--rosso);
  font-family: var(--font);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
}
.icona__giorno {
  fill: var(--ink);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.appuntamento__link { text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.appuntamento__link:hover { color: var(--rosso); }

.appuntamento__titolo {
  margin: 2px 0 6px;
  font-size: 1.125rem;
  line-height: 1.3;
  font-weight: 600;
}
.appuntamento p { color: var(--ink-soft); max-width: 50ch; }
.vivo__foto {
  border-radius: var(--r-card);
  overflow: hidden;
}
.vivo__foto img { width: 100%; height: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 50%; }

/* Mappa dello showroom (mappa/genera.py): fondo SVG come immagine, sopra via, nomi e pin nel font della pagina.
   Fondo e strato sopra hanno lo stesso viewBox e lo stesso ritaglio centrato, quindi combaciano a ogni larghezza. */
.vivo__mappa {
  position: relative; display: block; aspect-ratio: 4 / 5;
  border-radius: var(--r-card); overflow: hidden; background: #EDE3D6;
  color: inherit; text-decoration: none; isolation: isolate;
}
.vivo__mappa img, .mappa__sopra { position: absolute; inset: 0; width: 100%; height: 100%; }
.vivo__mappa img { object-fit: cover; object-position: 50% 50%; }
.mappa__via {
  font-family: var(--font); font-weight: 600; font-size: 56px; letter-spacing: .02em;
  fill: var(--ink-soft); paint-order: stroke; stroke: var(--carta); stroke-width: 8px; stroke-linejoin: round;
}
.mappa__punto { fill: var(--rosso); stroke: var(--carta); stroke-width: 6; }
.mappa__cuore { fill: var(--carta); }
.mappa__onda { fill: var(--rosso); opacity: .25; transform-box: fill-box; transform-origin: center; animation: mappa-onda 2.4s ease-out infinite; }
@keyframes mappa-onda { from { transform: scale(1); opacity: .35; } to { transform: scale(3.2); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .mappa__onda { animation: none; } }
.mappa__cartellino rect, .mappa__cartellino path { fill: var(--ink); }
.mappa__cartellino text { font-family: var(--font); font-weight: 600; font-size: 56px; fill: var(--carta); }
.vivo__mappa-apri {
  position: absolute; left: 14px; bottom: 14px; padding: 8px 14px; border-radius: var(--r-pill);
  background: var(--carta); color: var(--ink); font-size: var(--fs-label); font-weight: 600;
  box-shadow: 0 4px 16px rgba(42, 26, 18, .12); transition: background .2s, color .2s;
}
.vivo__mappa-apri::after { content: " \2197"; }
.vivo__mappa:hover .vivo__mappa-apri, .vivo__mappa:focus-visible .vivo__mappa-apri { background: var(--rosso); color: var(--carta); }
.vivo__mappa:focus-visible { outline: 3px solid var(--rosso); outline-offset: 4px; }
.vivo__mappa-fonte {
  position: absolute; right: 10px; bottom: 8px; font-size: 11px; color: var(--ink-soft);
  background: rgba(251, 248, 244, .8); padding: 1px 6px; border-radius: 4px;
}

/* ------------------------------------------------------------------ 7 · chi siamo */

.chi { position: relative; isolation: isolate; overflow-x: clip; }
.chi__griglia { display: grid; gap: 18px; }
.chi__titolo { max-width: 13ch; margin-bottom: 8px; }
.chi__testo { display: grid; gap: 18px; max-width: 52ch; }
.chi__foto { margin: 16px 0 0; max-width: 440px; }
.chi__cornice {
  border-radius: var(--r-panel);
  overflow: hidden;
  background: var(--crema-2);
}
.chi__cornice img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 60% 30%; }
.chi__didascalia { margin-top: 12px; font-size: 0.875rem; color: var(--ink-soft); }

/* ------------------------------------------------------------------ 8 · domande */

.domande { display: grid; gap: 24px; }
.domande__lista { border-bottom: 1px solid color-mix(in srgb, var(--ink) 16%, transparent); }
.domanda { border-top: 1px solid color-mix(in srgb, var(--ink) 16%, transparent); }
.domanda summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 64px;
  padding: 16px 0;
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
}
.domanda summary::-webkit-details-marker { display: none; }
.domanda summary::after {
  content: "";
  flex: none;
  width: 36px; height: 36px;
  border-radius: 50%;
  background:
    linear-gradient(currentColor, currentColor) center / 14px 2px no-repeat,
    linear-gradient(currentColor, currentColor) center / 2px 14px no-repeat,
    var(--crema-2);
  transition: transform var(--dur) var(--ease-out), background-color var(--dur-fast) var(--ease-out);
}
.domanda[open] summary::after { transform: rotate(45deg); }
.domanda summary:hover::after { background-color: var(--oro-chiaro); }
.domanda p {
  max-width: 62ch;
  padding: 0 48px 22px 0;
  color: var(--ink-soft);
}
.domanda[open] p { animation: apri-risposta var(--dur) var(--ease-out); }
.domanda a { color: var(--rosso); text-underline-offset: 3px; }
@keyframes apri-risposta {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------------ 9 · cta finale */

.finale {
  isolation: isolate;
  min-height: 560px;
  padding: 52px 20px 300px;
}
.finale__foto {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 340px;
  z-index: 0;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, var(--ink) 55%);
  mask-image: linear-gradient(to bottom, transparent 0%, var(--ink) 55%);
}
.finale__foto img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
/* Finale: il nastro vive sulla foto, lontano dal testo. Entra dal bordo basso del pannello
   (che lo ritaglia con il suo raggio), fa l'anello sulla foto ed esce oltre il bordo destro. */
.nastro--finale { z-index: 1; top: auto; bottom: -80px; width: 166%; margin-left: -64%; }
.finale__testo { position: relative; z-index: 2; }
.finale__titolo { max-width: 14ch; margin-bottom: 28px; }
.finale__nota { margin-top: 22px; font-size: 0.9375rem; color: var(--on-dark-soft); }

/* ------------------------------------------------------------------ 10 · footer */

.piede { padding: 16px 0 calc(96px + env(safe-area-inset-bottom)); }
.piede__pannello {
  display: grid;
  gap: 20px;
  padding: 32px 0;
}
.piede__logo { width: 64px; height: 64px; }
.piede__dati { display: grid; gap: 8px; font-size: 0.9375rem; color: var(--ink-soft); }
.piede__dati a { color: var(--ink); text-underline-offset: 3px; }
.piede__dati a:hover { color: var(--rosso); }
.piede__piva { margin-top: 6px; color: var(--ink); font-weight: 500; }

/* ------------------------------------------------------------------ 11 · barra sticky mobile */

.barra {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 50;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  transform: translateY(120%);
  transition: transform var(--dur) var(--ease-out);
  pointer-events: none;
}
.barra.is-visibile { transform: none; pointer-events: auto; }
.barra__bottone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 56px;
  border-radius: var(--r-pill);
  background: var(--rosso);
  color: var(--carta);
  box-shadow: var(--shadow-float);
  font-weight: 500;
  text-decoration: none;
}
.barra__pill {
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: var(--carta);
  color: var(--rosso);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
body.ha-banner .barra { transform: translateY(120%); pointer-events: none; }

/* ------------------------------------------------------------------ 12 · banner cookie */

/* v3: modale centrato. Il velo oscura la pagina finche' non arriva una scelta. */
html.ha-modale,
html.ha-modale body { overflow: hidden; }
.cookie-velo {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: var(--gutter);
  padding-bottom: calc(var(--gutter) + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--ink) 55%, transparent);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity var(--dur-fast) var(--ease-out);
}
.cookie-velo[hidden] { display: none; }
.cookie-velo.is-aperto { opacity: 1; }
.banner {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: calc(100dvh - 2 * var(--gutter));
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 22px 20px 16px;
  border-radius: var(--r-card);
  background: var(--carta);
  box-shadow: var(--shadow-float);
  font-size: 0.9375rem;
  line-height: 1.5;
  opacity: 0;
  transform: scale(0.96);
  transition: opacity var(--dur-modale) var(--ease-out), transform var(--dur-modale) var(--ease-out);
}
.cookie-velo.is-aperto .banner { opacity: 1; transform: none; }
.banner__titolo {
  margin: 0 0 8px;
  padding-right: 40px;
  font-size: var(--fs-h3);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.banner__testo { color: var(--ink-soft); }
.banner__chiudi {
  position: absolute;
  top: 10px; right: 10px;
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.banner__chiudi:hover { background: var(--crema-2); }
.banner__chiudi:focus-visible { outline: 2px solid var(--rosso); outline-offset: -2px; }
/* Le tre scelte hanno la stessa evidenza: stesso stile, stessa misura */
.bottone--scelta {
  flex: 1 1 0;
  background: var(--carta);
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--ink);
  white-space: nowrap;
}
.bottone--scelta:hover,
.bottone--scelta[aria-expanded="true"] { background: var(--ink); color: var(--carta); }
.banner__azioni .bottone--scelta { padding: 0 12px; }
.banner__pannello {
  display: grid;
  gap: 4px;
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid color-mix(in srgb, var(--ink) 14%, transparent);
}
.banner__pannello[hidden] { display: none; }
.banner__salva { justify-self: start; margin-top: 8px; }
.interruttore {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 52px;
}
.interruttore__etichetta { display: grid; cursor: pointer; order: 1; }
.interruttore__etichetta strong { font-weight: 600; }
.interruttore__etichetta span { font-size: 0.875rem; color: var(--ink-soft); }
.interruttore__input {
  order: 2;
  appearance: none;
  -webkit-appearance: none;
  flex: none;
  position: relative;
  width: 52px; height: 30px;
  margin: 0;
  border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--ink) 25%, transparent);
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-out);
}
.interruttore__input::after {
  content: "";
  position: absolute;
  top: 3px; left: 3px;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--carta);
  transition: transform var(--dur-fast) var(--ease-out);
}
.interruttore__input:checked { background: var(--verde); }
.interruttore__input:checked::after { transform: translateX(22px); }
.interruttore__input:focus-visible { outline: 2px solid var(--rosso); outline-offset: 3px; }
/* Accetta tutti e Rifiuta affiancati, stessa larghezza; Personalizza sotto su mobile */
.banner__azioni {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}
.banner__personalizza { grid-column: 1 / -1; }
.banner__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 6px;
  color: var(--ink-soft);
  text-underline-offset: 3px;
}

/* ------------------------------------------------------------------ pagine interne (grazie, privacy, cookie) */

.nav--semplice { position: relative; padding-top: 12px; }

.grazie { padding-top: 16px; }
.grazie__griglia { display: grid; gap: 28px; }
.grazie__titolo {
  margin: 12px 0 16px;
  font-size: var(--fs-h1);
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-title);
  text-wrap: balance;
}
.grazie__testo { font-size: var(--fs-lead); color: var(--ink-soft); max-width: 46ch; margin-bottom: 28px; }
.grazie__foto { border-radius: var(--r-panel); overflow: hidden; }
.grazie__foto img { width: 100%; aspect-ratio: 10 / 11; object-fit: cover; object-position: 50% 45%; }
.grazie__blocchi { display: grid; gap: var(--gap); }
/* Dopo la scadenza della demo (cms/scadenze.js) resta un solo blocco: non deve
   stare a metà larghezza come se ne mancasse uno. */
.grazie__blocchi:has(> :only-child) { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
.grazie__blocco h2 { font-size: var(--fs-h3); line-height: 1.2; margin-bottom: 10px; }
.grazie__blocco p { margin-bottom: 22px; max-width: 48ch; }
.pannello--verde .grazie__blocco p,
.grazie__blocco.pannello--verde p { color: var(--on-dark-soft); }
.grazie__nota { margin-top: 28px; font-weight: 500; }
.grazie__calendario { display: block; width: 64px; margin-bottom: 18px; }
.grazie__titolo .serif { color: var(--rosso); }

.pagina-semplice { max-width: 760px; margin: 0 auto; padding: 40px var(--gutter) 80px; }
.legale h1 { font-size: var(--fs-h2); line-height: var(--lh-title); letter-spacing: var(--tracking-title); margin: 16px 0 24px; }
.legale h2 { font-size: var(--fs-h3); margin: 36px 0 10px; }
.legale p, .legale li { max-width: 68ch; }
.legale p + p { margin-top: 12px; }
.legale ul { padding-left: 20px; }
.legale a { color: var(--rosso); text-underline-offset: 3px; overflow-wrap: anywhere; }
.legale code {
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--crema-2);
  font-size: 0.875em;
}
.legale__azione { margin-top: 18px; }
/* Tabelle: scorrono dentro il loro contenitore, mai la pagina */
.tabella {
  margin: 18px 0 8px;
  overflow-x: auto;
  border-radius: var(--r-field);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 16%, transparent);
  -webkit-overflow-scrolling: touch;
}
.tabella:focus-visible { outline: 2px solid var(--rosso); outline-offset: 3px; }
.tabella table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 0.9375rem;
  line-height: 1.45;
}
.tabella th,
.tabella td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
}
.tabella th { background: var(--crema-2); font-weight: 600; }
.tabella tr:last-child td { border-bottom: 0; }

/* ================================================================== tablet ≥ 640 */

@media (min-width: 640px) {
  .pannello { padding: 48px 40px; }

  .modulo { padding: 36px 32px 30px; }
  .modulo__blocco { grid-template-columns: 1fr 1fr; gap: 18px 16px; }
  .modulo__blocco--canale { display: block; }
  .campo--pieno { grid-column: 1 / -1; }

  .fascia-perchi { padding: 36px 32px; }

  .collage { --scala: 0.7; }
  .finestra { padding: 72px 40px 0; }
  .collage { margin-inline: -40px; }

  .finale { padding: 72px 40px 340px; }
  .finale__foto { height: 400px; }

  .grazie__blocchi { grid-template-columns: 1fr 1fr; }
}

/* ================================================================== desktop ≥ 1024 */

@media (min-width: 1024px) {
  .contenitore { padding-inline: var(--gutter-desk); }

  /* nav */
  .nav { padding-top: 20px; }
  .nav__menu { display: none; }
  .nav__logo { width: 60px; height: 60px; }
  .nav__voci {
    position: static;
    display: flex;
    flex: 1;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0;
    background: none;
    box-shadow: none;
  }
  .nav__voci a { min-height: 44px; padding: 0 16px; border-radius: var(--r-pill); font-size: 0.9375rem; }
  .nav__voci a:hover { background: var(--crema-2); }
  .nav__wa { margin-left: auto; }
  .nav__pill { margin-left: 0; padding: 0 24px; }

  /* hero */
  .hero { padding-top: 116px; }
  .hero__griglia {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: 56px;
    align-items: center;
  }
  .hero__testo { display: block; position: relative; z-index: 3; padding-bottom: 24px; }
  .hero__testo > * { order: 0; }
  .hero__foto { order: 0; margin-top: 0; }
  .hero__sotto { margin: 0 0 28px; }
  .hero__foto { --taglio: 0.136; }
  .hero__telaio { aspect-ratio: 100 / 95; }
  .hero__suggerimento { display: none; }
  .pin--desk { display: block; }
  .pin__bottone > span[aria-hidden] { width: var(--pin-size); height: var(--pin-size); font-size: 1rem; }
  .pin__etichetta { max-width: 250px; font-size: 0.9375rem; }
  /* Desktop: anello sul bordo alto della foto; le due code sfumano appena escono
     dalla foto, cosi' il testo resta pulito e i bordi dell'immagine non si vedono
     a nessuna larghezza di schermo. */
  .nastro--hero {
    width: 200%;
    margin-left: -93.5%;
    margin-top: -29%;
    -webkit-mask-image: linear-gradient(90deg, transparent 39%, var(--ink) 50%, var(--ink) 96.5%, transparent 99.7%);
    mask-image: linear-gradient(90deg, transparent 39%, var(--ink) 50%, var(--ink) 96.5%, transparent 99.7%);
  }

  /* pannelli */
  .pannello { padding: 72px 64px; }

  /* come funziona */
  .come {
    grid-template-columns: minmax(0, 2fr) minmax(0, 5.5fr) minmax(0, 4.5fr);
    column-gap: 40px;
    row-gap: 48px;
    align-items: start;
  }
  .come__etichetta { grid-column: 1; grid-row: 1; padding-top: 14px; }
  .come__titolo { grid-column: 2; grid-row: 1; }
  .come__passi { grid-column: 2; grid-row: 2; margin: 0; }
  .come__mock { grid-column: 3; grid-row: 1 / span 2; align-self: center; margin: 0; }
  .telefono__schermo { width: min(100%, 360px); }

  /* form */
  .form-griglia {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 72px;
    align-items: start;
  }
  .form-intro { display: block; position: sticky; top: 40px; padding-top: 24px; }
  .form-foto { margin-top: 32px; max-width: 380px; border-radius: var(--r-panel); }
  .form-foto img { aspect-ratio: 4 / 5; object-position: 50% 30%; }
  .modulo { padding: 44px 44px 36px; }

  /* per chi è */
  .testata {
    grid-template-columns: minmax(0, 2fr) minmax(0, 6fr) minmax(0, 4fr);
    column-gap: 40px;
    align-items: end;
    margin-bottom: 56px;
  }
  .testata .etichetta-laterale { align-self: start; padding-top: 14px; }
  .testata__link { justify-self: end; }

  .bento {
    grid-auto-flow: row;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-columns: auto;
    align-items: stretch; /* stessa altezza, testo allineato in alto */
    margin-inline: 0;
    padding: 0;
    overflow: visible;
    scroll-snap-type: none;
  }
  .bento__didascalia { padding: 22px 24px 26px; }
  .fascia-perchi {
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding: 44px 0;
  }
  .fascia-perchi p { padding: 0 48px 0 72px; max-width: none; }
  .fascia-perchi p::before { left: 48px; }
  .fascia-perchi p + p { border-left: 1px solid color-mix(in srgb, var(--oro) 45%, transparent); }

  /* accanto al panettone */
  .accanto {
    grid-template-columns: minmax(0, 2fr) minmax(0, 5fr) minmax(0, 5fr);
    column-gap: 40px;
    row-gap: 48px;
    align-items: center;
  }
  .accanto__etichetta { grid-column: 1; grid-row: 1; align-self: start; padding-top: 14px; }
  .accanto__titolo { grid-column: 2 / span 2; grid-row: 1; max-width: 20ch; }
  .accanto__foto { grid-column: 1 / span 2; grid-row: 2; margin-top: 0; }
  .accanto__testo { grid-column: 3; grid-row: 2; padding-top: 0; }

  /* finestra */
  .finestra { padding: 96px 64px 0; }
  .collage { --scala: 1; margin: 64px -64px 0; height: 460px; }
  .cerchio { top: var(--y); border-width: 4px; }

  /* dal vivo */
  .vivo {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 64px;
    align-items: stretch;
  }
  .vivo__foto img { aspect-ratio: auto; min-height: 100%; }
  .vivo__mappa { aspect-ratio: auto; min-height: 100%; }
  .mappa__via { font-size: 40px; }
  .mappa__cartellino text { font-size: 50px; }

  /* chi siamo */
  .chi__griglia {
    grid-template-columns: minmax(0, 2fr) minmax(0, 5fr) minmax(0, 5fr);
    column-gap: 40px;
    row-gap: 40px;
    align-items: start;
  }
  .chi__etichetta { grid-column: 1; grid-row: 1; padding-top: 14px; }
  .chi__titolo { grid-column: 2; grid-row: 1; }
  .chi__foto { grid-column: 2; grid-row: 2; margin-top: 0; max-width: 400px; }
  .chi__testo { grid-column: 3; grid-row: 1 / span 2; padding-top: 12px; }

  /* domande */
  .domande { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 40px; }
  .domanda summary { font-size: 1.25rem; min-height: 76px; }

  /* cta finale */
  .finale { min-height: 600px; padding: 110px 72px; display: flex; align-items: center; }
  .finale__foto {
    left: auto; top: 0;
    width: 58%;
    height: auto;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, var(--ink) 45%);
    mask-image: linear-gradient(to right, transparent 0%, var(--ink) 45%);
  }
  .finale__testo { max-width: 620px; }
  .nastro--finale { bottom: auto; top: 18%; width: 115%; margin-left: -12%; }

  /* footer */
  .piede { padding-bottom: 24px; }
  .piede__pannello { grid-template-columns: auto 1fr; align-items: center; gap: 40px; padding: 48px 0; }
  .piede__logo { width: 84px; height: 84px; }

  .barra { display: none; }

  .banner { padding: 30px 32px 20px; }
  .banner__azioni { grid-template-columns: repeat(3, 1fr); }
  .banner__personalizza { grid-column: auto; }
  .azione .bottone { padding: 0 30px; }
  .pill { padding: 6px 24px 6px 44px; }
  .pill__v { font-size: 1.25rem; }

  /* grazie */
  .grazie__griglia {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 64px;
    align-items: center;
  }
}

/* ================================================================== movimento ridotto */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
  html.js .hero .pin:not(.is-visibile) { opacity: 1; transform: none; }
  .cerchio { transform: none; }
  .nastro__maschera { stroke-dashoffset: 0; transition: none; }
  .cookie-velo, .banner { transition: none; }
  .banner { transform: none; }
}

/* thank-you: niente barra sticky, niente spazio di riserva sotto il footer */
.piede--grazie { padding-bottom: calc(24px + env(safe-area-inset-bottom)); }

/* QA round 1: niente doppio tap zoom su bottoni, pin e link */
button, a, .pin, summary, label { touch-action: manipulation; }

/* Niente salvataggio immagini con trascinamento o pressione lunga (iOS). Vedi js/avvio.js. */
img, video, picture, svg image {
  -webkit-user-drag: none;
  user-select: none;
  -webkit-touch-callout: none;
}

/* footer: contatti con icone a contorno, stesso segno di calendario e pin */
.piede__contatti { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; }
.piede__dati a.contatto { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.contatto span { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.icona--contatto { flex: none; }
.contatto:hover .icona__tratto { stroke: var(--ink); }

/* hero: riga di fiducia */
.fiducia { order: 4; list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 6px; font-size: var(--fs-label); color: var(--ink-soft); }
.fiducia li { display: inline-flex; align-items: center; gap: 8px; }
.fiducia strong { color: var(--ink); font-weight: 600; }
/* 29/09/2026: al posto dei puntini, icone a linea nell'oro del nastro (Mattia) */
.fiducia svg { flex: none; width: 16px; height: 16px; }
.fiducia__stella { fill: var(--oro); }
.fiducia__icona { fill: none; stroke: var(--oro); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* scarsità sotto i bottoni */
.nota-scarsita { margin-top: 12px; font-size: var(--fs-label); color: var(--ink-soft); text-align: center; }
.vivo__formazione { margin: 8px 0 24px; color: var(--ink-soft); max-width: 46ch; }

/* recensioni */
.recensioni__testa { display: grid; gap: 14px; margin-bottom: 32px; }
.recensioni__voto { display: inline-flex; align-items: center; gap: 14px; color: var(--ink); text-decoration: none; justify-self: start; }
.recensioni__numero { font-family: var(--font-serif); font-style: italic; font-weight: 600; font-size: 3.4rem; line-height: 1; color: var(--rosso); }
.recensioni__dati { display: grid; gap: 4px; font-size: var(--fs-label); color: var(--ink-soft); }
.recensioni__voto:hover .recensioni__dati > span:last-child { text-decoration: underline; text-underline-offset: 3px; }
.recensione__stelle { display: inline-flex; gap: 2px; }
.recensione__stelle svg { fill: var(--oro); }
.recensione__stelle svg.vuota { fill: none; stroke: var(--oro); stroke-width: 1.2; }
.recensioni__lista { display: grid; gap: 16px; }
.recensione { margin: 0; padding: 24px; border-radius: var(--r-card); background: var(--carta); box-shadow: var(--shadow-tile); display: flex; flex-direction: column; gap: 14px; }
.recensione blockquote { margin: 0; flex: 1; }
.recensione blockquote p { font-size: 1.0625rem; line-height: 1.5; color: var(--ink); }
.recensione figcaption { font-weight: 600; font-size: var(--fs-label); color: var(--ink); }
.recensione figcaption span { font-weight: 400; color: var(--ink-soft); }
@media (min-width: 640px) { .recensioni__lista { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) {
  .recensioni__testa { grid-template-columns: 1fr auto; align-items: end; }
  .recensioni__testa .etichetta-laterale { grid-column: 1 / -1; }
  .recensioni__lista { grid-template-columns: repeat(4, 1fr); }
}

/* H1 più lungo dal 24/09 (hook C): su desktop un corpo più contenuto per restare sopra la piega */
@media (min-width: 1024px) { .hero__titolo { font-size: clamp(3rem, 1rem + 3.6vw, 4.25rem); } }
