/* ==========================================================================
   FIC Warehouse Bridge – sito vetrina
   Palette e tipografia ripresi dalla brochure (Sora + DM Sans).
   ========================================================================== */

:root {
  --navy-950: #081423;
  --navy-900: #0a1829;
  --navy: #0d2038;
  --blue: #123a5c;
  --teal: #12806f;
  --teal-d: #0e6b5d;
  --aqua: #5eead4;
  --mint: #99f6e4;
  --bg: #eef6f7;
  --paper: #ffffff;
  --ink: #0d2038;
  --muted: #3b4f63;
  --line: #d3e2e8;
  --danger: #b4231f;
  --ok: #0e6b5d;

  --f-head: 'Sora', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --r-sm: 12px;
  --r: 20px;
  --r-lg: 28px;
  --shadow: 0 10px 30px rgba(13, 32, 56, .10);
  --shadow-lg: 0 30px 70px rgba(13, 32, 56, .22);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: var(--teal-d); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
h1, h2, h3 { font-family: var(--f-head); line-height: 1.12; letter-spacing: -.025em; margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
abbr { text-decoration: none; color: var(--danger); }

.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 32px); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.i { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.todo { background: #fff3b0; color: #5a4300; padding: 0 .35em; border-radius: 4px; font-weight: 700; }

:focus-visible { outline: 3px solid var(--aqua); outline-offset: 3px; border-radius: 6px; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 200; background: var(--aqua); color: var(--navy); padding: .6rem 1rem; border-radius: 10px; font-weight: 700; transition: top .2s; }
.skip:focus { top: 12px; }

/* barra di avanzamento scroll */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 120; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--aqua), var(--mint)); }

/* ============================ BOTTONI ============================ */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 44px; padding: .8rem 1.5rem;
  border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 700; font-size: 1rem; line-height: 1.1; text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .2s, border-color .2s, color .2s;
}
.btn::after { /* riflesso che attraversa il bottone */
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.45) 50%, transparent 65%);
  transform: translateX(-120%); transition: transform .7s var(--ease);
}
.btn:hover::after { transform: translateX(120%); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn .i { transition: transform .25s var(--ease); }
.btn:hover .i { transform: translateX(3px); }
.btn-lg { min-height: 54px; padding: 1rem 1.75rem; font-size: 1.0625rem; }
.btn-sm { min-height: 40px; padding: .55rem 1.1rem; font-size: .9375rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--aqua); color: var(--navy); box-shadow: 0 10px 28px rgba(94, 234, 212, .35); }
.btn-primary:hover { color: var(--navy); background: var(--mint); box-shadow: 0 14px 36px rgba(94, 234, 212, .5); }
.btn-ghost { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.35); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.18); color: #fff; border-color: #fff; }
.btn-teal { background: var(--teal-d); color: #fff; box-shadow: 0 10px 26px rgba(14, 107, 93, .35); }
.btn-teal:hover { background: var(--navy); color: #fff; box-shadow: 0 14px 34px rgba(13, 32, 56, .35); }
.btn[disabled] { opacity: .6; cursor: not-allowed; transform: none; }
.spinner { display: none; width: 1.1em; height: 1.1em; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.4); border-top-color: #fff; animation: spin .7s linear infinite; }
.is-loading .spinner { display: inline-block; }
.is-loading .i { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================ HEADER ============================ */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  background: rgba(10, 24, 41, .55); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: background-color .3s, box-shadow .3s, height .3s;
}
.site-header.scrolled { background: rgba(10, 24, 41, .92); box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; color: #fff; }
.brand:hover { color: #fff; }
.brand-logo { width: 42px; height: 42px; border-radius: 12px; background: #fff; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0,0,0,.28); transition: transform .4s var(--ease); }
.brand:hover .brand-logo { transform: rotate(-6deg) scale(1.06); }
.brand-name { font-family: var(--f-body); font-weight: 700; font-size: 1.125rem; letter-spacing: -.01em; }
.nav { display: flex; align-items: center; gap: 1.5rem; }
.nav ul { display: flex; gap: .25rem; }
.nav ul a { display: block; padding: .5rem .8rem; border-radius: 999px; color: #d7e6ee; text-decoration: none; font-weight: 500; font-size: .96rem; transition: color .2s, background-color .2s; }
.nav ul a:hover { color: #fff; background: rgba(255,255,255,.1); }
.nav ul a.active { color: var(--navy); background: var(--aqua); }
.nav-cta { display: flex; gap: .5rem; }
.nav-toggle { display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08); color: #fff; cursor: pointer; place-items: center; }
.nav-toggle .i { width: 24px; height: 24px; }
.nav-toggle .i-shut { display: none; }
.nav-toggle[aria-expanded="true"] .i-shut { display: block; }
.nav-toggle[aria-expanded="true"] .i-open { display: none; }

/* ============================== HERO ============================== */
.hero {
  position: relative; isolation: isolate; overflow: hidden; color: #fff;
  min-height: 100svh; display: flex; align-items: center;
  padding: calc(var(--header-h) + 48px) 0 96px;
  background: linear-gradient(155deg, #0d2038 0%, #123a5c 48%, #12806f 100%);
}
.hero-net { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero-grid-bg {
  position: absolute; inset: 0; z-index: -3; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 56px 56px; -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 70%); mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 70%);
}
.orb { position: absolute; z-index: -1; border-radius: 50%; filter: blur(70px); pointer-events: none; }
.orb-a { width: 520px; height: 520px; right: -140px; top: -120px; background: rgba(94, 234, 212, .32); animation: orb 16s ease-in-out infinite alternate; }
.orb-b { width: 420px; height: 420px; left: -160px; bottom: -120px; background: rgba(18, 128, 111, .55); animation: orb 20s ease-in-out infinite alternate-reverse; }
@keyframes orb { to { transform: translate(-60px, 50px) scale(1.18); } }

.hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: .6rem; padding: .55rem 1rem; border-radius: 999px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25);
  color: var(--mint); font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  margin-bottom: 1.5rem; backdrop-filter: blur(6px);
}
.pill-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--aqua); box-shadow: 0 0 0 0 rgba(94,234,212,.7); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(94,234,212,0); } 100% { box-shadow: 0 0 0 0 rgba(94,234,212,0); } }

.hero-title { font-weight: 800; font-size: clamp(2.6rem, 6.4vw, 5rem); line-height: 1.02; letter-spacing: -.035em; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.hero-title .line > span { display: inline-block; }
.js .hero-title .line > span { transform: translateY(110%); animation: rise .9s var(--ease) forwards; }
.js .hero-title .line:nth-child(1) > span { animation-delay: .1s; }
.js .hero-title .line:nth-child(2) > span { animation-delay: .24s; }
.js .hero-title .line:nth-child(3) > span { animation-delay: .38s; }
@keyframes rise { to { transform: none; } }
.grad { background: linear-gradient(100deg, #5eead4, #99f6e4 40%, #5eead4 80%); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: sheen 6s linear infinite; }
@keyframes sheen { to { background-position: -200% 0; } }
.grad-dark { background: linear-gradient(100deg, var(--teal), #2cc3ac 50%, var(--teal)); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: sheen 7s linear infinite; }

.lead { margin-top: 1.5rem; max-width: 34rem; font-size: clamp(1.05rem, 1.6vw, 1.25rem); line-height: 1.55; color: #d7e6ee; }
.js .lead, .js .hero-cta, .js .chips, .js .pill { opacity: 0; transform: translateY(18px); animation: fade-up .8s var(--ease) forwards; }
.js .pill { animation-delay: 0s; } .js .lead { animation-delay: .55s; } .js .hero-cta { animation-delay: .7s; } .js .chips { animation-delay: .85s; }
@keyframes fade-up { to { opacity: 1; transform: none; } }
.hero-cta { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2rem; }
.chips { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 2rem; }
.chip { padding: .55rem 1rem; border-radius: 999px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3); font-weight: 700; font-size: .9rem; }
.chip-solid { background: var(--aqua); color: var(--navy); border-color: var(--aqua); }

.hero-visual { position: relative; perspective: 1500px; }
.browser {
  position: relative; border-radius: 18px; overflow: hidden; background: #fff;
  box-shadow: 0 40px 90px rgba(0,0,0,.55), 0 0 0 6px rgba(255,255,255,.14);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, -7deg)) rotateZ(-1.2deg);
  transition: transform .25s ease-out; transform-style: preserve-3d; will-change: transform;
}
.js .hero-visual { opacity: 0; transform: translateX(40px) scale(.96); animation: slide-in 1.1s .45s var(--ease) forwards; }
@keyframes slide-in { to { opacity: 1; transform: none; } }
.browser-bar { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; background: #f1f5f8; border-bottom: 1px solid #e1e9ee; }
.browser-bar span { width: 10px; height: 10px; border-radius: 50%; background: #cfd9e0; }
.browser-bar span:nth-child(1) { background: #ff7b72; } .browser-bar span:nth-child(2) { background: #f7c948; } .browser-bar span:nth-child(3) { background: #5ed08a; }
.browser-bar em { margin-left: 10px; font-style: normal; font-size: .75rem; color: #5b6f82; font-weight: 500; }
.browser-shot { width: 100%; height: auto; }
.browser-glare { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 0%), rgba(255,255,255,.35), transparent 55%); opacity: 0; transition: opacity .3s; }
.hero-visual:hover .browser-glare { opacity: 1; }

.float-chip {
  position: absolute; display: flex; align-items: center; gap: .6rem; padding: .65rem 1rem; border-radius: 14px;
  background: rgba(255,255,255,.96); color: var(--navy); font-weight: 700; font-size: .875rem;
  box-shadow: 0 16px 40px rgba(0,0,0,.35); animation: bob 5s ease-in-out infinite;
}
.float-chip .i { color: var(--teal); }
.fc-1 { left: -22px; top: 16%; } .fc-2 { right: -14px; top: 46%; animation-delay: -1.7s; } .fc-3 { left: 6%; bottom: -22px; animation-delay: -3.2s; }
@keyframes bob { 50% { transform: translateY(-12px); } }

.scroll-cue { position: absolute; left: 50%; bottom: 26px; width: 26px; height: 42px; margin-left: -13px; border: 2px solid rgba(255,255,255,.5); border-radius: 14px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--aqua); animation: wheel 1.8s infinite; }
@keyframes wheel { 0% { opacity: 1; transform: translateY(0); } 80%, 100% { opacity: 0; transform: translateY(14px); } }

/* ============================ MARQUEE ============================ */
.marquee { background: var(--navy-950); border-block: 1px solid rgba(94,234,212,.2); overflow: hidden; padding: 1.05rem 0; }
.marquee-track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track li { display: flex; align-items: center; white-space: nowrap; padding-right: 2.5rem; color: #c3d5df; font-weight: 700; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; }
.marquee-track li::after { content: ''; width: 8px; height: 8px; margin-left: 2.5rem; border-radius: 2px; background: var(--aqua); transform: rotate(45deg); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============================ SEZIONI ============================ */
.section { position: relative; padding: clamp(72px, 10vw, 128px) 0; }
.section-tint { background: var(--bg); }
.section-dark { background: linear-gradient(160deg, var(--navy-900), var(--navy) 55%, #0f3a52); color: #fff; overflow: hidden; isolation: isolate; }
.section-head { max-width: 46rem; margin: 0 auto clamp(40px, 6vw, 64px); text-align: center; }
.eyebrow { display: inline-block; margin-bottom: 1rem; font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--teal-d); }
.eyebrow-light { color: var(--aqua); }
.section-head h2, .demo-copy h2, .faq-wrap h2 { font-weight: 800; font-size: clamp(2rem, 4.4vw, 3.25rem); }
.lead-dark { margin-top: 1.25rem; font-size: 1.125rem; color: var(--muted); }
.lead-light { margin-top: 1.25rem; font-size: 1.125rem; color: #c3d5df; }
.glow { position: absolute; z-index: -1; border-radius: 50%; filter: blur(90px); pointer-events: none; }
.glow-1 { width: 520px; height: 520px; right: -160px; top: 8%; background: rgba(94,234,212,.16); }
.glow-2 { width: 560px; height: 560px; left: -200px; bottom: 0; background: rgba(18,128,111,.4); }

/* rivelazione allo scroll */
.js [data-reveal] { opacity: 0; transform: translateY(32px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* ============================== FLOW ============================== */
.flow { display: grid; grid-template-columns: 1fr minmax(60px, .55fr) 1fr minmax(60px, .55fr) 1fr; align-items: center; gap: 0; margin-bottom: clamp(40px, 6vw, 72px); }
.flow-node {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: .35rem;
  padding: 1.5rem 1rem; border-radius: var(--r); background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.flow-node strong { font-family: var(--f-head); font-size: 1.05rem; letter-spacing: -.01em; }
.flow-node span:last-child { font-size: .9rem; color: var(--muted); }
.flow-ico { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--teal); color: #fff; margin-bottom: .35rem; }
.flow-ico .i { width: 28px; height: 28px; }
.flow-ico-logo { background: #fff; border: 1px solid var(--line); }
.flow-core { background: linear-gradient(160deg, var(--navy), var(--blue)); border-color: transparent; color: #fff; box-shadow: 0 24px 60px rgba(13,32,56,.35); }
.flow-core span:last-child { color: var(--mint); }
.flow-core::before { content: ''; position: absolute; inset: -8px; border-radius: calc(var(--r) + 8px); border: 2px solid rgba(94,234,212,.6); animation: pulse-ring 2.6s ease-out infinite; }
@keyframes pulse-ring { 0% { transform: scale(.96); opacity: .9; } 100% { transform: scale(1.1); opacity: 0; } }
.flow-link { position: relative; height: 2px; margin-inline: 8px; background: repeating-linear-gradient(90deg, var(--teal) 0 8px, transparent 8px 16px); background-size: 16px 2px; animation: dash 1s linear infinite; }
@keyframes dash { to { background-position: 16px 0; } }
.packet {
  position: absolute; top: 50%; left: 0; transform: translateY(-50%); font-style: normal; font-size: .68rem; font-weight: 700; letter-spacing: .04em;
  padding: .2rem .55rem; border-radius: 999px; background: var(--aqua); color: var(--navy); box-shadow: 0 4px 14px rgba(18,128,111,.4); opacity: 0;
  animation: travel 4.5s linear infinite;
}
.packet.p2 { animation-delay: 1.5s; } .packet.p3 { animation-delay: 3s; }
@keyframes travel { 0% { left: 0; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { left: calc(100% - 3.5rem); opacity: 0; } }

/* ============================== CARDS ============================== */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.card {
  position: relative; overflow: hidden; padding: 1.75rem; border-radius: var(--r); background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.card::before { content: ''; position: absolute; inset: 0; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(94,234,212,.3), transparent 45%); opacity: 0; transition: opacity .35s; pointer-events: none; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(18,128,111,.45); }
.card:hover::before { opacity: 1; }
.card-ico { position: relative; width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; background: linear-gradient(145deg, var(--teal), #17a08b); color: #fff; margin-bottom: 1.1rem; transition: transform .45s var(--ease); }
.card:hover .card-ico { transform: rotate(-8deg) scale(1.1); }
.card-ico .i { width: 26px; height: 26px; }
.card h3 { position: relative; font-size: 1.15rem; margin-bottom: .55rem; }
.card p { position: relative; color: var(--muted); font-size: .98rem; }

/* ============================== TOUR ============================== */
.tour { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: clamp(20px, 3vw, 36px); align-items: start; }
.tour-list { display: flex; flex-direction: column; gap: .35rem; }
.tour-tab {
  position: relative; text-align: left; padding: .8rem 1rem .8rem 1.25rem; border-radius: 14px; border: 1px solid transparent; background: transparent; color: #c3d5df;
  font-weight: 700; cursor: pointer; transition: background-color .25s, color .25s, border-color .25s, transform .25s var(--ease);
}
.tour-tab::before { content: ''; position: absolute; left: 0; top: 18%; bottom: 18%; width: 3px; border-radius: 3px; background: var(--aqua); transform: scaleY(0); transition: transform .3s var(--ease); }
.tour-tab:hover { background: rgba(255,255,255,.07); color: #fff; }
.tour-tab[aria-selected="true"] { background: rgba(94,234,212,.14); border-color: rgba(94,234,212,.4); color: #fff; transform: translateX(6px); }
.tour-tab[aria-selected="true"]::before { transform: scaleY(1); }
.tour-stage { min-width: 0; }
.tour-shot { position: relative; overflow: hidden; border-radius: var(--r); aspect-ratio: 1829 / 1024; background: #fff; box-shadow: 0 30px 80px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.12); }
.tour-shot img { width: 100%; height: 100%; object-fit: cover; }
.tour-hl {
  position: absolute; border-radius: 14px; border: 2px solid var(--aqua); pointer-events: none;
  box-shadow: 0 0 0 9999px rgba(8, 20, 35, .66), 0 0 36px rgba(94,234,212,.7), inset 0 0 22px rgba(94,234,212,.25);
  transition: left .6s var(--ease), top .6s var(--ease), width .6s var(--ease), height .6s var(--ease);
}
.tour-hl::after { content: ''; position: absolute; inset: -2px; border-radius: inherit; border: 2px solid var(--aqua); animation: pulse-ring 2s ease-out infinite; }
.tour-panel { margin-top: 1.25rem; padding: 1.25rem 1.5rem; border-radius: var(--r-sm); background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(8px); }
.tour-panel h3 { font-size: 1.25rem; color: var(--aqua); margin-bottom: .35rem; }
.tour-panel p { color: #dbe8ef; }
.tour-panel.swap { animation: swap .45s var(--ease); }
@keyframes swap { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ============================== STATS ============================== */
.stats { background: linear-gradient(120deg, var(--navy) 0%, var(--teal-d) 100%); color: #fff; padding: clamp(40px, 6vw, 64px) 0; position: relative; overflow: hidden; }
.stats::before { content: ''; position: absolute; width: 420px; height: 420px; right: -120px; top: -200px; border-radius: 50%; background: rgba(94,234,212,.14); }
.stats-grid { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; text-align: center; }
.stat { display: flex; flex-direction: column; align-items: center; gap: .35rem; }
.stat-num { font-family: var(--f-head); font-weight: 800; font-size: clamp(3rem, 7vw, 5rem); line-height: 1; color: var(--aqua); letter-spacing: -.04em; }
.stat-lbl { max-width: 15rem; color: #d7e6ee; font-weight: 500; }

/* ============================== STEPS ============================== */
.steps { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; counter-reset: s; }
.steps::before { content: ''; position: absolute; left: 16%; right: 16%; top: 54px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--teal), var(--aqua)); transform-origin: 0 50%; transform: scaleX(var(--line, 0)); transition: transform 1.4s var(--ease); z-index: 0; }
.step { position: relative; z-index: 1; padding: 1.75rem; border-radius: var(--r); background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); text-align: center; }
.step-num { position: absolute; top: -14px; left: 50%; margin-left: -16px; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--aqua); color: var(--navy); font-family: var(--f-head); font-weight: 800; box-shadow: 0 6px 16px rgba(18,128,111,.35); }
.step-ico { width: 64px; height: 64px; margin: .5rem auto 1rem; border-radius: 20px; display: grid; place-items: center; background: linear-gradient(145deg, var(--navy), var(--blue)); color: var(--aqua); }
.step-ico .i { width: 30px; height: 30px; }
.step h3 { font-size: 1.35rem; }
.step-sub { margin: .25rem 0 .75rem; color: var(--teal-d); font-weight: 700; font-size: .95rem; }
.step p:last-child { color: var(--muted); font-size: .98rem; }

/* ============================ DEMO + FORM ============================ */
.demo-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.demo-copy h2 { margin-bottom: 0; }
.ticks { margin: 1.75rem 0; display: grid; gap: .8rem; }
.ticks li { display: flex; gap: .75rem; align-items: flex-start; font-weight: 500; }
.ticks .i { margin-top: .15rem; padding: 3px; width: 1.5em; height: 1.5em; border-radius: 50%; background: var(--teal-d); color: #fff; stroke-width: 3; }
.ticks-light { color: #e4eef3; }
.ticks-light .i { background: var(--aqua); color: var(--navy); }
.people { display: grid; gap: .75rem; margin-top: 2rem; }
.person { display: flex; align-items: center; gap: .9rem; }
.person div { display: flex; flex-direction: column; line-height: 1.3; }
.person span:not(.avatar) { color: var(--muted); font-size: .92rem; }
.avatar { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(145deg, var(--navy), var(--teal)); color: #fff; font-family: var(--f-head); font-weight: 700; font-size: .9rem; }

.form-card { position: relative; padding: clamp(22px, 3vw, 36px); border-radius: var(--r-lg); background: var(--paper); color: var(--ink); box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.form-card h3 { font-size: 1.5rem; margin-bottom: 1.25rem; }
.form-intro { margin: -.5rem 0 1.25rem; color: var(--muted); font-size: .98rem; }
fieldset { margin: 0 0 1.25rem; padding: 0; border: 0; min-width: 0; }
legend { display: flex; align-items: center; gap: .55rem; padding: 0; margin-bottom: .85rem; font-family: var(--f-head); font-weight: 700; font-size: 1.02rem; color: var(--teal-d); }
.field { margin-bottom: 1rem; min-width: 0; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.row-3 { grid-template-columns: 120px 1fr 90px; }
label { display: block; margin-bottom: .4rem; font-weight: 700; font-size: .92rem; }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], select, textarea {
  width: 100%; min-height: 48px; padding: .7rem .95rem; border-radius: 12px; border: 1.5px solid #c3d5dc; background: #fbfdfe; color: var(--ink);
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
textarea { resize: vertical; min-height: 96px; }
input:hover, select:hover, textarea:hover { border-color: #8fb0bb; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(18,128,111,.18); background: #fff; }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(180,35,31,.1); }
::placeholder { color: #6b7f90; opacity: 1; }
.err { min-height: 0; margin-top: .3rem; color: var(--danger); font-size: .85rem; font-weight: 500; }
.err:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.check { display: flex; gap: .75rem; align-items: flex-start; margin: .5rem 0 .35rem; font-weight: 400; font-size: .94rem; cursor: pointer; }
.check input { flex: 0 0 auto; width: 22px; height: 22px; margin-top: .1rem; accent-color: var(--teal-d); }
.turnstile-slot { margin: .5rem 0 1rem; min-height: 0; }
.form-status { margin-top: 1rem; font-weight: 700; font-size: .96rem; }
.form-status:empty { display: none; }
.form-status.ok { color: var(--ok); }
.form-status.bad { color: var(--danger); }
.form-foot { margin-top: .9rem; color: var(--muted); font-size: .85rem; }
.form-card .btn { margin-top: 1rem; }
.banner { margin-bottom: 1.25rem; padding: .85rem 1rem; border-radius: 12px; font-weight: 500; font-size: .95rem; }
.banner-warn { background: #fff7e0; border: 1px solid #f2d57a; color: #5a4300; }
.form-done { text-align: center; padding: 2rem 0; }
.form-done .done-ico { width: 72px; height: 72px; margin: 0 auto 1rem; border-radius: 50%; display: grid; place-items: center; background: var(--teal-d); color: #fff; animation: pop .6s var(--ease); }
.form-done .done-ico .i { width: 36px; height: 36px; stroke-width: 3; }
.form-done h3 { margin-bottom: .5rem; }
@keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }

/* ============================== ACQUISTO ============================== */
.buy-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.price-card {
  position: sticky; top: calc(var(--header-h) + 24px); padding: clamp(24px, 3vw, 36px); border-radius: var(--r-lg);
  background: linear-gradient(160deg, rgba(255,255,255,.12), rgba(255,255,255,.04)); border: 1px solid rgba(94,234,212,.35); backdrop-filter: blur(14px);
  box-shadow: 0 30px 80px rgba(0,0,0,.35);
}
.price-card::before { content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: conic-gradient(from var(--ang, 0deg), transparent 0 70%, var(--aqua) 85%, transparent 100%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: orbit 6s linear infinite; pointer-events: none; }
@property --ang { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
@keyframes orbit { to { --ang: 360deg; } }
.price-badge { display: inline-block; padding: .4rem .9rem; border-radius: 999px; background: var(--aqua); color: var(--navy); font-weight: 700; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; }
.price { margin: 1.25rem 0 1.5rem; display: flex; flex-direction: column; gap: .35rem; }
.price-amount { font-family: var(--f-head); font-weight: 800; font-size: clamp(2.4rem, 5vw, 3.4rem); line-height: 1; letter-spacing: -.04em; color: #fff; }
.price-amount small { font-size: 1rem; font-weight: 500; color: #c3d5df; letter-spacing: 0; margin-left: .35rem; }
.price-note { color: #c3d5df; font-size: .92rem; }
.secure { display: flex; gap: .7rem; align-items: flex-start; margin-top: 1.5rem; padding: 1rem; border-radius: 14px; background: rgba(8,20,35,.45); color: #d7e6ee; font-size: .92rem; }
.secure .i { color: var(--aqua); margin-top: .15rem; }
.price-help { margin-top: 1.25rem; font-size: .92rem; color: #c3d5df; }
.price-help a { color: var(--aqua); }
.form-card-buy { padding-bottom: clamp(24px, 3vw, 36px); }

/* ================================ FAQ ================================ */
.faq-wrap { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.25rem .25rem; font-family: var(--f-head); font-weight: 700; font-size: 1.08rem; cursor: pointer; list-style: none; transition: color .2s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--teal-d); }
.faq summary .i { width: 30px; height: 30px; padding: 6px; border-radius: 50%; background: var(--bg); color: var(--teal-d); transition: transform .35s var(--ease), background-color .2s, color .2s; }
.faq details[open] summary .i { transform: rotate(135deg); background: var(--teal-d); color: #fff; }
.faq-a { padding: 0 .25rem 1.4rem; color: var(--muted); max-width: 46rem; }
.faq details[open] .faq-a { animation: swap .45s var(--ease); }

/* ================================= CTA ================================= */
.cta { position: relative; isolation: isolate; overflow: hidden; color: #fff; padding: clamp(72px, 10vw, 120px) 0; background: linear-gradient(120deg, var(--navy) 0%, var(--teal) 100%); }
.cta-orb { position: absolute; z-index: -1; width: 520px; height: 520px; right: -160px; top: -200px; border-radius: 50%; background: rgba(94,234,212,.16); animation: orb 14s ease-in-out infinite alternate; }
.cta-inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.cta h2 { font-weight: 800; font-size: clamp(2.1rem, 4.6vw, 3.4rem); letter-spacing: -.03em; }
.cta-copy > p { margin-top: 1rem; font-size: 1.15rem; color: #d7e6ee; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2rem; }
.contacts { display: grid; gap: .75rem; padding: 1.5rem; border-radius: var(--r); background: rgba(8,20,35,.35); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(10px); }
.contacts li { display: flex; align-items: flex-start; gap: .9rem; }
.contacts .i { margin-top: .2rem; color: var(--aqua); width: 1.35em; height: 1.35em; }
.contacts span { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.contacts strong, .contacts a { font-weight: 700; color: #fff; overflow-wrap: anywhere; }
.contacts a:hover { color: var(--aqua); }
.contacts em { font-style: normal; font-size: .85rem; color: #b9ccd7; }

/* ============================== FOOTER ============================== */
.site-footer { background: var(--navy-950); color: #b9ccd7; padding: 3rem 0 2rem; font-size: .92rem; }
.footer-grid { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; padding-bottom: 1.75rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand p { margin-top: .75rem; color: var(--aqua); font-weight: 700; }
.footer-links { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.footer-links a { color: #d7e6ee; text-decoration: none; }
.footer-links a:hover { color: var(--aqua); text-decoration: underline; }
.footer-legal { padding-top: 1.5rem; display: grid; gap: .6rem; font-size: .85rem; }

/* ============================ PAGINE INTERNE ============================ */
.doc-head { background: linear-gradient(155deg, #0d2038, #123a5c 55%, #12806f); color: #fff; padding: calc(var(--header-h) + 56px) 0 56px; }
.doc-head h1 { font-weight: 800; font-size: clamp(2rem, 4.5vw, 3.2rem); }
.doc-head p { margin-top: .75rem; color: #d7e6ee; }
.doc { max-width: 820px; margin: 0 auto; padding: 56px clamp(16px, 4vw, 32px) 96px; }
.doc h2 { font-size: 1.5rem; margin: 2.5rem 0 .75rem; }
.doc h3 { font-size: 1.15rem; margin: 1.5rem 0 .5rem; }
.doc p, .doc li { color: #26394d; margin-bottom: .75rem; }
.doc ul { list-style: disc; padding-left: 1.25rem; margin-bottom: 1rem; }
.doc table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: .95rem; }
.doc th, .doc td { text-align: left; padding: .65rem .75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { background: var(--bg); }
.doc .note { padding: 1rem 1.25rem; border-radius: 12px; background: #fff7e0; border: 1px solid #f2d57a; color: #5a4300; margin-bottom: 1.5rem; }

.thanks { min-height: 100svh; display: grid; place-items: center; padding: calc(var(--header-h) + 32px) 16px 64px; background: linear-gradient(155deg, #0d2038 0%, #123a5c 48%, #12806f 100%); color: #fff; position: relative; overflow: hidden; }
.thanks canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.thanks-card { position: relative; max-width: 680px; padding: clamp(28px, 4vw, 48px); border-radius: var(--r-lg); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2); backdrop-filter: blur(16px); text-align: center; }
.thanks-card .done-ico { width: 84px; height: 84px; margin: 0 auto 1.25rem; border-radius: 50%; display: grid; place-items: center; background: var(--aqua); color: var(--navy); animation: pop .7s var(--ease); }
.thanks-card .done-ico .i { width: 42px; height: 42px; stroke-width: 3; }
.thanks-card h1 { font-weight: 800; font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: .75rem; }
.thanks-card > p { color: #d7e6ee; }
.thanks-card a:not(.btn) { color: var(--aqua); }
.thanks-cta { margin-top: 1.5rem; }
.next { margin: 2rem 0; display: grid; gap: .9rem; text-align: left; counter-reset: n; }
.next li { display: flex; gap: .9rem; align-items: flex-start; padding: .9rem 1rem; border-radius: 14px; background: rgba(8,20,35,.4); }
.next li::before { counter-increment: n; content: counter(n); flex: 0 0 auto; width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: var(--aqua); color: var(--navy); font-weight: 800; font-family: var(--f-head); }

/* ============================== RESPONSIVE ============================== */
@media (max-width: 1040px) {
  .nav ul a { padding: .5rem .6rem; font-size: .9rem; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tour { grid-template-columns: 230px minmax(0, 1fr); }
}
@media (max-width: 920px) {
  :root { --header-h: 64px; }
  .nav-toggle { display: grid; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 1rem; padding: 1rem clamp(16px, 4vw, 32px) 1.5rem;
    background: rgba(8, 20, 35, .98); border-bottom: 1px solid rgba(255,255,255,.1); max-height: calc(100svh - var(--header-h)); overflow: auto;
    transform: translateY(-12px); opacity: 0; visibility: hidden; transition: transform .3s var(--ease), opacity .3s, visibility .3s;
  }
  .nav.open { transform: none; opacity: 1; visibility: visible; }
  .nav ul { flex-direction: column; gap: .15rem; }
  .nav ul a { padding: .85rem 1rem; font-size: 1.05rem; }
  .nav-cta { flex-direction: column; }
  .nav-cta .btn { width: 100%; }
  .hero { min-height: auto; padding-bottom: 88px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 620px; margin-inline: auto; width: 100%; }
  .float-chip { display: none; }
  .scroll-cue { display: none; }
  .flow { grid-template-columns: 1fr; gap: 0; max-width: 360px; margin-inline: auto; }
  .flow-link { width: 2px; height: 64px; margin: 6px auto; background: repeating-linear-gradient(180deg, var(--teal) 0 8px, transparent 8px 16px); background-size: 2px 16px; animation: dash-v 1s linear infinite; }
  @keyframes dash-v { to { background-position: 0 16px; } }
  .packet { left: 50%; top: 0; transform: translate(-50%, 0); animation-name: travel-v; }
  @keyframes travel-v { 0% { top: 0; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { top: calc(100% - 1.4rem); opacity: 0; } }
  .tour { grid-template-columns: 1fr; }
  .tour-list { flex-direction: row; overflow-x: auto; padding-bottom: .5rem; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
  .tour-tab { flex: 0 0 auto; white-space: nowrap; border-color: rgba(255,255,255,.15); scroll-snap-align: start; }
  .tour-tab[aria-selected="true"] { transform: none; }
  .tour-tab::before { display: none; }
  .demo-grid, .buy-grid, .cta-inner { grid-template-columns: 1fr; }
  .price-card { position: relative; top: 0; }
  .steps { grid-template-columns: 1fr; gap: 2rem; }
  .steps::before { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .cards { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; gap: 2rem; }
  .row, .row-3 { grid-template-columns: 1fr; }
  .row-3 .field-grow { order: 0; }
  .hero-cta .btn, .cta-actions .btn { width: 100%; }
  .brand-name { font-size: 1rem; }
}

/* ============================ MOVIMENTO RIDOTTO ============================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js [data-reveal], .js .lead, .js .hero-cta, .js .chips, .js .pill, .js .hero-visual, .js .hero-title .line > span { opacity: 1 !important; transform: none !important; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; row-gap: .5rem; }
  .packet { opacity: 1; left: 40%; }
}

/* ---- canone annuale, avviso acquisto sospeso ---- */
[hidden] { display: none !important; }
.price-annual { display: block; margin-top: .6rem; padding: .6rem .8rem; border-radius: 12px; background: rgba(94,234,212,.1); border: 1px solid rgba(94,234,212,.3); color: #d7e6ee; font-size: .95rem; }
.price-annual strong { color: var(--aqua); font-family: var(--f-head); font-size: 1.15rem; margin-right: .25rem; }
.pause-card { text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; }
.pause-card h3 { margin: 0; }
.pause-card p { margin: 0; color: var(--muted); max-width: 46ch; }
.pause-card .btn { margin-top: .5rem; }
.pause-foot { font-size: .92rem; }
.pause-ico { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: var(--navy); color: var(--aqua); }
.pause-ico .i { width: 30px; height: 30px; }

/* ---- rifiniture header e flusso ---- */
.brand-name, .nav ul a, .nav-cta .btn { white-space: nowrap; }
.nav { gap: 1rem; }
.nav ul { gap: .1rem; }
.nav ul a { padding: .5rem .7rem; font-size: .93rem; }
.nav-cta .btn { padding-inline: 1.1rem; }
@media (max-width: 1240px) and (min-width: 921px) {
  .nav-cta .btn:not(.btn-primary) { display: none; }
  .brand-name { font-size: 1rem; }
}
.packet.p2, .packet.p3 { display: none; }
@media (max-width: 920px) { .nav ul a { white-space: normal; } }
