/* ==========================================================================
   1. VARIABILI E REGOLE BASE
   ========================================================================== */
:root {
    --primary-color: #1a365d;
    --secondary-color: #63b3ed;
    --accent-color: #d69e2e;
    --text-dark: #2d3748;
    --text-light: #ffffff;
    --bg-light: #f7fafc;
    --border-color: #e2e8f0;
    --alert-bg: #fffaf0;
    --alert-border: #dd6b20;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    scroll-behavior: smooth;
}

/* Colore predefinito (per PC e schermi grandi) */
body {
    background-color: #EEF2F6; /* Azzurro fresco su PC */
    color: var(--text-dark);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Colore specifico per MOBILE (schermi fino a 768px) */
@media (max-width: 768px) {
    body {
        background-color: #E6F2FF; /* Grigio-azzurro tenue su smartphone */
    }
}

/* ==========================================================================
   2. HEADER & NAVBAR
   ========================================================================== */
header {
    background-color: var(--text-light);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-item { 
    position: relative; 
}

.nav-link {
    display: block;
    padding: 0.75rem 1.2rem;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
}

.nav-link:hover, 
.nav-item.active .nav-link {
    color: var(--secondary-color);
}

.dropdown-menu {
    position: absolute;
    top: 100%; 
    left: 0;
    background-color: var(--text-light);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    list-style: none;
    min-width: 180px;
    opacity: 0; 
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.dropdown-menu a {
    padding: 0.75rem 1.2rem;
    display: block;
    color: var(--text-dark);
    text-decoration: none;
}

/* Stato Hover (rimane con la variabile) */
.dropdown-menu a:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
    font-weight: 600;
}

/* Link Attivo (Blu Scuro) */
.dropdown-menu a.active-link {
    background-color: var(--bg-light);
    color: #00008b; /* Codice HEX per blu scuro (o #0a192f, #001f3f, ecc.) */
    font-weight: 600;
}

.nav-item:hover .dropdown-menu {
    opacity: 1; 
    visibility: visible; 
    transform: translateY(0);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
}

.menu-toggle span {
    display: block;
    width: 25px; 
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px;
}

/* ==========================================================================
   3. HERO & PAGE HEADER   
   
   ========================================================================== */
.hero {
    background: linear-gradient(rgba(26, 54, 93, 0.85), rgba(26, 54, 93, 0.65)), url('images/causes/slider/cause-slider-5.jpg') no-repeat center center/cover;
    height: 60vh;
    min-height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--text-light);
    padding: 0 1rem;
}

.hero-content h1 { font-size: 3rem; margin-bottom: 1rem; }
.hero-content p { font-size: 1.25rem; margin-bottom: 2rem; max-width: 600px; margin: 0 auto 2rem; }

.page-header {
    background: linear-gradient(rgba(26, 54, 93, 0.9), rgba(26, 54, 93, 0.8));
    color: var(--text-light);
    text-align: center;
    padding: 4rem 1rem;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    background-color: var(--accent-color);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: background 0.3s, transform 0.2s;
}

.btn:hover { 
    background-color: #b78426; 
    transform: translateY(-2px); 
}

/* ==========================================================================
   4. STRUTTURA SEZIONI GENERALI & ANIMAZIONI
   ========================================================================== */
section { padding: 5rem 2rem; }
.section-inner { max-width: 1200px; margin: 0 auto; }

.section-title {
    text-align: center;
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 3.5rem;
    position: relative;
}

.section-title::after {
    content: ''; 
    display: block; 
    width: 60px; 
    height: 4px;
    background-color: var(--secondary-color); 
    margin: 0.5rem auto 0; 
    border-radius: 2px;
}

.section-subtitle {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.bg-white-section { background-color: var(--text-light); }

.fade-in-delayed {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.5s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   5. LAYOUT ASIMMETRICO, SIDEBAR E CONTENUTI
   ========================================================================== */
.main-container {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
    flex: 1;
}

.layout-container {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3.5rem;
    flex: 1;
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.widget {
    background: var(--text-light);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.widget h3 {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-bottom: 1.2rem;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 0.5rem;
}

.side-nav { list-style: none; }
.side-nav li { margin-bottom: 0.5rem; }
.side-nav a {
    display: block;
    padding: 0.6rem 0.8rem;
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s;
    font-weight: 500;
}

.side-nav a:hover, 
.side-nav li.active a {
    background-color: #ebf8ff;
    color: var(--primary-color);
    padding-left: 1.2rem;
}

.widget-cta {
    background-color: #ebf8ff;
    border: 1px solid var(--secondary-color);
}

.btn-sidebar {
    display: inline-block;
    width: 100%;
    text-align: center;
    padding: 0.75rem;
    margin-top: 1rem;
    background-color: var(--primary-color);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: background 0.3s;
}

.btn-sidebar:hover {
    background-color: #2c5282;
}

.news-list {
    list-style: none;
}

.news-list li {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.news-list li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.news-list a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    display: block;
    margin-bottom: 0.25rem;
}

.news-list a:hover {
    color: var(--secondary-color);
}

.news-list span {
    font-size: 0.8rem;
    color: #718096;
}

.main-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-block, .info-card {
    background: var(--text-light);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.info-block[id] {
    scroll-margin-top: 100px;
}

.info-block h2, .info-card h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.info-block p { color: #4a5568; margin-bottom: 1.5rem; }

.info-block ul, .info-card ul {
    list-style: none;
    padding-left: 0;
    margin: 1rem 0;
}

.info-block ul li, .info-card ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: #4a5568;
}

.info-block ul li::before, .info-card ul li::before {
    content: "•";
    color: var(--secondary-color);
    font-weight: bold;
    font-size: 1.4rem;
    position: absolute;
    left: 0;
    top: -0.2rem;
}



/* Box Avvisi e Grid Genitori */
.alert-box {
    background-color: var(--alert-bg);
    border-left: 5px solid var(--alert-border);
    padding: 1.5rem;
    border-radius: 4px;
    margin-bottom: 3rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.alert-box h3 {
    color: var(--alert-border);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.parent-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 4rem;
}

/* Modulistica / Download */
.download-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.download-item {
    background: var(--text-light);
    padding: 1.2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--border-color);
}

.doc-info h5 {
    color: var(--primary-color);
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.doc-info span {
    font-size: 0.8rem;
    color: #718096;
}

.btn-download {
    padding: 0.5rem 1rem;
    background-color: var(--primary-color);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: background 0.3s;
}

.btn-download:hover {
    background-color: var(--secondary-color);
}

/* Card Eventi (Concerti) */
.event-card {
    background: var(--text-light);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    border: 1px solid var(--border-color);
}

.event-date-badge {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    min-width: 80px;
}

.event-date-badge .day {
    display: block;
    font-size: 1.8rem;
    font-weight: bold;
    line-height: 1;
}

.event-date-badge .month {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.event-details h2 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.event-meta {
    font-size: 0.9rem;
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

/* ==========================================================================
   6. PAGINA CHI SIAMO (STORIA & TEAM)
   ========================================================================== */
.content-section {
    max-width: 1100px;
    margin: 5rem auto;
    padding: 0 2rem;
}

.story-block {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-bottom: 6rem;
}

.story-block.reverse {
    flex-direction: row-reverse;
}

.story-text {
    flex: 1;
}

.story-text h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.story-text p {
    color: #4a5568;
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.story-image {
    flex: 1;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    height: 100%;
}



.story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-section {
    background-color: #edf2f7;
    padding: 5rem 2rem;
}

.team-container {
    max-width: 1100px;
    margin: 0 auto;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
}

.team-card {
    background: var(--text-light);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    text-align: center;
    padding-bottom: 2rem;
}

.team-img-container {
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.team-img-container2 {
    width: 100%;
    height: 380px;
    overflow: hidden;
}

.team-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.team-card:hover .team-img-container img {
    transform: scale(1.05);
}

.team-card h3 {
    color: var(--primary-color);
    margin: 1.5rem 0 0.2rem;
    font-size: 1.3rem;
}

.team-card .role {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.team-card .bio {
    padding: 0 1.5rem;
    color: #718096;
    font-size: 0.95rem;
}

/* ==========================================================================
   7. PAGINA CONTATTI
   ========================================================================== */
.contact-container {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    flex: 1;
}

.contact-info h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.contact-info p {
    margin-bottom: 2rem;
    color: #4a5568;
}

.info-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.info-icon {
    font-size: 1.5rem;
    background: #ebf8ff;
    padding: 0.5rem;
    border-radius: 8px;
    line-height: 1;
}

.info-text h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.info-text p {
    margin: 0;
    font-size: 0.95rem;
}

.map-box {
    width: 100%;
    height: 250px;
    background-color: #e2e8f0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #718096;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.contact-form-box {
    background: var(--text-light);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.contact-form-box h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(99, 179, 237, 0.2);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    width: 100%;
    padding: 0.85rem;
    background-color: var(--primary-color);
    color: var(--text-light);
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-submit:hover {
    background-color: #2c5282;
}

/* ==========================================================================
   8. PAGINA GALLERIA FOTOGRAFICA
   ========================================================================== */
.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 3rem auto 2rem;
    padding: 0 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.6rem 1.5rem;
    background-color: var(--text-light);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    color: var(--text-dark);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover, .filter-btn.active {
    background-color: var(--primary-color);
    color: var(--text-light);
    border-color: var(--primary-color);
    box-shadow: 0 4px 10px rgba(26, 54, 93, 0.2);
}

.gallery-container {
    max-width: 1200px;
    margin: 0 auto 5rem;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    grid-auto-rows: 240px;
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    cursor: pointer;
    display: block;
}

.gallery-item.wide { grid-column: span 2; }
.gallery-item.tall { grid-row: span 2; }

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.gallery-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(26, 54, 93, 0.9), rgba(0,0,0,0.1));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-overlay h3 {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
    transform: translateY(10px);
    transition: transform 0.3s ease;
}

.gallery-overlay span {
    color: var(--secondary-color);
    font-size: 0.85rem;
    font-weight: bold;
    text-transform: uppercase;
}

.gallery-item:hover img { transform: scale(1.08); }
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-item:hover .gallery-overlay h3 { transform: translateY(0); }

/* Gallery Griglia Semplice (Home Page) */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.gallery-grid .gallery-item {
    height: 250px;
}

.gallery-grid .gallery-overlay p {
    color: var(--text-light);
    font-weight: bold;
    font-size: 1.1rem;
    margin: 0;
}

/* ==========================================================================
   9. SEZIONI HOME: FOTO+TESTO, NEWS, ARTICOLI, TABELLE, STATS
   ========================================================================== */
.photo-text-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.photo-text-img img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.photo-text-content h3 { color: var(--primary-color); font-size: 1.75rem; margin-bottom: 1rem; }
.photo-text-content p { color: #4a5568; margin-bottom: 1.5rem; font-size: 1.05rem; }

/* News Grid Modern */
.news-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

.news-card-modern {
    background-color: var(--text-light);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    /* Bordo grigio scuro fisso */
    border: 2px solid #DCDCDC; 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.news-card-modern:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    border-color: var(--secondary-color);
}

.news-img-wrapper {
    position: relative;
    width: 100%;
    height: 210px;
    overflow: hidden;
    background-color: #edf2f7;
}

.news-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card-modern:hover .news-img-wrapper img { transform: scale(1.06); }

.news-badge-category {
    position: absolute;
    top: 1rem; left: 1rem;
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 0.3rem 0.8rem;
    font-size: 0.75rem;
    font-weight: bold;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-content-modern {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-date-text {
    font-size: 0.85rem;
    color: #718096;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

.news-content-modern h4 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.news-content-modern p {
    color: #4a5568;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.news-read-more {
    color: #6495ED; /* Testo bianco ben visibile sullo sfondo blu */
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    margin-top: auto;
    display: inline-block; /* Assicura il corretto funzionamento di margini e click */
}

.news-read-more:hover { 
    color: var(--secondary-color); /* Oppure #e0e0e0 per un bianco/grigio chiaro al passaggio del mouse */
    text-decoration: underline; 
}

/* Articolo In Evidenza */
.featured-article {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    background: var(--text-light);
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin-bottom: 5rem;
}

.featured-article-img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 8px;
}

.featured-article-content h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.featured-article-content p {
    color: #4a5568;
    margin-bottom: 1.5rem;
}

/* Tabelle & Statistiche */
.calendar-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--text-light);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.calendar-table th, .calendar-table td { 
    padding: 1.2rem; 
    text-align: left; 
    border-bottom: 1px solid var(--border-color); 
}

.calendar-table th { 
    background-color: #edf2f7; 
    color: var(--primary-color); 
    font-weight: bold; 
}

.calendar-table tr:hover td { background-color: #f7fafc; }

.status-badge { 
    padding: 0.25rem 0.75rem; 
    border-radius: 50px; 
    font-size: 0.85rem; 
    font-weight: 500; 
}

.status-prova { background: #e2e8f0; color: #4a5568; }
.status-concerto { background: #feebc8; color: #c05621; }

.stats-bg {
    background: linear-gradient(rgba(26, 54, 93, 0.95), rgba(26, 54, 93, 0.95)), url('gallery/IMMAGINI/pclg concorezzo_0026.jpg') center/cover;
    color: var(--text-light);
    text-align: center;
}

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.stat-item h3 { font-size: 3rem; color: var(--secondary-color); margin-bottom: 0.5rem; }
.stat-item p { font-size: 1.1rem; color: #e2e8f0; }

/* ==========================================================================
   10. LAYOUT SIMMETRICO 50/50 & SEZIONI SPECIALE
   ========================================================================== */
.split-container {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.split-card {
    background: var(--text-light);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    border-top: 10px solid var(--secondary-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.split-card.accent-variant {
    border-top-color: var(--accent-color);
}

.split-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.card-image-box {
    position: relative;
    height: 700px;
    overflow: hidden;
}

.card-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Modifiche per Mobile */
@media (max-width: 767px) {
    .card-image-box {
        height: auto; /* Lascia che l'altezza si adatti all'immagine */
    }

    .card-image-box img {
        height: auto;
        object-fit: contain; /* L'immagine viene ridimensionata interamente senza tagli */
    }
}

.card-badge {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    background: rgba(26, 54, 93, 0.9);
    color: var(--text-light);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
}

.card-body {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-body h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.card-body p {
    color: #4a5568;
    margin-bottom: 1.5rem;
}

.feature-list {
    list-style: none;
    margin-bottom: 2rem;
}

.feature-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: #4a5568;
    font-size: 0.95rem;
}

.feature-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

.btn-card {
    margin-top: auto;
    display: inline-block;
    text-align: center;
    padding: 0.8rem 1.5rem;
    background-color: var(--primary-color);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: background 0.3s;
}

.btn-card:hover {
    background-color: #2c5282;
}

/* ==========================================================================
   11. SEZIONE VOLANTINI E LOCANDINE (DOWNLOAD)
   ========================================================================== */
.flyers-section {
    max-width: 1200px;
    margin: 4rem auto 1rem;
    padding: 0 2rem;
}

.flyers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.flyer-card {
    background: var(--text-light);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.flyer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.flyer-preview {
    height: 180px;
    background-color: #edf2f7;
    position: relative;
    overflow: hidden;
}

.flyer-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.flyer-type-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background-color: var(--primary-color);
    color: var(--text-light);
    font-size: 0.75rem;
    font-weight: bold;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    text-transform: uppercase;
}

.flyer-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.flyer-body h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.flyer-body p {
    color: #4a5568;
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
}

.flyer-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
}

.flyer-meta {
    font-size: 0.8rem;
    color: #718096;
}

/* ==========================================================================
   12. FOOTER AVANZATO & COOKIE BANNER
   ========================================================================== */
footer { 
    background-color: var(--primary-color); 
    color: var(--text-light); 
    padding: 4rem 0 0 0; 
    font-size: 0.95rem; 
    margin-top: 5rem;
}

.footer-container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 2rem 3rem 2rem; 
    display: grid; 
    grid-template-columns: 1.5fr 1fr 1.2fr; 
    gap: 4rem; 
}

.footer-column h3 { 
    color: var(--secondary-color); 
    font-size: 1.2rem; 
    margin-bottom: 1.5rem; 
    position: relative;
}

.footer-logo { 
    font-size: 1.4rem; 
    font-weight: bold; 
    color: var(--text-light); 
    text-decoration: none; 
    display: flex; 
    align-items: center; 
    gap: 0.5rem; 
    margin-bottom: 1.2rem; 
}

.footer-about { color: #a0aec0; line-height: 1.6; margin-bottom: 1.5rem; }

.footer-socials { display: flex; gap: 1rem; }
.footer-socials a {
    background-color: rgba(255, 255, 255, 0.08);
    width: 38px; height: 38px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    transition: background 0.3s, transform 0.2s;
    font-size: 1.1rem;
}
.footer-socials a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

.footer-links, .footer-hours { list-style: none; }
.footer-links li { margin-bottom: 0.75rem; }
.footer-links a { color: #a0aec0; text-decoration: none; transition: color 0.3s; }
.footer-links a:hover { color: var(--text-light); padding-left: 2px; }

.footer-info { color: #a0aec0; margin-bottom: 1rem; }
.footer-hours li { 
    color: #a0aec0; 
    margin-bottom: 0.5rem; 
    border-bottom: 1px solid rgba(255, 255, 255, 0.05); 
    padding-bottom: 0.5rem; 
}
.footer-hours li span { color: var(--text-light); font-weight: 500; }

.footer-bottom { 
    border-top: 1px solid rgba(255, 255, 255, 0.08); 
    padding: 1.5rem 2rem; 
    background-color: #122643; 
}

.footer-bottom-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    color: #718096;
    font-size: 0.85rem;
}

.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a { color: #718096; text-decoration: none; transition: color 0.3s; }
.footer-legal a:hover { color: #a0aec0; }

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    width: 100%;
    background-color: #1a202c;
    color: #ffffff;
    padding: 1rem;
    z-index: 9999;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.4s ease, opacity 0.4s ease, visibility 0.4s;
}

.cookie-banner.show {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.cookie-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

.cookie-content p { margin: 0; font-size: 0.9rem; line-height: 1.4; color: #e2e8f0; }
.cookie-content a { color: #63b3ed; text-decoration: underline; }

.cookie-buttons { display: flex; gap: 0.75rem; width: 100%; justify-content: center; }

.btn-cookie {
    flex: 1; max-width: 200px;
    padding: 0.65rem 1rem;
    border: none; border-radius: 6px;
    font-weight: 600; font-size: 0.875rem;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn-cookie:active { transform: scale(0.98); }
.btn-accept { background-color: #1f76bd; color: #ffffff; }
.btn-accept:hover { background-color: #155a92; }
.btn-reject { background-color: #4a5568; color: #ffffff; }
.btn-reject:hover { background-color: #2d3748; }

/* ==========================================================================
   13. MEDIA QUERIES (RESPONSIVE DESIGN)
   ========================================================================== */
@media (min-width: 768px) {
    .cookie-banner { padding: 1.25rem 2rem; }
    .cookie-content { flex-direction: row; justify-content: space-between; text-align: left; }
    .cookie-buttons { width: auto; }
    .btn-cookie { flex: initial; min-width: 120px; }
	
}

@media (max-width: 968px) {
    .photo-text-container { grid-template-columns: 1fr; gap: 3rem; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 3rem; }
    .parent-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .split-container { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 900px) {
    .layout-container { grid-template-columns: 1fr; gap: 2.5rem; }
    .sidebar { order: 2; }
    .contact-container { grid-template-columns: 1fr; gap: 3rem; }
    .gallery-container { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); grid-auto-rows: 200px; }
    .gallery-item.wide { grid-column: span 1; }

    .story-block, 
    .story-block.reverse { 
        flex-direction: column; 
        gap: 2rem; 
    }
    
    .story-image { 
        width: 100%; 
        height: 250px; 
    }
	
}

@media (max-width: 768px) {
    /* Ottimizzazione contenitori principali per recuperare spazio su mobile */
    .main-container,
    .layout-container {
        padding-left: 1rem;
        padding-right: 1rem;
        margin-top: 2rem;
        margin-bottom: 2rem;
    }

    /* Ottimizzazione larghezza e padding per info-block */
    .info-block, 
    .info-card {
        padding: 1.25rem 1rem;
        border-radius: 8px;
        margin-bottom: 1.5rem;
    }

    .info-block p, 
    .info-block ul li {
        font-size: 1rem;
        line-height: 1.5;
    }

    .info-block ul li, 
    .info-card ul li {
        padding-left: 1.2rem;
    }

    /* Navigazione Mobile Hamburger */
    .menu-toggle { 
        display: flex; 
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--text-light);
        flex-direction: column;
        align-items: flex-start;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        display: none;
        padding: 1rem 0;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-item { 
        width: 100%; 
    }

    .nav-link {
        padding: 1rem 2rem;
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }

    /* Submenu Dropdown Mobile */
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background-color: var(--bg-light);
        width: 100%;
        display: none;
        padding-left: 1rem;
    }

    .nav-item:hover .dropdown-menu,
    .nav-item.open .dropdown-menu {
        display: block;
    }

    /* Hero & Typography Responsive */
    .hero-content h1 { 
        font-size: 2.2rem; 
    }

    .hero-content p { 
        font-size: 1rem; 
    }

    .featured-article {
        grid-template-columns: 1fr;
        padding: 1.5rem;
        gap: 1.5rem;
    }

    .featured-article-img {
        height: 220px;
    }

    .event-card {
        flex-direction: column;
        gap: 1rem;
    }

    .event-date-badge {
        width: 100%;
    }

    /* Footer Responsive */
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    section { 
        padding: 3rem 1rem; 
    }

    .main-container,
    .layout-container {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    .info-block, 
    .info-card {
        padding: 1rem 0.85rem;
    }

    .stats-grid { 
        grid-template-columns: 1fr; 
    }

    .download-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .btn-download {
        width: 100%;
        text-align: center;
    }
}

.oval-button {
            display: inline-block;
            padding: 10px 20px;
            background-color:  #e43c5c; /* Colore di sfondo */
            color: white; /* Colore del testo */
            text-align: center;
            border-radius: 50px; /* Raggio per rendere il pulsante ovale */
            text-decoration: none; /* Rimuove la sottolineatura */
            font-size: 16px; /* Dimensione del font */
            transition: background-color 0.3s; /* Transizione per effetto hover */
        }

        .oval-button:hover {
            background-color: #0000ff; /* Colore di sfondo al passaggio del mouse */
			color: white; /* Colore del testo */
        }
  
 
 /* Esempio di menu laterale (Drawer / Off-canvas) */
@media (max-width: 768px) {
  #nav-list {
    position: fixed;
    top: 0;
    right: 0; /* oppure left: 0 a seconda di dove si apre */
    
    /* 1. Imposta la larghezza desiderata (es. 70% dello schermo o un valore fisso in px) */
    width: 75%; 
    max-width: 300px; /* Impedisce che diventi troppo largo su tablet */
    
    height: 100vh;
    background-color: #fff;
    
    /* Nasconde il menu fuori dallo schermo finché non viene attivato */
    transform: translateX(100%); 
    transition: transform 0.3s ease-in-out;
  }

  /* Quando il JS aggiunge la classe 'active' */
  #nav-list.active {
    transform: translateX(0);
  }
}

/* ==========================================
   1. MENU PRINCIPALE (Mobile & Desktop)
   ========================================== */

/* Sfondo del menu mobile (quando aperto) */
#nav-list {
  background-color: #FFFFFF; /* <-- Cambia qui il colore del menu principale */
}

/* Colore del testo dei link del menu */
#nav-list .nav-link {
  color: #000080; /* Testo bianco */
}

/* Colore quando si passa sopra con il mouse (Hover) */
#nav-list .nav-link:hover {
  background-color: #F0F8FF; /* Effetto hover */
}


/* ==========================================
   2. SOTTO-MENU (Dropdown)
   ========================================== */

/* Sfondo del sotto-menu */
.dropdown-menu {
  background-color: #E0FFFF; /* <-- Cambia qui il colore del sotto-menu (un tono più scuro o diverso) */
}

/* Colore del testo dei link nel sotto-menu */
.dropdown-menu a {
  color: #000080; /* Testo leggermente sfumato */
}

/* Effetto hover sui link del sotto-menu */
.dropdown-menu a:hover {
  background-color: #A52A2A;
  color: #E0FFFF;
}

/* Seleziona l'elemento con classe nav-item e active */
.nav-item.active {
  background-color: #e0f2fe; /* Azzurro chiaro di sfondo */
}

/* Se vuoi cambiare il colore del testo/link interno */
.nav-item.active > a {
  color: #7FFFD4; /* Azzurro scuro per contrasto e leggibilità */
}

/* Assicura che le icone di Font Awesome vengano renderizzate correttamente */
.fa-brands, .fa-solid, .fa-regular {
    font-family: "Font Awesome 6 Brands", "Font Awesome 6 Free" !important;
    font-weight: 400;
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1;
}

.fa-solid {
    font-weight: 900 !important;
}