﻿/* =========================================================
   SCUOLA MTB - CSS COMPLETO OTTIMIZZATO DESKTOP + MOBILE
   ========================================================= */


/* =========================================================
   HERO SECTION
   ========================================================= */

.hero-section-scuola {
    position: relative;
    height: 400px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-image: url('https://images.unsplash.com/photo-1544191696-102dbdaeeaa0?w=1600');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-shadow: 0 5px 25px rgba(0,0,0,0.85), 0 0 15px rgba(0,0,0,0.9);
}

.min-vh-50 {
    min-height: 50vh;
}

.hero-section-scuola .lead {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    pointer-events: none;
}


/* =========================================================
   ANIMAZIONI
   ========================================================= */

.animate-fade-in {
    animation: fadeIn 1s ease-in;
}

.animate-fade-in-delay {
    animation: fadeIn 1s ease-in 0.3s both;
}

.animate-fade-in-delay-2 {
    animation: fadeIn 1s ease-in 0.6s both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInStep {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}


/* =========================================================
   FEATURE BOX
   ========================================================= */

.feature-box {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
}

    .feature-box:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    }


/* =========================================================
   RESPONSABILE
   ========================================================= */

.responsabile-avatar {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(102,126,234,0.2);
}

    .responsabile-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }


/* =========================================================
   CATEGORIE
   ========================================================= */

.categoria-card {
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

    .categoria-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 15px 35px rgba(0,0,0,0.15) !important;
        border-left-color: #667eea;
    }

.categoria-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    background: rgba(102,126,234,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* =========================================================
   ACTIVITY ICON
   ========================================================= */

.activity-icon {
    width: 60px;
    height: 60px;
    background: rgba(102,126,234,0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* =========================================================
   EQUIPMENT
   ========================================================= */

.equipment-card {
    transition: all 0.3s ease;
}

    .equipment-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(0,0,0,0.15) !important;
    }

.equipment-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto;
    background: rgba(102,126,234,0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* =========================================================
   ACCORDION
   ========================================================= */

.accordion-button:not(.collapsed) {
    background-color: #667eea;
    color: white;
}

.accordion-button:focus {
    box-shadow: none;
}


/* =========================================================
   PRICING (QUOTE E COSTI)
   ========================================================= */

.pricing-info {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 16px;
}


/* =========================================================
   PROGRESS STEPS MODAL
   ========================================================= */

.progress-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    position: relative;
}

    .progress-steps::before {
        content: '';
        position: absolute;
        top: 20px;
        left: 0;
        right: 0;
        height: 2px;
        background: #dee2e6;
    }

    .progress-steps .step {
        display: flex;
        flex-direction: column;
        align-items: center;
        background: white;
        padding: 0 10px;
    }

    .progress-steps .step-number {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: #dee2e6;
        color: #6c757d;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: bold;
        margin-bottom: 8px;
    }

    .progress-steps .step.active .step-number {
        background: #0066cc;
        color: white;
    }

    .progress-steps .step-label {
        font-size: 12px;
    }

.form-step {
    display: none;
}

    .form-step.active {
        display: block;
        animation: fadeInStep 0.3s ease-in;
    }


/* =========================================================
   FORM CHECK
   ========================================================= */

.form-check-input:checked {
    background-color: #0066cc;
    border-color: #0066cc;
}


/* =========================================================
   SCROLL OFFSET
   ========================================================= */

html {
    scroll-behavior: smooth;
}

#iscrizioni {
    scroll-margin-top: 90px;
}


/* =========================================================
   RESPONSIVE MOBILE FIX
   ========================================================= */

@media (max-width: 768px) {

    /* Disattiva fixed background su mobile */
    .hero-section-scuola {
        background-attachment: scroll;
        height: auto;
        padding: 80px 0 60px 0;
    }

        .hero-section-scuola .display-3 {
            font-size: 2.2rem;
        }

        .hero-section-scuola .lead {
            font-size: 1.15rem;
            line-height: 1.4;
        }

    /* Riduce padding eccessivo delle card */
    .card-body.p-5 {
        padding: 1.5rem !important;
    }

    .pricing-info {
        padding: 1.25rem !important;
    }

        /* Migliora leggibilità testi costi */
        .pricing-info,
        .pricing-info li,
        .pricing-info .small {
            font-size: 1rem;
            line-height: 1.5;
        }

    /* Le colonne diventano piena larghezza */
    .container,
    .row > [class*="col-"] {
        max-width: 100%;
    }
}


/* =========================================================
   EXTRA SMALL DEVICES
   ========================================================= */

@media (max-width: 576px) {

    .hero-section-scuola {
        padding: 70px 0 50px 0;
    }

        .hero-section-scuola .display-3 {
            font-size: 2rem;
        }

    .card {
        width: 100%;
    }

    .pricing-info {
        padding: 1rem !important;
    }
}
