.page-hero {
    background: linear-gradient(to bottom, #f7e0ea, #f3d2e2);
    padding: 10px;
    text-align: center;
}

/* Contenitore interno */
.page-hero .hero-inner {
    width: 90%;
    max-width: 900px;
    margin: 0 auto;
}

/* Titolo */
.page-hero h1 {
    font-family: "Quicksand", sans-serif;
    font-size: 2.4rem;
    margin-bottom: 12px;
}

/* Paragrafo */
.page-hero p {
    font-size: 1.15rem;
    color: #444;
    line-height: 1.6;
}

/* Mobile */
@media (max-width: 600px) {
    .page-hero {
        padding: 10px;
    }

    .page-hero h1 {
        font-size: 1.9rem;
    }

    .page-hero p {
        font-size: 1.05rem;
    }
}

/* Griglia corsi bambini */
.galleria-corsi {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
    margin-top: 40px;
}

/* Tablet */
@media (max-width: 900px) {
    .galleria-corsi {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .galleria-corsi {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 0 20px;
        /* distacco laterale */
    }
}

/* Card corso */
.corso-card {
    display: block;
    padding-bottom: 10px;
    text-align: center;
    color: #111;
    font-family: "Quicksand", sans-serif;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.35s ease;
}

/* Immagini con stile uniforme */
.corso-card img {
    width: 100%;
    margin: auto;
    display: block;

    border-radius: 14px;
    background: #fff;
    padding: 6px;
    border: 1px solid rgba(231, 177, 200, 0.45);

    box-shadow:
        0 3px 6px rgba(0, 0, 0, 0.12),
        0 8px 18px rgba(0, 0, 0, 0.10),
        0 14px 28px rgba(0, 0, 0, 0.08);

    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

/* Hover premium */
.corso-card:hover img {
    transform: translateY(-10px) scale(1.03);
    box-shadow:
        0 6px 12px rgba(0, 0, 0, 0.18),
        0 14px 28px rgba(0, 0, 0, 0.15),
        0 20px 40px rgba(0, 0, 0, 0.12);
}

.corso-card h3 {
    margin-top: 12px;
    font-size: 1.2rem;
    color: #c05a7a;
}

.titolo-sezione {
    font-family: "Playfair Display", serif;
    font-size: 2rem;
    color: var(--rosa-scuro);
    text-align: center;
    margin-bottom: 20px;
}

/* Box promo coupon corsi-ba */
.box-prenotazione {
    border: 2px solid #a3a5a5;
    max-width: 600px;
    margin: 20px auto;
    padding: 20px 10px;
    background: whitesmoke;
    border-radius: 0.5em;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    text-align: center;
    font-family: 'Segoe UI', sans-serif;
    color: #333;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-prenota {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 28px;
    background: #4a90e2;
    color: #fff;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.btn-prenota:hover {
    background: #357ac9;
}

/* Hover premium (solo desktop) */
@media (min-width: 900px) {
    .box-prenotazione:hover {
        transform: translateY(-6px);
        box-shadow:
            0 10px 18px rgba(0, 0, 0, 0.14),
            0 20px 38px rgba(0, 0, 0, 0.12),
            0 28px 55px rgba(0, 0, 0, 0.10);
    }
}

/* MOBILE FIX: evita che tocchi i bordi */
@media (max-width: 600px) {
    .box-prenotazione {
        margin: 50px 20px;
        /* distacco laterale */
        padding: 28px 20px;
        /* padding più contenuto */
        max-width: 100%;
        /* si adatta allo schermo */
    }
}

/* Contenitore generale della sezione */
.pagina-corsi-bambini {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* Card corso */
.corso-card {
    text-align: center;
    color: #111;
    font-family: "Quicksand", sans-serif;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.35s ease;
}

/* Hover premium */
@media (min-width: 900px) {
    .corso-card:hover img {
        transform: translateY(-10px) scale(1.03);
        box-shadow:
            0 6px 12px rgba(0, 0, 0, 0.18),
            0 14px 28px rgba(0, 0, 0, 0.15),
            0 20px 40px rgba(0, 0, 0, 0.12);
    }
}