/* ═══════════════════════════════════════════════════════════════════════
   BlocArena — Landing page
   Palette identica a frontend/lib/theme/app_theme.dart (AppColors).
   ═══════════════════════════════════════════════════════════════════════ */

:root {
  /* Brand */
  --seed: #768973;
  --logo: #2F5B47;
  --primary: #5B6D58;
  --primary-pressed: #4E5F4B;
  --primary-dim: #DCEBD5;
  --inverse-primary: #BFD0B9;
  --secondary-container: #DCE7D3;
  --accent: #3B6A6A;
  --accent-dim: #BFEBEA;

  /* Forest */
  --forest-ink: #142112;
  --forest: #25331F;
  --forest-mid: #3F5339;
  --on-forest-dim: #BFD0B9;

  /* Risultati */
  --top: #F5B800;
  --top-ink: #7A5C00;
  --top-light: #FFE58F;
  --top-on-dark: #FFD54A;
  --zone: #4352A8;
  --zone-light: #DFE0FF;
  --zone-on-dark: #B9C3FF;
  --success: #2E7D4F;
  --success-light: #D4EEDB;

  /* Superfici */
  --bg: #F9FAF4;
  --card: #FFFFFF;
  --surface-low: #F3F5EE;
  --surface: #EDEFE8;
  --surface-high: #E7E9E2;
  --surface-highest: #E1E4DC;

  /* Testo */
  --ink: #1A1C18;
  --ink-mid: #444941;
  --ink-dim: #747970;
  --border: #E1E4DC;
  --border-mid: #C4C8BE;

  --hero-gradient: linear-gradient(135deg, var(--forest) 0%, var(--forest-mid) 100%);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-soft: cubic-bezier(.4, 0, .2, 1);
  --radius: 28px;
  --shadow-card: 0 1px 3px rgba(26, 28, 24, .06), 0 4px 12px rgba(26, 28, 24, .04);
  --shadow-lift: 0 30px 60px -24px rgba(20, 33, 18, .28), 0 8px 20px -10px rgba(20, 33, 18, .12);
  --shadow-phone: 0 50px 90px -30px rgba(20, 33, 18, .55), 0 18px 36px -18px rgba(20, 33, 18, .35);

  --font-body: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Barlow Condensed', 'Barlow', system-ui, sans-serif;
  --font-brand: 'Montserrat', 'Barlow', system-ui, sans-serif;

  /* Bootstrap overrides */
  --bs-body-font-family: var(--font-body);
  --bs-body-color: var(--ink);
  --bs-body-bg: var(--bg);
  --bs-link-color: var(--primary);
  --bs-link-hover-color: var(--forest-mid);
  --bs-border-color: var(--border);
  --bs-gutter-x: 2rem;
}

/* ── Base ──────────────────────────────────────────────────────────────── */
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
::selection { background: var(--top-light); color: var(--forest-ink); }
.container { --bs-gutter-x: 2rem; }

.ic {
  width: 1.15em; height: 1.15em;
  fill: none; stroke: currentColor; stroke-width: 1.9;
  stroke-linecap: round; stroke-linejoin: round;
  flex-shrink: 0; vertical-align: -.18em;
}

h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -.01em; }

.section { padding: clamp(80px, 11vw, 140px) 0; position: relative; }
.narrow { max-width: 760px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-body); font-weight: 700;
  font-size: .78rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--primary);
  padding: .45rem .9rem; border-radius: 999px;
  background: var(--primary-dim);
  margin-bottom: 1.25rem;
}
.eyebrow-dark { background: rgba(220, 235, 213, .1); color: var(--inverse-primary); border: 1px solid rgba(191, 208, 185, .18); }
.eyebrow .ic { color: var(--top); }

.section-title {
  font-weight: 800;
  font-size: clamp(2.3rem, 4.6vw, 3.9rem);
  line-height: 1;
  margin-bottom: 1.4rem;
  color: var(--forest);
}
.text-muted-brand { color: var(--seed); }
.section-lead { font-size: 1.15rem; color: var(--ink-mid); max-width: 62ch; }
.text-center .section-lead { margin-left: auto; margin-right: auto; }
.link-brand { color: var(--primary); font-weight: 600; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }

/* ── Buttons ───────────────────────────────────────────────────────────── */
.btn { font-weight: 600; display: inline-flex; align-items: center; gap: .55rem; border: 0; transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-color .25s, color .25s; }
.btn .ic { transition: transform .35s var(--ease); }
.btn:hover .ic { transform: translateX(3px); }
.btn-lg-pill { padding: .95rem 1.6rem; border-radius: 999px; font-size: 1.02rem; }
.btn-sm-pill { padding: .6rem 1.15rem; border-radius: 999px; font-size: .95rem; }

.btn-brand { background: var(--primary); color: #fff; box-shadow: 0 10px 24px -10px rgba(91, 109, 88, .7); }
.btn-brand:hover, .btn-brand:focus-visible { background: var(--primary-pressed); color: #fff; transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(91, 109, 88, .8); }

.btn-light-brand { background: var(--primary-dim); color: var(--forest-ink); box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .55), inset 0 -2px 0 rgba(20, 33, 18, .08); }
.btn-light-brand:hover, .btn-light-brand:focus-visible { background: #fff; color: var(--forest-ink); transform: translateY(-2px); }

.btn-glass { background: rgba(255, 255, 255, .08); color: #fff; border: 1px solid rgba(255, 255, 255, .18); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn-glass:hover, .btn-glass:focus-visible { background: rgba(255, 255, 255, .16); color: #fff; transform: translateY(-2px); }
.btn-glass:hover .ic { transform: none; }

.play-dot { width: 28px; height: 28px; border-radius: 50%; background: var(--top); color: var(--forest-ink); display: inline-grid; place-items: center; margin-left: -.5rem; }
.play-dot .ic { width: 12px; height: 12px; margin-left: 2px; }
.play-dot-down .ic { width: 15px; height: 15px; margin-left: 0; stroke-width: 2.4; }

/* ── Scroll progress ───────────────────────────────────────────────────── */
.scroll-progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 1100; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--seed), var(--top)); }

/* ── Navbar ────────────────────────────────────────────────────────────── */
.site-nav { padding: 1.1rem 0; transition: padding .4s var(--ease), background-color .4s, box-shadow .4s, backdrop-filter .4s; }
.site-nav.is-scrolled { padding: .6rem 0; background: rgba(249, 250, 244, .82); backdrop-filter: saturate(1.4) blur(18px); -webkit-backdrop-filter: saturate(1.4) blur(18px); box-shadow: 0 1px 0 var(--border), 0 10px 30px -18px rgba(20, 33, 18, .25); }

.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand-mark { position: relative; width: 28px; height: 35px; }
.brand-mark img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity .35s; }
.brand-word { font-family: var(--font-brand); font-weight: 700; font-size: 1.32rem; letter-spacing: -.02em; color: #fff; transition: color .35s; }
.brand-word .dot { color: var(--top); }
.mark-dark { opacity: 0; }
.site-nav.is-scrolled .mark-light { opacity: 0; }
.site-nav.is-scrolled .mark-dark { opacity: 1; }
.site-nav.is-scrolled .brand-word { color: var(--logo); }

.site-nav .nav-link { color: rgba(255, 255, 255, .78); font-weight: 500; padding: .5rem .95rem !important; border-radius: 999px; position: relative; transition: color .25s, background-color .25s; }
.site-nav .nav-link:hover, .site-nav .nav-link.active { color: #fff; background: rgba(255, 255, 255, .08); }
.site-nav.is-scrolled .nav-link { color: var(--ink-mid); }
.site-nav.is-scrolled .nav-link:hover, .site-nav.is-scrolled .nav-link.active { color: var(--forest); background: var(--surface); }

.nav-actions { display: flex; align-items: center; gap: .5rem; }
.btn-ghost-nav { color: #fff; padding: .55rem 1rem; border-radius: 999px; }
.btn-ghost-nav:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.site-nav.is-scrolled .btn-ghost-nav { color: var(--forest); }
.site-nav.is-scrolled .btn-ghost-nav:hover { background: var(--surface); color: var(--forest); }
.btn-nav-cta { background: var(--primary-dim); color: var(--forest-ink); padding: .6rem 1.15rem; border-radius: 999px; }
.btn-nav-cta:hover { background: #fff; color: var(--forest-ink); transform: translateY(-1px); }
.site-nav.is-scrolled .btn-nav-cta { background: var(--primary); color: #fff; }
.site-nav.is-scrolled .btn-nav-cta:hover { background: var(--primary-pressed); }

.navbar-toggler { border: 0; padding: .6rem; width: 46px; height: 46px; border-radius: 14px; background: rgba(255, 255, 255, .1); display: none; flex-direction: column; justify-content: center; gap: 6px; }
.navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(191, 208, 185, .4); }
.toggler-bar { display: block; height: 2px; width: 22px; margin: 0 auto; background: #fff; border-radius: 2px; transition: transform .35s var(--ease), background-color .3s; }
.site-nav.is-scrolled .navbar-toggler { background: var(--surface); }
.site-nav.is-scrolled .toggler-bar { background: var(--forest); }
.navbar-toggler[aria-expanded="true"] .toggler-bar:first-child { transform: translateY(4px) rotate(45deg); }
.navbar-toggler[aria-expanded="true"] .toggler-bar:last-child { transform: translateY(-4px) rotate(-45deg); }

@media (max-width: 1199.98px) {
  .navbar-toggler { display: flex; }
  .site-nav .navbar-collapse { margin-top: .8rem; background: rgba(20, 33, 18, .96); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-radius: 22px; padding: .8rem; border: 1px solid rgba(255, 255, 255, .08); }
  .site-nav.is-scrolled .navbar-collapse { background: #fff; border-color: var(--border); box-shadow: var(--shadow-lift); }
  .site-nav .nav-link { padding: .75rem 1rem !important; }
  .nav-actions { padding: .6rem .4rem .3rem; border-top: 1px solid rgba(255, 255, 255, .08); margin-top: .4rem; }
  .site-nav.is-scrolled .nav-actions { border-color: var(--border); }
  .nav-actions .btn { flex: 1; justify-content: center; }
}

/* ── Topographic lines ─────────────────────────────────────────────────── */
.topo { position: absolute; inset: 0; pointer-events: none; overflow: hidden; opacity: .5; }
.topo svg { width: 100%; height: 100%; }
.topo path { fill: none; stroke: rgba(191, 208, 185, .11); stroke-width: 1; }
.topo-soft { opacity: .35; }

/* ═══ HERO ═══════════════════════════════════════════════════════════════ */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(120% 90% at 80% 0%, var(--forest-mid) 0%, var(--forest) 45%, var(--forest-ink) 100%);
  color: #fff;
  padding: clamp(130px, 16vw, 170px) 0 clamp(150px, 15vw, 200px);
  min-height: 100svh;
  display: flex; align-items: center;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; }
.glow-1 { width: 520px; height: 520px; right: -120px; top: 10%; background: radial-gradient(circle, rgba(118, 137, 115, .65), transparent 65%); animation: drift 18s ease-in-out infinite alternate; }
.glow-2 { width: 380px; height: 380px; left: -140px; bottom: -80px; background: radial-gradient(circle, rgba(245, 184, 0, .18), transparent 65%); animation: drift 22s ease-in-out infinite alternate-reverse; }
@keyframes drift { to { transform: translate3d(-60px, 40px, 0) scale(1.1); } }

.hero-title {
  font-weight: 800;
  font-size: clamp(2.9rem, 5.2vw, 4.7rem);
  line-height: .95;
  letter-spacing: -.015em;
  margin: 0 0 1.6rem;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.hero-title .line > span { display: inline-block; position: relative; }
.hero-title .hl { color: var(--primary-dim); background: linear-gradient(100deg, #fff 0%, var(--primary-dim) 40%, var(--top-light) 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.swash { position: absolute; left: 0; right: 0; bottom: -.12em; width: 100%; height: .22em; overflow: visible; }
.swash path { fill: none; stroke: var(--top); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 320; stroke-dashoffset: 320; }

.hero-lead { font-size: clamp(1.08rem, 1.4vw, 1.22rem); color: rgba(255, 255, 255, .76); max-width: 54ch; margin-bottom: 2rem; }
.hero-lead strong { color: #fff; font-weight: 600; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 2rem; }

/* Code form */
.code-form { max-width: 470px; margin-bottom: 1.8rem; }
.code-label { display: block; font-size: .85rem; font-weight: 600; color: var(--inverse-primary); margin-bottom: .55rem; letter-spacing: .02em; }
.code-field { display: flex; align-items: center; gap: .5rem; padding: .4rem .4rem .4rem 1.1rem; border-radius: 999px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: border-color .3s, box-shadow .3s, background-color .3s; }
.code-field:focus-within { border-color: rgba(220, 235, 213, .55); background: rgba(255, 255, 255, .1); box-shadow: 0 0 0 5px rgba(191, 208, 185, .12); }
.code-hash { color: var(--top); width: 1.2em; height: 1.2em; }
.code-field input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 1.45rem; letter-spacing: .22em; padding: .2rem 0; }
.code-field input::placeholder { color: rgba(255, 255, 255, .28); }
.code-submit { border: 0; border-radius: 999px; padding: .7rem 1.15rem; font-weight: 700; background: var(--top); color: var(--forest-ink); display: inline-flex; align-items: center; gap: .4rem; transition: transform .3s var(--ease), background-color .25s; white-space: nowrap; }
.code-submit:hover { transform: translateX(2px); background: var(--top-on-dark); }
.code-help:empty { display: none; }
.code-help { display: block; margin-top: .5rem; padding-left: 1.1rem; color: rgba(255, 255, 255, .5); font-size: .82rem; transition: color .25s; }
.code-form.is-error .code-field { border-color: #ffb4ab; animation: shake .45s var(--ease-soft); }
.code-form.is-error .code-help { color: #ffb4ab; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

.hero-micro { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; color: rgba(255, 255, 255, .62); font-size: .92rem; }
.hero-micro .ic { color: var(--inverse-primary); margin-right: .3rem; }

.hero .hero-copy { margin: 0; }

/* Hero media */
.hero-media { position: relative; max-width: 580px; margin-left: auto; margin-right: auto; }
.hero-video-frame { position: relative; border-radius: 36px; overflow: hidden; aspect-ratio: 1 / 1; background: var(--forest-ink) url('../video/blocarena-hero-poster.jpg') center / cover; box-shadow: 0 60px 120px -40px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .08); }
.hero-video-frame::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06), inset 0 -80px 80px -40px rgba(20, 33, 18, .45); pointer-events: none; }
.hero-video { width: 100%; height: 100%; object-fit: cover; }

.float-chip { position: absolute; display: flex; align-items: center; gap: .7rem; padding: .7rem 1rem .7rem .7rem; border-radius: 18px; background: rgba(255, 255, 255, .94); color: var(--ink); box-shadow: 0 22px 44px -18px rgba(0, 0, 0, .45); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); z-index: 2; line-height: 1.15; }
.float-chip b { display: block; font-family: var(--font-display); font-size: 1.08rem; font-weight: 800; letter-spacing: .02em; color: var(--forest); }
.float-chip small { display: block; font-size: .78rem; color: var(--ink-dim); }
.chip-icon { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; }
.bg-top { background: var(--top); color: var(--forest-ink); }
.bg-zone { background: var(--zone); color: #fff; }
.bg-success { background: var(--success); color: #fff; }
.chip-top { left: -28px; top: 14%; }
.chip-zone { right: -22px; top: 46%; }
.chip-live { left: 6%; bottom: -22px; }
.live-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--success); margin: 0 .35rem 0 .45rem; box-shadow: 0 0 0 0 rgba(46, 125, 79, .5); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(46, 125, 79, 0); } 100% { box-shadow: 0 0 0 0 rgba(46, 125, 79, 0); } }
.float-chip .chip-inner { will-change: transform; }

.scroll-cue { position: absolute; left: 50%; bottom: 28px; width: 26px; height: 42px; margin-left: -13px; border-radius: 14px; border: 1.5px solid rgba(255, 255, 255, .3); display: none; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

@media (min-width: 992px) { .scroll-cue { display: block; } }
@media (max-width: 991.98px) {
  .hero { min-height: 0; }
  .hero-media { max-width: 460px; }
  .chip-top { left: -8px; }
  .chip-zone { right: -8px; }
}
@media (max-width: 575.98px) {
  .float-chip { padding: .5rem .8rem .5rem .5rem; border-radius: 14px; }
  .chip-icon { width: 32px; height: 32px; border-radius: 10px; }
  .float-chip b { font-size: .95rem; }
  .float-chip small { font-size: .7rem; }
  .code-field input { font-size: 1.2rem; letter-spacing: .14em; }
  .code-submit { padding: .65rem .9rem; }
}

/* Hero entrance */
.js .hero-in { opacity: 0; transform: translateY(24px); }
.js .hero-title .line > span { transform: translateY(110%); }
.js .hero-media-in { opacity: 0; transform: translateY(40px) scale(.94); }
.js .hero .float-chip { opacity: 0; }
.is-loaded .hero-in { opacity: 1; transform: none; transition: opacity 1s var(--ease) var(--d, 0s), transform 1s var(--ease) var(--d, 0s); }
.is-loaded .hero-title .line > span { transform: none; transition: transform 1.1s var(--ease) var(--d, 0s); }
.is-loaded .swash path { stroke-dashoffset: 0; transition: stroke-dashoffset 1.2s var(--ease) 1.05s; }
.is-loaded .hero-media-in { opacity: 1; transform: none; transition: opacity 1.3s var(--ease) .35s, transform 1.6s var(--ease) .35s; }
.is-loaded .hero .float-chip { opacity: 1; animation: chipIn 1s var(--ease) both, float 6s ease-in-out infinite; }
.is-loaded .hero .chip-top { animation-delay: 1s, 2s; }
.is-loaded .hero .chip-zone { animation-delay: 1.2s, 2.4s; }
.is-loaded .hero .chip-live { animation-delay: 1.4s, 2.8s; }
/* chipIn anima `scale`/`opacity` (non `transform`), così il parallax col mouse
   (transform inline) e il float (translate) non vanno in conflitto. */
@keyframes chipIn { from { opacity: 0; scale: .8; } to { opacity: 1; scale: 1; } }
.hero .float-chip { transition: transform .6s var(--ease); }
.hero-micro .micro-free { color: var(--top-on-dark); font-weight: 600; }
.hero-micro .micro-free .ic { color: var(--top); }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }

/* ═══ STATS ══════════════════════════════════════════════════════════════ */
.stats-wrap { position: relative; z-index: 3; margin-top: clamp(-110px, -9vw, -70px); }
.stats-card { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-lift); padding: 2.2rem 1rem; border: 1px solid rgba(255, 255, 255, .6); }
.stat { padding: .4rem 1.6rem; position: relative; }
.stat + .stat::before { content: ''; position: absolute; left: 0; top: 12%; bottom: 12%; width: 1px; background: var(--border); }
.stat-num { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.8rem, 4.4vw, 3.8rem); line-height: 1; color: var(--forest); margin-bottom: .5rem; font-variant-numeric: tabular-nums; }
.stat:nth-child(1) .stat-num span { color: var(--primary); }
.stat:nth-child(4) .stat-num span { color: var(--top-ink); }
.stat-label { color: var(--ink-mid); font-size: .97rem; line-height: 1.4; }
.stat-label b { color: var(--forest); }
@media (max-width: 991.98px) {
  .stats-card { grid-template-columns: repeat(2, 1fr); row-gap: 1.6rem; padding: 1.8rem .6rem; }
  .stat:nth-child(3)::before { display: none; }
  .stat { padding: .4rem 1.2rem; }
}

/* ═══ PROBLEMA ═══════════════════════════════════════════════════════════ */
.problem { padding-top: clamp(90px, 11vw, 150px); }
.pain-list { display: grid; gap: .9rem; margin-top: 2rem; }
.pain { display: flex; gap: 1rem; align-items: flex-start; padding: 1.1rem 1.2rem; background: var(--card); border-radius: 20px; border: 1px solid var(--border); transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s; }
.pain:hover { transform: translateX(6px); box-shadow: var(--shadow-card); border-color: var(--border-mid); }
.pain-icon { width: 46px; height: 46px; border-radius: 14px; background: #FFDAD6; color: #BA1A1A; display: grid; place-items: center; flex-shrink: 0; }
.pain-icon .ic { width: 22px; height: 22px; }
.pain h3 { font-size: 1.3rem; font-weight: 700; margin: 0 0 .1rem; color: var(--forest); }
.pain p { margin: 0; color: var(--ink-mid); font-size: .98rem; }

.photo-collage { position: relative; padding: 0 12% 18% 0; }
.photo { margin: 0; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow-lift); }
.photo img { width: 100%; height: 100%; object-fit: cover; scale: 1.14; }
.photo-main { aspect-ratio: 4 / 4.4; }
.photo-side { position: absolute; right: 0; bottom: 0; width: 44%; aspect-ratio: 3 / 4.2; border: 6px solid var(--bg); border-radius: 24px; }
.collage-badge { position: absolute; left: -14px; bottom: 26%; display: flex; flex-direction: column; gap: .4rem; padding: .9rem 1.1rem; background: var(--card); border-radius: 18px; box-shadow: var(--shadow-lift); font-weight: 600; font-size: .95rem; }
.collage-badge .strike { color: var(--ink-dim); text-decoration: line-through; text-decoration-color: #BA1A1A; text-decoration-thickness: 2px; }
.collage-badge-ok { color: var(--success); display: inline-flex; align-items: center; gap: .35rem; }
@media (max-width: 575.98px) { .collage-badge { left: 8px; } }

/* ═══ SOLUZIONE ══════════════════════════════════════════════════════════ */
.solution { background: var(--surface-low); }
.flow { display: flex; align-items: center; justify-content: center; margin-top: 3.5rem; }
.flow-node { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .2rem; min-width: 150px; }
.flow-icon { width: 84px; height: 84px; border-radius: 26px; display: grid; place-items: center; background: var(--card); color: var(--primary); box-shadow: var(--shadow-lift); margin-bottom: .9rem; transition: transform .5s var(--ease); }
.flow-node:hover .flow-icon { transform: translateY(-6px) rotate(-4deg); }
.flow-icon .ic { width: 34px; height: 34px; stroke-width: 1.7; }
.flow-node b { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; color: var(--forest); }
.flow-node small { color: var(--ink-dim); font-size: .92rem; }
.flow-node-gold .flow-icon { background: var(--hero-gradient); color: var(--top); }
.flow-line { flex: 1; max-width: 120px; height: 2px; background: var(--border-mid); position: relative; margin-bottom: 4.2rem; border-radius: 2px; overflow: hidden; }
.flow-line span { position: absolute; inset: 0; background: linear-gradient(90deg, var(--seed), var(--top)); transform: scaleX(0); transform-origin: 0 50%; transition: transform 1.2s var(--ease) .5s; }
.flow.is-in .flow-line span { transform: scaleX(1); }
.flow.is-in .flow-line:nth-of-type(4) span { transition-delay: .7s; }
.flow.is-in .flow-line:nth-of-type(6) span { transition-delay: .9s; }
@media (max-width: 767.98px) {
  .flow { flex-direction: column; gap: 0; }
  .flow-line { width: 2px; height: 40px; flex: none; margin: .5rem 0 1rem; }
  .flow-line span { transform: scaleY(0); transform-origin: 50% 0; }
  .flow.is-in .flow-line span { transform: scaleY(1); }
}

/* ═══ COME FUNZIONA ══════════════════════════════════════════════════════ */
.how { background: var(--bg); }
.steps { position: relative; margin-top: 2.5rem; padding-left: 2.6rem; }
.steps-rail { position: absolute; left: 11px; top: 10px; bottom: 10px; width: 2px; background: var(--border); border-radius: 2px; }
.steps-rail span { position: absolute; inset: 0 0 auto 0; height: var(--rail, 0%); background: linear-gradient(var(--seed), var(--top)); border-radius: 2px; transition: height .2s linear; }
.step { position: relative; padding: 1.2rem 0 1.6rem; opacity: .38; transition: opacity .6s var(--ease); }
.step::before { content: ''; position: absolute; left: calc(-2.6rem + 4px); top: 1.75rem; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 2px solid var(--border-mid); transition: background-color .4s, border-color .4s, transform .5s var(--ease); }
.step.is-active { opacity: 1; }
.step.is-active::before { background: var(--top); border-color: var(--top); transform: scale(1.25); box-shadow: 0 0 0 6px rgba(245, 184, 0, .18); }
.step-num { font-family: var(--font-display); font-weight: 800; font-size: 1rem; letter-spacing: .14em; color: var(--seed); }
.step h3 { font-size: clamp(1.8rem, 2.8vw, 2.4rem); font-weight: 800; color: var(--forest); margin: .25rem 0 .7rem; line-height: 1.05; }
.step p { color: var(--ink-mid); font-size: 1.08rem; max-width: 48ch; }
.step .btn { align-self: flex-start; }
.step-tags { list-style: none; padding: 0; margin: 1rem 0 0; display: flex; flex-wrap: wrap; gap: .45rem; }
.step-tags li { display: inline-flex; align-items: center; gap: .35rem; padding: .38rem .8rem; border-radius: 999px; background: var(--card); border: 1px solid var(--border); font-size: .88rem; font-weight: 600; color: var(--ink-mid); }
.step-tags .ic { color: var(--primary); }
@media (min-width: 992px) { .step { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; padding: 0; } .step::before { top: calc(50% - 8px); } }
@media (max-width: 991.98px) { .step { opacity: 1; } .steps-rail { display: none; } .steps { padding-left: 0; } .step::before { display: none; } }

.sticky-stage { position: sticky; top: 12vh; height: 76vh; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.stage-ring { position: absolute; width: min(520px, 90%); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 50% 45%, var(--primary-dim) 0%, rgba(220, 235, 213, .4) 45%, transparent 70%); }
.stage-ring::after { content: ''; position: absolute; inset: 12%; border-radius: 50%; border: 1px dashed var(--border-mid); animation: spin 60s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.stage-caption { position: relative; margin-top: 1.6rem; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; letter-spacing: .06em; color: var(--primary); background: var(--card); padding: .5rem 1.1rem; border-radius: 999px; box-shadow: var(--shadow-card); }

/* Phone frame */
.phone { position: relative; width: 100%; max-width: 290px; aspect-ratio: 1080 / 2400; border-radius: 46px; padding: 9px; background: linear-gradient(150deg, #3b4238, #101310 55%, #262b24); box-shadow: var(--shadow-phone), inset 0 0 0 1.5px rgba(255, 255, 255, .1); }
.phone::before { content: ''; position: absolute; top: 18px; left: 50%; width: 22%; height: 18px; margin-left: -11%; border-radius: 12px; background: #0b0d0a; z-index: 2; opacity: .0; }
.phone > img, .phone-screens { width: 100%; height: 100%; border-radius: 38px; overflow: hidden; object-fit: cover; object-position: top; background: var(--bg); }
.phone-stage { max-width: min(310px, 56vh * .45); height: auto; }
.phone-screens { position: relative; }
.phone-screens img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; transform: scale(1.06) translateY(14px); transition: opacity .7s var(--ease), transform .9s var(--ease); }
.phone-screens img.is-active { opacity: 1; transform: none; }
.phone-inline { max-width: 250px; margin: 2rem auto 0; }

/* ═══ VIDEO ══════════════════════════════════════════════════════════════ */
.video-section { position: relative; overflow: hidden; padding: clamp(90px, 12vw, 150px) 0; background: radial-gradient(100% 70% at 50% 0%, var(--forest-mid) 0%, var(--forest) 50%, var(--forest-ink) 100%); }
.video-stage { perspective: 1400px; }
.video-frame { --s: .88; --r: 44px; position: relative; aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; transform: scale(var(--s)); transform-origin: 50% 0; background: var(--forest-ink) url('../video/blocarena-presentazione-poster.jpg') center / cover; box-shadow: 0 80px 140px -50px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .08); will-change: transform; }
.video-frame video { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 767.98px) { .video-frame { --r: 22px; } }

/* ═══ ORGANIZZATORI — BENTO ══════════════════════════════════════════════ */
.organizers { background: var(--bg); }
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.bento-card { position: relative; background: var(--card); border-radius: var(--radius); border: 1px solid var(--border); padding: 2rem; overflow: hidden; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.bento-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.bento-card h3 { font-size: 1.65rem; font-weight: 800; color: var(--forest); margin: 1rem 0 .5rem; line-height: 1.05; }
.bento-card p { color: var(--ink-mid); font-size: 1rem; margin-bottom: 0; }
.bento-icon { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; background: var(--primary-dim); color: var(--primary); }
.bento-icon .ic { width: 23px; height: 23px; }

.bento-a { grid-column: span 7; grid-row: span 2; display: flex; gap: 1.5rem; min-height: 520px; }
.bento-b { grid-column: span 5; }
.bento-c { grid-column: span 5; }
.bento-d, .bento-e, .bento-f { grid-column: span 4; }
.bento-g { grid-column: span 12; display: flex; align-items: center; padding: 2.4rem 2.6rem 0; }

.card-forest { background: var(--hero-gradient); border-color: transparent; color: #fff; }
.card-forest h3 { color: #fff; font-size: clamp(1.9rem, 2.6vw, 2.4rem); }
.card-forest p { color: rgba(255, 255, 255, .74); }
.icon-light { background: rgba(220, 235, 213, .12); color: var(--top); }
.bento-copy { flex: 1 1 52%; display: flex; flex-direction: column; justify-content: flex-start; position: relative; z-index: 1; }
.bento-phone { flex: 1 1 48%; position: relative; }
.phone-tilt { position: absolute; top: 30px; right: -10px; max-width: 250px; transform: rotate(6deg); transition: transform .8s var(--ease); }
.bento-a:hover .phone-tilt { transform: rotate(2deg) translateY(-10px); }
.tabs-mini { display: inline-flex; gap: .3rem; padding: .3rem; margin-top: auto; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); align-self: flex-start; }
.tabs-mini span { padding: .45rem .9rem; border-radius: 999px; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .65); }
.tabs-mini .is-on { background: var(--primary-dim); color: var(--forest-ink); }

.wizard-mini { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: .4rem; counter-reset: s; }
.wizard-mini li { display: flex; flex-direction: column; gap: .45rem; font-size: .8rem; font-weight: 600; color: var(--ink-dim); }
.wizard-mini li::before { content: ''; height: 5px; border-radius: 5px; background: var(--surface-highest); background-image: linear-gradient(90deg, var(--primary), var(--seed)); background-size: 0% 100%; background-repeat: no-repeat; transition: background-size .6s var(--ease); }
.wizard-mini li span { display: none; }
.bento-b.is-in .wizard-mini li::before { background-size: 100% 100%; }
.bento-b.is-in .wizard-mini li:nth-child(2)::before { transition-delay: .25s; }
.bento-b.is-in .wizard-mini li:nth-child(3)::before { transition-delay: .5s; }
.bento-b.is-in .wizard-mini li:nth-child(4)::before { transition-delay: .75s; }
.bento-b.is-in .wizard-mini li:nth-child(5)::before { transition-delay: 1s; }
.bento-b.is-in .wizard-mini li { color: var(--forest); }

.chips { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1.3rem; }
.chips span { padding: .42rem .85rem; border-radius: 10px; border: 1px solid var(--border-mid); font-size: .88rem; font-weight: 600; color: var(--ink-mid); background: var(--bg); transition: background-color .3s, color .3s, border-color .3s; }
.chips span:hover { background: var(--secondary-container); border-color: var(--secondary-container); color: var(--forest); }
.chips .chip-add { display: inline-flex; align-items: center; gap: .3rem; border-style: dashed; color: var(--primary); background: transparent; }

.card-sage { background: var(--primary-dim); border-color: transparent; }
.card-sage .bento-icon { background: #fff; }
.big-number { font-family: var(--font-display); font-weight: 800; font-size: clamp(4rem, 6vw, 5.5rem); line-height: .9; color: var(--forest); margin-top: 1rem; display: flex; align-items: baseline; gap: .5rem; }
.big-number small { font-size: 1.1rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--primary); }

.action-list { list-style: none; padding: 0; margin: .6rem 0 0; display: grid; gap: .55rem; }
.action-list li { display: flex; align-items: center; gap: .6rem; font-size: .98rem; color: var(--ink-mid); }
.action-list .ic { width: 30px; height: 30px; padding: 7px; border-radius: 9px; background: var(--surface); color: var(--primary); }

.status-track { display: flex; align-items: center; gap: .4rem; margin-top: 1.3rem; }
.st { font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: .35rem .6rem; border-radius: 8px; background: var(--surface); color: var(--ink-dim); white-space: nowrap; }
.st-done { background: var(--secondary-container); color: var(--primary); }
.st-live { background: var(--success-light); color: var(--success); }
.st-line { flex: 1; height: 2px; background: var(--border-mid); border-radius: 2px; min-width: 10px; }

.bento-g h3 { margin-top: 1rem; }
.toggle-row { display: flex; align-items: center; gap: .9rem; padding: .9rem 1rem; border-radius: 18px; background: var(--surface-low); border: 1px solid var(--border); margin-top: .8rem; max-width: 520px; }
.toggle-row b { display: block; color: var(--forest); font-size: 1.02rem; }
.toggle-row small { display: block; color: var(--ink-dim); font-size: .85rem; line-height: 1.35; }
.toggle-row > div { flex: 1; }
.toggle-ic { width: 40px; height: 40px; border-radius: 12px; background: var(--primary-dim); color: var(--primary); display: grid; place-items: center; flex-shrink: 0; }
.switch { width: 52px; height: 30px; border-radius: 999px; background: var(--border-mid); position: relative; flex-shrink: 0; transition: background-color .4s; }
.switch::after { content: ''; position: absolute; top: 4px; left: 4px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, .2); transition: transform .5s var(--ease); }
.bento-g.is-in .switch.is-on { background: var(--primary); }
.bento-g.is-in .switch.is-on::after { transform: translateX(22px); }
.bento-g.is-in .toggle-row:nth-of-type(2) .switch { transition-delay: .3s; }
.bento-g.is-in .toggle-row:nth-of-type(2) .switch::after { transition-delay: .3s; }
.phone-crop { max-width: 270px; aspect-ratio: auto; height: 380px; border-bottom-left-radius: 0; border-bottom-right-radius: 0; padding-bottom: 0; transform: translateY(16px); transition: transform .8s var(--ease); }
.phone-crop > img { border-bottom-left-radius: 0; border-bottom-right-radius: 0; height: 100%; }
.bento-g:hover .phone-crop { transform: translateY(0); }

@media (max-width: 1199.98px) {
  .bento-a { grid-column: span 12; grid-row: auto; min-height: 460px; }
  .bento-b, .bento-c { grid-column: span 6; }
}
@media (max-width: 767.98px) {
  .bento-b, .bento-c, .bento-d, .bento-e, .bento-f { grid-column: span 12; }
  .bento-a { flex-direction: column; min-height: 0; padding-bottom: 0; }
  .bento-phone { min-height: 360px; overflow: hidden; margin: 0 -2rem; }
  .phone-tilt { position: relative; top: 20px; right: auto; margin: 0 auto; max-width: 230px; }
  .tabs-mini { margin-top: 1.4rem; }
  .bento-g { padding: 2rem 1.5rem 0; }
  .bento-card { padding: 1.6rem; }
}
@media (max-width: 575.98px) { .wizard-mini { grid-template-columns: repeat(5, 1fr); } .wizard-mini li { font-size: .7rem; } }

/* ═══ ATLETI ═════════════════════════════════════════════════════════════ */
.athletes { background: linear-gradient(180deg, var(--surface-low) 0%, var(--bg) 100%); }
.athlete-stage { position: relative; display: flex; justify-content: center; padding: 2rem 0 3rem; }
.athlete-photo { position: absolute; inset: 8% 4% 0 8%; margin: 0; border-radius: 36px; overflow: hidden; box-shadow: var(--shadow-lift); }
.athlete-photo img { width: 100%; height: 100%; object-fit: cover; scale: 1.14; }
.athlete-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(37, 51, 31, .1), rgba(37, 51, 31, .55)); }
.phone-athlete { max-width: 280px; z-index: 1; transform: rotate(-3deg); }
.chip-a1 { left: 0; top: 22%; }
.chip-a2 { right: 0; bottom: 18%; }
@media (max-width: 575.98px) { .phone-athlete { max-width: 230px; } .chip-a1 { left: -4px; } .chip-a2 { right: -4px; } }

.feature-list { list-style: none; padding: 0; margin: 2rem 0; display: grid; gap: 1.1rem; }
.feature-list li { display: flex; gap: 1rem; align-items: flex-start; }
.feature-list li div { display: flex; flex-direction: column; }
.feature-list b { font-size: 1.08rem; color: var(--forest); }
.feature-list li div span { color: var(--ink-mid); font-size: 1rem; }
.fl-icon { width: 44px; height: 44px; border-radius: 14px; flex-shrink: 0; display: grid; place-items: center; background: var(--card); border: 1px solid var(--border); color: var(--primary); box-shadow: var(--shadow-card); }
.fl-icon .ic { width: 21px; height: 21px; }

.app-quote { display: inline-flex; align-items: center; gap: .8rem; margin: 0; padding: 1rem 1.4rem; border-radius: 18px; background: var(--success-light); color: var(--success); font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; letter-spacing: .01em; }
.app-quote .ic { width: 30px; height: 30px; padding: 6px; border-radius: 50%; background: var(--success); color: #fff; stroke-width: 2.6; }

/* ═══ PUNTEGGI ═══════════════════════════════════════════════════════════ */
.scoring { background: var(--bg); }
.score-card { height: 100%; display: flex; flex-direction: column; padding: 2.2rem 2rem; border-radius: var(--radius); background: var(--card); border: 1px solid var(--border); transition: transform .5s var(--ease), box-shadow .5s var(--ease); position: relative; overflow: hidden; }
.score-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lift); }
.score-card h3 { font-size: 2rem; font-weight: 800; color: var(--forest); margin: 1.2rem 0 .1rem; }
.score-sub { color: var(--seed); font-weight: 600; margin-bottom: 1rem; }
.score-card p { color: var(--ink-mid); }
.score-badge { align-self: flex-start; font-family: var(--font-display); font-weight: 800; letter-spacing: .12em; font-size: .85rem; padding: .35rem .75rem; border-radius: 8px; background: var(--primary-dim); color: var(--primary); }
.badge-zone { background: var(--zone-light); color: var(--zone); }
.badge-top { background: rgba(245, 184, 0, .2); color: var(--top-ink); }
.score-ideal { margin-top: auto; padding-top: 1.2rem; border-top: 1px dashed var(--border-mid); font-size: .95rem; color: var(--ink-mid); }
.score-ideal b { display: block; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-dim); margin-bottom: .2rem; }
.score-featured { background: var(--hero-gradient); border-color: transparent; color: #fff; }
.score-ifsc::before { content: 'IFSC'; position: absolute; right: -10px; top: -18px; font-family: var(--font-display); font-weight: 800; font-size: 7rem; color: rgba(37, 51, 31, .045); line-height: 1; pointer-events: none; }
.score-featured h3 { color: #fff; }
.score-featured .score-sub { color: var(--top-on-dark); }
.score-featured p { color: rgba(255, 255, 255, .76); }
.score-featured .score-badge { background: var(--top); color: var(--forest-ink); }
.score-featured .score-ideal { border-color: rgba(255, 255, 255, .18); color: rgba(255, 255, 255, .8); }
.score-featured .score-ideal b { color: var(--inverse-primary); }


/* ═══ VISIBILITÀ CLASSIFICA ══════════════════════════════════════════════ */
.visibility { background: var(--surface-low); }
.vis-photo { position: relative; margin: 0; border-radius: 36px; overflow: hidden; aspect-ratio: 5 / 4.4; box-shadow: var(--shadow-lift); }
.vis-photo img { width: 100%; height: 100%; object-fit: cover; scale: 1.14; }
.vis-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(20, 33, 18, .7)); }
.vis-overlay { position: absolute; left: 1.4rem; right: 1.4rem; bottom: 1.4rem; z-index: 1; display: flex; align-items: center; gap: 1rem; padding: 1rem 1.2rem; border-radius: 20px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .25); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); color: #fff; }
.vis-overlay b { display: block; font-family: var(--font-display); font-size: 1.35rem; }
.vis-overlay small { color: rgba(255, 255, 255, .8); }
.vis-lock { width: 46px; height: 46px; border-radius: 14px; background: var(--top); color: var(--forest-ink); display: grid; place-items: center; flex-shrink: 0; }

.vis-table { margin-top: 2rem; border-radius: 22px; background: var(--card); border: 1px solid var(--border); overflow: hidden; }
.vis-head, .vis-row { display: grid; grid-template-columns: 1.1fr 1fr 1fr; align-items: center; }
.vis-head { padding: .9rem 1.3rem; background: var(--surface); font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-dim); }
.vis-row { padding: 1.05rem 1.3rem; border-top: 1px solid var(--border); }
.vis-row > span { display: inline-flex; align-items: center; gap: .5rem; font-size: .97rem; }
.vis-row > span:first-child { font-weight: 700; color: var(--forest); }
.vis-row > span:first-child .ic { color: var(--primary); }
.vis-row .yes { color: var(--success); font-weight: 600; }
.vis-row .no { color: var(--ink-dim); font-weight: 600; }
@media (max-width: 575.98px) { .vis-head, .vis-row { grid-template-columns: .9fr 1fr 1fr; padding-left: .9rem; padding-right: .9rem; } .vis-row > span { font-size: .85rem; gap: .3rem; } .vis-head { font-size: .62rem; } }

/* ═══ PIATTAFORME ════════════════════════════════════════════════════════ */
.platforms { background: var(--bg); }
.platform { height: 100%; text-align: center; padding: 2.4rem 1.6rem; border-radius: var(--radius); background: var(--card); border: 1px solid var(--border); transition: transform .5s var(--ease), box-shadow .5s var(--ease); display: flex; flex-direction: column; align-items: center; }
.platform:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.platform-icon { width: 72px; height: 72px; border-radius: 22px; display: grid; place-items: center; background: var(--primary-dim); color: var(--primary); margin-bottom: 1.1rem; }
.platform-icon .ic { width: 32px; height: 32px; stroke-width: 1.7; }
.platform h3 { font-size: 1.9rem; font-weight: 800; color: var(--forest); margin: 0; }
.platform p { color: var(--ink-dim); margin: .2rem 0 0; }
.platform-web { background: var(--hero-gradient); border-color: transparent; }
.platform-web h3 { color: #fff; }
.platform-web p { color: rgba(255, 255, 255, .7); margin-bottom: 1.2rem; }
.platform-web .platform-icon { background: rgba(220, 235, 213, .12); color: var(--top); }
.platform-web .btn-brand { background: var(--primary-dim); color: var(--forest-ink); margin-top: auto; }
.platform-web .btn-brand:hover { background: #fff; }

/* ═══ ORGANIZZA CON NOI / CONTATTI ═══════════════════════════════════════ */
.contact { background: var(--bg); }
.contact-card { position: relative; overflow: hidden; border-radius: calc(var(--radius) + 12px); padding: clamp(2rem, 5vw, 4.5rem); background: radial-gradient(120% 120% at 100% 0%, var(--forest-mid) 0%, var(--forest) 50%, var(--forest-ink) 100%); color: #fff; box-shadow: var(--shadow-lift); }
.contact-card::before { content: ''; position: absolute; width: 520px; height: 520px; right: -160px; bottom: -220px; border-radius: 50%; background: radial-gradient(circle, rgba(245, 184, 0, .16), transparent 65%); pointer-events: none; }
.contact-lead { font-size: 1.15rem; color: rgba(255, 255, 255, .76); max-width: 50ch; }

.free-badge { display: flex; align-items: center; gap: 1.2rem; margin: 2rem 0; padding: 1.1rem 1.3rem; border-radius: 22px; background: rgba(245, 184, 0, .1); border: 1px solid rgba(245, 184, 0, .35); max-width: 520px; }
.free-amount { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.6rem, 4vw, 3.3rem); line-height: 1; color: var(--top); flex-shrink: 0; }
.free-text { color: rgba(255, 255, 255, .75); font-size: .95rem; line-height: 1.45; }
.free-text b { display: block; color: #fff; font-size: 1.12rem; margin-bottom: .1rem; }

.contact-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; }
.contact-steps li { display: flex; align-items: center; gap: .9rem; color: rgba(255, 255, 255, .85); font-weight: 500; }
.contact-steps span { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; font-family: var(--font-display); font-weight: 800; background: rgba(220, 235, 213, .12); color: var(--primary-dim); border: 1px solid rgba(220, 235, 213, .22); }

.channels-title { font-size: 1.5rem; font-weight: 800; color: var(--primary-dim); margin-bottom: 1.1rem; letter-spacing: .01em; }
.contact-channels { display: grid; gap: 1rem; }
.channel { display: flex; align-items: center; gap: 1.1rem; padding: 1.2rem 1.3rem; border-radius: 24px; background: var(--card); color: var(--ink); text-decoration: none; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.channel:hover, .channel:focus-visible { transform: translateY(-4px) scale(1.01); box-shadow: 0 40px 70px -30px rgba(0, 0, 0, .7); color: var(--ink); }
.channel:focus-visible { outline: 3px solid var(--top); outline-offset: 3px; }
.channel-icon { width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; flex-shrink: 0; }
.channel-icon .ic { width: 28px; height: 28px; stroke-width: 1.8; }
.channel-body { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.channel-body small { font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-dim); }
.channel-body b { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.4rem, 2.4vw, 1.75rem); color: var(--forest); margin: .15rem 0; overflow-wrap: anywhere; }
.channel-body em { font-style: normal; font-size: .92rem; color: var(--ink-mid); }
.channel-go { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; background: var(--surface); color: var(--forest); transition: background-color .3s, color .3s, transform .5s var(--ease); }
.channel:hover .channel-go { transform: translateX(3px); }
.channel-wa .channel-icon { background: var(--success); color: #fff; }
.channel-wa:hover .channel-go { background: var(--success); color: #fff; }
.channel-tel .channel-icon { background: var(--primary-dim); color: var(--primary); }
.channel-tel:hover .channel-go { background: var(--primary); color: #fff; }
.channel-mail .channel-icon { background: rgba(245, 184, 0, .2); color: var(--top-ink); }
.channel-mail:hover .channel-go { background: var(--top); color: var(--forest-ink); }
@media (max-width: 575.98px) { .channel { padding: 1rem; gap: .85rem; } .channel-icon { width: 50px; height: 50px; border-radius: 15px; } .channel-go { display: none; } }

/* WhatsApp flottante */
.wa-fab { position: fixed; right: 20px; bottom: 20px; z-index: 1050; display: inline-flex; align-items: center; gap: .6rem; padding: .85rem 1.2rem .85rem 1rem; border-radius: 999px; background: var(--success); color: #fff; font-weight: 700; text-decoration: none; box-shadow: 0 18px 40px -14px rgba(20, 33, 18, .6); opacity: 0; transform: translateY(20px) scale(.9); pointer-events: none; transition: opacity .5s var(--ease), transform .5s var(--ease), background-color .25s; }
.wa-fab .ic { width: 22px; height: 22px; }
.wa-fab.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.wa-fab:hover { background: #25693F; color: #fff; }
@media (max-width: 575.98px) { .wa-fab { right: 16px; bottom: 16px; padding: .9rem; } .wa-fab span { display: none; } }

/* ═══ BADGE STORE ════════════════════════════════════════════════════════ */
.store-badges { display: flex; flex-wrap: wrap; gap: .6rem; }
.store-badge { display: inline-flex; align-items: center; gap: .55rem; height: 46px; padding: 0 1rem 0 .8rem; border-radius: 12px; background: #000; color: #fff; text-decoration: none; border: 1px solid rgba(255, 255, 255, .22); transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s; }
.store-badge:hover, .store-badge:focus-visible { color: #fff; transform: translateY(-2px); border-color: rgba(255, 255, 255, .45); box-shadow: 0 14px 28px -14px rgba(0, 0, 0, .6); }
.store-badge:focus-visible { outline: 3px solid var(--top); outline-offset: 2px; }
.store-logo { width: 24px; height: 24px; flex-shrink: 0; }
.store-text { display: flex; flex-direction: column; line-height: 1.05; text-align: left; }
.store-text small { font-size: .62rem; font-weight: 500; letter-spacing: .02em; opacity: .85; }
.store-text b { font-family: var(--font-body); font-size: 1.02rem; font-weight: 600; letter-spacing: -.01em; }
.store-badges-lg .store-badge { height: 56px; padding: 0 1.25rem 0 1rem; border-radius: 14px; }
.store-badges-lg .store-logo { width: 28px; height: 28px; }
.store-badges-lg .store-text small { font-size: .7rem; }
.store-badges-lg .store-text b { font-size: 1.2rem; }
.store-badge-web { background: rgba(255, 255, 255, .1); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.store-badge-web .store-logo { color: var(--top); stroke-width: 1.7; }

/* Header: badge compatti */
.store-badges-nav { gap: .45rem; flex-wrap: nowrap; }
.store-badges-nav .store-badge { height: 40px; padding: 0 .8rem 0 .65rem; border-radius: 11px; gap: .45rem; }
.store-badges-nav .store-logo { width: 20px; height: 20px; }
.store-badges-nav .store-text small { font-size: .55rem; }
.store-badges-nav .store-text b { font-size: .88rem; }
.site-nav.is-scrolled .store-badges-nav .store-badge { border-color: transparent; }
@media (min-width: 1200px) and (max-width: 1399.98px) {
  /* Su schermi medi solo il logo dello store, per far stare il menu */
  .store-badges-nav .store-badge { width: 40px; padding: 0; justify-content: center; }
  .store-badges-nav .store-text { display: none; }
}
@media (max-width: 1199.98px) {
  .nav-actions { flex-wrap: wrap; }
  .store-badges-nav { width: 100%; }
  .store-badges-nav .store-badge { flex: 1; justify-content: center; height: 46px; }
}

.final-stores { margin-top: 3rem; display: flex; flex-direction: column; align-items: center; gap: .9rem; }
.final-stores-label { font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--inverse-primary); }

.contact-stores { margin-top: .8rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem 1rem; padding: 1rem 1.2rem; border-radius: 20px; background: rgba(255, 255, 255, .06); border: 1px dashed rgba(220, 235, 213, .25); }
.contact-stores > span { color: var(--inverse-primary); font-weight: 600; font-size: .95rem; }

/* Menu mobile aperto sopra la hero */
@media (max-width: 1199.98px) {
  .site-nav.menu-open:not(.is-scrolled) { background: rgba(20, 33, 18, .9); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
}

/* ═══ FAQ ════════════════════════════════════════════════════════════════ */
.faq { background: var(--surface-low); }
@media (min-width: 992px) { .faq .col-lg-4 > * { position: relative; } .faq .col-lg-4 { position: sticky; top: 110px; align-self: flex-start; } }
.faq-accordion { --bs-accordion-bg: transparent; --bs-accordion-border-width: 0; --bs-accordion-btn-focus-box-shadow: none; display: grid; gap: .75rem; }
.faq-accordion .accordion-item { background: var(--card); border: 1px solid var(--border) !important; border-radius: 20px !important; overflow: hidden; transition: box-shadow .4s var(--ease), border-color .3s; }
.faq-accordion .accordion-item:has(.accordion-collapse.show) { box-shadow: var(--shadow-lift); border-color: transparent !important; }
.faq-accordion .accordion-button { font-family: var(--font-body); font-weight: 700; font-size: 1.1rem; color: var(--forest); background: transparent; padding: 1.3rem 1.5rem; box-shadow: none; gap: 1rem; }
.faq-accordion .accordion-button:not(.collapsed) { color: var(--forest); background: transparent; }
.faq-accordion .accordion-button:focus-visible { box-shadow: inset 0 0 0 2px var(--seed); border-radius: 20px; }
.faq-accordion .accordion-button::after { width: 34px; height: 34px; border-radius: 50%; background-color: var(--surface); background-position: center; background-size: 14px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235B6D58' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E"); transition: transform .45s var(--ease), background-color .3s; flex-shrink: 0; }
.faq-accordion .accordion-button:not(.collapsed)::after { transform: rotate(135deg); background-color: var(--primary-dim); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2325331F' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E"); }
.faq-accordion .accordion-body { padding: 0 1.5rem 1.4rem; color: var(--ink-mid); font-size: 1.02rem; }

/* ═══ CTA FINALE ═════════════════════════════════════════════════════════ */
.final-cta { position: relative; overflow: hidden; padding: clamp(110px, 14vw, 180px) 0; color: #fff; background: var(--forest); isolation: isolate; }
.final-bg { position: absolute; inset: 0; z-index: -1; }
.final-bg img { width: 100%; height: 100%; object-fit: cover; scale: 1.2; filter: saturate(.75); }
.final-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(37, 51, 31, .82) 0%, rgba(37, 51, 31, .62) 45%, rgba(20, 33, 18, .94) 100%); }
.final-mark { width: 64px; height: auto; margin: 0 auto 1.6rem; filter: drop-shadow(0 12px 24px rgba(0, 0, 0, .4)); }
.final-title { font-weight: 800; font-size: clamp(2.5rem, 5.6vw, 4.8rem); line-height: .98; margin: 0 auto 1.3rem; max-width: 18ch; text-wrap: balance; }
.hl-gold { color: var(--top); }
.final-lead { font-size: 1.2rem; color: rgba(255, 255, 255, .78); margin: 0 auto 2.2rem; max-width: 46ch; }

/* ═══ FOOTER ═════════════════════════════════════════════════════════════ */
.site-footer { background: var(--forest-ink); color: rgba(255, 255, 255, .62); padding: 80px 0 32px; }
.brand-footer { margin-bottom: 1rem; }
.footer-claim { max-width: 34ch; font-size: .98rem; }
.site-footer h4 { font-family: var(--font-body); font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--inverse-primary); margin-bottom: 1.1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .65rem; }
.site-footer a { color: rgba(255, 255, 255, .72); text-decoration: none; transition: color .25s; display: inline-flex; align-items: center; gap: .45rem; }
.site-footer a:hover { color: #fff; }
.footer-bottom { margin-top: 64px; padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, .08); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .9rem; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 1.4rem; }

/* ═══ REVEAL ANIMATIONS ══════════════════════════════════════════════════ */
.js .reveal { opacity: 0; transform: translate3d(0, 44px, 0); filter: blur(6px); transition: opacity 1s var(--ease) var(--d, 0s), transform 1.15s var(--ease) var(--d, 0s), filter 1s var(--ease) var(--d, 0s); }
.js .reveal[data-anim="scale"] { transform: scale(.92); }
.js .reveal[data-anim="left"] { transform: translate3d(-50px, 0, 0); }
.js .reveal[data-anim="right"] { transform: translate3d(50px, 0, 0); }
.js .reveal.is-in { opacity: 1; transform: none; filter: none; }
/* Card con hover: dopo l'entrata torna alla transizione rapida */
.js .reveal.is-done { transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s, opacity .3s; transition-delay: 0s; }
.phone-athlete.reveal.is-in { transform: rotate(-3deg); }

/* ═══ REDUCED MOTION ═════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .js .reveal, .js .hero-in, .js .hero-media-in, .js .hero .float-chip { opacity: 1; transform: none; filter: none; }
  .js .hero-title .line > span { transform: none; }
  .swash path { stroke-dashoffset: 0; }
  .video-frame { --s: 1 !important; }
}

/* Navbar: mai testo a capo */
.site-nav .nav-link, .btn-nav-cta { white-space: nowrap; }
@media (min-width: 1200px) and (max-width: 1399.98px) { .site-nav .nav-link { padding: .5rem .75rem !important; } }

/* `clip` invece di `hidden`: i contenitori con foto ingrandite/parallax non
   devono poter scorrere al loro interno (focus da tastiera, scrollIntoView). */
.hero, .video-section, .final-cta, .contact-card, .photo, .athlete-photo, .vis-photo, .bento-card, .score-card, .topo { overflow: clip; }


/* ═══ VALORI: gratuità, accessibilità, filosofia ═════════════════════════ */
.eyebrow-free { color: var(--top-on-dark); border-color: rgba(245, 184, 0, .35); background: rgba(245, 184, 0, .1); }
.eyebrow-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.25rem; }
.eyebrow-row .eyebrow { margin-bottom: 0; }
.eyebrow-gold { background: rgba(245, 184, 0, .2); color: var(--top-ink); }
.eyebrow-gold .ic { color: var(--top-ink); }
.stat-unit { font-size: .5em; margin-left: .12em; color: var(--top-ink); }

/* Filosofia */
.manifesto { position: relative; overflow: clip; color: #fff; background: radial-gradient(110% 80% at 0% 0%, var(--forest-mid) 0%, var(--forest) 50%, var(--forest-ink) 100%); }
.manifesto-title { font-weight: 800; font-size: clamp(2.6rem, 5.4vw, 4.6rem); line-height: .95; margin: 0 0 1.6rem; }
.manifesto-text p { color: rgba(255, 255, 255, .76); font-size: 1.12rem; max-width: 52ch; }
.manifesto-text strong { color: #fff; }
.values { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; }
.value { display: flex; gap: 1rem; align-items: flex-start; padding: 1.05rem 1.2rem; border-radius: 20px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); transition: background-color .4s, border-color .4s, transform .5s var(--ease); }
.value:hover { background: rgba(255, 255, 255, .08); border-color: rgba(220, 235, 213, .25); transform: translateX(4px); }
.value b { display: block; font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; letter-spacing: .01em; }
.value span { color: rgba(255, 255, 255, .7); font-size: .97rem; }
.value-icon { width: 44px; height: 44px; border-radius: 14px; flex-shrink: 0; display: grid; place-items: center; background: rgba(220, 235, 213, .12); color: var(--primary-dim); }
.value-icon .ic { width: 22px; height: 22px; }
/* Margine zero e nessun max-width: su schermi grandi la frase sta su una riga.
   La distanza dalla lista sopra è data dal padding. */
.manifesto-quote { margin: 0; padding-top: clamp(3rem, 7vw, 5.5rem); text-align: center; font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 3.6vw, 3.4rem); line-height: 1.02; text-wrap: balance; color: var(--primary-dim); }
.manifesto-quote span { color: var(--top); }
.quote-mark { display: inline-block; width: .75em; height: .75em; color: rgba(245, 184, 0, .6); vertical-align: .32em; }
.quote-open { transform: rotate(180deg); margin-right: .12em; }
.quote-close { margin-left: .12em; }

/* Nessuno resta fuori */
.inclusive-box { display: flex; gap: 1rem; align-items: flex-start; padding: 1.3rem 1.4rem; border-radius: 22px; background: var(--primary-dim); }
.inclusive-box b { display: block; font-family: var(--font-display); font-size: 1.45rem; font-weight: 800; color: var(--forest); margin-bottom: .25rem; }
.inclusive-box p { color: var(--ink-mid); margin: 0 0 .8rem; font-size: 1rem; }
.inclusive-icon { width: 46px; height: 46px; border-radius: 14px; flex-shrink: 0; display: grid; place-items: center; background: var(--forest); color: var(--top); }
.inclusive-icon .ic { width: 22px; height: 22px; }
.inclusive-chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.inclusive-chips li { padding: .32rem .75rem; border-radius: 999px; background: rgba(255, 255, 255, .7); color: var(--forest); font-size: .86rem; font-weight: 600; }
@media (max-width: 575.98px) { .inclusive-box { flex-direction: column; } }
