/* Reset e base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header con nuovo layout */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 10px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    flex-wrap: wrap;
    gap: 20px;
}

.logos {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-shrink: 0;
}

.logos .logo {
    height: 45px;
    width: auto;
}

/* Titolo nell'header INGRANDITO */
.header-title {
    flex: 1;
    display: flex;
    justify-content: center;
    margin: 0 20px;
}

.header-title-img {
    height: 80px;
    /* AUMENTATO da 60px a 80px */
    width: auto;
    max-width: 100%;
}

/* Navigazione */
.nav {
    flex-shrink: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 25px;
}

.nav-link {
    text-decoration: none;
    color: #1F4E79;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 8px 0;
    position: relative;
    font-size: 0.95rem;
}

.nav-link:hover,
.nav-link.active {
    color: #F39C12;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: #F39C12;
}

.nav-toggle {
    display: none;
    font-size: 1.5rem;
    color: #1F4E79;
    cursor: pointer;
}

/* Hero Section con NUOVO layout misto */
.hero {
    margin-top: 120px;
    padding: 60px 0;
    background: linear-gradient(135deg, #1F4E79 0%, #2980B9 100%);
    color: white;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Sezione titolo che occupa tutta la larghezza */
.hero-title-section {
    width: 100%;
    text-align: center;
}

.hero-subtitle {
    font-size: 1.8rem;
    /* RIDOTTO ULTERIORMENTE da 2rem a 1.8rem per stare su una riga */
    font-weight: 700;
    margin-bottom: 25px;
    line-height: 1.2;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.hero-date {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.4rem;
    font-weight: 600;
    color: #F39C12;
    margin-bottom: 0;
}

/* Layout a due colonne sotto il titolo */
.hero-two-columns {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    /* Più spazio al testo, meno all'immagine */
    gap: 50px;
    align-items: center;
}

/* Colonna sinistra: testo */
.hero-text-column {
    order: 1;
}

/* Colonna destra: immagine */
.hero-image-column {
    order: 2;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Descrizione nella colonna di testo (allineata a sinistra) */
.hero-description {
    text-align: left;
    /* Cambiato da center a left */
}

.hero-description .lead {
    font-size: 1.2rem;
    line-height: 1.7;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.95);
}

/* Hero Link Section */
.hero-link-section {
    margin: 30px 0;
    text-align: left;
    /* Allineato a sinistra invece che centrato */
}

.hero-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 15px 25px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.hero-link:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Hero Buttons Section - Due bottoni affiancati */
.hero-buttons-section {
    margin: 30px 0;
    text-align: left;
}

.buttons-container {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.hero-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 15px 25px;
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    min-width: 240px;
    justify-content: center;
}

.btn-download {
    background: rgba(243, 156, 18, 0.8);
    /* Arancione per il download */
    border-color: rgba(243, 156, 18, 0.3);
}

.btn-download:hover {
    background: rgba(243, 156, 18, 1);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(243, 156, 18, 0.4);
    color: white;
    text-decoration: none;
    border-color: rgba(243, 156, 18, 0.5);
}

.btn-program {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-program:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    border-color: rgba(255, 255, 255, 0.4);
}

/* Responsive per i bottoni */
@media (max-width: 768px) {
    .buttons-container {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }

    .hero-button {
        min-width: 100%;
        text-align: center;
        font-size: 1rem;
        padding: 14px 20px;
    }
}

@media (max-width: 480px) {
    .hero-button {
        font-size: 0.95rem;
        padding: 12px 18px;
        gap: 10px;
    }
}


.hero-link i:first-child {
    font-size: 1.2rem;
}

.hero-link i:last-child {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.hero-link:hover i:last-child {
    transform: translateX(3px);
}

.hero-call-out {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: left;
    /* Allineato a sinistra invece che centrato */
}

.hero-call-out h3 {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 20px;
    font-weight: 500;
    line-height: 1.5;
}

.hero-call-out .highlight {
    color: #F39C12;
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 20px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.4;
}

/* Link nel testo highlight */
.hero-call-out .highlight-link {
    color: #FFD700;
    text-decoration: underline;
    text-decoration-color: rgba(255, 215, 0, 0.6);
    text-underline-offset: 3px;
    transition: all 0.3s ease;
}

.hero-call-out .highlight-link:hover {
    color: #FFF;
    text-decoration-color: #FFF;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.8);
}

/* Testo aggiuntivo nel box hero */
.hero-call-out .additional-text {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.05rem;
    line-height: 1.6;
    margin: 0;
    font-weight: 400;
}

/* Sezione Info Cards con dimensioni ridotte per stare su una riga */
.info-cards-section {
    padding: 60px 0;
    /* Ridotto da 80px */
    background: #F8F9FA;
}

.info-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* Forza 4 colonne uguali */
    gap: 20px;
    /* Ridotto da 30px */
    margin: 0 auto;
    max-width: 1200px;
    /* Usa tutta la larghezza disponibile */
}

.info-card {
    background: white;
    padding: 20px 15px;
    /* Ridotto da 30px */
    border-radius: 12px;
    /* Ridotto da 15px */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    /* Ombra più leggera */
    text-align: center;
    transition: transform 0.3s ease;
    border-top: 3px solid #F39C12;
    /* Ridotto da 4px */
    min-height: 160px;
    /* Altezza minima per uniformità */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.info-card:hover {
    transform: translateY(-3px);
    /* Ridotto da -5px */
}

.info-card i {
    font-size: 2.2rem;
    /* Ridotto da 3rem */
    color: #F39C12;
    margin-bottom: 12px;
    /* Ridotto da 20px */
}

.info-card h3 {
    color: #1F4E79;
    margin-bottom: 10px;
    /* Ridotto da 15px */
    font-size: 1.1rem;
    /* Ridotto da 1.3rem */
    line-height: 1.2;
}

.info-card p {
    color: #666;
    line-height: 1.4;
    /* Ridotto da 1.6 */
    margin-bottom: 6px;
    /* Ridotto da 10px */
    font-size: 0.9rem;
    /* Ridotto per compattezza */
}

.info-card p:last-child {
    margin-bottom: 0;
}

.info-card strong {
    color: #1F4E79;
    font-weight: 600;
}

/* Sections con titoli ridotti */
.section-title {
    font-size: 2.5rem;
    color: #1F4E79;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title-small {
    font-size: 2.1rem;
    /* Ridotto da 2.5rem */
    color: #1F4E79;
    text-align: center;
    margin-bottom: 40px;
    /* Ridotto da 50px */
    position: relative;
}

.section-title::after,
.section-title-small::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #F39C12;
}

.section-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

/* Nascondo la sezione description separata */
.description {
    display: none;
}

.lead {
    font-size: 1.3rem;
    line-height: 1.7;
    margin-bottom: 50px;
    color: #555;
}

.call-out {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-left: 5px solid #F39C12;
}

.call-out h3 {
    font-size: 1.3rem;
    color: #1F4E79;
    margin-bottom: 20px;
}

.highlight {
    color: #E74C3C;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
}

/* Chi Siamo */
.chi-siamo {
    padding: 80px 0;
}

.chi-siamo p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    text-align: left;
}

.partner-title {
    font-size: 1.1rem;
    color: #666;
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: 600;
    text-align: center;
}

.partner-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

/* Patrocini */
.patrocini {
    padding: 80px 0;
    background: #F8F9FA;
}

.patrocini-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.patrocinio-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 25px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    text-align: center;
}

.patrocinio-item:hover {
    transform: translateY(-5px);
}

.patrocinio-logo {
    width: 160px;
    height: 160px;
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 10px;
}

.patrocinio-nome {
    font-weight: 600;
    color: #1F4E79;
    font-size: 1.1rem;
    line-height: 1.3;
}

/* Manteniamo il placeholder-logo per compatibilità con altre sezioni */
.placeholder-logo {
    background: white;
    padding: 30px 20px;
    border-radius: 10px;
    text-align: center;
    font-weight: 600;
    color: #1F4E79;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.placeholder-logo:hover {
    transform: translateY(-5px);
}

/* Enti Aderenti con slideshow continuo e drag-to-scroll */
.enti-aderenti {
    padding: 80px 0;
}

.slideshow-container {
    overflow-x: auto;
    /* Cambiato da hidden per permettere lo scroll */
    overflow-y: hidden;
    max-width: 100%;
    position: relative;
    margin-bottom: 30px;
    padding: 40px 0;
    /* Aumentato padding per evitare il taglio dei bordi/ombre */
    /* Spazio per il link sottostante */
    /* Nascondo la scrollbar ma mantengo la funzionalità */
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* Internet Explorer 10+ */
    scroll-behavior: smooth;
    /* Smooth scrolling */
}

.slideshow-container::-webkit-scrollbar {
    display: none;
    /* Webkit browsers (Chrome, Safari, etc.) */
}

.slideshow-wrapper {
    display: flex;
    animation: slideshow-continuous 70s linear infinite;
    width: fit-content;
    /* Aggiungo transizione per quando l'animazione viene messa in pausa */
    transition: transform 0.3s ease;
}

.ente-item {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-right: 30px;
    min-width: 180px;
    text-align: center;
    transition: transform 0.3s ease;
    /* Previeni la selezione del testo durante il drag */
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.ente-item:hover {
    transform: translateY(-5px);
}

.ente-logo-placeholder {
    width: 60px;
    height: 60px;
    background: #F39C12;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.ente-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin-bottom: 5px;
}

.ente-name {
    font-weight: 600;
    color: #1F4E79;
    font-size: 0.9rem;
    line-height: 1.3;
}

/* Enti Link Section */
.enti-link-section {
    text-align: center;
    margin-top: 30px;
}

.enti-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    background: #1F4E79;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(31, 78, 121, 0.3);
}

.enti-link:hover {
    background: #163A5F;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(31, 78, 121, 0.4);
}

.enti-link i:first-child {
    font-size: 1.1rem;
}

.enti-link i:last-child {
    font-size: 0.85rem;
    transition: transform 0.3s ease;
}

.enti-link:hover i:last-child {
    transform: translateX(3px);
}

@keyframes slideshow-continuous {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}



/* Sezione: Parlano dell'evento con box più piccoli */
.parlano-evento {
    padding: 80px 0;
    background: #E8F4FD;
    /* Sfondo leggermente diverso dai patrocini */
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    /* Ridotto da 280px a 220px */
    gap: 25px;
    /* Ridotto da 30px a 25px */
    max-width: 1000px;
    margin: 0 auto;
}

.media-item {
    background: white;
    padding: 20px 18px;
    /* Ridotto da 30px 25px a 20px 18px */
    border-radius: 12px;
    /* Ridotto da 15px a 12px */
    text-align: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    /* Ombra più leggera */
    transition: all 0.3s ease;
    border-left: 3px solid #2196F3;
    /* Ridotto da 4px a 3px */
    position: relative;
}

.media-item:hover {
    transform: translateY(-6px);
    /* Ridotto da -8px a -6px */
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    /* Ombra hover più leggera */
}

.media-icon {
    width: 55px;
    /* Ridotto da 70px a 55px */
    height: 55px;
    /* Ridotto da 70px a 55px */
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px auto;
    /* Ridotto da 20px a 15px */
    color: white;
    font-size: 1.5rem;
    /* Ridotto da 1.8rem a 1.5rem */
}

.media-name {
    font-size: 1.1rem;
    /* Ridotto da 1.2rem a 1.1rem */
    font-weight: 600;
    color: #1F4E79;
    margin-bottom: 12px;
    /* Ridotto da 15px a 12px */
    line-height: 1.3;
}

.media-link {
    margin-top: 12px;
    /* Ridotto da 15px a 12px */
}

.media-link a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    /* Ridotto da 8px a 6px */
    color: #2196F3;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    /* Ridotto da 0.95rem a 0.9rem */
    transition: color 0.3s ease;
}

.media-link a:hover {
    color: #1976D2;
}

.media-link i {
    font-size: 0.8rem;
    /* Ridotto da 0.85rem a 0.8rem */
}

/* Call to Action */
.call-to-action {
    padding: 80px 0;
    background: linear-gradient(135deg, #8BC34A 0%, #4CAF50 100%);
    color: white;
}

.call-to-action .section-title {
    color: white;
}

.call-to-action .section-title-small {
    color: white;
}

.section-intro {
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 50px;
}

.ideas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.idea-category {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.idea-category h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.idea-category ul {
    list-style: none;
}

.idea-category li {
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
}

.idea-category li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #F39C12;
    font-weight: bold;
}

/* QR Code Styles */
.qr-code-container {
    margin-top: 25px;
    display: flex;
    justify-content: center;
}

.qr-code-wrapper {
    text-align: center;
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    max-width: 200px;
}

.qr-code-img {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    margin-bottom: 10px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.qr-code-caption {
    font-size: 0.9rem;
    color: #1F4E79;
    font-weight: 600;
    margin: 0;
}

.contact-cta {
    text-align: center;
}

.contact-cta h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

/* CTA Buttons affiancati */
.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border: none;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #F39C12;
    color: white;
}

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

.btn-secondary {
    background: #1F4E79;
    color: white;
}

.btn-secondary:hover {
    background: #163A5F;
}

/* Footer */
.footer {
    background: #1F4E79;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    margin-bottom: 20px;
    color: #F39C12;
}

.footer-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-form input,
.footer-form textarea {
    padding: 12px;
    border: none;
    border-radius: 5px;
    font-family: inherit;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #F39C12;
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.social-icons a:hover {
    transform: scale(1.1);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
}

/* Stili aggiuntivi per le pagine interne */
.main-content {
    margin-top: 120px;
    padding: 60px 0;
}

.page-hero {
    text-align: center;
    padding: 30px 0;
    background: linear-gradient(135deg, #1F4E79 0%, #2980B9 100%);
    color: white;
    margin-bottom: 40px;
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.page-subtitle {
    font-size: 1.3rem;
    font-weight: 300;
    opacity: 0.9;
}

.content-section {
    max-width: 1000px;
    margin: 0 auto;
}

.content-grid {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.content-block {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-left: 5px solid #F39C12;
}

.content-block h2 {
    color: #1F4E79;
    font-size: 1.8rem;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.content-block h2 i {
    color: #F39C12;
}

.content-block h3 {
    color: #1F4E79;
    font-size: 1.4rem;
    margin: 30px 0 15px 0;
}

.content-block p {
    line-height: 1.7;
    margin-bottom: 20px;
    color: #555;
}

.highlight-box {
    padding: 25px;
    border-radius: 10px;
    margin: 25px 0;
}

.highlight-box.warning {
    background: #FFF3E0;
    border-left: 4px solid #F39C12;
}

.highlight-box.info {
    background: #E3F2FD;
    border-left: 4px solid #2196F3;
}

.highlight-box h3 {
    margin-top: 0;
    color: #1F4E79;
}

.highlight-box ul {
    margin: 15px 0;
    padding-left: 20px;
}

.highlight-box li {
    margin-bottom: 8px;
}

.challenges-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 20px 0;
}

.challenge-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #F8F9FA;
    border-radius: 8px;
}

.challenge-item i {
    color: #E74C3C;
    font-size: 1.2rem;
}

.alternatives-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.alternative-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px;
    background: #F8F9FA;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease;
}

.alternative-item:hover {
    transform: translateY(-5px);
}

.alternative-item i {
    font-size: 2rem;
    color: #8BC34A;
}

.origin-story {
    background: #F8F9FA;
    padding: 25px;
    border-radius: 10px;
    margin: 25px 0;
}

/* FIX: Box blu con testo leggibile - Belluno Stats */
.belluno-stats-fixed {
    background: linear-gradient(135deg, #1F4E79 0%, #2980B9 100%);
    color: white !important;
    /* Forza il colore bianco */
    padding: 30px;
    border-radius: 15px;
    margin: 25px 0;
}

.belluno-stats-fixed h3 {
    color: white !important;
    /* Titolo bianco */
    margin-bottom: 20px;
}

.belluno-stats-fixed p {
    color: rgba(255, 255, 255, 0.95) !important;
    /* Testo bianco con leggera trasparenza */
    line-height: 1.6;
}

.belluno-stats-fixed strong {
    color: #F39C12 !important;
    /* Evidenziazioni in arancione */
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 25px 0;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: #F39C12;
}

.stat-label {
    font-size: 1.1rem;
    margin-top: 5px;
    color: white !important;
    /* Label bianche */
}

.proposal-details {
    background: #F8F9FA;
    padding: 30px;
    border-radius: 10px;
    margin: 25px 0;
}

.proposal-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.proposal-type {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.proposal-type i {
    font-size: 1.5rem;
    color: #8BC34A;
}

.cta-section {
    text-align: center;
    padding: 60px 40px;
    background: linear-gradient(135deg, #8BC34A 0%, #4CAF50 100%);
    color: white;
    border-radius: 20px;
    margin-top: 60px;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Program Page Styles */
.map-container {
    height: 400px;
    background: #F8F9FA;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 60px;
    border: 2px dashed #DDD;
}

.map-placeholder {
    text-align: center;
    color: #999;
}

/* Event Filters */
.events-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 30px;
}

.filter-btn {
    padding: 10px 20px;
    border: 2px solid #1F4E79;
    background: transparent;
    color: #1F4E79;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.filter-btn:hover {
    background: rgba(31, 78, 121, 0.05);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: #1F4E79;
    color: white;
    box-shadow: 0 4px 12px rgba(31, 78, 121, 0.3);
}

.filter-btn i {
    margin-right: 8px;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    /* align-items: start; removed to allow stretching */
}

.event-card {
    background: white;
    border-radius: 12px;
    padding: 15px 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #F39C12;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.event-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.event-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    width: 100%;
}

.event-main-info {
    flex: 1;
}

.event-toggle-icon {
    font-size: 1.2rem;
    color: #F39C12;
    transition: transform 0.3s ease;
    margin-left: 10px;
    width: 25px;
    height: 25px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(243, 156, 18, 0.1);
    border-radius: 50%;
}

.event-card:hover .event-toggle-icon {
    background: rgba(243, 156, 18, 0.2);
}

.event-card.expanded .event-toggle-icon {
    transform: rotate(180deg);
    background: #F39C12;
    color: white;
}

.event-full-details {
    display: none;
    /* Nascosto di default */
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    animation: fadeIn 0.4s ease;
}

.event-card.expanded .event-full-details {
    display: block;
    /* Visibile quando espanso */
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

.event-promoter {
    color: #F39C12;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.event-title {
    font-size: 1.15rem;
    color: #1F4E79;
    margin: 0;
    line-height: 1.3;
}

.event-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.event-details {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.event-detail {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #1F4E79;
    font-weight: 500;
}

.event-detail i {
    color: #F39C12;
}

/* Contact Page Styles */
.contact-intro {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px auto;
}

.contact-methods {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.contact-method {
    text-align: center;
}

.contact-form-container {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 0 auto;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1F4E79;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #E0E0E0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #F39C12;
}

.form-group.required label::after {
    content: ' *';
    color: #E74C3C;
}

/* Status notice per programma eventi */
.status-notice {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #FFF3E0;
    border: 1px solid #F39C12;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 40px;
}

.status-notice i {
    font-size: 2rem;
    color: #F39C12;
    flex-shrink: 0;
}

.status-notice h3 {
    color: #1F4E79;
    margin-bottom: 5px;
}

.status-notice p {
    color: #666;
    margin: 0;
}

/* Participation ideas */
.participation-ideas {
    margin: 30px 0;
}

.ideas-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.idea-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    backdrop-filter: blur(10px);
    text-align: center;
}

.idea-item i {
    font-size: 2rem;
    color: #F39C12;
}

/* Contact page specific styles */
.participation-ways {
    margin: 40px 0;
}

.ways-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.way-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: #F8F9FA;
    border-radius: 10px;
    border-left: 4px solid #F39C12;
}

.way-item i {
    font-size: 1.5rem;
    color: #F39C12;
    flex-shrink: 0;
}

.final-cta {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.btn-large {
    padding: 18px 40px;
    font-size: 1.2rem;
}

.method-icon {
    margin-bottom: 20px;
}

.method-icon i {
    font-size: 3rem;
    color: #F39C12;
}

/* Responsive Design con titolo hero ulteriormente ridotto */
@media (max-width: 1024px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }

    .header-title {
        order: -1;
        margin: 10px 0;
    }

    .header-title-img {
        height: 70px;
        /* RIDOTTO da 80px a 70px per tablet */
    }

    .logos {
        order: 1;
    }

    .nav {
        order: 2;
    }

    .hero {
        margin-top: 140px;
    }

    /* Hero: manteniamo titolo in alto, ma passiamo a layout verticale */
    .hero-two-columns {
        grid-template-columns: 1fr;
        /* Singola colonna su tablet */
        gap: 30px;
    }

    .hero-text-column {
        order: 1;
        text-align: center;
        /* Centrato su tablet */
    }

    .hero-image-column {
        order: 2;
    }

    .hero-description {
        text-align: center;
        /* Centrato su tablet */
    }

    .hero-link-section {
        text-align: center;
        /* Centrato su tablet */
    }

    .hero-call-out {
        text-align: center;
        /* Centrato su tablet */
    }

    .hero-subtitle {
        font-size: 1.7rem;
        /* Leggermente ridotto anche per tablet */
    }

    .hero-img {
        max-width: 450px;
    }

    /* Responsive per hero link */
    .hero-link {
        font-size: 1rem;
        padding: 12px 20px;
    }

    .slideshow-wrapper {
        animation-duration: 20s;
    }

    .section-title-small {
        font-size: 1.9rem;
    }

    .media-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        /* Ridotto per tablet */
    }

    .info-cards {
        grid-template-columns: repeat(2, 1fr);
        /* 2 colonne su tablet */
        gap: 15px;
    }

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

    .qr-code-img {
        width: 100px;
        height: 100px;
    }

    .qr-code-wrapper {
        max-width: 170px;
        padding: 15px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 120px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 120px);
        background: white;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding: 50px 0;
        transition: left 0.3s ease;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: block;
    }

    .header-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .header-title {
        order: 0;
        flex: 1;
        margin: 0 20px;
    }

    .header-title-img {
        height: 55px;
        /* RIDOTTO da 70px a 55px per mobile */
    }

    .logos {
        order: -1;
    }

    .logos .logo {
        height: 35px;
    }

    .nav {
        order: 1;
    }

    .hero {
        margin-top: 100px;
        padding: 40px 0;
    }

    /* Hero mobile: layout verticale completo */
    .hero-two-columns {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero-text-column {
        order: 1;
        text-align: center;
    }

    .hero-image-column {
        order: 2;
    }

    .hero-description {
        text-align: center;
    }

    .hero-link-section {
        text-align: center;
    }

    .hero-call-out {
        text-align: center;
    }

    .hero-subtitle {
        font-size: 1.5rem;
        /* Ridotto da 1.6rem per mobile */
    }

    .hero-date {
        font-size: 1.2rem;
    }

    .hero-img {
        max-width: 350px;
    }

    .hero-call-out .highlight {
        font-size: 1.25rem;
    }

    .hero-call-out h3 {
        font-size: 1rem;
    }

    .hero-call-out .additional-text {
        font-size: 1rem;
    }

    /* Responsive per hero link mobile */
    .hero-link {
        font-size: 0.95rem;
        padding: 10px 18px;
        gap: 8px;
    }

    /* Responsive per enti link mobile */
    .enti-link {
        font-size: 0.9rem;
        padding: 10px 20px;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-title-small {
        font-size: 1.8rem;
    }

    .ente-item {
        min-width: 150px;
    }

    .slideshow-wrapper {
        animation-duration: 25s;
    }

    .media-grid {
        grid-template-columns: 1fr;
        /* Una colonna su mobile */
        gap: 20px;
    }

    .media-item {
        padding: 18px 15px;
        /* Ulteriore riduzione per mobile */
    }

    .info-cards {
        grid-template-columns: 1fr;
        /* 1 colonna su mobile */
        gap: 15px;
    }

    .info-card {
        min-height: auto;
        /* Rimuovi altezza fissa su mobile */
        padding: 18px 12px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .qr-code-img {
        width: 80px;
        height: 80px;
    }

    .qr-code-wrapper {
        max-width: 140px;
        padding: 12px;
    }

    .main-content {
        margin-top: 100px;
        padding: 30px 0;
    }

    .page-hero {
        padding: 40px 0;
    }

    .page-title {
        font-size: 2.2rem;
    }

    .page-subtitle {
        font-size: 1.1rem;
    }

    .content-block {
        padding: 25px;
    }

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

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

    .proposal-types {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-methods {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .event-details {
        flex-direction: column;
        gap: 15px;
    }

    .status-notice {
        flex-direction: column;
        text-align: center;
    }

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

    .ideas-showcase {
        grid-template-columns: repeat(2, 1fr);
    }

    .final-cta {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .header-content {
        padding: 8px 0;
    }

    .header-title-img {
        height: 45px;
        /* RIDOTTO da 55px a 45px per smartphone */
    }

    .logos .logo {
        height: 30px;
    }

    .hero {
        margin-top: 90px;
        padding: 30px 0;
    }

    .hero-subtitle {
        font-size: 1.3rem;
        /* Ridotto da 1.4rem per smartphone */
    }

    .hero-date {
        font-size: 1.1rem;
        flex-direction: column;
        gap: 5px;
    }

    .hero-img {
        max-width: 280px;
    }

    .hero-call-out {
        padding: 20px;
    }

    .hero-call-out h3 {
        font-size: 0.95rem;
    }

    .hero-call-out .highlight {
        font-size: 1.1rem;
    }

    .hero-call-out .additional-text {
        font-size: 0.95rem;
    }

    /* Responsive per hero link smartphone */
    .hero-link {
        font-size: 0.9rem;
        padding: 8px 15px;
        gap: 6px;
    }

    /* Responsive per enti link smartphone */
    .enti-link {
        font-size: 0.85rem;
        padding: 8px 18px;
    }

    .nav-menu {
        top: 90px;
        height: calc(100vh - 90px);
    }

    .section-title {
        font-size: 1.8rem;
    }

    .section-title-small {
        font-size: 1.6rem;
    }

    .call-out {
        padding: 25px;
    }

    .highlight {
        font-size: 1.5rem;
    }

    .ente-item {
        min-width: 130px;
        padding: 15px;
    }

    .ente-logo-placeholder {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .ente-name {
        font-size: 0.8rem;
    }

    .slideshow-wrapper {
        animation-duration: 35s;
    }

    .media-item {
        padding: 16px 12px;
        /* Minimo per smartphone */
    }

    .media-icon {
        width: 45px;
        /* Ulteriore riduzione */
        height: 45px;
        font-size: 1.3rem;
    }

    .media-name {
        font-size: 1rem;
        /* Ulteriore riduzione */
    }

    .info-cards {
        gap: 12px;
    }

    .info-card {
        padding: 15px 10px;
        /* Minimo per smartphone */
    }

    .info-card i {
        font-size: 2rem;
        /* Ridotto ulteriormente */
        margin-bottom: 8px;
    }

    .info-card h3 {
        font-size: 1rem;
        /* Ridotto per smartphone */
    }

    .info-card p {
        font-size: 0.85rem;
        /* Ulteriore riduzione */
    }

    .qr-code-img {
        width: 70px;
        height: 70px;
    }

    .qr-code-wrapper {
        max-width: 120px;
        padding: 10px;
    }

    .qr-code-caption {
        font-size: 0.8rem;
    }

    .main-content {
        margin-top: 90px;
        padding: 20px 0;
    }

    .page-hero {
        padding: 30px 0;
    }

    .content-block {
        padding: 20px;
    }

    .proposal-types {
        grid-template-columns: 1fr;
    }

    .cta-section {
        padding: 40px 20px;
    }

    .ideas-showcase {
        grid-template-columns: 1fr;
    }
}





/* Stili specifici per la pagina programma.html - Enti ridotti */
.enti-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    /* Aumentato da 140px a 160px */
    gap: 25px;
    /* Aumentato da 20px a 25px */
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.enti-grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    /* Aumentato da 12px a 15px */
    padding: 20px;
    /* Aumentato da 15px a 20px */
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease;
    border-top: 3px solid #F39C12;
    min-height: 160px;
    /* Aumentato da 120px a 160px */
}

.enti-grid-item:hover {
    transform: translateY(-3px);
}

.enti-grid-item .ente-logo-placeholder {
    width: 90px;
    /* Aumentato da 50px a 90px */
    height: 90px;
    /* Aumentato da 50px a 90px */
    background: #F39C12;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.enti-grid-item .ente-name {
    font-weight: 600;
    color: #1F4E79;
    font-size: 0.95rem;
    /* Aumentato da 0.85rem a 0.95rem */
    line-height: 1.3;
}

/* Responsive per enti-grid */
@media (max-width: 768px) {
    .enti-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        /* Aumentato mobile */
        gap: 20px;
    }

    .enti-grid-item {
        padding: 15px;
        min-height: 140px;
    }

    .enti-grid-item .ente-logo-placeholder {
        width: 75px;
        /* Aumentato da 45px a 75px */
        height: 75px;
        /* Aumentato da 45px a 75px */
        font-size: 1.2rem;
    }

    .enti-grid-item .ente-name {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .enti-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 15px;
    }

    .enti-grid-item {
        padding: 12px;
        min-height: 120px;
    }

    .enti-grid-item .ente-logo-placeholder {
        width: 60px;
        /* Aumentato da 40px a 60px */
        height: 60px;
        /* Aumentato da 40px a 60px */
        font-size: 1.1rem;
    }

    .enti-grid-item .ente-name {
        font-size: 0.85rem;
    }
}

/* ========================================
   AGGIUNGI QUESTI STILI ALLA FINE DI styles.css
   ======================================== */

/* Link ai Patti nella sezione Chi Siamo */
.patto-link {
    color: #F39C12;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px dotted #F39C12;
    transition: all 0.3s ease;
    cursor: pointer;
}

.patto-link:hover {
    color: #E67E22;
    border-bottom-color: #E67E22;
    border-bottom-style: solid;
}

/* Modal PDF Overlay */
.pdf-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pdf-modal.active {
    display: flex;
    opacity: 1;
}

/* Modal Content Container */
.pdf-modal-content {
    background: white;
    border-radius: 15px;
    width: 100%;
    max-width: 900px;
    height: 90vh;
    max-height: 800px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.pdf-modal.active .pdf-modal-content {
    transform: scale(1);
}

/* Modal Header */
.pdf-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: linear-gradient(135deg, #1F4E79 0%, #2980B9 100%);
    color: white;
    border-radius: 15px 15px 0 0;
}

.pdf-modal-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.pdf-modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.8rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    line-height: 1;
}

.pdf-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* Modal Body - PDF Viewer */
.pdf-modal-body {
    flex: 1;
    padding: 0;
    overflow: hidden;
    background: #f5f5f5;
}

.pdf-modal-body iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Modal Footer */
.pdf-modal-footer {
    padding: 15px 25px;
    background: #f8f9fa;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: center;
    gap: 15px;
    border-radius: 0 0 15px 15px;
}

.pdf-modal-footer .btn {
    padding: 12px 25px;
    font-size: 1rem;
}

/* Responsive Modal */
@media (max-width: 768px) {
    .pdf-modal {
        padding: 10px;
    }

    .pdf-modal-content {
        height: 95vh;
        max-height: none;
        border-radius: 10px;
    }

    .pdf-modal-header {
        padding: 15px 20px;
        border-radius: 10px 10px 0 0;
    }

    .pdf-modal-header h3 {
        font-size: 1.1rem;
    }

    .pdf-modal-close {
        width: 35px;
        height: 35px;
        font-size: 1.5rem;
    }

    .pdf-modal-footer {
        padding: 12px 20px;
        border-radius: 0 0 10px 10px;
    }

    .pdf-modal-footer .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .pdf-modal-header h3 {
        font-size: 1rem;
    }

    .pdf-modal-footer .btn {
        padding: 8px 15px;
        font-size: 0.85rem;
    }
}

/*************************************************/
.form-message {
    border-radius: 5px;
    font-weight: 500;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

/* Audio Modal Specific Styles */
.audio-modal-content {
    min-height: 250px;
    height: auto !important;
    /* Allow modal to wrap its content */
    max-height: 95vh;
    max-width: 800px !important;
}

/* Large content variant for full pages like RaiPlaySound */
.audio-modal-content.large-audio-content {
    max-width: 1000px !important;
    /* Slightly wider to give the player room */
}

.audio-modal-content.large-audio-content .pdf-modal-body {
    padding: 0 !important;
    /* Remove padding to allow content to fill width */
    display: block !important;
    background: #111 !important;
    /* Dark background to match the player and eliminate white gaps */
}

.audio-modal-content.large-audio-content #audio-container {
    width: 100%;
    height: 460px;
    /* Match the iframe height */
}

.audio-modal-content.large-audio-content iframe {
    width: 100% !important;
    height: 100% !important;
    display: block;
}

.audio-modal-content .pdf-modal-body {
    overflow: auto;
    /* Allow scrolling if content is still too big */
}

/* Fix scroll position for anchor links to account for fixed header */
#aderenti,
#mappa,
#eventi {
    scroll-margin-top: 140px;
}

/* ========================================
   MAPPA STYLES
   ======================================== */
#map {
    height: 500px;
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    /* z-index removed to avoid stacking context issues */
}

.map-container {
    position: relative;
    width: 100%;
    margin-top: 40px;
    margin-bottom: 100px;
    z-index: 0;
}