/* ═══════════════════════════════════════════════════════════════
   Talyndro — landing page
   Stesso linguaggio dell'app: nero/grigio neutro, un solo colore di marca (il blu) e la R gialla del turno Riposo nel logo.
   I colori dei turni sono quelli dell'app e NON si cambiano mai.
   Movimento: stessi token dei menu dell'app (stagger, blur, curva ease-out forte).
   ═══════════════════════════════════════════════════════════════ */

@font-face { font-family: 'Poppins'; font-weight: 600; font-style: normal; font-display: swap; src: url(fonts/poppins-600.woff2) format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 700; font-style: normal; font-display: swap; src: url(fonts/poppins-700.woff2) format('woff2'); }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  color-scheme: dark;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --brand: #8CCBA8;
  --brand-soft: rgba(140,203,168, 0.16);

  --bg: #0E1513;
  --bg-1: #131C19;
  --bg-2: #18231F;
  --bg-3: #1F2B26;
  --bg-4: #273530;
  --text: #E8EEE9;
  --text-2: #A7B5AD;
  --text-3: #75857C;
  --line: #23302B;
  --line-2: #33433C;

  /* Colori dei turni — IDENTICI all'app (tema scuro). Non modificare. */
  --mattina: #43A047;
  --pomeriggio: #1E88E5;
  --notte: #E53935;
  --intermedio: #9C27B0;
  --riposo: #FDD835;
  --ferie: #00ACC1;

  /* Movimento (gli stessi dei menu a tendina dell'app) */
  --stagger: 50ms;
  --in-fade: 0.5s;
  --in-move: 0.65s;
  --d0: 80ms;
  --blur: 4px;

  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --display: 'Poppins', var(--font);
  --header-h: 64px;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico { width: 1.25em; height: 1.25em; flex: none; }
.wrap { width: min(1120px, 100% - 48px); margin-inline: auto; }
.wrap.narrow { width: min(760px, 100% - 48px); }
section[id] { scroll-margin-top: calc(var(--header-h) + 8px); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

.skip { position: fixed; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--text); color: var(--bg); font-weight: 600; transition: top 0.2s var(--ease-out); }
.skip:focus { top: 12px; }

.progress { position: fixed; z-index: 60; top: 0; left: 0; right: 0; height: 2px; background: var(--brand); transform: scaleX(0); transform-origin: left; pointer-events: none; }

/* Colori turno: una variabile per classe */
.k-m { --c: var(--mattina); }
.k-i { --c: var(--intermedio); }
.k-p { --c: var(--pomeriggio); }
.k-n { --c: var(--notte); }
.k-r { --c: var(--riposo); }
.k-f { --c: var(--ferie); }

/* ═══════════════════════════════════════════════════════════════
   MOVIMENTO
   1) RISE: animazione una tantum all'avvio (hero, header), scaglionata per posizione.
   2) REVEAL: lo stesso effetto quando gli elementi entrano nella pagina scorrendo.
   Blocchi grandi usano --blur:0 per non sfocare aree ampie.
   ═══════════════════════════════════════════════════════════════ */
@keyframes rise {
  from { opacity: 0; transform: translate(var(--rx, 0), var(--ry, 14px)); filter: blur(var(--blur, 4px)); }
  to   { opacity: 1; transform: none; filter: blur(0); }
}
.rise, .rise-stagger > * {
  animation: rise var(--in-move) var(--ease-out) backwards;
  animation-delay: calc(var(--d0) + var(--i, 0) * var(--stagger));
}
.rise-stagger > :nth-child(1) { --i: 0; }
.rise-stagger > :nth-child(2) { --i: 2; }
.rise-stagger > :nth-child(3) { --i: 8; }
.rise-stagger > :nth-child(4) { --i: 10; }
.rise-stagger > :nth-child(5) { --i: 11; }
.rise-stagger > :nth-child(6) { --i: 12; }

.words { --blur: 6px; }
.words > span { display: inline-block; animation: rise var(--in-move) var(--ease-out) backwards; animation-delay: calc(var(--d0) + 90ms + var(--w, 0) * 60ms); }
.words > :nth-child(1) { --w: 0; } .words > :nth-child(2) { --w: 1; } .words > :nth-child(3) { --w: 2; }
.words > :nth-child(4) { --w: 3; } .words > :nth-child(5) { --w: 4; } .words > :nth-child(6) { --w: 5; }
.rise-stagger > .words { animation: none; }   /* le parole si animano da sole */

.js .reveal, .js .reveal-group > * {
  opacity: 0;
  transform: translateY(14px);
  filter: blur(var(--blur));
}
.js .reveal.in, .js .reveal-group.in > * {
  --dly: calc(var(--i, 0) * var(--stagger));
  opacity: 1;
  transform: none;
  filter: blur(0);
  transition: opacity var(--in-fade) var(--ease-out) var(--dly), transform var(--in-move) var(--ease-out) var(--dly),
              filter var(--in-fade) var(--ease-out) var(--dly), translate 0.25s var(--ease-out),
              border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.25s ease;
}
.reveal-group > :nth-child(1) { --i: 0; } .reveal-group > :nth-child(2) { --i: 1; } .reveal-group > :nth-child(3) { --i: 2; }
.reveal-group > :nth-child(4) { --i: 3; } .reveal-group > :nth-child(5) { --i: 4; } .reveal-group > :nth-child(6) { --i: 5; }
.grid3, .price-grid, .faq { --blur: 0px; }
.fan, .cta-band { --blur: 0px; }

/* ═══════════════════════════════════════════════════════════════
   BOTTONI — rispondono alla pressione (non al rilascio), mai "transition: all"
   ═══════════════════════════════════════════════════════════════ */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  height: 44px; padding: 0 1.15rem;
  border: 1px solid transparent; border-radius: 12px;
  font-size: 0.95rem; font-weight: 600; white-space: nowrap;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation; user-select: none;
  transition: transform 0.16s var(--ease-out), background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.25s ease, color 0.15s ease;
}
.btn:active { transform: scale(0.97); transition-duration: 0.09s; }
.btn-sm { height: 36px; padding: 0 0.9rem; font-size: 0.86rem; border-radius: 10px; }
.btn-lg { height: 54px; padding: 0 1.5rem; font-size: 1.02rem; border-radius: 14px; }
.btn-block { width: 100%; }
.btn-primary { background: #B9D2BF; color: #10261E; }
.btn-ghost { background: rgba(232, 238, 233, 0.06); border-color: rgba(232, 238, 233, 0.14); color: var(--text); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.btn-chip { padding: 3px 9px; border-radius: 999px; background: rgba(14, 21, 19, 0.1); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.01em; }
.btn .arrow { width: 1.1em; height: 1.1em; transition: transform 0.25s var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: #CBE0D0; box-shadow: 0 0 0 4px rgba(140,203,168, 0.16), 0 10px 34px -10px rgba(140,203,168, 0.5); }
  .btn-ghost:hover { background: rgba(232, 238, 233, 0.1); border-color: rgba(232, 238, 233, 0.24); }
  .btn:hover .arrow { transform: translateX(3px); }
}

/* ═══════════════════════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════════════════════ */
.site-header { position: fixed; z-index: 50; inset: 0 0 auto 0; height: var(--header-h); animation: rise 0.7s var(--ease-out) backwards; --ry: -10px; --blur: 0px; }
.site-header::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(14, 21, 19, 0); border-bottom: 1px solid transparent;
  -webkit-backdrop-filter: blur(0); backdrop-filter: blur(0);
  transition: background-color 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease, -webkit-backdrop-filter 0.3s ease;
}
.site-header.scrolled::before { background: rgba(14, 21, 19, 0.62); border-bottom-color: rgba(232, 238, 233, 0.08); -webkit-backdrop-filter: blur(18px) saturate(170%); backdrop-filter: blur(18px) saturate(170%); }
.bar { position: relative; height: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.bar-end { display: flex; align-items: center; justify-content: flex-end; gap: 14px; }

/* Logo: lo stesso dell'app — marchio + nome */
.logo { font-family: var(--display); font-weight: 700; font-size: 1.4rem; letter-spacing: -0.04em; line-height: 1; color: var(--text); display: inline-flex; align-items: center; white-space: nowrap; }
.logo .brand-mark { width: 1.1em; height: 1.1em; margin-right: .38em; border-radius: .24em; flex: none; }

.nav { position: relative; display: flex; gap: 2px; padding: 4px; border-radius: 12px; background: rgba(232, 238, 233, 0.04); border: 1px solid rgba(232, 238, 233, 0.07); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.nav a { position: relative; z-index: 1; padding: 6px 13px; border-radius: 9px; font-size: 0.86rem; font-weight: 500; color: var(--text-2); transition: color 0.15s ease; }
.nav a.active { color: var(--text); }
.nav-hl { position: absolute; z-index: 0; top: 4px; left: 0; height: calc(100% - 8px); width: 0; border-radius: 9px; background: rgba(232, 238, 233, 0.1); opacity: 0; transition: transform 0.38s var(--ease-out), width 0.38s var(--ease-out), opacity 0.2s ease; pointer-events: none; }
@media (hover: hover) and (pointer: fine) { .nav a:hover { color: var(--text); } }

.link-quiet { font-size: 0.88rem; font-weight: 500; color: var(--text-2); padding: 6px 4px; transition: color 0.15s ease; }
@media (hover: hover) and (pointer: fine) { .link-quiet:hover { color: var(--text); } }

/* Menu a tendina (mobile): stessa logica dei menu dell'app — guscio che si apre, figli che salgono a scaglioni */
.menu { position: relative; display: none; }
.menu-btn { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: rgba(232, 238, 233, 0.06); border: 1px solid rgba(232, 238, 233, 0.12); transition: transform 0.16s var(--ease-out), background-color 0.15s ease; -webkit-tap-highlight-color: transparent; }
.menu-btn:active { transform: scale(0.94); }
/* Icona: la barra alta si piega in una freccia verso il basso (due metà che si incernierano al centro);
   alla chiusura ruota di 180° e si rimette dritta. Solo transform/opacity. */
.ham { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; overflow: visible; }
.ham-top { transform-origin: 12px 8px; translate: 0 0; transition: translate 0.32s var(--ease-in-out), rotate 0.32s var(--ease-in-out); }
.ham-l, .ham-r { transform-origin: 12px 8px; transition: rotate 0.32s var(--ease-in-out); }
.ham-bot { transition: opacity 0.2s ease 0.12s; }
.menu.open .ham-top { translate: 0 5px; transition: translate 0.22s var(--ease-out), rotate 0.22s var(--ease-out); }
.menu.open .ham-l { rotate: 38deg; transition: rotate 0.22s var(--ease-out); }
.menu.open .ham-r { rotate: -38deg; transition: rotate 0.22s var(--ease-out); }
.menu.open .ham-bot { opacity: 0; transition: opacity 0.12s ease; }
.menu-panel {
  position: absolute; top: calc(100% + 10px); right: 0; min-width: 220px; padding: 6px;
  border-radius: 14px; background: rgba(19, 28, 25, 0.86); border: 1px solid rgba(232, 238, 233, 0.1);
  -webkit-backdrop-filter: blur(22px) saturate(170%); backdrop-filter: blur(22px) saturate(170%);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.6);
  visibility: hidden; opacity: 0; pointer-events: none;
  transform: translateY(-8px) scale(0.97); transform-origin: top right;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
  --dx: 14px; --dy: 0px;
}
.menu.open .menu-panel { visibility: visible; opacity: 1; transform: none; pointer-events: auto; transition: opacity 0.4s var(--ease-out), transform 0.55s var(--ease-out), visibility 0s; }
.menu-panel > * { opacity: 0; transform: translate(var(--dx), var(--dy)); filter: blur(var(--blur)); transition: opacity 0.15s ease, transform 0.2s ease, filter 0.15s ease, background-color 0.15s ease; }
.menu.open .menu-panel > * {
  opacity: 1; transform: none; filter: blur(0);
  transition: opacity var(--in-fade) var(--ease-out), transform var(--in-move) var(--ease-out), filter var(--in-fade) var(--ease-out), background-color 0.15s ease;
  transition-delay: calc(var(--i, 0) * var(--stagger) + var(--d0)), calc(var(--i, 0) * var(--stagger) + var(--d0)), calc(var(--i, 0) * var(--stagger) + var(--d0)), 0s;
}
.menu-panel > :nth-child(1) { --i: 0; } .menu-panel > :nth-child(2) { --i: 1; } .menu-panel > :nth-child(3) { --i: 2; }
.menu-panel > :nth-child(4) { --i: 3; } .menu-panel > :nth-child(5) { --i: 4; } .menu-panel > :nth-child(6) { --i: 5; } .menu-panel > :nth-child(7) { --i: 6; }
.menu-panel a { display: block; padding: 10px 12px; border-radius: 9px; font-size: 0.95rem; font-weight: 500; }
.menu-panel a:active { background: var(--bg-4); }
.menu-sep { height: 1px; margin: 5px 6px; background: rgba(232, 238, 233, 0.1); }
@media (hover: hover) and (pointer: fine) { .menu-panel a:hover { background: rgba(232, 238, 233, 0.08); } .menu-btn:hover { background: rgba(232, 238, 233, 0.1); } }

/* ═══════════════════════════════════════════════════════════════
   HERO — sfondo animato in loop (celle-turno che si compilano a onda)
   ═══════════════════════════════════════════════════════════════ */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: 120px 0 110px; isolation: isolate; overflow: clip; text-align: center; }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 52% at 50% 47%, rgba(14, 21, 19, 0.95) 0%, rgba(14, 21, 19, 0.84) 46%, rgba(14, 21, 19, 0.3) 100%),
    linear-gradient(to bottom, rgba(14, 21, 19, 0.6), transparent 24%, transparent 68%, var(--bg));
}
.scene { position: absolute; inset: -12% -10%; z-index: -2; display: grid; place-items: center; perspective: 1100px; }
.scene-par { will-change: transform; }
.scene-plane { display: grid; grid-template-columns: repeat(var(--sc, 16), 1fr); gap: 12px; width: 150vw; max-width: 2100px; transform: rotateX(60deg) rotateZ(-20deg); transform-style: preserve-3d; }
.sc { position: relative; aspect-ratio: 1.5; border-radius: 8px; background: rgba(232, 238, 233, 0.035); }
.sc::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; background: var(--c);
  opacity: 0; transform: scale(0.6);
  animation: scWave 12s infinite; animation-delay: var(--w, 0s);
}
@keyframes scWave {
  0%   { opacity: 0;    transform: scale(0.6); animation-timing-function: cubic-bezier(0.23, 1, 0.32, 1); }
  9%   { opacity: 0.85; transform: scale(1); }
  58%  { opacity: 0.85; transform: scale(1); animation-timing-function: cubic-bezier(0.23, 1, 0.32, 1); }
  72%  { opacity: 0;    transform: scale(0.8); }
  100% { opacity: 0;    transform: scale(0.6); }
}
.hero.paused .sc::before, .hero.paused .scroll-cue span { animation-play-state: paused; }

.hero-in { position: relative; display: flex; flex-direction: column; align-items: center; max-width: 820px; }
.eyebrow-pill { display: inline-flex; align-items: center; gap: 9px; padding: 7px 15px 7px 12px; border-radius: 999px; background: rgba(232, 238, 233, 0.06); border: 1px solid rgba(232, 238, 233, 0.1); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-size: 0.84rem; color: var(--text-2); margin-bottom: 26px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 12px rgba(140,203,168, 0.8); flex: none; }
.hero h1 { font-family: var(--display); font-weight: 700; font-size: clamp(2.5rem, 7.4vw, 5.2rem); line-height: 1.04; letter-spacing: -0.035em; text-wrap: balance; }
.hero .lead { margin-top: 24px; max-width: 56ch; }
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }
.fine { margin-top: 18px; font-size: 0.84rem; color: var(--text-3); }

.scroll-cue { position: absolute; bottom: 26px; left: 50%; width: 24px; height: 38px; margin-left: -12px; border-radius: 14px; border: 1.5px solid rgba(232, 238, 233, 0.28); display: grid; justify-items: center; align-content: start; padding-top: 7px; transition: opacity 0.4s var(--ease-out); animation: rise 0.8s var(--ease-out) 1.2s backwards; --blur: 0px; }
.scroll-cue span { width: 3px; height: 7px; border-radius: 2px; background: var(--text-2); animation: cue 1.9s var(--ease-in-out) infinite; }
.scroll-cue.gone { opacity: 0; pointer-events: none; }
@keyframes cue { 0% { transform: translateY(0); opacity: 0; } 25% { opacity: 1; } 70% { transform: translateY(11px); opacity: 0; } 100% { transform: translateY(11px); opacity: 0; } }

/* ═══════════════════════════════════════════════════════════════
   SEZIONI
   ═══════════════════════════════════════════════════════════════ */
.section { padding: clamp(72px, 11vw, 140px) 0; }
.section-head { max-width: 640px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .lead { margin-inline: auto; }
.eyebrow { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand); margin-bottom: 14px; }
h2 { font-family: var(--display); font-weight: 600; font-size: clamp(1.9rem, 4.4vw, 3.1rem); line-height: 1.08; letter-spacing: -0.03em; text-wrap: balance; }
h3 { font-size: 1.08rem; font-weight: 600; letter-spacing: -0.01em; }
.lead { margin-top: 18px; font-size: clamp(1.02rem, 1.6vw, 1.18rem); color: var(--text-2); max-width: 58ch; }

/* Card vantaggi: bordo luminoso che segue il puntatore (decorativo) */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { position: relative; padding: 28px; border-radius: 18px; background: var(--bg-1); border: 1px solid var(--line); overflow: hidden; }
.card::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 0%), rgba(140,203,168, 0.1), transparent 65%); opacity: 0; transition: opacity 0.3s ease; }
@media (hover: hover) and (pointer: fine) {
  .card:hover { translate: 0 -3px; border-color: var(--line-2); }
  .card:hover::before { opacity: 1; }
}
.card-ico { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--brand-soft); color: var(--brand); margin-bottom: 20px; }
.card-ico .ico { width: 22px; height: 22px; }
.card h3 { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.card p { color: var(--text-2); font-size: 0.97rem; }
.tag { padding: 2px 8px; border-radius: 999px; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.03em; color: var(--brand); background: var(--brand-soft); }

/* ═══════════════════════════════════════════════════════════════
   RISULTATO — il mese si compila mentre scorri (animazione legata allo scroll)
   ═══════════════════════════════════════════════════════════════ */
.stage { position: relative; height: 340vh; }
.stage-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 620px; display: grid; align-items: center; overflow: clip; padding-top: var(--header-h); }
.stage-sticky::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 55% 45% at 50% 58%, rgba(140,203,168, 0.08), transparent 70%); }
.stage-in { position: relative; display: grid; gap: 22px; }
.stage-head { text-align: center; }
.caps { display: grid; justify-items: center; min-height: 2.3em; }
.cap { grid-area: 1 / 1; opacity: 0; transform: translateY(14px); filter: blur(4px); pointer-events: none; transition: opacity 0.45s var(--ease-out), transform 0.6s var(--ease-out), filter 0.45s var(--ease-out); }
.cap.on { opacity: 1; transform: none; filter: blur(0); }
.cap.past { opacity: 0; transform: translateY(-14px); filter: blur(4px); }

.board { --cols: 14; --lab: 34px; position: relative; width: min(980px, 100%); margin-inline: auto; padding: 16px 16px 14px; border-radius: 20px; overflow: hidden;
  background: linear-gradient(180deg, rgba(24, 35, 31, 0.92), rgba(14, 21, 19, 0.92)); border: 1px solid var(--line); border-top-color: rgba(232, 238, 233, 0.14);
  box-shadow: 0 40px 120px -40px rgba(0, 0, 0, 0.9); }
.board-top { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; font-size: 0.8rem; color: var(--text-2); }
.board-top b { font-weight: 600; color: var(--text); }
.board-grid { position: relative; display: grid; grid-template-columns: var(--lab) repeat(var(--cols), minmax(0, 1fr)); gap: 5px; }
.bg-day { text-align: center; font-size: 0.66rem; font-weight: 700; color: var(--text-3); padding-bottom: 3px; }
.bg-day.we { color: var(--text-2); }
.bg-lab { display: flex; align-items: center; }
.bg-lab i { width: 20px; height: 20px; border-radius: 50%; background: var(--bg-3); }
.bg-cell { aspect-ratio: 1.55; display: grid; place-items: center; border-radius: 6px; background: var(--bg-2); color: transparent; font-size: 0.7rem; font-weight: 700; opacity: 0.6; transform: scale(0.84);
  transition: background-color 0.28s ease, opacity 0.3s var(--ease-out), transform 0.4s var(--ease-out), color 0.25s ease; }
.bg-cell.we-col { background: #131C19; }
.bg-cell.on { background: var(--c); color: #fff; opacity: 1; transform: none; }
.bg-cell.k-r.on { color: #1a1a1a; }
.scan { position: absolute; top: 0; bottom: 0; left: 0; width: 72px; pointer-events: none; opacity: 0; mix-blend-mode: screen; background: linear-gradient(90deg, transparent, rgba(140,203,168, 0.2), transparent); transition: opacity 0.3s ease; }
.board-cov { display: grid; grid-template-columns: var(--lab) repeat(var(--cols), minmax(0, 1fr)); gap: 5px; margin-top: 12px; align-items: center; }
.cov-lab { font-size: 0.58rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-3); }
.tick { position: relative; height: 3px; border-radius: 2px; background: var(--line); overflow: hidden; }
.tick::after { content: ''; position: absolute; inset: 0; background: var(--brand); transform: scaleX(0); transform-origin: left; transition: transform 0.45s var(--ease-out); }
.tick.on::after { transform: none; }

.legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; font-size: 0.82rem; color: var(--text-2); }
.legend li { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 9px; height: 9px; border-radius: 3px; background: var(--c); }
.stage-progress { width: min(260px, 60%); height: 3px; margin-inline: auto; border-radius: 2px; background: var(--line); overflow: hidden; }
.stage-progress span { display: block; height: 100%; background: var(--brand); transform: scaleX(0); transform-origin: left; }

/* ═══════════════════════════════════════════════════════════════
   SEDI
   ═══════════════════════════════════════════════════════════════ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.split-text .lead { margin-bottom: 8px; }
.ticks { display: grid; gap: 14px; margin-top: 28px; }
.ticks li { display: flex; align-items: flex-start; gap: 12px; color: var(--text); font-size: 0.98rem; }
.ticks .ico { width: 22px; height: 22px; padding: 4px; margin-top: 1px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); }
.ticks.small { gap: 11px; margin-top: 24px; }
.ticks.small li { font-size: 0.92rem; color: var(--text-2); }

.fan { position: relative; width: 100%; max-width: 520px; aspect-ratio: 1 / 0.92; margin-inline: auto; }
.fan-card { position: absolute; inset: 0 16% 30% 0; padding: 16px; border-radius: 18px; background: linear-gradient(180deg, rgba(31, 43, 38, 0.96), rgba(16, 24, 21, 0.96)); border: 1px solid var(--line); border-top-color: rgba(232, 238, 233, 0.14); box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.9); }
.fan-card header { display: flex; align-items: center; gap: 9px; font-size: 0.82rem; }
.mini { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-top: 14px; }
.mini i { aspect-ratio: 1.4; border-radius: 4px; background: var(--c); opacity: 0.88; }
.fc1 { z-index: 1; } .fc2 { z-index: 2; transform: translate(9%, 20%); } .fc3 { z-index: 3; transform: translate(18%, 40%); }
.js .fan .fan-card { opacity: 0; transform: translate(9%, 20%) scale(0.95); }
.js .fan.in .fan-card { opacity: 1; transition: opacity 0.6s var(--ease-out), transform 0.95s var(--ease-out); }
.js .fan.in .fc1 { transform: none; transition-delay: 0.05s; }
.js .fan.in .fc2 { transform: translate(9%, 20%); transition-delay: 0.14s; }
.js .fan.in .fc3 { transform: translate(18%, 40%); transition-delay: 0.23s; }

/* ═══════════════════════════════════════════════════════════════
   PREZZI
   ═══════════════════════════════════════════════════════════════ */
.seg { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; margin-top: 28px; padding: 4px; border-radius: 13px; background: var(--bg-2); border: 1px solid var(--line); }
.seg-thumb { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 9px; background: var(--bg-4); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4); transition: transform 0.38s var(--ease-out); }
.seg[data-v='y'] .seg-thumb { transform: translateX(100%); }
.seg button { position: relative; z-index: 1; padding: 8px 18px; border-radius: 9px; font-size: 0.9rem; font-weight: 600; color: var(--text-2); transition: color 0.2s ease, transform 0.16s var(--ease-out); -webkit-tap-highlight-color: transparent; }
.seg button:active { transform: scale(0.97); }
.seg button[aria-checked='true'] { color: var(--text); }
.seg em { margin-left: 6px; padding: 2px 7px; border-radius: 999px; font-style: normal; font-size: 0.66rem; font-weight: 700; color: var(--brand); background: var(--brand-soft); }

.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 30px 28px; border-radius: 20px; background: var(--bg-1); border: 1px solid var(--line); overflow: hidden; }
.plan::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 0%), rgba(140,203,168, 0.09), transparent 65%); opacity: 0; transition: opacity 0.3s ease; }
@media (hover: hover) and (pointer: fine) { .plan:hover { translate: 0 -3px; } .plan:hover::before { opacity: 1; } }
.plan.featured { background: linear-gradient(180deg, #15241E, var(--bg-1) 60%); border-color: rgba(140,203,168, 0.5); box-shadow: 0 30px 90px -40px rgba(140,203,168, 0.35); }
.plan-badge { position: absolute; top: 18px; right: 18px; padding: 4px 10px; border-radius: 999px; font-size: 0.7rem; font-weight: 700; color: var(--bg); background: var(--brand); }
.plan h3 { font-family: var(--display); font-size: 1.25rem; }
.plan-for { margin-top: 4px; font-size: 0.92rem; color: var(--text-2); min-height: 1.5em; }
.price { display: flex; align-items: baseline; gap: 4px; margin-top: 18px; font-family: var(--display); }
.price-cur { font-size: 1.5rem; font-weight: 600; color: var(--text-2); }
.price-num { display: inline-block; font-size: 3.4rem; font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.price-per { margin-left: 4px; font-family: var(--font); font-size: 0.92rem; font-weight: 500; color: var(--text-3); }
.price-was { min-height: 1.3em; margin: 6px 0 16px; font-size: 0.82rem; color: var(--text-3); opacity: 0; transition: opacity 0.3s ease; }
.price-was.show { opacity: 1; }
.plan .ticks { flex: 1; align-content: start; }
.trial-note { margin-top: 28px; text-align: center; font-size: 0.9rem; color: var(--text-2); }

/* ═══════════════════════════════════════════════════════════════
   FAQ
   ═══════════════════════════════════════════════════════════════ */
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 4px; text-align: left; font-size: 1.04rem; font-weight: 600; letter-spacing: -0.01em; transition: color 0.15s ease; -webkit-tap-highlight-color: transparent; }
.faq-q .ico { width: 20px; height: 20px; color: var(--text-3); transition: transform 0.4s var(--ease-out), color 0.2s ease; }
.faq-item.open .faq-q .ico { transform: rotate(180deg); color: var(--brand); }
.faq-a { display: grid; grid-template-rows: 0fr; visibility: hidden; opacity: 0; transition: grid-template-rows 0.4s var(--ease-out), opacity 0.3s ease, visibility 0s linear 0.4s; }
.faq-a > div { min-height: 0; overflow: hidden; }
.faq-a p { padding: 0 4px 22px; color: var(--text-2); max-width: 62ch; }
.faq-item.open .faq-a { grid-template-rows: 1fr; visibility: visible; opacity: 1; transition: grid-template-rows 0.4s var(--ease-out), opacity 0.35s ease 0.05s, visibility 0s; }
@media (hover: hover) and (pointer: fine) { .faq-q:hover { color: var(--brand); } }

/* ═══════════════════════════════════════════════════════════════
   CHIUSURA + FOOTER
   ═══════════════════════════════════════════════════════════════ */
.closing { padding-top: 0; }
.cta-band { position: relative; padding: clamp(44px, 7vw, 84px) 24px; border-radius: 28px; text-align: center; overflow: hidden; background: radial-gradient(ellipse 70% 120% at 50% 0%, rgba(140,203,168, 0.16), transparent 70%), var(--bg-1); border: 1px solid var(--line); }
.cta-band .lead { margin: 14px auto 32px; }
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 44px; color: var(--text-3); font-size: 0.86rem; }
.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.foot-brand { display: flex; align-items: center; gap: 16px; }
.foot-brand .logo { font-size: 1.1rem; }
.foot-links { display: flex; gap: 22px; }
.foot-links a { transition: color 0.15s ease; }
@media (hover: hover) and (pointer: fine) { .foot-links a:hover { color: var(--text); } }

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 920px) {
  .nav { display: none; }
  .bar { grid-template-columns: 1fr auto; }
  .menu { display: block; }
  .link-quiet { display: none; }
  .grid3 { grid-template-columns: repeat(2, 1fr); }
  .price-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .plan-for { min-height: 0; }
  .split { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .grid3 { grid-template-columns: 1fr; }
  .hero { padding-top: 104px; }
  .hero::before { background: radial-gradient(ellipse 130% 62% at 50% 47%, rgba(14, 21, 19, 0.95) 0%, rgba(14, 21, 19, 0.88) 55%, rgba(14, 21, 19, 0.4) 100%), linear-gradient(to bottom, rgba(14, 21, 19, 0.6), transparent 24%, transparent 68%, var(--bg)); }
  .btn-lg { height: 52px; }
  .cta-row { width: 100%; }
  .cta-row .btn { flex: 1 1 100%; }
  .scene-plane { width: 260vw; gap: 8px; }
  .board { padding: 12px 10px 10px; --lab: 22px; }
  .board-grid, .board-cov { gap: 4px; }
  .bg-lab i { width: 16px; height: 16px; }
  .bg-cell { font-size: 0.6rem; border-radius: 5px; }
  .stage { height: 300vh; }
  .stage-in { gap: 16px; }
  .foot { flex-direction: column; align-items: flex-start; }
}

/* ═══════════════════════════════════════════════════════════════
   MOVIMENTO RIDOTTO — niente movimenti: solo dissolvenze, e la scena resta ferma
   ═══════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise, .rise-stagger > *, .words > span, .site-header, .scroll-cue { animation: riseFade 0.4s ease backwards; animation-delay: 0s; }
  @keyframes riseFade { from { opacity: 0; } to { opacity: 1; } }
  .scroll-cue span { animation: none; opacity: 1; }
  .js .reveal, .js .reveal-group > * { transform: none; filter: none; }
  .js .reveal.in, .js .reveal-group.in > * { transition: opacity 0.4s ease; transition-delay: 0s; }
  .sc::before { animation: none; opacity: 0.5; transform: none; }
  .menu-panel, .menu-panel > * { transform: none; filter: none; }
  .ham-top, .ham-l, .ham-r { transition: none !important; }
  .stage { height: auto; }
  .stage-sticky { position: static; height: auto; min-height: 0; padding: 96px 0; }
  .stage-progress { display: none; }
  .cap { transform: none; filter: none; }
  .js .fan .fan-card { transform: none; }
  .js .fan.in .fc2 { transform: translate(9%, 20%); } .js .fan.in .fc3 { transform: translate(18%, 40%); }
  .faq-a, .faq-item.open .faq-a { transition: none; }
}
