/* Oswald (Google Fonts, licenza OFL) servito dal sito: nessuna richiesta a Google */
@font-face {
    font-family: 'Oswald';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url("../fonts/oswald-latin-ext.192877db9c16.woff2") format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Oswald';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url("../fonts/oswald-latin.22c3b00d2e65.woff2") format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --primary-color: #212529;
    --secondary-color: #edf2fc;
    --primary-green: #198754;
    --accent-green: #2ecc71;
    --dark-bg: #212529;
    --light-bg: #ccc;
    --text-light: #f8f9fa;
    --oswald-sans: 'Oswald', 'Arial Narrow', Arial, sans-serif;
    --arial: Arial, Helvetica, sans-serif;
    --bs-body-font-family: var(--oswald-sans);
}

html, body {
    background-color: var(--dark-bg);
    overflow-x: hidden;
}

body {
    font-family: var(--oswald-sans);
    color: var(--text-light);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main { flex: 1 0 auto; }

p, h1, h2, h3 { color: var(--secondary-color); }

/* Icone SVG (sprite img/icone.svg) */
.icona {
    width: 1em;
    height: 1em;
    fill: currentColor;
    vertical-align: -0.125em;
    flex-shrink: 0;
}

/* Colore del tipo di evento, uguale in home e nella pagina Eventi */
.badge-tipo-raduno { background-color: #571401; }
.badge-tipo-gita_sociale { background-color: #a98a2c; }

/* Testo grigio leggibile su sfondo scuro (il text-muted di Bootstrap è troppo scuro) */
main .text-muted { color: #9aa3ab !important; }

/* ---------- Header ---------- */
.navbar {
    background-color: var(--light-bg) !important;
    flex-direction: column;
    z-index: 1030;
}
.logo { justify-content: center !important; }

.navbar-brand img.head {
    width: 190px;
    height: 190px;
}
@media (max-width: 991.98px) {
    .navbar-brand img.head { width: 130px; height: 130px; }
}
@media (max-width: 575.98px) {
    .navbar-brand img.head { width: 96px; height: 96px; }
}

.nome-club {
    font-size: 2.4rem;
    color: #212529;
    text-decoration: none;
    line-height: 1.1;
}
.nome-club:hover { color: #000; }
@media (max-width: 991.98px) { .nome-club { font-size: 1.8rem; } }
@media (max-width: 575.98px) { .nome-club { font-size: 1.35rem; } }

.nav-link {
    color: #333 !important;
    text-transform: uppercase;
    font-size: 0.95rem;
    letter-spacing: 1px;
    position: relative;
}
.nav-link:hover, .nav-link:focus-visible, .nav-link.active {
    color: var(--primary-green) !important;
}
@media (min-width: 992px) {
    /* sottolineatura animata sotto la voce di menu */
    .nav-link::after {
        content: '';
        position: absolute;
        left: 50%;
        right: 50%;
        bottom: 4px;
        height: 2px;
        background: var(--primary-green);
        transition: left .2s ease, right .2s ease;
    }
    .nav-link:hover::after, .nav-link.active::after { left: .5rem; right: .5rem; }
}
@media (max-width: 991.98px) {
    .navbar-nav .nav-link { font-size: 1.1rem; padding: .6rem 0; }
}

.navbar-toggler:focus { box-shadow: 0 0 0 .2rem rgba(25, 135, 84, .5); }

/* ---------- Footer ---------- */
footer {
    background-color: var(--light-bg);
    padding: 3rem 0 2rem;
    border-top: 3px solid var(--primary-green);
    flex-shrink: 0;
    color: #212529;
}
footer a { color: #212529; text-decoration: none; }
footer a:hover { color: var(--primary-green); }
footer .contatto { font-size: 1.15rem; }
footer .copyright { color: #555; }

/* Link nel testo (es. FAQ) leggibili su sfondo scuro */
/* :where() = specificità minima, così le regole delle singole pagine hanno la precedenza */
main :where(a:not(.btn):not(.nav-link):not(.stretched-link)) { color: var(--accent-green); }
main :where(a:not(.btn):not(.nav-link):not(.stretched-link)):hover { color: #fff; }

/* Focus visibile per chi naviga da tastiera */
a:focus-visible, button:focus-visible {
    outline: 2px solid var(--accent-green);
    outline-offset: 2px;
}

/* Rispetta chi ha disattivato le animazioni nel sistema operativo */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
}
