/* Wrapper generale */
.corso-wrapper {
    display: flex;
    gap: 50px;
    width: 90%;
    max-width: 1200px;
    margin: 70px auto;
}

/* Contenitore del carosello */
.corso-gallery {
    width: 45%;
    aspect-ratio: 4 / 3;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    background: #fff;

    /* Bordo più marcato e definito */
    border: 3px solid rgba(200, 120, 150, 0.55);
    /* rosa Le Rêve più deciso */

    /* Ombra 3D più profonda e stratificata */
    box-shadow:
        0 8px 16px rgba(0, 0, 0, 0.12),
        0 18px 36px rgba(0, 0, 0, 0.12),
        0 28px 56px rgba(0, 0, 0, 0.10),
        0 40px 80px rgba(0, 0, 0, 0.08);

    /* Effetto 3D sobrio */
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.corso-gallery:hover {
    transform: translateY(-10px);
    /* sollevamento più evidente */
    border-color: rgba(200, 120, 150, 0.75);
    /* bordo ancora più intenso */

    box-shadow:
        0 14px 28px rgba(0, 0, 0, 0.16),
        0 26px 52px rgba(0, 0, 0, 0.14),
        0 36px 72px rgba(0, 0, 0, 0.12),
        0 50px 100px rgba(0, 0, 0, 0.10);
}

/* Slide Swiper */
.corso-gallery .swiper-slide {
    width: 100%;
    height: 100%;
}

/* Immagini */
.corso-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Testo */
.corso-content {
    width: 50%;
    font-family: "Quicksand", sans-serif;
    line-height: 1.55;
    font-size: 1.05rem;
    color: #2a2a2a;
}

.corso-content p {
    text-align: justify;
    font-weight: 500;
}

.corso-content h1 {
    color: #c86a8a;
    font-weight: 700;
    font-size: 2.4rem;
    color: var(--rosa-scuro);
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.corso-info {
    background: #f7f3f5;
    padding: 18px 22px;
    border-radius: 12px;
    border: 1px solid rgba(200, 120, 150, 0.35);
    margin-bottom: 25px;
    font-size: 1rem;
    line-height: 1.5;
}

.corso-desc {
    margin-bottom: 18px;
    line-height: 1.6;
    color: #444;
}

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

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

/* Responsive */
@media (max-width: 900px) {
    .corso-wrapper {
        flex-direction: column;
        gap: 30px;
    }
}

@media (max-width: 900px) {
    .corso-content {
        width: 100%;
        font-size: 1rem;
    }

    .corso-content p {
        text-align: left;
        /* più leggibile su mobile */
    }
}

@media (max-width: 900px) {
    .corso-gallery {
        width: 100%;
        border-radius: 12px;
    }
}

.swiper-pagination-bullet {
    background: #e7b1c8;
    /* rosa Le Rêve */
    opacity: 0.4;
    width: 10px;
    height: 10px;
}

.swiper-pagination-bullet-active {
    background: #c86a8a;
    /* rosa scuro */
    opacity: 1;
    transform: scale(1.2);
}

.btn-back-corsi {
    display: inline-block;
    padding: 10px 22px;
    border: 2px solid #b30000;
    color: #b30000;
    border-radius: 6px;
    font-weight: 600;
    margin-right: 12px;
    transition: 0.3s ease;
}

.btn-back-corsi:hover {
    background: #b30000;
    color: #fff;
}

/* ============================
   CARD ASSOCIAZIONE – VERSIONE DEFINITIVA
============================ */

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 34px;
    margin-top: 45px;
    justify-items: center;
}

/* Card larghe e proporzionate */
.card-associazione {
    width: 100%;
    max-width: 360px;
    background: #fff;
    border: 1px solid #d8d8d8;
    padding: 32px 28px;
    border-radius: 14px;
    text-decoration: none;
    color: #222;
    transition: 0.3s ease;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
}

/* Titolo leggibile */
.card-associazione h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: #b30000;
    font-weight: 700;
}

.card-associazione p {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #444;
}

/* Tablet */
@media (max-width: 1100px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 650px) {
    .cards-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================
   LAYOUT PAGINA ASSOCIAZIONE
============================ */

.associazione-wrapper {
    width: 90%;
    max-width: 1300px;
    margin: 70px auto;
}

.associazione-content {
    width: 100%;
    max-width: 1300px;
    margin: auto;
    font-family: "Quicksand", sans-serif;
    line-height: 1.6;
    font-size: 1.1rem;
    color: #2a2a2a;
}

.associazione-content h1 {
    font-size: 2.6rem;
    font-weight: 700;
    color: var(--rosa-scuro);
    margin-bottom: 25px;
}

/* ============================
   CARD ASSOCIAZIONE – VERSIONE PERFETTA
============================ */

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
    margin-top: 40px;
    justify-items: center;
}

.card-associazione {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border: 1px solid #d0d0d0;
    padding: 34px 30px;
    border-radius: 14px;
    text-decoration: none;
    color: #222;
    transition: 0.3s ease;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
}

.card-associazione:hover {
    border-color: var(--rosa-scuro);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.14);
    transform: translateY(-4px);
}

.card-associazione h3 {
    font-size: 1.45rem;
    margin-bottom: 14px;
    color: #b30000;
    font-weight: 700;
}

.card-associazione p {
    font-size: 1.08rem;
    line-height: 1.65;
    color: #444;
}

/* ============================
   PULSANTI CORSO – LAYOUT FLUIDO PREMIUM
============================ */

.corso-buttons {
    display: flex;
    flex-wrap: nowrap;
    /* 🔥 impedisce il ritorno a capo */
    gap: 15px;
    align-items: center;
    justify-content: space-between;
    /* 🔥 distribuzione uniforme */
    margin-top: 25px;
}

.corso-buttons a,
.corso-buttons button {
    flex: 1;
    /* 🔥 stessa larghezza per tutti */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 17px;
    line-height: 1;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}

/* Torna ai corsi */
.btn-back-corsi {
    border: 2px solid #b30000;
    color: #b30000;
    background: transparent;
}

.btn-back-corsi:hover {
    background: #b30000;
    color: #fff;
    box-shadow: 0 4px 12px rgba(179, 0, 0, 0.35);
}

/* Prenota */
.btn-prenota-corso {
    background: #4a90e2;
    color: #fff;
}

.btn-prenota-corso:hover {
    background: #357ac9;
    box-shadow: 0 4px 12px rgba(53, 122, 201, 0.35);
}

/* Feedback */
.btn-feedback {
    background: #1f8245;
    color: #fff;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.btn-feedback:hover {
    background: #166b38;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(22, 107, 56, 0.35);
}

/* Responsive */
@media (max-width: 768px) {
    .corso-buttons {
        flex-wrap: wrap;
        flex-direction: column;
        align-items: stretch;
    }

    .corso-buttons a,
    .corso-buttons button {
        flex: none;
        width: 100%;
    }
}

/* Tablet */
@media (max-width: 1100px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 650px) {
    .cards-grid {
        grid-template-columns: 1fr;
    }
}