/* ============================================================
   Chronos SRL — Landing premium B2B
   Palette: oro raffinato su nero caldo · type Cinzel + Hanken Grotesk
   3 direzioni via body[data-variant="a|b|c"]:
     a = Istituzionale  ·  b = Premium Oro (default)  ·  c = Editoriale
   ============================================================ */

:root {
  /* fondo caldo, bassa saturazione */
  --bg: #0b0a08;
  --bg-2: #100d0a;
  --bg-3: #14110d;
  /* inchiostro avorio caldo */
  --ink: #f2ede1;
  --ink-soft: rgba(242, 237, 225, 0.66);
  --ink-faint: rgba(242, 237, 225, 0.40);
  --hair: rgba(242, 237, 225, 0.12);
  --hair-2: rgba(242, 237, 225, 0.07);
  /* oro raffinato (allineato al wordmark, meno neon) */
  --gold-1: #ecd9a6;
  --gold: #c9a44c;
  --gold-2: #a07d33;
  --gold-line: rgba(201, 164, 76, 0.30);
  --gold-soft: rgba(201, 164, 76, 0.10);
  --gold-grad: linear-gradient(135deg, #f0dcab 0%, #d4ad57 46%, #a87f30 100%);

  --serif: 'Cinzel', Georgia, serif;
  --sans: 'Hanken Grotesk', system-ui, -apple-system, sans-serif;

  --maxw: 1180px;
  --pad: clamp(20px, 5vw, 64px);

  /* token che le varianti ridefiniscono */
  --display-fill: var(--gold-grad);   /* riempimento titoli display */
  --glow: 0 0 60px rgba(201, 164, 76, 0.10);
  --card-bg: linear-gradient(165deg, rgba(255,255,255,0.035), rgba(255,255,255,0.012));
  --card-border: var(--gold-line);
  --radius: 16px;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  line-height: 1.6;
}

/* texture di fondo: vignetta + alone oro tenue in alto */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(201, 164, 76, 0.10), transparent 55%),
    radial-gradient(100% 100% at 50% 100%, rgba(0,0,0,0.55), transparent 60%);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* sfondo stellato animato (canvas globale) */
#stars { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.narrow { max-width: 760px; }

main, header, footer { position: relative; z-index: 1; }

/* ============================================================
   TIPOGRAFIA
   ============================================================ */
.eyebrow {
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex; align-items: center; gap: 12px;
}
.eyebrow::before {
  content: ''; width: 28px; height: 1px; background: var(--gold-line);
}
.eyebrow--center { justify-content: center; }

.display {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: 0.01em;
  background: var(--display-fill);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

h1.display { font-size: clamp(2.4rem, 6vw, 4.6rem); }
h2.display { font-size: clamp(1.9rem, 4.2vw, 3.1rem); }
h3 { font-family: var(--serif); font-weight: 600; font-size: 1.3rem; color: var(--ink); letter-spacing: 0.01em; }

.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); line-height: 1.66; color: var(--ink-soft); }
.muted { color: var(--ink-soft); }
.faint { color: var(--ink-faint); }

p + p { margin-top: 0.9em; }

/* ============================================================
   BOTTONI
   ============================================================ */
.btn {
  font-family: var(--sans); font-weight: 600; font-size: 0.95rem; letter-spacing: 0.02em;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 30px; border-radius: 999px; border: 1px solid transparent; cursor: pointer;
  transition: transform .2s ease, box-shadow .25s ease, border-color .25s ease, background .25s ease, color .2s ease;
  white-space: nowrap;
}
.btn--gold {
  background: var(--gold-grad); color: #2a1f08;
  box-shadow: 0 10px 30px rgba(168, 127, 48, 0.30);
}
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 16px 44px rgba(201, 164, 76, 0.42); }
.btn--ghost {
  background: transparent; color: var(--ink); border-color: var(--hair);
}
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-1); }
.btn--lg { padding: 17px 38px; font-size: 1rem; }

.arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ============================================================
   VARIANT SWITCHER (sempre visibile, in alto)
   ============================================================ */
.switcher {
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%);
  z-index: 80; display: flex; align-items: center; gap: 4px;
  padding: 5px; border-radius: 999px;
  background: rgba(16, 13, 10, 0.82); backdrop-filter: blur(14px);
  border: 1px solid var(--hair);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}
.switcher__label {
  font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-faint); padding: 0 10px 0 12px; font-weight: 600;
}
.switcher button {
  font-family: var(--sans); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.02em;
  color: var(--ink-soft); background: transparent; border: none; cursor: pointer;
  padding: 8px 16px; border-radius: 999px; transition: color .2s ease, background .2s ease;
  white-space: nowrap;
}
.switcher button:hover { color: var(--ink); }
.switcher button.is-active { color: #2a1f08; background: var(--gold-grad); }
@media (max-width: 620px) {
  .switcher__label { display: none; }
  .switcher button { padding: 8px 12px; font-size: 0.72rem; }
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  transition: background .35s ease, border-color .35s ease, padding .35s ease;
  border-bottom: 1px solid transparent;
  padding: 18px 0;
}
.nav--solid {
  background: rgba(11, 10, 8, 0.78); backdrop-filter: blur(16px) saturate(1.1);
  border-bottom-color: var(--hair); padding: 10px 0;
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav__brand { display: flex; align-items: center; }
.nav__logo { height: 43px; width: auto; display: block; transition: height .35s ease; }
.nav--solid .nav__logo { height: 37px; }
.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a {
  font-size: 0.9rem; color: var(--ink-soft); font-weight: 500; letter-spacing: 0.01em;
  position: relative; transition: color .2s ease;
}
.nav__links a::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: -6px; height: 1px;
  background: var(--gold); transition: right .25s ease;
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { right: 0; }
.nav__cta { display: flex; align-items: center; gap: 14px; }
.nav__toggle { display: none; background: none; border: none; color: var(--gold); font-size: 1.5rem; cursor: pointer; line-height: 1; }

@media (max-width: 900px) {
  .nav__links, .nav__cta .btn { display: none; }
  .nav__toggle { display: block; }
  .nav__links.open {
    display: flex; position: fixed; inset: 64px 0 auto 0; flex-direction: column;
    align-items: stretch; gap: 0; padding: 8px var(--pad) 24px;
    background: rgba(11, 10, 8, 0.96); backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--hair);
  }
  .nav__links.open a { padding: 16px 0; border-bottom: 1px solid var(--hair-2); }
}

/* ============================================================
   SEZIONI
   ============================================================ */
section { position: relative; }
.section { padding: clamp(80px, 12vh, 150px) 0; }
.section--tight { padding: clamp(60px, 9vh, 110px) 0; }
.section-head { max-width: 680px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head .eyebrow { margin-bottom: 18px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { margin-top: 18px; }
.divider { height: 1px; background: var(--hair); border: none; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 140px 0 90px; position: relative; overflow: hidden;
}
/* anello/tacche d'orologio decorativo (richiamo Chronos) */
.hero__rings {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -54%);
  width: min(880px, 130vw); aspect-ratio: 1; z-index: 0; pointer-events: none;
  opacity: 1;
  -webkit-mask-image: radial-gradient(closest-side, #000 64%, transparent 86%);
  mask-image: radial-gradient(closest-side, #000 64%, transparent 86%);
}
/* bagliore dorato diffuso dietro il cerchio */
.hero__rings::before {
  content: ''; position: absolute; inset: 14%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(201,164,76,0.16), rgba(201,164,76,0.05) 60%, transparent 75%);
  filter: blur(8px);
}
.hero__rings svg { width: 100%; height: 100%; }
.hero__rings circle { fill: none; stroke: rgba(220,185,105,0.92); }
.hero__rings line { stroke: rgba(245,230,185,1); stroke-width: 2.5; }
.hero__rings .ring-arc { stroke: #fbeec2; opacity: 1; stroke-linecap: round; filter: drop-shadow(0 0 14px rgba(251,238,194,1)) drop-shadow(0 0 30px rgba(236,217,166,0.95)) drop-shadow(0 0 50px rgba(201,164,76,0.6)); }
.hero__rings .ring-ticks, .hero__rings .ring-arc, .hero__rings .ring-outer, .hero__rings .ring-inner { transform-box: fill-box; transform-origin: center; }
.hero__inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.hero__mark { width: clamp(64px, 9vw, 96px); height: auto; margin-bottom: 26px; filter: drop-shadow(0 0 22px rgba(201,164,76,0.22)); }
.hero__word { width: min(540px, 82vw); height: auto; margin-bottom: 22px; }
.hero__title { margin-bottom: 22px; }
.hero__tag {
  font-size: clamp(0.78rem, 2.4vw, 0.95rem); letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--gold); font-weight: 600; margin-bottom: 24px;
}
.hero__sub { max-width: 600px; margin: 0 auto 36px; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.hero__compliance {
  margin-top: 30px; font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-faint); display: inline-flex; gap: 14px; align-items: center; flex-wrap: wrap; justify-content: center;
}
.hero__compliance .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--gold); display: inline-block; }
.scroll-hint {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 1;
  font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-faint);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.scroll-hint .line { width: 1px; height: 34px; background: linear-gradient(var(--gold), transparent); animation: drop 2s ease-in-out infinite; }
@keyframes drop { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* Mobile: cerchio decorativo centrato dietro al titolo, non dietro ai bottoni */
@media (max-width: 620px) {
  .hero { padding: 116px 0 96px; }
  .hero__rings {
    width: min(680px, 130vw);
    transform: translate(-50%, -50%);
  }
  /* il blocco conformità arriva in fondo all'hero: nascondi l'indicatore "Scorri" per non sovrapporlo */
  .scroll-hint { display: none; }
}

/* ============================================================
   CHI SIAMO
   ============================================================ */
.about__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
#chisiamo { overflow: clip; min-height: 88vh; display: flex; align-items: center; padding-top: clamp(90px, 14vh, 170px); padding-bottom: clamp(90px, 14vh, 170px); }
#chisiamo .wrap { position: relative; z-index: 1; }
.about__aura { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.about__glow {
  position: absolute; top: 50%; right: 4%; width: min(560px, 60vw); aspect-ratio: 1;
  transform: translate(0, -50%); border-radius: 50%;
  background: radial-gradient(closest-side, rgba(201,164,76,0.22), rgba(201,164,76,0.06) 52%, transparent 72%);
  filter: blur(20px);
}
.about__beam {
  position: absolute; left: -10%; right: -10%; height: 1px; transform-origin: center;
  background: linear-gradient(90deg, transparent, rgba(236,217,166,0.55), transparent);
}
.about__symbol {
  position: absolute; top: 50%; right: 4%; width: min(380px, 44vw); height: auto;
  transform: translateY(-50%); opacity: 0.96;
  filter: drop-shadow(0 0 30px rgba(201,164,76,0.45)) drop-shadow(0 0 70px rgba(201,164,76,0.22));
}
.about__beam--1 { top: 38%; transform: rotate(-7deg); }
.about__beam--2 { top: 64%; transform: rotate(-7deg); opacity: 0.6; }
@media (max-width: 760px) { .about__glow { right: -20%; opacity: 0.7; } .about__symbol { right: -6%; opacity: 0.5; width: 58vw; } }
@media (prefers-reduced-motion: no-preference) {
  .about__glow { animation: auraDrift 11s ease-in-out infinite; }
  .about__symbol { animation: symbolFloat 9s ease-in-out infinite; }
}
@keyframes auraDrift { 0%, 100% { transform: translate(0, -50%) scale(1); opacity: 1; } 50% { transform: translate(-6%, -54%) scale(1.08); opacity: 0.75; } }
@keyframes symbolFloat {
  0%, 100% { transform: translateY(-50%) translateY(0); filter: drop-shadow(0 0 30px rgba(201,164,76,0.4)) drop-shadow(0 0 70px rgba(201,164,76,0.2)); }
  50% { transform: translateY(-50%) translateY(-16px); filter: drop-shadow(0 0 44px rgba(236,217,166,0.65)) drop-shadow(0 0 100px rgba(201,164,76,0.38)); }
}
.about__copy .lead { margin-top: 18px; }
.about__copy p.muted { margin-top: 16px; font-size: 0.98rem; }
.about__plate {
  position: relative; border: 1px solid var(--card-border); border-radius: var(--radius);
  background: var(--card-bg); padding: 36px; min-height: 440px; gap: 24px;
  display: flex; flex-direction: column; justify-content: space-between; overflow: hidden;
}
.about__plate .symbol { width: 120px; opacity: 0.9; filter: drop-shadow(0 0 30px rgba(201,164,76,0.25)); }
.about__plate .stamp {
  font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold);
  border: 1px solid var(--gold-line); border-radius: 999px; padding: 8px 16px; align-self: flex-start;
}
.about__plate .quote { font-family: var(--serif); font-size: 1.15rem; line-height: 1.4; color: var(--ink); }
.about__plate::after {
  content: ''; position: absolute; inset: -40% -10% auto auto; width: 80%; aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(201,164,76,0.14), transparent 70%); pointer-events: none;
}

/* ============================================================
   NUMERI / FIGURES
   ============================================================ */
.figures { border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.figures__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.figure { padding: 14px clamp(14px, 3vw, 34px); text-align: center; border-left: 1px solid var(--hair); }
.figure:first-child { border-left: none; }
.figure__n { font-family: var(--serif); font-weight: 700; font-size: clamp(2rem, 4.6vw, 3.1rem); line-height: 1; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.figure__l { margin-top: 12px; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }
@media (max-width: 760px) {
  .figures__grid { grid-template-columns: 1fr 1fr; }
  .figure { padding: 24px 14px; border-top: 1px solid var(--hair); }
  .figure:nth-child(-n+2) { border-top: none; }
  .figure:nth-child(odd) { border-left: none; }
}

/* ============================================================
   COME FUNZIONA — stepper interattivo
   ============================================================ */
.steps { display: grid; grid-template-columns: 280px 1fr; gap: clamp(28px, 5vw, 56px); align-items: stretch; }
.steps__rail { position: relative; display: flex; flex-direction: column; gap: 2px; }
.steps__line { position: absolute; left: 18px; top: 32px; bottom: 32px; width: 2px; background: var(--hair); }
.steps__fill { position: absolute; left: 0; top: 0; width: 100%; height: 0; background: var(--gold-grad); transition: height .55s cubic-bezier(.2,.7,.2,1); }
.steps__node {
  position: relative; z-index: 1; display: flex; align-items: center; gap: 15px; width: 100%;
  padding: 11px 12px 11px 0; background: none; border: 0; cursor: pointer; text-align: left;
  color: var(--ink-soft); border-radius: 10px; transition: color .2s ease;
}
.steps__node:hover { color: var(--ink); }
.steps__node .num {
  flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--hair);
  display: grid; place-items: center; font-family: var(--serif); font-size: 0.92rem; font-weight: 600;
  color: var(--ink-soft); background: var(--bg); transition: color .3s ease, background .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.steps__node .lbl { font-family: var(--serif); font-size: 1.06rem; line-height: 1.2; }
.steps__node.is-done .num { border-color: var(--gold-line); color: var(--gold); }
.steps__node.is-active { color: var(--ink); }
.steps__node.is-active .num { border-color: var(--gold); color: #2a1f08; background: var(--gold-grad); box-shadow: 0 0 0 4px var(--gold-soft); }
.steps__node:focus-visible { outline: none; }
.steps__node:focus-visible .num { box-shadow: 0 0 0 3px var(--gold-soft); }

.steps__stage {
  position: relative; border: 1px solid var(--card-border); border-radius: var(--radius);
  background: var(--card-bg); padding: clamp(26px, 4vw, 44px); overflow: hidden;
  display: flex; flex-direction: column; min-height: 330px;
}
.steps__timer { position: absolute; top: 0; left: 0; height: 2px; width: 0; background: var(--gold-grad); opacity: .9; }
.steps__panel { display: none; flex-direction: column; align-items: flex-start; gap: 16px; }
.steps__panel.is-active { display: flex; animation: stepIn .55s cubic-bezier(.2,.7,.2,1); }
@keyframes stepIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.steps__icon { width: 56px; height: 56px; border-radius: 15px; border: 1px solid var(--gold-line); background: var(--gold-soft); color: var(--gold); display: grid; place-items: center; }
.steps__icon svg { width: 28px; height: 28px; }
.steps__count { font-family: var(--serif); color: var(--gold); font-size: 0.85rem; letter-spacing: 0.16em; }
.steps__panel h3 { font-size: clamp(1.4rem, 3vw, 2rem); }
.steps__panel p { color: var(--ink-soft); max-width: 50ch; font-size: 1.04rem; line-height: 1.65; }
.steps__nav { margin-top: auto; display: flex; gap: 10px; padding-top: 30px; }
.steps__arrow {
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--hair); background: transparent;
  color: var(--ink); cursor: pointer; display: grid; place-items: center; transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.steps__arrow:hover { border-color: var(--gold); color: var(--gold-1); background: var(--gold-soft); }
.steps__arrow svg { width: 20px; height: 20px; }
@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; gap: 26px; }
  .steps__rail { flex-direction: row; gap: 0; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
  .steps__rail::-webkit-scrollbar { display: none; }
  .steps__line { left: 32px; right: 32px; top: 19px; bottom: auto; width: auto; height: 2px; }
  .steps__fill { top: 0; left: 0; height: 100%; width: 0; transition: width .55s cubic-bezier(.2,.7,.2,1); }
  .steps__node { flex-direction: column; gap: 8px; min-width: 92px; padding: 0 6px; text-align: center; }
  .steps__node .lbl { font-size: 0.8rem; }
  .steps__node.is-active .lbl, .steps__node:not(.is-active) .lbl { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
}

/* ============================================================
   SLOT 3D — scheda "Operatore professionale"
   ============================================================ */
.slot3d { display: flex; flex-direction: column; align-items: center; gap: 20px; width: 100%; margin: 4px 0; }
.slot3d__cabinet {
  position: relative; padding: 16px; border-radius: 16px; width: 100%; max-width: 300px;
  background: linear-gradient(165deg, rgba(201,164,76,0.14), rgba(0,0,0,0.35));
  border: 1px solid var(--gold-line);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 20px 50px rgba(0,0,0,0.45);
}
.slot3d__window {
  position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  padding: 10px; border-radius: 11px; background: #08060455; overflow: hidden;
  perspective: 720px;
}
.slot3d__reel {
  position: relative; height: 84px; transform-style: preserve-3d; will-change: transform;
  border-radius: 7px; background: linear-gradient(180deg, #0c0a08, #16120c);
  border: 1px solid rgba(242,237,225,0.07);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 26%, #000 74%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 26%, #000 74%, transparent);
}
.slot3d__face {
  position: absolute; left: 0; right: 0; top: 0; height: 84px;
  display: grid; place-items: center; backface-visibility: hidden;
  font-family: var(--serif); font-weight: 700; font-size: 2rem; color: var(--gold-1);
}
.slot3d__face svg { width: 38px; height: 38px; }
.slot3d__face img { width: 38px; height: 38px; opacity: 0.95; }
.slot3d__line {
  position: absolute; left: 8px; right: 8px; top: 50%; height: 84px; transform: translateY(-50%);
  border-top: 1px solid var(--gold-line); border-bottom: 1px solid var(--gold-line);
  pointer-events: none; border-radius: 4px; transition: box-shadow .4s ease, border-color .4s ease;
}
.slot3d.win .slot3d__cabinet { border-color: var(--gold); box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 0 50px rgba(201,164,76,0.22); }
.slot3d.win .slot3d__line { border-color: var(--gold); box-shadow: inset 0 0 32px rgba(201,164,76,0.16); }
.slot3d__btn {
  font-family: var(--sans); font-weight: 600; font-size: 0.92rem; letter-spacing: 0.04em;
  padding: 12px 28px; border-radius: 999px; cursor: pointer;
  background: var(--gold-grad); color: #2a1f08; border: 1px solid transparent;
  box-shadow: 0 8px 22px rgba(168,127,48,0.28); transition: transform .2s ease, box-shadow .25s ease, opacity .2s ease;
}
.slot3d__btn:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(201,164,76,0.4); }
.slot3d__btn:disabled { opacity: 0.5; cursor: default; transform: none; box-shadow: none; }
.slot3d__msg { font-size: 0.86rem; letter-spacing: 0.02em; color: var(--ink-soft); text-align: center; min-height: 1.4em; }
.slot3d.win .slot3d__msg { color: var(--gold-1); }
/* Istituzionale: bottone in oro lineare, niente glow eccessivo */
body[data-variant="a"] .slot3d__btn { background: transparent; color: var(--gold-1); border-color: var(--gold); box-shadow: none; }
body[data-variant="a"] .slot3d__btn:hover { background: var(--gold-soft); }
body[data-variant="a"] .slot3d.win .slot3d__cabinet { box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 0 40px rgba(201,164,76,0.16); }

@media (prefers-reduced-motion: reduce) {
  .slot3d__reel { transition: none; }
}

/* ============================================================
   VANTAGGI — griglia card
   ============================================================ */
.benefits__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.benefit {
  border: 1px solid var(--card-border); border-radius: var(--radius); padding: 30px 28px;
  background: var(--card-bg); transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
  position: relative; overflow: hidden;
}
.benefit:hover { transform: translateY(-5px); border-color: var(--gold); box-shadow: 0 24px 60px rgba(0,0,0,0.45), var(--glow); }
.benefit__ic {
  width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; color: var(--gold); border: 1px solid var(--gold-line); background: var(--gold-soft);
}
.benefit__ic svg { width: 24px; height: 24px; }
.benefit h3 { font-size: 1.15rem; margin-bottom: 10px; }
.benefit p { color: var(--ink-soft); font-size: 0.95rem; }
@media (max-width: 900px) { .benefits__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .benefits__grid { grid-template-columns: 1fr; } }

/* ============================================================
   FAQ — accordion
   ============================================================ */
.faq__list { border-top: 1px solid var(--hair); max-width: 860px; }
.faq__item { border-bottom: 1px solid var(--hair); }
.faq__q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 26px 4px; color: var(--ink); font-family: var(--serif); font-size: clamp(1.05rem, 2vw, 1.3rem); font-weight: 600;
  transition: color .2s ease;
}
.faq__q:hover { color: var(--gold-1); }
.faq__sign { flex: 0 0 auto; width: 24px; height: 24px; position: relative; }
.faq__sign::before, .faq__sign::after {
  content: ''; position: absolute; background: var(--gold); transition: transform .3s ease, opacity .3s ease;
}
.faq__sign::before { top: 11px; left: 0; width: 24px; height: 2px; }
.faq__sign::after { left: 11px; top: 0; width: 2px; height: 24px; }
.faq__item.open .faq__sign::after { transform: scaleY(0); opacity: 0; }
.faq__a { overflow: hidden; max-height: 0; transition: max-height .35s ease; }
.faq__a-inner { padding: 0 4px 26px; color: var(--ink-soft); max-width: 70ch; }

/* ============================================================
   PARTNER
   ============================================================ */
.partners__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.partner {
  border: 1px solid var(--card-border); border-radius: var(--radius); background: var(--card-bg);
  padding: 30px 30px 26px; transition: border-color .25s ease, transform .25s ease, background .25s ease;
  display: flex; flex-direction: column; gap: 14px;
}
.partner:hover { border-color: var(--gold); transform: translateY(-4px); }
.partner__logo { height: 40px; display: flex; align-items: center; border-bottom: 1px solid var(--hair); padding-bottom: 18px; }
.partner__logo img { height: 30px; width: auto; object-fit: contain; }
.partner__logo .snai { font-weight: 800; font-style: italic; font-size: 1.5rem; letter-spacing: -0.01em; color: var(--ink); text-transform: lowercase; }
/* card solo-logo: niente descrizione, logo centrato */
.partner--logo { align-items: center; justify-content: center; padding: 44px 30px; min-height: 150px; }
.partner--logo .partner__logo { height: auto; border-bottom: none; padding-bottom: 0; justify-content: center; }
.partner--logo .partner__logo img { height: 44px; }
.partner--logo .partner__logo .snai { font-size: 1.9rem; }
.partner p { color: var(--ink-soft); font-size: 0.95rem; }
.partner__link { margin-top: auto; font-size: 0.85rem; font-weight: 600; color: var(--gold); display: inline-flex; gap: 6px; }
.partner:hover .partner__link .arrow { transform: translateX(3px); }
@media (max-width: 720px) { .partners__grid { grid-template-columns: 1fr; } }

/* ============================================================
   CONTATTI
   ============================================================ */
.contact { background: transparent; }
.contact__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(36px, 6vw, 72px); align-items: start; }
.contact__info .lead { margin-top: 18px; }
.contact__direct { display: grid; gap: 14px; margin-top: 30px; }
.contact__direct a, .contact__direct span.row {
  display: flex; align-items: center; gap: 14px; color: var(--ink); font-size: 0.98rem;
  transition: color .2s ease;
}
.contact__direct a:hover { color: var(--gold-1); }
.contact__direct svg { width: 20px; height: 20px; color: var(--gold); flex: 0 0 auto; }
.contact__reassure { margin-top: 28px; font-size: 0.82rem; letter-spacing: 0.04em; color: var(--ink-faint); display: flex; align-items: center; gap: 10px; }
.contact__reassure svg { width: 18px; height: 18px; color: var(--gold); }

.form {
  border: 1px solid var(--card-border); border-radius: var(--radius); background: var(--card-bg);
  padding: clamp(24px, 4vw, 38px);
}
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 8px; font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--sans); font-size: 0.96rem; color: var(--ink);
  background: rgba(0,0,0,0.35); border: 1px solid var(--hair); border-radius: 10px;
  padding: 13px 15px; transition: border-color .18s ease, box-shadow .18s ease;
}
.field select { appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23c9a44c' stroke-width='1.5' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 15px center; padding-right: 38px; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-faint); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.field textarea { resize: vertical; min-height: 110px; }
.field--error input, .field--error select, .field--error textarea { border-color: #c0623c; }
.field__err { color: #e08a64; font-size: 0.78rem; margin-top: 6px; display: none; }
.field--error .field__err { display: block; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form .btn { width: 100%; margin-top: 8px; }
.form__note { font-size: 0.74rem; color: var(--ink-faint); margin-top: 14px; text-align: center; }
.form__ok {
  display: none; text-align: center; padding: 40px 20px; flex-direction: column; align-items: center; gap: 14px;
}
.form__ok .check { width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold); display: flex; align-items: center; justify-content: center; }
.form__ok .check svg { width: 28px; height: 28px; }
.form.sent .form__body { display: none; }
.form.sent .form__ok { display: flex; }
@media (max-width: 860px) { .contact__grid { grid-template-columns: 1fr; } .row2 { grid-template-columns: 1fr 1fr; } }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: transparent; padding: 56px 0 30px; position: relative; }
.footer::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-line) 18%, var(--gold-line) 82%, transparent); }
.footer__top { display: flex; justify-content: space-between; align-items: flex-start; gap: clamp(32px, 6vw, 80px); flex-wrap: wrap; }
.footer__brand { max-width: 340px; }
.footer__logo-img { height: 58px; width: auto; margin-bottom: 18px; }
.footer__brand p { color: var(--ink-faint); font-size: 0.86rem; line-height: 1.6; }
.footer__adm { display: inline-flex; background: #fff; border-radius: 6px; padding: 5px 9px; }
.footer__adm img { height: 20px; width: auto; display: block; }
.footer__cols { display: flex; gap: clamp(32px, 6vw, 72px); flex-wrap: wrap; }
.footer__col { display: flex; flex-direction: column; gap: 8px; font-size: 0.84rem; color: var(--ink-soft); }
.footer__col-h { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-bottom: 6px; }
.footer__col a { color: var(--ink-soft); transition: color .2s ease; }
.footer__col a:hover { color: var(--gold-1); }
.footer__col-sub { color: var(--ink-faint); font-size: 0.78rem; }
.footer__bottom { position: relative; margin-top: 48px; padding-top: 22px; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 0.76rem; letter-spacing: 0.04em; color: var(--ink-faint); }
.footer__bottom::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-line) 18%, var(--gold-line) 82%, transparent); }
.footer__bottom .resp { display: inline-flex; align-items: center; gap: 10px; }
.footer__bottom .age { border: 1px solid var(--gold-line); border-radius: 999px; padding: 3px 9px; color: var(--gold); font-weight: 600; }
@media (max-width: 700px) { .footer__legal { text-align: left; } }
/* Mobile: brand Chronos centrato in alto, poi due colonne (Società · Contatti) */
@media (max-width: 620px) {
  .footer__top { flex-direction: column; align-items: center; gap: 32px; }
  .footer__brand { max-width: 420px; text-align: center; }
  .footer__brand .footer__logo-img { display: block; margin-left: auto; margin-right: auto; }
  .footer__cols {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 24px;
  }
  .footer__col { font-size: 0.8rem; word-break: break-word; }
}

/* ============================================================
   DISCLAIMER GIOCO RESPONSABILE
   ============================================================ */
.disclaimer-bar { background: #1a1206; border-top: 1px solid #6b4d1a; border-bottom: 1px solid #6b4d1a; padding: 14px 0; }
.disclaimer-bar__inner { display: flex; align-items: flex-start; gap: 12px; font-size: 0.78rem; line-height: 1.55; color: #c8a86b; }
.disclaimer-bar__icon { flex-shrink: 0; font-style: normal; font-size: 1rem; margin-top: 1px; }
.disclaimer-bar p { margin: 0; }
.disclaimer-bar__link { color: #e0c07a; text-decoration: underline; }
.disclaimer-bar__link:hover { color: #fff; }
@media (max-width: 600px) { .disclaimer-bar__inner { flex-direction: column; gap: 6px; } }

/* ============================================================
   REVEAL
   ============================================================ */
.js-reveal [data-reveal] { opacity: 0; transform: translateY(26px); filter: blur(7px); transition: opacity .85s cubic-bezier(.2,.7,.2,1), transform .85s cubic-bezier(.2,.7,.2,1), filter .85s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
[data-reveal].in { opacity: 1; transform: none; filter: none; }
/* reveal direzionali */
.js-reveal [data-reveal][data-dir="left"] { transform: translateX(-46px); }
.js-reveal [data-reveal][data-dir="right"] { transform: translateX(46px); }
.js-reveal [data-reveal][data-dir="scale"] { transform: scale(.94); transform-origin: center; }
[data-reveal][data-dir].in { transform: none; }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1; transform: none; filter: none; } }

/* ============================================================
   SCROLL FX — orb in parallax + filo-tempo laterale
   ============================================================ */
/* orb dorati decorativi (profondità in scroll) */
.orb { position: absolute; z-index: 0; border-radius: 50%; pointer-events: none; will-change: transform;
  background: radial-gradient(closest-side, rgba(201,164,76,0.16), transparent 72%); filter: blur(6px); }
.orb { display: none; }
.orb--lg { width: 460px; height: 460px; }
.orb--sm { width: 300px; height: 300px; }
.section, .hero, .contact { overflow: clip; }
@media (prefers-reduced-motion: reduce) { .orb { display: none; } }

/* filo-tempo: rail verticale con nodi (scroll-spy) — visibile su tutti i dispositivi */
.thread { position: fixed; top: 50%; left: 30px; transform: translateY(-50%); z-index: 55;
  display: flex; height: min(60vh, 520px); flex-direction: column; align-items: center; gap: 0; }
.thread__track { position: relative; width: 2px; flex: 1 1 auto; background: var(--hair); border-radius: 2px; overflow: hidden; }
.thread__fill { position: absolute; top: 0; left: 0; right: 0; height: 100%; background: var(--gold-grad);
  transform: scaleY(0); transform-origin: top; transition: transform .25s cubic-bezier(.4,0,.2,1); }
.thread__nodes { display: flex; flex-direction: column; justify-content: space-between; position: absolute; inset: 0; }
.thread__node { position: relative; display: flex; align-items: center; gap: 12px; cursor: pointer; }
.thread__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--bg-3); border: 1px solid var(--gold-line);
  margin-left: -3.5px; transition: transform .3s ease, background .3s ease, border-color .3s ease, box-shadow .3s ease; }
.thread__lbl { font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint);
  white-space: nowrap; opacity: 0; transform: translateX(-6px); transition: opacity .3s ease, transform .3s ease, color .3s ease; }
.thread__node:hover .thread__lbl { opacity: 1; transform: none; color: var(--ink-soft); }
.thread__node.is-active .thread__dot { background: var(--gold); border-color: var(--gold); transform: scale(1.45); box-shadow: 0 0 0 4px var(--gold-soft); }
.thread__node.is-active .thread__lbl { opacity: 1; transform: none; color: var(--gold-1); }
@media (max-width: 1239px) {
  .thread { left: 16px; height: min(50vh, 380px); }
  .thread__lbl { display: none; }
}
@media (max-width: 640px) {
  .thread { left: 9px; height: min(44vh, 300px); }
  .thread__dot { width: 7px; height: 7px; margin-left: -2.5px; }
}
@media (prefers-reduced-motion: reduce) { .thread { display: none !important; } }

/* ============================================================
   INTRO — velo d'ingresso (CSS puro: parte e si solleva da solo)
   ============================================================ */
.intro {
  position: fixed; inset: 0; z-index: 200; background: #000;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  animation: introLift .9s cubic-bezier(.7,0,.3,1) forwards 1.7s;
}
.intro::after { content: ''; position: absolute; inset: 0; background: radial-gradient(120% 120% at 50% 50%, transparent 45%, #000 82%); }
.intro__stage { position: relative; width: 168px; height: 168px; display: block; animation: introStageOut .55s ease forwards 1.6s; }
.intro__mark { position: absolute; top: 50%; left: 50%; width: 96px; height: auto; opacity: 0; transform: translate(-50%,-50%) scale(.82); filter: drop-shadow(0 0 10px rgba(0,0,0,0.6)); animation: introMark 1.4s cubic-bezier(.2,.7,.2,1) forwards .15s; }
.intro__ring { position: absolute; top: 50%; left: 50%; width: 168px; height: 168px; transform: translate(-50%,-50%) rotate(-90deg); }
.intro__ring circle { fill: none; stroke: rgba(201,164,76,0.16); stroke-width: 1.5; }
.intro__ring .draw { stroke: var(--gold-1); stroke-width: 1.5; stroke-dasharray: 478; stroke-dashoffset: 478; animation: introDraw 1.35s cubic-bezier(.5,0,.2,1) forwards .25s; }
@keyframes introMark { 0% { opacity: 0; transform: translate(-50%,-50%) scale(.82); } 60% { opacity: 1; transform: translate(-50%,-50%) scale(1); } 100% { opacity: 1; transform: translate(-50%,-50%) scale(1); } }
@keyframes introDraw { to { stroke-dashoffset: 0; } }
@keyframes introStageOut { to { opacity: 0; transform: translateY(-14px) scale(1.05); } }
@keyframes introLift { 0% { transform: none; } 99% { opacity: .35; } 100% { transform: translateY(-102%); opacity: 0; visibility: hidden; pointer-events: none; } }
.intro.dismissed { display: none; }

/* hero in cascata (CSS puro) */
.hero__inner > * { opacity: 0; transform: translateY(22px); filter: blur(7px); animation: heroIn 1s cubic-bezier(.2,.7,.2,1) forwards; }
.hero__inner > *:nth-child(1) { animation-delay: 0.15s; }
.hero__inner > *:nth-child(2) { animation-delay: 0.26s; }
.hero__inner > *:nth-child(3) { animation-delay: 0.37s; }
.hero__inner > *:nth-child(4) { animation-delay: 0.49s; }
.hero__inner > *:nth-child(5) { animation-delay: 0.61s; }
.hero__inner > *:nth-child(6) { animation-delay: 0.73s; }
@keyframes heroIn { to { opacity: 1; transform: none; filter: none; } }
.scroll-hint { opacity: 0; animation: heroIn 1s ease forwards 1s; }

@media (prefers-reduced-motion: reduce) {
  .hero__inner > *, .scroll-hint { opacity: 1; transform: none; filter: none; animation: none; }
}

/* ============================================================
   VARIANTE A — ISTITUZIONALE (sobria, avorio, hairline)
   ============================================================ */
body[data-variant="a"] {
  --display-fill: linear-gradient(0deg, var(--ink), var(--ink));
  --card-bg: transparent;
  --card-border: var(--hair);
  --glow: none;
  --radius: 4px;
}
body[data-variant="a"] .display { letter-spacing: 0.02em; }
body[data-variant="a"] .hero__rings { opacity: 0.32; }
body[data-variant="a"] .hero__word { filter: grayscale(0.15) brightness(1.05); }
body[data-variant="a"] .btn--gold { background: transparent; color: var(--gold-1); border-color: var(--gold); box-shadow: none; }
body[data-variant="a"] .btn--gold:hover { background: var(--gold-soft); transform: translateY(-2px); }
body[data-variant="a"] .figure__n,
body[data-variant="a"] .faq__q { font-weight: 600; }
body[data-variant="a"] .benefit:hover { box-shadow: none; }
body[data-variant="a"] body::before,
body[data-variant="a"] .about__plate::after { opacity: 0.5; }

/* ============================================================
   VARIANTE C — EDITORIALE (type grande, contrasti decisi)
   ============================================================ */
body[data-variant="c"] {
  --radius: 2px;
  --card-bg: linear-gradient(165deg, rgba(201,164,76,0.07), rgba(255,255,255,0.01));
}
body[data-variant="c"] h1.display { font-size: clamp(2.8rem, 9vw, 7rem); letter-spacing: 0.005em; line-height: 0.98; }
body[data-variant="c"] h2.display { font-size: clamp(2.2rem, 6vw, 4.4rem); }
body[data-variant="c"] .section-head { max-width: 900px; }
body[data-variant="c"] .figure__n { font-size: clamp(2.6rem, 7vw, 4.6rem); }
body[data-variant="c"] .eyebrow { font-size: 0.82rem; letter-spacing: 0.34em; }
body[data-variant="c"] .how__num { font-size: clamp(2rem, 4vw, 3rem); }
body[data-variant="c"] .how__row { grid-template-columns: 130px 1fr; }
body[data-variant="c"] .hero__rings { opacity: 0.7; }
body[data-variant="c"] .faq__q { font-size: clamp(1.15rem, 2.4vw, 1.6rem); }
@media (max-width: 620px) {
  body[data-variant="c"] .how__row { grid-template-columns: 60px 1fr; }
}

/* ============================================================
   CALCOLATORE RENDIMENTO + GRAFICI
   ============================================================ */
.calc { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: clamp(28px, 5vw, 56px); align-items: start; }

/* ---- variante minimale: colonna unica centrata ---- */
.calc--min { display: flex; flex-direction: column; align-items: center; text-align: center; max-width: 640px; margin: 0 auto; gap: 0; }
.calc--min .calc__seg { margin-bottom: 38px; }
.calc--min .calc__seg button { width: auto; padding: 0 22px; height: 44px; font-family: var(--sans); font-size: 0.92rem; letter-spacing: 0.02em; }

/* ---- variante split: controlli+numero a sinistra, grafico a destra ---- */
.calc--split { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.calc--split .calc__side { display: flex; flex-direction: column; align-items: flex-start; text-align: left; }
.calc--split .calc__seg { margin-bottom: 28px; }
.calc--split .calc__seg button { width: auto; padding: 0 20px; height: 42px; font-family: var(--sans); font-size: 0.9rem; letter-spacing: 0.02em; }
.calc--split .calc__result { align-items: flex-start; margin-bottom: 24px; }
.calc--split .calc__result-val { font-size: clamp(3rem, 6vw, 4.4rem); }
.calc--split .calc__src { text-align: left; border-top: 1px solid var(--hair-2); padding-top: 16px; margin-top: 4px; }
.calc--split .bars { width: 100%; }
.calc--split .bar__track { height: 200px; }
@media (max-width: 820px) { .calc--split { grid-template-columns: 1fr; gap: 36px; } .calc--split .calc__side { align-items: center; text-align: center; } .calc--split .calc__result { align-items: center; } .calc--split .calc__src { text-align: center; } }
.calc__result { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-bottom: 44px; }
.calc__result-label { font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); font-weight: 600; }
.calc__result-val { font-family: var(--serif); font-weight: 700; font-size: clamp(3.4rem, 9vw, 5.2rem); line-height: 1; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.calc__result-sub { font-size: 0.86rem; color: var(--ink-faint); letter-spacing: 0.01em; }
.calc--min .bars { width: 100%; max-width: 460px; }
.calc--min .calc__src { max-width: 540px; text-align: center; border-top: 1px solid var(--hair-2); }

.calc__ctrl { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 6px; flex-wrap: wrap; }
.calc__ctrl-label { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); font-weight: 600; }
.calc__seg { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--card-border); border-radius: 999px; background: rgba(0,0,0,0.3); }
.calc__seg button { width: 46px; height: 42px; border: none; background: transparent; color: var(--ink-soft); font-family: var(--serif); font-size: 1.1rem; font-weight: 600; border-radius: 999px; cursor: pointer; transition: background .25s ease, color .2s ease; }
.calc__seg button:hover { color: var(--ink); }
.calc__seg button.is-active { background: var(--gold-grad); color: #2a1f08; }
.kpi-list { margin-top: 8px; }
.kpi { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 18px; padding: 18px 0; border-bottom: 1px solid var(--hair); flex-wrap: wrap; }
.kpi__label { color: var(--ink-soft); font-size: 0.95rem; flex: 1 1 150px; }
.kpi__hint { display: block; color: var(--ink-faint); font-size: 0.78rem; margin-top: 3px; }
.kpi__val { font-family: var(--serif); font-weight: 700; font-size: 1.5rem; color: var(--ink); white-space: nowrap; text-align: right; }
.kpi--hl .kpi__val { font-size: clamp(1.5rem, 2.6vw, 1.9rem); white-space: nowrap; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.calc__note { margin-top: 22px; font-size: 0.8rem; line-height: 1.6; color: var(--ink-faint); }
.calc__note strong { color: var(--ink-soft); }

.chart-block { margin-bottom: 34px; }
.chart-title { display: block; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 18px; font-weight: 600; }
.bars { display: flex; align-items: flex-end; gap: clamp(14px, 3vw, 28px); }
.bar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.bar__track { width: 100%; height: 170px; position: relative; }
.bar__fill { position: absolute; left: 0; right: 0; bottom: 0; height: 0; transform-origin: bottom; border-radius: 8px 8px 0 0; background: linear-gradient(180deg, var(--gold-1), var(--gold-2)); opacity: 0.4; transition: transform .9s cubic-bezier(.16,.84,.28,1), opacity .3s ease, box-shadow .3s ease; }
.bar.is-active .bar__fill { opacity: 1; box-shadow: 0 0 34px rgba(201,164,76,0.25); }
.bar__val { font-family: var(--serif); font-weight: 700; font-size: 1rem; color: var(--ink-soft); transition: color .3s ease; }
.bar.is-active .bar__val { color: var(--gold-1); }
.bar__cap { font-size: 0.85rem; color: var(--ink-faint); }
.bar.is-active .bar__cap { color: var(--ink); }

.stack { display: block; font-size: 0; height: 50px; border-radius: 8px; overflow: hidden; border: 1px solid var(--hair); }
.stack__seg { display: inline-block; vertical-align: top; height: 100%; transform-origin: left; text-align: center; line-height: 50px; font-size: 0.78rem; font-weight: 600; white-space: nowrap; overflow: hidden; transition: transform .9s cubic-bezier(.16,.84,.28,1); }
.stack__seg--vinc { background: rgba(242,237,225,0.13); color: var(--ink-soft); }
.stack__seg--preu { background: var(--gold-2); color: #1a1206; }
.stack__seg--marg { background: var(--gold-1); color: #1a1206; }
.legend { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 16px; }
.legend__item { display: inline-flex; align-items: center; gap: 8px; font-size: 0.84rem; color: var(--ink-soft); }
.legend__dot { width: 10px; height: 10px; border-radius: 3px; flex: 0 0 auto; }
.legend__dot--vinc { background: rgba(242,237,225,0.3); }
.legend__dot--preu { background: var(--gold-2); }
.legend__dot--marg { background: var(--gold-1); }
.legend__src { color: var(--ink-faint); }
.calc__src { margin-top: 22px; font-size: 0.74rem; line-height: 1.6; color: var(--ink-faint); border-top: 1px solid var(--hair-2); padding-top: 16px; }
@media (max-width: 900px) { .calc { grid-template-columns: 1fr; gap: 40px; } }

/* ============================================================
   MOVIMENTO — barra avanzamento, rotazione anelli, float
   ============================================================ */
.scroll-prog { position: fixed; top: 0; left: 0; height: 2px; width: 0; background: var(--gold-grad); z-index: 90; transition: width .12s linear; }
@media (prefers-reduced-motion: no-preference) {
  .hero__rings .ring-ticks { animation: ringspin 60s linear infinite; transform-box: fill-box; transform-origin: center; }
  .hero__rings .ring-arc { animation: ringspin 16s linear infinite; }
  .hero__rings .ring-outer { animation: ringpulse 7s ease-in-out infinite; }
  .hero__rings .ring-inner { animation: ringpulse 7s ease-in-out infinite reverse; }
  .hero__mark { animation: floaty 6s ease-in-out infinite; }
  .about__plate .symbol { animation: floaty 7s ease-in-out infinite; }
}
@keyframes ringspin { to { transform: rotate(360deg); } }
@keyframes ringspin-rev { to { transform: rotate(-360deg); } }
@keyframes ringpulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.035); opacity: 0.6; } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
