/* ===========================================================================
   BioFrame — sistema visivo del sito pubblico.
   Tema scuro continuo: la pagina non cambia mai registro, dall'apertura al
   piè di pagina. Le sezioni si distinguono per profondità, non per colore.

   Caratteri
   - Space Grotesk: titoli, navigazione, numeri. Nasce da un carattere
     monospazio: ha la precisione di uno strumento di misura, che è
     esattamente il mestiere di questo prodotto.
   - Manrope: testo corrente, per leggibilità nei paragrafi lunghi.
   - Fraunces corsivo: la parola accentata nei titoli.
   =========================================================================== */

:root {
  /* Marchio */
  --teal: #23b6c8;          /* accento su fondo scuro */
  --teal-2: #4fd6e6;        /* stati attivi */
  --teal-deep: #0c8091;     /* il teal del marchio, per le tessere piene */

  /* Fondali: si distinguono per profondità, non per tinta */
  --bg: #04171b;
  --bg-soft: #07212700;     /* trasparente: la differenza la fa il gradiente */
  --panel: rgba(255, 255, 255, .035);
  --panel-2: rgba(255, 255, 255, .055);

  /* Testo */
  --ink: #ffffff;
  --body: #a8c6cc;
  --muted: #7fa2a9;

  --line: rgba(255, 255, 255, .10);
  --line-2: rgba(255, 255, 255, .16);

  --shadow: 0 22px 48px -30px rgba(0, 0, 0, .9);
  --shadow-lg: 0 40px 80px -44px rgba(0, 0, 0, 1);
  --glow: 0 0 46px -12px rgba(35, 182, 200, .45);
  --radius: 18px;

  --font-display: 'Space Grotesk', 'Manrope', system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, -apple-system, Segoe UI, sans-serif;
  --font-accent: 'Fraunces', Georgia, serif;
  /* Il logotipo ha un carattere suo: il marchio è curvo e organico, e Outfit
     lo accompagna meglio della geometria spigolosa dei titoli. */
  --font-brand: 'Outfit', 'Manrope', system-ui, sans-serif;
}

* { box-sizing: border-box; }
/* `clip` e non `hidden`: taglia l'arte che sborda di lato senza creare un
   contenitore di scorrimento — così l'intestazione appiccicata resta tale. */
html { scroll-behavior: smooth; background: var(--bg); overflow-x: clip; }
body {
  margin: 0; background: var(--bg); color: var(--body);
  font-family: var(--font-body); line-height: 1.68;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.wrap { width: min(1120px, 92vw); margin: 0 auto; }
section { padding: 104px 0; position: relative; }

h1, h2, h3, h4, .fb-t {
  font-family: var(--font-display); color: var(--ink);
  line-height: 1.12; letter-spacing: -.03em; margin: 0; font-weight: 700;
}
h1 { font-size: clamp(2.3rem, 5.4vw, 4.05rem); }
h2 { font-size: clamp(2.05rem, 4.1vw, 3.2rem); letter-spacing: -.04em; line-height: 1.06; }
p { margin: 0; }
b, strong { color: #d9ecef; font-weight: 700; }

/* I titoli non sono di un bianco piatto: la luce cala dall'alto verso il
   basso, come sul resto della pagina. Se il browser non sa ritagliare lo
   sfondo sul testo, il titolo resta semplicemente bianco. */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  h1, h2 {
    background-image: linear-gradient(176deg, #ffffff 22%, #a5c9d1 104%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
  }
}

/* La parola accentata: è ciò che dà ritmo ai titoli — e adesso accende. */
.hl, h1 em, h2 em {
  color: var(--teal); -webkit-text-fill-color: var(--teal);
  text-shadow: 0 0 42px rgba(35,182,200,.55), 0 0 14px rgba(35,182,200,.35);
}
.hl-serif { font-family: var(--font-accent); font-style: italic; font-weight: 500; color: var(--teal); letter-spacing: -.02em; }

.skip {
  position: absolute; left: -9999px; top: 0; background: var(--teal);
  color: #04171b; padding: 10px 16px; border-radius: 0 0 10px 0; z-index: 100; font-weight: 700;
}
.skip:focus { left: 0; }
:focus-visible { outline: 2px solid var(--teal-2); outline-offset: 3px; border-radius: 6px; }

/* Alone luminoso diffuso: dà profondità senza cambiare colore alla sezione. */
.glow-top::before, .glow-bottom::after {
  content: ""; position: absolute; left: 50%; width: min(1000px, 96vw); height: 460px;
  transform: translateX(-50%); pointer-events: none; z-index: 0;
  background: radial-gradient(ellipse at center, rgba(35,182,200,.075), transparent 68%);
}
.glow-top::before { top: -180px; }
.glow-bottom::after { bottom: -200px; }
section > .wrap { position: relative; z-index: 1; }

.eyebrow {
  display: inline-block; font-family: var(--font-display);
  font-size: .76rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--teal); background: rgba(35,182,200,.09);
  padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(35,182,200,.22);
}

/* --------------------------------------------------------------- pulsanti */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  padding: 14px 26px; border-radius: 12px; border: 1px solid transparent; cursor: pointer;
  transition: transform .18s ease, box-shadow .25s ease, background .25s ease,
              color .2s ease, border-color .25s ease;
  white-space: nowrap; letter-spacing: -.01em;
}
.btn-sm { padding: 10px 19px; font-size: .93rem; }
.btn-pill { border-radius: 999px; padding: 15px 30px; }
.btn-primary { background: var(--teal); color: #04171b; box-shadow: 0 14px 34px -16px rgba(35,182,200,.9); }
.btn-primary:hover { background: var(--teal-2); transform: translateY(-2px); box-shadow: 0 20px 44px -16px rgba(35,182,200,1); }
.btn-ghost { background: rgba(255,255,255,.05); color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { background: rgba(255,255,255,.1); border-color: rgba(35,182,200,.5); transform: translateY(-2px); }

/* ------------------------------------------------------------ navigazione */
header.nav { position: sticky; top: 14px; z-index: 40; }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 62px; gap: 20px; padding: 0 10px 0 20px;
  border-radius: 999px; border: 1px solid var(--line);
  background: rgba(6,30,35,.62); backdrop-filter: saturate(1.3) blur(16px);
  box-shadow: 0 20px 40px -30px rgba(0,0,0,.95);
  transition: background .3s ease, border-color .3s ease;
}
header.nav.scrolled .nav-inner { background: rgba(6,30,35,.9); border-color: var(--line-2); }
header.nav-over { position: fixed; top: 14px; left: 0; right: 0; }
.brand {
  display: flex; align-items: center; gap: 9px; color: var(--ink);
  font-family: var(--font-brand); font-weight: 600; font-size: 1.24rem; letter-spacing: -.025em;
}
.brand .mark { width: 34px; height: 34px; flex: 0 0 auto; transition: transform .25s cubic-bezier(.34,1.56,.64,1); }
.brand:hover .mark { transform: rotate(-4deg) scale(1.05); }
/* Il taglio a due toni del logotipo: «Bio» nell'accento, «Frame» pieno. */
.wordmark { line-height: 1; }
.wordmark span { color: var(--teal-2); }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a.link {
  font-family: var(--font-display); font-weight: 500; color: var(--muted);
  font-size: .94rem; position: relative;
}
.nav-links a.link::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px;
  background: var(--teal); border-radius: 2px; transition: width .25s ease;
}
.nav-links a.link:hover { color: var(--ink); }
.nav-links a.link:hover::after { width: 100%; }

/* ------------------------------------------------------- apertura scura
   Impianto a due colonne: a sinistra il messaggio, a destra la figura —
   che è poi il prodotto: il filo a piombo e la griglia di misura sul corpo. */
.dark-top { position: relative; overflow: hidden; isolation: isolate; padding-top: 92px; }

/* Fondale: nessuna fotografia da scalare, solo luce. Non si sgrana mai. */
.hero-glow, .hero-mesh { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-glow {
  background:
    radial-gradient(1150px 640px at 71% 36%, rgba(35,182,200,.17), transparent 62%),
    radial-gradient(900px 720px at 10% 4%, rgba(12,128,145,.15), transparent 66%),
    radial-gradient(700px 520px at 50% 100%, rgba(35,182,200,.06), transparent 70%);
}
.hero-mesh {
  opacity: .55;
  background-image:
    linear-gradient(rgba(255,255,255,.038) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.038) 1px, transparent 1px);
  background-size: 76px 76px;
  -webkit-mask-image: radial-gradient(ellipse 88% 66% at 50% 28%, #000, transparent 74%);
          mask-image: radial-gradient(ellipse 88% 66% at 50% 28%, #000, transparent 74%);
}
.dark-top::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 220px; z-index: 1;
  pointer-events: none; background: linear-gradient(to bottom, transparent, var(--bg));
}
.dark-top > *:not(.hero-glow):not(.hero-mesh) { position: relative; z-index: 2; }

.hero-dark { padding: 30px 0 88px; }
.hero-dark .wrap { max-width: min(1180px, 93vw); }
.hero-split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 30px; align-items: center; }
.hero-copy { text-align: left; }

.badge-pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 17px 7px 12px;
  border-radius: 999px; border: 1px solid var(--line-2);
  background: rgba(255,255,255,.05); backdrop-filter: blur(10px);
  font-family: var(--font-display); font-size: .83rem; font-weight: 500; color: #cfe6ea;
}
.badge-pill .dot-live {
  width: 7px; height: 7px; border-radius: 50%; background: var(--teal);
  animation: pulse-dot 2.4s ease-out infinite;
}
@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(35,182,200,.65); }
  70% { box-shadow: 0 0 0 9px rgba(35,182,200,0); }
  100% { box-shadow: 0 0 0 0 rgba(35,182,200,0); }
}
.hero-copy h1 {
  margin: 26px 0 0; letter-spacing: -.045em; line-height: 1.01;
  font-size: clamp(2.55rem, 5.7vw, 4.4rem);
}
.hero-copy h1 em { font-family: var(--font-accent); font-style: italic; font-weight: 500; letter-spacing: -.025em; }
.hero-copy .lede { margin: 24px 0 0; max-width: 47ch; color: var(--body); font-size: 1.11rem; }
.hero-cta { display: flex; gap: 13px; flex-wrap: wrap; margin-top: 34px; }

/* Riga di garanzie: lo stesso ritmo visivo di un "featured in", ma con
   ciò che possiamo davvero dichiarare. */
.trust-row {
  display: flex; align-items: center; flex-wrap: wrap; gap: 12px 24px;
  margin-top: 40px; padding-top: 26px; border-top: 1px solid var(--line);
}
.trust-label {
  font-family: var(--font-display); font-size: .67rem; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase; color: #6b929a; flex: 0 0 auto;
}
.trust-items { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 21px; padding: 0; margin: 0; }
.trust-items li {
  position: relative; white-space: nowrap; font-family: var(--font-display);
  font-size: .9rem; font-weight: 600; color: #9fc2c8; letter-spacing: -.01em;
}
.trust-items li + li::before {
  content: ""; position: absolute; left: -12px; top: 50%; width: 3px; height: 3px;
  border-radius: 50%; background: rgba(35,182,200,.7); transform: translateY(-50%);
}

/* ------------------------------------------------------- figura del hero */
.hero-art { position: relative; display: grid; place-items: center; min-height: 520px; }
.hero-figure { position: relative; width: min(460px, 100%); }
/* La maschera deve spegnersi ben prima del bordo del riquadro: altrimenti il
   fondo del video, che nero non è mai del tutto, disegna un rettangolo. */
.hero-figure img, .hero-figure video {
  display: block; width: 100%; height: auto; mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(ellipse 62% 72% at 50% 46%, #000 22%, rgba(0,0,0,.35) 62%, transparent 88%);
          mask-image: radial-gradient(ellipse 62% 72% at 50% 46%, #000 22%, rgba(0,0,0,.35) 62%, transparent 88%);
}
.hero-figure img { transition: opacity 1.2s ease; }
.hero-figure video { position: absolute; inset: 0; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s ease; }
.hero-figure video.ready { opacity: 1; }
.hero-figure.playing img { opacity: 0; }
/* Alone dietro la figura: la stacca dal fondo senza un bordo. */
.hero-figure::before {
  content: ""; position: absolute; left: 50%; top: 50%; z-index: -1;
  width: 118%; height: 84%; transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center, rgba(35,182,200,.2), transparent 68%);
}

/* ------------------------------------------------- schede sospese sul hero */
.float-card {
  position: absolute; z-index: 3; width: 212px; padding: 15px 17px 17px;
  border-radius: 16px; border: 1px solid var(--line-2);
  background: rgba(7,32,38,.74); backdrop-filter: blur(18px) saturate(1.3);
  box-shadow: 0 28px 60px -32px rgba(0,0,0,1);
  animation: card-float 8.5s ease-in-out infinite;
}
.fc-a { top: 6%; right: -3%; }
.fc-b { bottom: 8%; left: -5%; animation-delay: -4.2s; }
@keyframes card-float { 0%, 100% { transform: translateY(-7px); } 50% { transform: translateY(7px); } }
.fc-top {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: .68rem; letter-spacing: .09em;
  text-transform: uppercase; color: var(--muted); font-weight: 600;
}
.fc-live { display: inline-flex; align-items: center; gap: 6px; color: var(--teal); }
.fc-live i { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); animation: pulse-dot 2.4s ease-out infinite; }
.fc-big {
  font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--ink);
  letter-spacing: -.05em; margin-top: 9px; line-height: 1; font-variant-numeric: tabular-nums;
}
.fc-big small { font-size: .78rem; font-weight: 500; color: var(--muted); margin-left: 6px; letter-spacing: 0; }
.fc-bars { display: flex; align-items: flex-end; gap: 6px; height: 36px; margin-top: 15px; }
.fc-bars i {
  flex: 1; border-radius: 3px; transform-origin: bottom;
  background: linear-gradient(180deg, var(--teal-2), rgba(35,182,200,.22));
  animation: bar-rise 1.5s cubic-bezier(.22,.9,.24,1) both;
}
.fc-bars i:nth-child(1) { height: 62%; animation-delay: .1s; }
.fc-bars i:nth-child(2) { height: 100%; animation-delay: .22s; }
.fc-bars i:nth-child(3) { height: 46%; animation-delay: .34s; }
.fc-bars i:nth-child(4) { height: 46%; animation-delay: .46s; }
@keyframes bar-rise { from { transform: scaleY(.04); opacity: 0; } to { transform: scaleY(1); opacity: 1; } }
.fc-legend { margin-top: 10px; font-family: var(--font-display); font-size: .66rem; letter-spacing: .06em; color: #6b929a; }
.fc-track { height: 5px; border-radius: 99px; background: rgba(255,255,255,.09); margin-top: 16px; overflow: hidden; }
.fc-track i {
  display: block; height: 100%; width: 88%; border-radius: 99px;
  background: linear-gradient(90deg, var(--teal-deep), var(--teal-2));
  box-shadow: 0 0 14px rgba(35,182,200,.75);
  animation: track-fill 1.8s cubic-bezier(.22,.9,.24,1) both .3s;
}
@keyframes track-fill { from { width: 0; } to { width: 88%; } }

/* --------------------------------------------------- barra delle garanzie */
.feature-bar {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  margin-top: 64px; border-radius: 20px; overflow: hidden;
  border: 1px solid var(--line); background: var(--line);
  box-shadow: 0 30px 70px -46px rgba(0,0,0,1);
}
.fb-item { display: flex; gap: 13px; padding: 22px 20px; background: rgba(6,28,33,.72); backdrop-filter: blur(14px); transition: background .3s ease; }
.fb-item:hover { background: rgba(35,182,200,.09); }
.fb-ico {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: 0 0 34px;
  color: var(--teal); border: 1px solid rgba(35,182,200,.28); background: rgba(35,182,200,.1);
}
.fb-item .fb-t { font-size: .95rem; font-weight: 700; margin-bottom: 3px; letter-spacing: -.02em; color: var(--ink); line-height: 1.2; }
.fb-item p { font-size: .82rem; color: var(--muted); line-height: 1.45; }

/* ---------------------------------------------------------- carta di vetro
   Un solo modello di scheda per tutto il sito: cambia il contenuto, non lo
   stile. È questo che tiene insieme la pagina. */
.card-base,
.glass-card, .prob-card, .step, .ben, .price-card, .views-card, .honest-card,
.form-card, .faq details {
  border-radius: var(--radius); border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  transition: transform .3s ease, border-color .3s ease, background .3s ease, box-shadow .3s ease;
}
.glass-card:hover, .prob-card:hover, .step:hover, .ben:hover, .price-card:hover, .honest-card:hover {
  transform: translateY(-5px); border-color: rgba(35,182,200,.4);
  background: linear-gradient(180deg, rgba(35,182,200,.09), var(--panel));
  box-shadow: var(--shadow);
}

.glass-card { border-radius: 20px; padding: 26px 24px 28px; backdrop-filter: blur(14px); text-align: left; }
.glass-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 64px; }
.gc-ico, .ico, .hc-ico, .prob-ico {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  border: 1px solid rgba(35,182,200,.3); background: rgba(35,182,200,.12);
  color: var(--teal); margin-bottom: 16px; flex: 0 0 42px;
}
.glass-card h3 { font-size: 1.07rem; margin-bottom: 9px; }
.glass-card p { font-size: .94rem; color: var(--muted); }
.gc-figure { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; align-items: baseline; gap: 9px; }
.gc-figure b { font-family: var(--font-display); font-size: 1.7rem; color: var(--ink); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.gc-figure span { font-size: .81rem; color: var(--muted); }

/* --------------------------------------------------------- intestazioni */
.sec-head { max-width: 62ch; margin-bottom: 56px; position: relative; }
.sec-head .eyebrow { margin-bottom: 20px; }
.sec-head p, .sec-p { margin-top: 18px; color: var(--body); font-size: 1.07rem; }
/* Intestazione centrata: dà respiro e mette il titolo al centro della scena. */
.sec-head.center { max-width: 820px; margin-left: auto; margin-right: auto; text-align: center; margin-bottom: 60px; }
.sec-head.center h2 { max-width: 15em; margin: 0 auto; }
.sec-head.center p { max-width: 56ch; margin-left: auto; margin-right: auto; }
/* Il rombo del filo a piombo che separa le sezioni. */
.sep { position: relative; height: 1px; margin: 0 auto; width: min(1120px, 92vw);
  background: linear-gradient(90deg, transparent, var(--line-2) 24%, var(--line-2) 76%, transparent); }
.sep::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 7px; height: 7px;
  transform: translate(-50%, -50%) rotate(45deg); background: var(--teal);
  box-shadow: 0 0 20px 3px rgba(35,182,200,.6);
}

/* ------------------------------------------------------ polvere di stelle
   Tre soli elementi compositati per tutta la pagina: ogni livello è un
   pugno di puntini luminosi disegnati come gradienti, che pulsano e
   derivano a ritmi diversi. Nessun canvas, nessun nodo in più nel DOM. */
.stardust { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.stardust i { position: absolute; inset: -8%; display: block; background-repeat: no-repeat; will-change: opacity, transform; }
.stardust .s1 {
  animation: twinkle-a 5.4s ease-in-out infinite;
  background-image:
    radial-gradient(circle 1.5px at 7% 12%, rgba(140,235,248,.95), transparent),
    radial-gradient(circle 1.5px at 19% 68%, rgba(140,235,248,.8), transparent),
    radial-gradient(circle 1.5px at 31% 24%, rgba(140,235,248,.9), transparent),
    radial-gradient(circle 1.5px at 44% 81%, rgba(140,235,248,.7), transparent),
    radial-gradient(circle 1.5px at 58% 9%, rgba(140,235,248,.9), transparent),
    radial-gradient(circle 1.5px at 66% 47%, rgba(140,235,248,.75), transparent),
    radial-gradient(circle 1.5px at 79% 73%, rgba(140,235,248,.9), transparent),
    radial-gradient(circle 1.5px at 88% 31%, rgba(140,235,248,.8), transparent),
    radial-gradient(circle 1.5px at 95% 58%, rgba(140,235,248,.7), transparent),
    radial-gradient(circle 1.5px at 24% 44%, rgba(140,235,248,.85), transparent),
    radial-gradient(circle 1.5px at 51% 62%, rgba(140,235,248,.7), transparent),
    radial-gradient(circle 1.5px at 72% 16%, rgba(140,235,248,.9), transparent);
}
.stardust .s2 {
  animation: twinkle-b 8.2s ease-in-out infinite;
  background-image:
    radial-gradient(circle 2px at 4% 41%, rgba(35,182,200,.75), transparent),
    radial-gradient(circle 2px at 15% 88%, rgba(35,182,200,.6), transparent),
    radial-gradient(circle 2px at 27% 6%, rgba(35,182,200,.7), transparent),
    radial-gradient(circle 2px at 38% 53%, rgba(35,182,200,.55), transparent),
    radial-gradient(circle 2px at 49% 29%, rgba(35,182,200,.7), transparent),
    radial-gradient(circle 2px at 61% 92%, rgba(35,182,200,.6), transparent),
    radial-gradient(circle 2px at 74% 39%, rgba(35,182,200,.7), transparent),
    radial-gradient(circle 2px at 84% 65%, rgba(35,182,200,.55), transparent),
    radial-gradient(circle 2px at 92% 14%, rgba(35,182,200,.7), transparent),
    radial-gradient(circle 2px at 12% 26%, rgba(35,182,200,.6), transparent);
}
.stardust .s3 {
  animation: twinkle-c 11.5s ease-in-out infinite, drift 30s linear infinite alternate;
  background-image:
    radial-gradient(circle 3.2px at 9% 76%, rgba(79,214,230,.5), transparent),
    radial-gradient(circle 3.2px at 35% 37%, rgba(79,214,230,.42), transparent),
    radial-gradient(circle 3.2px at 55% 78%, rgba(79,214,230,.5), transparent),
    radial-gradient(circle 3.2px at 68% 22%, rgba(79,214,230,.4), transparent),
    radial-gradient(circle 3.2px at 86% 87%, rgba(79,214,230,.48), transparent),
    radial-gradient(circle 3.2px at 97% 41%, rgba(79,214,230,.4), transparent);
}
@keyframes twinkle-a { 0%, 100% { opacity: .22; } 50% { opacity: .95; } }
@keyframes twinkle-b { 0%, 100% { opacity: .75; } 50% { opacity: .16; } }
@keyframes twinkle-c { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }
@keyframes drift { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-18px, -34px, 0); } }

/* ---------------------------------------------------------- arte di sezione
   Le immagini fra una sezione e l'altra. Fondono in "screen": il nero
   sparisce e resta solo la luce, così non si vede mai il bordo di un
   rettangolo incollato sulla pagina. */
.sec-art {
  position: absolute; z-index: 0; pointer-events: none; user-select: none;
  mix-blend-mode: screen; opacity: .62;
  -webkit-mask-image: radial-gradient(closest-side, #000 40%, transparent 76%);
          mask-image: radial-gradient(closest-side, #000 40%, transparent 76%);
  animation: art-float 15s ease-in-out infinite;
}
.sec-art img { display: block; width: 100%; height: auto; }
.art-r { right: -7%; top: 2%; width: min(420px, 40vw); }
.art-l { left: -9%; bottom: -4%; width: min(380px, 36vw); animation-delay: -5s; }
.art-rb { right: -6%; bottom: -6%; width: min(360px, 34vw); animation-delay: -8s; }
@keyframes art-float { 0%, 100% { transform: translateY(-12px); } 50% { transform: translateY(12px); } }

/* Piccole croci di misura che galleggiano: lo stesso segno del mirino. */
.plus { position: absolute; z-index: 0; width: 13px; height: 13px; pointer-events: none; opacity: .55;
  animation: art-float 11s ease-in-out infinite; }
.plus::before, .plus::after { content: ""; position: absolute; background: var(--teal); border-radius: 2px; box-shadow: 0 0 12px rgba(35,182,200,.9); }
.plus::before { left: 50%; top: 0; width: 1.6px; height: 100%; transform: translateX(-50%); }
.plus::after { top: 50%; left: 0; height: 1.6px; width: 100%; transform: translateY(-50%); }
.p1 { left: 3%; top: 16%; }
.p2 { right: 5%; top: 24%; animation-delay: -3s; }
.p3 { left: 8%; bottom: 14%; animation-delay: -6s; }
.p4 { right: 11%; bottom: 22%; animation-delay: -8.5s; }

/* ------------------------------------------------------------- problema */
.prob-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.prob-card { padding: 28px; }
.prob-card .n { font-family: var(--font-display); color: var(--teal); font-weight: 700; font-size: .82rem; letter-spacing: .12em; }
.prob-card h3 { font-size: 1.1rem; margin: 12px 0 9px; }
.prob-card p { color: var(--muted); font-size: .96rem; }

/* ---------------------------------------------------------------- passi */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; padding: 32px 28px; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  position: absolute; top: 28px; right: 28px;
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: rgba(255,255,255,.13);
}
.step h3 { font-size: 1.18rem; margin-bottom: 9px; }
.step p { color: var(--muted); }

/* --------------------------------------------------------------- scheda */
.scheda-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: 58px; align-items: center; }
.views-card { padding: 28px 30px; }
.views-head { font-family: var(--font-display); font-size: .74rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.views-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.views-row span { color: var(--body); font-weight: 500; }
.views-row b { font-family: var(--font-display); font-size: 1.05rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.views-row.total { border-bottom: none; padding-top: 18px; }
.views-row.total span { color: var(--ink); font-weight: 700; }
.views-row.total b { color: var(--teal); font-size: 1.4rem; }
.views-note { margin-top: 16px; font-size: .85rem; color: var(--muted); line-height: 1.55; }

.tick-list { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-direction: column; gap: 13px; }
.tick-list li { position: relative; padding-left: 30px; color: var(--body); }
.tick-list li::before {
  content: ""; position: absolute; left: 0; top: .52em; width: 15px; height: 8px;
  border-left: 2.4px solid var(--teal); border-bottom: 2.4px solid var(--teal); transform: rotate(-45deg);
}
.tick-list.sm { margin-top: 20px; gap: 10px; font-size: .94rem; }

/* -------------------------------------------------------------- principio */
.honest-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.honest-card { padding: 28px; border-left: 2px solid var(--teal); }
.honest-card h3 { font-size: 1.08rem; margin-bottom: 9px; }
.honest-card p { color: var(--muted); font-size: .96rem; }

/* --------------------------------------------------------------- vantaggi */
.ben-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.ben { display: flex; gap: 18px; padding: 27px; }
.ben .ico { margin-bottom: 0; }
.ben h3 { font-size: 1.1rem; margin-bottom: 7px; }
.ben p { color: var(--muted); font-size: .96rem; }

/* ---------------------------------------------------------------- prezzi */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.price-card { position: relative; padding: 32px 28px; border-radius: 20px; }
.price-card.featured { border-color: rgba(35,182,200,.5); box-shadow: var(--glow); }
.pc-tag {
  position: absolute; top: -12px; left: 28px; background: var(--teal); color: #04171b;
  font-family: var(--font-display); font-size: .7rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; padding: 5px 13px; border-radius: 999px;
}
.pc-name { font-family: var(--font-display); font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.pc-price { font-family: var(--font-display); font-size: 2.5rem; font-weight: 700; color: var(--ink); letter-spacing: -.045em; margin: 12px 0 5px; font-variant-numeric: tabular-nums; }
.pc-price span { font-size: .92rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.pc-for { color: var(--muted); font-size: .94rem; }
.center-cta { text-align: center; margin-top: 44px; }

/* ------------------------------------------------------------------- faq */
.faq-list { display: flex; flex-direction: column; gap: 12px; max-width: 80ch; margin: 0 auto; }
.faq details { padding: 2px 24px; }
.faq details[open] { border-color: rgba(35,182,200,.3); }
.faq summary {
  cursor: pointer; list-style: none; font-family: var(--font-display); font-weight: 600;
  color: var(--ink); padding: 19px 36px 19px 0; position: relative; font-size: 1.02rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 4px; top: 50%; width: 9px; height: 9px;
  border-right: 2.4px solid var(--teal); border-bottom: 2.4px solid var(--teal);
  transform: translateY(-70%) rotate(45deg); transition: transform .25s ease;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { color: var(--muted); padding-bottom: 22px; max-width: 72ch; }
.faq details p a { color: var(--teal); font-weight: 600; }

/* --------------------------------------------------------- richiesta demo */
.cta-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 58px; align-items: start; }
.cta-copy h2 { margin: 18px 0; }
.cta-copy p { color: var(--body); font-size: 1.07rem; margin-bottom: 24px; }
.cta-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 15px; }
.cta-list li { display: flex; align-items: center; gap: 13px; font-weight: 600; color: var(--ink); }
.cta-list .chk {
  width: 25px; height: 25px; border-radius: 999px; background: rgba(35,182,200,.14);
  color: var(--teal); display: grid; place-items: center; flex: 0 0 25px;
  border: 1px solid rgba(35,182,200,.3);
}

.form-card { padding: 32px; border-radius: 22px; box-shadow: var(--shadow); }
.form-card h3 { font-size: 1.35rem; margin-bottom: 5px; }
.form-card .hint { color: var(--muted); font-size: .93rem; margin-bottom: 22px; }
.field { margin-bottom: 15px; }
.field label { display: block; font-family: var(--font-display); font-weight: 500; font-size: .88rem; margin-bottom: 7px; color: var(--body); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border: 1px solid var(--line-2); border-radius: 11px;
  font: inherit; font-size: .97rem; color: var(--ink); background: rgba(255,255,255,.04);
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.field input::placeholder, .field textarea::placeholder { color: #74969d; }
.field select option { background: #08252b; color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--teal); background: rgba(255,255,255,.07);
  box-shadow: 0 0 0 3px rgba(35,182,200,.34);
}
/* Chi naviga da tastiera deve vedere lo stesso contorno del resto del sito. */
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: 2px solid var(--teal-2); outline-offset: 2px;
}
.field textarea { resize: vertical; min-height: 74px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.consent { display: flex; gap: 11px; align-items: flex-start; margin: 8px 0 20px; }
.consent input { margin-top: 4px; flex: 0 0 auto; width: 16px; height: 16px; accent-color: var(--teal); }
.consent label { font-size: .81rem; color: var(--muted); line-height: 1.5; }
.consent label a { color: var(--teal); text-decoration: underline; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { margin-top: 15px; padding: 13px 15px; border-radius: 11px; font-size: .94rem; display: none; }
.form-msg.ok { display: block; background: rgba(35,182,200,.14); color: var(--teal-2); border: 1px solid rgba(35,182,200,.3); }
.form-msg.err { display: block; background: rgba(230,90,90,.12); color: #ff9a9a; border: 1px solid rgba(230,90,90,.3); }
.form-card .btn-primary { width: 100%; justify-content: center; }

/* -------------------------------------------------- pagine di testo */
.page-head { padding: 148px 0 60px; border-bottom: 1px solid var(--line); position: relative; }
.page-head h1 { font-size: clamp(2rem, 3.8vw, 3rem); margin-top: 18px; }
.page-head .updated { margin-top: 16px; color: var(--muted); font-size: .95rem; }
.prose { padding: 68px 0 96px; }
.prose .wrap { max-width: 78ch; }
.prose h2 { font-size: 1.5rem; margin: 48px 0 16px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.13rem; margin: 30px 0 11px; color: #d9ecef; }
.prose p { color: var(--body); margin-bottom: 15px; }
.prose ul { color: var(--body); padding-left: 22px; margin: 0 0 20px; }
.prose li { margin-bottom: 9px; }
.prose li::marker { color: var(--teal); }
.prose a { color: var(--teal); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.callout {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line); border-left: 2px solid var(--teal);
  border-radius: 12px; padding: 22px 26px; margin: 26px 0;
}
.callout p:last-child { margin-bottom: 0; }
.callout .callout-title { font-family: var(--font-display); font-weight: 700; color: var(--ink); margin-bottom: 9px; }
.data-table { width: 100%; border-collapse: collapse; margin: 20px 0 26px; font-size: .94rem; }
.data-table th, .data-table td { text-align: left; padding: 13px 15px; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table th { font-family: var(--font-display); font-weight: 600; color: var(--ink); background: rgba(255,255,255,.04); }
.data-table td { color: var(--muted); }
.table-scroll { overflow-x: auto; }

/* ------------------------------------------------------------ piè di pagina */
footer.foot { border-top: 1px solid var(--line); padding: 66px 0 34px; position: relative; }
footer.foot .brand { margin-bottom: 18px; font-size: 1.12rem; }
footer.foot .brand .mark { width: 30px; height: 30px; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 38px; }
.foot-legal { font-size: .87rem; line-height: 1.75; color: var(--muted); }
.foot-col h3 { font-family: var(--font-display); font-size: .74rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--teal); margin-bottom: 16px; }
.foot-col a { display: block; color: var(--muted); font-size: .93rem; padding: 6px 0; transition: color .18s ease; }
.foot-col a:hover { color: var(--ink); }
.foot-bottom {
  display: flex; flex-wrap: wrap; gap: 12px 26px; align-items: center; justify-content: space-between;
  margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--line);
}
footer.foot small { color: #6b929a; font-size: .84rem; }

/* Firma dell'agenzia che ha fatto il sito. Stesso schema di health-club.it. */
.powered {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .82rem; color: #6b929a; transition: color .2s ease;
}
.powered img { width: 19px; height: auto; opacity: .9; transition: opacity .2s ease, transform .2s ease; }
.powered b { font-family: var(--font-brand); font-weight: 600; color: #9fc2c8; letter-spacing: -.01em; }
.powered:hover b { color: var(--teal-2); }
.powered:hover img { opacity: 1; transform: scale(1.08); }
@media (max-width: 560px) { .foot-bottom { justify-content: flex-start; } }

/* ------------------------------------------------------------- torna su */
.back-to-top {
  position: fixed; right: 24px; bottom: 24px; width: 46px; height: 46px;
  border-radius: 50%; border: 1px solid var(--line-2);
  background: rgba(6,30,35,.9); backdrop-filter: blur(10px); color: var(--teal);
  display: grid; place-items: center; cursor: pointer; z-index: 60;
  box-shadow: var(--shadow); opacity: 0; visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease, transform .2s ease, border-color .2s ease;
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { transform: translateY(-3px); border-color: var(--teal); }
@media (max-width: 560px) { .back-to-top { right: 16px; bottom: 16px; width: 42px; height: 42px; } }

/* ---------------------------------------------------------------- reveal
   L'animazione vale SOLO se il JavaScript è attivo: senza, il contenuto
   resta visibile — per l'utente e per i motori di ricerca. */
.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .step, .price-card, .glass-card, .prob-card, .ben, .honest-card { transition: none; }
  .badge-pill .dot-live, .fc-live i { animation: none; }
  /* Niente scintille né galleggiamenti per chi ha chiesto meno movimento:
     restano visibili, ma ferme. */
  .stardust i, .sec-art, .plus, .float-card, .fc-bars i, .fc-track i { animation: none; }
  .stardust .s1 { opacity: .6; } .stardust .s2 { opacity: .45; } .stardust .s3 { opacity: .5; }
  .fc-track i { width: 88%; }
}

/* ------------------------------------------------------------- adattivo */
@media (max-width: 1080px) {
  .float-card { width: 186px; padding: 13px 14px 15px; }
  .fc-a { right: -2%; } .fc-b { left: -2%; }
  .feature-bar { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  section { padding: 74px 0; }
  .hero-dark { padding: 22px 0 62px; }
  .hero-split { grid-template-columns: 1fr; gap: 8px; }
  .hero-copy { text-align: center; }
  .hero-copy .lede { margin-left: auto; margin-right: auto; }
  .hero-cta, .trust-row { justify-content: center; }
  .hero-art { min-height: 0; margin-top: 34px; }
  .hero-figure { width: min(330px, 78%); }
  .fc-a { top: 0; right: -6px; } .fc-b { bottom: 2%; left: -6px; }
  .float-card { width: 158px; }
  .fc-big { font-size: 1.6rem; }
  .feature-bar { margin-top: 46px; }
  .cta-grid, .scheda-grid { grid-template-columns: 1fr; gap: 40px; }
  .prob-grid, .steps-grid, .ben-grid, .honest-grid, .price-grid, .glass-grid { grid-template-columns: 1fr; }
  .glass-grid { margin-top: 46px; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .nav-links a.link { display: none; }
  .nav-inner { padding: 0 10px 0 16px; }
  .page-head { padding: 128px 0 48px; }
  /* Su schermo stretto l'arte di sezione toglierebbe respiro al testo:
     restano le scintille, che non occupano spazio. */
  .sec-art, .plus { display: none; }
  .sec-head.center { max-width: 100%; }
}
@media (max-width: 560px) {
  .row2 { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .feature-bar { grid-template-columns: 1fr; }
  .hero-figure { width: min(290px, 82%); }
  /* Le schede sospese restano leggibili solo se il testo non va a capo:
     corpo più piccolo e la didascalia sparisce. */
  .float-card { width: 152px; padding: 11px 12px 13px; }
  .fc-top { font-size: .58rem; letter-spacing: .05em; white-space: nowrap; }
  .fc-big { font-size: 1.45rem; }
  .fc-big small { font-size: .68rem; margin-left: 4px; }
  .fc-bars { height: 26px; margin-top: 11px; }
  .fc-track { margin-top: 12px; }
  .fc-legend { display: none; }
  /* Su schermo stretto la pastiglia deve stare su una riga sola: spezzata
     lascia il pallino da solo a sinistra e sembra un errore. */
  .badge-pill { font-size: .71rem; padding: 6px 13px 6px 10px; gap: 8px; }
  /* Stessa ragione per le garanzie: incolonnate, senza puntini orfani. */
  .trust-row { flex-direction: column; gap: 12px; }
  .trust-items { flex-direction: column; align-items: center; gap: 8px; }
  .trust-items li + li::before { display: none; }
}
