/* =====================================================
   TEAM PAGE
===================================================== */

.gw-page {
    --team-dark: #211812;
    --team-dark-2: #17100c;
    --team-brown: #603a26;
    --team-rust: #a74726;
    --team-red: #d41920;
    --team-gold: #d3a45c;
    --team-cream: #f7f0e5;
    --team-muted: #74675f;
    --team-white: #fff;
}

.team-page-container {
    width: min(calc(100% - 48px), 1558px);
    max-width: 1558px;
    margin-right: auto;
    margin-left: auto;
}

.team-page-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--team-rust);
    font-family: var(--heading, "Barlow Condensed", sans-serif);
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.team-page-eyebrow::before {
    content: "";
    width: 37px;
    height: 3px;
    border-radius: 20px;
    background: var(--team-gold);
}

/* BOTTONI */

.team-page-button {
    display: inline-flex;
    min-height: 55px;
    align-items: center;
    justify-content: center;
    padding: 13px 25px;
    border: 2px solid transparent;
    border-radius: 11px;
    font-family: var(--heading, "Barlow Condensed", sans-serif);
    font-size: 1.08rem;
    font-weight: 800;
    letter-spacing: .025em;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    transition:
        color .25s ease,
        background-color .25s ease,
        border-color .25s ease,
        transform .25s ease;
}

.team-page-button:hover {
    transform: translateY(-3px);
}

.team-page-button--primary {
    color: var(--team-white);
    border-color: #f0c98f;
    background:
        linear-gradient(
            145deg,
            var(--team-red),
            #a8141a
        );
    box-shadow: 0 13px 28px rgba(140, 21, 25, .23);
}

.team-page-button--primary:hover {
    color: var(--team-dark);
    border-color: var(--team-gold);
    background: var(--team-gold);
}

.team-page-button--light {
    color: var(--team-dark);
    border-color: var(--team-white);
    background: var(--team-white);
}

.team-page-button--light:hover {
    color: var(--team-white);
    border-color: var(--team-rust);
    background: var(--team-rust);
}

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

.team-page-hero {
    position: relative;
    display: flex;
    min-height: 790px;
    align-items: center;
    overflow: hidden;
    color: var(--team-white);
    background: var(--team-dark-2);
}

.team-page-hero__media,
.team-page-hero__shade,
.team-page-hero__texture {
    position: absolute;
    inset: 0;
}

.team-page-hero__media {
    background:
        url("../images/community.jpg")
        center 35% / cover no-repeat;
    transform: scale(1.03);
}

.team-page-hero__shade {
    background:
        linear-gradient(
            90deg,
            rgba(23, 16, 12, .98),
            rgba(33, 24, 18, .86) 45%,
            rgba(23, 16, 12, .3) 78%,
            rgba(23, 16, 12, .55)
        ),
        linear-gradient(
            0deg,
            rgba(23, 16, 12, .72),
            transparent 55%
        );
}

.team-page-hero__texture {
    opacity: .13;
    background-image:
        repeating-linear-gradient(
            45deg,
            transparent 0,
            transparent 20px,
            rgba(255, 255, 255, .12) 21px,
            transparent 22px
        );
}

.team-page-hero__inner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 60px;
    padding-top: 150px;
    padding-bottom: 90px;
}

.team-page-hero__content {
    max-width: 930px;
}

.team-page-hero .team-page-eyebrow {
    margin-bottom: 18px;
    color: var(--team-gold);
}

.team-page-hero h1 {
    margin: 0;
    font-family: var(--heading, "Barlow Condensed", sans-serif);
    font-size: clamp(4.5rem, 8vw, 8.5rem);
    font-weight: 900;
    line-height: .82;
    letter-spacing: -.04em;
    text-transform: uppercase;
}

.team-page-hero h1 span {
    display: block;
    margin-top: 13px;
    color: var(--team-gold);
    font-family: var(--accent-font, "Roboto Slab", serif);
    font-size: .48em;
    line-height: 1.15;
    text-transform: none;
}

.team-page-hero__content > p {
    max-width: 730px;
    margin: 27px 0 31px;
    color: rgba(255, 255, 255, .74);
    font-size: 1.08rem;
    line-height: 1.75;
}

.team-page-hero__facts {
    display: grid;
    width: 250px;
    /* flex: 0 0 250px; */
    overflow: hidden;
    border: 1px solid rgba(211, 164, 92, .35);
    border-radius: 20px;
    background: rgba(23, 16, 12, .68);
    backdrop-filter: blur(9px);
}

.team-page-hero__facts > div {
    display: grid;
    padding: 19px 22px;
    border-bottom: 1px solid rgba(211, 164, 92, .22);
}

.team-page-hero__facts > div:last-child {
    border-bottom: 0;
}

.team-page-hero__facts strong {
    color: var(--team-gold);
    font-family: var(--heading, "Barlow Condensed", sans-serif);
    font-size: 2.4rem;
    line-height: .9;
    text-transform: uppercase;
}

.team-page-hero__facts span {
    margin-top: 7px;
    color: rgba(255, 255, 255, .7);
    font-size: 1rem;
    font-weight: 700;
}

/* =====================================================
   DIRECTORY
===================================================== */

.team-directory {
    padding: clamp(80px, 8vw, 125px) 0;
    background:
        radial-gradient(
            circle at 92% 5%,
            rgba(211, 164, 92, .18),
            transparent 24%
        ),
        var(--team-cream);
}

.team-directory__heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 50px;
    margin-bottom: 30px;
}

.team-directory__heading h2,
.team-method__heading h2,
.team-page-cta h2 {
    margin: 14px 0 0;
    color: var(--team-dark);
    font-family: var(--heading, "Barlow Condensed", sans-serif);
    font-size: clamp(3.3rem, 5.5vw, 6rem);
    font-weight: 900;
    line-height: .88;
    letter-spacing: -.04em;
    text-transform: uppercase;
}

.team-directory__heading h2 span,
.team-method__heading h2 span,
.team-page-cta h2 span {
    display: block;
    color: var(--team-rust);
    font-family: var(--accent-font, "Roboto Slab", serif);
    font-size: .58em;
    line-height: 1.15;
    text-transform: none;
}

.team-directory__heading > p {
    max-width: 520px;
    margin: 0;
    color: var(--team-muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

.team-preview-note {
    padding: 16px 19px;
    margin-bottom: 18px;
    color: var(--team-brown);
    border: 1px solid rgba(167, 71, 38, .2);
    border-radius: 12px;
    background: rgba(255, 255, 255, .65);
    font-size: 1rem;
    line-height: 1.55;
}

/* FILTRI */

.team-filters {
    display: grid;
    grid-template-columns:
        minmax(280px, 1fr)
        minmax(190px, 260px)
        minmax(190px, 260px)
        auto;
    gap: 14px;
    align-items: end;
    padding: 21px;
    border: 1px solid rgba(96, 58, 38, .13);
    border-radius: 18px;
    background: rgba(255, 255, 255, .85);
    box-shadow: 0 15px 38px rgba(54, 34, 22, .07);
}

.team-filter {
    display: grid;
    gap: 8px;
}

.team-filter > span:first-child {
    color: var(--team-brown);
    font-family: var(--heading, "Barlow Condensed", sans-serif);
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
}

.team-filter__input {
    position: relative;
}

.team-filter__input svg {
    position: absolute;
    top: 50%;
    left: 16px;
    width: 21px;
    height: 21px;
    fill: none;
    stroke: var(--team-rust);
    stroke-width: 2;
    stroke-linecap: round;
    transform: translateY(-50%);
}

.team-filter input,
.team-filter select {
    width: 100%;
    min-height: 53px;
    padding: 11px 15px;
    color: var(--team-dark);
    border: 1px solid rgba(96, 58, 38, .2);
    border-radius: 9px;
    outline: none;
    background: var(--team-white);
    font-family: var(--body, "Inter", sans-serif);
    font-size: 1rem;
}

.team-filter input {
    padding-left: 49px;
}

.team-filter input:focus,
.team-filter select:focus {
    border-color: var(--team-rust);
    box-shadow: 0 0 0 4px rgba(167, 71, 38, .1);
}

.team-filter-reset {
    min-height: 53px;
    padding: 11px 20px;
    color: var(--team-dark);
    cursor: pointer;
    border: 2px solid var(--team-dark);
    border-radius: 9px;
    background: transparent;
    font-family: var(--heading, "Barlow Condensed", sans-serif);
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    transition: .25s ease;
}

.team-filter-reset:hover {
    color: var(--team-white);
    background: var(--team-dark);
}

.team-results-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 19px 3px;
}

.team-results-bar p {
    margin: 0;
    color: var(--team-muted);
    font-size: 1rem;
}

.team-results-bar strong {
    color: var(--team-dark);
}

.team-results-bar a {
    color: var(--team-rust);
    font-size: 1rem;
    font-weight: 800;
    text-decoration: none;
}

/* =====================================================
   CARD ISTRUTTORI
===================================================== */

.team-profiles-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.team-profile-card {
    display: flex;
    min-width: 0;
    overflow: hidden;
    flex-direction: column;
    border: 1px solid rgba(96, 58, 38, .13);
    border-radius: 23px;
    background: var(--team-white);
    box-shadow: 0 18px 48px rgba(54, 34, 22, .09);
    transition:
        border-color .3s ease,
        box-shadow .3s ease,
        transform .3s ease;
}

.team-profile-card:hover {
    border-color: rgba(167, 71, 38, .45);
    box-shadow: 0 26px 58px rgba(54, 34, 22, .15);
    transform: translateY(-7px);
}

.team-profile-card[hidden] {
    display: none;
}

/* FOTO SEGNAPOSTO */

.team-profile-card__photo {
    position: relative;
    display: grid;
    min-height: 285px;
    overflow: hidden;
    place-items: center;
    color: var(--team-white);
}

.team-profile-card__photo::before,
.team-profile-card__photo::after {
    content: "";
    position: absolute;
    border-radius: 50%;
}

.team-profile-card__photo::before {
    width: 250px;
    height: 250px;
    border: 2px solid rgba(255, 255, 255, .17);
    box-shadow:
        0 0 0 25px rgba(255, 255, 255, .05),
        0 0 0 50px rgba(255, 255, 255, .025);
}

.team-profile-card__photo::after {
    right: -40px;
    bottom: -80px;
    width: 190px;
    height: 190px;
    background: rgba(211, 164, 92, .14);
}

.team-profile-card__photo--1 {
    background: linear-gradient(145deg, #8f3c27, #301d15);
}

.team-profile-card__photo--2 {
    background: linear-gradient(145deg, #76502e, #241710);
}

.team-profile-card__photo--3 {
    background: linear-gradient(145deg, #a74726, #4f271a);
}

.team-profile-card__photo--4 {
    background: linear-gradient(145deg, #5e3a26, #17100c);
}

.team-profile-card__photo--5 {
    background: linear-gradient(145deg, #bb7d38, #59311f);
}

.team-profile-card__photo--6 {
    background: linear-gradient(145deg, #433027, #8d3d27);
}

.team-profile-card__initials {
    position: relative;
    z-index: 1;
    font-family: var(--heading, "Barlow Condensed", sans-serif);
    font-size: 6rem;
    font-weight: 900;
    letter-spacing: -.06em;
    line-height: 1;
    opacity: .9;
}

.team-profile-card__photo small {
    position: absolute;
    z-index: 2;
    top: 18px;
    right: 18px;
    display: grid;
    width: 43px;
    height: 43px;
    place-items: center;
    color: var(--team-dark);
    border-radius: 50%;
    background: var(--team-gold);
    font-family: var(--heading, "Barlow Condensed", sans-serif);
    font-size: 1rem;
    font-weight: 900;
}

.team-profile-card__photo img {
    position: absolute;
    z-index: 1;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* CORPO CARD */

.team-profile-card__body {
    display: flex;
    padding: 22px;
    flex: 1;
    flex-direction: column;
}

.team-profile-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.team-profile-card__area,
.team-profile-card__role {
    font-family: var(--heading, "Barlow Condensed", sans-serif);
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
}

.team-profile-card__area {
    padding: 6px 9px;
    color: var(--team-white);
    border-radius: 20px;
    background: var(--team-rust);
}

.team-profile-card__role {
    color: var(--team-muted);
    text-align: right;
}

.team-profile-card h3 {
    margin: 20px 0 15px;
    color: var(--team-dark);
    font-family: var(--heading, "Barlow Condensed", sans-serif);
    font-size: 2.3rem;
    font-weight: 900;
    line-height: .92;
    letter-spacing: -.035em;
    text-transform: uppercase;
}

.team-profile-card__school {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px;
    color: var(--team-brown);
    border-radius: 10px;
    background: var(--team-cream);
    font-size: 1rem;
    line-height: 1.45;
    text-decoration: none;
}

.team-profile-card__school svg {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    fill: none;
    stroke: var(--team-rust);
    stroke-width: 2;
}

.team-profile-card__school strong {
    display: block;
    color: var(--team-dark);
}

.team-profile-card__bio {
    margin: 17px 0;
    color: var(--team-muted);
    font-size: 1rem;
    line-height: 1.65;
}

.team-profile-card__levels {
    padding-top: 16px;
    margin-top: auto;
    border-top: 1px solid rgba(96, 58, 38, .11);
}

.team-profile-card__levels > span {
    color: var(--team-brown);
    font-family: var(--heading, "Barlow Condensed", sans-serif);
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
}

.team-profile-card__levels > div {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 9px;
}

.team-profile-card__levels > div > span {
    padding: 7px 9px;
    color: var(--team-brown);
    border-radius: 7px;
    background: #f2e5d3;
    font-size: 1rem;
    font-weight: 700;
}

.team-profile-card__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 18px;
}

.team-profile-card__actions a {
    display: flex;
    min-height: 45px;
    align-items: center;
    justify-content: center;
    padding: 9px;
    border-radius: 8px;
    font-family: var(--heading, "Barlow Condensed", sans-serif);
    font-size: 1rem;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
}

.team-profile-card__actions a:first-child {
    color: var(--team-dark);
    border: 2px solid var(--team-dark);
}

.team-profile-card__actions a:last-child {
    color: var(--team-white);
    border: 2px solid var(--team-rust);
    background: var(--team-rust);
}

.team-empty {
    padding: 55px 25px;
    margin-top: 20px;
    text-align: center;
    border: 1px solid rgba(96, 58, 38, .13);
    border-radius: 20px;
    background: var(--team-white);
}

.team-empty strong {
    font-family: var(--heading, "Barlow Condensed", sans-serif);
    font-size: 2rem;
    text-transform: uppercase;
}

.team-empty p {
    margin: 10px 0 20px;
    color: var(--team-muted);
    font-size: 1rem;
}

.team-empty button {
    min-height: 46px;
    padding: 10px 18px;
    color: var(--team-white);
    cursor: pointer;
    border: 0;
    border-radius: 8px;
    background: var(--team-rust);
    font-size: 1rem;
    font-weight: 800;
}

/* =====================================================
   METODO
===================================================== */

.team-method {
    padding: clamp(85px, 9vw, 135px) 0;
    color: var(--team-white);
    background:
        radial-gradient(
            circle at 90% 10%,
            rgba(211, 164, 92, .17),
            transparent 27%
        ),
        var(--team-dark);
}

.team-method__heading {
    max-width: 900px;
    margin-bottom: 55px;
}

.team-method .team-page-eyebrow {
    color: var(--team-gold);
}

.team-method__heading h2 {
    color: var(--team-white);
}

.team-method__heading h2 span {
    color: var(--team-gold);
}

.team-method__heading p {
    max-width: 700px;
    margin: 23px 0 0;
    color: rgba(255, 255, 255, .68);
    font-size: 1.05rem;
    line-height: 1.75;
}

.team-method__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.team-method-card {
    min-height: 280px;
    padding: 29px;
    border: 1px solid rgba(211, 164, 92, .29);
    border-radius: 21px;
    background: rgba(255, 255, 255, .055);
}

.team-method-card > span {
    display: grid;
    width: 57px;
    height: 57px;
    place-items: center;
    color: var(--team-dark);
    border-radius: 50%;
    background: var(--team-gold);
    font-family: var(--heading, "Barlow Condensed", sans-serif);
    font-size: 1.25rem;
    font-weight: 900;
}

.team-method-card h3 {
    margin: 25px 0 12px;
    font-family: var(--heading, "Barlow Condensed", sans-serif);
    font-size: 2.2rem;
    text-transform: uppercase;
}

.team-method-card p {
    margin: 0;
    color: rgba(255, 255, 255, .67);
    font-size: 1rem;
    line-height: 1.7;
}

/* =====================================================
   CTA
===================================================== */

.team-page-cta {
    padding: clamp(75px, 8vw, 115px) 0;
    background: var(--team-cream);
}

.team-page-cta__inner {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 50px;
    padding: clamp(35px, 5vw, 70px);
    color: var(--team-white);
    border-radius: 28px;
    background:
        radial-gradient(
            circle at 88% 15%,
            rgba(211, 164, 92, .23),
            transparent 28%
        ),
        var(--team-dark);
}

.team-page-cta__inner > div:first-child {
    max-width: 900px;
}

.team-page-cta .team-page-eyebrow {
    color: var(--team-gold);
}

.team-page-cta h2 {
    color: var(--team-white);
}

.team-page-cta h2 span {
    color: var(--team-gold);
}

.team-page-cta p {
    max-width: 680px;
    margin: 23px 0 0;
    color: rgba(255, 255, 255, .7);
    font-size: 1.05rem;
    line-height: 1.75;
}

.team-page-cta__actions {
    display: flex;
    min-width: 260px;
    flex-direction: column;
    gap: 10px;
}

/* ANIMAZIONI */

.team-page-reveal {
    opacity: 0;
    transform: translateY(25px);
    transition:
        opacity .65s ease,
        transform .65s ease;
}

.team-page-reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* RESPONSIVE */

@media (max-width: 1250px) {
    .team-profiles-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .team-filters {
        grid-template-columns: 1fr 1fr;
    }

    .team-filter-reset {
        grid-column: 1 / -1;
    }
}

@media (max-width: 900px) {
    .team-page-hero__inner {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
    }

    .team-page-hero__facts {
        width: 100%;
        grid-template-columns: repeat(3, 1fr);
    }

    .team-page-hero__facts > div {
        border-right: 1px solid rgba(211, 164, 92, .22);
        border-bottom: 0;
    }

    .team-page-hero__facts > div:last-child {
        border-right: 0;
    }

    .team-directory__heading,
    .team-page-cta__inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .team-profiles-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .team-method__grid {
        grid-template-columns: 1fr;
    }

    .team-method-card {
        min-height: auto;
    }

    .team-page-cta__actions {
        width: 100%;
        min-width: 0;
        flex-direction: row;
    }

    .team-page-cta__actions a {
        flex: 1;
    }
}

@media (max-width: 680px) {
    .team-page-container {
        width: min(calc(100% - 32px), 1558px);
    }

    .team-page-hero {
        min-height: 850px;
        align-items: flex-start;
    }

    .team-page-hero__inner {
        padding-top: 145px;
        padding-bottom: 70px;
    }

    .team-page-hero h1 {
        font-size: clamp(3.7rem, 17vw, 5.4rem);
    }

    .team-page-hero__facts {
        grid-template-columns: 1fr;
    }

    .team-page-hero__facts > div {
        border-right: 0;
        border-bottom: 1px solid rgba(211, 164, 92, .22);
    }

    .team-directory__heading h2,
    .team-method__heading h2,
    .team-page-cta h2 {
        font-size: clamp(3rem, 14vw, 4.4rem);
    }

    .team-filters {
        grid-template-columns: 1fr;
        padding: 16px;
    }

    .team-filter-reset {
        grid-column: auto;
    }

    .team-results-bar {
        align-items: flex-start;
        flex-direction: column;
    }

    .team-profiles-grid {
        grid-template-columns: 1fr;
    }

    .team-profile-card__photo {
        min-height: 340px;
    }

    .team-page-cta__actions {
        display: grid;
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .team-page-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}