/* ===== TOTOSCORE — landing page ===========================================
   Palette: verde scuro + bianco. Nessuna icona: solo tipografia, forme e
   animazioni CSS pulite.
   ========================================================================= */
:root {
    --green-950: #04231a;
    --green-900: #062a20;
    --green-850: #083127;
    --green-800: #0a3a2c;
    --green-700: #0e4d39;
    --green-600: #12805a;
    --mint: #46e0a0; /* accento (highlight, sottolineature, numeri) */
    --mint-soft: rgba(70, 224, 160, .16);
    --white: #ffffff;
    --cream: #f4f8f5;
    --ink: #0b1f18;
    --muted: rgba(255, 255, 255, .68);
    --line: rgba(255, 255, 255, .10);
    --radius: 18px;
    --shadow: 0 24px 60px -20px rgba(0, 0, 0, .55);
    --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.tm {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    background: var(--white);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

.tm-wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* ── Wordmark ──────────────────────────────────────────────────────────── */
.tm-logo {
    font-weight: 800;
    letter-spacing: .04em;
    font-size: 1.35rem;
    color: var(--white);
    text-decoration: none;
    display: inline-flex;
    align-items: baseline;
    gap: .04em;
}
.tm-logo b { color: var(--mint); font-weight: 800; }
.tm-logo.dark { color: var(--green-900); }
.tm-logo.dark b { color: var(--green-600); }

/* ── Top bar ───────────────────────────────────────────────────────────── */
.tm-nav {
    position: absolute; inset: 0 0 auto 0; z-index: 10;
    display: flex; align-items: center; justify-content: space-between;
    padding: 22px 24px;
    max-width: 1140px; margin: 0 auto;
}
.tm-nav-actions { display: flex; gap: 12px; align-items: center; }

/* ── Buttons ───────────────────────────────────────────────────────────── */
.tm-btn {
    --b: var(--white);
    display: inline-block; padding: .72rem 1.5rem; border-radius: 999px;
    font-weight: 600; font-size: .98rem; text-decoration: none; cursor: pointer;
    border: 2px solid transparent; transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
    white-space: nowrap;
}
.tm-btn-primary { background: var(--white); color: var(--green-900); }
.tm-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgba(0,0,0,.5); }
.tm-btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.45); }
.tm-btn-ghost:hover { border-color: var(--white); transform: translateY(-2px); }
.tm-btn-mint { background: var(--mint); color: var(--green-950); }
.tm-btn-mint:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -12px rgba(70,224,160,.6); }
.tm-btn-lg { padding: .95rem 2.1rem; font-size: 1.08rem; }

/* ── Hero ──────────────────────────────────────────────────────────────── */
.tm-hero {
    position: relative; overflow: hidden;
    background: radial-gradient(120% 120% at 80% -10%, var(--green-700), var(--green-950) 60%);
    color: var(--white);
    padding: 150px 0 110px;
}
/* bagliore animato */
.tm-hero::before {
    content: ""; position: absolute; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
    top: -25%; left: 55%; border-radius: 50%;
    background: radial-gradient(circle, rgba(70,224,160,.22), transparent 62%);
    filter: blur(10px); animation: tm-glow 14s ease-in-out infinite; pointer-events: none;
}
@keyframes tm-glow {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: .8; }
    50% { transform: translate(-6%, 5%) scale(1.12); opacity: 1; }
}
/* linee del campo, molto tenui */
.tm-pitch { position: absolute; inset: 0; overflow: hidden; pointer-events: none; opacity: .9; }
.tm-pitch .circle {
    position: absolute; right: -120px; bottom: -160px; width: 460px; height: 460px;
    border: 2px solid var(--line); border-radius: 50%;
}
.tm-pitch .circle::after {
    content: ""; position: absolute; inset: 38%; border: 2px solid var(--line); border-radius: 50%;
}
.tm-pitch .vline { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: linear-gradient(transparent, var(--line), transparent); }
.tm-pitch .arc {
    position: absolute; left: -90px; top: 18%; width: 220px; height: 320px;
    border: 2px solid var(--line); border-radius: 0 50% 50% 0 / 0 50% 50% 0; border-left: 0;
}

.tm-hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }

.tm-kicker {
    display: inline-block; font-size: .82rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
    color: var(--mint); padding: .35rem .85rem; border: 1px solid var(--mint-soft); border-radius: 999px;
    background: var(--mint-soft); margin-bottom: 22px;
}
.tm-hero h1 {
    font-size: clamp(2.4rem, 5vw, 3.7rem); font-weight: 800; line-height: 1.05; margin: 0 0 18px;
    letter-spacing: -.01em;
}
.tm-hero h1 .hl { color: var(--mint); }
.tm-hero p.lead { font-size: 1.18rem; color: var(--muted); max-width: 30em; margin: 0 0 32px; }
.tm-hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.tm-hero-note { margin-top: 18px; font-size: .9rem; color: rgba(255,255,255,.5); }

/* ── Schedina mock (animata) ───────────────────────────────────────────── */
.tm-card {
    background: linear-gradient(180deg, #ffffff, #f3f8f5);
    color: var(--ink); border-radius: var(--radius); box-shadow: var(--shadow);
    padding: 22px; position: relative;
    animation: tm-floaty 7s ease-in-out infinite;
}
@keyframes tm-floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.tm-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.tm-card-head .t { font-weight: 700; }
.tm-card-head .g { font-size: .78rem; color: #5b6f66; background: #e7efe9; padding: .2rem .6rem; border-radius: 999px; }
.tm-row {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 11px 12px; border-radius: 12px; margin-bottom: 8px; background: #eef4f0;
    opacity: 0; transform: translateY(8px); animation: tm-rowin .5s ease forwards;
}
.tm-row .teams { font-weight: 600; font-size: .95rem; }
.tm-row .score { font-weight: 800; background: var(--green-700); color: #fff; padding: .25rem .7rem; border-radius: 9px; letter-spacing: .04em; }
.tm-row .tag { font-size: .68rem; font-weight: 700; letter-spacing: .08em; color: var(--green-600); }
.tm-row.win { background: var(--mint-soft); }
@keyframes tm-rowin { to { opacity: 1; transform: translateY(0); } }
.tm-card-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; padding-top: 14px; border-top: 1px dashed #cdddd3; }
.tm-card-foot .lbl { font-size: .85rem; color: #5b6f66; }
.tm-card-foot .pts { font-size: 1.9rem; font-weight: 800; color: var(--green-600); line-height: 1; }

/* ── Sezioni generiche ─────────────────────────────────────────────────── */
.tm-section { padding: 92px 0; }
.tm-section.alt { background: var(--cream); }
.tm-section h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); font-weight: 800; margin: 0 0 12px; color: var(--green-900); letter-spacing: -.01em; }
.tm-section .sub { color: #4d6258; max-width: 40em; margin: 0 0 48px; font-size: 1.08rem; }
.tm-eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--green-600); margin-bottom: 10px; }

/* ── Come funziona (step) ──────────────────────────────────────────────── */
.tm-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; position: relative; }
.tm-step { position: relative; padding: 28px 24px; background: var(--white); border: 1px solid #e3ece7; border-radius: var(--radius); }
.tm-section.alt .tm-step { background: #fff; }
.tm-step .n {
    font-size: 2.6rem; font-weight: 800; color: var(--green-600); line-height: 1; margin-bottom: 14px;
    display: inline-block; position: relative;
}
.tm-step .n::after { content: ""; display: block; height: 4px; width: 0; background: var(--mint); border-radius: 3px; margin-top: 8px; transition: width .7s ease .2s; }
.tm-step.in .n::after { width: 46px; }
.tm-step h3 { margin: 0 0 8px; font-size: 1.2rem; color: var(--green-900); }
.tm-step p { margin: 0; color: #51665c; }

/* ── Features ──────────────────────────────────────────────────────────── */
.tm-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.tm-feat {
    padding: 30px; border-radius: var(--radius); background: var(--green-900); color: #fff; position: relative; overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
}
.tm-feat:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.tm-feat::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--mint); transform: scaleY(0); transform-origin: top; transition: transform .5s ease; }
.tm-feat.in::before { transform: scaleY(1); }
.tm-feat h3 { margin: 0 0 8px; font-size: 1.25rem; }
.tm-feat p { margin: 0; color: var(--muted); }

/* ── Striscia statistiche (count-up) ───────────────────────────────────── */
.tm-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: center; }
.tm-stat .v { font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 800; color: var(--mint); line-height: 1; }
.tm-stat .l { color: var(--muted); margin-top: 6px; letter-spacing: .02em; }

/* ── Chip competizioni (nomi reali) ────────────────────────────────────── */
.tm-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 40px; }
.tm-chip {
    display: inline-flex; align-items: center; padding: 8px 16px; border-radius: 999px;
    background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16);
    color: #fff; font-weight: 600; font-size: .92rem; white-space: nowrap;
}

/* ── CTA finale ────────────────────────────────────────────────────────── */
.tm-cta {
    background: radial-gradient(110% 130% at 50% -20%, var(--green-700), var(--green-950));
    color: #fff; text-align: center; padding: 96px 0;
}
.tm-cta h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 800; margin: 0 0 14px; }
.tm-cta p { color: var(--muted); font-size: 1.12rem; margin: 0 0 30px; }

/* CTA finale: verde più acceso + bagliore mint, per staccarla dalla striscia
   statistiche e dal footer (entrambi verde quasi nero). */
.tm-cta-final {
    background:
        radial-gradient(120% 150% at 82% -15%, rgba(70, 224, 160, .22), transparent 55%),
        linear-gradient(135deg, var(--green-600), var(--green-800) 72%);
}

/* ── Footer ────────────────────────────────────────────────────────────── */
.tm-footer { background: var(--green-950); color: rgba(255,255,255,.6); padding: 34px 0; font-size: .92rem; }
.tm-footer .row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.tm-footer a { color: rgba(255,255,255,.78); text-decoration: none; }
.tm-footer a:hover { color: #fff; }
.tm-footer .links { display: flex; gap: 18px; }

/* ── Reveal on scroll ──────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
    .tm-hero::before, .tm-card { animation: none; }
    .reveal { transition: none; opacity: 1; transform: none; }
}

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .tm-hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .tm-hero { padding: 130px 0 80px; }
    .tm-steps, .tm-grid, .tm-stats { grid-template-columns: 1fr; }
    .tm-nav-actions .tm-btn-ghost { display: none; }
}
