/* ===== Flyer Gym: base ===== */
:root {
    --bg: #1b1d1c;
    --bg-2: #222524;
    --surface: #2b2f2d;
    --line: #3b403d;
    --ink: #f3f5f2;
    --muted: #aab1ac;
    --green: #0d9644;
    --green-text: #0d9644;
    --on-green: #06210f;
    --f-head: "Archivo", "Segoe UI", system-ui, sans-serif;
    --f-body: "Figtree", "Segoe UI", system-ui, sans-serif;
    --r: 14px;
    --nav-h: 72px;
    /* Sfumato sul nero in cima alle immagini di sfondo: tiene leggibile il menu trasparente. */
    --fade-top: linear-gradient(180deg, var(--bg) 0, rgba(27, 29, 28, .8) var(--nav-h), rgba(27, 29, 28, 0) calc(var(--nav-h) + 7rem));
    --max: 1160px;
    color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font: 400 1.0625rem/1.65 var(--f-body);
    overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1rem; }

h1, h2, h3 { font-family: var(--f-head); line-height: 1.05; letter-spacing: -.02em; margin: 0; }
h1 { font-weight: 900; }
h2 { font-weight: 800; font-size: clamp(2rem, 5vw, 3.1rem); }
h3 { font-weight: 800; font-size: 1.35rem; line-height: 1.2; letter-spacing: -.01em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; scroll-margin-top: calc(var(--nav-h) + 8px); }
.section--alt { background: var(--bg-2); }
.section__head { margin: 0 auto clamp(1.75rem, 4vw, 2.75rem); max-width: 40rem; text-align: center; }
.section__head p { color: var(--muted); margin: .9rem 0 0; font-size: 1.1rem; }

.ico { width: 1.25em; height: 1.25em; flex: none; }

/* Bottoni */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
    padding: .85rem 1.6rem; border-radius: 999px; border: 2px solid transparent;
    font: 700 1rem var(--f-body); text-decoration: none; cursor: pointer;
    transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn--primary { background: var(--green); color: var(--on-green); }
.btn--primary:hover { background: var(--ink); }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: var(--bg); }

/* Accessibilità */
:focus-visible { outline: 3px solid var(--green-text); outline-offset: 3px; border-radius: 4px; }
.skip {
    position: absolute; left: 1rem; top: -4rem; z-index: 100;
    background: var(--green); color: var(--on-green); padding: .6rem 1rem; border-radius: 8px; font-weight: 700;
}
.skip:focus { top: 1rem; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}