/* =============================================================
   NUOTO CLUB VITERBO — Premium Dark Aquatic Edition
   Design System: Dark Luxury · Syne + Barlow · Cyan + Gold
   ============================================================= */

/* ==================== DESIGN TOKENS ==================== */
:root {
    color-scheme: dark;

    --bg:           #07080d;
    --bg-alt:       #0b0d13;
    --bg-card:      #0f1118;
    --bg-surface:   #13151e;
    --bg-rgb:       7,8,13;

    --text:         #edf2f8;
    --text-dim:     rgba(237,242,248,.55);
    --text-muted:   rgba(237,242,248,.28);

    --cyan:         #00cfff;
    --cyan-dim:     rgba(0,207,255,.12);
    --cyan-glow:    rgba(0,207,255,.35);
    --gold:         #c8a55a;
    --gold-dim:     rgba(200,165,90,.12);

    --border:       rgba(237,242,248,.07);
    --border-mid:   rgba(237,242,248,.13);

    --particle-rgb: 0,207,255;

    --ff-display:   'Syne', sans-serif;
    --ff-label:     'Barlow Condensed', sans-serif;
    --ff-body:      'Barlow', sans-serif;

    --ease-out:     cubic-bezier(.16,1,.3,1);
    --ease-io:      cubic-bezier(.65,0,.35,1);

    --nav-h:        76px;
    --max-w:        1200px;
}

/* ==================== LIGHT THEME ====================
   Airy aquatic palette — keeps the brand cyan + gold accents
   (deepened for contrast on light surfaces) and the city's
   blue/gold identity. */
[data-theme="light"] {
    color-scheme: light;

    --bg:           #eef4f9;
    --bg-alt:       #e3ecf4;
    --bg-card:      #ffffff;
    --bg-surface:   #f3f7fb;
    --bg-rgb:       238,244,249;

    --text:         #0a1825;
    --text-dim:     rgba(10,24,37,.64);
    --text-muted:   rgba(10,24,37,.42);

    --cyan:         #0096c4;
    --cyan-dim:     rgba(0,150,196,.10);
    --cyan-glow:    rgba(0,150,196,.30);
    --gold:         #9c7a2c;
    --gold-dim:     rgba(156,122,44,.12);

    --border:       rgba(10,24,37,.10);
    --border-mid:   rgba(10,24,37,.18);

    --particle-rgb: 0,150,196;
}

/* Photos read a touch heavy with the dark-mode darkening filter —
   lighten them on the bright surfaces. */
[data-theme="light"] .about-img { filter: saturate(.95) brightness(.98); }
[data-theme="light"] .about-img-frame:hover .about-img { filter: saturate(1.05) brightness(1.02); }
[data-theme="light"] .card-img { filter: saturate(.9) brightness(.95); }
[data-theme="light"] .team-card:hover .card-img { filter: saturate(1) brightness(1); }

/* Smooth crossfade applied briefly by JS while switching theme. */
.theme-transition,
.theme-transition *,
.theme-transition *::before,
.theme-transition *::after {
    transition: background-color .45s var(--ease-out),
                border-color .45s var(--ease-out),
                color .45s var(--ease-out),
                fill .45s var(--ease-out),
                stroke .45s var(--ease-out) !important;
}

/* ==================== RESET ==================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}
body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--ff-body);
    font-weight: 300;
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
}
/* Respect users who prefer less 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;
    }
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { border: none; background: none; font: inherit; color: inherit; cursor: pointer; }
ul { list-style: none; }

/* ==================== ACCESSIBILITY ==================== */
/* Skip link — hidden until focused via keyboard */
.skip-link {
    position: fixed; top: 12px; left: 12px; z-index: 200;
    padding: 12px 20px;
    background: var(--cyan); color: #07080d;
    font-family: var(--ff-label);
    font-size: .8rem; font-weight: 600;
    letter-spacing: .1em; text-transform: uppercase;
    border-radius: 3px;
    transform: translateY(-160%);
    transition: transform .28s var(--ease-out);
}
.skip-link:focus { transform: none; }
/* Remove the default focus ring on the hero when reached via skip link */
.hero:focus { outline: none; }
/* Visible keyboard focus for interactive elements */
a:focus-visible,
button:focus-visible,
.nav-link:focus-visible,
.nav-cta:focus-visible,
.theme-toggle:focus-visible,
.social-link:focus-visible,
.btn-primary:focus-visible,
.btn-line:focus-visible,
.roster-btn:focus-visible,
.press-card:focus-visible,
.modal-close:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 3px;
    border-radius: 3px;
}

/* ==================== GLOBAL TEXT SAFETY ==================== */
h1, h2, h3, h4, p, span, a, li, blockquote {
    overflow-wrap: break-word;
    min-width: 0;
}

/* ==================== SCROLLBAR ==================== */
::-webkit-scrollbar { width: 2px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--cyan); }

/* ==================== GRAIN ==================== */
.grain {
    position: fixed; inset: 0; pointer-events: none; z-index: 1;
    opacity: .022;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 300px;
}

/* ==================== CONTAINER ==================== */
.container {
    width: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 48px;
}

/* ==================== NAVBAR ==================== */
.navbar {
    position: fixed; top: 0; left: 0; right: 0;
    height: var(--nav-h);
    z-index: 100;
    transition: background .45s var(--ease-out), border-color .45s;
    border-bottom: 1px solid transparent;
}
.navbar.scrolled {
    background: rgba(var(--bg-rgb),.88);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom-color: var(--border);
}
.nav-inner {
    height: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-logo {
    display: flex; align-items: center; gap: 14px;
}
.nav-logo-img { width: 54px; height: 54px; flex-shrink: 0; }
.nav-logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.nav-logo-name {
    font-family: var(--ff-display);
    font-size: .88rem; font-weight: 700;
    letter-spacing: .04em; text-transform: uppercase;
}
.nav-logo-city {
    font-family: var(--ff-label);
    font-size: .68rem; font-weight: 400;
    letter-spacing: .22em; text-transform: uppercase;
    color: var(--cyan);
}
.nav-links {
    display: flex; align-items: center; gap: 4px;
}
.nav-link {
    display: flex; align-items: center; gap: 6px;
    padding: 8px 14px;
    font-family: var(--ff-label);
    font-size: .75rem; font-weight: 400;
    letter-spacing: .12em; text-transform: uppercase;
    color: var(--text-dim);
    position: relative;
    transition: color .3s;
}
.nav-link em {
    font-style: normal;
    font-size: .6rem;
    color: var(--cyan);
    opacity: .65;
}
.nav-link::after {
    content: '';
    position: absolute; bottom: 4px; left: 14px; right: 14px;
    height: 1px; background: var(--cyan);
    transform: scaleX(0); transform-origin: left;
    transition: transform .35s var(--ease-out);
}
.nav-link:hover { color: var(--text); }
.nav-link:hover::after { transform: scaleX(1); }
.nav-cta {
    margin-left: 12px;
    padding: 10px 24px;
    border: 1px solid var(--cyan);
    border-radius: 1px;
    font-family: var(--ff-label);
    font-size: .75rem; font-weight: 600;
    letter-spacing: .14em; text-transform: uppercase;
    color: var(--cyan);
    transition: background .3s, color .3s;
}
.nav-cta:hover { background: var(--cyan); color: var(--bg); }

.hamburger {
    display: none;
    flex-direction: column; gap: 7px;
    padding: 8px;
    position: relative;
    z-index: 110;
}
.hamburger span {
    display: block; width: 22px; height: 1px;
    background: var(--text);
    transition: transform .35s var(--ease-out), opacity .3s;
}
.hamburger.open span:first-child { transform: translateY(8px) rotate(45deg); }
.hamburger.open span:last-child  { transform: translateY(-8px) rotate(-45deg); }

/* ==================== THEME TOGGLE ==================== */
.nav-actions {
    display: flex; align-items: center; gap: 8px;
    z-index: 110;
}
.theme-toggle {
    width: 38px; height: 38px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--border-mid);
    border-radius: 50%;
    color: var(--text-dim);
    transition: color .3s, border-color .3s, background .3s, transform .3s;
}
.theme-toggle:hover {
    color: var(--cyan);
    border-color: var(--cyan);
    background: var(--cyan-dim);
    transform: rotate(18deg);
}
.theme-toggle svg { display: block; }
/* Show moon in dark mode (switch → light), sun in light mode (switch → dark) */
.theme-toggle .icon-sun  { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="light"] .theme-toggle .icon-sun  { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }

/* ==================== SCROLL REVEAL ==================== */
.reveal {
    opacity: 0; visibility: hidden;
    transition: opacity .85s var(--ease-out), transform .85s var(--ease-out), visibility 0s .85s;
    transition-delay: var(--delay, 0s);
}
.reveal.active {
    opacity: 1; visibility: visible;
    transition-delay: var(--delay, 0s);
}
.fade-up   { transform: translateY(44px); }
.fade-up.active   { transform: translateY(0); }
.fade-right{ transform: translateX(-44px); }
.fade-right.active{ transform: translateX(0); }
.fade-left { transform: translateX(44px); }
.fade-left.active { transform: translateX(0); }

/* ==================== HERO ==================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
    background: var(--bg);
}
.hero::after {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse 80% 60% at 50% 40%, transparent 0%, rgba(var(--bg-rgb),.55) 60%, rgba(var(--bg-rgb),.9) 100%);
    pointer-events: none; z-index: 1;
}
.hero-canvas {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    opacity: .65;
}
.hero-watermark {
    position: absolute; bottom: -4vw; left: 50%;
    transform: translateX(-50%);
    font-family: var(--ff-display);
    font-size: clamp(72px,16vw,200px);
    font-weight: 800; text-transform: uppercase;
    letter-spacing: -.02em; line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1px rgba(0,207,255,.05);
    white-space: nowrap;
    pointer-events: none; user-select: none;
    z-index: 0;
    transition: transform .05s linear;
}
.hero-content {
    position: relative; z-index: 2;
    text-align: center;
    width: 100%;
    max-width: none;
    padding: 0;
    padding-top: 96px;
}
.hero-badge {
    display: inline-flex; align-items: center; gap: 9px;
    font-family: var(--ff-label);
    font-size: .72rem; font-weight: 400;
    letter-spacing: .22em; text-transform: uppercase;
    color: var(--text-dim);
    border: 1px solid var(--border-mid);
    padding: 7px 18px; border-radius: 1px;
    margin-bottom: 36px;
    backdrop-filter: blur(8px);
    opacity: 0; transform: translateY(16px);
    animation: itemIn .7s .05s var(--ease-out) forwards;
}
.hero-badge-dot {
    width: 5px; height: 5px; border-radius: 50%;
    background: var(--cyan);
    animation: blink 2.2s infinite;
}
@keyframes blink {
    0%,100%{opacity:1;transform:scale(1)}
    50%{opacity:.4;transform:scale(.65)}
}
.hero-title {
    display: block;
    font-family: var(--ff-display);
    font-weight: 800;
    font-size: min(10vw, 9rem);
    line-height: .9;
    letter-spacing: -.035em;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 28px;
    overflow: visible;
}
.hero-word-clip {
    display: block;
    text-align: center;
    line-height: 1.02;
}
.hero-word {
    display: block;
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: normal;
    opacity: 0;
    transform: translateY(28px);
    /* clip-path inset verticale: clip bottom 100% = parola invisibile */
    clip-path: inset(0 -9999px 110% -9999px);
    animation: wordReveal 1s var(--ease-out) forwards;
}
.hero-word-clip:nth-child(1) .hero-word { animation-delay: .1s; }
.hero-word-clip:nth-child(2) .hero-word {
    animation-delay: .24s;
    color: transparent;
    -webkit-text-stroke: 1.5px var(--cyan);
}
.hero-word-clip:nth-child(3) .hero-word { animation-delay: .4s; }
@keyframes wordReveal {
    from {
        opacity: 0;
        transform: translateY(28px);
        clip-path: inset(0 -9999px 110% -9999px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        clip-path: inset(0 -9999px -10% -9999px); /* px fissi: mai clip orizzontale */
    }
}

.hero-sub {
    font-family: var(--ff-label);
    font-size: clamp(.95rem, 1.4vw, 1.15rem);
    font-weight: 300; color: var(--text-dim);
    letter-spacing: .06em; line-height: 1.9;
    margin-bottom: 48px;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 32px;
    opacity: 0; transform: translateY(16px);
    animation: itemIn .8s .6s var(--ease-out) forwards;
}
.hero-sub i { font-style: italic; color: var(--gold); }

.hero-actions {
    display: flex; align-items: center; justify-content: center; gap: 18px;
    flex-wrap: wrap;
    opacity: 0; transform: translateY(16px);
    animation: itemIn .8s .75s var(--ease-out) forwards;
}
@keyframes itemIn {
    to { opacity: 1; transform: translateY(0); }
}

/* ==================== BUTTONS ==================== */
.btn-primary {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 15px 34px;
    background: var(--cyan); color: var(--bg);
    font-family: var(--ff-label);
    font-size: .82rem; font-weight: 600;
    letter-spacing: .14em; text-transform: uppercase;
    border-radius: 1px;
    position: relative; overflow: hidden;
    transition: box-shadow .3s, transform .2s;
}
.btn-primary::before {
    content: ''; position: absolute; inset: 0;
    background: var(--gold);
    transform: translateX(-101%);
    transition: transform .45s var(--ease-out);
}
.btn-primary span, .btn-primary svg { position: relative; z-index: 1; }
.btn-primary:hover::before { transform: translateX(0); }
.btn-primary:hover { box-shadow: 0 0 36px var(--cyan-glow); }

.btn-ghost {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 15px 34px;
    background: transparent; color: var(--text);
    font-family: var(--ff-label);
    font-size: .82rem; font-weight: 600;
    letter-spacing: .14em; text-transform: uppercase;
    border: 1px solid var(--border-mid);
    border-radius: 1px;
    transition: border-color .3s, color .3s, background .3s;
}
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); background: var(--cyan-dim); }

.btn-line {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--ff-label);
    font-size: .84rem; font-weight: 600;
    letter-spacing: .1em; text-transform: uppercase;
    color: var(--text-dim);
    position: relative; padding-bottom: 3px;
    transition: color .3s;
}
.btn-line::after {
    content: ''; position: absolute; bottom: 0; left: 0;
    width: 100%; height: 1px; background: var(--cyan);
    transform: scaleX(.25); transform-origin: left;
    transition: transform .4s var(--ease-out);
}
.btn-line:hover { color: var(--cyan); }
.btn-line:hover::after { transform: scaleX(1); }

.btn-roster {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 9px 18px;
    font-family: var(--ff-label);
    font-size: .72rem; font-weight: 600;
    letter-spacing: .14em; text-transform: uppercase;
    color: var(--cyan);
    border: 1px solid rgba(0,207,255,.28);
    border-radius: 1px;
    transition: background .3s, border-color .3s;
}
.btn-roster:hover { background: var(--cyan-dim); border-color: var(--cyan); }

/* ==================== HERO SCROLL INDICATOR ==================== */
.hero-scroll {
    position: absolute; bottom: 40px; left: 50%;
    transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    z-index: 2;
    opacity: 0; animation: itemIn .8s 1.3s var(--ease-out) forwards;
}
.hero-scroll-line {
    width: 1px; height: 56px;
    background: linear-gradient(to bottom, transparent, var(--cyan));
    animation: scrollBlink 2.2s 1.8s ease-in-out infinite;
}
@keyframes scrollBlink {
    0%   { transform: scaleY(0); transform-origin: top; }
    49%  { transform: scaleY(1); transform-origin: top; }
    50%  { transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}
.hero-scroll span {
    font-family: var(--ff-label);
    font-size: .6rem; letter-spacing: .22em;
    text-transform: uppercase; color: var(--text-muted);
}

/* ==================== HERO KPI ==================== */
.hero-kpi {
    position: absolute; bottom: 44px; right: 64px;
    display: flex; flex-direction: column; gap: 20px;
    z-index: 2; text-align: right;
}
.kpi-item {
    opacity: 0; animation: kpiIn .7s var(--ease-out) forwards;
}
.kpi-item:nth-child(1){ animation-delay: 1.1s; }
.kpi-item:nth-child(2){ animation-delay: 1.25s; }
.kpi-item:nth-child(3){ animation-delay: 1.4s; }
@keyframes kpiIn {
    from { opacity: 0; transform: translateX(24px); }
    to   { opacity: 1; transform: translateX(0); }
}
.kpi-item strong {
    display: block;
    font-family: var(--ff-display);
    font-size: 1.9rem; font-weight: 800; line-height: 1;
    color: var(--cyan);
}
.kpi-item strong sup { font-size: 1rem; }
.kpi-item span {
    display: block;
    font-family: var(--ff-label);
    font-size: .62rem; letter-spacing: .18em; text-transform: uppercase;
    color: var(--text-muted); margin-top: 2px;
}

/* ==================== SECTION BASE ==================== */
.section { padding: 140px 0; position: relative; z-index: 2; }

.section-eyebrow {
    display: flex; align-items: center; gap: 16px;
    font-family: var(--ff-label);
    font-size: .72rem; font-weight: 600;
    letter-spacing: .22em; text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 32px;
}
.eyebrow-line {
    display: block; width: 40px; height: 1px;
    background: var(--cyan); opacity: .6;
    flex-shrink: 0;
}

.section-head {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: 40px; margin-bottom: 72px; flex-wrap: wrap;
}
.section-title {
    font-family: var(--ff-display);
    font-size: clamp(1.8rem, 5.5vw, 5.5rem);
    font-weight: 800; line-height: .96;
    letter-spacing: -.03em; text-transform: uppercase;
    color: var(--text);
    min-width: 0;
}
.about-left .section-title {
    font-size: clamp(1.8rem, 4.2vw, 4.2rem);
}
.section-title i {
    font-style: italic;
    color: transparent;
    -webkit-text-stroke: 1.5px var(--text);
}
.section-desc {
    max-width: 380px;
    font-size: .96rem; color: var(--text-dim); line-height: 1.75;
    align-self: flex-end;
    padding-bottom: 4px;
}

/* ==================== CHI SIAMO ==================== */
.chi-siamo {
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
}
.about-grid {
    display: grid;
    grid-template-columns: .9fr 1.3fr;
    gap: 64px; align-items: center;
}
.about-left {
    display: flex; flex-direction: column; gap: 22px;
}
.about-left .section-title { margin-bottom: 8px; }
.about-lead {
    font-family: var(--ff-display);
    font-size: clamp(1.1rem, 1.7vw, 1.45rem);
    font-weight: 600; line-height: 1.45; color: var(--text);
}
.about-body { font-size: .97rem; color: var(--text-dim); line-height: 1.8; }

.about-right { display: flex; flex-direction: column; gap: 28px; }

.about-img-frame {
    position: relative;
    border-radius: 2px; overflow: hidden;
    aspect-ratio: 4/3;
}
.about-img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .9s var(--ease-out), filter .5s;
    filter: saturate(.75) brightness(.82);
}
.about-img-frame:hover .about-img { transform: scale(1.045); filter: saturate(1) brightness(.88); }
.about-img-bar {
    position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(to right, var(--cyan), var(--gold));
}

/* ==================== SETTORE SECTIONS ==================== */
.settore-section { background: var(--bg); }
.settore-alt {
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px; background: var(--border);
}

.team-card {
    background: var(--bg-card);
    display: flex; flex-direction: column;
    overflow: hidden;
    transition-delay: var(--delay, 0s);
    position: relative;
}
.team-card::after {
    content: '';
    position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
    background: var(--cyan);
    transform: scaleX(0); transform-origin: left;
    transition: transform .5s var(--ease-out);
}
.team-card:hover::after { transform: scaleX(1); }

.card-media {
    aspect-ratio: 4/3; overflow: hidden; position: relative;
}
.card-img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .9s var(--ease-out), filter .5s;
    filter: saturate(.6) brightness(.72);
}
.team-card:hover .card-img { transform: scale(1.07); filter: saturate(.9) brightness(.8); }
.card-media-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to bottom, transparent 45%, var(--bg-card) 100%);
}

/* Gradient placeholders for swim categories */
.card-media--grad {
    display: flex; align-items: center; justify-content: center;
}
.card-media--grad-1 {
    background: linear-gradient(145deg, #07111f 0%, #0c2540 60%, #051218 100%);
}
.card-media--grad-2 {
    background: linear-gradient(145deg, #060f1c 0%, #003654 60%, #001824 100%);
}
.card-media--grad-3 {
    background: linear-gradient(145deg, #0a1321 0%, #141f30 60%, #060c15 100%);
}
.card-media--grad::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(circle at 50% 60%, rgba(0,207,255,.14) 0%, transparent 68%);
    animation: gradPulse 4s ease-in-out infinite;
}
@keyframes gradPulse { 0%,100%{opacity:.5} 50%{opacity:1} }

.card-body {
    padding: 28px 30px 32px;
    display: flex; flex-direction: column; gap: 11px; flex: 1;
}
.card-tag {
    font-family: var(--ff-label);
    font-size: .66rem; font-weight: 600;
    letter-spacing: .22em; text-transform: uppercase;
    color: var(--cyan);
}
.card-title {
    font-family: var(--ff-display);
    font-size: clamp(1.1rem, 1.8vw, 1.6rem);
    font-weight: 800; text-transform: uppercase;
    letter-spacing: -.015em; line-height: 1.1;
    color: var(--text);
    overflow-wrap: break-word;
    word-break: break-word;
}
.card-desc { font-size: .9rem; color: var(--text-dim); line-height: 1.72; flex: 1; }
.card-body .btn-roster { margin-top: 6px; align-self: flex-start; }

/* ==================== STAMPA / RASSEGNA ==================== */
.press-section { background: var(--bg); }

.press-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 360px));
    gap: 20px;
}
.press-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 2px;
    padding: 32px 30px 28px;
    display: flex; flex-direction: column; gap: 18px;
    min-height: 240px;
    position: relative;
    color: inherit;
    transition: background .3s, border-color .3s;
    transition-delay: var(--delay, 0s);
}
.press-card:hover { border-color: var(--border-mid); }
.press-card:hover { background: var(--bg-surface); }
.press-card::after {
    content: '';
    position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
    background: var(--cyan);
    transform: scaleX(0); transform-origin: left;
    transition: transform .5s var(--ease-out);
}
.press-card:hover::after { transform: scaleX(1); }

.press-top { display: flex; align-items: center; gap: 12px; }
.press-tag {
    font-family: var(--ff-label);
    font-size: .6rem; font-weight: 600;
    letter-spacing: .18em; text-transform: uppercase;
    color: var(--cyan);
    border: 1px solid var(--cyan-dim);
    padding: 4px 10px; border-radius: 1px;
}
.press-tag--gold {
    color: var(--gold);
    border-color: var(--gold-dim);
}
.press-date {
    font-family: var(--ff-label);
    font-size: .66rem; letter-spacing: .12em; text-transform: uppercase;
    color: var(--text-muted);
}
.press-headline {
    font-family: var(--ff-display);
    font-size: clamp(1.1rem, 1.5vw, 1.4rem);
    font-weight: 700; line-height: 1.18;
    letter-spacing: -.01em;
    color: var(--text);
    flex: 1;
}
.press-foot {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}
.press-source {
    font-family: var(--ff-label);
    font-size: .78rem; letter-spacing: .04em;
    color: var(--text-dim);
}
.press-go {
    display: inline-flex; align-items: center; gap: 7px;
    font-family: var(--ff-label);
    font-size: .72rem; font-weight: 600;
    letter-spacing: .12em; text-transform: uppercase;
    color: var(--cyan);
    flex-shrink: 0;
}
.press-go svg { transition: transform .35s var(--ease-out); }
.press-card:hover .press-go svg { transform: translate(2px, -2px); }

/* ==================== ARTICLE / COMUNICATO ==================== */
.navbar--solid {
    background: rgba(var(--bg-rgb),.9);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom-color: var(--border);
}
.article-page {
    padding-top: calc(var(--nav-h) + 72px);
    padding-bottom: 110px;
    min-height: 72vh;
}
.article-container {
    width: 100%; max-width: 780px;
    margin: 0 auto;
    padding: 0 clamp(24px, 5vw, 48px);
}
.article-back {
    display: inline-flex; align-items: center; gap: 9px;
    font-family: var(--ff-label);
    font-size: .74rem; font-weight: 600;
    letter-spacing: .16em; text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 44px;
    transition: color .3s, gap .3s;
}
.article-back:hover { color: var(--cyan); gap: 13px; }
.article-meta { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.article-date {
    font-family: var(--ff-label);
    font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
    color: var(--text-muted);
}
.article-title {
    font-family: var(--ff-display);
    font-size: clamp(2rem, 5.2vw, 3.5rem);
    font-weight: 800; line-height: 1.05; letter-spacing: -.02em;
    text-transform: uppercase; color: var(--text);
    margin-bottom: 28px;
}
.article-lead {
    font-family: var(--ff-display);
    font-size: clamp(1.1rem, 1.7vw, 1.4rem);
    font-weight: 600; line-height: 1.5; color: var(--text);
    margin-bottom: 38px;
}
.article-divider {
    height: 2px; width: 100%;
    background: linear-gradient(to right, var(--cyan), var(--gold));
    opacity: .85; margin: 0 0 40px;
}
.article-body p {
    font-size: 1.02rem; color: var(--text-dim); line-height: 1.9;
    margin-bottom: 1.4em;
}
.article-body p:last-child { margin-bottom: 0; }
.article-body strong { color: var(--text); font-weight: 600; }
.article-body a {
    color: var(--cyan);
    border-bottom: 1px solid var(--cyan-dim);
    transition: border-color .3s;
}
.article-body a:hover { border-bottom-color: var(--cyan); }
.article-contact {
    margin-top: 52px; padding: 32px 36px;
    background: var(--bg-card);
    border: 1px solid var(--border-mid);
    border-radius: 2px;
    display: flex; align-items: center; justify-content: space-between;
    gap: 28px; flex-wrap: wrap;
}
.article-contact-text h3 {
    font-family: var(--ff-display);
    font-size: 1.2rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: -.01em;
    color: var(--text); margin-bottom: 6px;
}
.article-contact-text p { font-size: .9rem; color: var(--text-dim); }
.article-contact .btn-primary { flex-shrink: 0; }

/* ==================== HALL OF FAME ==================== */
.hof-section {
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}
.hof-section::before {
    content: 'LEGGENDE';
    position: absolute;
    bottom: -3vw; left: 50%;
    transform: translateX(-50%);
    font-family: var(--ff-display);
    font-size: clamp(80px, 18vw, 220px);
    font-weight: 800; text-transform: uppercase;
    letter-spacing: -.03em;
    color: transparent;
    -webkit-text-stroke: 1px rgba(200,165,90,.055);
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
    z-index: 0;
}

.hof-head {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: 40px; margin-bottom: 72px; flex-wrap: wrap;
    position: relative; z-index: 1;
}

.hof-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
    position: relative; z-index: 1;
}

.hof-card {
    background: var(--bg-card);
    overflow: hidden;
    position: relative;
    transition: transform .4s var(--ease-out), background .35s;
    transition-delay: var(--delay, 0s);
}
.hof-card::after {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--gold) 50%, transparent 100%);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .55s var(--ease-out);
}
.hof-card:hover { transform: translateY(-5px); background: var(--bg-surface); }
.hof-card:hover::after { transform: scaleX(1); }

/* Gold corner glow on hover */
.hof-card::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(200,165,90,.07) 0%, transparent 70%);
    opacity: 0;
    transition: opacity .55s;
    pointer-events: none;
}
.hof-card:hover::before { opacity: 1; }

.hof-card-inner {
    padding: 32px 28px 30px;
    display: flex; flex-direction: column;
    height: 100%;
}

.hof-card-top {
    display: flex; justify-content: space-between; align-items: flex-start;
    margin-bottom: 24px;
}

.hof-card-num {
    font-family: var(--ff-display);
    font-size: 2.6rem; font-weight: 800;
    color: transparent;
    -webkit-text-stroke: 1px var(--gold);
    line-height: 1;
    opacity: .45;
    transition: opacity .4s;
}
.hof-card:hover .hof-card-num { opacity: .9; }

.hof-card-years {
    font-family: var(--ff-label);
    font-size: .65rem; font-weight: 400;
    letter-spacing: .18em; text-transform: uppercase;
    color: var(--text-muted);
    margin-top: 6px;
}

.hof-card-avatar {
    width: 60px; height: 60px;
    border-radius: 50%;
    border: 1px solid rgba(200,165,90,.2);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 20px;
    background: radial-gradient(circle, rgba(200,165,90,.06) 0%, transparent 70%);
    color: var(--gold);
    transition: border-color .4s, box-shadow .4s;
    flex-shrink: 0;
}
.hof-card:hover .hof-card-avatar {
    border-color: rgba(200,165,90,.55);
    box-shadow: 0 0 18px rgba(200,165,90,.18);
}

.hof-card-surname {
    font-family: var(--ff-display);
    font-size: clamp(1.35rem, 2vw, 1.9rem);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -.03em;
    line-height: 1;
    color: var(--text);
    display: block;
}
.hof-card-first {
    font-family: var(--ff-label);
    font-size: .88rem; font-weight: 300;
    font-style: italic;
    color: var(--text-dim);
    display: block;
    margin-top: 5px; margin-bottom: 18px;
    letter-spacing: .04em;
}

.hof-card-role {
    font-family: var(--ff-label);
    font-size: .68rem; font-weight: 600;
    letter-spacing: .2em; text-transform: uppercase;
    color: var(--gold);
    display: block;
}
.hof-card-seasons {
    font-family: var(--ff-label);
    font-size: .62rem; font-weight: 400;
    letter-spacing: .14em; text-transform: uppercase;
    color: var(--text-muted);
    display: block;
    margin-top: 6px;
}

/* ==================== FOOTER ==================== */
.footer {
    background: var(--bg); border-top: 1px solid var(--border);
    padding: 80px 0 40px; position: relative; z-index: 2;
}
.footer-top {
    display: grid; grid-template-columns: 1fr auto;
    gap: 80px; margin-bottom: 56px; padding-bottom: 56px;
    border-bottom: 1px solid var(--border);
    align-items: start;
}
.footer-brand { display: flex; flex-direction: column; gap: 18px; }
.footer-logo { width: 64px; height: 64px; }
.footer-tagline {
    font-family: var(--ff-display);
    font-size: 1.3rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: -.01em; line-height: 1.35;
    color: var(--text-dim);
}
.footer-cols { display: flex; gap: 56px; }
.footer-col h4 {
    font-family: var(--ff-label);
    font-size: .66rem; font-weight: 600;
    letter-spacing: .22em; text-transform: uppercase;
    color: var(--cyan); margin-bottom: 18px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col li {
    font-size: .88rem; color: var(--text-dim);
    transition: color .3s;
}
.footer-col li a:hover { color: var(--text); }

.footer-social { display: flex; gap: 12px; }
.social-link {
    width: 42px; height: 42px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--border-mid);
    border-radius: 50%;
    color: var(--text-dim);
    transition: color .3s, border-color .3s, background .3s, transform .3s;
}
.social-link:hover {
    color: var(--cyan);
    border-color: var(--cyan);
    background: var(--cyan-dim);
    transform: translateY(-2px);
}

.footer-bottom {
    display: flex; align-items: center; justify-content: space-between;
}
.footer-bottom > p { font-size: .78rem; color: var(--text-muted); }
.footer-legal a { color: var(--text-dim); transition: color .3s; }
.footer-legal a:hover { color: var(--cyan); }
.footer-live {
    display: flex; align-items: center; gap: 8px;
    font-family: var(--ff-label);
    font-size: .68rem; letter-spacing: .14em; text-transform: uppercase;
    color: var(--text-muted);
}
.footer-live-dot {
    width: 5px; height: 5px; border-radius: 50%;
    background: var(--cyan); animation: blink 2.2s infinite;
}

/* ==================== MODAL ==================== */
.modal {
    position: fixed; inset: 0; z-index: 200;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden;
    transition: opacity .4s var(--ease-out), visibility 0s .4s;
}
.modal.open {
    opacity: 1; visibility: visible;
    transition: opacity .4s var(--ease-out), visibility 0s 0s;
}
.modal-overlay {
    position: absolute; inset: 0;
    background: rgba(var(--bg-rgb),.93);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}
.modal-container {
    position: relative; z-index: 1;
    width: min(92vw, 940px); max-height: 86vh;
    background: var(--bg-card);
    border: 1px solid var(--border-mid);
    display: flex; flex-direction: column;
    transform: translateY(36px) scale(.975);
    transition: transform .5s var(--ease-out);
    overflow: hidden;
}
.modal.open .modal-container { transform: translateY(0) scale(1); }

.modal-header {
    display: flex; align-items: flex-start; justify-content: space-between;
    padding: 30px 40px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-surface);
    flex-shrink: 0;
}
.modal-tag {
    display: block;
    font-family: var(--ff-label);
    font-size: .68rem; letter-spacing: .22em; text-transform: uppercase;
    color: var(--cyan); margin-bottom: 6px;
}
.modal-title {
    font-family: var(--ff-display);
    font-size: clamp(1.4rem, 3vw, 2.4rem);
    font-weight: 800; text-transform: uppercase;
    letter-spacing: -.025em; line-height: 1;
}
.modal-close {
    width: 38px; height: 38px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--border);
    color: var(--text-dim); flex-shrink: 0;
    transition: border-color .3s, color .3s, background .3s;
}
.modal-close:hover { border-color: var(--cyan); color: var(--cyan); background: var(--cyan-dim); }

.modal-body { padding: 36px 40px; overflow-y: auto; }

.roster-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1px; background: var(--border);
}
.player-card {
    background: var(--bg-card);
    padding: 22px 14px; text-align: center;
    transition: background .25s;
}
.player-card:hover { background: var(--bg-surface); }
.player-photo {
    width: 72px; height: 72px; border-radius: 50%;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 12px;
    color: var(--text-muted);
    overflow: hidden;
}
.player-photo.has-img {
    border-color: var(--cyan);
}
.player-photo img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center 28%;
    display: block;
}
.player-cap {
    display: inline-block;
    font-family: var(--ff-display);
    font-size: 1.1rem; font-weight: 800;
    color: var(--cyan); line-height: 1; margin-bottom: 7px;
}
.player-name {
    font-family: var(--ff-label);
    font-size: .8rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: .04em;
    color: var(--text); line-height: 1.25; margin-bottom: 4px;
}
.player-info {
    font-family: var(--ff-label);
    font-size: .68rem; color: var(--text-muted);
    letter-spacing: .06em;
}

/* ==================== 404 ==================== */
.error-page {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    padding: calc(var(--nav-h) + 40px) 24px 60px;
    text-align: center;
}
.error-inner { max-width: 100%; }
.error-code {
    font-family: var(--ff-display);
    font-weight: 800;
    font-size: clamp(5rem, 20vw, 11rem);
    line-height: .9;
    color: var(--cyan);
    letter-spacing: -.02em;
    white-space: nowrap;      /* keep "404" on a single line */
}
.error-title {
    font-family: var(--ff-display);
    font-weight: 700;
    font-size: clamp(1.4rem, 6vw, 2.4rem);
    margin: 8px 0 16px;
}
.error-text {
    color: var(--text-dim);
    font-size: 1rem;
    max-width: 520px;
    margin: 0 auto 32px;      /* keep the paragraph readable & centered */
}

/* ==================== RESPONSIVE ==================== */

/* Desktop: hamburger always hidden */
.hamburger { display: none; }

/* ── Tablet wide (≤1024px) ── */
@media (max-width: 1024px) {
    .container, .nav-inner { padding: 0 36px; }
    .hero-kpi { right: 36px; }
}

/* ── Tablet (≤960px) ── */
@media (max-width: 960px) {
    .cards-grid   { grid-template-columns: repeat(2, 1fr); }
    .hof-grid     { grid-template-columns: repeat(2, 1fr); }
    .about-grid   { grid-template-columns: 1fr; gap: 52px; }
    .hero-kpi     { display: none; }
    .footer-top   { grid-template-columns: 1fr; gap: 44px; }
    .footer-cols  { flex-wrap: wrap; gap: 36px; }
    .section-head { flex-direction: column; align-items: flex-start; gap: 16px; }
    .section-desc { max-width: 100%; }
    .section      { padding: 110px 0; }
}

/* ── Mobile (≤768px) ── */
@media (max-width: 768px) {
    .container, .nav-inner { padding: 0 22px; }
    .section { padding: 88px 0; }

    /* Nav */
    .hamburger { display: flex; }
    .nav-links {
        position: fixed; inset: 0;
        background: rgba(var(--bg-rgb), .97);
        backdrop-filter: blur(18px) saturate(160%);
        -webkit-backdrop-filter: blur(18px) saturate(160%);
        flex-direction: column; justify-content: center; gap: 8px;
        padding: 96px 24px 40px;
        overflow-y: auto;
        overscroll-behavior: contain;
        transform: translateX(101%);
        transition: transform .5s var(--ease-out);
        z-index: 105;
    }
    .nav-links.nav-active { transform: translateX(0); }
    .nav-links li { width: 100%; max-width: 340px; text-align: center; }
    .nav-link {
        justify-content: center;
        font-size: 1.05rem;
        min-height: 52px; padding: 12px 20px;
    }
    .nav-link::after { display: none; }
    .nav-cta {
        display: block; margin: 12px 0 0;
        padding: 16px 24px; text-align: center;
        border-radius: 2px;
    }
    /* Staggered entrance of the menu items */
    .nav-links li {
        opacity: 0; transform: translateY(14px);
        transition: opacity .4s var(--ease-out), transform .4s var(--ease-out);
    }
    .nav-links.nav-active li { opacity: 1; transform: none; }
    .nav-links.nav-active li:nth-child(1) { transition-delay: .10s; }
    .nav-links.nav-active li:nth-child(2) { transition-delay: .15s; }
    .nav-links.nav-active li:nth-child(3) { transition-delay: .20s; }
    .nav-links.nav-active li:nth-child(4) { transition-delay: .25s; }
    .nav-links.nav-active li:nth-child(5) { transition-delay: .30s; }
    .nav-links.nav-active li:nth-child(6) { transition-delay: .35s; }

    /* Hero */
    .hero-content { padding: 0 20px; }
    .hero-badge {
        font-size: .65rem;
        letter-spacing: .14em;
        padding: 6px 14px;
        margin-bottom: 24px;
    }
    .hero-sub { font-size: .9rem; margin-bottom: 36px; }
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .btn-primary, .btn-ghost {
        justify-content: center;
        padding: 15px 24px;
    }
    .hero-scroll { display: none; }
    .hero-watermark { font-size: 28vw; }

    /* Cards: 1 col on mobile */
    .cards-grid { grid-template-columns: 1fr; }
    .hof-grid   { grid-template-columns: 1fr; }
    .press-grid { grid-template-columns: 1fr; }
    .press-card { min-height: 0; }

    /* Section titles — min abbassato, usa vw puri sotto i 768px */
    .section-title { font-size: clamp(1.6rem, 8vw, 3.2rem); }

    /* Footer */
    .footer-top   { gap: 36px; }
    .footer-cols  { flex-direction: column; gap: 28px; }
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    /* Modal */
    .modal-container { width: 96vw; max-height: 92vh; }
    .modal-header    { padding: 20px 20px; }
    .modal-body      { padding: 20px; }
    .roster-grid     { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
}

/* ── Small phones (≤480px) ── */
@media (max-width: 480px) {
    .container, .nav-inner { padding: 0 16px; }
    .section { padding: 72px 0; }

    .hero-content { padding: 0 12px; }
    .hero-badge  { font-size: .6rem; padding: 5px 12px; }
    .hero-sub    { font-size: .85rem; }
    .hero-content { padding: 0 16px; }

    .section-title { font-size: clamp(1.5rem, 9vw, 2.4rem); }
    .section-eyebrow { font-size: .66rem; }

    .card-body   { padding: 22px 20px 26px; }
    .card-title  { font-size: 1.2rem; }

    .footer { padding: 56px 0 32px; }
    .footer-tagline { font-size: 1.1rem; }

    .modal-header { padding: 16px; }
    .modal-body   { padding: 16px; }
    .roster-grid  { grid-template-columns: repeat(2, 1fr); }
    .modal-title  { font-size: 1.3rem; }
}
