/* =========================================================
   TiSegnalo — sito vetrina
   Font: Barlow e Barlow Condensed (SIL Open Font License), ospitati in locale
   ========================================================= */

@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/barlow-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/barlow-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/barlow-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/barlow-condensed-latin-800-normal.woff2") format("woff2"); }

:root {
  --night: #0B1322;
  --night-2: #101A2D;
  --ink: #EEF2F8;
  --soft: #C3CCDB;
  --mute: #93A1B8;
  --line: rgba(214, 226, 245, .12);
  --sign-blue: #1F5FD6;
  --sign-green: #0E7C4A;
  --signal: #FFC21A;
  --radar: #E2283A;

  --ff: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ff-d: "Barlow Condensed", "Barlow", system-ui, sans-serif;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.2, .8, .2, 1);

  interpolate-size: allow-keywords;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--ff);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; }
a { color: inherit; }
h1, h2, h3 { font-weight: 700; }
p { text-wrap: pretty; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; border-radius: 6px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

.skip {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: #fff; color: #000; padding: .6rem 1rem; border-radius: 8px; text-decoration: none; font-weight: 600;
}
.skip:focus { top: 1rem; }

/* ---------- Barra in alto ---------- */
.topbar { position: fixed; inset: 0 0 auto 0; z-index: 50; height: 72px; }
/* lo sfondo sfocato sta su uno strato a parte, così il menu mobile (fixed) non ne resta intrappolato */
.topbar::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .3s;
  background: rgba(11, 19, 34, .86);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 1px 0 var(--line);
}
.topbar.is-scrolled::before, .topbar.menu-open::before { opacity: 1; }
.topbar__inner { position: relative; height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.brand__mark { width: 34px; height: 34px; }
.brand__name { font: 700 1.6rem/1 var(--ff-d); letter-spacing: .005em; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { color: var(--mute); text-decoration: none; font-weight: 500; font-size: .98rem; transition: color .2s; }
.nav a:hover { color: #fff; }
.menu-btn { display: none; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: .9rem 1.35rem; border: 0; border-radius: 12px;
  background: var(--signal); color: #1A1404;
  font: 600 1rem/1 var(--ff); text-decoration: none; cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -10px rgba(255, 194, 26, .6); }
.btn--small { padding: .7rem 1.05rem; font-size: .95rem; }
.btn svg { width: 20px; height: 20px; }
.btn--wa { background: #25D366; color: #052812; }
.btn--wa:hover { box-shadow: 0 10px 24px -10px rgba(37, 211, 102, .6); }

/* ---------- Pulsanti degli store ---------- */
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex; align-items: center; gap: 12px; min-width: 196px;
  padding: .7rem 1.25rem .7rem 1rem; border-radius: 14px;
  background: #fff; color: #0B1322; text-decoration: none;
  transition: transform .2s var(--ease), box-shadow .2s;
}
.store:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -14px rgba(0, 0, 0, .6); }
.store__logo { width: 28px; height: 28px; flex: none; }
.store__logo--play { width: 24px; height: 24px; color: #0B1322; }
.store__txt { display: flex; flex-direction: column; line-height: 1.1; }
.store__txt small { font-size: .76rem; color: #4A5568; }
.store__txt strong { font: 700 1.38rem/1.05 var(--ff-d); }

.video-link {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 1.7rem; padding: 0;
  background: none; border: 0; color: var(--ink); font: 500 1rem var(--ff); cursor: pointer;
}
.video-link__dot {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  border: 1.5px solid rgba(255, 255, 255, .35); transition: border-color .2s, background-color .2s;
}
.video-link__dot svg { width: 16px; height: 16px; margin-left: 2px; }
.video-link:hover .video-link__dot { border-color: var(--signal); background: rgba(255, 194, 26, .12); }
.video-link--light .video-link__dot { border-color: rgba(255, 255, 255, .7); }
.video-link--light:hover .video-link__dot { border-color: #fff; background: rgba(255, 255, 255, .14); }

/* ---------- Cartelli (pittogrammi in stile segnaletica svizzera) ---------- */
.plate { width: 56px; height: 56px; display: grid; place-items: center; color: #fff; flex: none; }
.plate svg { width: 28px; height: 28px; }
.plate--blue, .plate--green {
  border-radius: 11px;
  background: var(--sign-blue);
  box-shadow: inset 0 0 0 3px var(--sign-blue), inset 0 0 0 5px #fff;
}
.plate--green { background: var(--sign-green); box-shadow: inset 0 0 0 3px var(--sign-green), inset 0 0 0 5px #fff; }
.plate--ring { background: #fff; border-radius: 50%; box-shadow: inset 0 0 0 6px var(--radar); color: #0B1322; }
.plate--ring svg { width: 26px; height: 26px; }
.plate--warn {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 56 56'%3E%3Cpath d='M28 6 52 49H4Z' fill='%23fff' stroke='%23E2283A' stroke-width='6' stroke-linejoin='round'/%3E%3Cpath d='M28 22v12' stroke='%230B1322' stroke-width='5' stroke-linecap='round'/%3E%3Ccircle cx='28' cy='41.5' r='3' fill='%230B1322'/%3E%3C/svg%3E") center / contain no-repeat;
}
.plate--warn svg { display: none; }

/* =========================================================
   Il telefono che segue lo scroll
   ========================================================= */
.phone-layer { position: fixed; inset: 0; z-index: 5; pointer-events: none; overflow: hidden; }
.phone {
  position: absolute; left: 0; top: 0; width: 300px; height: 640px;
  transform-origin: 50% 50%; will-change: transform; visibility: hidden;
}
.phone::before {
  content: ""; position: absolute; inset: 12% -14% -4%; z-index: -1;
  background: radial-gradient(closest-side, rgba(47, 123, 255, .38), transparent);
  filter: blur(26px);
}
.phone__body {
  position: absolute; inset: 0; padding: 10px; border-radius: 52px;
  background: linear-gradient(145deg, #3B4458 0%, #1B212D 32%, #0F131B 62%, #2C3445 100%);
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, .2),
    inset 0 0 0 3.5px #07090D,
    0 0 0 1px rgba(0, 0, 0, .55),
    0 50px 90px -30px rgba(0, 0, 0, .8);
  animation: phone-in 1.3s var(--ease) .15s both;
}
@keyframes phone-in { from { opacity: 0; transform: translateY(70px) scale(.94); } }
.phone__key { position: absolute; width: 3px; border-radius: 2px; background: linear-gradient(90deg, #2A3242, #485268); }
.phone__key--a { left: -2px; top: 110px; height: 26px; }
.phone__key--b { left: -2px; top: 156px; height: 50px; }
.phone__key--c { left: -2px; top: 214px; height: 50px; }
.phone__key--d { right: -2px; top: 170px; height: 78px; }
.phone__screen {
  position: relative; width: 280px; height: 620px; overflow: hidden; isolation: isolate;
  border-radius: 42px; background: #0F1828; color: #fff;
  font-family: var(--ff); font-size: 13px; line-height: 1.3;
}
.phone__screen svg { width: 16px; height: 16px; flex: none; }
.island { position: absolute; z-index: 4; top: 10px; left: 50%; width: 88px; height: 26px; margin-left: -44px; border-radius: 20px; background: #000; }
.glare {
  position: absolute; inset: 0; z-index: 5; pointer-events: none; border-radius: inherit;
  background: linear-gradient(118deg, rgba(255, 255, 255, .09) 0%, rgba(255, 255, 255, 0) 34%);
}
.sbar {
  position: absolute; z-index: 3; inset: 0 0 auto 0; height: 46px; padding: 4px 26px 0 34px;
  display: flex; justify-content: space-between; align-items: center;
  font: 600 13.5px/1 var(--ff); color: #fff;
}
.sbar__icons { display: flex; gap: 5px; align-items: center; }
.sbar .sbar__icons svg { width: 16px; height: 11px; fill: #fff; }
.batt { display: block; width: 23px; height: 11.5px; padding: 1.4px; border: 1.3px solid rgba(255, 255, 255, .55); border-radius: 3.6px; }
.batt i { display: block; width: 74%; height: 100%; border-radius: 1.6px; background: #fff; }

.screens { position: absolute; inset: 0; }
.scr { position: absolute; inset: 0; opacity: 0; transform: scale(1.04); transition: opacity .5s ease, transform .65s var(--ease); }
.scr.is-on { opacity: 1; transform: none; }
.scr .scr__map { position: absolute; inset: 0; width: 100%; height: 100%; }
.scr .scr__map--zoom { transform: scale(1.9); transform-origin: 54% 80%; }
.scr .scr__map--dim { filter: brightness(.5) saturate(.8); }

/* mappa */
.app-search {
  position: absolute; top: 54px; left: 13px; right: 13px; height: 42px; padding: 0 13px;
  display: flex; align-items: center; gap: 9px; border-radius: 14px;
  background: rgba(13, 20, 34, .94); border: 1px solid rgba(255, 255, 255, .08);
  color: #9AA8BF; font-size: 14px;
}
.app-search span { flex: 1; }
.app-search svg { width: 17px; height: 17px; }
.app-search .app-search__menu { color: #fff; }
.app-fabs { position: absolute; right: 13px; top: 108px; display: flex; flex-direction: column; gap: 8px; }
.app-fabs span {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(13, 20, 34, .94); border: 1px solid rgba(255, 255, 255, .08); color: #C9D3E3;
}
.app-fabs span.on { background: var(--sign-blue); border-color: transparent; color: #fff; }
.app-fabs svg { width: 18px; height: 18px; }
.app-plus {
  position: absolute; right: 13px; bottom: 106px; width: 50px; height: 50px; border-radius: 50%;
  display: grid; place-items: center; background: var(--sign-blue); color: #fff;
  box-shadow: 0 8px 20px rgba(31, 95, 214, .5);
}
.app-plus svg { width: 22px; height: 22px; }
.app-card {
  position: absolute; left: 12px; right: 12px; bottom: 26px; padding: 12px;
  display: flex; align-items: center; gap: 11px; border-radius: 18px;
  background: rgba(12, 19, 32, .96); border: 1px solid rgba(255, 255, 255, .07);
}
.mini { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; flex: none; }
.mini--radar { background: rgba(226, 40, 58, .18); color: #FF6B78; }
.mini svg { width: 20px; height: 20px; }
.app-card__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.app-card__txt strong { font-size: 15px; font-weight: 600; }
.app-card__txt small { font-size: 11.5px; color: #93A1B8; }
.app-card__km { font-size: 14px; font-weight: 600; }

/* avviso vocale */
.alert {
  position: absolute; top: 54px; left: 12px; right: 12px; padding: 12px;
  display: flex; align-items: center; gap: 10px; border-radius: 18px;
  background: linear-gradient(180deg, #E2283A, #BF1C2D);
  box-shadow: 0 14px 30px -8px rgba(226, 40, 58, .6);
}
.alert__icon { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; flex: none; background: #fff; color: var(--radar); }
.alert__icon svg { width: 20px; height: 20px; }
.alert__txt { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.alert__txt strong { font-size: 14px; line-height: 1.15; font-weight: 600; }
.alert__txt small { font-size: 11.5px; color: rgba(255, 255, 255, .85); }
.voice { display: flex; gap: 2px; align-items: center; height: 20px; flex: none; }
.voice i { width: 3px; height: 100%; border-radius: 2px; background: #fff; animation: voice .9s ease-in-out infinite; }
.voice i:nth-child(2) { animation-delay: -.2s; }
.voice i:nth-child(3) { animation-delay: -.45s; }
.voice i:nth-child(4) { animation-delay: -.1s; }
.voice i:nth-child(5) { animation-delay: -.6s; }
@keyframes voice { 0%, 100% { transform: scaleY(.28); } 50% { transform: scaleY(1); } }
.speed {
  position: absolute; left: 14px; bottom: 86px; width: 74px; height: 74px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: rgba(12, 19, 32, .96); border: 1px solid rgba(255, 255, 255, .12);
}
.speed b { font: 700 30px/1 var(--ff-d); }
.speed small { font-size: 10px; color: #93A1B8; }
.zone-chip {
  position: absolute; left: 12px; right: 12px; bottom: 26px; padding: 11px 12px;
  display: flex; gap: 8px; align-items: center; border-radius: 14px;
  background: rgba(38, 28, 4, .95); border: 1px solid rgba(255, 194, 26, .5);
  color: #FFD566; font-size: 12.5px; font-weight: 500;
}
.zone-chip--blue { background: rgba(10, 22, 46, .95); border-color: rgba(61, 139, 255, .5); color: #B4CEFF; }

/* liste */
.scr--list { background: #0D1524; }
.app-head { padding: 52px 14px 10px; display: grid; grid-template-columns: 22px 1fr 22px; align-items: center; color: #C9D3E3; }
.app-head svg { width: 20px; height: 20px; }
.app-head strong { text-align: center; font-size: 16px; font-weight: 600; color: #fff; }
.tabs { display: flex; margin: 2px 14px 10px; padding: 3px; border-radius: 12px; background: rgba(255, 255, 255, .06); }
.tabs span { flex: 1; padding: 7px 0; border-radius: 9px; text-align: center; font-size: 12px; font-weight: 600; color: #93A1B8; }
.tabs span.on { background: var(--sign-blue); color: #fff; }
.rows { list-style: none; margin: 0; padding: 0; }
.rows li { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.ico svg { width: 18px; height: 18px; }
.ico--amber { background: rgba(255, 194, 26, .14); color: #FFC21A; }
.ico--red { background: rgba(229, 72, 77, .15); color: #FF6B70; }
.ico--blue { background: rgba(61, 139, 255, .15); color: #7FB0FF; }
.rows__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rows__txt strong { font-size: 13.5px; font-weight: 600; }
.rows__txt small { font-size: 11.5px; color: #8E9BB2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rows__meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.rows__meta time { font-size: 11px; color: #8E9BB2; }
.rows__meta em, .rows em.new { font-style: normal; font-size: 9.5px; font-weight: 600; padding: 2px 6px; border-radius: 6px; background: rgba(61, 139, 255, .16); color: #A3C4FF; }
.rows__meta em.c { background: rgba(43, 196, 138, .15); color: #74E2B8; }
.rows--docs li { align-items: flex-start; padding: 12px 14px; }
.rows--docs .rows__txt strong { line-height: 1.22; }
.pdf { width: 32px; height: 38px; border-radius: 6px; display: grid; place-items: center; flex: none; background: rgba(229, 72, 77, .14); color: #FF7A80; font-size: 9px; font-weight: 700; }
.rows em.new { background: var(--sign-blue); color: #fff; font-size: 10px; padding: 3px 7px; }
.rows--toggles li { justify-content: space-between; padding: 12.5px 16px; font-size: 14px; }
.sw { position: relative; width: 40px; height: 24px; border-radius: 12px; flex: none; background: rgba(255, 255, 255, .16); }
.sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); }
.sw.on { background: var(--sign-blue); }
.sw.on::after { left: 18px; }
.scr__hint { margin: 12px 16px; font-size: 11.5px; color: #8E9BB2; }

/* webcam */
.cams { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 9px; padding: 0 14px; }
.cam { position: relative; margin: 0; }
.cams .cam svg { width: 100%; height: auto; aspect-ratio: 4 / 3; border-radius: 12px; background: linear-gradient(180deg, var(--s1), var(--s2)); }
.cam figcaption { margin-top: 5px; font-size: 11px; font-weight: 500; color: #C9D3E3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cam__live { position: absolute; top: 6px; left: 6px; padding: 2px 6px 2px 13px; border-radius: 6px; background: rgba(0, 0, 0, .5); font-size: 9px; font-weight: 700; }
.cam__live::before { content: ""; position: absolute; left: 5px; top: 50%; width: 5px; height: 5px; margin-top: -2.5px; border-radius: 50%; background: #FF4D5A; }
.cam--day { --s1: #6FA3D6; --s2: #C8DCEC; --mt: #4F6B86; --gr: #3E5C3D; --rd: #4B5058; --lt: transparent; }
.cam--snow { --s1: #8FADC9; --s2: #DCE6EF; --mt: #E3EBF2; --gr: #C7D2DD; --rd: #6A737F; --lt: transparent; }
.cam--dusk { --s1: #2D3F6C; --s2: #E39A6B; --mt: #2B3550; --gr: #283347; --rd: #3B4151; --lt: #FFE3A1; }
.cam--lake { --s1: #5E8FC4; --s2: #B8D2E8; --mt: #3F5A73; --gr: #2D5C86; --rd: #55595F; --lt: transparent; }
.cam--night { --s1: #0B1630; --s2: #1D2D52; --mt: #111C31; --gr: #0F1727; --rd: #2A3141; --lt: #FFE9A8; }

/* segnala */
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 14px 22px;
  border-radius: 24px 24px 0 0; background: #111B2E; border-top: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 -20px 40px rgba(0, 0, 0, .4);
}
.sheet__grip { display: block; width: 40px; height: 4px; margin: 0 auto 12px; border-radius: 2px; background: rgba(255, 255, 255, .25); }
.sheet__title { display: block; margin-bottom: 12px; font-size: 16px; font-weight: 600; }
.cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cats span {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 4px 10px;
  border-radius: 14px; border: 1.5px solid transparent; background: rgba(255, 255, 255, .05);
  font-size: 11.5px; font-weight: 500; color: #C9D3E3;
}
.cats svg { width: 22px; height: 22px; }
.cats span.on { border-color: #3D8BFF; background: rgba(31, 95, 214, .22); color: #fff; }
.chips { display: flex; gap: 6px; margin: 12px 0; }
.chips span { padding: 6px 10px; border-radius: 20px; border: 1px solid rgba(255, 255, 255, .14); font-size: 11.5px; color: #C9D3E3; }
.chips span.on { background: #fff; border-color: #fff; color: #0D1524; font-weight: 600; }
.hold { position: relative; height: 48px; border-radius: 14px; overflow: hidden; display: grid; place-items: center; background: #173A7C; font-size: 13.5px; font-weight: 600; }
.hold__fill { position: absolute; inset: 0; background: #2F6FE6; transform-origin: left; transform: scaleX(0); animation: hold 2.8s ease-in-out infinite; }
.hold span { position: relative; }
@keyframes hold { 0% { transform: scaleX(0); } 70%, 85% { transform: scaleX(1); } 100% { transform: scaleX(1); opacity: 0; } }

/* percorso */
.route__line { fill: none; stroke: #3D8BFF; stroke-width: 6; stroke-linecap: round; stroke-dasharray: 100 100; stroke-dashoffset: 0; filter: drop-shadow(0 0 5px rgba(61, 139, 255, .7)); }
.scr--route.is-on .route__line { animation: draw 1.6s var(--ease) .2s both; }
@keyframes draw { from { stroke-dashoffset: 100; } }
.route-card {
  position: absolute; top: 54px; left: 12px; right: 12px; padding: 12px 14px;
  border-radius: 18px; background: rgba(12, 19, 32, .96); border: 1px solid rgba(255, 255, 255, .08);
}
.route-card__ends { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #C9D3E3; }
.route-card__ends span { display: flex; align-items: center; gap: 5px; }
.route-card__ends svg { width: 15px; height: 15px; }
.route-card__ends i { flex: 1; height: 2px; background: repeating-linear-gradient(90deg, #3D8BFF 0 6px, transparent 6px 10px); }
.route-card strong { display: block; margin: 8px 0 4px; font: 700 26px/1 var(--ff-d); }
.route-card small { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #FFC94D; }
.route-card small svg { width: 14px; height: 14px; }

/* =========================================================
   Percorso della pagina: la strada e le sezioni
   ========================================================= */
.journey {
  position: relative;
  background:
    radial-gradient(60vw 70vh at 78% 34vh, rgba(47, 123, 255, .16), transparent 70%) no-repeat,
    radial-gradient(50vw 50vh at 10% 120vh, rgba(14, 124, 74, .08), transparent 70%) no-repeat;
}
.road {
  --road-w: 340px;
  position: absolute; top: 0; left: 0; width: 100%; z-index: 1; pointer-events: none; overflow: visible;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 160px, #000 calc(100% - 360px), transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 160px, #000 calc(100% - 360px), transparent 100%);
}
.road path { fill: none; stroke-linecap: butt; stroke-linejoin: round; }
.road__edge { stroke: rgba(226, 233, 244, .17); stroke-width: var(--road-w); }
.road__asphalt { stroke: #121C2D; stroke-width: calc(var(--road-w) - 12px); }
.road__lane { stroke: rgba(238, 242, 248, .4); stroke-width: 3.5px; stroke-dasharray: 26 34; }

.hero, .gantry, .story, .extras { position: relative; z-index: 10; }
.hero, .extras { overflow-x: clip; }

/* ---------- Hero ---------- */
.hero { min-height: 100vh; min-height: 100svh; display: grid; align-items: center; padding: 104px 0 48px; }
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 40px; }
.hero__title {
  display: flex; flex-direction: column; /* in flex i margini negativi delle righe si sommano invece di sovrapporsi */
  margin: 0 0 1.6rem;
  font: 700 clamp(3.1rem, 1.3rem + 5.4vw, 6.6rem)/.92 var(--ff-d);
  letter-spacing: -.012em;
}
/* la maschera dell'animazione lascia spazio a discendenti (g, p) e accenti; i margini negativi tengono l'interlinea */
.hero__title .line { display: block; overflow: hidden; padding: .14em 0 .28em; margin: -.14em 0 -.21em; }
.hero__title .line > span { display: block; text-wrap: balance; animation: rise 1s var(--ease) both; }
.hero__title .line:nth-child(2) > span { animation-delay: .12s; }
@keyframes rise { from { transform: translateY(calc(100% + .45em)); } }
.hero__lead { max-width: 44ch; margin: 0 0 2.1rem; color: var(--soft); font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); animation: fade .9s .35s both; }
.hero .stores { animation: fade .9s .5s both; }
.hero .video-link { animation: fade .9s .62s both; }
@keyframes fade { from { opacity: 0; transform: translateY(14px); } }

.hero__visual { position: relative; display: grid; place-items: center; min-height: 72vh; }
.phone-slot { width: var(--slot-w, 300px); aspect-ratio: 300 / 640; }
.hero .phone-slot { --slot-w: min(320px, 25vw, calc((100svh - 210px) / 2.1333)); }

.note {
  position: absolute; display: flex; align-items: center; gap: 12px; min-width: 210px;
  padding: 12px 18px 12px 12px; border-radius: 16px;
  background: rgba(15, 24, 40, .86); border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .65);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  animation: pop .7s cubic-bezier(.2, 1.3, .4, 1) both;
}
.note--a { top: 15%; left: -6%; animation-delay: 1.15s; }
.note--b { top: 49%; right: -9%; animation-delay: 1.4s; }
.note--c { bottom: 11%; left: -1%; animation-delay: 1.65s; }
@keyframes pop { from { opacity: 0; transform: translateY(18px) scale(.9); } }
.note__plate { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; flex: none; }
.note__plate svg { width: 20px; height: 20px; }
.note__plate--red { background: var(--radar); color: #fff; }
.note__plate--amber { background: var(--signal); color: #1A1404; }
.note__plate--blue { background: var(--sign-blue); color: #fff; }
.note__txt { display: flex; flex-direction: column; line-height: 1.2; }
.note__txt strong { font-size: .98rem; font-weight: 600; }
.note__txt small { font-size: .82rem; color: var(--mute); }

/* ---------- Portale con i cartelli ---------- */
.gantry { padding: 26px 0 44px; overflow: hidden; }
.gantry__beam {
  position: absolute; left: 0; right: 0; top: 50%; height: 12px; margin-top: -14px;
  background: linear-gradient(#3F4A5E, #232B3A); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 6px 14px rgba(0, 0, 0, .4);
}
.gantry__track { position: relative; display: flex; gap: 22px; width: max-content; padding-left: 4vw; will-change: translate; }
.rsign {
  display: inline-flex; align-items: center; gap: 12px; padding: 14px 24px; white-space: nowrap;
  border-radius: 10px; background: var(--sign-green); color: #fff;
  box-shadow: inset 0 0 0 3px var(--sign-green), inset 0 0 0 5.5px #fff, 0 14px 26px -12px rgba(0, 0, 0, .7);
  font: 700 clamp(1.6rem, 1.1rem + 1.4vw, 2.4rem)/1 var(--ff-d); letter-spacing: .01em;
}
.rsign:not(:has(svg, b)) { background: var(--sign-blue); box-shadow: inset 0 0 0 3px var(--sign-blue), inset 0 0 0 5.5px #fff, 0 14px 26px -12px rgba(0, 0, 0, .7); }
.rsign svg { width: 1.05em; height: 1.05em; }
.rsign__no {
  display: inline-grid; place-items: center; min-width: 1.5em; height: 1.22em; padding: 0 .22em;
  border-radius: 5px; background: var(--radar); box-shadow: inset 0 0 0 2px #fff; font-size: .74em;
}

/* ---------- Come funziona ---------- */
.story {
  width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto;
  display: grid; grid-template-columns: 1fr 1fr; column-gap: 4vw;
}
.story__pin { position: relative; }
.story__stage { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; place-items: center; }
.story .phone-slot { --slot-w: min(300px, 26vw, calc((100svh - 150px) / 2.1333)); }
.story__intro { padding: 50vh 0 4vh; }
.story__intro h2 { margin: 0 0 1rem; font: 700 clamp(2.6rem, 1.6rem + 3.4vw, 4.6rem)/.95 var(--ff-d); }
.story__intro p { max-width: 40ch; margin: 0; color: var(--soft); font-size: 1.15rem; }
.step { min-height: 88vh; display: flex; align-items: center; }
.step__card { max-width: 31rem; opacity: .3; transition: opacity .5s ease; }
.step.is-active .step__card { opacity: 1; }
.step h3 { margin: 1.15rem 0 .8rem; font: 700 clamp(2rem, 1.5rem + 1.6vw, 2.9rem)/1 var(--ff-d); }
.step p { margin: 0; color: var(--soft); font-size: 1.12rem; }
.facts { list-style: none; display: grid; gap: .55rem; margin: 1.4rem 0 0; padding: 0; }
.facts li { display: flex; align-items: baseline; gap: .75rem; font-weight: 500; }
.facts li::before { content: ""; width: 18px; height: 3px; flex: none; border-radius: 2px; background: var(--signal); transform: translateY(-4px); }

/* ---------- Funzionalità extra ---------- */
.extras { padding: 18vh 0 16vh; }
/* il titolo sta a destra: il telefono arriva da sinistra e non ci passa sopra */
.extras__grid {
  display: grid; grid-template-columns: 1fr 340px 1fr; align-items: center;
  grid-template-areas: "left phone title" "left phone right";
  column-gap: 3rem; row-gap: 3rem;
}
.extras__title {
  grid-area: title; align-self: end; max-width: 13ch; margin: 0; text-wrap: balance;
  font: 700 clamp(2.2rem, 1.3rem + 2.3vw, 3.7rem)/.98 var(--ff-d);
}
.extras .phone-slot { grid-area: phone; --slot-w: min(290px, 24vw, calc((100svh - 160px) / 2.1333)); justify-self: center; }
.extras__col { display: grid; gap: 3.2rem; }
.extras__col--l { grid-area: left; text-align: right; }
.extras__col--r { grid-area: right; align-self: start; }
.extras__title, .extras__col { opacity: var(--arrive, 1); }
.extras__col--l { translate: calc((1 - var(--arrive, 1)) * -48px) 0; }
.extras__col--r, .extras__title { translate: calc((1 - var(--arrive, 1)) * 48px) 0; }
.extras__col--l .plate { margin-left: auto; }
.feat h3 { margin: 1rem 0 .5rem; font: 700 1.95rem/1.05 var(--ff-d); }
.feat p { max-width: 30ch; margin: 0; color: var(--soft); }
.extras__col--l .feat p { margin-left: auto; }

/* ---------- Invito a scaricare ---------- */
.cta, .blog, .voices, .faq { position: relative; z-index: 10; background: var(--night); }
.cta { padding: 6vh 0 14vh; }
.sign-panel {
  display: grid; justify-items: center; text-align: center;
  padding: clamp(2.4rem, 6vw, 5rem) clamp(1.4rem, 5vw, 4rem);
  border-radius: 26px; background: var(--sign-blue);
  box-shadow: inset 0 0 0 10px var(--sign-blue), inset 0 0 0 15px #fff, 0 40px 80px -34px rgba(31, 95, 214, .6);
}
.sign-panel h2 { max-width: 14ch; margin: .2rem 0 1rem; text-wrap: balance; font: 800 clamp(2.7rem, 1.4rem + 4.6vw, 5.6rem)/.92 var(--ff-d); }
.sign-panel p { margin: 0 0 2rem; color: #E3ECFF; font-size: 1.2rem; }
.sign-panel .stores { justify-content: center; }

/* ---------- Blog ---------- */
.sec-title { margin: 0 0 2.6rem; font: 700 clamp(2.4rem, 1.6rem + 2.8vw, 4rem)/1 var(--ff-d); }
.blog { padding: 8vh 0 10vh; }
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post {
  display: flex; flex-direction: column; gap: 1.3rem; min-height: 300px; padding: 1.8rem;
  border-radius: 18px; background: var(--night-2); border: 1px solid var(--line);
  color: var(--ink); text-decoration: none;
  transition: border-color .25s, transform .25s var(--ease);
}
.post:hover { border-color: rgba(255, 194, 26, .5); transform: translateY(-3px); }
.post h3 { flex: 1; margin: 0; font: 700 1.8rem/1.08 var(--ff-d); }
.post__more { color: var(--signal); font-weight: 600; }

/* ---------- Feedback ---------- */
.voices { padding: 10vh 0; }
.quotes { display: grid; grid-template-columns: 1fr 1fr; gap: 3.4rem 4.5rem; }
.quote { position: relative; margin: 0; padding-left: 1.6rem; }
.quote::before {
  content: ""; position: absolute; left: 0; top: .35em; bottom: .35em; width: 4px; border-radius: 2px;
  background: repeating-linear-gradient(to bottom, var(--signal) 0 18px, transparent 18px 30px);
}
.quote blockquote { margin: 0; }
.quote p { margin: 0; font: 500 clamp(1.3rem, 1.1rem + .7vw, 1.7rem)/1.32 var(--ff); }
.quote figcaption { margin-top: 1rem; color: var(--mute); font-weight: 600; }

/* ---------- FAQ ---------- */
.faq { padding: 10vh 0 14vh; }
.faq__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 4rem; align-items: start; }
.faq__aside { position: sticky; top: 110px; }
.faq__aside p { max-width: 34ch; margin: 0 0 1.7rem; color: var(--soft); }
.faq__list { border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa summary {
  display: flex; justify-content: space-between; align-items: center; gap: 1.2rem; padding: 1.4rem 0;
  list-style: none; cursor: pointer; font: 600 clamp(1.3rem, 1.1rem + .6vw, 1.6rem)/1.2 var(--ff-d);
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: ""; width: 22px; height: 22px; flex: none; color: var(--signal);
  background:
    linear-gradient(currentColor, currentColor) center / 15px 2.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 2.5px 15px no-repeat;
  transition: transform .3s var(--ease);
}
.qa[open] summary::after { transform: rotate(45deg); }
.qa::details-content { block-size: 0; overflow: hidden; transition: block-size .35s var(--ease), content-visibility .35s allow-discrete; }
.qa[open]::details-content { block-size: auto; }
.qa__body { padding: 0 0 1.5rem; color: var(--soft); }
.qa__body p { margin: 0 0 .8rem; }
.qa__body ul { margin: 0 0 .8rem; padding-left: 1.2rem; }
.qa__body strong { color: var(--ink); font-weight: 600; }

/* ---------- Footer ---------- */
.footer { position: relative; z-index: 10; padding: 3rem 0; background: #08101D; border-top: 1px solid var(--line); }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem 3rem; }
.footer__nav { display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; }
.footer__nav a { color: var(--mute); text-decoration: none; }
.footer__nav a:hover { color: #fff; }
.footer__copy { margin: 0 0 0 auto; color: var(--mute); font-size: .9rem; }

/* ---------- Video ---------- */
.video { width: min(92vw, 1100px); max-width: none; padding: 0; border: 0; background: transparent; overflow: visible; }
.video::backdrop { background: rgba(4, 8, 15, .88); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.video__frame { aspect-ratio: 16 / 9; overflow: hidden; border-radius: 16px; background: #000; }
.video__frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.video__close {
  position: absolute; top: -54px; right: 0; width: 42px; height: 42px; border: 0; border-radius: 50%;
  display: grid; place-items: center; background: #fff; color: #0B1322; cursor: pointer;
}
.video__close svg { width: 20px; height: 20px; }

/* ---------- Comparsa leggera di articoli e citazioni ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease var(--d, 0s), transform .7s var(--ease) var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* =========================================================
   Schermi medi
   ========================================================= */
@media (max-width: 1080px) {
  .nav { gap: 18px; }
  .note { min-width: 0; }
  .note--a { left: -10%; }
  .note--b { right: -12%; }
  .extras__grid { grid-template-columns: 1fr 300px 1fr; gap: 2rem; }
  .posts { grid-template-columns: 1fr 1fr; }
  .posts .post:last-child { grid-column: 1 / -1; min-height: 0; }
}

/* =========================================================
   Telefono e tablet in verticale
   ========================================================= */
@media (max-width: 860px) {
  .topbar__inner { gap: 12px; }
  .topbar .btn--small { margin-left: auto; }
  .menu-btn {
    display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
    border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .04); cursor: pointer;
  }
  .menu-btn svg { width: 22px; height: 22px; }
  .nav {
    position: fixed; top: 72px; left: 0; right: 0; margin: 0; padding: .6rem var(--gutter) 1.4rem;
    display: none; flex-direction: column; gap: 0;
    background: var(--night); border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px -10px rgba(0, 0, 0, .6);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: .9rem 0; font-size: 1.15rem; color: var(--ink); border-bottom: 1px solid var(--line); }
  .nav a:last-child { border-bottom: 0; }

  .road { display: none; }

  .hero { padding: 100px 0 24px; min-height: 0; }
  .hero__grid { grid-template-columns: 1fr; gap: 12px; }
  .hero__visual { min-height: 0; padding: 2.2rem 0 1rem; }
  .hero .phone-slot { --slot-w: min(250px, 62vw, calc(58svh / 2.1333)); }
  .note { padding: 9px 12px 9px 9px; gap: 9px; border-radius: 13px; }
  .note__plate { width: 32px; height: 32px; border-radius: 9px; }
  .note__plate svg { width: 17px; height: 17px; }
  .note__txt strong { font-size: .88rem; }
  .note__txt small { font-size: .74rem; }
  .note--a { top: 12%; left: 0; }
  .note--b { top: 47%; right: 0; }
  .note--c { bottom: 8%; left: 2%; }

  .gantry { padding: 18px 0 30px; }

  /* il telefono resta in alto; ogni scheda si ferma appena sotto e poi lascia il posto alla successiva */
  .story { --ph: min(120vw, 40svh); --card-top: calc(84px + var(--ph) + 14px); grid-template-columns: 1fr; }
  .story__pin, .story__steps { grid-area: 1 / 1; }
  .story__steps { position: relative; z-index: 2; padding-bottom: 6svh; }
  .story__stage { place-items: start center; padding-top: 84px; }
  .story .phone-slot { --slot-w: calc(var(--ph) / 2.1333); }
  .story__intro, .step { display: block; min-height: 82vh; min-height: 82svh; padding: 0; }
  .story__intro { padding-top: var(--card-top); min-height: calc(var(--card-top) + 46svh); }
  .intro-card, .step__card {
    position: sticky; top: var(--card-top);
    max-width: none; opacity: 1; padding: 1.15rem 1.2rem 1.25rem; border-radius: 18px;
    background: rgba(13, 21, 36, .94); border: 1px solid var(--line);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  }
  .story__intro h2 { font-size: 2.6rem; margin-bottom: .5rem; }
  .story__intro p { font-size: 1.02rem; }
  .step__card { display: grid; grid-template-columns: auto 1fr; column-gap: .9rem; align-items: center; }
  .step__card .plate { width: 44px; height: 44px; }
  .step__card .plate svg { width: 22px; height: 22px; }
  .plate--ring { box-shadow: inset 0 0 0 5px var(--radar); }
  .step h3 { margin: 0; font-size: 1.6rem; }
  .step p, .step .facts { grid-column: 1 / -1; }
  .step p { margin-top: .7rem; font-size: 1rem; line-height: 1.5; }
  .facts { margin-top: .8rem; gap: .3rem; font-size: .95rem; }

  .extras { padding: 12vh 0 10vh; }
  .extras__grid { grid-template-columns: 1fr; grid-template-areas: "phone" "title" "left" "right"; gap: 2.4rem; }
  .extras__title { max-width: 14ch; }
  .extras__title, .extras__col { translate: none; }
  .extras .phone-slot { --slot-w: min(240px, 60vw, calc(56svh / 2.1333)); }
  .extras__col { gap: 2.2rem; }
  .extras__col--l { text-align: left; }
  .extras__col--l .plate, .extras__col--l .feat p { margin-left: 0; }

  .sign-panel { box-shadow: inset 0 0 0 7px var(--sign-blue), inset 0 0 0 11px #fff, 0 30px 60px -30px rgba(31, 95, 214, .6); }

  .posts { grid-template-columns: 1fr; }
  .post { min-height: 0; }
  .quotes { grid-template-columns: 1fr; gap: 2.4rem; }
  .faq__grid { grid-template-columns: 1fr; gap: 2rem; }
  .faq__aside { position: static; }
  .footer__copy { margin-left: 0; }
}

@media (max-width: 860px) and (max-height: 720px) {
  .story { --ph: min(120vw, 34svh); }
  .step p { font-size: .95rem; }
}

@media (max-width: 480px) {
  .brand__name { font-size: 1.45rem; }
  .topbar .btn--small { padding: .65rem .85rem; font-size: .9rem; }
  .store { min-width: 0; flex: 1 1 160px; }
  .note--b { right: -2%; }
}

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