/* TicketOK — landing page
   Desktop first; sotto i 768px il layout segue i riferimenti mobile (390px).
   I blocchi animati allo scroll (data-steps) si stilano con [data-key="..."]:
   lo script ne riscrive l'attributo class. */

/* ---------- Token ---------- */
:root {
  --navy: #0E1E34;
  --navy-2: #16314F;
  --navy-line: #23405F;
  --navy-rule: #1C3350;
  --navy-border: #2C4766;
  --cyan: #3FE0C5;
  --cyan-hover: #6BEBD6;
  --teal: #0B7068;
  --teal-2: #0B7F74;
  --tint-1: #E2F7F3;
  --tint-2: #D3F3EE;
  --tint-3: #BDEDE4;
  --ink: #0E1E34;
  --text: #3B4A5C;
  --muted: #5B6878;
  --soft: #F5F7FA;
  --line: #E3E8EF;
  --line-2: #DCE3EC;

  --open: #B42318;  --open-bg: #FDECEC;
  --work: #1F4FD1;  --work-bg: #EAF1FE;
  --done: #0B7068;  --done-bg: #E2F7F3;
  --red: #D92D20;
  --rose: #F28B82;
  --sky: #6EA8FE;

  --on-dark: #C9D3DF;
  --on-dark-2: #A9B6C6;
  --on-dark-3: #8FA0B5;

  --font-head: Manrope, Inter, sans-serif;
  --font-body: Inter, system-ui, sans-serif;

  --shadow-pop: 0 18px 40px -18px rgba(14, 30, 52, .35), 0 2px 6px rgba(14, 30, 52, .06);
  --shadow-float: 0 24px 50px -16px rgba(0, 0, 0, .5);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 72px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: #fff; color: var(--text); font-family: var(--font-body); }
img { max-width: 100%; }
a { color: var(--teal); }
a:hover { color: var(--ink); }
h1, h2, h3, h4, p, ol, ul, dl, dd { margin: 0; }
ol, ul { padding: 0; list-style: none; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--teal-2); outline-offset: 2px; }
.site-header :focus-visible, .hero :focus-visible, .change :focus-visible,
.security :focus-visible, .final :focus-visible, .site-footer :focus-visible { outline-color: var(--cyan); }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: var(--sw, 2); stroke-linecap: round; stroke-linejoin: round; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 100; padding: 10px 16px; border-radius: 8px; background: #fff; color: var(--ink); font-weight: 600; }
.skip-link:focus { top: 12px; }
.m-only { display: none; }

/* ---------- Tipografia ---------- */
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); }
.eyebrow--light { color: var(--cyan); }
.h2 { font-family: var(--font-head); font-weight: 800; font-size: 44px; line-height: 1.1; letter-spacing: -.02em; color: var(--ink); }
.h2--white { color: #fff; }
.h2--xl { font-size: 56px; line-height: 1.02; }
.h2--lg { font-size: 52px; line-height: 1.05; }
.lead { font-size: 19px; line-height: 1.55; color: var(--text); }
.sec-head { display: flex; flex-direction: column; gap: 16px; }

/* ---------- Pulsanti e chip ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 22px; border-radius: 10px; background: var(--cyan); color: var(--ink); font-weight: 700; font-size: 16px; text-decoration: none; white-space: nowrap; }
.btn:hover { background: var(--cyan-hover); color: var(--ink); }
.btn .i { width: 18px; height: 18px; }
.btn-sm { height: 42px; padding: 0 18px; font-size: 15px; }
.btn-lg { height: 54px; padding: 0 28px; font-size: 17px; }
.btn-xl { height: 56px; padding: 0 30px; font-size: 17px; }
.btn-ghost { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 54px; padding: 0 12px; color: #fff; font-weight: 600; font-size: 17px; text-decoration: none; white-space: nowrap; }
.btn-ghost:hover { color: var(--cyan); }
.btn-ghost .i { width: 18px; height: 18px; }

.chip { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.c-open { background: var(--open-bg); color: var(--open); }
.c-work { background: var(--work-bg); color: var(--work); }
.c-done { background: var(--done-bg); color: var(--done); }
.c-gray { background: #F0F3F7; color: var(--text); }

/* ---------- 1 Header ---------- */
.site-header { position: sticky; top: 0; z-index: 10; background: var(--navy); border-bottom: 1px solid var(--navy-rule); }
.header-inner { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-family: var(--font-head); font-weight: 800; font-size: 24px; letter-spacing: -.02em; }
.brand:hover { color: #fff; }
.brand img { display: block; width: 32px; height: 32px; }
.nav { display: flex; gap: 32px; }
.nav a { color: var(--on-dark); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav a:hover { color: #fff; }
.nav .nav-cta { display: none; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.menu-toggle { display: none; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; color: #fff; align-items: center; justify-content: center; cursor: pointer; }
.menu-toggle .i { width: 22px; height: 22px; }

/* ---------- 2 Hero ---------- */
.hero { padding: 80px 0 72px; background: var(--navy); }
.hero-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px; }
.hero-title { max-width: 900px; font-family: var(--font-head); font-weight: 800; font-size: 64px; line-height: 1.04; letter-spacing: -.03em; color: #fff; }
.hero-title span { color: var(--cyan); }
.hero-lead { max-width: 680px; font-size: 20px; line-height: 1.55; color: var(--on-dark); }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }

.board { position: relative; width: 100%; max-width: 1080px; height: 470px; margin-top: 48px; text-align: left; }
.board-panel { position: absolute; inset: 0 70px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; padding: 28px; border-radius: 22px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .10); box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .7); }
.board-col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.board-col--open { --c: var(--rose); }
.board-col--work { --c: var(--sky); }
.board-col--done { --c: var(--cyan); }
.board-head { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: #fff; }
.board-head .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.board-count { margin-left: auto; color: var(--on-dark-3); font-weight: 500; }
.tk { display: flex; flex-direction: column; gap: 9px; padding: 14px; border-radius: 12px; background: var(--navy-2); border: 1px solid var(--navy-line); }
.tk-bar { height: 8px; width: var(--bw); border-radius: 4px; background: rgba(255, 255, 255, .38); }
.tk-bar + .tk-bar { background: rgba(255, 255, 255, .16); }
.tk-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 4px; }
.tk-tag { width: 34px; height: 8px; border-radius: 4px; background: var(--c); }
.av { width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--ink); font-size: 9px; font-weight: 700; }
.av--lb { background: #C9D7F2; }
.av--sm { background: #BFEDE4; }
.av--mt { background: #E3D4F7; }
.av--none { background: var(--navy-border); }

.float-card { position: absolute; display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: 16px; background: #fff; box-shadow: var(--shadow-float); }
.float-card--new { left: 0; top: 70px; width: 270px; }
.float-card--done { right: 0; bottom: 56px; width: 280px; }
.float-ico { position: relative; flex: none; width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; }
.float-ico--inbox { border-radius: 12px; background: var(--tint-1); color: var(--teal); }
.float-ico--check { border-radius: 50%; background: var(--cyan); color: var(--ink); --sw: 2.6; }
.float-text { display: flex; flex-direction: column; gap: 4px; font-size: 13px; line-height: 1.4; color: var(--text); }
.float-title { font-size: 15px; line-height: normal; font-weight: 700; color: var(--ink); }

/* Notifica "Nuova richiesta": appare sul posto, poi bollino +1 e contatore 7 → 8 */
.hero-notif { animation: notifIn .6s cubic-bezier(.2, .9, .3, 1.3) .8s both; }
.hero-badge { position: absolute; top: -9px; right: -11px; min-width: 26px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--red); color: #fff; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; border: 2px solid #fff; animation: badgePop .4s cubic-bezier(.2, .9, .25, 1.6) 1.3s both; }
.cnt { display: inline-grid; }
.cnt > span { grid-area: 1 / 1; text-align: right; }
.cnt-old { animation: cntOut .3s ease 1.45s both; }
.cnt-new { color: #fff; font-weight: 700; animation: cntIn .35s ease 1.5s both; }
@keyframes notifIn { 0% { opacity: 0; scale: .6; filter: blur(4px); } 60% { opacity: 1; filter: blur(0); } 100% { opacity: 1; scale: 1; filter: blur(0); } }
@keyframes badgePop { from { opacity: 0; scale: 0; } to { opacity: 1; scale: 1; } }
@keyframes cntOut { to { opacity: 0; translate: 0 -6px; } }
@keyframes cntIn { from { opacity: 0; translate: 0 6px; } to { opacity: 1; translate: 0 0; } }
@media (prefers-reduced-motion: reduce) {
  .hero-notif, .hero-badge, .cnt-new { animation: none; }
  .cnt-old { display: none; }
}

/* ---------- Anteprima all'apertura ----------
   Visibile solo con html.has-intro (script nell'<head>). Tutta in CSS: si chiude da sola anche senza script.js,
   che serve solo a saltarla (html.intro-skipped) e a toglierla dalla pagina alla fine. */
.intro { display: none; }
.has-intro .intro { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; background: radial-gradient(circle 360px at 50% 50%, rgba(63, 224, 197, .05), rgba(63, 224, 197, .035) 30%, rgba(63, 224, 197, .018) 55%, rgba(63, 224, 197, .006) 80%, transparent), var(--navy); animation: introOut .65s cubic-bezier(.76, 0, .24, 1) 1.55s forwards; }
.has-intro.intro-skipped .intro { animation: introOut .35s ease forwards; }
.intro-brand { display: flex; align-items: center; gap: 14px; }
.intro-mark { width: 64px; height: 64px; overflow: visible; }
.intro-a, .intro-b { transform-box: fill-box; transform-origin: center; }
.intro-a { animation: introA .55s cubic-bezier(.2, .9, .25, 1.2) .1s both; }
.intro-b { animation: introB .55s cubic-bezier(.2, .9, .25, 1.2) .2s both; }
.intro-check { stroke-dasharray: 24; stroke-dashoffset: 24; animation: introCheck .4s ease-out .6s forwards; }
.intro-word { font-family: var(--font-head); font-size: 42px; font-weight: 800; letter-spacing: -.02em; color: #fff; clip-path: inset(0 100% 0 0); animation: introWord .55s cubic-bezier(.2, .8, .2, 1) .8s forwards; }
@keyframes introA { from { opacity: 0; transform: translate(5px, -9px) rotate(-10deg); } }
@keyframes introB { from { opacity: 0; transform: translate(-5px, 9px) rotate(-10deg); } }
@keyframes introCheck { to { stroke-dashoffset: 0; } }
@keyframes introWord { from { translate: -10px 0; } to { clip-path: inset(0 0 0 0); translate: 0 0; } }
@keyframes introOut { to { transform: translateY(-100%); visibility: hidden; } }

/* Dopo l'anteprima i contenuti della hero salgono uno dopo l'altro; le animazioni della bacheca partono più tardi */
.has-intro .hero-inner > * { animation: heroIn .7s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(1.85s + var(--hi, 0) * .08s); }
.has-intro .hero-inner > :nth-child(2) { --hi: 1; }
.has-intro .hero-inner > :nth-child(3) { --hi: 2; }
.has-intro .hero-inner > :nth-child(4) { --hi: 3; }
.has-intro .hero-inner > :nth-child(5) { --hi: 4; }
.has-intro.intro-skipped .hero-inner > * { animation-delay: calc(.15s + var(--hi, 0) * .08s); }
.has-intro .hero-notif { animation-delay: 2.6s; }
.has-intro .hero-badge { animation-delay: 3.1s; }
.has-intro .cnt-old { animation-delay: 3.25s; }
.has-intro .cnt-new { animation-delay: 3.3s; }
@keyframes heroIn { from { opacity: 0; translate: 0 18px; } }

/* ---------- 3 Per chi (marquee) ---------- */
.audience { padding: 0 0 56px; background: var(--navy); }
.audience-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 40px; padding-top: 36px; border-top: 1px solid rgba(255, 255, 255, .10); }
.audience-label { flex: 0 0 auto; font-size: 13px; font-weight: 700; line-height: 1.6; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); }
.mq { flex: 1 1 600px; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.mq-track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.mq:hover .mq-track { animation-play-state: paused; }
.mq-group { display: flex; }
.mq-item { display: inline-flex; align-items: center; gap: 28px; padding-right: 28px; font-family: var(--font-head); font-size: 28px; font-weight: 700; letter-spacing: -.01em; color: #E6ECF2; white-space: nowrap; }
.mq-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); }
@keyframes marquee { from { translate: 0 0; } to { translate: -50% 0; } }
@media (prefers-reduced-motion: reduce) { .mq-track { animation: none; } }

/* ---------- 4 Problema (collage) ---------- */
.problem { padding: 112px 0 104px; }
.problem-inner { display: flex; flex-direction: column; gap: 40px; }
[data-key="collage"] { position: relative; height: 520px; border-radius: 24px; background: #EEF2F6; overflow: hidden; }

.pop { position: absolute; }
.pop-mail { width: 300px; padding: 16px 18px; border-radius: 14px; background: #fff; box-shadow: var(--shadow-pop); transform: rotate(-3deg); }
.pop-badge { position: absolute; top: -10px; right: -10px; min-width: 28px; height: 28px; padding: 0 8px; border-radius: 14px; background: var(--red); color: #fff; font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.pop-meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.pop-meta .i { width: 16px; height: 16px; color: var(--work); }
.pop-subj { display: block; margin-top: 8px; font-size: 13px; font-weight: 700; color: var(--ink); }
.pop-body { display: block; margin-top: 4px; font-size: 15px; line-height: 1.4; color: var(--ink); }
.pop-postit { width: 180px; padding: 18px 16px 22px; background: #FFE58F; box-shadow: var(--shadow-pop); transform: rotate(4deg); font-family: Caveat, cursive; font-size: 22px; line-height: 1.15; font-weight: 600; color: #3D2E00; }
.pop-call, .pop-msgs { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 14px; background: #fff; box-shadow: var(--shadow-pop); }
.pop-call { transform: rotate(2.5deg); }
.pop-msgs { transform: rotate(-1.5deg); }
.pop-ico { width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
.pop-ico .i { width: 18px; height: 18px; }
.pop-ico--red { background: var(--open-bg); color: var(--open); }
.pop-ico--violet { background: #F1E9FC; color: #5B2BA8; }
.pop-lines { display: flex; flex-direction: column; gap: 2px; }
.pop-strong { font-size: 15px; font-weight: 700; color: var(--ink); }
.pop-strong--red { color: var(--open); }
.pop-small { font-size: 12px; color: var(--muted); }
.pop-dark, .pop-light { display: flex; flex-direction: column; gap: 6px; }
.pop-dark { width: 270px; transform: rotate(1.5deg); }
.pop-dark .pop-who { padding-left: 6px; }
.pop-light { width: 300px; align-items: flex-end; transform: rotate(-2deg); }
.pop-light .pop-who { padding-right: 6px; }
.bubble { padding: 14px 18px; font-size: 18px; font-weight: 600; line-height: 1.3; box-shadow: var(--shadow-pop); }
.bubble--dark { border-radius: 18px 18px 18px 4px; background: var(--navy); color: #fff; }
.bubble--light { border-radius: 18px 18px 4px 18px; background: #fff; color: var(--ink); }
.pop-voice { display: flex; align-items: center; gap: 12px; padding: 8px 16px 8px 8px; border-radius: 999px; background: #fff; box-shadow: var(--shadow-pop); transform: rotate(2deg); }
.voice-ico { width: 34px; height: 34px; border-radius: 50%; background: var(--teal-2); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.voice-ico .i { width: 16px; height: 16px; }
.wave { display: flex; align-items: center; gap: 3px; }
.wave span { width: 3px; height: var(--h); border-radius: 2px; background: var(--on-dark-3); }
.voice-time { font-size: 13px; font-weight: 600; color: var(--muted); }
.pop-final { position: absolute; top: 50%; left: 50%; z-index: 2; transform: translate(-50%, -62%); padding: 24px 40px; border-radius: 18px; background: var(--navy); color: #fff; font-family: var(--font-head); font-size: 44px; line-height: 1.1; font-weight: 800; letter-spacing: -.02em; text-align: center; white-space: nowrap; box-shadow: 0 30px 60px -20px rgba(14, 30, 52, .55); }
.pop-final span { color: var(--cyan); }

/* Posizioni collage desktop */
.collage-wrap--d .pop-mail { top: 32px; left: 3.5%; }
.collage-wrap--d .pop-postit { top: 26px; left: 38%; }
.collage-wrap--d .pop-call { top: 44px; right: 5%; }
.collage-wrap--d .pop-msgs { top: 196px; right: 3.5%; }
.collage-wrap--d .pop-dark { bottom: 120px; left: 3.5%; }
.collage-wrap--d .pop-voice { bottom: 44px; left: 36%; }
.collage-wrap--d .pop-light { bottom: 40px; right: 6%; }

/* Animazione collage legata allo scroll */
[data-key="collage"].armed [data-step]{opacity:0;translate:0 28px;scale:.92;transition:opacity .45s ease,translate .5s cubic-bezier(.2,.9,.25,1.2),scale .5s cubic-bezier(.2,.9,.25,1.2),filter .5s ease}
[data-key="collage"].armed .pop-badge[data-step]{translate:0 0;scale:0}
[data-key="collage"].armed.s1 [data-step="1"],[data-key="collage"].armed.s2 [data-step="2"],[data-key="collage"].armed.s3 [data-step="3"],[data-key="collage"].armed.s4 [data-step="4"],[data-key="collage"].armed.s5 [data-step="5"],[data-key="collage"].armed.s6 [data-step="6"],[data-key="collage"].armed.s7 [data-step="7"],[data-key="collage"].armed.s8 [data-step="8"],[data-key="collage"].armed.s9 [data-step="9"]{opacity:1;translate:0 0;scale:1}
[data-key="collage"].armed.fin .pop{opacity:.4;filter:blur(1.5px)}

.pains { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px 40px; padding-top: 8px; }
.pain { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.pain-x { align-self: flex-start; width: 28px; height: 28px; margin-bottom: 6px; border-radius: 50%; background: var(--open-bg); color: var(--red); display: inline-flex; align-items: center; justify-content: center; --sw: 2.4; }
.pain-x .i { width: 14px; height: 14px; }
.pain h3 { font-family: var(--font-head); font-size: 20px; line-height: 1.25; font-weight: 800; color: var(--ink); }
.pain p { font-size: 15px; line-height: 1.5; color: var(--muted); }
.chat-wrap { display: none; }

/* ---------- 5 Come funziona ---------- */
.how { padding: 88px 0; background: var(--soft); }
.how-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 64px; }
.how-text { flex: 1 1 420px; display: flex; flex-direction: column; gap: 32px; }
[data-key="steps"] { display: flex; flex-direction: column; gap: 28px; }
.step { display: flex; gap: 20px; }
.step-line { display: none; }
.step-num { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 18px; display: inline-flex; align-items: center; justify-content: center; }
.step-num--teal { background: var(--teal-2); }
.step-num .i { display: none; }
.step h3 { margin-bottom: 6px; font-family: var(--font-head); font-size: 20px; font-weight: 700; color: var(--ink); }
.step p { font-size: 16px; line-height: 1.55; }

[data-key="timeline"] { flex: 1 1 520px; min-width: 0; overflow: hidden; border-radius: 16px; background: #fff; border: 1px solid var(--line-2); box-shadow: 0 24px 60px -28px rgba(11, 31, 54, .35); }
.tkt-head { display: flex; flex-direction: column; gap: 16px; padding: 24px 28px; border-bottom: 1px solid var(--line); }
.tkt-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.tkt-id { font-size: 13px; color: var(--muted); }
.tkt-title { font-family: var(--font-head); font-size: 21px; font-weight: 800; color: var(--ink); }
.tkt-meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.tkt-meta div { display: flex; flex-direction: column; gap: 3px; }
.tkt-meta dt { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.tkt-meta dd { font-size: 14px; font-weight: 600; color: var(--ink); }
.tl { display: flex; flex-direction: column; padding: 28px; background: #FBFCFD; }
.tl-row { display: flex; gap: 16px; }
.tl-rail { display: flex; flex-direction: column; align-items: center; }
.tl-dot { flex: none; width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--ink); --sw: 3; }
.tl-dot .i { width: 14px; height: 14px; }
.tl-line { position: relative; flex: 1; width: 2px; margin-top: 4px; background: var(--line); }
.tl-fill { position: absolute; left: 0; top: 0; width: 100%; background: var(--cyan); }
.tl-txt { display: flex; flex-direction: column; gap: 3px; padding: 3px 0 22px; }
.tl-row:last-child .tl-txt { padding-bottom: 0; }
.tl-head { display: flex; gap: 10px; align-items: baseline; }
.tl-title { font-size: 16px; font-weight: 700; color: var(--ink); }
.tl-time { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.tl-desc { font-size: 14px; line-height: 1.5; color: var(--text); }
.tkt-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 28px; border-top: 1px solid var(--line); font-size: 14px; }
.tkt-foot strong { font-family: var(--font-head); font-weight: 800; color: var(--ink); }

/* Timeline: riempimento continuo legato allo scroll (--p da 0 a 1) */
.tl-dot{background:#3FE0C5}
[data-key="timeline"] .tl-fill{height:calc(clamp(0, (var(--p, 1) - var(--a)) / var(--w), 1) * 100%);transition:height .12s linear}
[data-key="timeline"].armed .tl-dot{background:#E3E8EF;scale:.85;transition:background .3s ease,scale .35s cubic-bezier(.2,.9,.25,1.5)}
[data-key="timeline"].armed .tl-dot svg{opacity:0;transition:opacity .25s ease}
[data-key="timeline"].armed .tl-txt{opacity:.35;transition:opacity .3s ease}
[data-key="timeline"].armed.s1 .tl-dot[data-step="1"],[data-key="timeline"].armed.s2 .tl-dot[data-step="2"],[data-key="timeline"].armed.s3 .tl-dot[data-step="3"]{background:#3FE0C5;scale:1}
[data-key="timeline"].armed.s1 .tl-dot[data-step="1"] svg,[data-key="timeline"].armed.s2 .tl-dot[data-step="2"] svg,[data-key="timeline"].armed.s3 .tl-dot[data-step="3"] svg{opacity:1}
[data-key="timeline"].armed.s1 .tl-txt[data-step="1"],[data-key="timeline"].armed.s2 .tl-txt[data-step="2"],[data-key="timeline"].armed.s3 .tl-txt[data-step="3"]{opacity:1}

.flow { margin-top: 88px; }
.flow-inner { display: flex; flex-direction: column; gap: 48px; padding-top: 72px; border-top: 1px solid var(--line-2); }
.flow-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 48px; }
.flow-title { font-family: var(--font-head); font-size: 36px; line-height: 1.15; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.flow-sub { max-width: 260px; font-size: 15px; line-height: 1.6; color: var(--muted); }
.flow-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 40px 48px; }
.flow-step { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.flow-top { display: flex; align-items: center; gap: 20px; margin-bottom: 14px; }
.flow-num { flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--tint-2); border: 1px solid var(--tint-3); color: var(--ink); font-size: 14px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.flow-ico { color: var(--text); --sw: 1.8; }
.flow-line { flex: 1; height: 1px; background: #D5DCE5; }
.flow-step h4 { font-family: var(--font-head); font-size: 19px; font-weight: 700; color: var(--ink); }
.flow-step p { max-width: 330px; font-size: 15px; line-height: 1.6; }

/* ---------- CTA metà pagina ---------- */
.cta-mid { padding: 72px 0; }
.cta-mid-box { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; padding: 40px 48px; border-radius: 20px; background: var(--soft); }
.cta-mid h2 { font-family: var(--font-head); font-size: 30px; line-height: 1.15; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }

/* ---------- 6 Funzionalità ---------- */
.features { padding: 40px 0 104px; }
.features-inner { display: flex; flex-direction: column; gap: 48px; }
.features .sec-head { max-width: 760px; }
[data-key="feat"] { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.feat-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; transition: box-shadow .25s ease, border-color .25s ease; }
.feat-card:hover { border-color: var(--tint-3); box-shadow: 0 18px 40px -24px rgba(14, 30, 52, .35); }
.feat-illu { height: 140px; display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 0 28px; background: var(--soft); font-size: 12px; }
.feat-illu--search { gap: 10px; }
.feat-illu--places { gap: 6px; }
.feat-illu--history { gap: 0; }
.feat-ico { display: none; }
.feat-body { padding: 24px 28px 28px; }
.feat-text { display: flex; flex-direction: column; gap: 8px; }
.feat-text h3 { font-family: var(--font-head); font-size: 19px; font-weight: 700; color: var(--ink); }
.feat-text p { font-size: 15px; line-height: 1.55; }
.feat-bars, .feat-hint { display: none; }

.fi-row { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.fi-box { width: 26px; height: 26px; border-radius: 6px; background: #fff; border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; }
.fi-box .i { width: 13px; height: 13px; }
.fi-arrow { width: 30px; height: 12px; fill: none; stroke: var(--teal-2); stroke-width: 2; }
.fi-pill { height: 26px; padding: 0 10px; border-radius: 6px; background: var(--navy); color: #fff; font-weight: 600; display: inline-flex; align-items: center; }
.fi-ticket { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; border-radius: 8px; background: #fff; border: 1px solid var(--line); }
.fi-ticket-name { color: var(--ink); font-weight: 600; }
.fi-ticket-meta { display: inline-flex; align-items: center; gap: 6px; }
.fi-av { width: 20px; height: 20px; border-radius: 50%; font-size: 9px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.fi-av--lb { background: var(--tint-2); color: var(--teal); }
.fi-av--mt { background: #E9DDFB; color: #5B2BA8; }
.fi-high { color: var(--open); font-weight: 600; }
.fi-low { color: var(--muted); }
.fi-search { height: 32px; display: flex; align-items: center; gap: 8px; padding: 0 10px; border-radius: 8px; background: #fff; border: 1px solid var(--line-2); color: var(--ink); font-weight: 600; }
.fi-search .i { width: 13px; height: 13px; color: var(--muted); }
.type { display: inline-block; overflow: hidden; white-space: nowrap; vertical-align: bottom; max-width: 6ch; }
.fi-chips { display: flex; gap: 6px; }
.fi-place { color: var(--ink); font-weight: 700; }
.fi-place--next { margin-top: 4px; }
.fi-chiprow { display: flex; flex-wrap: wrap; gap: 6px; }
.fi-event { display: flex; align-items: center; gap: 10px; padding: 5px 0; color: var(--ink); font-weight: 600; }
.fi-event-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.fi-company { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 8px; background: #fff; border: 1px solid var(--line); color: var(--ink); font-weight: 600; }
.fi-company--active { border-color: var(--teal-2); }
.fi-logo { width: 20px; height: 20px; border-radius: 5px; background: var(--c); color: #fff; font-size: 9px; display: inline-flex; align-items: center; justify-content: center; }
.fi-count { margin-left: auto; color: var(--muted); font-weight: 500; }

/* Funzionalità: card che salgono e mini-illustrazioni che si accendono in sequenza */
[data-key="feat"].armed [data-step]{opacity:0;translate:0 24px;transition:opacity .5s ease,translate .55s cubic-bezier(.2,.8,.2,1),box-shadow .25s ease,border-color .25s ease}
[data-key="feat"].armed.s1 [data-step="1"],[data-key="feat"].armed.s2 [data-step="2"],[data-key="feat"].armed.s3 [data-step="3"],[data-key="feat"].armed.s4 [data-step="4"],[data-key="feat"].armed.s5 [data-step="5"],[data-key="feat"].armed.s6 [data-step="6"]{opacity:1;translate:0 0}
[data-key="feat"].armed .fs{opacity:0;translate:0 8px;transition:opacity .35s ease,translate .35s ease;transition-delay:calc(var(--i, 0) * 0.12s + 0.3s)}
[data-key="feat"].armed.s1 [data-step="1"] .fs,[data-key="feat"].armed.s2 [data-step="2"] .fs,[data-key="feat"].armed.s3 [data-step="3"] .fs,[data-key="feat"].armed.s4 [data-step="4"] .fs,[data-key="feat"].armed.s5 [data-step="5"] .fs,[data-key="feat"].armed.s6 [data-step="6"] .fs{opacity:1;translate:0 0}
[data-key="feat"].armed .type{max-width:0 !important;transition:max-width .7s steps(5) .5s}
[data-key="feat"].armed.s1 [data-step="1"] .type,[data-key="feat"].armed.s2 [data-step="2"] .type,[data-key="feat"].armed.s3 [data-step="3"] .type,[data-key="feat"].armed.s4 [data-step="4"] .type,[data-key="feat"].armed.s5 [data-step="5"] .type,[data-key="feat"].armed.s6 [data-step="6"] .type{max-width:6ch !important}

/* ---------- 6b Multi-azienda ---------- */
.multi { padding: 0 0 112px; }
.multi-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 56px 96px; padding-top: 96px; border-top: 1px solid var(--line); }
.multi-text { flex: 1 1 380px; display: flex; flex-direction: column; gap: 20px; }
.multi-visual { flex: 1.2 1 520px; min-width: 0; }
[data-key="org"] { --og: 4px; display: flex; flex-direction: column; padding: 28px; border-radius: 18px; background: var(--soft); border: 1px solid var(--line); }
.org-label { margin-bottom: 20px; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); text-align: center; }
.org-hub { position: relative; z-index: 1; display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 12px; background: var(--navy); box-shadow: 0 16px 34px -18px rgba(14, 30, 52, .6); }
.org-hub-ico { flex: none; width: 40px; height: 40px; border-radius: 10px; background: var(--navy-2); border: 1px solid var(--navy-line); color: var(--cyan); display: inline-flex; align-items: center; justify-content: center; }
.org-hub-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.org-hub-title { font-size: 15px; font-weight: 700; color: #fff; }
.org-hub-sub { font-size: 12px; color: var(--on-dark-2); }
.org-hub-brand { margin-left: auto; font-size: 12px; font-weight: 800; color: var(--cyan); }
.org-links { position: relative; height: 52px; }
.org-line { position: absolute; }
.org-l1 { left: calc(50% - 1px); top: 0; width: 2px; height: 26px; }
.org-l2 { left: calc(25% - var(--og)); right: 50%; top: 25px; height: 2px; }
.org-l3 { left: 50%; right: calc(25% - var(--og)); top: 25px; height: 2px; }
.org-l4 { left: calc(25% - var(--og) - 1px); top: 26px; width: 2px; height: 26px; }
.org-l5 { left: calc(75% + var(--og) - 1px); top: 26px; width: 2px; height: 26px; }
.org-node { position: absolute; left: 50%; top: 21px; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 3px rgba(63, 224, 197, .15); }
.org-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.org-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.org-card-body { display: flex; flex-direction: column; gap: 10px; padding: 18px; }
.org-badge { width: 32px; height: 32px; border-radius: 8px; font-weight: 800; font-size: 15px; display: inline-flex; align-items: center; justify-content: center; }
.org-badge--a { background: var(--tint-2); color: var(--teal); }
.org-badge--b { background: var(--work-bg); color: var(--work); }
.org-names { display: flex; flex-direction: column; gap: 2px; }
.org-name { font-family: var(--font-head); font-size: 16px; font-weight: 700; color: var(--ink); }
.org-desc { font-size: 12px; color: var(--muted); }
.org-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.org-tag { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 6px; background: #F0F3F7; color: var(--text); font-size: 11px; font-weight: 500; }
.org-tag .i { width: 11px; height: 11px; }
.org-card-foot { margin-top: auto; display: flex; align-items: center; gap: 6px; padding: 10px 18px; border-top: 1px solid #EEF1F5; font-size: 11px; color: var(--muted); }
.org-card-foot .i { width: 12px; height: 12px; }
.org-note { margin-top: 18px; font-size: 12px; color: var(--muted); text-align: center; }

/* Schema multi-azienda: linee tratteggiate che scorrono e si disegnano allo scroll */
.org-dash-v{background:repeating-linear-gradient(to bottom,rgba(43,181,163,0.5) 0 4px,transparent 4px 9px);background-size:2px 9px;animation:orgY 2.6s linear infinite}
.org-dash-l{background:repeating-linear-gradient(to left,rgba(43,181,163,0.5) 0 4px,transparent 4px 9px);background-size:9px 2px;animation:orgL 2.6s linear infinite}
.org-dash-r{background:repeating-linear-gradient(to right,rgba(43,181,163,0.5) 0 4px,transparent 4px 9px);background-size:9px 2px;animation:orgR 2.6s linear infinite}
.org-node{animation:orgPulse 3.5s ease-out infinite}
@keyframes orgY{to{background-position:0 9px}}
@keyframes orgL{to{background-position:-9px 0}}
@keyframes orgR{to{background-position:9px 0}}
@keyframes orgPulse{0%{box-shadow:0 0 0 0 rgba(63,224,197,0.25)}70%{box-shadow:0 0 0 6px rgba(63,224,197,0)}100%{box-shadow:0 0 0 0 rgba(63,224,197,0)}}
[data-key="org"].armed .org-v{scale:1 0;transform-origin:top;transition:scale .35s ease,opacity .2s ease}
[data-key="org"].armed .org-hl{scale:0 1;transform-origin:right;transition:scale .35s ease,opacity .2s ease}
[data-key="org"].armed .org-hr{scale:0 1;transform-origin:left;transition:scale .35s ease,opacity .2s ease}
[data-key="org"].armed .org-node,[data-key="org"].armed .org-line{opacity:0}
[data-key="org"].armed .org-node{transition:opacity .3s ease}
[data-key="org"].armed .org-card{opacity:.35;translate:0 12px;transition:opacity .4s ease,translate .4s ease}
[data-key="org"].armed.s1 [data-step="1"],[data-key="org"].armed.s2 [data-step="2"],[data-key="org"].armed.s3 [data-step="3"],[data-key="org"].armed.s4 [data-step="4"]{scale:1 1;opacity:1;translate:0 0}
@media (prefers-reduced-motion: reduce){.org-dash-v,.org-dash-l,.org-dash-r,.org-node{animation:none}}

/* ---------- 7 Cosa cambia ---------- */
.change { padding: 120px 0; background: var(--navy); }
.change-inner { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 48px 80px; }
.chg-side { flex: 1 1 340px; position: sticky; top: 120px; display: flex; flex-direction: column; gap: 20px; }
.chg-side .h2 { font-size: 48px; line-height: 1.05; }
.chg-sub { max-width: 360px; font-size: 17px; line-height: 1.6; color: var(--on-dark-2); }
[data-key="change"] { flex: 1.6 1 560px; min-width: 0; display: flex; flex-direction: column; }
.chg-row { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 8px 16px; padding: 32px 0; border-top: 1px solid var(--navy-line); }
.chg-row:last-child { border-bottom: 1px solid var(--navy-line); }
.chg-num { padding-top: 4px; font-family: var(--font-head); font-size: 14px; font-weight: 700; color: var(--cyan); font-variant-numeric: tabular-nums; }
.chg-body { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.chg-label { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-3); }
.chg-was { align-self: flex-start; position: relative; font-family: var(--font-head); font-size: 22px; line-height: 1.3; font-weight: 600; }
.chg-after { display: flex; align-items: center; gap: 12px; font-family: var(--font-head); font-size: 24px; line-height: 1.3; font-weight: 800; color: #fff; }
.chg-arrow { flex: none; display: inline-flex; color: var(--cyan); --sw: 2.2; }

/* Cosa cambia: la frase di prima si barra, sale quella nuova */
.chg-before{color:#7F91A7}
.chg-strike{position:absolute;left:-2px;right:-2px;top:54%;height:2px;border-radius:2px;background:#F28B82;transform-origin:left center}
[data-key="change"].armed .chg-before{color:#E6ECF2;transition:color .45s ease}
[data-key="change"].armed .chg-strike{scale:0 1;transition:scale .5s cubic-bezier(.6,0,.2,1)}
[data-key="change"].armed .chg-after{opacity:0;translate:0 10px;transition:opacity .45s ease .25s,translate .45s ease .25s}
[data-key="change"].armed.s1 [data-step="1"] .chg-before,[data-key="change"].armed.s2 [data-step="2"] .chg-before,[data-key="change"].armed.s3 [data-step="3"] .chg-before,[data-key="change"].armed.s4 [data-step="4"] .chg-before{color:#7F91A7}
[data-key="change"].armed.s1 [data-step="1"] .chg-strike,[data-key="change"].armed.s2 [data-step="2"] .chg-strike,[data-key="change"].armed.s3 [data-step="3"] .chg-strike,[data-key="change"].armed.s4 [data-step="4"] .chg-strike{scale:1 1}
[data-key="change"].armed.s1 [data-step="1"] .chg-after,[data-key="change"].armed.s2 [data-step="2"] .chg-after,[data-key="change"].armed.s3 [data-step="3"] .chg-after,[data-key="change"].armed.s4 [data-step="4"] .chg-after{opacity:1;translate:0 0}

/* ---------- 8 Video ---------- */
.video { padding: 104px 0; }
.video-inner { display: flex; flex-direction: column; align-items: center; gap: 40px; text-align: center; }
.video .sec-head { align-items: center; max-width: 700px; }
.video-box { position: relative; width: 100%; max-width: 960px; aspect-ratio: 16 / 9; overflow: hidden; display: flex; align-items: center; justify-content: center; border-radius: 20px; background: var(--navy); }
.video-player { display: block; width: 100%; height: 100%; object-fit: contain; background: var(--navy); pointer-events: none; }
.video-player[controls] { pointer-events: auto; }
.vd { display: none; }

/* ---------- 9 Sicurezza ---------- */
.security { padding: 88px 0; background: var(--navy); color: var(--on-dark); }
.security-inner { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 64px; }
.security-text { flex: 1 1 340px; display: flex; flex-direction: column; gap: 16px; }
.security-note { font-size: 17px; line-height: 1.55; }
.security-grid { flex: 2 1 560px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.sec-card { display: flex; flex-direction: column; gap: 10px; padding: 24px; border: 1px solid var(--navy-line); border-radius: 14px; }
.sec-card .i { width: 24px; height: 24px; color: var(--cyan); }
.sec-card h3 { font-size: 17px; font-weight: 700; color: #fff; }
.sec-card p { font-size: 15px; line-height: 1.5; }

/* ---------- 10 FAQ ---------- */
.faq { padding: 104px 0; }
.faq-inner { display: flex; flex-wrap: wrap; gap: 64px; }
.faq-text { flex: 1 1 300px; display: flex; flex-direction: column; gap: 16px; }
.faq-note { font-size: 16px; line-height: 1.55; }
.faq-list { flex: 2 1 560px; display: flex; flex-direction: column; }
.faq-list details { padding: 20px 0; border-bottom: 1px solid var(--line); }
.faq-list summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; cursor: pointer; list-style: none; font-size: 18px; font-weight: 600; color: var(--ink); }
.faq-list summary::-webkit-details-marker { display: none; }
.plus { font-size: 26px; font-weight: 400; color: var(--teal-2); transition: transform .2s; }
details[open] .plus { transform: rotate(45deg); }
.faq-list p { margin-top: 12px; font-size: 16px; line-height: 1.6; }

/* ---------- 11 CTA finale ---------- */
.final { padding: 0 0 104px; }
.final-box { position: relative; overflow: hidden; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 48px; padding: 72px 64px; border-radius: 24px; background: var(--navy); }
.final-text { flex: 1 1 460px; display: flex; flex-direction: column; gap: 20px; }
.final-text .h2 { font-size: 48px; }
.final-lead { font-size: 18px; line-height: 1.55; color: var(--on-dark); }
.final-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.final-contacts { flex: 0 1 340px; display: flex; flex-direction: column; gap: 14px; }
.contact-tile { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: 14px; background: var(--navy-2); color: #fff; text-decoration: none; }
.contact-tile:hover { color: #fff; background: #1B3A5D; }
.contact-tile .i { width: 22px; height: 22px; color: var(--cyan); }
.contact-lines { display: flex; flex-direction: column; }
.contact-main { font-weight: 700; font-size: 17px; }
.contact-sub { font-size: 13px; color: var(--on-dark); }

/* ---------- 12 Footer ---------- */
.site-footer { padding: 56px 0 32px; background: var(--navy); color: #B9C4D2; font-size: 14px; }
.site-footer a { color: #B9C4D2; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer .brand, .site-footer .brand:hover { color: #fff; }
.footer-inner { display: flex; flex-direction: column; gap: 40px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; }
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; max-width: 300px; }
.footer-tag { line-height: 1.55; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 64px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-h { color: #fff; font-weight: 600; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 24px; border-top: 1px solid var(--navy-rule); font-size: 13px; }

/* ---------- Fino a 900px: menu a tendina ---------- */
@media (max-width: 900px) {
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; padding: 8px 32px 16px; background: var(--navy); border-bottom: 1px solid var(--navy-rule); }
  .nav.is-open { display: flex; }
  .nav a { display: flex; align-items: center; min-height: 48px; font-size: 16px; }
  .menu-toggle { display: inline-flex; }
  .h2 { font-size: 32px; }
  .h2--xl { font-size: 56px; }
  .h2--lg { font-size: 52px; }
  .hero-title { font-size: 40px; }
  .chg-side { position: static; }
}

/* ---------- Mobile (sotto i 768px, riferimento 390px) ---------- */
@media (max-width: 767px) {
  html { scroll-padding-top: 64px; }
  .wrap { padding: 0 16px; }
  .d-only { display: none; }
  .m-only { display: inline; }

  .eyebrow { font-size: 12px; }
  .h2 { font-size: 30px; line-height: 1.12; }
  .sec-head { gap: 12px; }
  .chip { height: 22px; padding: 0 9px; font-size: 11px; }
  .btn { height: 52px; }
  .btn-lg, .btn-xl { height: 52px; padding: 0 22px; font-size: 16px; }
  .btn-sm { height: 40px; padding: 0 14px; font-size: 14px; }

  /* Anteprima */
  .intro-brand { gap: 12px; }
  .intro-mark { width: 50px; height: 50px; }
  .intro-word { font-size: 34px; }

  /* Header */
  .header-inner { height: 64px; gap: 8px; }
  .brand { gap: 8px; font-size: 21px; }
  .brand img { width: 28px; height: 28px; }
  .nav { padding: 8px 16px 16px; }
  .nav .nav-cta { display: flex; color: var(--cyan); font-weight: 700; }
  .header-actions { gap: 4px; }
  .header-actions .btn { display: none; }

  /* Hero */
  /* Hero alleggerita: niente etichetta sopra il titolo, "Guarda come funziona" come semplice link */
  .hero { padding: 72px 0 64px; }
  .hero-inner { align-items: stretch; gap: 24px; text-align: left; }
  .hero .eyebrow { display: none; }
  .hero-title { font-size: 44px; line-height: 1.04; }
  .hero-lead { font-size: 18px; }
  .hero-actions { flex-direction: column; gap: 12px; margin-top: 16px; }
  .hero-actions > a { width: 100%; }
  .hero-actions .btn .i { display: none; }
  .hero-actions .btn-ghost { height: 44px; padding: 0; font-size: 16px; color: var(--on-dark); }

  .board { display: none; }

  /* Per chi */
  .audience { padding: 0 0 40px; }
  .audience-inner { display: block; padding-top: 24px; }
  .audience-label { margin-bottom: 14px; font-size: 12px; }
  .mq { margin: 0 -16px; }
  .mq-item { gap: 20px; padding-right: 20px; font-size: 21px; }

  /* Problema */
  /* Ritmo verticale uniforme: 72px sopra/sotto ogni sezione, 32px tra titolo e contenuto */
  .problem { padding: 72px 0; }
  .problem-inner { gap: 32px; }
  .h2--xl { font-size: 36px; line-height: 1.05; }
  .collage-wrap--d { display: none; }
  /* Problemi: messaggi dei colleghi, compaiono uno alla volta, poi la frase finale */
  .pains { display: none; }
  .chat-wrap { display: block; }
  [data-key="chat"] { display: flex; flex-direction: column; gap: 22px; }
  .msg { display: flex; align-items: flex-end; gap: 10px; max-width: 88%; }
  .msg--right { flex-direction: row-reverse; align-self: flex-end; }
  .msg-av { flex: none; width: 32px; height: 32px; margin-bottom: 26px; border-radius: 50%; background: var(--c); color: var(--ink); font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
  .msg-body { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
  .msg--right .msg-body { align-items: flex-end; }
  .msg-who { padding: 0 6px; font-size: 12px; color: var(--muted); }
  .msg-bubble { padding: 12px 16px; border-radius: 18px 18px 18px 4px; background: #EEF2F6; color: var(--ink); font-size: 16px; font-weight: 600; line-height: 1.35; }
  .msg--right .msg-bubble { border-radius: 18px 18px 4px 18px; background: var(--navy); color: #fff; }
  .msg-tag { display: inline-flex; align-items: center; gap: 6px; padding: 0 6px; font-size: 13px; font-weight: 700; color: var(--open); --sw: 2.6; }
  .msg-tag .i { width: 12px; height: 12px; }
  .chat-final { margin-top: 12px; padding: 20px 22px; border-radius: 18px; background: var(--navy); color: #fff; font-family: var(--font-head); font-size: 28px; line-height: 1.1; font-weight: 800; letter-spacing: -.02em; text-align: center; box-shadow: 0 24px 48px -22px rgba(14, 30, 52, .55); }
  .chat-final span { color: var(--cyan); }
  [data-key="chat"].armed > [data-step]{opacity:0;translate:0 18px;scale:.96;transition:opacity .45s ease,translate .5s cubic-bezier(.2,.9,.25,1.2),scale .5s cubic-bezier(.2,.9,.25,1.2),filter .5s ease}
  [data-key="chat"].armed .msg-tag{opacity:0;transition:opacity .35s ease .35s}
  [data-key="chat"].armed.s1 [data-step="1"],[data-key="chat"].armed.s2 [data-step="2"],[data-key="chat"].armed.s3 [data-step="3"],[data-key="chat"].armed.s4 [data-step="4"],[data-key="chat"].armed.s1 [data-step="1"] .msg-tag,[data-key="chat"].armed.s2 [data-step="2"] .msg-tag,[data-key="chat"].armed.s3 [data-step="3"] .msg-tag{opacity:1;translate:0 0;scale:1}
  [data-key="chat"].armed.fin .msg{opacity:.45;filter:blur(1.5px)}

  /* Come funziona: niente card del ticket, i passi fanno da timeline */
  .how { padding: 72px 0; }
  .how-text { gap: 32px; }
  [data-key="timeline"] { display: none; }
  [data-key="steps"] { gap: 22px; }
  .step { position: relative; gap: 14px; }
  .step-num, .step-num--teal { width: 36px; height: 36px; background: var(--cyan); color: var(--ink); --sw: 3; }
  .step-n { display: none; }
  .step-num .i { display: block; width: 16px; height: 16px; }
  .step-line { display: block; position: absolute; left: 17px; top: 40px; bottom: -18px; width: 2px; border-radius: 2px; background: var(--line-2); }
  .step-fill { position: absolute; left: 0; top: 0; width: 100%; border-radius: inherit; background: var(--cyan); height: calc(clamp(0, (var(--p, 1) - var(--a)) / var(--w), 1) * 100%); transition: height .12s linear; }
  .step h3 { margin-bottom: 4px; font-size: 18px; }
  .step p { font-size: 15px; }
  [data-key="steps"].armed .step-num{transition:background .3s ease,scale .35s cubic-bezier(.2,.9,.25,1.5)}
  [data-key="steps"].armed .step-num .i{transition:opacity .25s ease}
  [data-key="steps"].armed:not(.s1) .step-num[data-step="1"] .i,[data-key="steps"].armed:not(.s2) .step-num[data-step="2"] .i,[data-key="steps"].armed:not(.s3) .step-num[data-step="3"] .i{opacity:0}
  [data-key="steps"].armed .step-txt{transition:opacity .3s ease}
  [data-key="steps"].armed:not(.s1) .step-num[data-step="1"],[data-key="steps"].armed:not(.s2) .step-num[data-step="2"],[data-key="steps"].armed:not(.s3) .step-num[data-step="3"]{background:#E3E8EF;color:var(--muted);scale:.85}
  [data-key="steps"].armed:not(.s1) .step-txt[data-step="1"],[data-key="steps"].armed:not(.s2) .step-txt[data-step="2"],[data-key="steps"].armed:not(.s3) .step-txt[data-step="3"]{opacity:.35}

  /* Flusso: riquadro scuro con i tre passi affiancati, per staccarlo dalla timeline sopra */
  .flow { margin-top: 56px; }
  .flow-inner { gap: 24px; padding: 26px 18px 24px; border: 0; border-radius: 20px; background: var(--navy); }
  .flow-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .flow-title { font-size: 24px; color: #fff; }
  .flow-sub { max-width: none; font-size: 14px; line-height: 1.5; color: var(--on-dark-2); }
  .flow-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .flow-step { gap: 6px; }
  .flow-top { gap: 6px; margin-bottom: 6px; }
  .flow-num { display: none; }
  .flow-ico { width: 42px; height: 42px; padding: 10px; border-radius: 12px; background: var(--navy-2); border: 1px solid var(--navy-line); color: var(--cyan); }
  .flow-line { height: 0; margin-right: -12px; background: none; border-top: 2px dashed var(--navy-border); }
  .flow-step h4 { font-size: 15px; line-height: 1.25; color: #fff; }
  .flow-step p { max-width: none; font-size: 13px; line-height: 1.45; color: var(--on-dark-2); }

  /* CTA metà pagina: su mobile c'è già la barra fissa in basso */
  .cta-mid { display: none; }

  /* Funzionalità: una card alla volta (le card stanno una sopra l'altra), barre in alto come le "storie" */
  .features { padding: 72px 0; }
  .features-inner { gap: 32px; }
  .feat-bars { display: flex; gap: 6px; margin-bottom: -14px; }
  .feat-bars button { flex: 1; padding: 10px 0; border: 0; background: none; cursor: pointer; }
  .feat-bars i { position: relative; display: block; height: 4px; overflow: hidden; border-radius: 2px; background: var(--line-2); }
  .feat-bars i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 0; background: var(--teal-2); }
  .feat-bars .is-done i::after { width: 100%; }
  .feat-bars .is-active i::after { animation: barFill 3.2s linear forwards; }
  .feat-bars.is-paused .is-active i::after, .feat-bars.is-held .is-active i::after { animation-play-state: paused; }
  .feat-bars.is-held + [data-key="feat"] .feat-card.is-active { scale: .98; }
  @keyframes barFill { to { width: 100%; } }
  [data-key="feat"] { grid-template-columns: minmax(0, 1fr); gap: 0; cursor: pointer; touch-action: pan-y; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }
  .feat-card { grid-area: 1 / 1; border-radius: 18px; background: #fff; opacity: 0; visibility: hidden; translate: 16px 0; transition: opacity .3s ease, translate .3s ease, scale .2s ease, visibility 0s linear .3s; }
  .feat-card.is-active { opacity: 1; visibility: visible; translate: 0 0; transition: opacity .3s ease, translate .3s ease, scale .2s ease; }
  .feat-hint { margin-top: -12px; font-size: 12px; color: var(--muted); text-align: center; }
  .feat-illu { height: 172px; padding: 0 22px; font-size: 13px; }
  .feat-body { padding: 20px 22px 24px; }
  .feat-text h3 { font-size: 19px; }
  .feat-text p { font-size: 15px; line-height: 1.5; }
  .fi-chips { flex-wrap: wrap; }
  /* La mini-illustrazione si ricompone ogni volta che la card diventa attiva */
  .feat-card .fs { transition: opacity .35s ease, translate .35s ease; }
  .feat-card:not(.is-active) .fs { opacity: 0; translate: 0 8px; transition: none; }
  .feat-card.is-active .fs { transition-delay: calc(var(--i, 0) * .12s + .25s); }
  .feat-card .type { transition: max-width .7s steps(5) .55s; }
  .feat-card:not(.is-active) .type { max-width: 0; transition: none; }
  @media (prefers-reduced-motion: reduce) { .feat-bars .is-active i::after { animation: none; width: 100%; } }

  /* Multi-azienda */
  .multi { padding: 0 0 72px; }
  .multi-inner { gap: 32px; padding-top: 72px; }
  .multi-text { gap: 14px; }
  .h2--lg { font-size: 34px; line-height: 1.12; }
  .multi .lead { font-size: 16px; }
  [data-key="org"] { --og: 3px; padding: 20px; }
  .org-cards { gap: 12px; }
  .org-card-body { padding: 14px; }
  .org-name { font-size: 15px; }
  .org-card-foot { padding: 10px 14px; }

  /* Cosa cambia: numero nell'etichetta, barratura con text-decoration */
  .change { padding: 72px 0; }
  .change-inner { gap: 32px; }
  .chg-side { gap: 12px; }
  .chg-side .h2 { font-size: 32px; line-height: 1.12; }
  .chg-sub { display: none; }
  .chg-row { grid-template-columns: auto minmax(0, 1fr); gap: 10px 5px; padding: 22px 0; }
  .chg-body { display: contents; }
  .chg-num { padding-top: 0; font-family: var(--font-body); font-size: 11px; letter-spacing: .14em; }
  .chg-label { font-size: 11px; }
  .chg-label::before { content: "· "; }
  .chg-was, .chg-after { grid-column: 1 / -1; }
  .chg-was { font-size: 16px; line-height: 1.35; }
  .chg-strike { display: none; }
  .chg-before { text-decoration: line-through; text-decoration-color: rgba(242, 139, 130, .9); text-decoration-thickness: 2px; }
  [data-key="change"].armed .chg-before{text-decoration-color:transparent;transition:color .45s ease,text-decoration-color .45s ease}
  [data-key="change"].armed.s1 [data-step="1"] .chg-before,[data-key="change"].armed.s2 [data-step="2"] .chg-before,[data-key="change"].armed.s3 [data-step="3"] .chg-before,[data-key="change"].armed.s4 [data-step="4"] .chg-before{text-decoration-color:rgba(242,139,130,0.9)}
  .chg-after { align-items: flex-start; gap: 10px; font-size: 18px; }
  .chg-arrow { padding-top: 1px; }

  /* Video */
  /* Video: sezione grigio chiaro tra le due blu, video a card con ombra */
  .video { padding: 72px 0; background: var(--soft); }
  .video-inner { align-items: stretch; gap: 32px; text-align: left; }
  .video .sec-head { align-items: flex-start; max-width: none; }
  /* Al posto del file video: la scena ricostruita in HTML. Classi gestite dallo script (vedi commento nell'HTML):
     v-* = schermata, who-u/who-op = chi è collegato, st1-3 = passo, f-* e t-* = cosa è già successo */
  .video-box { display: none; }
  .vd { position: relative; display: flex; flex-direction: column; gap: 18px; padding: 26px 18px 20px; overflow: hidden; border-radius: 18px; background: radial-gradient(110% 55% at 75% 35%, rgba(60, 120, 190, .28), transparent 65%), var(--navy); box-shadow: 0 24px 48px -24px rgba(14, 30, 52, .45); }
  .vd-steps { display: grid; min-height: 92px; }
  .vd-step { grid-area: 1 / 1; display: flex; flex-direction: column; gap: 6px; opacity: 0; translate: 0 8px; transition: opacity .4s ease, translate .4s ease; }
  .vd-num { font-size: 12px; font-weight: 700; letter-spacing: .14em; color: var(--cyan); }
  .vd-title { font-family: var(--font-head); font-size: 22px; line-height: 1.15; font-weight: 800; color: #fff; }
  .vd-desc { font-size: 14px; line-height: 1.45; color: var(--on-dark-2); }
  .vd.st1 .vd-step--1, .vd.st2 .vd-step--2, .vd.st3 .vd-step--3 { opacity: 1; translate: 0 0; }

  /* Finestra dell'app (barra del browser + intestazione), come uno screenshot della piattaforma */
  .vd-win { position: relative; overflow: hidden; border-radius: 12px; background: #EEF2F6; box-shadow: 0 24px 50px -22px rgba(0, 0, 0, .7); }
  .vd-bar { display: flex; align-items: center; gap: 10px; height: 30px; padding: 0 10px; background: #fff; border-bottom: 1px solid var(--line); }
  .vd-dots { display: flex; gap: 4px; }
  .vd-dots i { width: 7px; height: 7px; border-radius: 50%; background: #F28B82; }
  .vd-dots i:nth-child(2) { background: #F5C451; }
  .vd-dots i:nth-child(3) { background: #7DD3A8; }
  .vd-url { flex: 1; min-width: 0; height: 18px; padding: 0 8px; border-radius: 5px; background: #F0F3F7; color: var(--muted); font-size: 10px; display: flex; align-items: center; white-space: nowrap; overflow: hidden; }
  .vd-u1, .vd-u2, .vd-u3 { display: none; }
  .vd.v-form .vd-u1, .vd.v-list .vd-u2, .vd.v-detail .vd-u3 { display: inline; }
  .vd-app { display: flex; flex-direction: column; gap: 10px; padding: 10px; }
  .vd-head { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink); }
  .vd-head img { display: block; }

  /* Chi è collegato: Chiara (utente) o Sara (operatrice, con la campanella dei ticket in arrivo) */
  .vd-bell { position: relative; margin-left: auto; display: none; color: var(--muted); }
  .vd-bell .i { width: 16px; height: 16px; }
  .vd-bell b { position: absolute; top: -5px; right: -6px; min-width: 14px; height: 14px; padding: 0 3px; border-radius: 7px; background: var(--red); color: #fff; font-size: 9px; display: inline-flex; align-items: center; justify-content: center; scale: 0; transition: scale .3s cubic-bezier(.2, .9, .25, 1.6); }
  .vd.who-op .vd-bell { display: inline-flex; }
  .vd.who-op.f-new:not(.f-opened) .vd-bell b { scale: 1; }
  .vd-me { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--text); }
  .vd.who-op .vd-me { margin-left: 10px; }
  .vd-av { width: 22px; height: 22px; border-radius: 50%; font-size: 9px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
  .vd-av--u { background: #C9D7F2; color: var(--ink); }
  .vd-av--o { background: var(--tint-2); color: var(--teal); }
  .vd-av--o, .vd-nm--o, .vd.who-op .vd-av--u, .vd.who-op .vd-nm--u { display: none; }
  .vd.who-op .vd-av--o, .vd.who-op .vd-nm--o { display: inline-flex; }

  /* Le tre schermate stanno una sopra l'altra: si vede quella della classe v-* */
  .vd-screen { display: grid; }
  .vd-view { grid-area: 1 / 1; display: flex; flex-direction: column; gap: 10px; min-width: 0; opacity: 0; visibility: hidden; translate: 0 10px; transition: opacity .35s ease, translate .35s ease, visibility 0s linear .35s; }
  .vd.v-form .vd-form, .vd.v-list .vd-list, .vd.v-detail .vd-detail { opacity: 1; visibility: visible; translate: 0 0; transition: opacity .35s ease .1s, translate .35s ease .1s; }
  .vd-h { font-family: var(--font-head); font-size: 15px; font-weight: 800; color: var(--ink); }

  /* 1 Nuova richiesta: i campi si riempiono ai clic della freccetta */
  .vd-form { padding: 14px; border-radius: 10px; background: #fff; border: 1px solid var(--line); }
  .vd-f { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
  .vd-f2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .vd-lb { font-size: 10px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
  .vd-in { position: relative; display: grid; align-items: center; height: 30px; padding: 0 9px; border-radius: 7px; border: 1px solid var(--line-2); background: #fff; font-size: 12px; color: var(--ink); white-space: nowrap; overflow: hidden; transition: border-color .2s ease, box-shadow .2s ease; }
  .vd-in > span { grid-area: 1 / 1; }
  .vd.f-title:not(.f-sede) .vd-in--title, .vd.f-desc:not(.f-sent) .vd-in--desc { border-color: var(--teal-2); box-shadow: 0 0 0 3px rgba(11, 127, 116, .12); }
  .vd-type { clip-path: inset(0 100% 0 0); }
  .vd.f-title .vd-type--t { clip-path: inset(0 0 0 0); transition: clip-path 1.2s steps(29); }
  .vd.f-desc .vd-type--d { clip-path: inset(0 0 0 0); transition: clip-path 1.3s steps(38); }
  .vd-sel::after { content: ""; position: absolute; right: 9px; top: 11px; width: 5px; height: 5px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); rotate: 45deg; }
  .vd-ph { color: #A3AFBF; transition: opacity .15s ease; }
  .vd-val { opacity: 0; transition: opacity .2s ease; }
  .vd.f-sede .vd-sel--sede .vd-ph, .vd.f-rep .vd-sel--rep .vd-ph { opacity: 0; }
  .vd.f-sede .vd-sel--sede .vd-val, .vd.f-rep .vd-sel--rep .vd-val { opacity: 1; }
  .vd-send { display: grid; align-self: flex-end; margin-top: 2px; }
  .vd-send > span { grid-area: 1 / 1; height: 30px; padding: 0 12px; border-radius: 7px; background: var(--navy); color: #fff; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; transition: opacity .2s ease, scale .12s ease; }
  .vd-send > .vd-send-b { background: var(--teal-2); opacity: 0; }
  .vd.f-sent .vd-send > .vd-send-a { opacity: 0; }
  .vd.f-sent .vd-send > .vd-send-b { opacity: 1; }
  .vd-send > .is-press { scale: .93; }

  /* 2 Ticket in arrivo: il #1041 entra in cima evidenziato */
  .vd-list { padding: 14px; border-radius: 10px; background: #fff; border: 1px solid var(--line); }
  .vd-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 8px; align-items: center; padding: 9px 10px; border-radius: 8px; border: 1px solid var(--line); font-size: 12px; transition: background .2s ease, scale .12s ease; }
  .vd-row-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
  .vd-row-t b { margin-right: 2px; }
  .vd-row-m { grid-column: 1; font-size: 11px; color: var(--muted); }
  .vd-tag { grid-column: 2; grid-row: 1 / span 2; height: 20px; padding: 0 8px; border-radius: 999px; font-size: 10px; font-weight: 700; display: inline-flex; align-items: center; white-space: nowrap; }
  .vd-tag--new { background: #3B82F6; color: #fff; }
  .vd-tag--work { background: var(--work-bg); color: var(--work); }
  .vd-tag--done { background: var(--done-bg); color: var(--done); }
  .vd-row--new { max-height: 0; margin-bottom: -10px; padding-top: 0; padding-bottom: 0; border-width: 0; opacity: 0; overflow: hidden; background: #EAF1FE; transition: max-height .45s ease, margin .45s ease, padding .45s ease, opacity .35s ease .15s; }
  .vd.f-new .vd-row--new { max-height: 60px; margin-bottom: 0; padding-top: 9px; padding-bottom: 9px; border-width: 1px; border-color: #C9D7F2; opacity: 1; }
  .vd-row.is-press { scale: .97; background: #DCE8FD; }

  /* Avvisi in alto nella finestra */
  .vd-toast { position: absolute; left: 10px; right: 10px; top: 40px; z-index: 3; padding: 10px 12px; border-radius: 9px; background: var(--navy); color: #fff; font-size: 12px; font-weight: 600; box-shadow: 0 12px 24px -10px rgba(14, 30, 52, .6); opacity: 0; translate: 0 -10px; transition: opacity .3s ease, translate .35s cubic-bezier(.2, .9, .25, 1.2); pointer-events: none; }
  .vd-toast--ok { background: var(--teal-2); }
  .vd.v-form.f-sent .vd-toast--sent, .vd.who-u.f-notify .vd-toast--ok { opacity: 1; translate: 0 0; }

  /* 3 Dettaglio del ticket */
  .vd-card { padding: 14px; border-radius: 10px; background: #fff; border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(14, 30, 52, .05); }
  .vd-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
  .vd-id { font-size: 12px; color: var(--muted); }
  .vd-chips, .vd-btns { display: grid; justify-items: end; }
  .vd-chips > span { grid-area: 1 / 1; height: 22px; padding: 0 9px; border-radius: 999px; color: #fff; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; white-space: nowrap; opacity: 0; scale: .8; transition: opacity .3s ease, scale .35s cubic-bezier(.2, .9, .25, 1.4); }
  .vd-c1 { background: #3B82F6; }
  .vd-c2 { background: #F59E0B; }
  .vd-c3 { background: var(--teal-2); }
  .vd:not(.t-taken) .vd-c1, .vd.t-taken:not(.t-solved) .vd-c2, .vd.t-solved .vd-c3 { opacity: 1; scale: 1; }
  .vd-name { margin: 8px 0 12px; font-family: var(--font-head); font-size: 16px; font-weight: 800; color: var(--ink); white-space: nowrap; }
  .vd-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
  .vd-meta div { display: flex; flex-direction: column; gap: 2px; }
  .vd-meta dt { font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
  .vd-meta dd { display: grid; font-size: 14px; font-weight: 600; color: var(--ink); }
  .vd-meta dd > span { grid-area: 1 / 1; transition: opacity .3s ease calc(var(--i) * .18s + .2s); }
  .vd-e { color: #C3CCD8; }
  .vd-v { opacity: 0; }
  .vd.t-taken .vd-v { opacity: 1; }
  .vd.t-taken .vd-e { opacity: 0; }
  .vd-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-top: 12px; font-size: 11px; color: var(--muted); }
  .vd-foot b { color: var(--ink); }
  .vd-btns > span { grid-area: 1 / 1; height: 28px; padding: 0 10px; border-radius: 7px; background: var(--navy); color: #fff; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; white-space: nowrap; opacity: 0; transition: opacity .3s ease, scale .12s ease, background .12s ease; }
  .vd-btns > .vd-b3 { background: var(--teal-2); }
  .vd-btns > .is-press { scale: .93; background: var(--navy-2); }
  .vd.who-op:not(.t-taken) .vd-b1, .vd.who-op.t-taken:not(.t-solved) .vd-b2, .vd.t-solved .vd-b3 { opacity: 1; }

  /* Attività (cronologia), dentro l'app */
  .vd-act { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border-radius: 10px; background: #fff; border: 1px solid var(--line); }
  .vd-act-h { font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
  .vd-tl { display: flex; flex-direction: column; gap: 7px; min-height: 66px; }
  .vd-tl li { display: flex; align-items: baseline; gap: 8px; font-size: 12px; line-height: 1.4; color: var(--text); opacity: 0; translate: 0 6px; transition: opacity .35s ease, translate .35s ease; }
  .vd-tl li::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--c); translate: 0 -1px; }
  .vd-t { color: var(--muted); font-variant-numeric: tabular-nums; }
  .vd-tl b { color: var(--ink); font-weight: 600; }
  .vd-tl .vd-r1, .vd.t-taken .vd-r2, .vd.t-solved .vd-r3 { opacity: 1; translate: 0 0; }
  .vd.t-taken .vd-r2, .vd.t-solved .vd-r3 { transition-delay: .5s; }

  /* Freccetta del mouse e onda del clic: posizione decisa dallo script (translate in px), visibili solo durante il ciclo */
  .vd-cursor { position: absolute; top: 0; left: 0; z-index: 2; width: 22px; height: 22px; fill: #fff; stroke: var(--ink); stroke-width: 1.4; stroke-linejoin: round; filter: drop-shadow(0 2px 3px rgba(14, 30, 52, .35)); opacity: 0; transform-origin: 5px 3px; transition: translate .75s cubic-bezier(.45, .05, .25, 1), scale .12s ease, opacity .3s ease; pointer-events: none; }
  .vd.is-play .vd-cursor { opacity: 1; }
  .vd-cursor.is-click { scale: .82; }
  .vd-ripple { position: absolute; top: 0; left: 0; z-index: 1; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; border: 2px solid var(--cyan); opacity: 0; pointer-events: none; }
  .vd-ripple.is-on { animation: vdRipple .5s ease-out; }
  @keyframes vdRipple { from { opacity: .9; scale: .3; } to { opacity: 0; scale: 1.4; } }

  /* Barre di avanzamento: durata di ogni fase (deve corrispondere ai tempi nello script) */
  .vd-prog { display: flex; gap: 6px; }
  .vd-prog i { position: relative; flex: 1; height: 3px; overflow: hidden; border-radius: 2px; background: rgba(255, 255, 255, .15); }
  .vd-prog i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 0; background: var(--cyan); }
  .vd.st1 .vd-prog i:nth-child(1)::after, .vd.st2 .vd-prog i:nth-child(-n+2)::after, .vd.st3 .vd-prog i::after { width: 100%; }
  .vd.st1 .vd-prog i:nth-child(1)::after { transition: width 8s linear; }
  .vd.st2 .vd-prog i:nth-child(2)::after { transition: width 6.4s linear; }
  .vd.st3 .vd-prog i:nth-child(3)::after { transition: width 3.8s linear; }

  .vd.is-out .vd-steps, .vd.is-out .vd-win { opacity: 0; transition: opacity .4s ease; }
  .vd.is-reset, .vd.is-reset *, .vd.is-reset *::after { transition: none !important; }

  /* Sicurezza: griglia 2×2 di riquadri con icona, nota come etichetta */
  .security { padding: 72px 0; }
  .security-inner { gap: 32px; }
  .security-text { align-items: flex-start; gap: 14px; }
  .security-note { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: rgba(63, 224, 197, .1); color: var(--cyan); font-size: 13px; font-weight: 600; line-height: 1.3; }
  .security-note::before { content: "✓"; font-weight: 700; }
  .security-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .sec-card { gap: 8px; padding: 16px; border-radius: 14px; background: var(--navy-2); }
  .sec-card .i { width: 40px; height: 40px; margin-bottom: 4px; padding: 9px; border-radius: 10px; background: rgba(63, 224, 197, .12); }
  .sec-card h3 { font-size: 15px; line-height: 1.3; }
  .sec-card p { font-size: 13px; color: var(--on-dark-2); }

  /* FAQ */
  .faq { padding: 72px 0; }
  .faq-inner { gap: 24px; }
  .faq-text { gap: 12px; }
  .faq-note { display: none; }
  .faq-list details { padding: 16px 0; }
  .faq-list summary { gap: 12px; min-height: 28px; font-size: 16px; }
  .plus { font-size: 24px; }
  .faq-list p { margin-top: 10px; font-size: 15px; line-height: 1.55; }

  /* CTA finale */
  /* CTA finale: centrato, un solo pulsante, email come riga semplice sotto una linea */
  .final { padding: 0 0 72px; }
  .final-box { flex-direction: column; align-items: stretch; gap: 24px; padding: 40px 22px 24px; border-radius: 20px; text-align: center; background: radial-gradient(120% 55% at 50% 0%, rgba(63, 224, 197, .16), transparent 65%), var(--navy); }
  .final-text { flex: none; align-items: center; gap: 14px; }
  .final-text .h2 { font-size: 30px; }
  .final-lead { font-size: 16px; }
  .final-actions { align-self: stretch; margin-top: 10px; }
  .final-actions a { width: 100%; }
  .final-contacts { flex: none; padding-top: 20px; border-top: 1px solid var(--navy-line); }
  .contact-tile, .contact-tile:hover { justify-content: center; gap: 12px; padding: 0; border-radius: 0; background: none; }
  .contact-lines { text-align: left; }
  .contact-tile .i { width: 20px; height: 20px; }
  .contact-main { font-size: 15px; }
  .contact-sub { font-size: 12px; }

  /* Footer */
  /* Footer: marchio e frase, poi due colonne (Prodotto | Contatti), riga finale con © */
  .site-footer { padding: 56px 0 32px; }
  .footer-inner { gap: 40px; }
  .footer-top { flex-direction: column; gap: 36px; }
  .footer-brand { max-width: 300px; gap: 14px; }
  .footer-tag { font-size: 15px; line-height: 1.6; color: var(--on-dark-2); }
  .footer-cols { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 32px; padding-top: 32px; border-top: 1px solid var(--navy-rule); }
  .footer-col { gap: 14px; }
  .footer-h { margin-bottom: 2px; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-3); }
  .footer-col a { font-size: 15px; color: #E6ECF2; }
  .footer-bottom { justify-content: space-between; align-items: center; padding-top: 20px; font-size: 13px; color: var(--on-dark-3); }
}
