/* ===========================
   EVENTI – STILE DEDICATO
   =========================== */

.page-hero {
    background: linear-gradient(180deg, #f9f9f9 0%, #ffffff 100%);
    text-align: center;
    border-bottom: 1px solid #eaeaea;
}

.page-hero h1 {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--blu-scuro);
    margin-bottom: 0.5em;
}

.page-hero p {
    font-size: 1.2rem;
    color: #555;
    max-width: 800px;
    margin: 0 auto;
}

.evento-content {
    max-width: 1100px;
    margin: 0 auto;
}

.evento-sezione {
    margin-bottom: 2.5em;
    border-bottom: 1px solid #eee;
}

.evento-sezione h2 {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--rosa-scuro);
    margin-bottom: 1em;
}

.evento-sezione p {
    text-align: justify;
    line-height: 1.8;
    font-size: 1.05rem;
    color: #333;
}

.evento-sezione a {
    color: var(--blu-scuro);
    font-weight: 600;
    text-decoration: underline;
}

.evento-sezione a:hover {
    color: var(--rosa-scuro);
}

.evento-img {
    display: flex;
    justify-content: center;
    margin-top: 2em;
}

.evento-img img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Sezione iscrizioni centrata */
.evento-sezione:last-of-type {
    text-align: center;
    border-bottom: none;
    margin-bottom: 1.5em;
    padding-bottom: 0;
}

.evento-sezione:last-of-type p {
    text-align: center !important;
}

/* =========================================================
   PULSANTE "TORNA ALL’ASSOCIAZIONE"
========================================================= */
.back-wrapper {
    margin-top: 30px;
    text-align: center;
}

.btn-back-corsi {
    display: inline-block;
    padding: 12px 26px;
    background: var(--rosa-scuro);
    color: #fff;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    transition: 0.3s ease;
}

.btn-back-corsi:hover {
    background: #8a0000;
    transform: translateY(-2px);
}

/* FIX DEFINITIVO PER I PULSANTI NELLE PAGINE EVENTO */
.evento-sezione a.btn-back-corsi,
.evento-sezione a.btn-evento,
.evento-sezione a.btn-iscrizioni {
    color: #fff !important;
    text-decoration: none !important;
}

/* ===========================
   RESPONSIVE
   =========================== */

@media (max-width: 992px) {
    .page-hero {
        padding: 3em 1em 2.5em;
    }

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

    .evento-content {
        padding: 2.5em 1.2em;
    }

    .evento-sezione {
        margin-bottom: 2.5em;
        padding-bottom: 1.2em;
    }
}

@media (max-width: 768px) {
    .page-hero {
        padding: 2.5em 1em 2em;
    }

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

    .evento-content {
        padding: 2em 1em;
    }

    .evento-sezione h2 {
        font-size: 1.4rem;
    }

    .evento-sezione p {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .page-hero {
        padding: 2em 0.8em 1.8em;
    }

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

    .evento-sezione p {
        font-size: 0.9rem;
    }
}