/* Layout: no header bar. The qv. tile lands top-left and swallows the wordmark as you scroll;
   the CTA + burger float top-right (CTA drops to a bottom pill on phones). Hero = headline left, form right.
   Single light look on purpose: these are the site's own brand colours (cream, ink, lime). */
:root {
  color-scheme: light;
  --crema: #f5f2e9;
  --crema-chiara: #fbf9f3;
  --inchiostro: #11151b;
  --lime: #c8ff45;
  --lime-scuro: #9fd61c;
  --lime-bordo: #629300;
  --tenue: #60666a;
  --linea: #e2e0d6;
  --bianco: #ffffff;
  --ombra-carta: 0 30px 60px -24px rgba(17, 21, 27, .22), 0 2px 6px rgba(17, 21, 27, .04);
  --ombra-vetro: 0 8px 24px -8px rgba(17, 21, 27, .22);

  --f-titolo: Manrope, 'Helvetica Neue', Arial, sans-serif;
  --f-testo: 'DM Sans', 'Helvetica Neue', Arial, sans-serif;

  --molla: cubic-bezier(.34, 1.4, .64, 1);
  --cassetto: cubic-bezier(.32, .72, 0, 1);
  --dolce: cubic-bezier(.4, 0, .2, 1);

  --gutter-l: max(20px, 5vw, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, 5vw, env(safe-area-inset-right, 0px));
  --cima: calc(18px + env(safe-area-inset-top, 0px));
}

*, *::before, *::after { box-sizing: border-box; }
/* clip, not hidden: nothing may widen the page sideways (a phone would let you drag it), and sticky keeps working */
html { scroll-behavior: smooth; scroll-padding-top: 96px; overflow-x: hidden; overflow-x: clip; -webkit-tap-highlight-color: transparent; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--crema); color: var(--inchiostro);
  font: 16px/1.5 var(--f-testo); -webkit-font-smoothing: antialiased; overflow-x: hidden; overflow-x: clip;
}
h1, h2, h3 { font-family: var(--f-titolo); margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--lime-bordo); outline-offset: 4px; border-radius: 6px; }
.fascia { max-width: 1440px; margin: 0 auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- the qv. tile, in em so the intro and header share one shape ---------- */
.tessera {
  display: inline-flex; align-items: baseline; flex: none;
  font: 800 var(--fs, 30px)/1.15 var(--f-titolo); letter-spacing: -.14em;
  background: var(--inchiostro); color: var(--lime);
  padding: .1em .22em .26em .22em; border-radius: .26em; overflow: hidden;
  transition: background .35s var(--dolce), color .35s var(--dolce);
}
.tessera .v { font-size: .714em; }
.tessera i { font-style: normal; display: inline-block; }
.tessera .punto { letter-spacing: 0; }

/* ---------- 1. intro: tile builds in the centre, then flies to the corner ---------- */
.sipario {
  position: fixed; inset: 0; z-index: 90; background: var(--crema);
  transition: opacity .5s var(--dolce), visibility 0s;
}
.sipario.via { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .5s var(--dolce), visibility 0s linear .5s; }
.sipario p {
  position: absolute; left: 0; right: 0; top: calc(50% + 92px); text-align: center;
  font: 700 17px var(--f-titolo); letter-spacing: -.01em; color: var(--tenue);
  animation: sali-dolce .6s var(--cassetto) .85s backwards;
}
.sipario.via p { opacity: 0; transition: opacity .2s; }
.volo {
  position: fixed; left: 0; top: 0; z-index: 91; pointer-events: none; transform-origin: 0 0;
  transform: translate(var(--x0, 0), var(--y0, 0)) scale(var(--s0, 1));
  transition: transform .7s var(--cassetto);
}
.volo.fine { transform: translate(var(--x1, 0), var(--y1, 0)) scale(1); }
.volo .tessera { animation: tessera-pop .55s var(--molla) .1s backwards, anello 1s var(--dolce) 1.05s; }
.volo .l-q { animation: lettera-su .5s var(--cassetto) .32s backwards; }
.volo .l-v { animation: lettera-su .5s var(--cassetto) .44s backwards; }
.volo .l-punto { transform-origin: 50% 100%; animation: goccia .75s linear .66s backwards; }
@keyframes tessera-pop { from { transform: scale(.15) rotate(-14deg); border-radius: 50%; opacity: 0; } }
@keyframes lettera-su { from { transform: translateY(120%); } }
@keyframes goccia {
  0% { transform: translateY(-1.4em); opacity: 0; animation-timing-function: cubic-bezier(.5, 0, 1, .6); }
  10% { opacity: 1; }
  45% { transform: translateY(0) scale(.85, 1.2); animation-timing-function: var(--dolce); }
  60% { transform: translateY(0) scale(1.35, .65); }
  78% { transform: translateY(-.14em) scale(.92, 1.08); }
  100% { transform: none; }
}
@keyframes anello { from { box-shadow: 0 0 0 0 rgba(200, 255, 69, .85); } to { box-shadow: 0 0 0 .55em rgba(200, 255, 69, 0); } }
@keyframes sali-dolce { from { opacity: 0; transform: translateY(10px); } }

/* ---------- 2 + 3. header without a bar: logo top-left, the wordmark slides into the tile on scroll ---------- */
.marchio {
  --chiuso: 1;
  position: fixed; z-index: 70; top: var(--cima); left: var(--gutter-l);
  display: flex; align-items: center;
}
.marchio .tessera {
  position: relative; z-index: 2; opacity: 0;
  box-shadow: 0 calc(var(--chiuso) * 10px) calc(var(--chiuso) * 24px) -6px rgba(17, 21, 27, calc(var(--chiuso) * .35));
}
.marchio .tessera.ingoia { animation: ingoia .42s var(--molla); }
@keyframes ingoia { 35% { transform: scale(1.14, .88); } 65% { transform: scale(.95, 1.05); } }
/* the wordmark's box starts under the middle of the tile, so the text vanishes into it */
.marchio-nome { position: relative; z-index: 1; overflow: hidden; margin-left: -28px; padding: 4px 0 4px 40px; opacity: 0; }
.marchio-nome span {
  display: block; white-space: nowrap; font: 800 16px/1.15 var(--f-titolo); letter-spacing: -.035em;
  transform: translateX(calc(var(--chiuso) * (-100% - 40px)));
  opacity: calc(1 - var(--chiuso) * .7);
}
.marchio.chiuso .marchio-nome { visibility: hidden; }
body.atterrato .marchio .tessera, body.atterrato .marchio-nome { opacity: 1; }

.azioni {
  position: fixed; z-index: 75; top: var(--cima); right: var(--gutter-r);
  display: flex; align-items: center; gap: 10px;
}

/* ---------- 6. the CTA: ink pill, lime arrow disc, a little magnet ---------- */
.cta {
  --mx: 0px; --my: 0px;
  position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 14px;
  height: 50px; padding: 0 6px 0 22px; border-radius: 999px;
  background: var(--inchiostro); color: var(--crema);
  font: 700 15px var(--f-titolo); letter-spacing: -.01em; white-space: nowrap;
  box-shadow: 0 12px 28px -10px rgba(17, 21, 27, .55);
  transform: translate(var(--mx), var(--my));
  transition: transform .45s var(--molla), background .35s var(--dolce), color .35s var(--dolce), box-shadow .3s var(--dolce), opacity .3s var(--dolce);
}
.cta-ico {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--lime); color: var(--inchiostro); transition: background .35s var(--dolce), color .35s var(--dolce);
}
.cta-ico svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; transform: rotate(-45deg); transition: transform .45s var(--molla); }
.cta:hover .cta-ico svg, .cta:focus-visible .cta-ico svg { transform: rotate(0); }
.cta:active { transform: translate(var(--mx), var(--my)) scale(.96); }
.cta.richiama { animation: richiama 1.1s var(--dolce); }
@keyframes richiama { 0% { box-shadow: 0 12px 28px -10px rgba(17, 21, 27, .55), 0 0 0 0 rgba(200, 255, 69, .9); } 100% { box-shadow: 0 12px 28px -10px rgba(17, 21, 27, .55), 0 0 0 16px rgba(200, 255, 69, 0); } }

/* ---------- 5. burger ---------- */
.burger {
  position: relative; width: 50px; height: 50px; border-radius: 50%; cursor: pointer; padding: 0;
  border: 1px solid rgba(17, 21, 27, .08); background: rgba(255, 255, 255, .72);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: var(--ombra-vetro);
  transition: transform .3s var(--molla), background .2s;
}
.burger:hover { background: var(--bianco); }
.burger:active { transform: scale(.93); }
.burger span {
  position: absolute; left: 15px; width: 20px; height: 2px; border-radius: 2px; background: var(--inchiostro);
  transition: transform .4s var(--cassetto), width .3s var(--cassetto);
}
.burger span:nth-child(1) { top: 20px; }
.burger span:nth-child(2) { top: 27px; width: 13px; }
.burger:hover span:nth-child(2) { width: 20px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { width: 20px; transform: translateY(-3.5px) rotate(-45deg); }

.menu {
  position: absolute; top: calc(100% + 10px); right: 0; width: min(310px, calc(100vw - 40px));
  padding: 8px; border-radius: 20px; background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  border: 1px solid rgba(17, 21, 27, .06); box-shadow: var(--ombra-carta);
  transform-origin: calc(100% - 25px) -10px;
  opacity: 0; visibility: hidden; transform: scale(.9) translateY(-6px);
  transition: opacity .2s var(--dolce), transform .35s var(--cassetto), visibility 0s linear .35s;
}
.menu.aperto { opacity: 1; visibility: visible; transform: none; transition: opacity .2s var(--dolce), transform .45s var(--molla), visibility 0s; }
.menu a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px; border-radius: 13px; font: 700 17px var(--f-titolo); letter-spacing: -.02em;
  opacity: 0; transform: translateY(6px); transition: background .15s, opacity .25s var(--dolce), transform .35s var(--cassetto);
}
.menu.aperto a { opacity: 1; transform: none; transition-delay: 0s, calc(60ms + var(--i) * 45ms), calc(60ms + var(--i) * 45ms); }
.menu a:hover, .menu a:focus-visible { background: var(--crema); }
.menu a svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transform: translateX(-6px); transition: opacity .2s, transform .3s var(--molla); }
.menu a:hover svg, .menu a:focus-visible svg { opacity: 1; transform: none; }
.menu-nota { margin: 6px 8px 4px; padding: 12px 8px 4px; border-top: 1px solid var(--linea); font-size: 12.5px; color: var(--tenue); display: flex; align-items: center; gap: 8px; }
.menu-nota::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--lime-scuro); box-shadow: 0 0 0 3px rgba(200, 255, 69, .35); flex: none; }

/* ---------- the pointer (laptop only): a lime circle with an ink ring, it trails the mouse and opens up over controls ---------- */
.puntatore {
  position: fixed; left: 0; top: 0; z-index: 200; width: 16px; height: 16px; border-radius: 50%; pointer-events: none;
  background: var(--lime); box-shadow: 0 0 0 1.5px var(--inchiostro); opacity: 0;
  transition: width .34s var(--molla), height .34s var(--molla), background .18s var(--dolce), opacity .18s var(--dolce);
}
.puntatore.vivo { opacity: 1; }
.puntatore.sopra { width: 44px; height: 44px; background: rgba(200, 255, 69, .32); }
.puntatore.grande { width: 72px; height: 72px; background: rgba(200, 255, 69, .38); }
.puntatore.preme { width: 12px; height: 12px; }
.puntatore.sopra.preme { width: 36px; height: 36px; }
@media (hover: hover) and (pointer: fine) { body.con-puntatore, body.con-puntatore * { cursor: none !important; } }

/* over the dark panel the tile and the CTA swap to lime, so they never sink into ink */
body.su-scuro .marchio .tessera { background: var(--lime); color: var(--inchiostro); }
/* the CTA checks its own spot: top right on a laptop, the bottom pill on a phone */
body.cta-scuro .cta { background: var(--lime); color: var(--inchiostro); }
body.cta-scuro .cta-ico { background: var(--inchiostro); color: var(--lime); }

/* ---------- page entrance once the curtain lifts ---------- */
.entra { animation: sali-dolce .6s var(--cassetto) both paused; animation-delay: calc(var(--i, 0) * 80ms); }
body.aperta .entra { animation-play-state: running; }

/* ---------- hero ---------- */
.eroe {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 7%;
  padding-top: clamp(118px, 15vh, 150px); padding-bottom: 64px;
}
/* the text column stretches to the form's height: the photo grows to fill it, the reviews sit under it */
.eroe-testo { min-width: 0; display: flex; flex-direction: column; }
h1 { font-size: clamp(46px, 5.3vw, 78px); font-weight: 800; line-height: 1.1; letter-spacing: -.045em; }
.lead { font-size: 19px; line-height: 1.55; color: var(--tenue); margin-top: 26px; }
.foto { margin: 30px 0 0; flex: 1 1 190px; min-height: 190px; max-height: 400px; border-radius: 14px; overflow: hidden; position: relative; }

/* ---------- under the photo: the three real video reviews pop in one by one, then the Medium piece ---------- */
.voci { margin-top: 22px; display: grid; gap: 12px; }
.voci-titolo { font: 700 11px/1.5 var(--f-titolo); letter-spacing: .16em; text-transform: uppercase; color: var(--tenue); }
.voci-lista { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.pop { opacity: 0; transform: rotate(var(--giro, 0deg)); }
body.voci-su .pop { opacity: 1; animation: pop-su .6s var(--molla) backwards; animation-delay: calc(var(--i, 0) * 150ms); }
@keyframes pop-su { from { opacity: 0; transform: translateY(18px) scale(.8) rotate(calc(var(--giro, 0deg) * -2)); } }
.voce {
  width: 100%; display: flex; align-items: center; gap: 12px; padding: 8px 12px 8px 8px; border: 0; border-radius: 14px;
  cursor: pointer; text-align: left; background: var(--bianco); box-shadow: var(--ombra-vetro);
  transition: transform .35s var(--molla), box-shadow .25s var(--dolce);
}
.voce:hover { transform: translateY(-3px); box-shadow: var(--ombra-carta); }
.voce:active { transform: scale(.97); }
.voce-foto { position: relative; flex: none; width: 46px; height: 62px; border-radius: 9px; overflow: hidden; background: var(--crema); }
.voce-foto img { width: 100%; height: 100%; object-fit: cover; }
.voce-play { position: absolute; right: 4px; bottom: 4px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--lime); transition: transform .35s var(--molla); }
.voce:hover .voce-play { transform: scale(1.18); }
.voce-play svg { width: 10px; height: 10px; margin-left: 1px; fill: var(--inchiostro); }
.voce-chi { min-width: 0; }
.voce-chi b { display: block; font: 800 15px/1.2 var(--f-titolo); letter-spacing: -.02em; }
.voce-chi small { display: block; font-size: 12.5px; line-height: 1.3; color: var(--tenue); }
.voci-stampa {
  width: 100%; border: 0; cursor: pointer; text-align: left; color: inherit; font-family: var(--f-testo);
  display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 14px; background: var(--crema-chiara);
  font-size: 14px; font-weight: 600; transition: background .2s, transform .35s var(--molla);
}
.voci-stampa:hover { background: var(--bianco); transform: translateY(-2px); }
.voci-stampa img { height: 17px; width: auto; flex: none; }
.voci-stampa span { min-width: 0; flex: 1; }
.voci-stampa svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transform: rotate(-45deg); }

/* ---------- the stories: the three videos, then the Medium piece, then the Google reviews, played like a story.
   A bar per story fills as it plays; tap right/left to move, hold to pause; changing story turns a cube. ---------- */
.storia { padding: 0; border: 0; margin: 0; width: 100vw; height: 100svh; max-width: none; max-height: none; background: transparent; overflow: hidden; }
.storia::backdrop { background: rgba(17, 21, 27, .93); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.storia-scena {
  --alto: min(92svh, 760px, calc(100vw * 16 / 9));
  position: absolute; inset: 0; margin: auto; height: var(--alto); width: calc(var(--alto) * 9 / 16);
  perspective: 1400px; transform-style: preserve-3d;
}
.storia[open] .storia-scena { animation: storia-apre .46s var(--cassetto); }
@keyframes storia-apre { from { opacity: 0; transform: translate(var(--da-x, 0px), var(--da-y, 40px)) scale(.16); border-radius: 50%; } }
.storia.chiude .storia-scena { animation: storia-chiude .26s var(--dolce) forwards; }
@keyframes storia-chiude { to { opacity: 0; transform: translateY(60px) scale(.9); } }
.storia-carta {
  position: absolute; inset: 0; overflow: hidden; border-radius: 18px; background: var(--inchiostro); color: var(--bianco);
  backface-visibility: hidden; -webkit-backface-visibility: hidden; user-select: none; -webkit-user-select: none;
}
/* the cube: the old face swings away on its far edge while the new one swings in on the near edge */
.storia-carta.esce { pointer-events: none; animation: .52s var(--dolce) forwards; }
.storia-carta.esce.avanti { transform-origin: 100% 50%; animation-name: cubo-esce-avanti; }
.storia-carta.esce.indietro { transform-origin: 0 50%; animation-name: cubo-esce-indietro; }
.storia-carta.entra-avanti { transform-origin: 0 50%; animation: cubo-entra-avanti .52s var(--dolce); }
.storia-carta.entra-indietro { transform-origin: 100% 50%; animation: cubo-entra-indietro .52s var(--dolce); }
@keyframes cubo-esce-avanti { to { transform: translateX(-100%) rotateY(-90deg); filter: brightness(.45); } }
@keyframes cubo-esce-indietro { to { transform: translateX(100%) rotateY(90deg); filter: brightness(.45); } }
@keyframes cubo-entra-avanti { from { transform: translateX(100%) rotateY(90deg); filter: brightness(.45); } }
@keyframes cubo-entra-indietro { from { transform: translateX(-100%) rotateY(-90deg); filter: brightness(.45); } }

.storia-corpo { position: absolute; inset: 0; cursor: pointer; }
.storia-corpo video { width: 100%; height: 100%; object-fit: cover; display: block; background: var(--inchiostro); }
.storia-cima, .storia-piede { position: absolute; left: 0; right: 0; z-index: 2; padding: 10px 10px 0; transition: opacity .2s var(--dolce); }
.storia-cima { top: 0; padding-bottom: 36px; background: linear-gradient(rgba(17, 21, 27, .55), rgba(17, 21, 27, 0)); pointer-events: none; }
.storia-cima button { pointer-events: auto; }
.storia-piede { bottom: 0; padding: 40px 12px calc(12px + env(safe-area-inset-bottom, 0px)); background: linear-gradient(rgba(17, 21, 27, 0), rgba(17, 21, 27, .6)); display: flex; align-items: center; gap: 6px; }
/* holding the story down hides the chrome, like the app */
.storia-carta.ferma .storia-cima, .storia-carta.ferma .storia-piede { opacity: 0; }
.storia-barre { display: flex; gap: 4px; }
.storia-barre i { flex: 1; height: 3px; border-radius: 3px; overflow: hidden; background: rgba(255, 255, 255, .35); }
.storia-barre b { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--bianco); }
.storia-testa { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.storia-avatar { width: 36px; height: 36px; flex: none; border-radius: 50%; padding: 2px; background: var(--lime); }
.storia-avatar span { width: 100%; height: 100%; border-radius: 50%; overflow: hidden; display: grid; place-items: center; border: 2px solid var(--inchiostro); background: var(--crema) center 18% / cover no-repeat; color: var(--inchiostro); font: 800 14px var(--f-titolo); }
.storia-chi { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 8px; font-size: 13.5px; text-shadow: 0 1px 6px rgba(17, 21, 27, .4); }
.storia-chi b { font: 700 14.5px var(--f-titolo); letter-spacing: -.01em; }
.storia-chi span { opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.storia-tasto {
  width: 44px; height: 44px; flex: none; padding: 0; border: 0; border-radius: 50%; cursor: pointer; display: grid; place-items: center;
  background: transparent; color: var(--bianco); transition: transform .3s var(--molla), background .2s;
}
.storia-tasto:hover { background: rgba(255, 255, 255, .12); }
.storia-tasto:active { transform: scale(.88); }
.storia-tasto svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.storia-tasto[hidden] { display: none; }
.storia-tasto .zitto, #storia-muto[aria-pressed="true"] .onde { display: none; }
#storia-muto[aria-pressed="true"] .zitto { display: inline; }
/* the copy that turns away must not replay its own entrance */
.storia-carta.esce * { animation: none !important; }

/* the reply field and the heart */
.storia-scrivi { flex: 1; min-width: 0; display: flex; align-items: center; gap: 4px; }
.storia-scrivi input {
  flex: 1; min-width: 0; height: 44px; padding: 0 18px; border-radius: 999px; font-size: 15px;
  border: 1.5px solid rgba(255, 255, 255, .7); background: rgba(17, 21, 27, .18); color: var(--bianco);
  transition: border-color .2s, background .2s;
}
.storia-scrivi input::placeholder { color: rgba(255, 255, 255, .85); }
.storia-scrivi input:focus { outline: none; border-color: var(--bianco); background: rgba(17, 21, 27, .45); }
.storia-cuore svg { width: 27px; height: 27px; }
.storia-cuore[aria-pressed="true"] { color: var(--lime); }
.storia-cuore[aria-pressed="true"] svg { fill: currentColor; animation: cuore-batte .5s var(--molla); }
@keyframes cuore-batte { 30% { transform: scale(1.35); } 60% { transform: scale(.88); } }
.storia-invia svg { transform: rotate(-12deg); }
/* the big heart that pops in the middle when you like, and the "sent" pill */
.storia-botto {
  position: absolute; left: 50%; top: 50%; z-index: 3; width: 110px; height: 110px; margin: -55px 0 0 -55px; pointer-events: none;
  fill: var(--lime); stroke: var(--inchiostro); stroke-width: .8; opacity: 0;
}
.storia-botto.via { animation: botto .85s var(--molla); }
@keyframes botto { 0% { opacity: 0; transform: scale(.2) rotate(-14deg); } 25% { opacity: 1; transform: scale(1.1); } 60% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: translateY(-70px) scale(.7); } }
.storia-avviso {
  position: absolute; left: 50%; bottom: 84px; z-index: 3; padding: 9px 16px; border-radius: 999px; pointer-events: none;
  background: var(--bianco); color: var(--inchiostro); font: 700 13.5px var(--f-titolo); white-space: nowrap;
  opacity: 0; transform: translate(-50%, 10px);
}
.storia-avviso.via { animation: avviso 2.2s var(--cassetto); }
@keyframes avviso { 12%, 80% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; transform: translate(-50%, 0); } }
.storia-audio {
  position: absolute; left: 50%; top: 50%; z-index: 3; transform: translate(-50%, -50%); padding: 12px 18px; border: 0; border-radius: 999px; cursor: pointer;
  background: rgba(17, 21, 27, .7); color: var(--bianco); font: 700 14px var(--f-titolo); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.storia-audio[hidden] { display: none; }

/* the article and the reviews: a paper card on the story's ink */
.storia-pagina { position: absolute; inset: 0; display: grid; align-content: center; gap: 18px; padding: 92px 18px 96px; background: var(--inchiostro); }
.storia-pagina[hidden] { display: none; }
.storia-foglio { background: var(--bianco); color: var(--inchiostro); border-radius: 18px; padding: 22px 20px; box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .6); animation: foglio-su .6s var(--molla) .12s backwards; }
@keyframes foglio-su { from { opacity: 0; transform: translateY(26px) scale(.94); } }
.storia-foglio img.marchio-medium { height: 20px; width: auto; }
.storia-foglio h3 { margin-top: 18px; font: 800 24px/1.18 var(--f-titolo); letter-spacing: -.035em; }
.storia-firma { display: flex; align-items: center; gap: 10px; margin-top: 18px; font-size: 13px; color: var(--tenue); }
.storia-firma i { width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center; font: 800 14px var(--f-titolo); font-style: normal; background: var(--crema); color: var(--inchiostro); }
.storia-firma b { display: block; color: var(--inchiostro); font-weight: 700; font-size: 14px; }
.storia-segno { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--linea); font-size: 13px; color: var(--tenue); }
.storia-vai {
  justify-self: center; display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 999px;
  background: var(--lime); color: var(--inchiostro); font: 700 15px var(--f-titolo); transition: transform .35s var(--molla);
  animation: foglio-su .6s var(--molla) .3s backwards;
}
.storia-vai:active { transform: scale(.95); }
.storia-vai svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; transform: rotate(-45deg); }
.storia-voto { display: flex; align-items: center; gap: 14px; }
.storia-voto > b { font: 800 44px/1 var(--f-titolo); letter-spacing: -.04em; }
.storia-voto span { display: block; color: var(--lime-bordo); letter-spacing: .1em; font-size: 17px; }
.storia-voto strong { font-size: 13.5px; }
.storia-recensioni { list-style: none; margin: 16px -6px 0 0; padding: 0 6px 0 0; display: grid; gap: 10px; max-height: min(44svh, 340px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.storia-recensioni li { padding: 12px 14px; border-radius: 12px; background: var(--crema-chiara); font-size: 14px; line-height: 1.45; animation: pop-su .5s var(--molla) backwards; animation-delay: calc(.25s + var(--i, 0) * 90ms); }
.storia-recensioni cite { display: block; margin-top: 6px; font: 700 12.5px var(--f-titolo); font-style: normal; color: var(--tenue); }
@media (max-width: 760px) {
  .storia-scena { --alto: 100svh; width: 100vw; }
  .storia-carta { border-radius: 0; }
}
.foto img { width: 100%; height: 100%; object-fit: cover; object-position: center 57%; }
.foto figcaption { position: absolute; left: 10px; bottom: 10px; padding: 4px 9px; border-radius: 6px; font-size: 11px; background: rgba(245, 242, 233, .9); color: var(--tenue); }

/* ---------- 4. the highlight: the site's solid lime block, wiping in once on open ---------- */
.evidenzia {
  position: relative; display: inline-block; isolation: isolate; cursor: pointer;
  padding: 0 .06em; margin-left: -.06em; -webkit-tap-highlight-color: transparent;
}
.evidenzia::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--lime);
  transform-origin: 0 50%; transform: scaleX(0);
}
/* starts only once the wordmark has slid out of the tile (the js adds .evidenziato), so the two land one after the other */
body.evidenziato .evidenzia::before { animation: passa .55s var(--cassetto) forwards; }
@keyframes passa { to { transform: scaleX(1); } }

/* the dotted guide from "Scopriamolo." to the form */
.guida { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 5; opacity: 0; transition: opacity .25s var(--dolce); }
.guida.vista { opacity: 1; }
.guida-linea { fill: none; stroke: var(--inchiostro); stroke-width: 3.2; stroke-linecap: round; stroke-dasharray: 0 10; }
.guida-maschera { fill: none; stroke: #fff; stroke-width: 16; stroke-dasharray: 1 1; stroke-dashoffset: 1; }
.guida.disegna .guida-maschera { stroke-dashoffset: 0; transition: stroke-dashoffset .75s cubic-bezier(.55, .05, .3, 1); }
.guida-punta { fill: none; stroke: var(--inchiostro); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.guida.disegna .guida-punta { opacity: 1; transition: opacity .2s .62s; }
.guida-palla { fill: var(--lime); stroke: var(--inchiostro); stroke-width: 2.5; opacity: 0; }

/* ---------- the form ---------- */
.modulo {
  position: relative; align-self: start; min-width: 0; background: var(--bianco); padding: 34px;
  border-radius: 20px; box-shadow: var(--ombra-carta); margin-top: 6px;
}
.modulo.chiama { animation: chiama 1.2s var(--dolce); }
@keyframes chiama { from { box-shadow: var(--ombra-carta), 0 0 0 0 rgba(200, 255, 69, 1); } to { box-shadow: var(--ombra-carta), 0 0 0 22px rgba(200, 255, 69, 0); } }
.modulo h2 { font-size: clamp(24px, 2.2vw, 32px); font-weight: 800; letter-spacing: -.04em; line-height: 1.2; }
.nota-gratis { margin-top: 8px; font-size: 15px; }
.orari { margin-top: 4px; font-size: 13px; color: var(--tenue); }
.campi { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; margin-top: 26px; }
.campi label { display: flex; flex-direction: column; justify-content: flex-end; gap: 7px; min-width: 0; font-size: 13.5px; font-weight: 600; position: relative; }
.campi .largo { grid-column: 1 / -1; }
.campi input {
  width: 100%; min-width: 0; min-height: 49px; padding: 12px; font-size: 16px; border-radius: 10px;
  border: 1px solid #dcded8; background: var(--crema-chiara); transition: border-color .2s, box-shadow .2s, background .2s;
}
.campi input::placeholder { color: #8b9093; }
.campi input:focus { outline: none; background: var(--bianco); border-color: var(--inchiostro); box-shadow: 0 0 0 4px rgba(200, 255, 69, .55); }
.km { position: absolute; right: 12px; bottom: 14px; color: var(--tenue); font-weight: 400; pointer-events: none; }
/* once filled, a field turns white like the card, so it never looks greyed out; Chrome's autofill tint goes too */
.campi input:not(:placeholder-shown) { background: var(--bianco); border-color: #c9ccc4; }
.campi input:-webkit-autofill { -webkit-box-shadow: 0 0 0 40px var(--bianco) inset; -webkit-text-fill-color: var(--inchiostro); }

/* ---------- make and model pickers ---------- */
.scelta-auto { grid-column: 1 / -1; display: grid; }
.combo { position: relative; display: grid; gap: 7px; min-width: 0; }
.campi .combo > label { display: block; }
.combo-campo { position: relative; }
.combo-campo input { padding-right: 44px; cursor: pointer; }
.combo-campo input:focus { cursor: text; }
.combo-segno {
  position: absolute; right: 10px; top: 50%; width: 26px; height: 26px; margin-top: -13px; border-radius: 50%;
  display: grid; place-items: center; pointer-events: none; color: var(--tenue);
  transition: transform .35s var(--molla), background .2s, color .2s;
}
.combo-segno svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.combo-segno .ok { display: none; }
.combo.aperta .combo-segno { transform: rotate(180deg); color: var(--inchiostro); }
.combo.fatta .combo-segno { background: var(--lime); color: var(--inchiostro); transform: none; }
.combo.fatta .combo-segno .giu { display: none; }
.combo.fatta .combo-segno .ok { display: block; }

.combo-lista {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30; margin: 0; padding: 6px; list-style: none;
  max-height: min(320px, 52vh); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin;
  background: var(--bianco); border-radius: 16px; box-shadow: var(--ombra-carta), 0 0 0 1px rgba(17, 21, 27, .07);
  transform-origin: 50% 0; animation: lista-in .24s var(--cassetto);
}
@keyframes lista-in { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
.combo-gruppo {
  position: sticky; top: -6px; z-index: 1; margin: 0 -6px; padding: 10px 18px 6px; background: var(--bianco);
  font: 700 10.5px var(--f-titolo); letter-spacing: .14em; text-transform: uppercase; color: var(--tenue);
}
.combo-voce {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 12px; border-radius: 10px;
  font-size: 15px; font-weight: 500; cursor: pointer; transition: background .12s;
}
.combo-voce mark { background: none; color: inherit; font-weight: 700; box-shadow: inset 0 -.32em 0 rgba(200, 255, 69, .75); }
.combo-voce.attiva { background: var(--crema); }
.combo-voce[aria-selected="true"] { font-weight: 700; }
.combo-voce[aria-selected="true"]::after {
  content: ""; width: 20px; height: 20px; border-radius: 50%; flex: none;
  background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%2311151b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.combo-voce.libera { color: var(--tenue); }
.combo-voce.libera b { color: var(--inchiostro); }
.combo-vuoto { padding: 14px 12px; font-size: 14px; color: var(--tenue); }

/* the model question folds open once a make is picked */
.rivela { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .5s var(--cassetto), opacity .3s var(--dolce); }
.rivela > div { min-height: 0; overflow: hidden; }
.rivela .combo { padding-top: 18px; }
.rivela.aperta { grid-template-rows: 1fr; opacity: 1; }
.rivela.aperta.ferma > div { overflow: visible; }
/* once a model is picked, make and model share one row */
.scelta-auto.coppia { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 14px; }
.scelta-auto.coppia .rivela .combo { padding-top: 0; }

/* ---------- the registration year: a grid of years, newest first, one decade per block ---------- */
.anno.aperta .combo-segno { transform: none; color: var(--inchiostro); }
.anni {
  position: absolute; left: 0; top: calc(100% + 6px); z-index: 30; width: max(100%, 300px); max-width: calc(100vw - 40px);
  max-height: min(340px, 56vh); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding: 0 6px 6px;
  background: var(--bianco); border-radius: 16px; box-shadow: var(--ombra-carta), 0 0 0 1px rgba(17, 21, 27, .07);
  animation: lista-in .24s var(--cassetto);
}
.anni .combo-gruppo { top: 0; }
.anni-griglia { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.anni-voce {
  min-height: 44px; display: grid; place-items: center; border-radius: 10px; cursor: pointer;
  font: 600 15px var(--f-titolo); font-variant-numeric: tabular-nums; letter-spacing: -.01em; transition: background .12s;
}
.anni-voce.attiva { background: var(--crema); }
.anni-voce[aria-selected="true"] { background: var(--lime); font-weight: 800; }
.consenso { display: flex; gap: 10px; align-items: flex-start; margin-top: 20px; font-size: 12.5px; color: var(--tenue); cursor: pointer; }
.consenso input { width: 17px; height: 17px; margin: 2px 0 0; flex: none; accent-color: var(--inchiostro); }
.consenso a, .legale a { text-decoration: underline; }
.legale { margin-top: 10px; font-size: 12.5px; color: var(--tenue); }
.invia {
  margin-top: 22px; width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  border: 0; border-radius: 12px; padding: 17px 20px; cursor: pointer;
  background: var(--lime); color: var(--inchiostro); font: 700 16px var(--f-titolo); letter-spacing: -.01em;
  transition: background .2s, transform .35s var(--molla);
}
.invia:hover { background: #b9f52e; transform: translateY(-2px); }
.invia:active { transform: translateY(1px); }
.invia svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .4s var(--molla); }
.invia:hover svg { transform: translateX(4px); }
.stato { margin-top: 14px; font-size: 13.5px; color: var(--tenue); min-height: 1.4em; }
.stato.ok { color: var(--inchiostro); font-weight: 600; }
.stato a { color: var(--inchiostro); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.stato .codice { display: block; margin-top: 6px; font: 700 14px var(--f-titolo); letter-spacing: .02em; }
.stato .codice + a { display: inline-block; margin-top: 6px; }
.stato .nota { font-weight: 400; color: var(--tenue); }
.invia:disabled { cursor: progress; opacity: .6; transform: none; }

/* ---------- below the fold: same cream all the way, no rules between sections ---------- */

.valori { background: var(--inchiostro); color: var(--crema); }
.valori-in { display: grid; justify-items: center; gap: 10px; padding-block: 24px 22px; text-align: center; }
.valori ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px clamp(24px, 4.5vw, 72px); font-size: 15px; }
.valori li { display: flex; align-items: center; gap: 9px; }
.valori li b { font-weight: 700; color: var(--lime); }
.valori li::before { content: ""; width: 15px; height: 15px; flex: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7' fill='none' stroke='%23c8ff45' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
/* the three promises land one after another once the bar scrolls into view */
.valori.anima li { opacity: 0; transform: translateY(12px); }
.valori.anima.in-vista li { opacity: 1; transform: none; transition: opacity .35s var(--dolce), transform .6s var(--molla); transition-delay: calc(var(--i, 0) * 200ms); }
.valori.anima li::before { transform: scale(0) rotate(-90deg); }
.valori.anima.in-vista li::before { transform: none; transition: transform .5s var(--molla); transition-delay: calc(var(--i, 0) * 200ms + 150ms); }
.valori-nota { font-size: 12.5px; color: #9ba1a4; }
.valori-nota strong { color: var(--crema); font-weight: 600; }

.occhiello { font: 700 11.5px/1.5 var(--f-titolo); letter-spacing: .16em; text-transform: uppercase; color: var(--tenue); margin-bottom: 22px; }
.h2-grande { font-size: clamp(36px, 4vw, 58px); font-weight: 800; line-height: 1.08; letter-spacing: -.045em; }

/* ---------- the brands strip under the form: scrolls by itself, stops under the mouse, a tap fills in the make ---------- */
.marche { padding-block: 0 30px; }
.marche-titolo { margin-bottom: 6px; font: 700 11px/1.5 var(--f-titolo); letter-spacing: .16em; text-transform: uppercase; color: var(--tenue); }
.nastro {
  overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scroll-behavior: auto; scrollbar-width: none;
  user-select: none; -webkit-user-select: none; padding: 8px 0 18px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.nastro::-webkit-scrollbar { display: none; }
.nastro-in { display: flex; width: max-content; gap: 12px; }
.marca-voce {
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 7px 18px 7px 7px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--linea); background: var(--bianco); white-space: nowrap;
  font: 700 15px var(--f-titolo); letter-spacing: -.01em;
  transition: background .2s var(--dolce), border-color .2s var(--dolce), color .2s var(--dolce), transform .35s var(--molla);
}
.marca-logo { width: 38px; height: 38px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--crema); transition: background .2s var(--dolce); }
.marca-logo svg { width: 21px; height: 21px; fill: var(--inchiostro); }
.marca-logo b { font: 800 17px/1 var(--f-titolo); letter-spacing: -.04em; }
@media (hover: hover) { .marca-voce[aria-pressed="false"]:hover { border-color: var(--inchiostro); transform: translateY(-2px); } }
.marca-voce:active { transform: scale(.95); }
/* the make already in the form: ink pill, its logo on a lime disc */
.marca-voce[aria-pressed="true"] { background: var(--inchiostro); border-color: var(--inchiostro); color: var(--crema); }
.marca-voce[aria-pressed="true"] .marca-logo { background: var(--lime); }

/* ---------- how it works: a still stage. The title stands alone, the four steps rise and stack on it,
   then open into a grid while the cream turns to ink, so the dark panel below arrives already dark.
   The js writes every position; --griglia (0 to 1) is how far into the grid, --scuro how dark the ground is. ---------- */
.pila { --griglia: 0; --scuro: 0; position: relative; isolation: isolate; }
.pila::before { content: ""; position: absolute; z-index: -1; inset: 0 calc(50% - 50vw); background: color-mix(in srgb, var(--inchiostro) calc(var(--scuro) * 100%), var(--crema)); pointer-events: none; }
.pila-palco { position: sticky; top: 0; height: 100svh; overflow: clip; }
.pila-testa {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; text-align: center; padding-block: 80px;
  opacity: calc(1 - min(1, var(--griglia) * 2.5)); transform: translateY(calc(var(--griglia) * -60px));
}
.pila-testa .occhiello { margin-bottom: 18px; }
.pila-testa h2 { font-size: clamp(42px, 6.6vw, 96px); font-weight: 800; line-height: 1.02; letter-spacing: -.05em; }
.pila-testa .racconto { margin-top: 22px; font-size: 17px; color: var(--tenue); max-width: 40ch; }
.passo {
  --spento: 0;
  position: absolute; top: 0; left: 0; right: 0; margin-inline: auto; width: min(360px, 100%); padding: 10px;
  display: flex; flex-direction: column; background: var(--bianco); border-radius: 26px;
  box-shadow: var(--ombra-carta), 0 0 0 1px rgba(17, 21, 27, .06);
  transform-origin: 50% 0; will-change: transform; transform: translateY(110svh);   /* below the screen until the js places it */
}
/* the cards left underneath fade toward cream, like the bottom of a pile; in the grid they light up again */
.passo::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--crema); opacity: calc(var(--spento) * .55); pointer-events: none; }
.passo-arte { position: relative; overflow: hidden; border-radius: 18px; aspect-ratio: 4 / 3; max-width: 100%; background: var(--crema); }
.passo-arte img { width: 100%; height: 100%; object-fit: cover; }
.passo-arte.vuota { display: grid; place-items: center; background: var(--crema-chiara); outline: 2px dashed var(--linea); outline-offset: -2px; }
.segnaposto { display: grid; justify-items: center; gap: 8px; padding-bottom: 34px; font-size: 12.5px; color: var(--tenue); }
.segnaposto svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.passo-testo { flex: 1; display: grid; grid-template-rows: auto auto 1fr; align-content: start; gap: 8px; padding: 16px 12px 12px; }
.passo-testo .num { font: 800 13px var(--f-titolo); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--inchiostro); color: var(--lime); margin-bottom: 4px; }
.passo-testo h3 { font-size: 23px; font-weight: 800; letter-spacing: -.03em; line-height: 1.12; }
.passo-testo p { font-size: 15px; color: var(--tenue); }
/* a small proof on the picture of what the card says: it pops in when the card lands */
.prova {
  position: absolute; left: 12px; bottom: 12px; max-width: calc(100% - 24px);
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px 8px 8px; border-radius: 14px;
  background: var(--bianco); font: 700 13.5px/1.3 var(--f-titolo); letter-spacing: -.01em; box-shadow: var(--ombra-vetro);
  opacity: 0; transform: translateY(10px) scale(.94);
  transition: opacity .3s var(--dolce) .22s, transform .46s var(--molla) .22s;
}
.passo.in-vista .prova { opacity: 1; transform: none; }
.prova i { width: 20px; height: 20px; flex: none; border-radius: 50%; background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%2311151b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }

/* the ink band runs edge to edge, so the cards' dark ground flows straight into the panel */
.differenza-wrap { position: relative; isolation: isolate; padding-block: 0 28px; }
.differenza-wrap::before { content: ""; position: absolute; z-index: -1; top: -1px; bottom: 0; left: calc(50% - 50vw); right: calc(50% - 50vw); background: var(--inchiostro); border-radius: 0 0 40px 40px; pointer-events: none; }
.differenza {
  background: var(--inchiostro); color: var(--crema); border-radius: 32px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10%;
  padding: clamp(40px, 6vw, 84px);
}
.differenza .occhiello { color: var(--lime); }
.differenza h2 { color: var(--crema); }
.bottone-lime {
  margin-top: 34px; display: inline-flex; align-items: center; gap: 16px; padding: 15px 18px 15px 22px; border-radius: 999px;
  background: var(--lime); color: var(--inchiostro); font: 700 15px var(--f-titolo); transition: transform .35s var(--molla), background .2s;
}
.bottone-lime:hover { transform: translateY(-2px); background: #b9f52e; }
.bottone-lime svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; transform: rotate(-45deg); transition: transform .4s var(--molla); }
.bottone-lime:hover svg { transform: none; }
.benefici { display: grid; gap: 6px; }
.benefici article { padding: 22px 0; }
.benefici article + article { border-top: 1px solid #2c3137; }
.benefici span { font: 700 10.5px var(--f-titolo); letter-spacing: .14em; text-transform: uppercase; color: var(--lime); }
.benefici h3 { font-size: 24px; font-weight: 700; letter-spacing: -.02em; margin: 10px 0 8px; color: var(--crema); }
.benefici p { color: #b7bcbe; font-size: 15px; max-width: 46ch; }

/* ---------- "Meno moduli. Più persone.": a scroll scene. On wide screens the panel pins; the title
   starts in the centre, steps aside as its button arrives, then the three cards slam in one by one.
   Narrow screens skip the pin: each piece lands as it scrolls into view. JS adds .anima / .pin. ---------- */
.benefici span { display: inline-block; }
.differenza.anima .benefici article {
  position: relative; opacity: 0; transform-origin: 0 50%;
  transform: translate3d(140px, 0, 0) rotate(4deg) scale(.92); filter: blur(12px);
  transition: opacity .3s var(--dolce), transform 1s cubic-bezier(.16, 1.32, .3, 1), filter .45s var(--dolce);
}
.differenza.anima .benefici article.dentro { opacity: 1; transform: none; filter: none; }
.differenza.anima .benefici article > * { transition: opacity .4s var(--dolce), transform .75s var(--cassetto); }
.differenza.anima .benefici article:not(.dentro) > * { opacity: 0; transform: translateY(16px); }
.differenza.anima .benefici article.dentro > span { transition-delay: .1s; }
.differenza.anima .benefici article.dentro > h3 { transition-delay: .18s; }
.differenza.anima .benefici article.dentro > p { transition-delay: .28s; }
/* the rule between cards draws itself, and a lime bar snaps up beside each card as it lands */
.differenza.anima .benefici article + article { border-top-color: transparent; }
.differenza.anima .benefici article + article::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: #2c3137;
  transform: scaleX(0); transform-origin: 0 50%; transition: transform .9s var(--cassetto) .15s;
}
.differenza.anima .benefici article::after {
  content: ""; position: absolute; left: -22px; top: 24px; bottom: 24px; width: 4px; border-radius: 2px;
  background: var(--lime); transform: scaleY(0); transform-origin: 50% 0; transition: transform .6s var(--molla) .22s;
}
.differenza.anima .benefici article.dentro::before { transform: scaleX(1); }
.differenza.anima .benefici article.dentro::after { transform: scaleY(1); }

/* pinned scene: JS writes --dx (offset to the centre), --sc (scale) and --bo (button reveal) */
.differenza-wrap.pin { height: calc(330svh + 58px); }
.differenza-wrap.pin .differenza { position: sticky; top: 16px; height: calc(100svh - 32px); align-items: center; }
.differenza-wrap.pin .differenza-capo {
  width: fit-content; max-width: 100%; position: relative; z-index: 1; will-change: transform;
  transform: translate3d(var(--dx, 0px), 0, 0) scale(var(--sc, 1)); transform-origin: 50% 50%;
}
.differenza-wrap.pin .differenza-capo .bottone-lime { opacity: var(--bo, 1); translate: 0 calc((1 - var(--bo, 1)) * 22px); pointer-events: var(--bo-click, auto); }
/* unpinned: the title rises in as it enters */
.differenza-wrap:not(.pin) .differenza.anima .differenza-capo { transition: opacity .5s var(--dolce), transform .8s var(--cassetto); }
.differenza-wrap:not(.pin) .differenza.anima .differenza-capo:not(.dentro) { opacity: 0; transform: translateY(32px); }

.faq { padding-block: 80px 90px; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 7%; }
.faq-intro p { margin-top: 20px; color: var(--tenue); }
.faq-intro a { color: var(--inchiostro); font-weight: 600; text-decoration: underline; }
.faq-lista { display: grid; gap: 10px; }
details { border-radius: 16px; background: var(--crema-chiara); transition: background .2s; }
details[open] { background: var(--bianco); }
summary {
  list-style: none; cursor: pointer; padding: 20px 22px; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font: 700 17px var(--f-titolo); letter-spacing: -.02em;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font: 500 24px/1 var(--f-titolo); width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--crema); transition: transform .35s var(--molla), background .2s; }
details[open] summary::after { transform: rotate(45deg); background: var(--lime); }
details p { padding: 0 22px 22px; color: var(--tenue); font-size: 15px; max-width: 62ch; }

.piede { padding-block: 50px calc(110px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 24px; font-size: 12.5px; color: var(--tenue); }
.piede-alto { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.piede-alto .nome { font: 800 16px var(--f-titolo); letter-spacing: -.035em; color: var(--inchiostro); }
.piede-link { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.piede-link a { text-decoration: underline; text-underline-offset: 3px; }

/* the anti-spam field: people never see it, the Worker rejects a request that fills it */
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* phone-only pieces: the frosted strip under the header and the extra story bubbles */
.velo, .solo-tel { display: none; }

/* ---------- tablet ---------- */
@media (max-width: 1000px) {
  .differenza { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .faq { grid-template-columns: minmax(0, 1fr); gap: 30px; }
}
/* ---------- phone: one column; the CTA becomes a pill at the bottom of the screen ---------- */
@media (max-width: 760px) {
  :root { --cima: calc(14px + env(safe-area-inset-top, 0px)); }
  html { scroll-padding-top: 84px; }
  .tessera { --fs: 24px; }
  .marchio-nome { margin-left: -22px; padding-left: 32px; }
  .marchio-nome span { font-size: 13.5px; transform: translateX(calc(var(--chiuso) * (-100% - 32px))); }
  .burger { width: 46px; height: 46px; }
  .burger span { left: 13px; }
  .burger span:nth-child(1) { top: 18px; } .burger span:nth-child(2) { top: 25px; }
  .cta {
    position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    height: 56px; padding-left: 26px; font-size: 16px;
    transform: translate(calc(-50% + var(--mx)), var(--my));
  }
  .cta.nascosta { opacity: 0; transform: translate(-50%, 140%); pointer-events: none; }
  .eroe { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 96px; padding-bottom: 40px; }
  h1 { font-size: clamp(42px, 11.5vw, 64px); letter-spacing: -.05em; }
  .lead { font-size: 17px; margin-top: 18px; }
  .foto, .voci-stampa { display: none; }
  .modulo { padding: 24px 20px; margin: 0; }
  .campi { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .passo-testo h3 { font-size: 21px; }
  .differenza { border-radius: 24px; padding: 40px 24px; }
  /* the ink rises like a sheet over the cream: rounded at the top too, since the steps above stay cream on a phone */
  .differenza-wrap::before { border-radius: 28px 28px 28px 28px; }
  .differenza { border-radius: 28px; }
  .faq { padding-top: 56px; }
  .valori-in { justify-items: start; text-align: left; }
  /* the form starts short: make (then model), year, mileage. The rest pops in once those four are filled */
  .modulo.corto .dopo { display: none; }
  .modulo.svela .dopo { animation: dopo-su .55s var(--molla) backwards; animation-delay: calc(var(--i, 0) * 90ms); }
  @keyframes dopo-su { from { opacity: 0; transform: translateY(14px) scale(.96); } }
  .valori ul { flex-direction: column; justify-content: flex-start; }

  /* a frosted strip behind the tile and the burger once the page moves, so text never slides under them bare */
  .velo {
    display: block; position: fixed; z-index: 65; left: 0; right: 0; top: 0; height: calc(var(--cima) + 64px); pointer-events: none;
    background: rgba(245, 242, 233, .8); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
    -webkit-mask-image: linear-gradient(#000 62%, transparent); mask-image: linear-gradient(#000 62%, transparent);
    opacity: 0; transition: opacity .3s var(--dolce), background .35s var(--dolce);
  }
  body.scorso .velo { opacity: 1; }
  body.su-scuro .velo { background: rgba(17, 21, 27, .78); }
  body.su-scuro .burger { background: rgba(255, 255, 255, .9); }

  /* the reviews come back on the phone as story bubbles: a row you swipe, each one opens its story */
  .voci { margin-top: 26px; gap: 12px; }
  .voci-lista {
    display: flex; gap: 6px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; scroll-snap-type: x proximity;
    margin-inline: calc(-1 * var(--gutter-l)) calc(-1 * var(--gutter-r)); padding: 4px var(--gutter-r) 8px var(--gutter-l);
    scroll-padding-inline: var(--gutter-l);
  }
  .voci-lista::-webkit-scrollbar { display: none; }
  .voci-lista li { flex: none; scroll-snap-align: start; }
  .voci-lista .solo-tel { display: block; }
  .voce {
    width: 82px; flex-direction: column; gap: 7px; padding: 0; background: none; box-shadow: none; border-radius: 0; text-align: center;
  }
  .voce:hover { transform: none; box-shadow: none; }
  .voce:active { transform: scale(.93); }
  .voce-foto {
    width: 72px; height: 72px; border-radius: 50%; padding: 3px; overflow: visible;
    background: conic-gradient(from 200deg, var(--lime), var(--lime-scuro), var(--lime), #e6ff9e, var(--lime));
  }
  .voce-foto img { border-radius: 50%; border: 3px solid var(--crema); object-position: center 22%; }
  .voce-play { right: -1px; bottom: -1px; width: 24px; height: 24px; border: 2.5px solid var(--crema); background: var(--inchiostro); }
  .voce-play svg { fill: var(--lime); }
  .voce-sigla-in {
    width: 100%; height: 100%; border-radius: 50%; border: 3px solid var(--crema); display: grid; place-items: center; align-content: center;
    background: var(--inchiostro); color: var(--crema); font: 800 26px/1 var(--f-titolo); letter-spacing: -.04em;
  }
  .voce-sigla-in.bianco { background: var(--bianco); color: var(--inchiostro); font-family: Georgia, 'Times New Roman', serif; font-size: 30px; letter-spacing: 0; }
  .voce-sigla-in small { display: block; margin-top: 3px; font: 700 9.5px/1 var(--f-titolo); letter-spacing: .12em; color: var(--lime); }
  .voce-chi { width: 100%; }
  .voce-chi b { font-size: 13px; }
  .voce-chi small { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

  /* how it works, phone: no pinned pile (its edges peeked out in slivers, and a phone's moving toolbar cut it on a line).
     The four cards simply follow one another down the page, each rising in as it arrives */
  .pila.semplice .pila-palco { position: static; height: auto; overflow: visible; display: grid; justify-items: center; gap: 18px; padding-block: 72px 64px; }
  .pila.semplice .pila-testa { position: static; opacity: 1; transform: none; padding: 0 0 18px; }
  .pila.semplice .pila-testa h2 { font-size: clamp(40px, 11vw, 56px); }
  .pila.semplice .passo {
    position: relative; inset: auto; width: 100%; max-width: 460px; transform: none; will-change: auto;
    opacity: 0; translate: 0 44px; scale: .97;
    transition: opacity .45s var(--dolce), translate .8s var(--molla), scale .8s var(--molla);
  }
  .pila.semplice .passo.in-vista { opacity: 1; translate: none; scale: none; }
  .pila.semplice .passo::after { content: none; }

  /* the three benefit cards rise from below on a phone: from the right they would widen the page */
  .differenza.anima .benefici article { transform: translate3d(0, 56px, 0) scale(.95); filter: blur(8px); transform-origin: 50% 100%; }
  .differenza.anima .benefici article::after { left: -14px; }
  .differenza-wrap { overflow-x: clip; }

  /* the lists under the make, model and year leave room for the keyboard */
  .combo-lista { max-height: min(300px, 40svh); }
  summary:active { background: rgba(17, 21, 27, .04); border-radius: 16px; }
}
@media (max-width: 380px) {
  .marchio-nome span { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  html { scroll-behavior: auto; }
}
