/* Team: banner + presentazione delle due realtà (noleggiamoauto + Apophis). */

.team-hero {
    width: 100%;
    height: clamp(260px, 34vw, 420px);
    background-image: url('//cdn.noleggiamoauto.it/images/team.webp');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}

.team-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(15, 23, 42, 0.55) 0%,
        rgba(15, 23, 42, 0.25) 50%,
        rgba(15, 23, 42, 0.45) 100%
    );
    pointer-events: none;
}

.team-hero-back-wrap {
    position: absolute;
    top: 28px;
    left: 0;
    right: 0;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    z-index: 2;
}

.team-hero .guest-back,
.team-hero .guest-back:hover {
    color: #ffffff;
}

.team-hero-inner {
    position: relative;
    z-index: 1;
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-hero-title {
    margin: 0;
    color: #ffffff;
    text-align: center;
    font-size: clamp(2rem, 4.5vw, 3.4rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}

/* Width footer 1200px e contenuto allineato a sinistra. */
body.team-page .about-container {
    max-width: 1200px !important;
}

body.team-page .about-content,
body.team-page .about-content h2,
body.team-page .about-content p,
body.team-page .about-content section {
    text-align: left;
}

/* Le due realtà del team: due colonne, niente card/rettangoli. */
.team-duo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
    margin: 16px 0;
}

.team-member {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.team-member-logo-wrap {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 4px;
}

.team-member-logo {
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.team-member-logo--wide {
    max-width: 320px;
    max-height: 64px;
}

.team-member-logo--square {
    max-width: 300px;
    max-height: 110px;
}

.team-member-role {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--accent);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.team-member p:not(.team-member-role) {
    margin: 0;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-main, #334155);
}

@media (max-width: 760px) {
    .team-duo {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .team-member-logo-wrap {
        height: 130px;
    }

    .team-member-logo--wide {
        max-width: 260px;
        max-height: 52px;
    }

    .team-member-logo--square {
        max-width: 300px;
        max-height: 88px;
    }
}
