/* Landing: stile del motore condiviso. Valori da tokens.css, accento dal prodotto. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  background: var(--surface-page);
  color: var(--content-strong);
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; letter-spacing: var(--tracking-display); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }

:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--radius-md); }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip {
  position: fixed; inset-inline-start: 16px; top: -60px; z-index: 100;
  background: var(--accent); color: var(--content-on-accent);
  padding: 10px 16px; border-radius: var(--radius-md); text-decoration: none;
}
.skip:focus { top: 16px; }

.wrap { width: min(var(--maxw), 100% - 2 * var(--gutter)); margin-inline: auto; }

/* ---------- Tipografia ---------- */
.kicker, .cap {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  color: var(--content-muted);
}
.kicker { margin-bottom: 18px; }
h2 { font-size: clamp(2.25rem, 5.2vw, 4.5rem); line-height: 1.04; }
h3 { font-size: clamp(1.4rem, 2.2vw, 1.75rem); line-height: 1.15; }
.lead { font-size: clamp(1.1rem, 1.5vw, 1.3rem); color: var(--content-muted); max-width: 34em; margin-top: 24px; }

/* ---------- Bottoni ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px;
  border: 0; border-radius: var(--radius-md);
  font-size: 15px; font-weight: 500; text-decoration: none; white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast);
}
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 14px; }
.btn-lg { min-height: 54px; padding: 0 26px; font-size: 17px; }
.btn-accent { background: var(--accent); color: var(--content-on-accent); }
.btn-accent:hover { background: var(--accent-hover); }
.btn-ghost, .btn-line { background: transparent; color: var(--content-strong); box-shadow: var(--stroke-hairline); }
.btn-ghost:hover, .btn-line:hover { background: var(--hover-tint); }
.btn:focus-visible { box-shadow: var(--focus-ring); }

.pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px; border-radius: var(--radius-pill);
  font-size: 11px; font-weight: 500; line-height: 1.4; white-space: nowrap;
  background: var(--surface-sunken); color: var(--content-strong);
}
.pill-accent { background: var(--accent-wash); color: var(--content-strong); }
[data-theme="light"] .pill-accent { background: var(--accent-wash-strong); }
.pill-ok { background: var(--accent-wash); color: var(--content-strong); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  color: #fff;
  transition: background-color var(--dur-med), color var(--dur-med), box-shadow var(--dur-med);
}
.nav-in {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: 64px; padding-inline: var(--gutter);
}
.nav[data-tone="dark"].solid { background: #181818; box-shadow: inset 0 -1px 0 #292929; }
.nav[data-tone="light"] { background: #ffffff; color: #202020; box-shadow: inset 0 -1px 0 #e9e9eb; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 500; font-size: 17px; }
.brand img { border-radius: 7px; }
.brand span { white-space: nowrap; }
@media (max-width: 720px) { .brand { font-size: 15px; gap: 8px; letter-spacing: -0.01em; } .brand img { width: 24px; height: 24px; } }
.nav-links { display: flex; gap: 32px; }
.nav-links a { text-decoration: none; font-size: 15px; opacity: .9; padding: 6px 2px; }
.nav-links a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.nav-tools { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.cta-short { display: none; }

/* ---------- Selettore lingua ---------- */
.lang { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 7px;
  min-height: 38px; padding: 0 11px; border: 0; border-radius: var(--radius-md);
  background: transparent; color: inherit; cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; line-height: 1;
  transition: background-color var(--dur-fast), box-shadow var(--dur-fast);
}
.lang-btn:hover { background: rgba(255,255,255,.08); }
.nav[data-tone="light"] .lang-btn { box-shadow: inset 0 0 0 1px #d4d4d8; }
.nav[data-tone="light"] .lang-btn:hover { background: #f2f2f3; }
.lang-btn:focus-visible { box-shadow: var(--focus-ring); }
.lang-globe { opacity: .75; }
.lang-chev { opacity: .7; transition: transform var(--dur-fast); }
.lang.open .lang-chev { transform: rotate(180deg); }
.lang-menu {
  display: none;
  position: absolute; top: calc(100% + 8px); inset-inline-end: 0; z-index: 60;
  width: 248px; max-height: min(560px, calc(100vh - 88px)); max-height: min(560px, calc(100svh - 88px)); overflow-y: auto;
  padding: 6px; border-radius: var(--radius-lg);
  background: #1c1c1c; color: #fff;
  box-shadow: inset 0 0 0 1px #353535, var(--shadow-float);
}
.lang.open .lang-menu, html:not(.js) .lang:focus-within .lang-menu { display: block; }
.lang-menu a {
  display: grid; grid-template-columns: 38px minmax(0, 1fr); align-items: center; gap: 6px;
  padding: 9px 10px; border-radius: var(--radius-md);
  text-decoration: none; font-size: 14px; line-height: 1.3; color: #d6d6d8;
}
.lang-menu a:hover { background: rgba(255,255,255,.07); color: #fff; }
.lang-menu a:focus-visible { box-shadow: inset 0 0 0 1px var(--accent); background: rgba(255,255,255,.07); color: #fff; }
.lang-menu .lang-code { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; color: #8a8a8d; }
.lang-menu a[aria-current] { color: #fff; background: rgba(255,255,255,.05); }
.lang-menu a[aria-current] .lang-code { color: var(--accent); }
.lang-menu .lang-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lang-menu a[dir="rtl"] { text-align: right; }

/* ---------- Hero ---------- */
.hero { position: relative; background: #181818; }
.motion .hero { height: 210vh; }
.hero-sticky {
  position: relative; top: 0; height: 100vh; height: 100svh; min-height: 620px;
  overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background-color: #181818;
  background-image:
    radial-gradient(1px 1px at 12% 22%, rgba(255,255,255,.35) 50%, transparent 51%),
    radial-gradient(1px 1px at 72% 14%, rgba(255,255,255,.3) 50%, transparent 51%),
    radial-gradient(1px 1px at 38% 78%, rgba(255,255,255,.25) 50%, transparent 51%),
    radial-gradient(1px 1px at 88% 66%, rgba(255,255,255,.3) 50%, transparent 51%),
    radial-gradient(1px 1px at 22% 58%, rgba(255,255,255,.2) 50%, transparent 51%),
    radial-gradient(1px 1px at 58% 42%, rgba(255,255,255,.2) 50%, transparent 51%);
}
.motion .hero-sticky { position: sticky; }

.stage {
  position: absolute; inset: 0;
  perspective: 1100px; perspective-origin: 50% 46%;
  transform-style: preserve-3d;
  --p: 0; --mx: 0px; --my: 0px;
}
.fc {
  position: absolute; left: 50%; top: 50%;
  width: var(--w, 240px);
  --d: 1; --o: 1; --sc: 1;
  transform:
    translate(-50%, -50%)
    translate3d(
      calc(var(--x) * (1 + var(--p) * 0.3) + var(--mx) * var(--d)),
      calc(var(--y) * (1 + var(--p) * 0.3) + var(--my) * var(--d) - var(--p) * 18vh * var(--d)),
      calc(var(--z) + var(--p) * 320px))
    rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) rotateZ(var(--rz, 0deg))
    scale(var(--sc));
  opacity: calc(var(--o) * (1 - var(--p) * 0.35));
  will-change: transform;
}
.fc-in { animation: float 9s ease-in-out infinite alternate; animation-delay: var(--delay, 0s); }
@keyframes float {
  from { transform: translateY(-7px) rotate(-0.6deg); }
  to   { transform: translateY(7px) rotate(0.6deg); }
}

.c1  { --w: 230px; --x: -33vw; --y: -21vh; --z: -60px;  --rz: -7deg; --ry: 16deg;  --d: 1.2; }
.c2  { --w: 252px; --x: 34vw;  --y: -22vh; --z: -30px;  --rz: 6deg;  --ry: -18deg; --d: 1.1; --delay: -2s; }
.c3  { --w: 300px; --x: -34vw; --y: 21vh;  --z: 40px;   --rz: 5deg;  --ry: 14deg;  --d: 1.4; --delay: -4s; }
.c4  { --w: 250px; --x: 31vw;  --y: 22vh;  --z: 60px;   --rz: -5deg; --ry: -16deg; --d: 1.4; --delay: -1s; }
.c5  { --w: 220px; --x: -19vw; --y: -38vh; --z: -320px; --rz: -4deg; --rx: 12deg;  --d: .6; --o: .7; --delay: -6s; }
.c6  { --w: 270px; --x: 17vw;  --y: 41vh;  --z: -240px; --rz: 3deg;  --rx: -10deg; --d: .7; --o: .75; --delay: -3s; }
.c7  { --w: 170px; --x: 46vw;  --y: 2vh;  --z: -260px; --rz: 4deg;  --ry: -26deg; --d: .7; --o: .7; --delay: -5s; }
.c8  { --w: 260px; --x: -46vw; --y: -2vh;  --z: -300px; --rz: -3deg; --ry: 28deg;  --d: .6; --o: .65; --delay: -7s; }
.c9  { --w: 200px; --x: 19vw;  --y: -40vh; --z: -460px; --rz: 5deg;  --d: .4; --o: .55; --delay: -2.5s; }
.c10 { --w: 300px; --x: -17vw; --y: 41vh;  --z: -420px; --rz: -4deg; --d: .4; --o: .55; --delay: -8s; }

.hero-copy {
  position: relative; z-index: 2;
  text-align: center; padding: 0 var(--gutter);
  max-width: 900px;
  transform: translateY(calc(var(--p, 0) * -60px));
  opacity: calc(1 - var(--p, 0) * 0.7);
}
.hero-copy::before {
  content: ""; position: absolute; inset: -18% -12%; z-index: -1;
  background: var(--scrim); pointer-events: none;
}
.hero-copy .kicker { color: var(--content-muted); }
h1 {
  font-size: clamp(2.4rem, 5.6vw, 5.4rem);
  line-height: 1.02; font-weight: 400; letter-spacing: -0.02em;
}
.h1-soft { color: var(--content-muted); }
.hero-sub { margin: 28px auto 0; max-width: 34em; color: var(--content-muted); font-size: clamp(1.02rem, 1.4vw, 1.2rem); }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }

.hero-bar {
  position: absolute; z-index: 3; left: var(--gutter); right: var(--gutter); bottom: 0;
  display: flex; align-items: center; gap: 40px;
  padding: 22px 0 26px;
  box-shadow: inset 0 1px 0 #292929;
  background: #181818;
}
.hero-bar p { flex: 0 0 auto; font-size: 15px; line-height: 1.35; color: var(--content-strong); }
.marquee {
  flex: 1; overflow: hidden; min-width: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: flex; width: max-content; }
.motion .marquee-track { animation: marquee 38s linear infinite; }
.marquee-track { direction: ltr; }
.marquee ul { display: flex; gap: 48px; padding-right: 48px; }
.marquee li { unicode-bidi: isolate; }
.marquee li {
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
  font-family: var(--font-mono); font-size: 13px; letter-spacing: var(--tracking-mono); text-transform: uppercase;
  color: var(--content-muted);
}
.glyph { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; background: var(--accent-wash); color: var(--accent); font-size: 13px; font-family: var(--font-display); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Mockup UI (carte) ---------- */
.ui {
  border-radius: var(--radius-lg);
  padding: 16px;
  font-size: 13px; line-height: 1.4;
  background: #ffffff; color: #202020;
  box-shadow: inset 0 0 0 1px #e9e9eb, var(--shadow-float);
  text-align: start;
}
.ui .cap { font-size: 10px; color: #6b6b70; }
.ui-title { font-size: 18px; font-weight: 500; letter-spacing: -0.01em; margin: 4px 0 2px; }
.ui-title.sm { font-size: 14px; margin: 0 0 2px; }
.ui-meta { font-size: 12px; color: #6b6b70; }
.ui-btn { margin-top: 12px; background: var(--accent); color: #181818; border-radius: 8px; text-align: center; padding: 8px; font-weight: 500; font-size: 12px; }
.mark { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: #14605a; color: #fff; font-weight: 600; font-size: 12px; flex: 0 0 auto; }

.ui-pass { background: #0a2e2c; color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), var(--shadow-float); }
.ui-pass .cap { color: rgba(255,255,255,.6); margin-inline-start: auto; }
.ui-pass-top { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.ui-pass .mark { background: var(--accent); color: #0a2e2c; }
.ui-pass-name { font-size: 20px; margin-top: 18px; letter-spacing: -0.01em; }
.ui-pass-sub { font-size: 12px; color: rgba(255,255,255,.65); }
.ui-pass .qr { width: 104px; margin-top: 14px; background: #fff; padding: 6px; border-radius: 8px; }
.ui-pass-lg { width: 280px; padding: 20px; }
.ui-pass-lg .qr { width: 130px; }

.ui-price { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 18px; flex-wrap: wrap; }
.ui-price s { color: #89898a; font-size: 14px; }
.ui-price .pill-accent { background: var(--accent-wash-solid); color: #202020; }

.ui-row { display: flex; align-items: center; gap: 12px; }
.ui-row .pill { margin-inline-start: auto; }
.ui-doc { width: 30px; height: 38px; border-radius: 5px; background: #f5f5f5; box-shadow: inset 0 0 0 1px #e2e2e4; flex: 0 0 auto;
  background-image: linear-gradient(#d4d4d8, #d4d4d8), linear-gradient(#d4d4d8, #d4d4d8), linear-gradient(#d4d4d8, #d4d4d8);
  background-size: 18px 2px, 14px 2px, 18px 2px; background-position: 6px 10px, 6px 16px, 6px 22px; background-repeat: no-repeat; }
.ui-ico { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--accent-wash-strong); color: #202020; font-weight: 600; flex: 0 0 auto; }
.ui .pill-ok { background: var(--accent-wash-solid); color: #202020; }
.ui .pill { background: #ececec; color: #202020; }
.ui .pill-accent { background: var(--accent-wash-solid); }

.ui-inv-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 6px 0 2px; }
.ui-inv-row strong { font-size: 17px; font-weight: 500; }
.ui-status { display: inline-flex; align-items: center; gap: 7px; margin-top: 12px; font-weight: 500; font-size: 12px; background: #f5f5f5; padding: 6px 10px; border-radius: 8px; }
.ui-status .dot { width: 8px; height: 8px; border-radius: 50%; background: #14605a; }

.ui-chart { background: #1c1c1c; color: #fff; box-shadow: inset 0 0 0 1px #292929, var(--shadow-float); }
.ui-chart .cap { color: #a8a8aa; }
.ui-chart .pill-accent { background: var(--accent-wash); color: var(--accent); }
.ui-big { font-size: 32px; letter-spacing: -0.02em; margin: 2px 0 10px; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 64px; }
.bars i { flex: 1; height: calc(var(--h) * 100%); background: #353535; border-radius: 3px; }
.bars i:nth-child(6) { background: var(--accent); }
.bars-l { display: flex; gap: 6px; margin-top: 6px; }
.bars-l span { flex: 1; text-align: center; font-family: var(--font-mono); font-size: 9px; color: #626262; }

.ui-mail p { font-size: 12px; color: #4a4a4f; margin-top: 4px; }
.ui-mail-h { display: flex; gap: 8px; align-items: center; padding-bottom: 10px; margin-bottom: 10px; box-shadow: inset 0 -1px 0 #ececec; }
.ui-mail-h .cap { margin-inline-start: auto; }

.ui-scan { background: #1c1c1c; color: #fff; box-shadow: inset 0 0 0 1px #292929, var(--shadow-float); text-align: center; }
.ui-scan .ui-meta { color: #a8a8aa; margin-top: 6px; }
.viewfinder { position: relative; padding: 14px; border-radius: 10px; background: #292929; }
.viewfinder .qr { width: 100%; background: #fff; padding: 6px; border-radius: 4px; }
.scanline { position: absolute; left: 10px; right: 10px; top: 50%; height: 2px; background: var(--accent); }
.motion .scanline { animation: scan 2.6s ease-in-out infinite alternate; }
@keyframes scan { from { top: 18%; } to { top: 82%; } }
.ui-scan .ui-status { background: var(--accent-wash); color: var(--accent); }
.ui-scan .ui-status .dot { background: var(--accent); }

.ui-trial .pill { margin-top: 10px; }

/* ---------- Sezioni ---------- */
.sec { padding-block: var(--section-pad); background: var(--surface-page); color: var(--content-strong); }
.sec-tight { padding-top: 0; }
.sec-head { margin-bottom: clamp(48px, 7vw, 88px); }
.sec-head.center { text-align: center; }

/* White label */
.wl { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.ticks { margin-top: 32px; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: center; }
.ticks li::before { content: "✓"; display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--accent-wash-strong); font-size: 12px; flex: 0 0 auto; }
.wl-phones { display: flex; justify-content: center; gap: 20px; padding: 40px 20px; background: var(--surface-raised); border-radius: var(--radius-lg); box-shadow: var(--stroke-hairline); }
.phone {
  width: 220px; border-radius: 28px; padding: 10px; background: #181818;
  box-shadow: var(--shadow-float);
  font-size: 12px;
}
.phone-b { margin-top: 48px; }
.phone-bar { display: flex; align-items: center; gap: 8px; background: var(--brand); color: var(--brand-ink); border-radius: 20px 20px 6px 6px; padding: 14px 12px; font-weight: 500; font-size: 13px; }
.phone-bar .mark { background: rgba(255,255,255,.2); }
.phone-body { background: #fff; color: #202020; padding: 12px; display: grid; gap: 8px; }
.phone-body .cap { font-size: 10px; color: #6b6b70; }
.p-card { display: grid; padding: 10px; border-radius: 10px; background: #f5f5f5; }
.p-card strong { font-weight: 500; font-size: 13px; }
.p-card span { color: #6b6b70; font-size: 11px; }
.p-cta { background: var(--brand); color: var(--brand-ink); text-align: center; padding: 9px; border-radius: 10px; font-weight: 500; }
.phone-url { background: #fff; color: #6b6b70; border-radius: 6px 6px 20px 20px; text-align: center; padding: 8px 8px 12px; font-family: var(--font-mono); font-size: 10px; box-shadow: inset 0 1px 0 #ececec; }

/* Riferimento tecnico: confronto abbonamento classico / gestionale + referente */
.ref-panel { display: grid; gap: 16px; padding: 40px clamp(16px, 3vw, 40px); background: var(--surface-raised); border-radius: var(--radius-lg); box-shadow: var(--stroke-hairline); }
.ref-card { background: #fff; color: #202020; border-radius: 18px; padding: 8px; box-shadow: 0 18px 44px rgba(0, 0, 0, .1), 0 1px 3px rgba(0, 0, 0, .06); }
.cmp { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; font-size: 14px; line-height: 1.35; }
.cmp th, .cmp td { padding: 13px 14px; text-align: start; vertical-align: middle; }
.cmp th { font-weight: 500; font-size: 12px; padding-block: 14px 12px; }
.cmp th.cmp-old { color: #89898a; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: var(--tracking-mono); font-size: 10.5px; }
.cmp th.cmp-new span { display: inline-block; background: var(--accent); color: var(--content-on-accent); border-radius: var(--radius-pill); padding: 5px 12px; }
.cmp td { box-shadow: inset 0 1px 0 #efeff1; }
.cmp td.cmp-old { color: #89898a; }
.cmp td.cmp-new { color: #202020; font-weight: 500; }
.cmp .cmp-new { background: color-mix(in srgb, var(--accent) 12%, #fff); }
.cmp thead .cmp-new { border-start-start-radius: 12px; border-start-end-radius: 12px; }
.cmp tbody tr:last-child .cmp-new { border-end-start-radius: 12px; border-end-end-radius: 12px; }
.cmp td.cmp-old, .cmp td.cmp-new { position: relative; padding-inline-start: 38px; }
.cmp td.cmp-old::before, .cmp td.cmp-new::before { position: absolute; inset-inline-start: 12px; top: 50%; transform: translateY(-50%); display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; font-size: 10px; }
.cmp td.cmp-old::before { content: "\2715"; background: #f0f0f1; color: #a1a1a4; }
.cmp td.cmp-new::before { content: "\2713"; background: var(--accent); color: var(--content-on-accent); }
.ref-chat { display: flex; align-items: center; gap: 12px; background: #fff; color: #202020; border-radius: 14px; padding: 12px 14px; box-shadow: 0 10px 28px rgba(0, 0, 0, .08), 0 1px 2px rgba(0, 0, 0, .05); max-width: 340px; justify-self: end; }
.ref-avatar { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #14605a; color: #fff; font-weight: 600; flex: 0 0 auto; }
.ref-who { display: grid; gap: 2px; min-width: 0; }
.ref-who strong { font-weight: 500; font-size: 14px; }
.ref-who span { display: flex; align-items: center; gap: 6px; color: #6b6b70; font-size: 12px; }
.ref-dot { width: 7px; height: 7px; border-radius: 50%; background: #22a861; box-shadow: 0 0 0 3px rgba(34, 168, 97, .18); flex: 0 0 auto; }

/* Atleti / Staff */
.sides { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.side { border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 48px); background: var(--surface-page); color: var(--content-strong); box-shadow: var(--stroke-hairline); display: flex; flex-direction: column; }
.side-dark { background: #181818; }
.side-light { background: var(--surface-raised); }
.side h3 { font-size: clamp(1.6rem, 2.6vw, 2.25rem); }
.feat { margin-top: 28px; display: grid; gap: 0; }
.feat li { padding: 14px 0; box-shadow: inset 0 -1px 0 var(--divider); color: var(--content-muted); }
.feat li:first-child { box-shadow: inset 0 1px 0 var(--divider), inset 0 -1px 0 var(--divider); }
.side-visual { margin-top: auto; padding-top: 40px; display: flex; justify-content: center; }
.side-visual .ui { box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.ui-dash { width: 100%; max-width: 420px; box-shadow: inset 0 0 0 1px #e9e9eb !important; }
.dash-top { display: flex; justify-content: space-between; margin-bottom: 12px; }
.dash-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.dash-kpis div { background: #f5f5f5; border-radius: 10px; padding: 10px; display: grid; gap: 2px; }
.dash-kpis strong { font-size: 18px; font-weight: 500; }
.dash-kpis small { font-size: 10px; font-weight: 400; color: #6b6b70; display: block; }
.dash-list { margin-top: 10px; display: grid; }
.dash-list div { display: grid; grid-template-columns: 1.3fr 1fr auto; gap: 8px; align-items: center; padding: 9px 2px; box-shadow: inset 0 -1px 0 #ececec; }
.dash-list span:nth-child(2) { color: #6b6b70; }

/* ---------- Come funziona: sticky stack ---------- */
.stack-sec { background: var(--surface-page); color: var(--content-strong); padding-block: var(--section-pad); }
/* clip (non hidden): le carte trasformate non devono sbordare sulle sezioni sotto, e lo sticky continua a funzionare */
.stack-sec { position: relative; overflow: clip; }
.stack-sticky { width: min(var(--maxw), 100% - 2 * var(--gutter)); margin-inline: auto; }
.stack { display: grid; gap: 16px; max-width: 680px; margin-inline: auto; }
.scard {
  background: #ffffff; border-radius: var(--radius-lg);
  box-shadow: inset 0 0 0 1px #202020;
  padding: clamp(24px, 3.4vw, 40px);
  min-height: 260px;
  display: flex; flex-direction: column;
}
.scard-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: auto; padding-bottom: 32px; }
.scard-n { font-size: 15px; font-weight: 500; }
.scard h3 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); line-height: 1.08; }
.scard p { margin-top: 14px; color: var(--content-muted); max-width: 34em; }
.steps { display: none; }

.motion .stack-sec { height: calc(var(--n) * 70vh + 100vh); padding: 0; }
.motion .stack-sticky {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding-top: 64px;
}
.motion .stack-sticky .sec-head { margin-bottom: clamp(56px, 9vh, 96px); }
.motion .stack { position: relative; display: block; width: 100%; height: clamp(260px, 38vh, 340px); }
.motion .scard { position: absolute; inset: 0; transform-origin: 50% 0; will-change: transform, opacity; }
.motion .steps { display: grid; }

.steps {
  position: relative; grid-template-columns: repeat(6, 1fr);
  max-width: 860px; width: 100%; margin: clamp(32px, 6vh, 72px) auto 0;
}
.steps-line { position: absolute; left: calc(100% / 12); right: calc(100% / 12); top: 13px; height: 1px; background: #d4d4d8; }
.steps-fill { position: absolute; inset-inline-start: 0; top: 0; bottom: 0; width: calc(var(--fill, 0) * 100%); background: #202020; }
.step-dot { position: relative; display: grid; justify-items: center; gap: 10px; background: none; border: 0; padding: 6px 0; cursor: pointer; border-radius: var(--radius-md); }
.step-dot i { width: 13px; height: 13px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1px #202020; transition: background-color var(--dur-fast); }
.step-dot span { font-family: var(--font-mono); font-size: 11px; letter-spacing: var(--tracking-mono); text-transform: uppercase; color: var(--content-muted); }
.step-dot.done i { background: #202020; }
.step-dot.on i { background: var(--accent); box-shadow: inset 0 0 0 1px #202020, 0 0 0 4px var(--accent-wash-strong); }
.step-dot.on span { color: var(--content-strong); }
.step-dot:hover span { color: var(--content-strong); }

/* ---------- Tutto il resto ---------- */
#tutto h2 { margin-bottom: clamp(40px, 6vw, 72px); }
.rows { box-shadow: inset 0 1px 0 var(--divider); }
.row {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 40px; gap: 24px; align-items: baseline;
  padding: 28px 0;
  box-shadow: inset 0 -1px 0 var(--divider);
  transition: background-color var(--dur-fast);
  border-radius: 2px;
}
.row:hover { background: var(--hover-tint); }
.row h3 { font-size: clamp(1.6rem, 3vw, 2.5rem); line-height: 1.1; }
.row p { color: var(--content-muted); }
.arrow { justify-self: end; color: var(--content-faint); font-size: 20px; transition: color var(--dur-fast), transform var(--dur-fast) var(--ease-out); }
.row:hover .arrow { color: var(--accent); transform: translateX(4px); }

/* ---------- Infrastruttura ---------- */
.infra { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(40px, 6vw, 96px); padding-top: var(--section-pad); }
.infra-grid { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.infra-grid div { padding: 22px 0; box-shadow: inset 0 1px 0 var(--divider); }
.infra-grid dt { font-weight: 500; font-size: 18px; }
.infra-grid dd { margin: 6px 0 0; color: var(--content-muted); }

/* ---------- Prezzi ---------- */
#prezzi { padding-top: 0; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column;
  padding: 32px; border-radius: var(--radius-lg);
  background: var(--surface-raised); color: var(--content-strong); box-shadow: var(--stroke-hairline);
}
.plan-hl { background: #181818; }
.plan-tag { position: absolute; top: 28px; inset-inline-end: 28px; }
.plan h3 { font-size: 26px; }
.plan-for { color: var(--content-muted); margin-top: 6px; min-height: 3.1em; }
.price { margin-top: 28px; display: flex; align-items: baseline; gap: 6px; }
.price strong { font-size: clamp(2.8rem, 4.4vw, 3.75rem); font-weight: 400; letter-spacing: -0.02em; line-height: 1; }
.price span { color: var(--content-muted); }
.price-note { font-family: var(--font-mono); font-size: 11px; letter-spacing: var(--tracking-mono); text-transform: uppercase; color: var(--content-muted); margin-top: 10px; }
.plan-list { margin: 28px 0 32px; display: grid; gap: 10px; }
.plan-list li { display: flex; gap: 10px; }
.plan-list li::before { content: ""; width: 6px; height: 6px; margin-top: .62em; border-radius: 50%; background: var(--content-strong); flex: 0 0 auto; }
.plan-hl .plan-list li::before { background: var(--accent); }
.plan-list li.plus { font-weight: 500; }
.plan .btn { margin-top: auto; }
.sec-head.center .lead { margin-inline: auto; }
.price-note + .price { margin-top: 8px; }
.plan .price-note { margin-top: 28px; }
.plan-incl {
  margin-top: 20px; padding: 24px 32px; border-radius: var(--radius-lg);
  background: var(--surface-raised); box-shadow: var(--stroke-hairline);
  display: grid; gap: 16px;
}
.plan-incl ul { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px 24px; }
.plan-incl li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.4; }
.plan-incl li::before { content: "✓"; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--accent-wash-strong); font-size: 11px; flex: 0 0 auto; }
.costs { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: clamp(56px, 7vw, 96px); }
.cost { display: flex; flex-direction: column; padding: 32px; border-radius: var(--radius-lg); box-shadow: var(--stroke-hairline); }
.cost .kicker { margin-bottom: 12px; }
.cost h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.cost-sub { color: var(--content-muted); margin-top: 10px; max-width: 34em; }
.cost .price { margin-top: 18px; }
.cost .plan-list { margin: 24px 0 0; }
.cost-list { margin: 24px 0 0; box-shadow: inset 0 1px 0 var(--divider); }
.cost-list div { display: grid; grid-template-columns: 11em minmax(0, 1fr); gap: 4px 20px; padding: 14px 0; box-shadow: inset 0 -1px 0 var(--divider); }
.cost-list dt { font-weight: 500; }
.cost-list dd { margin: 0; color: var(--content-muted); }

/* ---------- Già in uso ---------- */
.case { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.case .btn { margin-top: 36px; }
.browser { border-radius: var(--radius-lg); background: var(--surface-raised); box-shadow: var(--stroke-hairline); overflow: hidden; }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 12px 14px; box-shadow: inset 0 -1px 0 var(--divider); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--surface-strong); }
.browser-url { margin-inline-start: 12px; flex: 1; background: var(--surface-sunken); border-radius: 6px; padding: 5px 12px; font-family: var(--font-mono); font-size: 12px; color: var(--content-muted); }
.browser-body { padding: 28px; display: grid; gap: 16px; }
.sk { border-radius: 6px; background: var(--surface-sunken); }
.sk-h { height: 28px; width: 70%; background: var(--surface-strong); }
.sk-p { height: 12px; width: 88%; }
.browser-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.browser-chips .pill { font-size: 12px; padding: 5px 11px; }
.browser-chips .pill-accent { color: var(--accent); }
.sk-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 8px; }
.sk-grid div { height: 84px; border-radius: var(--radius-md); background: var(--surface-sunken); }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(40px, 6vw, 96px); }
.faq-list { box-shadow: inset 0 1px 0 var(--divider); }
.faq details { box-shadow: inset 0 -1px 0 var(--divider); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 22px 8px; font-size: clamp(1.1rem, 1.6vw, 1.3rem);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; font-weight: 300; color: var(--content-muted); transition: transform var(--dur-fast); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { background: var(--hover-tint); }
.faq details p { padding: 0 8px 24px; color: var(--content-muted); max-width: 40em; }

/* ---------- Richiedi una demo ---------- */
.demo-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 5vw, 72px); align-items: start; }
/* nav fissa da 64px: il modulo atterra sotto la barra con un po' d'aria */
.demo-in, .demo-card { scroll-margin-top: 96px; }
.demo h2 { font-size: clamp(2.25rem, 4.2vw, 3.6rem); text-wrap: balance; }
.demo .lead { font-size: clamp(1.05rem, 1.3vw, 1.2rem); }
.what { margin-top: 36px; box-shadow: inset 0 1px 0 var(--divider); }
.what li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; padding: 18px 0; box-shadow: inset 0 -1px 0 var(--divider); }
.what b { font-weight: 500; display: block; }
.what span { color: var(--content-muted); font-size: 14px; }
.what em { font-style: normal; font-family: var(--font-mono); font-size: 12px; color: var(--accent); padding-top: 3px; }
.direct { margin-top: 28px; color: var(--content-muted); font-size: 15px; }
.mail { font-family: var(--font-mono); font-size: .9em; color: var(--content-strong); user-select: all; -webkit-user-select: all; overflow-wrap: anywhere; }

.demo-card { background: var(--surface-raised); border-radius: var(--radius-lg); box-shadow: var(--stroke-hairline); padding: 32px; }
.demo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; }
.demo .full { grid-column: 1 / -1; }
.group-title { grid-column: 1 / -1; font-family: var(--font-mono); font-size: 11px; letter-spacing: var(--tracking-mono); text-transform: uppercase; color: var(--content-muted); margin-top: 4px; padding-top: 18px; box-shadow: inset 0 1px 0 var(--divider); }
.group-title:first-child { box-shadow: none; padding-top: 0; margin-top: 0; }
.demo label.f { display: grid; gap: 7px; min-width: 0; align-content: start; }
.demo .lab { font-size: 13px; color: var(--content-muted); line-height: 1.35; }
.demo .req { color: var(--accent); margin-inline-start: 2px; }
.demo input[type=text], .demo input[type=email], .demo input[type=tel], .demo select, .demo textarea {
  width: 100%; margin: 0; border: 0; border-radius: var(--radius-md);
  background: var(--surface-sunken); color: var(--content-strong);
  box-shadow: inset 0 0 0 1px var(--surface-strong);
  padding: 12px 13px; font: 400 16px/1.3 var(--font-display);
}
.demo input::placeholder, .demo textarea::placeholder { color: #77777a; }
.demo select {
  appearance: none; -webkit-appearance: none; padding-inline-end: 34px;
  background-image: linear-gradient(45deg, transparent 50%, var(--content-muted) 50%), linear-gradient(135deg, var(--content-muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 52%, calc(100% - 13px) 52%; background-size: 5px 5px; background-repeat: no-repeat;
}
.demo textarea { min-height: 96px; resize: vertical; }
.demo input:focus, .demo select:focus, .demo textarea:focus { outline: none; box-shadow: var(--focus-ring), inset 0 0 0 1px var(--accent); }
.demo .hint { font-size: 13px; color: var(--content-muted); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-flex; align-items: center; gap: 7px; padding: 9px 13px; border-radius: var(--radius-pill); box-shadow: inset 0 0 0 1px var(--stroke-strong); font-size: 14px; color: var(--content-muted); cursor: pointer; user-select: none; transition: background-color var(--dur-fast), color var(--dur-fast); }
.chip span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--content-faint); }
.chip span:hover { background: var(--hover-tint); }
.chip input:checked + span { background: var(--accent-wash); color: var(--content-strong); box-shadow: inset 0 0 0 1px var(--accent-wash-strong); }
.chip input:checked + span::before { background: var(--accent); box-shadow: none; }
.chip input:focus-visible + span { box-shadow: var(--focus-ring), inset 0 0 0 1px var(--accent); }

.consent { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 12px; font-size: 13px; color: var(--content-muted); align-items: start; }
.consent input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--accent); }
.consent a { color: var(--content-strong); text-underline-offset: 3px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 8px; }
.actions .hint { flex: 1; min-width: 200px; }
.demo .btn[disabled] { opacity: .6; cursor: progress; }
.demo .err { color: var(--danger); font-size: 12px; display: none; }
.demo .invalid .err { display: block; }
.demo .invalid input, .demo .invalid select { box-shadow: inset 0 0 0 1px var(--danger); }
.form-error { padding: 14px 16px; border-radius: var(--radius-md); background: var(--danger-wash); box-shadow: inset 0 0 0 1px rgba(255, 107, 107, .35); color: var(--content-strong); font-size: 14px; }
.form-error[hidden] { display: none; }
/* honeypot: fuori schermo, non display:none (alcuni bot lo saltano) */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.demo-card { position: relative; }

.done:focus { box-shadow: none; }
.done .tick { width: 44px; height: 44px; border-radius: 50%; background: var(--accent-wash); color: var(--accent); display: grid; place-items: center; font-size: 20px; }
.done h3 { font-size: 28px; letter-spacing: -0.01em; margin: 20px 0 10px; }
.done p { color: var(--content-muted); max-width: 34em; }
.summary { margin: 22px 0; padding: 16px; border-radius: var(--radius-md); background: var(--surface-sunken); font-size: 14px; display: grid; gap: 6px; }
.summary div { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 12px; }
.summary dt { color: var(--content-muted); font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; padding-top: 2px; }
.summary dd { margin: 0; overflow-wrap: anywhere; }

/* ---------- Footer ---------- */
.footer { background: #181818; color: var(--content-strong); box-shadow: inset 0 1px 0 #292929; padding-top: 64px; }
.footer-in { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 56px; }
.footer-brand p { color: var(--content-muted); margin-top: 16px; max-width: 26em; }
.footer-nav { display: grid; gap: 10px; align-content: start; }
.footer-nav a, .footer-contact a { text-decoration: none; color: var(--content-muted); width: fit-content; }
.footer-nav a:hover, .footer-contact a:hover { color: var(--content-strong); }
.footer-contact { display: grid; gap: 10px; align-content: start; }
.footer-bottom { display: flex; justify-content: space-between; padding: 22px 0 32px; box-shadow: inset 0 1px 0 #292929; color: var(--content-faint); font-size: 14px; }
.footer-bottom a { text-decoration: none; }

/* ---------- Reveal ---------- */
.motion .reveal { opacity: 0; transform: translateY(18px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); }
.motion .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .c7, .c8 { display: none; }
}
@media (max-width: 960px) {
  .nav-links { display: none; }
  .wl, .case, .infra, .faq { grid-template-columns: 1fr; }
  .sides { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .plan-for { min-height: 0; }
  .demo-in { grid-template-columns: minmax(0, 1fr); }
  .costs { grid-template-columns: 1fr; max-width: 640px; margin-inline: auto; }
  .plan-incl { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; padding: 24px 26px; }
  .plan-incl ul { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .motion .hero { height: 170vh; }
  .hero-sticky { min-height: 600px; }
  .c9, .c10, .c7, .c8 { display: none; }
  .c1  { --x: -27vw; --y: -31vh; --sc: .6; --z: -40px; }
  .c2  { --x: 27vw;  --y: -33vh; --sc: .58; --z: -60px; }
  .c5  { --x: 0vw;   --y: -41vh; --sc: .52; }
  .c3  { --x: -22vw; --y: 32vh;  --sc: .55; --z: 0px; }
  .c4  { --x: 26vw;  --y: 27vh;  --sc: .56; --z: 0px; }
  .c6  { --x: 0vw;   --y: 40vh;  --sc: .5; }
  .hero-copy::before { inset: -10% -6%; }
  .hero-bar { flex-direction: column; align-items: stretch; gap: 12px; padding: 14px 0 18px; }
  .hero-bar p { font-size: 13px; }
  .hero-bar p br { display: none; }
  .wl-phones { padding: 28px 12px; gap: 12px; }
  .phone { width: min(46%, 200px); border-radius: 22px; padding: 7px; }
  .phone-bar { border-radius: 16px 16px 5px 5px; padding: 10px 8px; font-size: 11px; }
  .phone-body { padding: 8px; }
  .phone-url { border-radius: 5px 5px 16px 16px; font-size: 9px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .phone-b { margin-top: 32px; }
  .ref-panel { padding: 24px 12px; }
  .ref-card { border-radius: 14px; padding: 4px; }
  .cmp { font-size: 12.5px; }
  .cmp th, .cmp td { padding: 11px 8px; }
  .cmp td.cmp-old, .cmp td.cmp-new { padding-inline-start: 30px; }
  .cmp td.cmp-old::before, .cmp td.cmp-new::before { inset-inline-start: 7px; width: 16px; height: 16px; font-size: 9px; }
  .cmp th.cmp-new span { padding: 4px 9px; }
  .ref-chat { justify-self: stretch; max-width: none; }
  .ui-pass-lg { width: 100%; max-width: 300px; }
  .dash-list div { grid-template-columns: 1fr auto; }
  .dash-list span:nth-child(2) { display: none; }
  .row { grid-template-columns: minmax(0, 1fr) 28px; gap: 8px 12px; padding: 22px 0; }
  .row p { grid-column: 1; }
  .row .arrow { grid-row: 1; grid-column: 2; }
  .infra-grid { grid-template-columns: 1fr; }
  .plan { padding: 26px; }
  .cost { padding: 26px; }
  .cost-list div { grid-template-columns: minmax(0, 1fr); }
  .demo-card { padding: 22px 18px; }
  .demo-grid { grid-template-columns: minmax(0, 1fr); }
  .summary div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .step-dot span { font-size: 9px; letter-spacing: 0.02em; }
  .motion .stack-sec { height: calc(var(--n) * 60vh + 100vh); }
  .motion .stack { height: clamp(280px, 40vh, 330px); }
  .motion .stack-sticky .sec-head { margin-bottom: 36px; }
  .scard { min-height: 0; }
  .scard-top { padding-bottom: 16px; }
  .steps { margin-top: 28px; }
  .footer-in { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .browser-body { padding: 20px; }
  .sk-grid div { height: 56px; }
}
@media (max-width: 400px) {
  .step-dot span { display: none; }
}

/* ---------- Riduzione movimento ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Foto: dither -> pulita ---------- */
.photo { position: relative; overflow: hidden; background: #181818; border-radius: var(--radius-lg); }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo .ph-dither { image-rendering: pixelated; transition: opacity 600ms var(--ease-out); }
.photo.clean .ph-dither { opacity: 0; }
.photo .ph-clean { filter: saturate(.9); }
/* segnaposto finche non arrivano le foto (sparisce quando .has-photo) */
.ph-ph {
  position: absolute; inset: 0; display: grid; place-items: end start; padding: 12px;
  background-color: #181818;
  background-image: radial-gradient(color-mix(in srgb, var(--accent) 28%, transparent) 1px, transparent 1.3px), radial-gradient(rgba(255,255,255,.12) 1px, transparent 1.3px);
  background-size: 6px 6px, 9px 9px; background-position: 0 0, 3px 4px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: var(--tracking-mono); text-transform: uppercase; color: #626262;
}
.has-photo .ph-ph { display: none; }

.stage .photo { aspect-ratio: 4 / 3; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), var(--shadow-float); }
.stage .photo img { border-radius: inherit; }
.ph1 { --w: 250px; --x: -22vw; --y: -4vh;  --z: -560px; --rz: -5deg; --ry: 12deg; --d: .5; --o: .8; --delay: -3s; }
.ph2 { --w: 240px; --x: 23vw;  --y: 6vh;   --z: -600px; --rz: 4deg;  --ry: -12deg; --d: .5; --o: .8; --delay: -5s; }
.ph3 { --w: 300px; --x: 42vw;  --y: -38vh; --z: -160px; --rz: 7deg;  --ry: -20deg; --d: .9; --delay: -1.5s; }
.ph4 { --w: 300px; --x: -41vw; --y: 38vh;  --z: -120px; --rz: -6deg; --ry: 18deg; --d: .9; --delay: -6.5s; }

.photo-band { position: relative; background: #181818; color: #fff; }
.photo-band > .photo { border-radius: 0; height: clamp(420px, 78vh, 760px); }
.band-copy { position: absolute; left: 0; right: 0; bottom: clamp(32px, 6vw, 72px); z-index: 2; }
.photo-band::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(to top, rgba(24,24,24,.88) 0%, rgba(24,24,24,.55) 35%, rgba(24,24,24,0) 70%); } /* scrim */
.band-line { font-size: clamp(1.8rem, 4.2vw, 3.6rem); line-height: 1.08; letter-spacing: var(--tracking-display); max-width: 18em; }
.photo-band .kicker { color: #a8a8aa; }
/* dopo la banda scura la sezione chiara "tight" riprende il respiro normale */
.photo-band + .sec-tight { padding-top: var(--section-pad); }

@media (max-width: 720px) {
  .ph1, .ph2, .ph4 { display: none; }
  .ph3 { --x: 34vw; --y: 41vh; --sc: .5; --z: 0px; }
  .ph4 { --x: -34vw; --y: -42vh; --sc: .5; --z: 0px; }
  .photo-band > .photo { height: 70vh; }
}
[data-theme="light"] [data-theme="dark"] .pill-accent { background: var(--accent-wash); color: var(--accent); }
/* l'indicatore resta sopra le carte in arrivo dal basso */
.motion .steps { z-index: 40; background: var(--surface-page); box-shadow: 0 0 0 100vmax var(--surface-page); clip-path: inset(-12px -100vmax -100vmax -100vmax); }

/* ---------- Pagina informativa (privacy.html) ---------- */
.legal { padding-top: calc(64px + clamp(48px, 8vw, 96px)); }
.legal-in { max-width: 720px; }
.legal h1 { font-size: clamp(2.25rem, 5vw, 3.6rem); line-height: 1.05; }
.legal h2 { font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.2; margin: 44px 0 12px; padding-top: 24px; box-shadow: inset 0 1px 0 var(--divider); }
.legal p + p { margin-top: 12px; }
.legal-in > p:not(.kicker):not(.lead):not(.legal-date) { color: var(--content-muted); }
.legal-date { margin-top: 16px; font-family: var(--font-mono); font-size: 12px; letter-spacing: var(--tracking-mono); text-transform: uppercase; color: var(--content-faint); }
.legal a { text-underline-offset: 3px; }
.legal + .footer { padding-top: 0; }

/* =========================================================
   Componenti aggiunti per il motore multi-prodotto
   ========================================================= */

/* ---------- Schermate reali ---------- */
.screens-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; }
.screens-head .lead { max-width: 36em; }
.shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.shot { margin: 0; display: grid; gap: 10px; align-content: start; }
.shot-lg { grid-column: span 2; grid-row: span 2; }
.shot-frame { border-radius: var(--radius-lg); overflow: hidden; background: #181818; box-shadow: var(--stroke-hairline), 0 1px 0 rgba(0,0,0,.02); }
.shot-frame img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; }
.shot figcaption, .shot-m figcaption { font-size: 14px; color: var(--content-muted); line-height: 1.4; }
.shots-m { margin-top: clamp(40px, 6vw, 72px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.shot-m { margin: 0; display: grid; gap: 10px; justify-items: center; text-align: center; }
.shot-phone { width: min(100%, 240px); border-radius: 28px; padding: 8px; background: #181818; box-shadow: var(--stroke-hairline); }
.shot-phone img { width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; object-position: top; border-radius: 21px; }

/* ---------- Pacchetto aggiuntivo (prezzi) ---------- */
.addon { margin-top: 20px; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); padding: clamp(26px, 3.4vw, 40px); border-radius: var(--radius-lg); box-shadow: var(--stroke-hairline); background: var(--surface-page); }
.addon .kicker { margin-bottom: 12px; }
.addon h3 { font-size: clamp(1.6rem, 2.6vw, 2.25rem); }
.addon-lead { margin-top: 12px; color: var(--content-muted); max-width: 36em; }
.addon .plan-list { margin: 22px 0 0; }
.addon-side { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; padding-left: clamp(0px, 3vw, 40px); box-shadow: inset 1px 0 0 var(--divider); }
.addon-side .price { margin-top: 0; }
.addon-note { font-size: 14px; color: var(--content-muted); }

/* ---------- Caso reale ---------- */
.facts { margin: 28px 0 0; box-shadow: inset 0 1px 0 var(--divider); }
.facts div { display: grid; grid-template-columns: 8.5em minmax(0, 1fr); gap: 4px 16px; padding: 12px 0; box-shadow: inset 0 -1px 0 var(--divider); }
.facts dt { font-family: var(--font-mono); font-size: 11px; letter-spacing: var(--tracking-mono); text-transform: uppercase; color: var(--content-muted); padding-top: 4px; }
.facts dd { margin: 0; }
.quote { margin: 28px 0 0; padding-left: 20px; box-shadow: inset 2px 0 0 var(--accent); }
.quote p { font-size: clamp(1.2rem, 1.8vw, 1.5rem); line-height: 1.35; }
.quote footer { margin-top: 10px; color: var(--content-muted); font-size: 14px; }
.browser > img { display: block; width: 100%; height: auto; }
figure.browser { margin: 0; }

/* ---------- Video ---------- */
.video-frame { position: relative; max-width: 960px; margin-inline: auto; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; background: #000; box-shadow: var(--stroke-hairline); }
.video-frame iframe, .video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Modulo in due passi ---------- */
.form-steps { display: flex; gap: 8px; margin-bottom: 22px; }
.form-steps li { font-family: var(--font-mono); font-size: 11px; letter-spacing: var(--tracking-mono); text-transform: uppercase; color: var(--content-faint); padding: 6px 10px; border-radius: var(--radius-pill); box-shadow: inset 0 0 0 1px var(--surface-strong); }
.form-steps li.on { color: var(--content-strong); background: var(--accent-wash); box-shadow: inset 0 0 0 1px var(--accent-wash-strong); }
.form-steps li.ok { color: var(--content-muted); }
.form-steps li.ok::before { content: "✓ "; color: var(--accent); }
#lead-2:focus { outline: none; box-shadow: none; }
.step2-head { margin-bottom: 22px; }
.step2-head .tick, .done .tick { width: 44px; height: 44px; border-radius: 50%; background: var(--accent-wash); color: var(--accent); display: grid; place-items: center; font-size: 20px; }
.step2-head h3 { font-size: clamp(1.4rem, 2vw, 1.7rem); margin: 18px 0 8px; }
.step2-head p { color: var(--content-muted); }
.demo .help { font-size: 12px; color: var(--content-muted); line-height: 1.4; }
.demo .full > .lab { display: block; margin-bottom: 10px; }
.form-error .mail { color: var(--content-strong); text-decoration: underline; text-underline-offset: 3px; user-select: auto; -webkit-user-select: auto; }
.demo-card > .form-error { margin-top: 16px; }

/* ---------- Banner cookie ---------- */
.consent-bar { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90; max-width: 720px; margin-inline: auto; display: flex; gap: 16px; align-items: center; padding: 14px 16px; border-radius: var(--radius-lg); background: #1c1c1c; color: #fff; box-shadow: inset 0 0 0 1px #353535, var(--shadow-float); font-size: 14px; line-height: 1.45; }
.consent-bar[hidden] { display: none; }
.consent-bar p { flex: 1; color: #a8a8aa; }
.consent-bar a { color: #fff; text-underline-offset: 3px; }
.consent-actions { display: flex; gap: 8px; flex: 0 0 auto; }
.consent-bar .btn-line { color: #fff; box-shadow: inset 0 0 0 1px #4a4a4b; }
.linkish { background: none; border: 0; padding: 0; text-align: start; color: var(--content-muted); cursor: pointer; font-size: inherit; width: fit-content; }
.linkish:hover { color: var(--content-strong); }

@media (max-width: 960px) {
  .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .addon { grid-template-columns: 1fr; }
  .addon-side { padding-left: 0; padding-top: 20px; box-shadow: inset 0 1px 0 var(--divider); }
  .shots-m { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .shots { grid-template-columns: minmax(0, 1fr); }
  .shot-lg { grid-column: auto; grid-row: auto; }
  .facts div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .consent-bar { flex-direction: column; align-items: stretch; left: 12px; right: 12px; bottom: 12px; }
  .consent-actions .btn { flex: 1; }
}

/* ---------- Lingue con altri alfabeti e da destra a sinistra ---------- */
/* Inter Tight e Geist Mono coprono latino e vietnamita; per gli altri script
   il font di prodotto resta sui caratteri latini e il resto cade su Noto/sistema. */
:root:lang(ar) { --font-display: "Inter Tight", "Noto Sans Arabic", "Geeza Pro", Tahoma, system-ui, sans-serif; --font-mono: "Noto Sans Arabic", "Geist Mono", ui-monospace, monospace; }
:root:lang(hi) { --font-display: "Inter Tight", "Noto Sans Devanagari", "Kohinoor Devanagari", system-ui, sans-serif; --font-mono: "Noto Sans Devanagari", "Geist Mono", ui-monospace, monospace; }
:root:lang(th) { --font-display: "Inter Tight", "Noto Sans Thai", Thonburi, system-ui, sans-serif; --font-mono: "Noto Sans Thai", "Geist Mono", ui-monospace, monospace; }
:root:lang(am) { --font-display: "Inter Tight", "Noto Sans Ethiopic", "Kefa", system-ui, sans-serif; --font-mono: "Noto Sans Ethiopic", "Geist Mono", ui-monospace, monospace; }
:root:lang(zh) { --font-display: "Inter Tight", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Noto Sans CJK SC", system-ui, sans-serif; --font-mono: "Geist Mono", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", ui-monospace, monospace; }
/* niente spaziatura tra le lettere: spezza le legature arabe e non serve agli altri script */
:root:is(:lang(ar), :lang(hi), :lang(th), :lang(am), :lang(zh)) { --tracking-mono: 0; --tracking-display: 0; }
:is(:lang(ar), :lang(hi), :lang(th), :lang(am), :lang(zh)) :is(h1, .marquee li, .form-steps li, .group-title, .kicker, .cap) { letter-spacing: 0; }
/* accenti sopra e sotto la riga (devanagari, thai, arabo) */
:is(:lang(ar), :lang(hi), :lang(th), :lang(am)) h1 { line-height: 1.22; }
:is(:lang(ar), :lang(hi), :lang(th), :lang(am)) h2 { line-height: 1.22; }
:is(:lang(ar), :lang(hi), :lang(th), :lang(am), :lang(zh)) h3 { line-height: 1.3; }
:lang(zh) h1, :lang(zh) h2 { line-height: 1.15; }

[dir="rtl"] .row:hover .arrow { transform: translateX(-4px); }
[dir="rtl"] .addon-side { padding-left: 0; padding-right: clamp(0px, 3vw, 40px); box-shadow: inset -1px 0 0 var(--divider); }
[dir="rtl"] .quote { padding-left: 0; padding-right: 20px; box-shadow: inset -2px 0 0 var(--accent); }
[dir="rtl"] .demo select { background-position: 13px 52%, 18px 52%; }
[dir="rtl"] .demo input[type=email], [dir="rtl"] .demo input[type=tel] { direction: ltr; text-align: right; }
[dir="rtl"] .shot-frame img { object-position: top right; }
@media (max-width: 960px) {
  [dir="rtl"] .addon-side { padding-right: 0; box-shadow: inset 0 1px 0 var(--divider); }
}

/* ---------- Navbar stretta ---------- */
@media (max-width: 560px) {
  .nav-tools { gap: 8px; }
  .nav-cta .cta-long { display: none; }
  .nav-cta .cta-short { display: inline; }
  .lang-btn { padding: 0 9px; gap: 5px; }
  .lang { position: static; }
  .lang-menu { position: fixed; top: 58px; inset-inline: 12px; width: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; }
  .lang.open .lang-menu, html:not(.js) .lang:focus-within .lang-menu { display: grid; }
}
@media (max-width: 360px) {
  .lang-globe { display: none; }
}

/* ---------- Modulo demo: una domanda alla volta ---------- */
.qa { display: flex; flex-direction: column; gap: 0; }
.qa-head { margin-bottom: 28px; }
.qa-head[hidden] { display: none; }
.qa-step { font-family: var(--font-mono); font-size: 11px; letter-spacing: var(--tracking-mono); text-transform: uppercase; color: var(--content-muted); }
.qa-bar { margin-top: 12px; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; }
.qa-bar i { height: 3px; border-radius: 2px; background: var(--surface-strong); transition: background-color var(--dur-fast) var(--ease-out); }
.qa-bar i.ok { background: var(--accent); }
.qa-bar i.on { background: var(--content-faint); }
.qa-q { display: grid; gap: 12px; }
.qa-q[hidden] { display: none; }
.qa-label { font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.15; letter-spacing: -0.01em; color: var(--content-strong); text-wrap: balance; }
.demo .qa-q input[type=text], .demo .qa-q input[type=email], .demo .qa-q input[type=tel] { margin-top: 6px; min-height: 54px; padding: 14px 16px; font-size: 18px; }
.demo .qa-q input[aria-invalid="true"] { box-shadow: inset 0 0 0 1px var(--danger); }
.qa-hint { font-size: 14px; color: var(--content-muted); }
.qa-sub { margin-top: 6px; font-size: 14px; color: var(--content-muted); }
.qa-sub + input { margin-top: 0 !important; }
.qa-err { font-size: 14px; color: var(--danger); }
.qa-err[hidden] { display: none; }
.qa-consent { margin-top: 6px; min-height: 44px; align-items: center; }
.qa-consent input { width: 20px; height: 20px; margin: 0; }
.qa-foot { margin-top: 28px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.qa-alt { flex: 1; min-width: 0; font-size: 14px; color: var(--content-muted); }
.qa-alt[hidden] { display: none; }
.qa-alt a { color: var(--content-strong); text-underline-offset: 3px; display: inline-block; padding: 12px 0; }
.qa-back { margin-inline-end: auto; }
.qa-back[hidden] { display: none; }
.qa-next { margin-inline-start: auto; min-width: 9em; }
.qa .btn { min-height: 48px; }
.qa .chips { margin-top: 22px; }
.qa .chip span { min-height: 44px; padding: 10px 14px; }
.qa-done-foot { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.qa-sent { font-size: 14px; color: var(--accent); }
.qa .done h3 { margin-top: 18px; text-wrap: balance; }
@media (max-width: 720px) {
  .qa-head { margin-bottom: 22px; }
  .qa-foot { margin-top: 22px; }
  .qa-alt { flex-basis: 100%; order: 2; text-align: center; }
  .qa-next { flex: 1; }
  .qa-back + .qa-next { flex: 1; }
}

/* Transizioni tra le domande (lead.js). Con prefers-reduced-motion le spegne la regola globale. */
.qa { --qa-dx: 28px; }
[dir="rtl"] .qa { --qa-dx: -28px; }
.qa.qa-morph { overflow: hidden; transition: height var(--dur-med) var(--ease-out); }
.qa-ghost { position: absolute; pointer-events: none; animation: qa-out 180ms var(--ease-out) forwards; }
.qa-ghost.qa-back-dir { animation-name: qa-out-back; }
.qa-enter { animation: qa-in 360ms var(--ease-out) both; }
.qa-enter.qa-back-dir { animation-name: qa-in-back; }
.qa-enter .qa-hint { animation: qa-fade 360ms 90ms var(--ease-out) both; }
@keyframes qa-in { from { opacity: 0; transform: translateX(var(--qa-dx)); } }
@keyframes qa-in-back { from { opacity: 0; transform: translateX(calc(var(--qa-dx) * -1)); } }
@keyframes qa-out { to { opacity: 0; transform: translateX(calc(var(--qa-dx) * -1)); } }
@keyframes qa-out-back { to { opacity: 0; transform: translateX(var(--qa-dx)); } }
@keyframes qa-fade { from { opacity: 0; } }
/* Barra: il tratto completato si riempie da sinistra */
.qa-bar i { position: relative; overflow: hidden; }
.qa-bar i::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform: scaleX(0); transform-origin: left center; transition: transform var(--dur-med) var(--ease-out); }
[dir="rtl"] .qa-bar i::after { transform-origin: right center; }
.qa-bar i.ok { background: var(--surface-strong); }
.qa-bar i.ok::after { transform: scaleX(1); }
.qa-step.qa-tick { animation: qa-fade 260ms var(--ease-out) both; }
/* Errore: piccola scossa del campo */
.qa-shake { animation: qa-shake 360ms var(--ease-out); }
@keyframes qa-shake { 20% { transform: translateX(-6px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(2px); } }
/* Conferma: spunta che compare, poi il resto in sequenza */
.done.qa-enter { animation: none; }
.done.qa-enter .tick { animation: qa-pop 480ms cubic-bezier(.2, 1.4, .4, 1) both; }
.done.qa-enter h3 { animation: qa-rise 420ms 120ms var(--ease-out) both; }
.done.qa-enter > p { animation: qa-rise 420ms 200ms var(--ease-out) both; }
.done.qa-enter .chip { animation: qa-rise 360ms var(--ease-out) both; animation-delay: calc(280ms + var(--i, 0) * 35ms); }
.done.qa-enter .qa-done-foot { animation: qa-rise 360ms 520ms var(--ease-out) both; }
@keyframes qa-pop { from { opacity: 0; transform: scale(.4); } }
@keyframes qa-rise { from { opacity: 0; transform: translateY(10px); } }
