/* SportManager — sito vetrina (statico, zero dipendenze)
   Identità pubblica coerente con /prezzi: slate scuro + teal, wordmark bicolore. */

:root {
  --bg0: #0a1424;
  --bg1: #0e1b30;
  --card: #14243d;
  --line: rgba(140, 165, 200, .16);
  --text: #e9f0fa;
  --muted: #9aacc6;
  --accent: #17c3ae;
  --accent-deep: #0d9488;
  --royal: #4f8cff;
  --radius: 14px;
  --font: 'Segoe UI Variable Display', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, 'Cascadia Code', Consolas, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background:
    radial-gradient(900px 600px at 85% -5%, rgba(23, 195, 174, .13), transparent 60%),
    radial-gradient(800px 550px at -10% 12%, rgba(79, 140, 255, .12), transparent 60%),
    var(--bg0);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

.grad {
  font-style: normal;
  background: linear-gradient(92deg, var(--accent), #6ee7d8 55%, var(--royal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.logo-chip {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 9px; background: #fff;
  margin-right: .55rem; vertical-align: -.55em;
  box-shadow: 0 2px 10px rgba(2, 8, 20, .4);
}
.logo-chip img { width: 26px; height: 26px; object-fit: contain; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; text-wrap: balance; }
ul { list-style: none; }

/* ── Reveal allo scroll ─────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .12s; }
.reveal.d2 { transition-delay: .24s; }
.reveal.d3 { transition-delay: .36s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .browser-frame.tilt { transform: none !important; }
}

/* ── Bottoni ────────────────────────────────────────────────────────── */
.btn {
  display: inline-block; padding: .65rem 1.3rem; border-radius: 10px;
  font-weight: 600; font-size: .95rem; text-decoration: none;
  transition: background .2s, border-color .2s, transform .15s;
}
.btn-lg { padding: .9rem 1.9rem; font-size: 1.05rem; }
.btn-solid {
  background: linear-gradient(135deg, #0ea996, var(--accent-deep));
  color: #fff; box-shadow: 0 6px 22px rgba(13, 148, 136, .35);
}
.btn-solid:hover { background: linear-gradient(135deg, var(--accent), #0ea996); transform: translateY(-1px); box-shadow: 0 10px 28px rgba(20, 184, 166, .45); }
.btn-ghost { border: 1px solid var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.eyebrow {
  font-family: var(--mono); font-size: .74rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .16em; color: var(--accent);
  margin-bottom: .9rem;
}

/* ── Nav ────────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 2rem;
  padding: .9rem clamp(1rem, 4vw, 3rem);
  background: transparent; border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s;
}
.nav.scrolled { background: rgba(10, 20, 36, .85); backdrop-filter: blur(12px); border-bottom-color: var(--line); }
.nav-logo { font-size: 1.25rem; font-weight: 800; color: #fff; text-decoration: none; letter-spacing: -.01em; }
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; gap: 1.4rem; margin-left: auto; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: .92rem; font-weight: 500; }
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; gap: .6rem; }
.nav-actions .btn { padding: .5rem 1rem; font-size: .88rem; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-actions { margin-left: auto; }
}

/* ── Hero ───────────────────────────────────────────────────────────── */
.hero {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2rem, 5vw, 4rem); align-items: center;
  padding: clamp(3rem, 8vh, 6rem) clamp(1rem, 4vw, 3rem) clamp(3rem, 7vh, 5rem);
  max-width: 1280px; margin: 0 auto;
  min-height: 78vh;
}
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 800; margin-bottom: 1.2rem; }
.hero-sub { color: var(--muted); font-size: 1.13rem; max-width: 34rem; margin-bottom: 2rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero-note { color: var(--muted); font-size: .85rem; margin-top: 1rem; }

.hero-shot { perspective: 1400px; }
.browser-frame {
  border: 1px solid rgba(140, 165, 200, .22); border-radius: var(--radius);
  overflow: hidden; background: var(--card);
  box-shadow:
    0 30px 80px rgba(2, 8, 20, .55),
    0 0 45px rgba(23, 195, 174, .10),
    0 0 90px rgba(79, 140, 255, .08);
}
.browser-frame.tilt {
  transform: rotateY(-7deg) rotateX(3deg);
  transition: transform 1s cubic-bezier(.22, .8, .3, 1);
}
.browser-frame.tilt.flat { transform: none; }
.browser-bar {
  display: flex; align-items: center; gap: .45rem;
  padding: .55rem .9rem; background: #0d1a2e; border-bottom: 1px solid var(--line);
}
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #24344f; }
.browser-bar em {
  font-family: var(--mono); font-style: normal; font-size: .7rem; color: var(--muted);
  margin: 0 auto; background: rgba(140, 165, 200, .08); padding: .12rem .9rem; border-radius: 6px;
}

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .browser-frame.tilt { transform: none; }
}

/* ── Sezioni comuni ─────────────────────────────────────────────────── */
.section-head { max-width: 720px; margin: 0 auto; text-align: center; padding: 0 1rem; }
.section-head h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); font-weight: 800; }
.section-sub { color: var(--muted); margin-top: .8rem; }

/* ── Punti forti (tiles) ────────────────────────────────────────────── */
.tiles-section { padding: clamp(3rem, 8vh, 6rem) clamp(1rem, 4vw, 3rem); }
.tiles {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.3rem; max-width: 1160px; margin: 2.6rem auto 0;
}
.tile {
  background: linear-gradient(160deg, rgba(23, 195, 174, .05), var(--card) 45%);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.4rem; transition: transform .25s, border-color .25s, box-shadow .25s;
}
.tile:hover { transform: translateY(-4px); border-color: rgba(23, 195, 174, .45); box-shadow: 0 14px 38px rgba(2, 8, 20, .5); }
.tile-icon {
  font-size: 1.35rem; margin-bottom: .9rem; width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px; background: rgba(23, 195, 174, .12);
  border: 1px solid rgba(23, 195, 174, .22);
}
.tile h3 { font-size: 1.05rem; margin-bottom: .5rem; }
.tile p { color: var(--muted); font-size: .92rem; }

/* ── Prima / Dopo ───────────────────────────────────────────────────── */
.pain { padding: clamp(3rem, 8vh, 6rem) clamp(1rem, 4vw, 3rem); background: var(--bg1); }
.pain-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.4rem; max-width: 1100px; margin: 2.6rem auto 0;
}
.pain-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem;
}
.pain-card h3 { font-size: 1.08rem; margin-bottom: 1rem; }
.p-prima, .p-dopo { font-size: .92rem; padding-left: 1.5rem; position: relative; }
.p-prima { color: var(--muted); margin-bottom: .9rem; }
.p-prima::before, .p-dopo::before { position: absolute; left: 0; top: .1em; font-size: .95em; }
.p-prima::before { content: '✕'; color: #e0708a; }
.p-dopo::before { content: '✓'; color: var(--accent); }

/* ── Funzionalità ───────────────────────────────────────────────────── */
.features { padding: clamp(2rem, 6vh, 4rem) clamp(1rem, 4vw, 3rem); max-width: 1280px; margin: 0 auto; }
.feature {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
  padding: clamp(2.4rem, 6vh, 4.5rem) 0;
}
.feature.flip .feature-copy { order: 2; }
.feature.flip .feature-shot { order: 1; }
.feature h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); font-weight: 800; margin-bottom: 1rem; }
.feature p { color: var(--muted); margin-bottom: 1.2rem; }
.feature ul li {
  padding: .42rem 0 .42rem 1.7rem; position: relative; font-size: .95rem;
  border-bottom: 1px solid rgba(140, 165, 200, .08);
}
.feature ul li:last-child { border-bottom: none; }
.feature ul li::before { content: '✓'; position: absolute; left: .2rem; color: var(--accent); font-weight: 700; }

@media (max-width: 980px) {
  .feature, .feature.flip { grid-template-columns: 1fr; gap: 1.6rem; }
  .feature.flip .feature-copy { order: 1; }
  .feature.flip .feature-shot { order: 2; }
}

/* ── Portale (due telefoni) ─────────────────────────────────────────── */
.portal { background: var(--bg1); padding: clamp(3rem, 8vh, 6rem) clamp(1rem, 4vw, 3rem); }
.portal-duo {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(1.6rem, 4vw, 3rem); max-width: 1050px; margin: 2.8rem auto 0;
}
.portal-card { display: flex; flex-direction: column; align-items: center; gap: 1.6rem; }
.phone-frame {
  width: min(260px, 68vw); border-radius: 38px; border: 1px solid var(--line);
  background: #0d1a2e; padding: 12px; overflow: hidden;
  box-shadow: 0 30px 70px rgba(2, 8, 20, .55), 0 0 60px rgba(23, 195, 174, .07);
}
.phone-frame img { border-radius: 27px; }
.portal-card-copy h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: .8rem; }
.portal-card-copy ul li { padding: .4rem 0 .4rem 1.7rem; position: relative; font-size: .93rem; color: var(--muted); }
.portal-card-copy ul li::before { content: '✓'; position: absolute; left: .2rem; color: var(--accent); font-weight: 700; }

/* ── Origine ────────────────────────────────────────────────────────── */
.origin { padding: clamp(3rem, 9vh, 6.5rem) clamp(1rem, 4vw, 3rem); }
.origin-inner { max-width: 820px; margin: 0 auto; text-align: center; }
.origin-inner h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 800; margin-bottom: 1.2rem; }
.origin-inner > p { color: var(--muted); font-size: 1.05rem; }
.origin-points {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.2rem; margin-top: 2.4rem; text-align: left;
}
.origin-points > div {
  border-top: 2px solid var(--accent-deep); padding-top: .9rem;
}
.origin-points strong { display: block; margin-bottom: .3rem; }
.origin-points span { color: var(--muted); font-size: .9rem; }

/* ── Prezzi ─────────────────────────────────────────────────────────── */
.pricing { background: var(--bg1); padding: clamp(3rem, 8vh, 6rem) clamp(1rem, 4vw, 3rem); }
.plans {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
  gap: 1.4rem; max-width: 1160px; margin: 2.6rem auto 0;
}
.plan {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem 1.7rem; display: flex; flex-direction: column; position: relative;
}
.plan.featured {
  border-color: var(--accent-deep);
  background: linear-gradient(150deg, rgba(13, 148, 136, .16), var(--card) 55%);
  box-shadow: 0 18px 50px rgba(2, 8, 20, .45), 0 0 40px rgba(23, 195, 174, .10);
  transform: scale(1.02);
}
.plan-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--accent-deep); color: #fff; font-family: var(--mono);
  font-size: .66rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  padding: .28rem .8rem; border-radius: 999px; white-space: nowrap;
}
.plan h3 { font-family: var(--mono); font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: .7rem; }
.plan-price { font-size: 2.5rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.plan-price span { font-size: 1rem; font-weight: 400; color: var(--muted); }
.plan-desc { color: var(--muted); font-size: .92rem; margin: .8rem 0 1.6rem; flex: 1; }
.plan .btn { text-align: center; }
.plan .reveal.d3 { transition-delay: .36s; }
.pricing-note { max-width: 760px; margin: 1.8rem auto 0; text-align: center; color: var(--muted); font-size: .84rem; }
.pricing-link { text-align: center; margin-top: 1.2rem; }
.pricing-link a { font-size: .95rem; }

/* ── FAQ ────────────────────────────────────────────────────────────── */
.faq { padding: clamp(3rem, 8vh, 6rem) clamp(1rem, 4vw, 3rem); }
.faq-list { max-width: 720px; margin: 2.4rem auto 0; }
.faq-list details {
  border: 1px solid var(--line); border-radius: 10px; background: var(--card);
  margin-bottom: .8rem; overflow: hidden;
}
.faq-list summary {
  cursor: pointer; padding: 1rem 1.2rem; font-weight: 600; font-size: .98rem;
  list-style: none; position: relative; padding-right: 2.6rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: '+'; position: absolute; right: 1.2rem; top: 50%; transform: translateY(-50%);
  color: var(--accent); font-size: 1.3rem; font-weight: 400; transition: transform .25s;
}
.faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-list details p { padding: 0 1.2rem 1.1rem; color: var(--muted); font-size: .93rem; }
.faq-list summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

/* ── CTA finale / footer ────────────────────────────────────────────── */
.cta-final {
  text-align: center; padding: clamp(3.5rem, 10vh, 7rem) 1rem;
  background:
    radial-gradient(700px 420px at 50% 115%, rgba(23, 195, 174, .18), transparent 70%),
    radial-gradient(600px 380px at 15% 100%, rgba(79, 140, 255, .10), transparent 70%),
    linear-gradient(180deg, transparent, rgba(13, 148, 136, .07));
}

.footer-brand { margin-bottom: .6rem; }
.footer-note { margin-top: .5rem; font-size: .78rem; color: #5a6c86; }
.cta-final h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 800; margin-bottom: .8rem; }
.cta-final p { color: var(--muted); margin-bottom: 1.8rem; }

.footer {
  text-align: center; padding: 2rem 1rem; font-size: .85rem; color: var(--muted);
  border-top: 1px solid var(--line);
}
.footer a { color: var(--muted); }
.footer a:hover { color: var(--text); }
