:root {
    --primary: #1b4332;
    --primary-dark: #081c15;
    --secondary: #2d6a4f;
    --accent: #c59b27;
    --light-bg: #f8f9fa;
    --text-dark: #212529;
    --text-muted: #6c757d;
    --border-color: #dee2e6;
    --white: #ffffff;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background-color: var(--light-bg);
    line-height: 1.6;
}

/* Responsive Images Global Rule */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', 'Segoe UI', sans-serif;
    color: var(--primary-dark);
}

/* Top Bar */
.top-bar {
    background-color: var(--primary-dark);
    color: var(--white);
    font-size: 0.85rem;
    padding: 8px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.top-bar-links {
    display: flex;
    gap: 15px;
}
.top-bar a {
    color: var(--white);
    text-decoration: none;
}

/* Header & Navigation */
header {
    background-color: var(--white);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo-area {
    display: flex;
    align-items: center;
    gap: 15px;
}
.logo-shield {
    width: 45px;
    height: 55px;
    background-color: var(--primary);
    border-radius: 4px 4px 20px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-weight: bold;
    font-size: 1.2rem;
    border: 2px solid var(--accent);
}
.logo-text h1 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
}
.logo-text span {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Navigation Menu */
nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
    align-items: center;
}
nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}
nav a:hover {
    color: var(--secondary);
}
.btn-cta {
    background-color: var(--primary);
    color: var(--white) !important;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 600;
}
.btn-cta:hover {
    background-color: var(--secondary);
}

/* Hamburger Button */
.hamburger-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--primary);
    cursor: pointer;
    padding: 5px;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(8, 28, 21, 0.8), rgba(27, 67, 50, 0.85)), url('https://images.unsplash.com/photo-1553284965-83fd3e82fa5a?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    color: var(--white);
    padding: 100px 20px;
    text-align: center;
}
.hero-content {
    max-width: 800px;
    margin: 0 auto;
}
.hero h2 {
    font-size: 2.8rem;
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1.2;
}
.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #e9ecef;
    font-weight: 300;
}
.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}
.btn-primary {
    background-color: var(--accent);
    color: var(--primary-dark);
    padding: 12px 24px;
    text-decoration: none;
    font-weight: 700;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.btn-outline {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    padding: 12px 24px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 4px;
}

/* Institutional Notice Bar */
.notice-bar {
    background-color: #e9ecef;
    border-left: 4px solid var(--accent);
    padding: 15px 20px;
    max-width: 1200px;
    margin: 30px auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 0 4px 4px 0;
    gap: 15px;
    flex-wrap: wrap;
}
.notice-bar span {
    font-weight: 600;
    color: var(--primary);
}

/* Main Content Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Section Titles */
.section-header {
    text-align: center;
    margin-bottom: 30px;
}
.section-header img {
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    max-width: 100%;
    height: auto;
}
.section-header h3 {
    font-size: 2rem;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}
.section-header h3::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background-color: var(--accent);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}
.section-header p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* Pillars Grid */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}
.pillar-card {
    background: var(--white);
    border-top: 4px solid var(--primary);
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border-radius: 0 0 6px 6px;
}
.pillar-card h4 {
    font-size: 1.25rem;
    margin-bottom: 15px;
    color: var(--primary);
}
.pillar-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* Regional Section */
.regions-section {
    background-color: var(--primary-dark);
    color: var(--white);
    padding: 60px 20px;
    margin: 60px 0 0 0;
    border-radius: 8px;
}
.regions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
    max-width: 1200px;
    margin: 30px auto 0 auto;
}
.region-card {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    padding: 15px;
    text-align: center;
    border-radius: 4px;
    text-decoration: none;
    color: var(--white);
    font-weight: 500;
    transition: all 0.2s;
}
.region-card:hover {
    background: var(--primary);
    border-color: var(--accent);
    transform: translateY(-2px);
}

/* Footer */
footer {
    background-color: #111d17;
    color: #adb5bd;
    padding: 50px 20px 20px;
    font-size: 0.9rem;
}
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}
.footer-col h5 {
    color: var(--white);
    font-family: 'Montserrat', 'Segoe UI', sans-serif;
    font-size: 1.1rem;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--secondary);
    padding-bottom: 8px;
    display: inline-block;
}
.footer-col ul {
    list-style: none;
}
.footer-col ul li {
    margin-bottom: 10px;
}
.footer-col a {
    color: #adb5bd;
    text-decoration: none;
}
.footer-col a:hover {
    color: var(--white);
}
.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.85rem;
}

/* Responsive Media Queries */
@media (max-width: 992px) {
    .hamburger-btn {
        display: block;
    }
    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        padding: 20px 0;
        gap: 15px;
        text-align: center;
        border-top: 1px solid var(--border-color);
    }
    nav ul.active {
        display: flex;
    }
    nav ul li {
        width: 100%;
    }
    nav ul li a {
        display: block;
        padding: 10px 0;
    }
    .hero h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 60px 15px;
    }
    .hero h2 {
        font-size: 1.8rem;
    }
    .hero p {
        font-size: 1rem;
    }
    .top-bar {
        flex-direction: column;
        text-align: center;
    }
    .regions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Stili per la pagina Contatti */
.contact-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 60px;
}

.contact-form-card, .contact-info-card {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-dark);
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: var(--text-dark);
    transition: border-color 0.2s;
}

.form-group input:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.contact-info-card h4 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.contact-info-card p {
    margin-bottom: 10px;
    color: var(--text-muted);
}

@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}
/* Stili specifici per Dirigenza, Consiglio e Volontari */
.dirigenza-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.dirigenza-card {
    background: linear-gradient(135deg, var(--white) 0%, var(--light-bg) 100%);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    display: flex;
    gap: 20px;
}

.president-card {
    border-top: 5px solid #20c997;
    align-items: center;
}

.board-card {
    border-top: 5px solid var(--secondary);
    align-items: flex-start;
}

.dirigenza-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6em;
    flex-shrink: 0;
}

.president-icon {
    background: rgba(32, 201, 151, 0.1);
    color: #20c997;
    font-size: 1.8em;
}

.board-icon {
    background: rgba(45, 106, 79, 0.1);
    color: var(--secondary);
    margin-top: 2px;
}

.dirigenza-label {
    display: block;
    font-size: 0.8em;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    font-weight: bold;
    margin-bottom: 5px;
    font-family: 'Inter', sans-serif;
}

.dirigenza-card h4 {
    margin: 0;
    color: var(--text-dark);
    font-size: 1.2em;
    font-family: 'Inter', sans-serif;
}

.text-update {
    color: var(--text-muted);
    font-weight: normal;
    font-size: 0.9em;
    font-style: italic;
    font-family: 'Inter', sans-serif;
}

.board-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.board-item {
    font-size: 0.95em;
    color: var(--text-dark);
    font-family: 'Inter', sans-serif;
}

.board-role {
    color: var(--text-muted);
    font-size: 0.85em;
}

.volunteers-section {
    margin: 40px 0;
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.section-title-custom {
    margin-bottom: 25px;
    color: var(--text-dark);
    border-bottom: 2px solid #20c997;
    padding-bottom: 10px;
    font-size: 1.3em;
    font-family: 'Inter', sans-serif !important; /* Forza il font moderno senza grazie */
}

.gol-group {
    margin-bottom: 25px;
}

.gol-title {
    color: #20c997;
    font-size: 1.05em;
    font-weight: 600;
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Inter', sans-serif !important; /* Forza il font moderno senza grazie */
}

.volunteers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
}

.volunteer-badge {
    background: var(--light-bg);
    padding: 10px 15px;
    border-radius: 6px;
    border-left: 3px solid #20c997;
    font-size: 0.95em;
    color: var(--text-dark);
    font-weight: 500;
    font-family: 'Inter', sans-serif;
}

.text-muted-italic {
    color: var(--text-muted);
    font-style: italic;
    margin: 0;
    font-family: 'Inter', sans-serif;
}
/* =====================================================================
   AGGIUNTE NUOVA VERSIONE
   Gli stili che prima erano scritti direttamente nelle pagine
   ===================================================================== */

/* Logo nell'intestazione */
.logo-area { position: relative; }
.logo-wrapper {
    position: absolute;
    top: 60px;
    left: 5px;
    transform: translateY(-50%);
    z-index: 1100;
}
.logo-wrapper img {
    width: 100px;
    height: auto;
    display: block;
    filter: drop-shadow(0px 4px 6px rgba(0,0,0,0.15));
}
.logo-text { padding-left: 155px; }
nav a.attivo { color: var(--primary); font-weight: 700; }

/* Avvisi */
.avvisi-area { padding-bottom: 0; }
.avviso-box {
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    text-align: left;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    font-family: 'Montserrat', sans-serif;
}
.avviso-box h3 {
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: inherit;
    font-family: 'Montserrat', sans-serif;
}
.avviso-box p { margin-bottom: 0; line-height: 1.5; }
.avviso-box small { display: block; margin-top: 10px; opacity: 0.8; }

/* Testo di presentazione in home */
.testo-intro p { margin-bottom: 12px; }

/* Griglia regioni: titoli chiari sullo sfondo scuro */
.regions-section .section-header { margin-bottom: 20px; }
.regions-section .section-header h3 { color: var(--white); }
.regions-section .section-header p { color: #adb5bd; }

/* Pagina regione */
.immagine-regione { width: 720px; max-width: 100%; height: auto; }

/* Schede di foto e documenti */
.pagina-contenuto { margin-top: 40px; margin-bottom: 50px; }
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 60px;
}
.card-item {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    border: 1px solid #eaeaea;
    border-top: 4px solid var(--primary);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 15px;
    font-family: 'Montserrat', sans-serif;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card-item:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,0.08); }
.card-item h4 { margin: 0 0 8px 0; font-size: 1.15em; color: #2c3e50; font-weight: 600; font-family: 'Montserrat', sans-serif; }
.card-item p { margin: 0; font-size: 0.92em; color: #555; line-height: 1.6; }
.card-foto {
    width: 100%;
    height: 220px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 15px;
    background: #f8f9fa;
    cursor: zoom-in;
}
.card-foto img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.2s; }
.card-foto:hover img { transform: scale(1.03); }
.card-etichetta {
    display: inline-block;
    font-size: 0.75em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--secondary);
    background: #e8f5ee;
    padding: 3px 8px;
    border-radius: 4px;
    margin-bottom: 10px;
}
.btn-scarica {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9em;
    color: #20c997;
    background: #e8f8f5;
    padding: 10px 16px;
    border-radius: 6px;
    transition: background 0.2s;
}
.btn-scarica:hover { background: #d3f3ea; }
.vuoto { grid-column: 1 / -1; text-align: center; color: #666; padding: 40px; }

/* Lightbox della galleria */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    background: rgba(0,0,0,0.85);
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 20px;
}
.lightbox img { max-width: 90%; max-height: 80vh; border-radius: 8px; box-shadow: 0 5px 25px rgba(0,0,0,0.5); object-fit: contain; }
.lightbox p { color: #fff; margin-top: 15px; font-size: 1.1em; text-align: center; font-family: 'Montserrat', sans-serif; }
.lightbox-chiudi { position: absolute; top: 20px; right: 30px; color: #fff; font-size: 40px; font-weight: bold; cursor: pointer; user-select: none; }

/* Modulo contatti */
.messaggio-esito { padding: 12px 15px; border-radius: 6px; margin-bottom: 20px; font-weight: 600; }
.messaggio-esito.ok { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.messaggio-esito.errore { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.campo-nascosto { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Pagine legali */
.pagina-legale {
    max-width: 900px;
    margin: 40px auto;
    padding: 40px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    line-height: 1.7;
}
.pagina-legale h1 { color: #20c997; border-bottom: 2px solid #20c997; padding-bottom: 10px; margin-bottom: 10px; font-size: 1.8rem; }
.pagina-legale h2 { color: #333; font-size: 1.2rem; margin: 30px 0 10px; }
.pagina-legale p { margin-bottom: 12px; }
.pagina-legale ul { padding-left: 20px; margin-bottom: 12px; }
.pagina-legale a { color: #20c997; }
.pagina-legale .aggiornamento { font-size: 0.9rem; color: #888; }
.pagina-legale .riquadro { margin-top: 40px; padding: 20px; background: #f9fdfc; border-left: 5px solid #20c997; font-style: italic; }
.pagina-legale .torna { margin-top: 30px; padding-top: 20px; border-top: 1px solid #eee; text-align: center; }
.pagina-legale .torna a { display: inline-block; background: #20c997; color: #fff; padding: 10px 25px; border-radius: 6px; text-decoration: none; font-weight: bold; }
@media (max-width: 576px) { .pagina-legale { padding: 25px 18px; margin: 20px 15px; } }

/* Piè di pagina */
.footer-bottom a { color: inherit; text-decoration: none; }
.footer-bottom a:hover { color: var(--white); }

/* Avviso cookie */
.cookie-banner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #212529;
    color: #fff;
    padding: 15px 25px;
    box-shadow: 0 -4px 15px rgba(0,0,0,0.3);
    z-index: 10000;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}
.cookie-testo { flex: 1; min-width: 260px; font-size: 0.95em; line-height: 1.5; }
.cookie-testo a { color: #20c997; text-decoration: underline; }
.cookie-btn { background: #20c997; color: #fff; border: none; padding: 10px 22px; border-radius: 6px; font-weight: bold; cursor: pointer; font-size: 0.9em; }
.cookie-btn:hover { background: #1aa179; }

/* Telefono: logo più piccolo per non coprire il testo */
@media (max-width: 576px) {
    .logo-wrapper { top: 45px; }
    .logo-wrapper img { width: 70px; }
    .logo-text { padding-left: 90px; }
}
