/* ============================
   PAGINA DETTAGLIO CORSI
============================ */

.page-corsi {
    background: #f5f7f9;
}

/* ============================
   HERO
============================ */

.page-hero {
    padding: 35px 0 25px 0;
    background: #e6eef1;
    color: #23333a;
    text-align: center;
    border-bottom: 3px solid #4d798b20;
    border-top: 2px solid #d3dde2;
}

.page-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #355866;
}

.page-subtitle {
    font-size: 1rem;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* BOXED LAYOUT */

.page-container {
    width: 90%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================
   SEZIONI CORSI (layout legacy)
============================ */

.corsi-section {
    padding: 40px 0;
}

.corsi-section.corsi-alt {
    background: #e6eef1;
}

/* LAYOUT A DUE COLONNE */

.corsi-layout {
    display: flex;
    flex-direction: row;
    gap: 40px;
    align-items: flex-start;
}

.corsi-text {
    flex: 1;
}

.corsi-media {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

/* TITOLI CORSI */

.corsi-title {
    font-family: "Quicksand", sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #355866;
    margin-bottom: 16px;
}

/* TESTO CORSI */

.corsi-text p {
    font-family: "Quicksand", sans-serif;
    font-size: 0.98rem;
    line-height: 1.7;
    color: #23333a;
    margin-bottom: 14px;
}

/* LISTE CORSI */

.corsi-list {
    list-style: none;
    padding-left: 0;
    margin: 10px 0 0 0;
}

.corsi-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    font-family: "Quicksand", sans-serif;
    font-size: 0.95rem;
    color: #23333a;
}

.corsi-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0;
    color: #4d798b;
    font-size: 1.1rem;
}

/* IMMAGINI CORSI */

.corsi-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.corsi-image:hover {
    transform: scale(1.02);
}

/* OVERLAY FULLSCREEN IMMAGINI */

.image-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    visibility: hidden;
    opacity: 0;
    transition: 0.3s ease;
    z-index: 99999;
}

.image-overlay.show {
    visibility: visible;
    opacity: 1;
}

.image-overlay img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 12px;
}

/* ============================
   MODERN LIST + COURSE CARDS + CONTACT BOX
   (Bordo animato premium)
============================ */

.modern-list,
.course-cards,
.contact-box {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    padding: 25px;
}

.modern-list::before,
.course-cards::before,
.contact-box::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 18px;
    padding: 2px;
    background: linear-gradient(135deg, #4d798b, #355866, #4d798b);
    opacity: 0;
    transition: opacity 0.35s ease;

    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;

    pointer-events: none;
}

.modern-list:hover::before,
.course-cards:hover::before,
.contact-box:hover::before {
    opacity: 1;
}

/* ============================
   COURSE CARD — BORDO ANIMATO PREMIUM
============================ */

.course-card {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    padding: 20px;
}

.course-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 18px;
    padding: 2px;
    background: linear-gradient(135deg, #4d798b, #355866, #4d798b);
    opacity: 0;
    transition: opacity 0.35s ease;

    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;

    pointer-events: none;
}

.course-card:hover::before {
    opacity: 1;
}

/* ============================
   COUPON — CARD PREMIUM CENTRATA
============================ */

.coupon-block {
    display: flex;
    justify-content: center;
    margin: 60px 0;
}

.coupon-card {
    position: relative;
    overflow: hidden;
    border-radius: 22px;

    /* BORDO FISSO PREMIUM */
    border: 3px solid #4d798b20;
    border-top: 2px solid #d3dde2;

    /* SFONDO PREMIUM */
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);

    /* OMBRA 3D BEN VISIBILI */
    box-shadow:
        0 6px 14px rgba(0, 0, 0, 0.10),
        0 16px 32px rgba(0, 0, 0, 0.14),
        0 28px 55px rgba(0, 0, 0, 0.12);

    /* DIMENSIONE RIDOTTA REALE */
    width: 90%;
    max-width: 850px;

    /* SPAZIATURA PREMIUM */
    padding: 45px 40px 55px 40px;
    text-align: center;
}

/* Bordo animato coupon */

.coupon-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 22px;
    padding: 2px;
    background: linear-gradient(135deg, #4d798b, #355866, #4d798b);
    opacity: 0;
    transition: opacity 0.35s ease;

    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;

    pointer-events: none;
}

.coupon-card:hover::before {
    opacity: 1;
}

.coupon-card h2 {
    margin-top: 25px;
}

/* ============================================================
   SEDE DI ALLENAMENTO — CARD PREMIUM CENTRATA
============================================================ */

.sede-block {
    display: flex;
    justify-content: center;
    margin: 60px 0;
}

.sede-card {
    position: relative;
    overflow: hidden;
    border-radius: 22px;

    /* BORDO FISSO PREMIUM */
    border: 3px solid #4d798b20;
    border-top: 2px solid #d3dde2;

    /* SFONDO PREMIUM */
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);

    /* OMBRA 3D */
    box-shadow:
        0 6px 14px rgba(0, 0, 0, 0.10),
        0 16px 32px rgba(0, 0, 0, 0.14),
        0 28px 55px rgba(0, 0, 0, 0.12);

    /* DIMENSIONE RIDOTTA */
    width: 90%;
    max-width: 900px;

    /* SPAZIATURA PREMIUM */
    padding: 45px 40px 55px 40px;
    text-align: center;
}

/* Bordo animato */
.sede-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 22px;
    padding: 2px;
    background: linear-gradient(135deg, #4d798b, #355866, #4d798b);
    opacity: 0;
    transition: opacity 0.35s ease;

    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;

    pointer-events: none;
}

.sede-card:hover::before {
    opacity: 1;
}

/* Immagine sede */
.sede-card .modern-img {
    width: 100%;
    border-radius: 14px;
    margin: 25px 0;
    box-shadow:
        0 4px 10px rgba(0, 0, 0, 0.10),
        0 12px 25px rgba(0, 0, 0, 0.12);
}

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

@media (max-width: 900px) {

    .page-hero {
        padding: 60px 0 30px 0;
    }

    .page-title {
        font-size: 1.7rem;
    }

    .page-subtitle {
        font-size: 0.9rem;
    }

    .section-block {
        padding: 30px 0;
    }

    .corsi-layout {
        flex-direction: column;
        gap: 20px;
    }

    .corsi-media {
        order: -1;
    }

    .corsi-section {
        padding: 30px 0;
    }
}