/* CarLens — il sito. Lo stesso mondo dell'app: la segnaletica stradale
   italiana, l'inchiostro d'asfalto sul fondo, Barlow per quello che si legge
   di sfuggita e il carattere di sistema per tutto il resto. Le quattro tinte
   del verdetto stanno solo sul verdetto e sulla gravità. */

@font-face {
  font-family: "Barlow Semi Condensed";
  src: url("fonts/BarlowSemiCondensed-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Semi Condensed";
  src: url("fonts/BarlowSemiCondensed-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}

:root {
  --ink: #1C1F22;
  --ink-variant: #535E66;
  --ground: #EDEFEE;
  --surface: #FFFFFF;
  --rule: #D5DAD8;
  --ink-18: rgba(28, 31, 34, .18);
  --ink-08: rgba(28, 31, 34, .08);

  --night: #1C1F22;
  --night-surface: #1F2327;
  --night-ink: #E9ECEB;
  --night-variant: #AEB6BB;
  --night-rule: #343A3F;

  --red: #C8161D;
  --yellow: #F4B400;
  --green: #0B7A3E;
  --blue: #0B4F9C;
  --not-evaluated: #5A6268;
  --tourist: #6E4326;

  --chart-fuel: #0F7C8A;
  --chart-insurance: #5B4B9A;
  --chart-tax: #687B87;
  --chart-scheduled: #8A5A2C;
  --chart-likely: #8E3B62;
  --chart-depreciation: #3F4A53;

  --sign: "Barlow Semi Condensed", "Arial Narrow", sans-serif;
  --text: -apple-system, BlinkMacSystemFont, "SF Pro Text", Roboto, "Segoe UI", system-ui, sans-serif;

  --gutter: 16px;
  --rail: 56px;
  --disc: 34px;
  --max: 1200px;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-lens: cubic-bezier(.65, 0, .35, 1);
  --ease-cubic: cubic-bezier(.33, 1, .68, 1);
}
@media (min-width: 760px) {
  :root { --gutter: 32px; --rail: 96px; --disc: 52px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 17px/1.5 var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  caret-color: var(--ink);
}
::selection { background: var(--ink); color: #fff; }
.hero ::selection, .finale ::selection, .foot ::selection { background: #fff; color: var(--ink); }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: .22em; }
button { font: inherit; color: inherit; }
svg { display: block; }
.num { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.hero :focus-visible, .finale :focus-visible, .foot :focus-visible, .bar[data-tone="night"] :focus-visible { outline-color: #fff; }

html { scrollbar-color: #9AA3A8 var(--ground); }
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--ground); }
::-webkit-scrollbar-thumb { background: #A9B1B5; border: 3px solid var(--ground); border-radius: 8px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 10px;
}
.skip:focus { top: 12px; }

/* ---------- Barra in cima ---------- */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; gap: 24px;
  height: 64px; padding: 0 var(--gutter);
  padding-top: env(safe-area-inset-top);
  color: var(--night-ink);
  transition: background-color .25s var(--ease-cubic), color .25s var(--ease-cubic), box-shadow .25s;
}
.bar.is-scrolled[data-tone="night"] { background: var(--night); box-shadow: 0 1px 0 var(--night-rule); }
.bar[data-tone="day"] { color: var(--ink); background: var(--ground); box-shadow: 0 1px 0 var(--rule); }
.bar-mark {
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none; font: 700 24px/1 var(--sign); letter-spacing: .005em;
}
.lens-mark { width: 30px; height: 30px; }
.bar-nav { display: none; margin-left: auto; gap: 28px; }
.bar-nav a { text-decoration: none; font-weight: 600; font-size: 15px; opacity: .86; }
.bar-nav a:hover { opacity: 1; text-decoration: underline; }
.bar-cta {
  margin-left: auto;
  display: inline-flex; align-items: center; height: 40px; padding: 0 16px;
  border-radius: 10px; text-decoration: none; font-weight: 600; font-size: 15px;
  background: #fff; color: var(--ink);
  transition: transform .09s, background-color .25s, color .25s;
}
.bar[data-tone="day"] .bar-cta { background: var(--ink); color: #fff; }
.bar-cta:active { transform: scale(.97); }
@media (min-width: 760px) {
  .bar-nav { display: flex; }
  .bar-cta { margin-left: 8px; }
}

/* ---------- Apertura ---------- */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  background: var(--night); color: var(--night-ink);
  display: grid; align-content: center; justify-items: center;
  padding: 104px var(--gutter) 72px;
  text-align: center;
}
.hero-copy { display: grid; justify-items: center; }
.hero-figure { width: min(100%, 760px); margin-bottom: clamp(8px, 2vw, 20px); }
.hero-figure svg, .finale-figure svg { width: 100%; height: auto; overflow: visible; }
.cl-road rect { fill: rgba(233, 236, 235, .5); }
.cl-ground { stroke: rgba(233, 236, 235, .3); }
.cl-faint path, .cl-faint circle { stroke: rgba(233, 236, 235, .2); }
.cl-ink path, .cl-ink circle { stroke: rgba(233, 236, 235, .82); }
.cl-glass { fill: var(--night-surface); }
.cl-mag path, .cl-mag circle, .cl-detail { stroke: #fff; }
.cl-rim path, .cl-handle { stroke: #fff; }

.hero-name {
  font: 700 clamp(68px, 19vw, 188px)/.9 var(--sign);
  letter-spacing: .005em;
  margin-top: -.06em;
}
.js .hero-name { opacity: 0; }
.hero-line {
  margin-top: clamp(18px, 3vw, 28px);
  font: 600 clamp(25px, 4.2vw, 40px)/1.1 var(--sign);
  max-width: 24ch; text-wrap: balance;
}
.hero-sub {
  margin-top: 16px; max-width: 52ch;
  color: var(--night-variant); font-size: clamp(16px, 1.9vw, 19px); line-height: 1.5;
  text-wrap: pretty;
}
.hero-note { margin-top: 18px; font-size: 15px; color: var(--night-variant); }
.hero-note a { text-decoration: underline; }
.hero-note a:hover { color: #fff; }
.js .hero-line, .js .hero-sub, .js .stores, .js .hero-note {
  opacity: 0; transform: translateY(10px);
  transition: opacity .5s var(--ease-out), transform .6s var(--ease-out);
}
.js .in.hero-line, .js .in.hero-sub, .js .in.stores, .js .in.hero-note { opacity: 1; transform: none; }

.stores { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.store {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 56px; padding: 8px 20px 8px 16px;
  border-radius: 10px; text-decoration: none; text-align: left;
  background: #fff; color: var(--ink);
  transition: transform .09s var(--ease-cubic);
}
.store svg { width: 26px; height: 26px; flex: none; }
.store > span { display: grid; font: 700 21px/1.05 var(--sign); }
.store small { font: 600 12px/1.3 var(--text); color: var(--ink-variant); }
.store:hover { background: #F4F6F5; }
.store:active { transform: scale(.97); }
.store.is-soon { background: transparent; color: var(--night-ink); box-shadow: inset 0 0 0 1.6px rgba(233, 236, 235, .5); cursor: default; }
.store.is-soon small { color: var(--night-variant); }

/* ---------- Il percorso ---------- */
.route-wrap {
  position: relative;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 24px var(--gutter) 0 calc(var(--gutter) + var(--rail));
}
.route {
  position: absolute; top: 0; bottom: 140px;
  left: calc(var(--gutter) + var(--rail) / 2 - 1.5px);
  width: 3px; border-radius: 2px; background: var(--ink-18);
  overflow: hidden;
}
.route-fill {
  position: absolute; inset: 0; background: var(--ink);
  transform-origin: top; transform: scaleY(0);
}
.still .route-fill { transform: scaleY(1) !important; }

.stop { padding: clamp(72px, 10vw, 128px) 0 clamp(24px, 4vw, 40px); }
.stop-head { position: relative; margin-bottom: clamp(24px, 4vw, 48px); }
.stop-head h2 {
  font: 700 clamp(36px, 6.4vw, 70px)/1 var(--sign);
  letter-spacing: -.012em; text-wrap: balance; max-width: 16ch;
}
.disc {
  position: absolute; top: calc(.5em - var(--disc) / 2);
  font-size: clamp(36px, 6.4vw, 70px);
  left: calc(-1 * var(--rail) / 2 - var(--disc) / 2);
  width: var(--disc); height: var(--disc); border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ground); color: var(--ink-variant);
  box-shadow: inset 0 0 0 2px var(--rule);
  transition: background-color .2s var(--ease-cubic), color .2s, box-shadow .2s var(--ease-cubic), transform .3s var(--ease-out);
}
.disc b { font: 700 calc(var(--disc) * .46)/1 var(--sign); }
.disc svg { position: absolute; width: 56%; height: 56%; opacity: 0; transform: scale(.6); transition: opacity .2s, transform .3s var(--ease-out); }
.disc b { transition: opacity .15s; }
.is-next .disc { box-shadow: inset 0 0 0 3px var(--ink); color: var(--ink); }
.is-reached .disc, .still .disc { background: var(--ink); color: #fff; box-shadow: none; animation: punch .34s var(--ease-out); }
.is-reached .disc b, .still .disc b { opacity: 0; }
.is-reached .disc svg, .still .disc svg { opacity: 1; transform: none; }
.disc--end { background: var(--ground); }
.disc--end svg { opacity: 1; transform: none; width: 62%; height: 62%; color: var(--ink-variant); position: static; }
.is-reached .disc--end, .still .disc--end { background: var(--ink); }
.is-reached .disc--end svg, .still .disc--end svg { color: #fff; }
@keyframes punch { 0% { transform: scale(.82); } 100% { transform: scale(1); } }
.still .disc { animation: none; }

.stop-grid { display: grid; gap: 40px; }
@media (min-width: 980px) {
  .stop-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
  .stop-text { position: sticky; top: 112px; }
}
.lead { font-size: clamp(18px, 2vw, 21px); line-height: 1.45; max-width: 36em; text-wrap: pretty; }
/* Quello che l'app farà e oggi non fa: detto, con la sua etichetta, e mai
   descritto come se ci fosse. */
.soon-note { margin-top: 12px; max-width: 36em; font-size: 15px; line-height: 1.45; color: var(--ink-variant); }
.soon-tag { display: inline-block; margin-right: 6px; padding: 2px 8px; border-radius: 4px; background: var(--ink-08); color: var(--ink); font-family: "Barlow Semi Condensed", system-ui, sans-serif; font-weight: 600; font-size: 13px; letter-spacing: .02em; text-transform: uppercase; vertical-align: 1px; }
.body { margin-top: 16px; color: var(--ink-variant); max-width: 36em; text-wrap: pretty; }
.body b { color: var(--ink); }
.small { font-size: 14px; color: var(--ink-variant); margin-top: 12px; }

.aside { margin-top: 28px; padding-top: 16px; border-top: 1.5px solid var(--ink); max-width: 36em; }
.aside h3 { font: 600 22px/1.15 var(--sign); margin-bottom: 6px; }
.aside p { color: var(--ink-variant); font-size: 16px; }

/* Cartelli: tinta piena o superficie, bordo rientrato da 1,6 a 4 dal bordo. */
.sign { position: relative; border-radius: 12px; }
.sign::before {
  content: ""; position: absolute; inset: 4px; border-radius: 9px;
  border: 1.6px solid currentColor; pointer-events: none;
}
.sign--direction { background: var(--surface); color: var(--ink); }
.sign--good { background: var(--green); color: #fff; }
.sign--tourist { background: var(--tourist); color: #fff; }

/* ---------- 1. L'annuncio ---------- */
.listing { position: relative; }
.listing-card {
  position: relative;
  background: var(--surface); border: 1px solid var(--rule); border-radius: 12px;
  padding: 22px 22px 20px;
}
.listing-lens {
  position: absolute; left: 0; top: 0; z-index: 2; pointer-events: none;
  width: 0; height: 0; color: var(--ink);
  transform: translate(40px, 30px);
  transition: transform .42s var(--ease-lens), opacity .4s;
  opacity: 0;
}
.listing-lens svg { width: 92px; height: 92px; margin: -46px 0 0 -46px; overflow: visible; }
.js .listing.in .listing-lens { opacity: 1; }
.js .listing.is-done .listing-lens { opacity: 0; }
.l-row {
  background-image: linear-gradient(var(--ink), var(--ink));
  background-repeat: no-repeat; background-position: 0 100%; background-size: 0 2px;
  transition: background-size .38s var(--ease-out), color .3s;
}
.js .l-row:not(.on) { color: var(--ink-variant); }
.l-row.on, .still .l-row { background-size: 100% 2px; }
.listing.is-done .l-row { background-image: linear-gradient(var(--rule), var(--rule)); }
.l-title { display: inline; font-weight: 600; font-size: 18px; line-height: 1.5; padding-bottom: 2px; }
.l-price { display: table; margin-top: 10px; font: 700 30px/1.1 var(--sign); font-variant-numeric: tabular-nums; padding-bottom: 2px; }
.l-specs { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 16px 0 14px; }
.l-specs dd { white-space: nowrap; }
.l-specs div { padding-bottom: 3px; }
.l-specs dt { font-size: 13px; color: var(--ink-variant); }
.l-specs dd { font-weight: 600; font-variant-numeric: tabular-nums; }
.l-equip { display: inline; font-size: 15px; line-height: 1.55; }
.l-seller { display: table; margin-top: 14px; font-size: 15px; font-weight: 600; padding-bottom: 2px; }

.readout { margin-top: 20px; border-top: 1.5px solid var(--ink); }
.readout li {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px;
  padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: 16px;
  transition: opacity .4s var(--ease-out), transform .5s var(--ease-out);
}
.js .readout li:not(.on) { opacity: .22; transform: translateX(-6px); }
.readout .k { min-width: 9.5em; color: var(--ink-variant); font-size: 15px; }
.readout b.num { font-weight: 600; }
.shield {
  position: relative; display: inline-grid; place-items: center;
  min-height: 26px; padding: 2px 9px; border-radius: 5px;
  background: var(--ink); color: #fff; font: 700 15px/1 var(--sign); letter-spacing: .02em;
}
.shield::before { content: ""; position: absolute; inset: 2px; border: 1px solid #fff; border-radius: 3px; }
.listing figcaption { margin-top: 14px; font-size: 14px; color: var(--ink-variant); max-width: 60ch; }

/* ---------- 2. Il report ---------- */
.report { display: grid; gap: 20px; }
.verdict { padding: 18px 20px 20px; }
.verdict-top { display: flex; align-items: center; gap: 12px; }
.glyph-chip { flex: none; width: 48px; height: 48px; display: grid; place-items: center; background: #fff; border-radius: 8px; }
.glyph-chip svg { width: 36px; height: 36px; }
.verdict-car { font-weight: 600; font-size: 15px; line-height: 1.3; }
.verdict-word { margin-top: 10px; font: 700 clamp(48px, 8vw, 80px)/.98 var(--sign); letter-spacing: -.01em; }
.verdict-prices { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 4px 28px; margin-top: 16px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.45); }
.verdict-prices span { display: block; font-size: 13px; font-weight: 600; }
.verdict-prices b { font: 700 clamp(20px, 2.6vw, 26px)/1.1 var(--sign); }
@media (max-width: 420px) { .verdict-prices { grid-template-columns: repeat(2, auto); } }

.js [data-stamp] { transform: translateY(14px); transition: opacity .45s var(--ease-out), transform .6s var(--ease-out); }
.js [data-stamp].in, .still [data-stamp] { opacity: 1; transform: none; }
.js [data-stamp] .glyph-chip svg { opacity: 0; }
.js [data-stamp].in .glyph-chip svg { animation: stamp .52s .22s var(--ease-cubic) both; }
.still [data-stamp] .glyph-chip svg { opacity: 1; animation: none; }
@keyframes stamp {
  0% { opacity: 0; transform: scale(1.7); }
  70% { opacity: 1; transform: scale(.92); }
  100% { opacity: 1; transform: scale(1); }
}

.stations { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); padding: 4px 0; }
.stations::before { content: ""; position: absolute; left: 12.5%; right: 12.5%; top: 18px; height: 3px; background: var(--ink-18); border-radius: 2px; }
.station { position: relative; display: grid; justify-items: center; gap: 6px; font-size: 14px; color: var(--ink-variant); }
.station svg { width: 32px; height: 32px; opacity: .3; filter: grayscale(.6); transition: opacity .4s, filter .4s, transform .5s var(--ease-out); }
.station.is-on { color: var(--ink); font-weight: 700; }
.stations.in .station.is-on svg, .still .station.is-on svg { opacity: 1; filter: none; transform: scale(1.12); }
.station.is-on svg { opacity: 1; filter: none; }

.modules { padding: 18px 20px 8px; }
.modules-title { font: 600 22px/1.1 var(--sign); padding-bottom: 10px; }
.modules li {
  display: grid; grid-template-columns: 1fr auto 32px; grid-template-areas: "name score glyph" "why score glyph";
  align-items: center; column-gap: 12px; padding: 12px 0; border-top: 1px solid var(--rule);
  transition: opacity .4s var(--ease-out), transform .5s var(--ease-out);
}
.m-name { grid-area: name; font-weight: 600; font-size: 17px; }
.m-why { grid-area: why; font-size: 14px; color: var(--ink-variant); line-height: 1.35; }
.m-score { grid-area: score; font: 700 30px/1 var(--sign); }
.m-glyph { grid-area: glyph; width: 30px; height: 30px; }
.is-ne .m-score { font: 600 15px/1.2 var(--text); color: var(--not-evaluated); }
.js .modules li { transform: translateY(8px); }
.js .modules.in li, .still .modules li { opacity: 1; transform: none; }
.modules.in li:nth-child(2) { transition-delay: .06s; }
.modules.in li:nth-child(3) { transition-delay: .12s; }
.modules.in li:nth-child(4) { transition-delay: .18s; }

.complete { display: grid; gap: 10px; }
.complete-bar { height: 8px; border-radius: 4px; background: var(--ink-08); overflow: hidden; }
.complete-bar span { display: block; height: 100%; width: 100%; background: var(--ink); transform-origin: left; transform: scaleX(var(--v)); transition: transform .9s var(--ease-out); }
.js .complete:not(.in) .complete-bar span { transform: scaleX(0); }
.complete p { font-size: 15px; color: var(--ink-variant); }
.complete p b { color: var(--ink); }
.disclaimer { font-size: 14px; color: var(--ink-variant); padding-top: 12px; border-top: 1.5px solid var(--ink); }

/* ---------- 3. I costi ---------- */
.costs { display: grid; gap: 32px; }
@media (min-width: 640px) and (max-width: 979px), (min-width: 1180px) { .costs { grid-template-columns: 1.15fr 1fr; align-items: start; } }
.receipt {
  background: var(--surface); border-radius: 12px; box-shadow: inset 0 0 0 1.6px var(--ink);
  padding: 18px 20px 16px;
}
.receipt h3, .survival h3, .levers h3, .questions h3, .keep h3 { font: 600 22px/1.15 var(--sign); }
.stack { display: flex; gap: 2px; height: 14px; margin: 14px 0 10px; border-radius: 3px; overflow: hidden; transition: clip-path .9s var(--ease-out); }
.stack span { flex: var(--w) 1 0; background: var(--c); }
.js .receipt:not(.in) .stack { clip-path: inset(0 100% 0 0); }
.js .receipt .stack { clip-path: inset(0 0 0 0); }
.rows li { display: grid; grid-template-columns: 12px 1fr auto; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--rule); font-size: 15px; }
.rows i { width: 12px; height: 12px; border-radius: 3px; background: var(--c); }
.rows b { font-weight: 600; }
.total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 10px; margin-top: 2px; border-top: 1.5px solid var(--ink); font-weight: 700; }
.total b { font: 700 24px/1 var(--sign); }

.survival { padding-top: 14px; border-top: 1.5px solid var(--ink); }
.survival > p { margin-top: 6px; font-size: 16px; }
.curve { width: 100%; height: auto; margin-top: 14px; overflow: visible; }
.curve .axis { stroke: var(--ink-18); stroke-width: 1.5; }
.curve-area { fill: var(--chart-depreciation); opacity: .1; }
.curve-line { fill: none; stroke: var(--chart-depreciation); stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: 340; stroke-dashoffset: 0; transition: stroke-dashoffset 1.1s var(--ease-out); }
.js .survival:not(.in) .curve-line { stroke-dashoffset: 340; }
.curve-pts circle { fill: var(--ink); }
.curve-pts text { font: 700 15px var(--sign); fill: var(--ink); font-variant-numeric: tabular-nums; }
.curve-pts .t-axis { font: 500 11px var(--text); fill: var(--ink-variant); }
.js .survival:not(.in) .curve-area { clip-path: inset(0 100% 0 0); }
.curve-area { transition: clip-path 1.1s var(--ease-out); }

/* ---------- 4. La visita ---------- */
.visit { display: grid; gap: 28px; }
.checklist { display: grid; gap: 6px; }
.leg { position: relative; }
.leg-title { display: flex; align-items: center; gap: 10px; font: 600 22px/1.1 var(--sign); padding: 14px 0 6px; }
.leg-title::after { content: ""; flex: 1; height: 1.5px; background: var(--ink); }
.leg ol { position: relative; }
.leg ol::before { content: ""; position: absolute; left: 25.5px; top: 28px; bottom: 28px; width: 3px; background: var(--ink-18); border-radius: 2px; }
.leg li { position: relative; }
.tick {
  display: flex; align-items: flex-start; gap: 14px; width: 100%;
  min-height: 56px; padding: 8px 8px 12px; margin: 0;
  border: 0; border-radius: 10px; background: none; text-align: left; cursor: pointer;
  transition: background-color .2s, transform .09s var(--ease-cubic);
}
.tick:hover { background: var(--ink-08); }
.tick:active { transform: scale(.985); }
.tick-disc {
  position: relative; flex: none; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; background: var(--ground);
  box-shadow: inset 0 0 0 2px var(--rule); color: var(--ink-variant);
  transition: background-color .2s var(--ease-cubic), box-shadow .2s, color .2s;
}
.tick-disc b { font: 700 18px/1 var(--sign); transition: opacity .15s; }
.tick-disc svg { position: absolute; width: 22px; height: 22px; opacity: 0; transform: scale(.6); transition: opacity .2s, transform .3s var(--ease-out); color: #fff; }
.tick.is-next .tick-disc { box-shadow: inset 0 0 0 3px var(--ink); color: var(--ink); }
.tick[aria-pressed="true"] .tick-disc { background: var(--ink); box-shadow: none; animation: punch .3s var(--ease-out); }
.tick[aria-pressed="true"] .tick-disc b { opacity: 0; }
.tick[aria-pressed="true"] .tick-disc svg { opacity: 1; transform: none; }
.tick-text { padding-top: 7px; font-size: 16px; line-height: 1.4; }
.tick[aria-pressed="true"] .tick-text { color: var(--ink-variant); }
.questions { padding-top: 14px; border-top: 1.5px solid var(--ink); }
.questions ul { margin-top: 8px; }
.questions li { padding: 10px 0 10px 22px; border-bottom: 1px solid var(--rule); position: relative; }
.questions li::before { content: ""; position: absolute; left: 2px; top: 1.05em; width: 8px; height: 8px; background: var(--ink); border-radius: 1px; }

/* ---------- 5. La trattativa ---------- */
.deal { display: grid; gap: 32px; }
.path { position: relative; padding-left: 4px; }
.path li { position: relative; display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 14px; padding: 10px 0; }
.path li.p-gap { display: block; padding: 6px 0 6px 52px; min-height: 52px; }
.path li.p-gap em { font-size: 15px; color: var(--ink-variant); }
.path::before { content: ""; position: absolute; left: 19.5px; top: 30px; bottom: 30px; width: 3px; background: var(--ink); border-radius: 2px; transform-origin: top; transition: transform .9s var(--ease-out); }
.js .path:not(.in)::before { transform: scaleY(0); }
.p-disc { width: 34px; height: 34px; border-radius: 50%; background: var(--ground); position: relative; z-index: 1; }
.p-open .p-disc { background: var(--ink); }
.p-max .p-disc { box-shadow: inset 0 0 0 3px var(--ink); }
.p-ask .p-disc { box-shadow: inset 0 0 0 2px rgba(28,31,34,.35); }
.p-name { font-weight: 600; font-size: 17px; line-height: 1.3; }
.p-name small { display: block; font-weight: 400; font-size: 14px; color: var(--ink-variant); }
.path b { font: 700 clamp(26px, 3vw, 32px)/1 var(--sign); }
.p-ask b, .p-ask .p-name { color: var(--ink-variant); }
.js .path li { transition: opacity .4s var(--ease-out), transform .5s var(--ease-out); }
.js .path:not(.in) li { transform: translateY(6px); }
.path.in li:nth-child(2) { transition-delay: .15s; }
.path.in li:nth-child(3) { transition-delay: .3s; }
.path.in li:nth-child(4) { transition-delay: .45s; }
.levers { padding-top: 14px; border-top: 1.5px solid var(--ink); }
.levers li { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.levers li small { display: block; font-size: 14px; color: var(--ink-variant); }
.levers b.num { font-weight: 600; white-space: nowrap; }

/* ---------- Arrivo del percorso: il telefono ---------- */
.stop--arrive { padding-bottom: clamp(72px, 10vw, 120px); }
.phone-split { display: grid; gap: 16px; }
@media (min-width: 760px) { .phone-split { grid-template-columns: 1fr 1fr; gap: 20px; } }
.keep { border-radius: 12px; padding: 20px 22px 22px; background: var(--ink); color: #fff; position: relative; }
.keep::before { content: ""; position: absolute; inset: 4px; border-radius: 9px; border: 1.6px solid #fff; pointer-events: none; }
.keep ul { margin-top: 12px; }
.keep li { padding: 9px 0 9px 22px; position: relative; border-top: 1px solid rgba(255,255,255,.28); font-size: 17px; }
.keep li::before { content: ""; position: absolute; left: 2px; top: 1.1em; width: 8px; height: 8px; background: currentColor; border-radius: 1px; }
.keep--server { background: var(--surface); color: var(--ink); }
.keep--server::before { border-color: var(--ink); }
.keep--server li { border-top-color: var(--rule); }
.keep-note { grid-column: 1 / -1; margin-top: 8px; color: var(--ink-variant); max-width: 64ch; }
.keep-note a { color: var(--ink); font-weight: 600; }

/* ---------- Fasce ---------- */
.band { padding: clamp(72px, 10vw, 128px) 0; border-top: 3px solid var(--ink); }
.band--plain { border-top: 0; padding-top: 0; }
.band-inner { max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.band-split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 980px) { .band-split { grid-template-columns: 1fr 1fr; gap: 72px; } }
.band-title { font: 700 clamp(36px, 6vw, 64px)/1 var(--sign); letter-spacing: -.012em; margin-bottom: 20px; text-wrap: balance; max-width: 18ch; }
.lead--wide { max-width: 44em; }

.distance { padding: 14px 22px; }
.d-row {
  display: grid; grid-template-columns: 1fr auto 34px; align-items: center; gap: 16px;
  padding: 14px 4px; border-bottom: 1px solid var(--rule);
  transition: opacity .45s var(--ease-out), transform .55s var(--ease-out);
}
.d-row:last-child { border-bottom: 0; }
.d-row span { font: 600 clamp(22px, 2.8vw, 30px)/1 var(--sign); }
.d-row b { font: 700 clamp(30px, 4vw, 44px)/1 var(--sign); }
.d-row svg { width: 30px; height: 22px; }
.js .distance:not(.in) .d-row { transform: translateX(-12px); }
.distance.in .d-row:nth-child(2) { transition-delay: .07s; }
.distance.in .d-row:nth-child(3) { transition-delay: .14s; }
.distance.in .d-row:nth-child(4) { transition-delay: .21s; }

.ways { display: grid; gap: 16px; margin-top: 8px; }
@media (min-width: 980px) { .ways { grid-template-columns: 2fr 1fr; gap: 20px; align-items: start; } }
.junction { padding: 6px 22px; }
.way {
  display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 16px; align-items: start;
  padding: 20px 0;
}
.way + .way { border-top: 1px solid var(--rule); }
.way h3 { font: 700 28px/1.05 var(--sign); margin: 6px 0 6px; }
.way p { font-size: 16px; line-height: 1.45; max-width: 46ch; }
.sign--direction .way p { color: var(--ink-variant); }
.way-shield { position: relative; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 5px; background: var(--ink); color: #fff; }
.way-shield::before { content: ""; position: absolute; inset: 3px; border-radius: 3px; border: 1.4px solid #fff; }
.way-shield svg { width: 26px; height: 26px; }
.way-shield--tourist { background: #fff; color: var(--tourist); }
.way-shield--tourist::before { border-color: var(--tourist); }
.sign--tourist { padding: 20px 22px 14px; }
.tourist-head { display: flex; align-items: center; gap: 14px; }
.tourist-head h3 { font: 700 28px/1.05 var(--sign); }
.tourist-lead { font-size: 15px; line-height: 1.45; margin: 12px 0 6px; }
.tourist-rows li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid rgba(255,255,255,.4); font: 600 19px/1.15 var(--sign); }
.tourist-rows b { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #fff; color: var(--tourist); font: 700 16px/1 var(--sign); }

/* I piani: una scala su un percorso. */
.plans { position: relative; margin-top: 32px; display: grid; }
.plans::before { content: ""; position: absolute; left: 15.5px; top: 18px; bottom: 18px; width: 3px; background: var(--ink); border-radius: 2px; transform-origin: top; transition: transform 1s var(--ease-out); }
.plan { position: relative; display: grid; grid-template-columns: 34px 1fr auto; gap: 16px; align-items: start; padding: 14px 0; transition: opacity .45s var(--ease-out), transform .55s var(--ease-out); }
.plan-disc { width: 34px; height: 34px; border-radius: 50%; background: var(--ground); box-shadow: inset 0 0 0 3px var(--ink); position: relative; z-index: 1; }
.plan--free .plan-disc { background: var(--ink); }
.plan h3 { font: 700 26px/1.05 var(--sign); }
.plan p { font-size: 15px; color: var(--ink-variant); margin-top: 4px; max-width: 34em; }
.plan > b { font: 700 26px/1 var(--sign); text-align: right; white-space: nowrap; }
.plan > b small { display: block; font: 500 13px/1.4 var(--text); color: var(--ink-variant); }
.js .plans:not(.in)::before { transform: scaleY(0); }
.js .plans:not(.in) .plan { transform: translateY(8px); }
@media (min-width: 1000px) {
  .plans { grid-template-columns: repeat(6, 1fr); gap: 20px; }
  .plans::before { left: 17px; right: 17px; top: 15.5px; bottom: auto; width: auto; height: 3px; transform-origin: left; }
  .js .plans:not(.in)::before { transform: scaleX(0); }
  .plan { grid-template-columns: 1fr; grid-template-rows: 34px auto auto; align-content: start; gap: 14px; padding: 0; }
  .plan > b { text-align: left; order: 2; }
  .plan > div { order: 3; }
  .plan-disc { order: 1; }
}
.plans.in .plan:nth-child(2) { transition-delay: .06s; }
.plans.in .plan:nth-child(3) { transition-delay: .12s; }
.plans.in .plan:nth-child(4) { transition-delay: .18s; }
.plans.in .plan:nth-child(5) { transition-delay: .24s; }
.plans.in .plan:nth-child(6) { transition-delay: .3s; }

/* ---------- Finale ---------- */
.finale {
  margin-top: clamp(72px, 10vw, 128px);
  background: var(--night); color: var(--night-ink);
  padding: clamp(80px, 12vw, 140px) var(--gutter) clamp(80px, 12vw, 140px);
  display: grid; justify-items: center; text-align: center;
}
.finale-figure { width: min(100%, 640px); margin-bottom: 28px; }
.finale-title { font: 700 clamp(38px, 6.4vw, 72px)/1 var(--sign); letter-spacing: -.012em; max-width: 19ch; text-wrap: balance; }
.finale-sub { margin-top: 14px; color: var(--night-variant); max-width: 44ch; }
.stores--center { margin-top: 28px; }

/* ---------- Documenti ---------- */
.legal { padding: clamp(56px, 8vw, 96px) 0; }
.doc { border-top: 3px solid var(--ink); }
.doc + .doc { margin-top: 0; }
.doc:last-child { border-bottom: 1.5px solid var(--ink); }
.doc > summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 4px; font: 700 clamp(28px, 4vw, 40px)/1 var(--sign);
}
.doc > summary::-webkit-details-marker { display: none; }
.doc > summary small { display: block; font: 400 14px/1.4 var(--text); color: var(--ink-variant); margin-top: 6px; }
.doc > summary svg { width: 32px; height: 24px; flex: none; transition: transform .3s var(--ease-out); }
.doc[open] > summary svg { transform: rotate(90deg); }
.doc > summary:hover svg { transform: translateX(4px); }
.doc[open] > summary:hover svg { transform: rotate(90deg); }
.doc-body { padding: 4px 4px 48px; max-width: 72ch; }
/* La cancellazione è una pagina sua: una riga come le tendine, che porta lì. */
.doc-link {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 4px; text-decoration: none; font: 700 clamp(28px, 4vw, 40px)/1 var(--sign);
}
.doc-link small { display: block; font: 400 14px/1.4 var(--text); color: var(--ink-variant); margin-top: 6px; }
.doc-link svg { width: 32px; height: 24px; flex: none; transition: transform .3s var(--ease-out); }
.doc-link:hover svg { transform: translateX(4px); }
.brief { padding-top: 14px; border-top: 3px solid var(--ink); margin-bottom: 28px; }
.brief h3 { font: 600 22px/1.1 var(--sign); margin-bottom: 8px; }
.brief li { position: relative; padding: 6px 0 6px 22px; font-size: 17px; }
.brief li::before { content: ""; position: absolute; left: 2px; top: 1em; width: 8px; height: 8px; background: var(--ink); border-radius: 1px; }
.sec { display: grid; grid-template-columns: 36px 1fr; gap: 14px; padding: 18px 0; border-top: 1px solid var(--rule); }
.sec .shield { min-width: 32px; height: 32px; padding: 0; align-self: start; font-size: 16px; }
.sec h4 { font-size: 17px; font-weight: 600; margin: 4px 0 6px; }
.sec p { font-size: 16px; line-height: 1.55; color: #2F363B; }
.sec p + p { margin-top: 10px; }

/* ---------- Piede ---------- */
.foot { background: var(--ink); color: var(--night-ink); padding: 48px 0 calc(40px + env(safe-area-inset-bottom)); }
.foot-inner { display: grid; gap: 14px; }
.foot-disc { max-width: 60ch; font-size: 15px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 24px; font-weight: 600; }
.foot-small { font-size: 13px; color: var(--night-variant); max-width: 80ch; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; animation: none !important; }
}

/* Sul computer l'apertura è un manifesto: l'auto in alto a tutta misura,
   sotto il nome a sinistra e la promessa a destra, in una schermata sola. */
@media (min-width: 1100px) {
  .hero { padding-top: 96px; padding-bottom: 76px; }
  .hero-figure { width: min(100%, 940px, calc((100svh - 400px) * 2.23)); margin-bottom: 8px; }
  .hero-copy {
    width: min(100%, var(--max));
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: clamp(40px, 5vw, 80px);
    justify-items: start; align-items: end; text-align: left;
  }
  .hero-name { grid-row: 1 / span 4; align-self: end; font-size: clamp(120px, 12.5vw, 196px); margin: 0 0 -.1em; }
  .hero-line { margin-top: 0; max-width: 24ch; }
  .hero-sub { max-width: 50ch; }
  .stores { justify-content: flex-start; margin-top: 22px; }
  .hero-note { margin-top: 14px; }
}
@media (max-width: 599px) {
  .way { gap: 14px; }
  .way-shield { width: 44px; height: 44px; }
}

/* La corsia: la segnaletica sotto l'auto diventa il percorso della pagina. */
.lane { position: absolute; left: 0; bottom: 0; width: 100%; height: 48px; overflow: visible; pointer-events: none; }
.lane path { fill: none; stroke-width: 3; stroke-linecap: round; }
.lane-dash { stroke: rgba(233, 236, 235, .5); stroke-dasharray: 22 10.5; }
.lane-turn { stroke: var(--night-ink); }
