/* ==========================================================================
   ENERGIA SOLARE — Landing Bando Fotovoltaico Provincia di Treviso 2026
   Scope: #bt-page · prefisso bt- · mobile-first · breakpoints 640/960/1200
   Regola del tema: OGNI selettore di classe è prefissato con #bt-page
   (il CSS di Flatsome caricato dopo perde contro la specificità 1,1,0).
   Senza JS tutto è visibile: gli stati iniziali delle animazioni esistono
   solo sotto #bt-page.bt-js.
   ========================================================================== */

/* ---------- 1. TOKENS ---------- */
#bt-page {
  --bt-green: #059669;
  --bt-green-dark: #047857;
  --bt-green-deep: #064e3b;
  --bt-deep: #04201a;
  --bt-deep-2: #0a2f26;
  --bt-deep-3: #0f3b30;
  --bt-amber: #f59e0b;
  --bt-amber-dark: #d97706;
  --bt-gold: #fcd34d;
  --bt-red: #dc4b4b;
  --bt-bg: #f6faf8;
  --bt-surface: #ffffff;
  --bt-text: #13201b;
  --bt-muted: #5a6964;
  --bt-inv: #eef6f2;
  --bt-inv-muted: #a3bcb3;
  --bt-line: rgba(6, 78, 59, .12);
  --bt-line-inv: rgba(255, 255, 255, .14);
  --bt-radius: 14px;
  --bt-radius-lg: 24px;
  --bt-shadow: 0 6px 28px rgba(4, 32, 26, .08);
  --bt-shadow-lg: 0 24px 60px rgba(4, 32, 26, .18);
  --bt-out: cubic-bezier(.23, 1, .32, 1);
  --bt-in-out: cubic-bezier(.77, 0, .175, 1);
  --bt-spring: cubic-bezier(.34, 1.56, .64, 1);
  --bt-font-h: 'Outfit', system-ui, sans-serif;
  --bt-font-b: 'DM Sans', system-ui, sans-serif;
  --bt-container: 1200px;
  --bt-pad: clamp(80px, 11vw, 148px);
  --bt-c-contrib: #10b981;
  --bt-c-detr: #f59e0b;
  --bt-c-rest: #1f3a33;
}

/* Lenis (attivo solo su questa pagina, solo con puntatore fine) */
html.lenis,
html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* ---------- 2. RESET SCOPED ---------- */
#bt-page,
#bt-page *,
#bt-page *::before,
#bt-page *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

#bt-page {
  font-family: var(--bt-font-b);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--bt-text);
  background: var(--bt-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

#bt-page img,
#bt-page svg,
#bt-page video { display: block; max-width: 100%; }

#bt-page ul,
#bt-page ol { list-style: none; }

#bt-page a { color: inherit; text-decoration: none; }

#bt-page p a,
#bt-page li a {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

#bt-page button,
#bt-page input,
#bt-page select {
  font: inherit;
  color: inherit;
}

#bt-page button { background: none; border: 0; cursor: pointer; }

#bt-page a:focus-visible,
#bt-page button:focus-visible,
#bt-page input:focus-visible,
#bt-page select:focus-visible,
#bt-page summary:focus-visible {
  outline: 2px solid var(--bt-amber);
  outline-offset: 3px;
}

#bt-page h1,
#bt-page h2,
#bt-page h3 {
  font-family: var(--bt-font-h);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.12;
  color: inherit;
  text-wrap: balance;
}

#bt-page .bt-container {
  width: 100%;
  max-width: var(--bt-container);
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

@media (min-width: 640px) {
  #bt-page .bt-container { padding-left: 28px; padding-right: 28px; }
}

#hero, #numeri, #calcolo, #percorso, #date, #requisiti, #faq, #verifica { scroll-margin-top: 80px; }

/* ---------- 3. TIPOGRAFIA DI SEZIONE ---------- */
#bt-page .bt-head { max-width: 760px; }
#bt-page .bt-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--bt-font-h);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--bt-green-dark);
}
#bt-page .bt-kicker::before {
  content: "";
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}
#bt-page .bt-h2 {
  margin-top: 14px;
  font-size: clamp(1.8rem, 3.6vw, 2.8rem);
  max-width: 22ch;
}
#bt-page .bt-lead {
  margin-top: 16px;
  font-size: clamp(1.02rem, 1.4vw, 1.15rem);
  color: var(--bt-muted);
  max-width: 60ch;
}
#bt-page .bt-head--inv { color: var(--bt-inv); }
#bt-page .bt-head--inv .bt-kicker { color: var(--bt-gold); }
#bt-page .bt-head--inv .bt-lead { color: var(--bt-inv-muted); }

/* ---------- 4. BOTTONI ---------- */
#bt-page .bt-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  font-family: var(--bt-font-h);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  border: 2px solid transparent;
  border-radius: 60px;
  padding: 14px 28px;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
  transition: transform .25s var(--bt-out), box-shadow .25s var(--bt-out), background .2s ease, border-color .2s ease, color .2s ease;
}
#bt-page .bt-btn:active { transform: translateY(1px) scale(.99); }
#bt-page .bt-btn--primary {
  background: var(--bt-amber);
  border-color: var(--bt-amber);
  color: #1f1403;
  box-shadow: 0 8px 24px rgba(245, 158, 11, .28);
}
#bt-page .bt-btn--ghost {
  background: rgba(255, 255, 255, .04);
  border-color: rgba(255, 255, 255, .42);
  color: var(--bt-inv);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
@media (hover: hover) and (pointer: fine) {
  #bt-page .bt-btn--primary:hover {
    background: #fbbf24;
    border-color: #fbbf24;
    box-shadow: 0 14px 34px rgba(245, 158, 11, .42);
  }
  #bt-page .bt-btn--ghost:hover {
    background: var(--bt-surface);
    border-color: var(--bt-surface);
    color: var(--bt-deep);
  }
}
#bt-page .bt-btn--sm { min-height: 44px; padding: 10px 20px; font-size: .92rem; }
#bt-page .bt-btn--lg { min-height: 56px; padding: 16px 34px; font-size: 1.05rem; }
#bt-page .bt-btn--full { width: 100%; }

@property --bt-shine-x {
  syntax: '<percentage>';
  inherits: false;
  initial-value: -120%;
}
#bt-page .bt-btn--shine::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, .6) 50%, transparent 62%);
  transform: translateX(var(--bt-shine-x));
  pointer-events: none;
}
#bt-page .bt-btn__spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(31, 20, 3, .25);
  border-top-color: #1f1403;
  border-radius: 50%;
  animation: bt-spin .7s linear infinite;
}
#bt-page .bt-btn.is-loading { opacity: .78; pointer-events: none; }
#bt-page .bt-btn.is-loading .bt-btn__spinner { display: inline-block; }
@keyframes bt-spin { to { transform: rotate(360deg); } }

#bt-page .bt-chip {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 40px;
  border: 1px solid var(--bt-line);
  background: var(--bt-surface);
  font-family: var(--bt-font-h);
  font-weight: 600;
  font-size: .92rem;
  text-decoration: none !important;
  transition: transform .2s var(--bt-out), border-color .2s ease, background .2s ease;
}
@media (hover: hover) and (pointer: fine) {
  #bt-page .bt-chip:hover { transform: translateY(-2px); border-color: var(--bt-green); }
}

/* ---------- 5. MOTION UTILITIES ---------- */
#bt-page.bt-js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 30px, 0);
  transition: opacity .8s var(--bt-out), transform .8s var(--bt-out);
  transition-delay: var(--bt-delay, 0s);
}
#bt-page.bt-js [data-reveal].is-revealed { opacity: 1; transform: none; }

#bt-page .bt-reveal { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
#bt-page .bt-reveal__inner { display: block; }

/* Barra di avanzamento della lettura */
#bt-page .bt-progress {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  z-index: 100;
  pointer-events: none;
}
#bt-page .bt-progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--bt-green), var(--bt-amber));
  transform-origin: 0 50%;
  transform: scaleX(var(--bt-p, 0));
}
@supports (animation-timeline: scroll()) {
  #bt-page .bt-progress span {
    animation: bt-grow linear both;
    animation-timeline: scroll(root);
  }
  @keyframes bt-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
}

/* Odometro CSS: la cifra reale resta nel DOM (SEO), il rullo è un ::after */
#bt-page .bt-odo { font-variant-numeric: tabular-nums; white-space: nowrap; }
/* clip-path (non overflow:hidden) così la linea di base resta quella del
   testo reale e punti/€ accanto restano allineati */
#bt-page.bt-js .bt-odo__d {
  position: relative;
  display: inline-block;
  height: 1.1em;
  line-height: 1.1em;
  clip-path: inset(0);
  color: transparent;
}
#bt-page.bt-js .bt-odo__d::after {
  content: "0\A 1\A 2\A 3\A 4\A 5\A 6\A 7\A 8\A 9";
  white-space: pre;
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  text-align: center;
  color: var(--bt-odo-color, currentColor);
  transform: translateY(calc(var(--n, 0) * -1.1em));
  transition: transform var(--bt-odo-dur, 1.4s) cubic-bezier(.16, 1, .3, 1);
  transition-delay: var(--bt-odo-delay, 0s);
}
#bt-page.bt-js .bt-odo.is-rolled .bt-odo__d::after { --n: var(--d); }

/* ==========================================================================
   6. HERO
   ========================================================================== */
#bt-page .bt-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: var(--bt-deep);
  color: var(--bt-inv);
  overflow: hidden;
  isolation: isolate;
}
@supports (min-height: 100svh) {
  #bt-page .bt-hero { min-height: 100svh; }
}
#bt-page .bt-hero__bar {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  height: clamp(34px, 6vh, 64px);
  background: var(--bt-deep);
  z-index: 6;
  pointer-events: none;
}
#bt-page.bt-js .bt-hero__bar { display: block; }
#bt-page .bt-hero__bar--top { top: 0; }
#bt-page .bt-hero__bar--bottom { bottom: 0; }

#bt-page .bt-hero__media { position: absolute; inset: 0; z-index: -1; }
#bt-page .bt-hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: 50% 40%;
}
#bt-page .bt-hero__sun {
  position: absolute;
  width: min(80vw, 900px);
  aspect-ratio: 1;
  right: -18%;
  top: -22%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(252, 211, 77, .38) 0%, rgba(245, 158, 11, .14) 34%, transparent 66%);
  mix-blend-mode: screen;
  animation: bt-breathe 9s ease-in-out infinite alternate;
}
@keyframes bt-breathe {
  from { transform: scale(.94); opacity: .8; }
  to { transform: scale(1.06); opacity: 1; }
}
#bt-page .bt-hero__scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 80% at 10% 100%, rgba(4, 32, 26, .96) 20%, transparent 70%),
    linear-gradient(180deg, rgba(4, 32, 26, .55) 0%, rgba(4, 32, 26, .25) 40%, rgba(4, 32, 26, .9) 82%, var(--bt-deep) 100%);
}
/* Mobile: niente video, solo poster luminoso → scrim più denso per il contrasto */
@media (max-width: 767px) {
  #bt-page .bt-hero__scrim {
    background:
      linear-gradient(180deg, rgba(4, 32, 26, .62) 0%, rgba(4, 32, 26, .74) 38%, rgba(4, 32, 26, .9) 70%, var(--bt-deep) 100%);
  }
  #bt-page .bt-hero .bt-hero__subtitle { color: #d3e3dc; }
}
#bt-page .bt-hero .bt-hero__subtitle { text-shadow: 0 1px 18px rgba(4, 32, 26, .55); }

#bt-page .bt-hero__grain {
  position: absolute;
  inset: 0;
  opacity: .08;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

#bt-page .bt-hero__grid {
  position: relative;
  display: flex;
  flex-direction: column;
  padding-top: 112px;
  padding-bottom: clamp(70px, 10vh, 120px);
}
/* Mobile: un'unica colonna in ordine narrativo (H1 → countdown → CTA → ticket) */
@media (max-width: 1023px) {
  #bt-page .bt-hero__content,
  #bt-page .bt-hero__side { display: contents; }
  #bt-page .bt-hero__eyebrow { order: 1; }
  #bt-page .bt-hero__title { order: 2; }
  #bt-page .bt-hero__subtitle { order: 3; }
  #bt-page .bt-countdown { order: 4; }
  #bt-page .bt-hero__cta { order: 5; }
  #bt-page .bt-hero__badges { order: 6; }
  #bt-page .bt-ticket { order: 7; margin-top: 40px; }
}
@media (min-width: 1024px) {
  #bt-page .bt-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, .8fr);
    align-items: end;
    gap: 56px;
    padding-top: clamp(80px, 10vh, 112px);
    padding-bottom: clamp(56px, 8vh, 96px);
  }
  #bt-page .bt-hero__side { display: flex; flex-direction: column; gap: 16px; }
  #bt-page .bt-hero__side .bt-countdown { margin-top: 0; }
  #bt-page .bt-hero__side .bt-countdown__timer { justify-content: space-between; }
  #bt-page .bt-hero__side .bt-countdown__block { flex: 1; }
  /* Hero compatto: CTA sopra la piega anche su 1440×900 */
  /* specificità più alta: queste regole stanno prima di quelle base */
  #bt-page .bt-hero .bt-hero__title { font-size: clamp(2.4rem, 3.5vw, 3.4rem); max-width: none; margin-top: 18px; }
  #bt-page .bt-hero .bt-hero__subtitle { margin-top: 16px; font-size: 1.08rem; line-height: 1.6; }
  #bt-page .bt-hero .bt-countdown__num { font-size: 1.9rem; }
  #bt-page .bt-hero .bt-hero__cta { margin-top: 22px; }
  #bt-page .bt-hero .bt-hero__badges { margin-top: 24px; padding-top: 18px; }
}
@media (min-width: 1024px) and (max-height: 820px) {
  #bt-page .bt-hero .bt-hero__badges { display: none; }
  /* Schermi bassi: contenuto in alto, così la CTA resta sopra la piega */
  #bt-page .bt-hero { justify-content: flex-start; min-height: 0; }
  #bt-page .bt-hero .bt-hero__grid { padding-top: 56px; }
}

#bt-page .bt-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 12px;
  border-radius: 40px;
  font-size: .86rem;
  font-weight: 600;
  line-height: 1.3;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .18);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
#bt-page .bt-pill__dot {
  position: relative;
  width: 9px;
  height: 9px;
  flex: none;
  border-radius: 50%;
  background: var(--bt-gold);
}
#bt-page .bt-pill--open .bt-pill__dot { background: #34d399; }
#bt-page .bt-pill--closed .bt-pill__dot { background: #f87171; }
#bt-page .bt-pill__dot::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid currentColor;
  color: inherit;
  opacity: 0;
}
#bt-page .bt-pill--pre .bt-pill__dot::after,
#bt-page .bt-pill--open .bt-pill__dot::after {
  border-color: var(--bt-gold);
  animation: bt-ping 1.8s var(--bt-out) infinite;
}
#bt-page .bt-pill--open .bt-pill__dot::after { border-color: #34d399; }
@keyframes bt-ping {
  0% { transform: scale(.6); opacity: .9; }
  100% { transform: scale(1.9); opacity: 0; }
}

#bt-page .bt-hero__title {
  margin-top: 22px;
  font-size: clamp(2.1rem, 5.6vw, 4.1rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--bt-inv);
  max-width: 19ch;
}
#bt-page .bt-hero__accent {
  background: linear-gradient(92deg, var(--bt-gold) 0%, var(--bt-amber) 55%, #fde68a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
#bt-page .bt-hero__subtitle {
  margin-top: 22px;
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
  color: var(--bt-inv-muted);
  max-width: 54ch;
}
#bt-page .bt-hero__subtitle strong { color: var(--bt-inv); font-weight: 600; }

/* Countdown */
#bt-page .bt-countdown { margin-top: 28px; }
#bt-page .bt-countdown__label {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--bt-gold);
}
#bt-page .bt-countdown__timer {
  margin-top: 10px;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}
#bt-page .bt-countdown__block {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 62px;
  padding: 10px 8px 8px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .14);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
#bt-page .bt-countdown__num {
  display: block;
  font-family: var(--bt-font-h);
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: #fff;
}
#bt-page .bt-countdown__num.is-tick { animation: bt-tick .45s var(--bt-out); }
@keyframes bt-tick {
  0% { transform: translateY(-40%); opacity: 0; filter: blur(2px); }
  100% { transform: none; opacity: 1; filter: none; }
}
#bt-page .bt-countdown__unit {
  margin-top: 4px;
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--bt-inv-muted);
}
#bt-page .bt-countdown__sep {
  padding-top: 12px;
  font-family: var(--bt-font-h);
  font-size: 1.4rem;
  color: rgba(255, 255, 255, .35);
}
@media (max-width: 380px) {
  #bt-page .bt-countdown__block { min-width: 54px; padding: 8px 4px 6px; }
  #bt-page .bt-countdown__sep { display: none; }
}

#bt-page .bt-hero__cta {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
@media (max-width: 520px) {
  #bt-page .bt-hero__cta .bt-btn { width: 100%; }
}
#bt-page .bt-hero__badges {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--bt-line-inv);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
}
#bt-page .bt-hero__badges li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--bt-inv);
}
#bt-page .bt-hero__badges a { text-decoration: none; }
#bt-page .bt-hero__badges svg { color: var(--bt-amber); flex: none; }

/* Ticket del contributo */
#bt-page .bt-ticket {
  position: relative;
  padding: 26px 24px 22px;
  border-radius: var(--bt-radius-lg);
  background: linear-gradient(160deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .04));
  border: 1px solid rgba(255, 255, 255, .18);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .18);
  overflow: hidden;
  transform-style: preserve-3d;
  --bt-odo-color: #fff;
}
#bt-page .bt-ticket::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from var(--bt-angle, 0deg), transparent 0 70%, rgba(252, 211, 77, .9) 80%, transparent 90%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: bt-orbit 6s linear infinite;
  pointer-events: none;
}
@property --bt-angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}
@keyframes bt-orbit { to { --bt-angle: 360deg; } }
#bt-page .bt-ticket__glow {
  position: absolute;
  width: 280px;
  height: 280px;
  left: var(--gx, 70%);
  top: var(--gy, 10%);
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(252, 211, 77, .28), transparent 65%);
  pointer-events: none;
  transition: left .3s ease, top .3s ease;
}
#bt-page .bt-ticket__kicker {
  position: relative;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--bt-gold);
}
#bt-page .bt-ticket__value {
  position: relative;
  margin-top: 8px;
  font-family: var(--bt-font-h);
  font-weight: 800;
  font-size: clamp(3.2rem, 8vw, 4.8rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: #fff;
}
#bt-page .bt-ticket__eur { margin-left: 6px; color: var(--bt-gold); }
#bt-page .bt-ticket__split {
  position: relative;
  margin-top: 22px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
#bt-page .bt-ticket__split > div {
  padding: 14px;
  border-radius: 14px;
  background: rgba(4, 32, 26, .45);
  border: 1px solid rgba(255, 255, 255, .1);
}
#bt-page .bt-ticket__label,
#bt-page .bt-ticket__note { display: block; font-size: .78rem; color: var(--bt-inv-muted); }
#bt-page .bt-ticket__num {
  display: block;
  margin: 2px 0;
  font-family: var(--bt-font-h);
  font-weight: 700;
  font-size: 1.45rem;
  color: #fff;
}
#bt-page .bt-ticket__foot {
  position: relative;
  margin-top: 16px;
  font-size: .85rem;
  color: var(--bt-inv-muted);
}

#bt-page .bt-hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 22px;
  width: 26px;
  height: 42px;
  margin-left: -13px;
  border: 2px solid rgba(255, 255, 255, .35);
  border-radius: 20px;
  z-index: 7;
}
#bt-page .bt-hero__scroll span {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: #fff;
  animation: bt-wheel 1.8s var(--bt-in-out) infinite;
}
@keyframes bt-wheel {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}
@media (max-width: 1023px) {
  #bt-page .bt-hero__scroll { display: none; }
}

/* ==========================================================================
   7. NUMERI
   ========================================================================== */
#bt-page .bt-numbers {
  background: var(--bt-surface);
  padding: clamp(52px, 7vw, 88px) 0;
  border-bottom: 1px solid var(--bt-line);
  --bt-odo-color: var(--bt-green-dark);
}
#bt-page .bt-numbers__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px 20px;
}
@media (min-width: 960px) {
  #bt-page .bt-numbers__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
#bt-page .bt-numbers__item { position: relative; padding-left: 16px; border-left: 2px solid var(--bt-line); }
#bt-page .bt-numbers__num {
  display: block;
  font-family: var(--bt-font-h);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  line-height: 1.1;
  color: var(--bt-green-dark);
  font-variant-numeric: tabular-nums;
}
#bt-page .bt-numbers__num small { font-size: .6em; margin-left: 2px; }
#bt-page .bt-numbers__label { display: block; margin-top: 6px; font-size: .93rem; color: var(--bt-muted); line-height: 1.5; }

/* ==========================================================================
   8. MANIFESTO
   ========================================================================== */
#bt-page .bt-manifesto {
  background: var(--bt-deep);
  color: var(--bt-inv);
  padding: var(--bt-pad) 0;
  position: relative;
  overflow: hidden;
}
#bt-page .bt-manifesto::before {
  content: "";
  position: absolute;
  width: 60vw;
  aspect-ratio: 1;
  left: -20vw;
  bottom: -40vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 185, 129, .18), transparent 65%);
}
#bt-page .bt-manifesto__text {
  position: relative;
  font-family: var(--bt-font-h);
  font-weight: 600;
  font-size: clamp(1.6rem, 4vw, 3.1rem);
  line-height: 1.22;
  letter-spacing: -0.02em;
  max-width: 28ch;
}
#bt-page.bt-js .bt-manifesto__text .bt-w { opacity: .18; transition: opacity .35s ease, color .35s ease; }
#bt-page.bt-js .bt-manifesto__text .bt-w.is-on { opacity: 1; }
#bt-page.bt-js .bt-manifesto__text .bt-w--hl.is-on { color: var(--bt-gold); }
#bt-page .bt-manifesto__aside {
  position: relative;
  margin-top: 30px;
  font-size: 1.08rem;
  color: var(--bt-inv-muted);
  max-width: 56ch;
}
#bt-page .bt-manifesto__aside strong { color: var(--bt-inv); }

/* ==========================================================================
   9. CALCOLATORE
   ========================================================================== */
#bt-page .bt-calc { padding: var(--bt-pad) 0; background: var(--bt-bg); }
#bt-page .bt-calc__grid {
  margin-top: clamp(36px, 5vw, 56px);
  display: grid;
  gap: 22px;
}
@media (min-width: 960px) {
  #bt-page .bt-calc__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
  #bt-page .bt-result { position: sticky; top: 100px; }
}
#bt-page .bt-calc__controls {
  padding: clamp(22px, 3vw, 34px);
  border-radius: var(--bt-radius-lg);
  background: var(--bt-surface);
  border: 1px solid var(--bt-line);
  box-shadow: var(--bt-shadow);
  display: grid;
  gap: 26px;
}
#bt-page .bt-seg { border: 0; }
#bt-page .bt-field__label,
#bt-page .bt-seg legend {
  display: block;
  font-family: var(--bt-font-h);
  font-weight: 600;
  font-size: .95rem;
  color: var(--bt-text);
}
#bt-page .bt-seg__track {
  position: relative;
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 5px;
  border-radius: 16px;
  background: #eaf3ef;
}
#bt-page .bt-seg__opt {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 8px 10px;
  text-align: center;
  font-size: .9rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--bt-muted);
  cursor: pointer;
  border-radius: 12px;
  transition: color .3s ease;
}
#bt-page .bt-seg__opt input {
  position: absolute;
  opacity: 0;
  inset: 0;
  cursor: pointer;
}
#bt-page .bt-seg__opt:has(input:checked) { color: var(--bt-deep); }
#bt-page .bt-seg__opt:has(input:focus-visible) { outline: 2px solid var(--bt-amber); outline-offset: 2px; }
#bt-page .bt-seg__thumb {
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 5px;
  width: calc(50% - 5px);
  border-radius: 12px;
  background: var(--bt-surface);
  box-shadow: 0 4px 14px rgba(4, 32, 26, .12);
  transition: transform .45s var(--bt-spring);
}
#bt-page .bt-seg__track:has(.bt-seg__opt:nth-of-type(2) input:checked) .bt-seg__thumb,
#bt-page .bt-seg__track[data-sel="1"] .bt-seg__thumb { transform: translateX(100%); }
#bt-page .bt-seg__track[data-sel="0"] .bt-seg__opt:nth-of-type(1),
#bt-page .bt-seg__track[data-sel="1"] .bt-seg__opt:nth-of-type(2) { color: var(--bt-deep); }

#bt-page .bt-linkbtn {
  display: inline;
  padding: 0;
  font-size: inherit;
  font-weight: 600;
  color: var(--bt-green-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

#bt-page .bt-field__row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
#bt-page .bt-field__out {
  font-family: var(--bt-font-h);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--bt-green-dark);
  font-variant-numeric: tabular-nums;
}
#bt-page .bt-field__hint { margin-top: 8px; font-size: .84rem; color: var(--bt-muted); line-height: 1.5; }
#bt-page .bt-field--costs { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 480px) {
  #bt-page .bt-field--costs { grid-template-columns: 1fr 1fr; }
  #bt-page .bt-field__hint--full { grid-column: 1 / -1; margin-top: -4px; }
}
#bt-page .bt-cost .bt-field__label { font-size: .85rem; }

#bt-page .bt-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 44px;
  margin-top: 4px;
  background: transparent;
  cursor: pointer;
  --fill: 50%;
}
#bt-page .bt-range::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--bt-green) 0 var(--fill), #dfe9e5 var(--fill) 100%);
}
#bt-page .bt-range::-moz-range-track { height: 8px; border-radius: 8px; background: #dfe9e5; }
#bt-page .bt-range::-moz-range-progress { height: 8px; border-radius: 8px; background: var(--bt-green); }
#bt-page .bt-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 28px;
  height: 28px;
  margin-top: -10px;
  border-radius: 50%;
  background: var(--bt-surface);
  border: 3px solid var(--bt-green);
  box-shadow: 0 4px 14px rgba(5, 150, 105, .35);
  transition: transform .2s var(--bt-spring);
}
#bt-page .bt-range::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bt-surface);
  border: 3px solid var(--bt-green);
  box-shadow: 0 4px 14px rgba(5, 150, 105, .35);
}
#bt-page .bt-range:active::-webkit-slider-thumb { transform: scale(1.18); }

#bt-page .bt-input {
  width: 100%;
  min-height: 48px;
  margin-top: 6px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1.5px solid #d3e2dc;
  background: #fbfdfc;
  font-family: var(--bt-font-h);
  font-weight: 600;
  font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
  transition: border-color .2s ease, box-shadow .2s ease;
}
#bt-page .bt-input:focus { border-color: var(--bt-green); box-shadow: 0 0 0 4px rgba(5, 150, 105, .14); outline: none; }

#bt-page .bt-switch {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  cursor: pointer;
  position: relative;
}
#bt-page .bt-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
#bt-page .bt-switch__ui {
  position: relative;
  flex: none;
  width: 50px;
  height: 30px;
  border-radius: 30px;
  background: #cfdcd7;
  transition: background .3s ease;
}
#bt-page .bt-switch__ui::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
  transition: transform .4s var(--bt-spring);
}
#bt-page .bt-switch input:checked + .bt-switch__ui { background: var(--bt-green); }
#bt-page .bt-switch input:checked + .bt-switch__ui::after { transform: translateX(20px); }
#bt-page .bt-switch input:focus-visible + .bt-switch__ui { outline: 2px solid var(--bt-amber); outline-offset: 3px; }
#bt-page .bt-switch__text { font-size: .93rem; font-weight: 500; line-height: 1.45; }
#bt-page .bt-switch__text small { display: block; color: var(--bt-muted); font-weight: 400; }

/* Risultato */
#bt-page .bt-result {
  padding: clamp(24px, 3.2vw, 38px);
  border-radius: var(--bt-radius-lg);
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(16, 185, 129, .22), transparent 55%),
    linear-gradient(165deg, var(--bt-deep-2), var(--bt-deep));
  color: var(--bt-inv);
  box-shadow: var(--bt-shadow-lg);
  overflow: hidden;
}
#bt-page .bt-result__kicker { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--bt-gold); }
#bt-page .bt-result__big {
  margin-top: 6px;
  font-family: var(--bt-font-h);
  font-weight: 800;
  font-size: clamp(3rem, 7vw, 4.4rem);
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: #fff;
}
#bt-page .bt-result__big.is-pop { animation: bt-pop .5s var(--bt-spring); }
@keyframes bt-pop { 0% { transform: scale(.96); } 60% { transform: scale(1.03); } 100% { transform: none; } }
#bt-page .bt-result__rows { margin-top: 22px; display: grid; gap: 12px; }
#bt-page .bt-result__rows li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .08);
}
#bt-page .bt-result__rows li > span:first-child { color: var(--bt-inv-muted); }
#bt-page .bt-result__rows strong { font-family: var(--bt-font-h); font-size: 1.15rem; font-variant-numeric: tabular-nums; }
#bt-page .bt-caps { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
#bt-page .bt-cap {
  padding: 3px 10px;
  border-radius: 20px;
  font-size: .74rem;
  font-weight: 600;
  color: var(--bt-inv-muted);
  border: 1px solid rgba(255, 255, 255, .14);
  transition: background .35s ease, color .35s ease, border-color .35s ease, box-shadow .35s ease, transform .35s var(--bt-spring);
}
#bt-page .bt-cap.is-binding {
  background: rgba(252, 211, 77, .16);
  border-color: rgba(252, 211, 77, .6);
  color: var(--bt-gold);
  box-shadow: 0 0 18px rgba(252, 211, 77, .28);
  transform: translateY(-1px);
}
#bt-page .bt-caps.is-off { opacity: .45; }

#bt-page .bt-stack {
  margin-top: 24px;
  display: flex;
  height: 16px;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, .08);
}
#bt-page .bt-stack__seg {
  display: block;
  height: 100%;
  width: var(--w, 0%);
  transition: width .8s var(--bt-out);
}
#bt-page .bt-stack__seg--contrib { background: linear-gradient(90deg, #34d399, var(--bt-c-contrib)); }
#bt-page .bt-stack__seg--detr { background: linear-gradient(90deg, #fbbf24, var(--bt-c-detr)); }
#bt-page .bt-stack__seg--rest { background: rgba(255, 255, 255, .22); }
#bt-page .bt-legend { margin-top: 14px; display: grid; gap: 6px; font-size: .9rem; color: var(--bt-inv-muted); }
#bt-page .bt-legend li { display: flex; align-items: center; gap: 10px; }
#bt-page .bt-legend strong { margin-left: auto; color: var(--bt-inv); font-variant-numeric: tabular-nums; }
#bt-page .bt-legend__dot { width: 10px; height: 10px; border-radius: 3px; flex: none; }
#bt-page .bt-legend__dot--contrib { background: var(--bt-c-contrib); }
#bt-page .bt-legend__dot--detr { background: var(--bt-c-detr); }
#bt-page .bt-legend__dot--rest { background: rgba(255, 255, 255, .35); }
#bt-page .bt-result__total { margin-top: 14px; font-size: .92rem; color: var(--bt-inv-muted); }
#bt-page .bt-result__total strong { color: var(--bt-inv); }
#bt-page .bt-result .bt-btn { margin-top: 22px; white-space: normal; }
#bt-page .bt-result__disclaimer { margin-top: 14px; font-size: .78rem; line-height: 1.5; color: rgba(163, 188, 179, .85); }

/* ==========================================================================
   10. PERCORSO — sticky scrollytelling
   ========================================================================== */
#bt-page .bt-steps {
  background: linear-gradient(180deg, var(--bt-deep) 0%, var(--bt-deep-2) 100%);
  color: var(--bt-inv);
  padding: var(--bt-pad) 0;
}
#bt-page .bt-steps__grid { margin-top: clamp(40px, 6vw, 72px); display: grid; gap: 32px; }
#bt-page .bt-steps__visual { display: none; }
@media (min-width: 960px) {
  #bt-page .bt-steps__grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; }
  #bt-page .bt-steps__visual { display: block; }
  #bt-page .bt-dossier { position: -webkit-sticky; position: sticky; top: 18vh; }
}
#bt-page .bt-dossier {
  padding: 36px 32px;
  border-radius: 28px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .02));
  border: 1px solid var(--bt-line-inv);
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 28px;
  align-items: center;
}
#bt-page .bt-dossier__ring { grid-row: 1; grid-column: 1; width: 170px; height: 170px; transform: rotate(-90deg); }
#bt-page .bt-dossier__track { fill: none; stroke: rgba(255, 255, 255, .1); stroke-width: 8; }
#bt-page .bt-dossier__bar {
  fill: none;
  stroke: var(--bt-amber);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 326.73;
  stroke-dashoffset: var(--off, 272.27);
  transition: stroke-dashoffset .8s var(--bt-out);
}
#bt-page .bt-dossier__core {
  grid-row: 1;
  grid-column: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
#bt-page .bt-dossier__step,
#bt-page .bt-dossier__of { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--bt-inv-muted); }
#bt-page .bt-dossier__num {
  font-family: var(--bt-font-h);
  font-weight: 800;
  font-size: 3.6rem;
  line-height: 1;
  color: #fff;
}
#bt-page .bt-dossier__num.is-swap { animation: bt-swap .55s var(--bt-out); }
@keyframes bt-swap {
  0% { transform: translateY(30%) scale(.9); opacity: 0; filter: blur(4px); }
  100% { transform: none; opacity: 1; filter: none; }
}
#bt-page .bt-dossier__list { display: grid; gap: 10px; }
#bt-page .bt-dossier__list li {
  position: relative;
  padding-left: 32px;
  font-size: .95rem;
  color: var(--bt-inv-muted);
  transition: color .4s ease;
}
#bt-page .bt-dossier__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 1.5px solid rgba(255, 255, 255, .25);
  transition: background .35s ease, border-color .35s ease, transform .4s var(--bt-spring);
}
#bt-page .bt-dossier__list li::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 7px;
  width: 8px;
  height: 5px;
  border-left: 2px solid var(--bt-deep);
  border-bottom: 2px solid var(--bt-deep);
  transform: rotate(-45deg) scale(0);
  transition: transform .35s var(--bt-spring) .1s;
}
#bt-page .bt-dossier__list li.is-done { color: var(--bt-inv); }
#bt-page .bt-dossier__list li.is-done::before { background: var(--bt-amber); border-color: var(--bt-amber); transform: scale(1.05); }
#bt-page .bt-dossier__list li.is-done::after { transform: rotate(-45deg) scale(1); }

#bt-page .bt-steps__list { position: relative; display: grid; gap: 18px; padding-left: 28px; }
#bt-page .bt-steps__list::before,
#bt-page .bt-steps__list::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  border-radius: 2px;
}
#bt-page .bt-steps__list::before { background: rgba(255, 255, 255, .1); }
#bt-page .bt-steps__list::after {
  background: linear-gradient(180deg, var(--bt-green), var(--bt-amber));
  transform-origin: 50% 0;
  transform: scaleY(var(--line, 1));
}
#bt-page .bt-step {
  position: relative;
  padding: 24px 22px;
  border-radius: 20px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  transition: background .5s ease, border-color .5s ease, opacity .5s ease, transform .5s var(--bt-out);
}
#bt-page .bt-step::before {
  content: "";
  position: absolute;
  left: -27px;
  top: 30px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bt-deep);
  border: 2px solid rgba(255, 255, 255, .3);
  transition: background .4s ease, border-color .4s ease, box-shadow .4s ease;
}
#bt-page .bt-step.is-active::before,
#bt-page .bt-step.is-past::before { background: var(--bt-amber); border-color: var(--bt-amber); box-shadow: 0 0 0 6px rgba(245, 158, 11, .18); }
#bt-page .bt-step__n {
  font-family: var(--bt-font-h);
  font-weight: 800;
  font-size: .9rem;
  letter-spacing: .1em;
  color: var(--bt-gold);
}
#bt-page .bt-step h3 { margin-top: 6px; font-size: clamp(1.2rem, 2vw, 1.45rem); }
#bt-page .bt-step p { margin-top: 10px; color: var(--bt-inv-muted); font-size: .98rem; }
@media (min-width: 960px) {
  #bt-page .bt-step { min-height: 52vh; display: flex; flex-direction: column; justify-content: center; padding: 34px 36px; }
  #bt-page.bt-js .bt-step { opacity: .35; }
  #bt-page.bt-js .bt-step.is-active { opacity: 1; background: rgba(255, 255, 255, .07); border-color: rgba(252, 211, 77, .28); transform: translateX(6px); }
}

/* ==========================================================================
   11. TIMELINE
   ========================================================================== */
#bt-page .bt-timeline { padding: var(--bt-pad) 0; background: var(--bt-surface); }
#bt-page .bt-tl { position: relative; margin-top: clamp(40px, 6vw, 70px); }
#bt-page .bt-tl__rail {
  position: absolute;
  left: 9px;
  top: 6px;
  bottom: 6px;
  width: 3px;
  border-radius: 3px;
  background: #e2ece8;
}
#bt-page .bt-tl__fill {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, var(--bt-green), var(--bt-amber));
  transform-origin: 50% 0;
  transform: scaleY(var(--tl, 1));
}
#bt-page .bt-tl__today {
  position: absolute;
  left: 50%;
  top: calc(var(--today) * 100%);
  width: 15px;
  height: 15px;
  margin: -7px 0 0 -7.5px;
  border-radius: 50%;
  background: var(--bt-red);
  box-shadow: 0 0 0 5px rgba(220, 75, 75, .2);
}
#bt-page .bt-tl__today::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid var(--bt-red);
  animation: bt-ping 2s var(--bt-out) infinite;
}
#bt-page .bt-tl__today em {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  padding: 2px 8px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(220, 75, 75, .18);
  font-style: normal;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--bt-red);
  white-space: nowrap;
  z-index: 2;
}
#bt-page .bt-tl__list { display: grid; gap: 26px; padding-left: 44px; }
#bt-page .bt-tl__node { position: relative; display: grid; gap: 2px; }
#bt-page .bt-tl__node::before {
  content: "";
  position: absolute;
  left: -40px;
  top: 6px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--bt-surface);
  border: 3px solid var(--bt-green);
}
#bt-page .bt-tl__node--key::before { border-color: var(--bt-amber); background: var(--bt-amber); }
#bt-page .bt-tl__node time { font-family: var(--bt-font-h); font-weight: 700; font-size: .92rem; color: var(--bt-green-dark); }
#bt-page .bt-tl__node--key time { color: var(--bt-amber-dark); }
#bt-page .bt-tl__node strong { font-family: var(--bt-font-h); font-size: 1.1rem; }
#bt-page .bt-tl__node span { font-size: .9rem; color: var(--bt-muted); }
@media (min-width: 960px) {
  #bt-page .bt-tl__rail { left: 0; right: 0; top: 8px; bottom: auto; width: auto; height: 3px; }
  #bt-page .bt-tl__fill { transform-origin: 0 50%; transform: scaleX(var(--tl, 1)); background: linear-gradient(90deg, var(--bt-green), var(--bt-amber)); }
  #bt-page .bt-tl__today { left: calc(var(--today) * 100%); top: 50%; margin: -7.5px 0 0 -7.5px; }
  #bt-page .bt-tl__today em { left: 50%; top: -26px; transform: translateX(-50%); }
  #bt-page .bt-tl__list { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; padding-left: 0; padding-top: 38px; }
  #bt-page .bt-tl__node::before { left: 0; top: -38px; }
}

/* ==========================================================================
   12. REQUISITI
   ========================================================================== */
#bt-page .bt-rules { padding: var(--bt-pad) 0; background: var(--bt-bg); }
#bt-page .bt-rules__grid { margin-top: clamp(36px, 5vw, 56px); display: grid; gap: 20px; }
@media (min-width: 960px) {
  #bt-page .bt-rules__grid { grid-template-columns: 1fr 1fr; gap: 26px; }
}
#bt-page .bt-rules__col {
  padding: clamp(24px, 3vw, 36px);
  border-radius: var(--bt-radius-lg);
  background: var(--bt-surface);
  border: 1px solid var(--bt-line);
  box-shadow: var(--bt-shadow);
}
#bt-page .bt-rules__col h3 { font-size: 1.35rem; display: flex; align-items: center; gap: 10px; }
#bt-page .bt-rules__col--yes h3 { color: var(--bt-green-dark); }
#bt-page .bt-rules__col--no h3 { color: #b83a3a; }
#bt-page .bt-rules__col ul { margin-top: 18px; display: grid; gap: 14px; }
#bt-page .bt-rules__col li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; font-size: .98rem; line-height: 1.55; }
#bt-page .bt-ico {
  width: 26px;
  height: 26px;
  padding: 4px;
  border-radius: 8px;
  fill: none;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 30;
  stroke-dashoffset: 0;
}
#bt-page .bt-rules__col--yes .bt-ico { stroke: var(--bt-green); background: rgba(5, 150, 105, .1); }
#bt-page .bt-rules__col--no .bt-ico { stroke: var(--bt-red); background: rgba(220, 75, 75, .1); }
#bt-page.bt-js .bt-rules__col .bt-ico { stroke-dashoffset: 30; transition: stroke-dashoffset .6s var(--bt-out); }
#bt-page.bt-js .bt-rules__col.is-revealed .bt-ico { stroke-dashoffset: 0; }
#bt-page.bt-js .bt-rules__col.is-revealed li:nth-child(1) .bt-ico { transition-delay: .2s; }
#bt-page.bt-js .bt-rules__col.is-revealed li:nth-child(2) .bt-ico { transition-delay: .32s; }
#bt-page.bt-js .bt-rules__col.is-revealed li:nth-child(3) .bt-ico { transition-delay: .44s; }
#bt-page.bt-js .bt-rules__col.is-revealed li:nth-child(4) .bt-ico { transition-delay: .56s; }
#bt-page.bt-js .bt-rules__col.is-revealed li:nth-child(5) .bt-ico { transition-delay: .68s; }
#bt-page.bt-js .bt-rules__col.is-revealed li:nth-child(6) .bt-ico { transition-delay: .8s; }
#bt-page .bt-rules__alt {
  margin-top: 22px;
  padding: 22px 24px;
  border-radius: var(--bt-radius-lg);
  background: #eef7f3;
  border: 1px dashed rgba(5, 150, 105, .35);
  display: grid;
  gap: 14px;
}
@media (min-width: 960px) {
  #bt-page .bt-rules__alt { grid-template-columns: 1fr auto; align-items: center; }
}
#bt-page .bt-rules__alt-links { display: flex; flex-wrap: wrap; gap: 10px; }

/* ==========================================================================
   13. PUNTEGGIO
   ========================================================================== */
#bt-page .bt-score {
  padding: var(--bt-pad) 0;
  background:
    radial-gradient(80% 60% at 90% 10%, rgba(245, 158, 11, .14), transparent 60%),
    var(--bt-deep);
  color: var(--bt-inv);
}
#bt-page .bt-score__grid { margin-top: clamp(36px, 5vw, 56px); display: grid; gap: 18px; }
@media (min-width: 900px) {
  #bt-page .bt-score__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
#bt-page .bt-score__card {
  position: relative;
  padding: 30px 26px;
  border-radius: var(--bt-radius-lg);
  background: linear-gradient(160deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .02));
  border: 1px solid var(--bt-line-inv);
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .4s var(--bt-out), border-color .3s ease;
}
#bt-page .bt-score__pts {
  font-family: var(--bt-font-h);
  font-weight: 800;
  font-size: clamp(3rem, 6vw, 4.2rem);
  line-height: 1;
  background: linear-gradient(120deg, var(--bt-gold), var(--bt-amber));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
#bt-page .bt-score__card h3 { margin-top: 14px; font-size: 1.3rem; }
#bt-page .bt-score__card p { margin-top: 10px; color: var(--bt-inv-muted); font-size: .96rem; }
#bt-page .bt-score__card .bt-score__warn {
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 10px;
  border-left: 3px solid var(--bt-amber);
  background: rgba(245, 158, 11, .1);
  color: #f4dfb5;
  font-size: .86rem;
  line-height: 1.5;
}

/* ==========================================================================
   14. 2026 vs 2027
   ========================================================================== */
#bt-page .bt-versus { padding: var(--bt-pad) 0; background: var(--bt-surface); }
#bt-page .bt-vs { margin-top: clamp(36px, 5vw, 56px); display: grid; gap: 18px; max-width: 920px; }
#bt-page .bt-vs__row {
  padding: 22px 24px;
  border-radius: var(--bt-radius-lg);
  border: 1px solid var(--bt-line);
  background: var(--bt-bg);
  display: grid;
  gap: 12px;
}
#bt-page .bt-vs__row--win { border-color: rgba(5, 150, 105, .45); box-shadow: 0 10px 34px rgba(5, 150, 105, .12); background: #f2fbf7; }
#bt-page .bt-vs__meta { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 14px; }
#bt-page .bt-vs__meta strong { font-family: var(--bt-font-h); font-size: 1.12rem; }
#bt-page .bt-vs__meta span { font-size: .88rem; color: var(--bt-muted); }
#bt-page .bt-vs__bar { display: flex; height: 18px; border-radius: 10px; overflow: hidden; background: #e7efec; }
#bt-page .bt-vs__bar .bt-stack__seg--rest { background: var(--bt-c-rest); }
#bt-page.bt-js .bt-vs__row .bt-stack__seg { width: 0; transition: width 1.1s var(--bt-out); }
#bt-page.bt-js .bt-vs__row.is-revealed .bt-stack__seg { width: var(--w); }
#bt-page.bt-js .bt-vs__row.is-revealed .bt-stack__seg--detr { transition-delay: .25s; }
#bt-page.bt-js .bt-vs__row.is-revealed .bt-stack__seg--rest { transition-delay: .5s; }
#bt-page .bt-vs__nums { font-size: .95rem; color: var(--bt-muted); }
#bt-page .bt-vs__nums strong { color: var(--bt-text); }
#bt-page .bt-vs__delta { font-size: 1rem; color: var(--bt-muted); max-width: 70ch; }
#bt-page .bt-vs__delta strong { color: var(--bt-amber-dark); font-family: var(--bt-font-h); }

/* ==========================================================================
   15. DOCUMENTI
   ========================================================================== */
#bt-page .bt-docs { padding: var(--bt-pad) 0; background: var(--bt-bg); }
#bt-page .bt-docs__grid { display: grid; gap: 34px; }
@media (min-width: 960px) {
  #bt-page .bt-docs__grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 60px; align-items: start; }
  #bt-page .bt-docs .bt-head { position: sticky; top: 110px; }
}
#bt-page .bt-docs__list { display: grid; gap: 12px; }
#bt-page .bt-docs__list label {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 14px;
  align-items: start;
  padding: 18px 20px;
  border-radius: 16px;
  background: var(--bt-surface);
  border: 1px solid var(--bt-line);
  cursor: pointer;
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s var(--bt-out);
}
#bt-page .bt-docs__list input { position: absolute; opacity: 0; width: 1px; height: 1px; }
#bt-page .bt-docs__box {
  position: relative;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  border: 2px solid #c6d6d0;
  transition: background .3s ease, border-color .3s ease, transform .35s var(--bt-spring);
}
#bt-page .bt-docs__box::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 3px;
  width: 7px;
  height: 12px;
  border-right: 2.5px solid #fff;
  border-bottom: 2.5px solid #fff;
  transform: rotate(45deg) scale(0);
  transition: transform .3s var(--bt-spring);
}
#bt-page .bt-docs__list input:checked + .bt-docs__box { background: var(--bt-green); border-color: var(--bt-green); transform: scale(1.06); }
#bt-page .bt-docs__list input:checked + .bt-docs__box::after { transform: rotate(45deg) scale(1); }
#bt-page .bt-docs__list input:focus-visible + .bt-docs__box { outline: 2px solid var(--bt-amber); outline-offset: 3px; }
#bt-page .bt-docs__list label:has(input:checked) { border-color: rgba(5, 150, 105, .45); box-shadow: 0 8px 22px rgba(5, 150, 105, .1); }
#bt-page .bt-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 10px;
  border-radius: 20px;
  background: rgba(245, 158, 11, .14);
  color: var(--bt-amber-dark);
  font-style: normal;
  font-size: .76rem;
  font-weight: 700;
  white-space: nowrap;
}

/* ==========================================================================
   16. PERCHÉ NOI (glow che segue il cursore)
   ========================================================================== */
#bt-page .bt-why { padding: var(--bt-pad) 0; background: var(--bt-deep); color: var(--bt-inv); }
#bt-page .bt-why__grid { margin-top: clamp(36px, 5vw, 56px); display: grid; gap: 14px; }
@media (min-width: 720px) { #bt-page .bt-why__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { #bt-page .bt-why__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
#bt-page .bt-why__card {
  position: relative;
  padding: 28px 24px;
  border-radius: 20px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--bt-line-inv);
  overflow: hidden;
  --mx: 50%;
  --my: -20%;
}
#bt-page .bt-why__card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(252, 211, 77, .14), transparent 45%);
  pointer-events: none;
}
#bt-page .bt-why__card h3 { position: relative; font-size: 1.2rem; }
#bt-page .bt-why__card p { position: relative; margin-top: 10px; color: var(--bt-inv-muted); font-size: .96rem; }
#bt-page .bt-why__card a { color: var(--bt-gold); }

/* ==========================================================================
   17. COMUNI — marquee (pausabile, fermo con reduced-motion)
   ========================================================================== */
#bt-page .bt-towns {
  position: relative;
  padding: 34px 0 30px;
  background: var(--bt-amber);
  color: #241703;
  overflow: hidden;
}
#bt-page .bt-towns__title {
  text-align: center;
  font-family: var(--bt-font-h);
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 0 20px;
}
#bt-page .bt-marquee {
  margin-top: 16px;
  display: flex;
  width: max-content;
  animation: bt-marquee 60s linear infinite;
}
#bt-page .bt-marquee.is-paused,
#bt-page .bt-marquee:hover { animation-play-state: paused; }
@keyframes bt-marquee { to { transform: translateX(-50%); } }
#bt-page .bt-marquee__track { display: flex; flex: none; }
#bt-page .bt-marquee__track li {
  padding: 0 24px;
  font-family: var(--bt-font-h);
  font-weight: 700;
  font-size: clamp(1.25rem, 2.6vw, 1.9rem);
  white-space: nowrap;
  position: relative;
}
#bt-page .bt-marquee__track li::after {
  content: "";
  position: absolute;
  right: -4px;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-radius: 50%;
  background: rgba(36, 23, 3, .35);
}
#bt-page .bt-marquee__toggle {
  display: block;
  margin: 16px auto 0;
  min-height: 44px;
  padding: 8px 18px;
  border-radius: 30px;
  border: 1.5px solid rgba(36, 23, 3, .35);
  font-size: .85rem;
  font-weight: 600;
}

/* ==========================================================================
   18. FAQ
   ========================================================================== */
#bt-page .bt-faq { padding: var(--bt-pad) 0; background: var(--bt-surface); }
#bt-page .bt-faq__grid { display: grid; gap: 34px; }
@media (min-width: 960px) {
  #bt-page .bt-faq__grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 60px; align-items: start; }
  #bt-page .bt-faq .bt-head { position: sticky; top: 110px; }
}
#bt-page .bt-faq__list { display: grid; }
#bt-page .bt-faq__item { border-bottom: 1px solid var(--bt-line); }
#bt-page .bt-faq__q { font-size: 1.05rem; }
#bt-page .bt-faq__btn {
  width: 100%;
  min-height: 56px;
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  text-align: left;
  font-family: var(--bt-font-h);
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.35;
}
#bt-page .bt-faq__icon {
  position: relative;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #eef5f2;
  transition: background .3s ease, transform .4s var(--bt-spring);
}
#bt-page .bt-faq__icon::before,
#bt-page .bt-faq__icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 2px;
  margin: -1px 0 0 -6px;
  border-radius: 2px;
  background: var(--bt-green-dark);
  transition: transform .35s var(--bt-out);
}
#bt-page .bt-faq__icon::after { transform: rotate(90deg); }
#bt-page .bt-faq__item.is-open .bt-faq__icon { background: var(--bt-amber); transform: rotate(180deg); }
#bt-page .bt-faq__item.is-open .bt-faq__icon::after { transform: rotate(0deg); }
#bt-page .bt-faq__a { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .45s var(--bt-out); }
#bt-page.bt-js .bt-faq__a { grid-template-rows: 0fr; }
#bt-page.bt-js .bt-faq__item.is-open .bt-faq__a { grid-template-rows: 1fr; }
#bt-page .bt-faq__a-inner { overflow: hidden; }
#bt-page .bt-faq__a p { padding-bottom: 22px; color: var(--bt-muted); font-size: .98rem; max-width: 68ch; }

/* ==========================================================================
   19. FORM
   ========================================================================== */
#bt-page .bt-form-sec {
  padding: var(--bt-pad) 0;
  background:
    radial-gradient(70% 60% at 0% 0%, rgba(16, 185, 129, .2), transparent 60%),
    linear-gradient(170deg, var(--bt-deep-2), var(--bt-deep));
  color: var(--bt-inv);
}
#bt-page .bt-form-sec__grid { display: grid; gap: 36px; }
@media (min-width: 960px) {
  #bt-page .bt-form-sec__grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 64px; align-items: start; }
}
#bt-page .bt-form-sec .bt-kicker { color: var(--bt-gold); }
#bt-page .bt-form-sec .bt-lead { color: var(--bt-inv-muted); }
#bt-page .bt-form-sec__points { margin-top: 24px; display: grid; gap: 10px; }
#bt-page .bt-form-sec__points li { position: relative; padding-left: 30px; }
#bt-page .bt-form-sec__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bt-amber) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f1403' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
#bt-page .bt-form-sec__direct { margin-top: 26px; color: var(--bt-inv-muted); }
#bt-page .bt-form-sec__direct a { color: var(--bt-gold); font-weight: 600; }

#bt-page .bt-form {
  padding: clamp(24px, 3.4vw, 40px);
  border-radius: var(--bt-radius-lg);
  background: var(--bt-surface);
  color: var(--bt-text);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
  display: grid;
  gap: 16px;
}
#bt-page .bt-form__row { display: grid; gap: 16px; }
@media (min-width: 640px) { #bt-page .bt-form__row { grid-template-columns: 1fr 1fr; } }
#bt-page .bt-form__field { display: grid; gap: 6px; border: 0; }
#bt-page .bt-form__field > label,
#bt-page .bt-form__field legend { font-size: .88rem; font-weight: 600; }
#bt-page .bt-form input[type="text"],
#bt-page .bt-form input[type="tel"],
#bt-page .bt-form input[type="email"],
#bt-page .bt-form select {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1.5px solid #d3e2dc;
  background: #fbfdfc;
  font-size: 1rem;
  transition: border-color .2s ease, box-shadow .2s ease;
}
#bt-page .bt-form input:focus,
#bt-page .bt-form select:focus { border-color: var(--bt-green); box-shadow: 0 0 0 4px rgba(5, 150, 105, .14); outline: none; }
#bt-page .bt-form__field.has-error input,
#bt-page .bt-form__field.has-error select { border-color: var(--bt-red); }
#bt-page .bt-form__error { min-height: 0; font-size: .82rem; color: #b83a3a; }
#bt-page .bt-form__note { font-size: .82rem; color: var(--bt-amber-dark); }
#bt-page .bt-form__chips { display: flex; flex-wrap: wrap; gap: 10px; }
#bt-page .bt-form__chips legend { width: 100%; margin-bottom: 4px; }
#bt-page .bt-form__chips label { position: relative; cursor: pointer; }
#bt-page .bt-form__chips input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
#bt-page .bt-form__chips span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 30px;
  border: 1.5px solid #d3e2dc;
  font-weight: 600;
  font-size: .92rem;
  transition: background .25s ease, border-color .25s ease, color .25s ease;
}
#bt-page .bt-form__chips input:checked + span { background: var(--bt-deep); border-color: var(--bt-deep); color: #fff; }
#bt-page .bt-form__chips input:focus-visible + span { outline: 2px solid var(--bt-amber); outline-offset: 2px; }
#bt-page .bt-form__check { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: .86rem; line-height: 1.5; color: var(--bt-muted); cursor: pointer; }
#bt-page .bt-form__check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--bt-green); }
#bt-page .bt-form__check a { color: var(--bt-green-dark); }
#bt-page .bt-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
#bt-page .bt-form__msg { font-size: .9rem; text-align: center; }
#bt-page .bt-form__msg.is-error { color: #b83a3a; }

/* ==========================================================================
   20. FONTI
   ========================================================================== */
#bt-page .bt-sources { padding: clamp(56px, 7vw, 90px) 0; background: var(--bt-bg); border-top: 1px solid var(--bt-line); }
#bt-page .bt-sources__title { font-size: 1.3rem; }
#bt-page .bt-sources__list { margin-top: 16px; display: grid; gap: 8px; }
#bt-page .bt-sources__list a { color: var(--bt-green-dark); font-size: .95rem; }
#bt-page .bt-sources__note { margin-top: 20px; font-size: .86rem; color: var(--bt-muted); max-width: 90ch; }

/* ==========================================================================
   21. STICKY CTA MOBILE
   ========================================================================== */
#bt-page .bt-sticky {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 10px 10px 18px;
  border-radius: 60px;
  background: rgba(4, 32, 26, .92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: var(--bt-inv);
  box-shadow: 0 14px 40px rgba(0, 0, 0, .35);
  transform: translateY(160%);
  transition: transform .45s var(--bt-out);
}
#bt-page .bt-sticky.is-visible { transform: none; }
#bt-page .bt-sticky__info { font-size: .86rem; line-height: 1.25; }
#bt-page .bt-sticky__info strong { font-family: var(--bt-font-h); font-size: 1.1rem; color: var(--bt-gold); }
@media (min-width: 960px) { #bt-page .bt-sticky { display: none; } }

/* ==========================================================================
   22. REDUCED MOTION — il CSS dipinge lo stato finale
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  #bt-page *,
  #bt-page *::before,
  #bt-page *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
  #bt-page.bt-js [data-reveal] { opacity: 1 !important; transform: none !important; }
  #bt-page .bt-hero__bar { display: none !important; }
  #bt-page .bt-marquee { animation: none !important; flex-wrap: wrap; width: auto; justify-content: center; }
  #bt-page .bt-marquee__track { flex-wrap: wrap; justify-content: center; }
  #bt-page .bt-marquee__track[aria-hidden="true"],
  #bt-page .bt-marquee__toggle { display: none; }
  #bt-page.bt-js .bt-manifesto__text .bt-w { opacity: 1 !important; }
  #bt-page.bt-js .bt-step { opacity: 1 !important; }
  #bt-page .bt-ticket::before { animation: none; }
}
