/* ============================
   PAGINA ISTRUTTORI
============================ */

.page-istruttori {
    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;
}

/* ============================
   SEZIONE ISTRUTTORI
============================ */

.istruttori-section {
    padding: 50px 0;
}

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

/* ============================
   ANIMAZIONI GLOBALI
============================ */

@keyframes fadeInCard {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ============================
   CARD ISTRUTTORI — 3D + GLOW + GLASS
============================ */

.istr-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(6px);
    border-radius: 18px;
    padding: 30px;
    margin-bottom: 45px;
    display: flex;
    gap: 40px;
    align-items: flex-start;

    box-shadow:
        0 4px 10px rgba(0, 0, 0, 0.08),
        0 10px 25px rgba(0, 0, 0, 0.12),
        0 20px 40px rgba(0, 0, 0, 0.10);

    transition: transform 0.25s ease, box-shadow 0.25s ease, border 0.25s ease;

    border: 2px solid transparent;
    animation: fadeInCard 0.6s ease forwards;
}

/* Alternanza slide-in */
.istr-card:nth-child(odd) {
    animation: slideLeft 0.6s ease forwards;
}

.istr-card:nth-child(even) {
    animation: slideRight 0.6s ease forwards;
}

.istr-card:hover {
    transform: translateY(-6px);
    box-shadow:
        0 6px 14px rgba(0, 0, 0, 0.10),
        0 14px 30px rgba(0, 0, 0, 0.14),
        0 26px 50px rgba(0, 0, 0, 0.12);

    border: 2px solid #4d798b55;
    /* Glow blu */
}

/* ============================
   IMMAGINI
============================ */

.istr-img img {
    width: 100%;
    max-width: 360px;
    border-radius: 14px;

    box-shadow:
        0 4px 8px rgba(0, 0, 0, 0.15),
        0 8px 20px rgba(0, 0, 0, 0.12);

    transition: transform 0.25s ease;
}

.istr-img img:hover {
    transform: scale(1.03);
}

/* ============================
   TESTO
============================ */

.istr-info {
    flex: 1;
}

.istr-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: #355866;
    margin-bottom: 14px;
}

/* BADGE RUOLI */
.istr-badge {
    display: inline-block;
    background: #4d798b;
    color: #fff;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    margin-bottom: 12px;
    font-weight: 600;
}

.istr-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 20px;
}

.istr-list li {
    margin-bottom: 8px;
    font-size: 1rem;
    color: #23333a;
}

/* TELEFONO */
.istr-phone {
    margin-top: 10px;
    font-size: 1rem;
}

.istr-phone i {
    font-size: 1.4rem;
    color: #355866;
    margin-right: 6px;
}

.istr-phone a {
    color: #355866;
    font-weight: 600;
}

/* ============================
   CORSI DI ELIANA
============================ */

.istr-subtitle {
    font-size: 1.2rem;
    font-weight: 700;
    color: #355866;
    margin: 20px 0 10px 0;
}

.istr-corsi,
.istr-orari {
    list-style: none;
    padding-left: 0;
    margin-bottom: 20px;
}

.istr-corsi li a {
    color: #4d798b;
    font-weight: 600;
    text-decoration: underline;
}

.istr-orari li {
    margin-bottom: 10px;
    color: #23333a;
}

.istr-orari ul {
    margin-top: 5px;
    margin-bottom: 10px;
    padding-left: 20px;
}

/* ============================================================
   BORDO ANIMATO — CARD ISTRUTTORI (stile uniforme NW&V)
============================================================ */

.istr-card {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    transform-style: preserve-3d;
}

/* Bordo blu animato */
.istr-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;
}

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

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

@media (max-width: 900px) {

    .istr-card {
        flex-direction: column;
        text-align: center;
        padding: 25px;
        gap: 25px;
    }

    .istr-img img {
        max-width: 260px;
        margin: 0 auto;
    }

    .istr-name {
        font-size: 1.6rem;
    }
}