/* ============================
   TEAM PAGE — VERSIONE FINALE
============================ */

.team-page {
    padding-top: 96px;
    padding-bottom: 64px;
    background: radial-gradient(circle at top left, #4d798b 0%, #355866 40%, #1c2b33 100%);
    min-height: 100vh;
}

/* HERO */
.team-hero {
    margin-bottom: 32px;
}

.team-hero .page-hero-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 32px 24px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(230, 238, 241, 0.12), rgba(77, 121, 139, 0.35));
    box-shadow:
        0 18px 45px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(230, 238, 241, 0.18);
    backdrop-filter: blur(18px);
    color: #e6eef1;
}

.team-hero h1 {
    font-size: 2.4rem;
    margin-bottom: 8px;
}

.team-hero p {
    margin: 0;
    font-size: 1rem;
    opacity: 0.9;
}

/* SECTIONS */
.section-block {
    max-width: 1200px;
    margin: 0 auto 40px auto;
    padding: 0 16px;
}

.section-header {
    margin-bottom: 24px;
    text-align: left;
    color: #e6eef1;
}

.section-header h2 {
    font-size: 1.8rem;
    margin-bottom: 4px;
}

.section-header p {
    margin: 0;
    font-size: 0.95rem;
    opacity: 0.85;
}

/* GRID */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

/* CARD BASE */
.team-card {
    position: relative;
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(17, 27, 33, 0.95), rgba(53, 88, 102, 0.85));
    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(230, 238, 241, 0.12);
    overflow: hidden;
    color: #e6eef1;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.team-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(230, 238, 241, 0.18), transparent 55%);
    opacity: 0.7;
    pointer-events: none;
}

.team-card:hover {
    transform: translateY(-6px);
    box-shadow:
        0 24px 55px rgba(0, 0, 0, 0.7),
        0 0 0 1px rgba(230, 238, 241, 0.22);
    background: linear-gradient(145deg, rgba(17, 27, 33, 0.98), rgba(77, 121, 139, 0.95));
}

/* ============================
   IMMAGINI VERTICALI — VERSIONE DEFINITIVA
============================ */

.team-card-media {
    width: 100%;
    aspect-ratio: 3 / 4;
    /* card verticale */
    overflow: hidden;
    border-radius: 14px;
}

/* 🔥 Immagini verticali senza tagli laterali e senza fascia vuota */
.team-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* riempie il contenitore */
    object-position: top;
    /* evita tagli sul volto */
    display: block;
    filter: brightness(1.05) contrast(1.05);
    transition: transform 0.35s ease, filter 0.35s ease;
}

/* Glow + zoom leggero */
.team-card-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.18), transparent 70%);
    opacity: 0.35;
    pointer-events: none;
}

.team-card:hover .team-card-media img {
    transform: scale(1.04);
    filter: brightness(1.12) contrast(1.12);
}

/* Soft inner shadow */
.team-card-media::before {
    content: "";
    position: absolute;
    inset: 0;
    box-shadow: inset 0 0 35px rgba(0, 0, 0, 0.45);
    pointer-events: none;
}

/* BODY */
.team-card-body {
    position: relative;
    padding: 16px 16px 18px 16px;
    z-index: 1;
}

.team-card-body h3 {
    font-size: 1.25rem;
    margin-bottom: 4px;
}

.team-role {
    font-size: 0.9rem;
    margin-bottom: 10px;
    color: #c7d5dc;
}

/* LISTS */
.team-list {
    list-style: disc;
    padding-left: 18px;
    margin: 0;
    font-size: 0.9rem;
}

.team-list li {
    margin-bottom: 4px;
}

/* YEARS */
.team-years h4 {
    font-size: 0.95rem;
    margin: 10px 0 4px 0;
    color: #e6eef1;
}

.team-years ul {
    list-style: disc;
    padding-left: 18px;
    margin: 0 0 4px 0;
    font-size: 0.85rem;
}

.team-years li {
    margin-bottom: 3px;
}

/* FOTO GRUPPO */
.team-group-photo {
    max-width: 900px;
    margin: 0 auto 24px auto;
    border-radius: 18px;
    overflow: hidden;
    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(230, 238, 241, 0.18);
}

.team-group-photo img {
    width: 100%;
    display: block;
}

/* STAFF */
.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.staff-card {
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(17, 27, 33, 0.95), rgba(53, 88, 102, 0.85));
    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(230, 238, 241, 0.12);
    padding: 16px 16px 18px 16px;
    color: #e6eef1;
}

.staff-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.staff-card ul {
    list-style: disc;
    padding-left: 18px;
    margin: 0;
    font-size: 0.9rem;
}

.staff-card li {
    margin-bottom: 4px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .team-hero .page-hero-inner {
        padding: 24px 18px;
    }

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

    .section-block {
        margin-bottom: 32px;
    }
}