/* ==========================================================================
   1. STILI GLOBALI, VARIABILI E RESET (Aggiornato con Arancione Olistico)
   ========================================================================== */
:root {
    --primary: #E2723B;     /* Arancione Caldo/Terracotta olistico per la struttura e titoli */
    --bg-light: #FAF9F6;    /* Bianco panna/zen rilassante per gli sfondi */
    --text-dark: #2F3E22;   /* Verde scurissimo per i testi principali */
    --text-light: #5A6551;  /* Verde grigiastro per i testi secondari */
    --white: #FFFFFF;
    
    /* --- NUOVI TONI ARANCIONI --- */
    --accent: #E2723B;       /* Arancione Caldo/Terracotta per bottoni primari e icone */
    --accent-light: #FFF0E8; /* Arancione chiarissimo sfumato per sfondi e badge */
    --accent-hover: #C85A28; /* Arancione più scuro per gli effetti al passaggio del mouse */
}

* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
}

html {
    scroll-behavior: smooth; 
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { 
    font-family: 'Playfair Display', serif; 
    font-weight: 600; 
}

a { 
    text-decoration: none; 
    color: inherit; 
}

img {
    max-width: 100%;
    height: auto;
}

.container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 20px; 
}

/* ==========================================================================
   2. COMPONENTI INTERATTIVI (Pulsanti con focus Arancione)
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 600; /* Testo leggermente più marcato per l'arancione */
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
}

/* Il bottone principale ora è l'Arancione Caldo che salta subito all'occhio */
.btn-primary { 
    background-color: var(--accent); 
    color: var(--white); 
}

:hover.btn-primary { 
    background-color: var(--accent-hover);
    opacity: 1;
    transform: translateY(-2px); 
}

/* Il bottone secondario mantiene l'eleganza del verde salvia */
.btn-secondary { 
    border: 2px solid var(--primary); 
    color: var(--primary); 
}

:hover.btn-secondary { 
    background-color: var(--primary); 
    color: var(--white); 
}

/* ==========================================================================
   HEADER E NAVIGAZIONE
   ========================================================================== */
header { 
    background: var(--white); 
    padding: 20px 0; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.02); 
    position: sticky; 
    top: 0; 
    z-index: 999;
}

.nav-container { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

.logo { 
    font-size: 1.4rem; 
    color: var(--primary); 
}

.nav-links { 
    display: flex; 
    gap: 25px; 
    list-style: none; 
}

.nav-links a {
    transition: color 0.2s ease;
}

.nav-links a:hover { 
    color: var(--primary); 
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
    padding: 120px 0;
    text-align: center;
    background: linear-gradient(rgba(250,249,246,0.85), rgba(250,249,246,0.92)), 
                url('https://unsplash.com') center/cover no-repeat;
}

.hero h1 { 
    font-size: 3rem; 
    margin-bottom: 20px; 
    color: var(--text-dark);
}

.hero p { 
    font-size: 1.2rem; 
    color: var(--text-light); 
    max-width: 600px; 
    margin: 0 auto 35px; 
}
.hero-subtext {
    margin-top: -15px;
    margin-bottom: 40px;
    font-size: 1rem;
    color: var(--primary);
    font-style: italic;
    background-color: rgba(85, 107, 47, 0.05); /* Sfondo leggerissimo verde salvia */
    display: inline-block;
    padding: 10px 20px;
    border-radius: 20px;
}
.hero-ctas { 
    display: flex; 
    justify-content: center; 
    gap: 15px; 
}

/* ==========================================================================
   SEZIONE DISCIPLINE (CARD CON IMMAGINI)
   ========================================================================== */
.disciplines { 
    padding: 100px 0; 
    background: var(--white); 
    text-align: center; 
}

.disciplines h2 { 
    font-size: 2.2rem; 
    margin-bottom: 50px; 
}

.grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 40px; 
}

.card { 
    background: var(--bg-light); 
    padding: 0 0 35px 0; 
    border-radius: 16px; 
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s ease; 
    overflow: hidden; 
    text-align: left; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

:hover.card { 
    transform: translateY(-8px); 
    box-shadow: 0 12px 30px rgba(85, 107, 47, 0.08);
}

.card-img { 
    width: 100%; 
    height: 240px; 
    object-fit: cover; 
    margin-bottom: 25px; 
}

.card h3 { 
    font-size: 1.5rem; 
    margin: 0 25px 12px 25px; 
    color: var(--primary); 
}

.card p { 
    margin: 0 25px; 
    color: var(--text-light); 
    font-size: 0.95rem; 
}

/* ==========================================================================
   SEZIONE CALENDARIO (CONSORZIO IMMAGINE)
   ========================================================================== */
.schedule { 
    padding: 100px 0; 
    text-align: center; 
}

.schedule h2 { 
    font-size: 2.2rem; 
    margin-bottom: 15px; 
}

.schedule p { 
    color: var(--text-light); 
    margin-bottom: 40px; 
}

.image-container { 
    max-width: 850px; 
    margin: 0 auto; 
    background: var(--white); 
    padding: 20px; 
    border-radius: 16px; 
    box-shadow: 0 10px 40px rgba(0,0,0,0.04);
}

.schedule-img { 
    width: 100%; 
    height: auto; 
    display: block; 
    border-radius: 8px; 
}

/* ==========================================================================
   FOOTER E CONTATTI
   ========================================================================== */
footer { 
    background: #e88132;     
    color: #000000; 
    font-size: 0.95rem; 
    position: relative; 
    z-index: 1; padding-left:0; padding-right:0; padding-top:80px; padding-bottom:30px 
}

.footer-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 50px; 
    margin-bottom: 50px; 
}

.footer-col h4 { 
    color: var(--white); 
    margin-bottom: 25px; 
    font-size: 1.15rem; 
    letter-spacing: 0.5px;
}

.footer-col p, .footer-col li { 
    margin-bottom: 12px; 
    list-style: none; 
}

.footer-bottom {
    background: #1f2913;      
    text-align: center; 
    padding-top: 40px; 
    border-top: 1px solid #334224; 
    font-size: 0.85rem; 
    color: #8C9A83;
}

/* ==========================================================================
   MEDIA QUERIES (RESPONSIVE SMARTPHONE)
   ========================================================================== */
@media (max-width: 768px) {
    .nav-links { 
        display: none; /* Nasconde il menu esteso su mobile */
    }
    
    .hero {
        padding: 80px 0;
    }
    
    .hero h1 { 
        font-size: 2.2rem; 
    }
    
    .hero-ctas { 
        flex-direction: column; 
        gap: 12px; 
    }
    
    .hero-ctas .btn {
        width: 100%;
    }
    
    .disciplines {
        padding: 60px 0;
    }
    
    .grid {
        gap: 25px;
    }
    
    /* Trasforma il bottone WhatsApp in un cerchio compatto su mobile */
    .whatsapp-float { 
        padding: 16px !important; 
        border-radius: 50% !important; 
        bottom: 20px !important; 
        right: 20px !important; 
    }
    
    .whatsapp-float span { 
        display: none; /* Rimuove la scritta "Contattaci" */
    }
    
    .image-container { 
        padding: 8px; 
    }
}
/* ==========================================================================
   SEZIONE INSEGNANTI
   ========================================================================== */
.teachers {
    padding: 100px 0;
    background-color: var(--bg-light);
    text-align: center;
}

.teachers h2 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.teachers .subtitle {
    color: var(--text-light);
    margin-bottom: 50px;
    font-size: 1.05rem;
}

.teachers-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap; /* Permette alle schede in eccesso di scendere a capo ordinatamente */
}

.teacher-card {
    background: var(--white);
    padding: 35px 25px;
    border-radius: 16px;
    width: 100%;
    max-width: 360px; /* Dimensione ideale per mostrare 3 elementi per riga su schermi grandi */
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
    transition: transform 0.3s ease;
    text-align: center;
}

:hover.teacher-card {
    transform: translateY(-5px);
}

.teacher-img-wrapper {
    width: 150px;
    height: 150px;
    margin: 0 auto 25px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary);
}

.teacher-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.teacher-card h3 {
    font-size: 1.6rem;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.teacher-card .role {
    display: block;
    color: var(--primary);
    font-weight: 500;
    font-size: 0.95rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.teacher-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Adattamento Mobile per Insegnanti */
@media (max-width: 768px) {
    .teachers {
        padding: 60px 0;
    }
    .teachers-grid {
        gap: 30px;
    }
}
/* ==========================================================================
   SEZIONE CONTATTI E MAPPA
   ========================================================================== */
.contact-section {
    padding: 100px 0;
    background-color: var(--white);
    text-align: center;
}

.contact-section h2 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.contact-section .subtitle {
    color: var(--text-light);
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 50px;
    text-align: left;
    align-items: center;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.info-item .icon {
    font-size: 1.5rem;
    background-color: rgba(85, 107, 47, 0.08);
    padding: 12px;
    border-radius: 50%;
    line-height: 1;
}

.info-item h4 {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 5px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

.info-item p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.contact-map {
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-radius: 12px;
    overflow: hidden;
}

/* Ottimizzazione Mobile per Contatti */
@media (max-width: 768px) {
    .contact-section {
        padding: 60px 0;
    }
    .contact-grid {
        gap: 35px;
    }
}
/* ==========================================================================
   SEZIONE FINALE: TESSERAMENTO E ISCRIZIONI
   ========================================================================== */
/* ==========================================================================
   AGGIORNAMENTO BLOCCO PAYPAL (SOSTITUISCE IL FORM)
   ========================================================================== */
.paypal-details {
    background: var(--white);
    padding: 45px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
    border: 1px solid #EAE8E4;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.paypal-notice {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.6;
}

.paypal-instructions {
    background-color: #F5F7FA;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    border: 1px solid #E6E9ED;
}

.paypal-instructions h5 {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: #1A3B8B; /* Blu istituzionale PayPal leggero */
    margin-bottom: 10px;
}

.paypal-steps {
    padding-left: 20px;
    font-size: 0.85rem;
    color: var(--text-dark);
}

.paypal-steps li {
    margin-bottom: 8px;
    line-height: 1.4;
}

/* Pulsante specifico con i colori ufficiali di PayPal */
.btn-paypal {
    background-color: #0070BA; /* Blu PayPal */
    color: var(--white) !important;
    font-weight: 600;
    font-size: 1rem;
    padding: 14px 32px;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, transform 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 112, 186, 0.2);
    width: 100%;
}

:hover.btn-paypal {
    background-color: #005EA6;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 112, 186, 0.3);
}

/* Adattamento per i dispositivi mobili */
@media (max-width: 768px) {
    .paypal-details {
        padding: 30px 20px;
    }
}

/* Griglia Passi Iniziali */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 70px;
}

.step-card {
    background: var(--white);
    padding: 35px 25px;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.01);
    position: relative;
}

.step-number {
    width: 40px;
    height: 40px;
    background-color: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin: 0 auto 20px auto;
}

.step-card h4 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
}

.step-card p {
    font-size: 0.95rem;
    color: var(--text-light);
}

/* Blocco Unito Iban e Form */
.bank-form-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    text-align: left;
}

.bank-details, .quick-form {
    background: var(--white);
    padding: 45px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
}

.bank-details h3, .quick-form h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.bank-notice {
    font-size: 0.9rem;
    color: #A0522D;
    background-color: #FFF4EB;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 25px;
    line-height: 1.5;
}

.iban-box {
    background: #F4F6F2;
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid var(--primary);
    margin-bottom: 25px;
}

.iban-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 500;
    margin-bottom: 4px;
}

.iban-code {
    font-size: 1rem;
    color: var(--text-dark);
    font-family: monospace;
    word-break: break-all;
}

.legal-bullets {
    list-style: none;
}

.legal-bullets li {
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: var(--text-light);
    position: relative;
    padding-left: 15px;
}

.legal-bullets li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary);
}

/* Campi del Form */
.form-group {
    margin-bottom: 20px;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #E3E1DC;
    background-color: var(--bg-light);
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: var(--text-dark);
    outline: none;
    transition: border-color 0.2s;
}

.form-group input:focus, .form-group select:focus {
    border-color: var(--primary);
}

.file-label {
    display: block;
    padding: 14px;
    border: 2px dashed #D2B48C;
    background-color: #FAF6F0;
    text-align: center;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #8B7355;
    transition: opacity 0.2s;
}

:hover.file-label {
    opacity: 0.85;
}

.btn-block {
    width: 100%;
}

/* Ottimizzazione Mobile per Iscrizioni */
@media (max-width: 768px) {
    .enrollment-section {
        padding: 60px 0;
    }
    .bank-details, .quick-form {
        padding: 30px 20px;
    }
    .steps-grid {
        gap: 20px;
        margin-bottom: 40px;
    }
}
/* ==========================================================================
   BLOCCO NORMATIVO SAFEGUARDING (FOOTER)
   ========================================================================== */
.safeguarding-badge {
    margin-top: 25px;
    background-color: rgba(255, 255, 255, 0.04);
    padding: 18px;
    border-radius: 10px;
    border-left: 3px solid var(--accent);
    text-align: left;
}

.safeguarding-badge h5 {
    color: var(--white);
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    margin-bottom: 8px;
}

.safeguarding-badge p {
    font-size: 0.8rem !important;
    line-height: 1.4 !important;
    margin-bottom: 6px !important;
    color: #BCC5B6 !important;
}

.safeguarding-links a {
    transition: background 0.2s ease, color 0.2s ease;
}

.safeguarding-links a:hover {
    background-color: var(--white) !important;
    color: var(--text-dark) !important;
}
/* ==========================================================================
   SEZIONE WIDGET FACEBOOK
   ========================================================================== */
.facebook-section {
    padding: 100px 0;
    background-color: var(--bg-light);
    text-align: center;
}

.facebook-section h2 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.facebook-section .subtitle {
    color: var(--text-light);
    margin-bottom: 40px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.fb-widget-container {
    max-width: 500px;
    margin: 0 auto;
    background: var(--white);
    padding: 10px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    display: flex;
    justify-content: center;
}

.fb-widget-container iframe {
    width: 100%;
    max-width: 500px;
}

/* Ottimizzazione per Schermi Mobile */
@media (max-width: 768px) {
    .facebook-section {
        padding: 60px 0;
    }
    .fb-widget-container {
        padding: 5px;
    }
}
/* ==========================================================================
   SEZIONE COMUNICAZIONI AI SOCI E NEWS
   ========================================================================== */
.news-section {
    padding: 100px 0;
    background-color: var(--white);
    text-align: center;
}

.news-section h2 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.news-section .subtitle {
    color: var(--text-light);
    margin-bottom: 50px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    text-align: left;
}

.news-card {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 4px 15px rgba(0,0,0,0.01);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #EAE8E4;
}

:hover.news-card {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.04);
}

/* Evidenziazione per comunicazioni urgenti del consiglio direttivo */
.news-card.important {
    border-left: 4px solid #A0522D; 
    background-color: #FFFDFB;
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.news-badge {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 0.5px;
}

.badge-urgent { background-color: #FFE4CD; color: #A0522D; }
.badge-info { background-color: #E2EFCB; color: #436311; }
.badge-service { background-color: #E6EEFA; color: #1A428A; }
.badge-document { background-color: #E2723B; color: #FFFF00; }

.news-date {
    font-size: 0.8rem;
    color: var(--text-light);
}

.news-card h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.news-card p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.6;
}

.news-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--primary);
    transition: opacity 0.2s;
    margin-top: auto;
}

:hover.news-link {
    text-decoration: underline;
    opacity: 0.8;
}

/* Ottimizzazione Mobile per News */
@media (max-width: 768px) {
    .news-section {
        padding: 60px 0;
    }
    .news-card {
        padding: 25px;
    }
}
/* ==========================================================================
   COOKIE BANNER & PRIVACY RESILIENTE
   ========================================================================== */
.cookie-banner {
    display: none; /* Gestito via JavaScript */
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: 0 -10px 30px rgba(0,0,0,0.1);
    z-index: 9999999; /* Superiore anche al tasto di WhatsApp */
    padding: 20px 0;
    border-top: 2px solid var(--primary);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.cookie-content p {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.5;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: background 0.2s;
}

.cookie-btn.accept {
    background-color: var(--primary);
    color: var(--white);
}

.cookie-btn.reject {
    background-color: #EAE8E4;
    color: var(--text-dark);
}

/* Placeholder per Mappe e Facebook bloccati prima del consenso */
.cookie-placeholder {
    width: 100%;
    height: 350px;
    background-color: #F4F3EF;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
    padding: 20px;
    text-align: center;
    border-radius: 12px;
    border: 1px dashed var(--accent);
}

.cookie-placeholder p {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Adattamento Mobile per il Cookie Banner */
@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    .cookie-buttons {
        width: 100%;
    }
    .cookie-btn {
        flex: 1;
        text-align: center;
    }
}