/* STREVIA · concept autotrasporti e logistica */
:root {
  --bg: #0a0d12;
  --bg-2: #10151c;
  --bg-3: #161c25;
  --ink: #eef2f6;
  --muted: #a3afbd;
  --line: rgba(255, 255, 255, .1);
  --accent: #ff6b1a;
  --accent-2: #ffb347;
  --ok: #3ddc97;
  --line-2: rgba(255, 255, 255, .2);
  --panel: rgba(16, 21, 28, .8);
  --slot: rgba(255, 255, 255, .05);
  --radius: 22px;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1320px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --display: "Archivo", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: hidden; overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--display);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  transition: color .6s;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--accent); color: #0a0d12; }

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

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip {
  position: fixed; left: 12px; top: -60px; z-index: 100;
  background: var(--accent); color: #0a0d12; padding: 12px 16px; border-radius: 10px; font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  margin: 0 0 1.2rem;
  font-family: var(--mono); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-2);
}
.h2 {
  margin: 0;
  font-weight: 800; font-stretch: 110%;
  font-size: clamp(2.2rem, 5.6vw, 5.2rem);
  line-height: 1; letter-spacing: -.03em;
}
.h2--xl { font-size: clamp(2.8rem, 8.4vw, 8rem); }
.outline { color: transparent; -webkit-text-stroke: 1.5px var(--ink); }
.accent { color: var(--accent); }

/* ---------- Barra di avanzamento ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60; pointer-events: none; }
.progress__fill { height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.progress__truck { position: absolute; top: 4px; left: 0; width: 22px; height: 10px; fill: var(--accent); transform: translateX(-24px); opacity: .9; }

/* ---------- Cursore ---------- */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .cursor { display: block; position: fixed; inset: 0; pointer-events: none; z-index: 90; }
  .cursor__dot, .cursor__ring { position: fixed; left: 0; top: 0; border-radius: 50%; will-change: transform; }
  .cursor__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--accent); }
  .cursor__ring {
    width: 40px; height: 40px; margin: -20px 0 0 -20px; border: 1.5px solid rgba(255, 255, 255, .45);
    display: grid; place-items: center; transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background .35s, border-color .35s;
  }
  .cursor__label { font-family: var(--mono); font-size: 12px; font-weight: 600; color: #0a0d12; opacity: 0; transition: opacity .2s; text-transform: uppercase; letter-spacing: .08em; }
  .cursor.is-link .cursor__ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; border-color: var(--accent); background: rgba(255, 107, 26, .12); }
  .cursor.is-label .cursor__ring { width: 96px; height: 96px; margin: -48px 0 0 -48px; background: var(--accent); border-color: var(--accent); }
  .cursor.is-label .cursor__label { opacity: 1; }
  .cursor.is-hidden { opacity: 0; }
}

/* ---------- Header (minimo) ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px var(--gutter);
  pointer-events: none;
}
.header > * { pointer-events: auto; }
.header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--hb, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); opacity: 0; transition: opacity .4s; }
.header.is-solid::before { opacity: 1; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; min-height: 44px; color: var(--ink); transition: color .6s; }
.brand__mark { width: 30px; height: 30px; fill: var(--accent); }
.brand__name { font-weight: 900; font-stretch: 125%; font-size: 19px; letter-spacing: .02em; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a {
  position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px;
  text-decoration: none; font-size: 14px; font-weight: 600; color: var(--ink); opacity: .8; transition: opacity .25s, color .6s;
}
.nav a::after {
  content: ""; position: absolute; left: 10px; right: 10px; bottom: 9px; height: 1.5px; background: var(--accent);
  transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease);
}
.nav a:hover { opacity: 1; }
body:not(.is-light) .nav a, body:not(.is-light) .brand { text-shadow: 0 1px 14px rgba(0, 0, 0, .55); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }
@media (max-width: 370px) { .nav__opt { display: none; } }

/* ---------- CTA "pillola" fissa ---------- */
.pill {
  position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 55;
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 22px 0 18px;
  border-radius: 999px; background: var(--accent); color: #0a0d12; text-decoration: none; font-weight: 800; font-size: 15px; white-space: nowrap;
  box-shadow: 0 14px 40px -10px rgba(255, 107, 26, .55), 0 2px 0 rgba(255, 255, 255, .25) inset;
  translate: -50% 0; transition: opacity .5s var(--ease), translate .6s var(--ease), background .3s;
  animation: pill-in 1s 1s var(--ease) both;
}
.pill i { width: 8px; height: 8px; border-radius: 50%; background: #0a0d12; animation: blink 1.4s infinite; }
.pill svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease); }
.pill:hover { background: #ff8a45; }
.pill:hover svg { transform: translateX(4px); }
.pill.is-away { opacity: 0; translate: -50% 140%; pointer-events: none; }
@keyframes pill-in { from { opacity: 0; translate: -50% 140%; } }

/* ---------- Bottoni ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer; overflow: hidden; isolation: isolate;
  transition: transform .35s var(--ease), border-color .25s, color .25s;
}
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--primary { background: var(--accent); color: #0a0d12; }
.btn--primary::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink);
  transform: translateY(101%); border-radius: inherit; transition: transform .45s var(--ease);
}
.btn--primary:hover::before { transform: translateY(0); }
.btn--ghost { border-color: rgba(255, 255, 255, .3); color: var(--ink); background: rgba(10, 13, 18, .35); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--lg { min-height: 64px; padding: 0 34px; font-size: 18px; }

/* ---------- Viaggio (intro con oblò) ---------- */
.journey { position: relative; height: 430vh; }
.journey__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.journey__stage { position: absolute; inset: 0; background: #05070b; }
.layer { position: absolute; inset: 0; overflow: hidden; opacity: var(--o, 0); }
.layer img { width: 100%; height: 100%; object-fit: cover; transform: translate3d(var(--x, 0), var(--y, 0), 0) scale(var(--s, 1)); will-change: transform; }
.layer--1 { --o: 1; }
.layer--1 img { object-position: 50% 50%; filter: saturate(1.15) contrast(1.05) brightness(1.18); }
.layer--2 img { object-position: 50% 60%; }
.layer--3 img { object-position: 52% 62%; }
.journey__streaks { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; mix-blend-mode: screen; }
.journey__grade { position: absolute; inset: 0; pointer-events: none; }
.journey__grade--night { background: radial-gradient(120% 90% at 50% 40%, rgba(8, 16, 40, .02), rgba(3, 6, 14, .55)); opacity: var(--gn, 1); }
.journey__grade--warm { background: linear-gradient(200deg, rgba(255, 170, 90, .28), rgba(255, 107, 26, .08) 45%, rgba(10, 13, 18, 0) 70%); mix-blend-mode: soft-light; opacity: var(--gw, 0); }
.journey__dawn { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(0deg, var(--bg) 0%, rgba(10, 13, 18, 0) 30%), linear-gradient(90deg, rgba(5, 7, 11, .72), rgba(5, 7, 11, .25) 32%, rgba(5, 7, 11, 0) 50%); opacity: var(--shade, 0); }

/* l'oblò: un foro circolare in una superficie scura che si allarga fino a sparire */
.lens { position: absolute; inset: 0; pointer-events: none; overflow: hidden; --lx: 60%; --ly: 50%; --ld: min(66vh, 46vw); }
.lens__hole {
  position: absolute; left: var(--lx); top: var(--ly); width: var(--ld); height: var(--ld); margin: calc(var(--ld) / -2) 0 0 calc(var(--ld) / -2);
  border-radius: 50%; box-shadow: 0 0 0 250vmax #05070b, inset 0 0 60px 20px rgba(5, 7, 11, .85);
  transform: scale(var(--ls, 1)); will-change: transform; opacity: var(--lo, 1);
}
.lens__ring { position: absolute; inset: -14px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .16); }
.lens__ring::after { content: ""; position: absolute; inset: -22px; border-radius: 50%; border: 1px dashed rgba(255, 107, 26, .35); }
.lens__ticks {
  position: absolute; inset: -40px; border-radius: 50%; transform: rotate(var(--lr, 0deg));
  background: repeating-conic-gradient(rgba(255, 255, 255, .5) 0 .4deg, transparent .4deg 6deg);
  -webkit-mask: radial-gradient(circle, transparent calc(50% - 10px), #000 calc(50% - 9px), #000 50%, transparent calc(50% + 1px));
  mask: radial-gradient(circle, transparent calc(50% - 10px), #000 calc(50% - 9px), #000 50%, transparent calc(50% + 1px));
}
.lens__cross { position: absolute; left: 50%; top: 50%; width: 28px; height: 28px; margin: -14px 0 0 -14px; opacity: .55;
  background: linear-gradient(var(--accent), var(--accent)) center / 100% 1.5px no-repeat, linear-gradient(var(--accent), var(--accent)) center / 1.5px 100% no-repeat; }

.journey__hud {
  position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%); z-index: 2;
  display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
  opacity: var(--hud, 1);
}
.journey__hud b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.journey__live { display: inline-flex; align-items: center; gap: 8px; }
.journey__live i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); animation: blink 1.4s infinite; }

.cap { position: absolute; z-index: 3; left: var(--gutter); right: var(--gutter); }
.cap--a { bottom: 15vh; bottom: 15svh; max-width: 760px; opacity: var(--ca, 1); transform: translateY(var(--cay, 0)); }
.cap__title {
  margin: 0; font-weight: 850; font-stretch: 112%; letter-spacing: -.03em;
  font-size: clamp(2.5rem, 6.4vw, 6.4rem); line-height: .95;
}
.cap__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.cap__title .line > span { display: inline-block; transform: translateY(110%); animation: rise 1.1s var(--ease) forwards; }
.cap__title .line:nth-child(2) > span { animation-delay: .1s; }
.cap__title .line:nth-child(3) > span { animation-delay: .2s; }
@keyframes rise { to { transform: none; } }
.cap--a .eyebrow { opacity: 0; animation: fade 1s .5s var(--ease) forwards; }
@keyframes fade { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(255, 107, 26, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(255, 107, 26, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 107, 26, 0); } }

.cap--b { top: 50%; text-align: center; opacity: var(--cb, 0); transform: translateY(calc(-50% + var(--cby, 30px))); }
.cap__big { margin: 0; font-weight: 750; font-stretch: 108%; letter-spacing: -.025em; font-size: clamp(2rem, 5vw, 4.6rem); line-height: 1.02; text-shadow: 0 4px 40px rgba(0, 0, 0, .6); }
.cap--c { bottom: 16vh; bottom: 16svh; max-width: 560px; opacity: var(--cc, 0); transform: translateY(var(--ccy, 30px)); visibility: var(--ccv, hidden); }
.cap--c .cap__big { font-size: clamp(2rem, 3.7vw, 3.7rem); }
.cap__lead { margin: 1.2rem 0 1.6rem; max-width: 40ch; color: #c9d2dc; font-size: clamp(16px, 1.3vw, 18px); }

.scroll-cue { position: absolute; z-index: 3; right: var(--gutter); bottom: calc(40px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); opacity: var(--ca, 1); }
.scroll-cue i { position: relative; width: 2px; height: 40px; background: rgba(255, 255, 255, .15); overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; top: -40%; width: 100%; height: 40%; background: var(--accent); animation: cue 1.8s infinite var(--ease); }
@keyframes cue { to { top: 100%; } }

@media (max-width: 860px) {
  .journey { height: 300vh; height: 300svh; }
  .lens { --lx: 50%; --ly: 36%; --ld: min(86vw, 52svh); }
  .journey__hud { top: 80px; transform: none; }
  .cap--a { bottom: calc(150px + env(safe-area-inset-bottom)); }
  .cap--c { bottom: calc(96px + env(safe-area-inset-bottom)); }
  .cap__big { font-size: clamp(1.9rem, 8.4vw, 3rem); }
  .cap--c .cap__lead { display: none; }
  .scroll-cue span { display: none; }
  .scroll-cue { bottom: calc(96px + env(safe-area-inset-bottom)); }
  .journey__dawn { background: linear-gradient(0deg, var(--bg) 0%, rgba(10, 13, 18, .6) 35%, rgba(10, 13, 18, 0) 60%); }
  .layer--3 img { object-position: 34% 62%; }
  .layer--1 img { object-position: 40% 50%; }
}

/* ---------- Nastro (marquee) ---------- */
.tape { position: relative; z-index: 3; padding: 70px 0 40px; overflow: hidden; }
.tape__row { display: flex; width: max-content; background: var(--accent); color: #0a0d12; transform: rotate(-2.2deg) translateX(-5%); width: 110%; overflow: hidden; }
.tape__row--alt { background: transparent; color: var(--ink); transform: rotate(1.4deg) translateX(-5%); margin-top: -6px; border-block: 1px solid var(--line); background: var(--bg-2); }
.tape__track { display: flex; flex: none; align-items: center; white-space: nowrap; will-change: transform; }
.tape__track span, .tape__track b {
  padding: 14px 0; font-size: clamp(26px, 4.4vw, 60px); font-weight: 900; font-stretch: 125%; text-transform: uppercase; line-height: 1.05;
}
.tape__track b { padding: 14px .5em; font-weight: 300; opacity: .55; }
.tape__row--alt .tape__track span { color: transparent; -webkit-text-stroke: 1.2px var(--ink); }

/* ---------- Sezioni intestazione ---------- */
.section-head { max-width: 760px; margin-bottom: clamp(48px, 8vw, 110px); }
.section-head--center { margin-inline: auto; text-align: center; max-width: none; }
.section-head__lead { color: var(--muted); max-width: 48ch; margin: 1.4rem 0 0; }

/* ---------- Servizi + percorso ---------- */
.services { position: relative; padding: clamp(80px, 12vw, 160px) 0 clamp(60px, 10vw, 140px); }
.route { position: relative; display: flex; flex-direction: column; gap: clamp(60px, 10vw, 140px); padding-bottom: 20px; }
.route__svg { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.route__base { fill: none; stroke: rgba(255, 255, 255, .09); stroke-width: 2; stroke-dasharray: 2 10; stroke-linecap: round; }
.route__line { fill: none; stroke: var(--accent); stroke-width: 3.5; stroke-linecap: round; filter: drop-shadow(0 0 8px rgba(255, 107, 26, .65)); }
.route__truck { fill: var(--ink); }
.route__truck rect { fill: var(--accent); }

.stop { position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
.stop__card { grid-column: 1; position: relative; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transform-style: preserve-3d; transition: border-color .4s, transform .5s var(--ease); }
.stop:nth-child(odd of .stop) .stop__card { grid-column: 2; }
.stop__node {
  position: absolute; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%;
  background: var(--bg); border: 2px solid rgba(255, 255, 255, .25); z-index: 2; transition: border-color .4s, background .4s, box-shadow .4s;
}
.stop:nth-child(even of .stop) .stop__node { left: 75%; }
.stop:nth-child(odd of .stop) .stop__node { left: 25%; }
.stop.is-reached .stop__node { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 0 8px rgba(255, 107, 26, .18), 0 0 24px rgba(255, 107, 26, .6); }
.stop.is-reached .stop__card { border-color: rgba(255, 107, 26, .4); }
.stop__card { opacity: 0; transform: translateY(60px) scale(.97); }
.stop.is-in .stop__card { opacity: 1; transform: none; transition: opacity .9s var(--ease), transform .9s var(--ease), border-color .4s; }
.stop__media { margin: 0; aspect-ratio: 16 / 10; overflow: hidden; position: relative; }
.stop__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 1.2s var(--ease); }
.stop.is-in .stop__media img { transform: scale(1.02); }
.stop__card:hover .stop__media img { transform: scale(1.08); }
.stop__body { padding: clamp(22px, 3vw, 34px); }
.stop__num { font-family: var(--mono); font-size: 13px; color: var(--accent-2); }
.stop h3 { margin: 6px 0 10px; font-size: clamp(22px, 2.3vw, 30px); line-height: 1.1; font-weight: 800; font-stretch: 112%; }
.stop p { margin: 0; color: var(--muted); }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; }
.tags li { font-size: 13px; font-weight: 600; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 10px; font-weight: 700; color: var(--accent); text-decoration: none; }
.link-arrow svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease); }
.link-arrow:hover svg { transform: translateX(5px); }

/* radar */
.radar { background: radial-gradient(circle at 50% 50%, #142030 0%, #0c1118 70%); display: grid; place-items: center; }
.radar__ring { position: absolute; left: 50%; top: 50%; border: 1px solid rgba(61, 220, 151, .22); border-radius: 50%; transform: translate(-50%, -50%); }
.radar__ring:nth-of-type(2) { width: 30%; aspect-ratio: 1; }
.radar__ring:nth-of-type(3) { width: 56%; aspect-ratio: 1; }
.radar__ring:nth-of-type(4) { width: 82%; aspect-ratio: 1; }
.radar__sweep {
  position: absolute; left: 50%; top: 50%; width: 82%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(61, 220, 151, .45), rgba(61, 220, 151, 0) 70deg, transparent 360deg);
  animation: sweep 3.2s linear infinite;
}
@keyframes sweep { to { transform: translate(-50%, -50%) rotate(360deg); } }
.radar__blip { position: absolute; left: var(--x); top: var(--y); width: 10px; height: 10px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 14px var(--ok); animation: blip 3.2s var(--d, 0s) infinite; }
@keyframes blip { 0%, 100% { opacity: .25; transform: scale(.7); } 20% { opacity: 1; transform: scale(1.2); } }

@media (max-width: 860px) {
  .stop { grid-template-columns: 1fr; padding-left: 44px; }
  .stop .stop__card, .stop:nth-child(odd of .stop) .stop__card { grid-column: 1; }
  .stop:nth-child(n of .stop) .stop__node { left: 14px; top: 34px; margin-top: 0; }
}

/* ---------- Manifesto (parola per parola) ---------- */
.manifesto { position: relative; height: 220vh; }
.manifesto__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; }
.manifesto__text {
  margin: 0; max-width: 24ch;
  font-size: clamp(1.75rem, 4.2vw, 4rem); line-height: 1.14; font-weight: 600; letter-spacing: -.02em;
}
.manifesto__text .w { color: rgba(238, 242, 246, .14); transition: color .35s; }
.manifesto__text .w.on { color: var(--ink); }
.manifesto__text .w.hl.on { color: var(--accent); }
@media (max-width: 860px) { .manifesto { height: 170vh; height: 170svh; } }

/* ---------- Metodo (orizzontale) ---------- */
.method { position: relative; height: 340vh; }
.method__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; gap: 6vh; }
.method__viewport { position: relative; }
.method__road { position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: var(--line); }
.method__road i { position: absolute; inset: -1px 0; background: repeating-linear-gradient(90deg, var(--accent-2) 0 28px, transparent 28px 56px); opacity: .5; animation: lane 1.2s linear infinite; }
@keyframes lane { to { background-position: -56px 0; } }
.method__track { list-style: none; margin: 0; padding: 0 var(--gutter); display: flex; gap: clamp(20px, 3vw, 40px); width: max-content; will-change: transform; }
.step {
  position: relative; width: min(78vw, 460px); height: min(60vh, 540px); flex: none; padding: 30px 30px 32px; border-radius: var(--radius);
  display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; isolation: isolate;
  background: var(--bg-2); border: 1px solid var(--line); color: #eef2f6;
}
.step__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1.2s var(--ease), filter .6s; filter: saturate(.85) brightness(.9); }
.step::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 13, 18, .05) 20%, rgba(10, 13, 18, .55) 55%, rgba(10, 13, 18, .94) 100%); }
.step:hover .step__img, .step.is-active .step__img { transform: scale(1); filter: saturate(1) brightness(1); }
.step__num { position: absolute; top: 22px; left: 26px; }
.step__num { display: block; font-size: clamp(64px, 7vw, 110px); font-weight: 900; font-stretch: 125%; line-height: .85; color: transparent; -webkit-text-stroke: 1.5px #fff; }
.step h3 { margin: 0 0 10px; font-size: clamp(24px, 2.4vw, 32px); font-weight: 800; font-stretch: 112%; }
.step p { margin: 0; color: #c9d2dc; }
.step.is-active { border-color: rgba(255, 107, 26, .45); }
.step.is-active .step__num { color: var(--accent); }
.step__num { transition: color .5s; }

@media (max-width: 860px) {
  .method { height: auto; padding: 100px 0 40px; }
  .method__sticky { position: relative; height: auto; overflow: visible; gap: 40px; }
  .method__road { left: calc(var(--gutter) + 22px); right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .method__road i { background: repeating-linear-gradient(180deg, var(--accent-2) 0 28px, transparent 28px 56px); animation-name: lane-v; }
  @keyframes lane-v { to { background-position: 0 56px; } }
  .method__track { flex-direction: column; width: auto; transform: none !important; }
  .step { width: auto; height: 440px; }
}

/* ---------- Tracciamento ---------- */
.tracking { padding: clamp(80px, 12vw, 160px) 0; background: radial-gradient(90% 60% at 80% 40%, rgba(255, 107, 26, .09), transparent 70%); }
.tracking__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.tracking__copy > p { color: var(--muted); max-width: 44ch; margin: 1.4rem 0 0; }
.demo-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.demo-tab {
  min-height: 46px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: transparent; cursor: pointer;
  font-weight: 700; font-size: 15px; transition: background .25s, color .25s, border-color .25s;
}
.demo-tab:hover { border-color: var(--ink); }
.demo-tab[aria-selected="true"] { background: var(--ink); color: #0a0d12; border-color: var(--ink); }
.note { font-family: var(--mono); font-size: 12px !important; color: var(--muted); margin-top: 18px !important; }

.tracker {
  --ink: #eef2f6; --muted: #a3afbd; --line: rgba(255, 255, 255, .1); --accent-2: #ffb347; color: var(--ink);
  position: relative; padding: clamp(18px, 2.4vw, 28px); border-radius: 28px; border: 1px solid rgba(255, 255, 255, .14);
  background: linear-gradient(180deg, rgba(22, 28, 37, .92), rgba(13, 17, 23, .95));
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 107, 26, .06) inset;
}
.tracker__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.tracker__label { display: block; font-family: var(--mono); font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.tracker__code { font-family: var(--mono); font-size: clamp(17px, 2vw, 22px); letter-spacing: .04em; }
.status { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; background: rgba(255, 107, 26, .14); color: var(--accent-2); }
.status i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: blink 1.2s infinite; }
.status.is-done { background: rgba(61, 220, 151, .14); color: var(--ok); }
.status.is-done i { animation: none; }
@keyframes blink { 50% { opacity: .25; } }

.tracker__map { position: relative; margin: 18px 0 14px; aspect-ratio: 8 / 3; border-radius: 16px; overflow: hidden; background: #0b1016; border: 1px solid var(--line); }
.tracker__map svg { width: 100%; height: 100%; display: block; }
.tmap__base { fill: none; stroke: rgba(255, 255, 255, .14); stroke-width: 3; stroke-dasharray: 4 8; vector-effect: non-scaling-stroke; }
.tmap__line { fill: none; stroke: var(--accent); stroke-width: 3.5; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.tmap__node { fill: var(--bg); stroke: var(--ink); stroke-width: 2; vector-effect: non-scaling-stroke; }
.tmap__node--hub { stroke: var(--accent-2); }
.tmap__node--end { stroke: var(--ok); }
.tmap__dot { fill: var(--accent); }
.tmap__halo { fill: rgba(255, 107, 26, .25); animation: halo 1.6s infinite; transform-box: fill-box; transform-origin: center; }
@keyframes halo { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }
.tmap__tag { position: absolute; font-family: var(--mono); font-size: 12px; color: var(--muted); padding: 2px 6px; border-radius: 6px; background: rgba(10, 13, 18, .7); }
.tmap__tag--a { left: 3%; bottom: 6px; }
.tmap__tag--b { left: 54%; top: 66%; }
.tmap__tag--c { right: 3%; top: 6px; }

.tracker__bar { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.tracker__bar span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: transform .9s var(--ease); }
.tracker__meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 14px 0 18px; }
.tracker__meta span { display: flex; flex-direction: column; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .04); min-width: 0; }
.tracker__meta small { font-size: 12px; color: var(--muted); }
.tracker__meta b { font-size: 15px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline li { position: relative; display: grid; grid-template-columns: 30px 1fr auto; gap: 12px; align-items: start; padding: 9px 0; opacity: .38; transition: opacity .5s; }
.timeline li::before { content: ""; position: absolute; left: 14px; top: 30px; bottom: -10px; width: 2px; background: rgba(255, 255, 255, .1); }
.timeline li:last-child::before { display: none; }
.timeline .dot { width: 30px; height: 30px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .25); display: grid; place-items: center; background: var(--bg); position: relative; z-index: 1; transition: background .4s, border-color .4s; }
.timeline .dot svg { width: 14px; height: 14px; fill: none; stroke: #0a0d12; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transition: opacity .3s; }
.timeline .t-title { font-weight: 700; font-size: 15px; line-height: 1.3; }
.timeline .t-sub { display: block; font-size: 13px; color: var(--muted); font-weight: 400; }
.timeline time { font-family: var(--mono); font-size: 13px; color: var(--muted); padding-top: 2px; }
.timeline li.done { opacity: 1; }
.timeline li.done .dot { background: var(--accent); border-color: var(--accent); }
.timeline li.done .dot svg { opacity: 1; }
.timeline li.done::before { background: var(--accent); }
.timeline li.current { opacity: 1; }
.timeline li.current .dot { border-color: var(--accent); box-shadow: 0 0 0 6px rgba(255, 107, 26, .15); }
.timeline li.done.final .dot { background: var(--ok); border-color: var(--ok); }
.replay { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 12px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: transparent; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--muted); transition: color .2s, border-color .2s; }
.replay:hover { color: var(--ink); border-color: var(--ink); }
.replay svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 960px) {
  .tracking__grid { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .tracker__meta { grid-template-columns: 1fr 1fr; }
  .tracker__meta span:last-child { grid-column: 1 / -1; }
  .timeline li { grid-template-columns: 30px 1fr; }
  .timeline time { grid-column: 2; padding-top: 0; }
}

/* ---------- Preventivo ---------- */
.quote { padding: clamp(80px, 12vw, 160px) 0 clamp(80px, 10vw, 140px); position: relative; overflow: hidden; }
.quote::before { content: ""; position: absolute; left: 50%; top: 20%; width: 900px; height: 900px; max-width: 160vw; transform: translateX(-50%); background: radial-gradient(circle, rgba(255, 107, 26, .14), transparent 60%); pointer-events: none; }
.quote__panel { position: relative; max-width: 900px; margin: 0 auto; padding: clamp(22px, 4vw, 48px); border-radius: 30px; border: 1px solid var(--line); background: var(--panel); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.chips { border: 0; margin: 0 0 34px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips legend, .pallets__label { display: block; width: 100%; margin-bottom: 14px; font-family: var(--mono); font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 48px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line-2); font-weight: 700; transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease); }
.chip:hover span { border-color: var(--ink); }
.chip input:checked + span { background: var(--accent); border-color: var(--accent); color: #0a0d12; }
.chip input:focus-visible + span { outline: 3px solid var(--accent-2); outline-offset: 3px; }
.pallets__label output { font-family: var(--display); font-size: 22px; font-weight: 900; color: var(--ink); margin-left: 8px; letter-spacing: 0; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; background: transparent; cursor: pointer; margin: 0; }
input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--accent) var(--p, 36%), var(--line-2) var(--p, 36%)); }
input[type="range"]::-moz-range-track { height: 6px; border-radius: 6px; background: var(--line-2); }
input[type="range"]::-moz-range-progress { height: 6px; border-radius: 6px; background: var(--accent); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -11px; border-radius: 50%; background: var(--ink); border: 5px solid var(--accent); box-shadow: 0 4px 14px rgba(0, 0, 0, .5); }
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--ink); border: 5px solid var(--accent); }

.trailer { display: flex; align-items: stretch; gap: 6px; margin: 18px 0 12px; }
.trailer__cab { flex: 0 0 clamp(34px, 6vw, 60px); border-radius: 12px 6px 6px 12px; background: linear-gradient(180deg, var(--accent), #d24f0c); position: relative; }
.trailer__cab::after { content: ""; position: absolute; left: 18%; right: 30%; top: 14%; height: 26%; border-radius: 4px; background: rgba(10, 13, 18, .6); }
.trailer__box { flex: 1; display: grid; grid-template-columns: repeat(11, 1fr); grid-template-rows: repeat(3, 1fr); grid-auto-flow: column; gap: 4px; padding: 6px; border: 1px dashed var(--line-2); border-radius: 6px 10px 10px 6px; min-width: 0; }
.trailer__box i { aspect-ratio: 1.5; border-radius: 3px; background: var(--slot); transition: background .3s, transform .35s var(--ease); transform: scale(.85); }
.trailer__box i.on { background: #c79a5b; transform: scale(1); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .25); }
.pallets__hint { margin: 0; color: var(--muted); font-size: 15px; min-height: 3em; }
.pallets__hint b { color: var(--ink); }
.quote__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 24px; }
.quote__msg { margin: 0; flex: 1 1 260px; font-size: 15px; color: var(--ok); }
@media (max-width: 520px) { .quote__actions .btn { width: 100%; } .btn { white-space: nowrap; } .btn--lg { padding: 0 20px; font-size: 17px; } }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 34px 0 calc(100px + env(safe-area-inset-bottom)); }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; }
.footer__brand { font-weight: 900; font-stretch: 125%; font-size: 20px; text-transform: uppercase; }
.footer p { margin: 0; color: var(--muted); font-size: 15px; }
.footer a { color: var(--ink); text-underline-offset: 4px; display: inline-block; padding: 12px 0; }
.footer a:hover { color: var(--accent); }

/* ---------- Alba: la pagina passa dalla notte al giorno ---------- */
body.is-light {
  --ink: #12161c;
  --muted: #4f5966;
  --line: rgba(18, 22, 28, .12);
  --line-2: rgba(18, 22, 28, .24);
  --panel: rgba(255, 255, 255, .62);
  --slot: rgba(18, 22, 28, .07);
  --accent-2: #a9480c;
}
body.is-light .accent { color: #c94d0a; }
body.is-light .outline { -webkit-text-stroke-color: var(--ink); }
body.is-light .demo-tab[aria-selected="true"] { color: #f4efe8; }
body.is-light .tracker .accent { color: var(--accent); }
.eyebrow, .section-head__lead, .tracking__copy > p, .note, .pallets__hint, .footer p, .chips legend, .pallets__label { transition: color .6s; }

/* ---------- Scorrimento inerziale (Lenis) ---------- */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* ---------- Reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Movimento ridotto: stato finale, statico ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .cap__title .line > span { transform: none; }
  .cap--a .eyebrow { opacity: 1; }
  .journey { height: auto; }
  .journey__sticky { position: relative; }
  .lens, .cap--b, .journey__hud, .scroll-cue { display: none; }
  .journey__dawn { opacity: 1; }
  .layer--1, .layer--2 { opacity: 0; }
  .layer--3 { opacity: 1; }
  .layer img { transform: none; }
  .layer--3 img { transform: translate3d(13%, 0, 0) scale(1.3); }
  .cap__title { font-size: clamp(2.4rem, 4.8vw, 4.8rem); }
  .journey__grade--night { opacity: .25; }
  .journey__grade--warm { opacity: 1; }
  .journey__streaks { display: none; }
  .journey__sticky { display: flex; flex-direction: column; justify-content: flex-end; padding: 120px var(--gutter) calc(110px + env(safe-area-inset-bottom)); gap: 22px; }
  .cap--a, .cap--c { position: relative; inset: auto; opacity: 1; transform: none; visibility: visible; }
  .cap--c .cap__big { display: none; }
  .cap--c .cap__lead { margin-top: 0; }
  .pill { animation: none; }
  .cursor { display: none !important; }
  [data-reveal], .stop__card { opacity: 1 !important; transform: none !important; }
  .radar__sweep, .method__road i, .scroll-cue i::after, .pulse, .status i, .tmap__halo, .pill i, .journey__live i { animation: none !important; }
  .manifesto { height: auto; }
  .manifesto__sticky { position: relative; height: auto; padding: 120px 0; }
  .manifesto__text .w { color: var(--ink); }
  .method { height: auto; padding: 100px 0 40px; }
  .method__sticky { position: relative; height: auto; overflow: visible; }
  .method__track { flex-wrap: wrap; width: auto; transform: none !important; }
  .step { width: min(100%, 460px); }
  .tape__track { transform: none !important; }
}


@media (prefers-reduced-motion: reduce) and (max-width: 860px) {
  .layer--3 img { transform: none; }
}
