/* =========================================================
   EQUIPA EXECUTIVA
   COTEC PORTUGAL
========================================================= */


/* =========================================================
   VARIÁVEIS
========================================================= */

:root {
    --cotec-red: var(--cotec-color-red);
    --cotec-black: var(--cotec-color-black);
    --cotec-white: var(--cotec-color-white);
    --cotec-grey: var(--cotec-color-surface-soft);
    --cotec-hover: var(--cotec-color-surface-soft);

    --cotec-card-width: 230px;
    --cotec-photo-size: 230px;

    --cotec-gap-x: 16px;
    --cotec-gap-y: 22px;

    --cotec-linkedin-logo:
        url("/wp-content/uploads/2026/08/linkedin-logo-png_seeklogo-480553.png");
}


/* =========================================================
   RESET LOCAL
========================================================= */

.cotec-team-page,
.cotec-team-page *,
.cotec-team-page *::before,
.cotec-team-page *::after {
    box-sizing: border-box;
}


/* =========================================================
   PÁGINA — FULL WIDTH
========================================================= */

.cotec-team-page {
    position: relative;

    width: 100vw;
    max-width: 100%;

    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);

    padding: 0;

    overflow-x: clip;

    color: var(--cotec-black);
    background: white;
}

/* =========================================================
   SMART SLIDER
========================================================= */

.cotec-team-slider {
    position: relative;

    width: 100vw;
    max-width: none;

    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);

    padding: 0;

    overflow: hidden;

    background: var(--cotec-black);
}

.cotec-team-slider > div {
    width: 100%;
    max-width: none;
}

/* =========================================================
   CONTAINER
========================================================= */

.cotec-team-container {
    width: 100%;
    max-width: none;

    margin: 0;

    padding-left: clamp(16px, 2vw, 32px);
    padding-right: clamp(16px, 2vw, 32px);
}


/* =========================================================
   HEADER
========================================================= */

.cotec-team-header {
    width: 100%;

    margin: 0;

    padding-top: clamp(40px, 2.5vw, 78px);
    padding-bottom: clamp(35px, 3vw, 55px);

}

.cotec-team-header__title {
    width: 100%;

    margin: 0;

    color: var(--cotec-black);

    font-family: var(--cotec-font-family);
    font-size: 45px;
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -0.03em;

    text-align: center;
}


/* =========================================================
   SECÇÕES
========================================================= */

.cotec-team-featured,
.cotec-team-members {
    position: relative;

    width: 100%;

    margin: 0;

}


/*
 * Reduzido para aproximar o Diretor-Geral
 * da grelha dos restantes membros.
 */

.cotec-team-featured {
    padding-top: 0;
    padding-bottom: 28px;
}

.cotec-team-members {
    padding-top: 18px;
    padding-bottom: clamp(70px, 6vw, 120px);
}


/* =========================================================
   CARD BASE
========================================================= */

.cotec-team-card {
    position: relative;

    min-width: 0;

    overflow: hidden;

    color: var(--cotec-black);
    background: var(--cotec-white);

    border: 0;

    box-shadow:
        0 6px 20px rgb(0 0 0 / 7%);

    transition:
        transform 280ms ease,
        box-shadow 280ms ease,
        background-color 250ms ease;
}


/* =========================================================
   IMAGEM BASE
========================================================= */

.cotec-team-card__image {
    position: relative;

    display: block;

    margin: 0;
    padding: 0;

    overflow: hidden;

    background: var(--cotec-color-grey-2);

    line-height: 0;
}

.cotec-team-card__image picture {
    position: absolute;

    inset: 0;

    display: block;

    width: 100%;
    height: 100%;

    margin: 0 !important;
    padding: 0 !important;
}

.cotec-team-card__photo {
    position: absolute !important;

    inset: 0 !important;

    display: block !important;

    width: 100% !important;
    height: 100% !important;

    max-width: none !important;

    margin: 0 !important;
    padding: 0 !important;

    object-fit: cover !important;
    object-position: center center !important;

    transition: transform 450ms ease;
}

.cotec-team-card__placeholder {
    position: absolute;

    inset: 0;

    display: block;

    width: 100%;
    height: 100%;

    background: var(--cotec-color-grey-2);
}


/* =========================================================
   GRID DOS MEMBROS
   DESKTOP = 5 CARDS
========================================================= */

.cotec-team-grid {
    display: grid;

    grid-template-columns:
        repeat(5, var(--cotec-card-width));

    column-gap: var(--cotec-gap-x);
    row-gap: var(--cotec-gap-y);

    width: 100%;

    margin: 0;
    padding: 0;

    justify-content: center;
    align-items: stretch;
}


/* =========================================================
   CARD DOS MEMBROS
========================================================= */
.cotec-team-grid .cotec-team-card {
    display: flex;
    flex-direction: column;

    width: 100%;
    min-width: 0;
    max-width: none;

    height: auto;
    min-height: 420px;

    margin: 0;
    padding: 0;

    overflow: hidden;

    background: var(--cotec-white);
}


/* =========================================================
   FOTO MEMBRO — 230 × 230
========================================================= */

.cotec-team-grid .cotec-team-card__image {
    flex: 0 0 auto;

    width: 100%;
    height: auto;

    min-width: 0;
    min-height: 0;

    max-width: none;
    max-height: none;

    aspect-ratio: 1 / 1;
}

.cotec-team-grid .cotec-team-card__photo {
    width: 100% !important;
    height: 100% !important;

    min-width: 0 !important;
    min-height: 0 !important;

    max-width: none !important;
    max-height: none !important;

    object-fit: cover !important;
    object-position: center center !important;
}


/* =========================================================
   CONTEÚDO DOS MEMBROS
========================================================= */

.cotec-team-grid .cotec-team-card__content {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;

    width: 100%;
    min-width: 0;

    min-height: 190px;
    height: auto;

    padding: 17px;

    overflow: hidden;

    color: var(--cotec-black);
    background: var(--cotec-white);
}


/* =========================================================
   NOME
========================================================= */

.cotec-team-card__name {
    margin: 0;

    color: var(--cotec-black);

    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.025em;

    transition: color 250ms ease;
}

.cotec-team-grid .cotec-team-card__name {
    display: -webkit-box;

    overflow: hidden;

    font-size: 19px;

    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}


/* =========================================================
   CARGO
========================================================= */

.cotec-team-card__role {
    margin: 7px 0 0;

    color: var(--cotec-red);

    font-weight: 500;
    line-height: 1.32;

    transition: color 250ms ease;
}

.cotec-team-grid .cotec-team-card__role {
    display: -webkit-box;

    overflow: hidden;

    font-size: 13px;

    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}


/* =========================================================
   EYEBROW
========================================================= */

.cotec-team-card__eyebrow {
    margin: 0 0 10px;

    color: var(--cotec-red);

    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;

    text-transform: uppercase;
    letter-spacing: 0.09em;

    transition: color 250ms ease;
}


/* =========================================================
   AÇÕES
========================================================= */

.cotec-team-card__actions {
    position: relative;

    z-index: 5;

    display: flex;

    align-items: center;

    gap: 10px;

    margin-top: auto;
    padding-top: 12px;
}


/* =========================================================
   LINKEDIN — APENAS LOGÓTIPO
========================================================= */

.cotec-team-linkedin,
.cotec-team-linkedin:hover,
.cotec-team-linkedin:focus,
.cotec-team-linkedin:active {
    position: relative;

    z-index: 6;

    display: inline-flex;

    width: 28px;
    height: 28px;

    min-width: 28px;
    min-height: 28px;

    align-items: center;
    justify-content: center;

    margin: 0;
    padding: 0;

    border: 0 !important;
    border-radius: 0 !important;

    color: transparent !important;
    background: transparent !important;

    box-shadow: none !important;

    font-size: 0;

    text-decoration: none !important;

    appearance: none;
}

.cotec-team-linkedin::before {
    content: "";

    display: block;

    width: 28px;
    height: 28px;

    background-image: var(--cotec-linkedin-logo);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;

    transition:
        transform 200ms ease,
        opacity 200ms ease;
}


/* Texto acessível mas invisível */

.cotec-team-linkedin > span {
    position: absolute !important;

    width: 1px !important;
    height: 1px !important;

    margin: -1px !important;
    padding: 0 !important;

    overflow: hidden !important;

    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;

    white-space: nowrap !important;

    border: 0 !important;
}


/*
 * Se o PHP tiver uma tag <img> dentro do link,
 * usamos na mesma o pseudo-elemento acima.
 */

.cotec-team-linkedin__icon {
    display: none !important;
}

.cotec-team-linkedin:focus-visible {
    outline: 2px solid var(--cotec-black) !important;
    outline-offset: 4px;
}


/* =========================================================
   BOTÃO INVISÍVEL QUE ABRE O POPUP
========================================================= */

.cotec-team-card__open,
.cotec-team-card__open:hover,
.cotec-team-card__open:focus,
.cotec-team-card__open:active {
    position: absolute;

    z-index: 2;

    inset: 0;

    display: block;

    width: 100%;
    height: 100%;

    margin: 0;
    padding: 0;

    border: 0 !important;
    border-radius: 0 !important;

    color: transparent !important;
    background: transparent !important;

    box-shadow: none !important;

    cursor: pointer;

    appearance: none;
}

.cotec-team-card__open:focus-visible {
    outline: 3px solid var(--cotec-red) !important;
    outline-offset: -3px;
}


/* =========================================================
   DIRETOR-GERAL — CONTAINER
   MESMA LARGURA DA GRID DOS 5 CARDS

   5 × 230 = 1150
   4 × 16  =   64
              ----
              1214px
========================================================= */

.cotec-team-featured__grid {
    display: grid;

    grid-template-columns: 1fr;

    width: min(100%, 1214px);
    max-width: 1214px;

    margin-left: auto;
    margin-right: auto;

    padding: 0;
}


/* =========================================================
   DIRETOR-GERAL — CARD
========================================================= */

.cotec-team-card--featured {
    display: grid;

    grid-template-columns:
        clamp(400px, 36vw, 540px)
        minmax(0, 1fr);

    align-items: stretch;

    width: 100%;

    min-height: 320px;

    margin: 0;
    padding: 0;

    overflow: hidden;

    background: var(--cotec-white);

    box-shadow:
        0 16px 55px rgb(0 0 0 / 10%);
}





/* =========================================================
   DIRETOR — FOTO MAIOR
========================================================= */

.cotec-team-card--featured .cotec-team-card__image {
    position: relative;

    display: block;

    width: 100%;
    height: 100%;

    min-width: 0;
    min-height: 320px;

    max-width: none;
    max-height: none;

    margin: 0;
    padding: 0;

    aspect-ratio: auto;

    overflow: hidden;

    background: var(--cotec-color-grey-2);
}

.cotec-team-card--featured .cotec-team-card__photo {
    position: absolute !important;

    inset: 0 !important;

    display: block !important;

    width: 100% !important;
    height: 100% !important;

    min-width: 0 !important;
    min-height: 0 !important;

    max-width: none !important;
    max-height: none !important;

    margin: 0 !important;
    padding: 0 !important;

    object-fit: cover !important;
    object-position: center center !important;
}


/* =========================================================
   DIRETOR — CONTEÚDO
========================================================= */

.cotec-team-card--featured .cotec-team-card__content {
    display: flex;
    flex-direction: column;

    justify-content: center;

    width: 100%;
    min-width: 0;
    min-height: 320px;

    padding:
        clamp(28px, 3vw, 45px)
        clamp(35px, 4vw, 65px);

    background: var(--cotec-white);

    transition: background-color 250ms ease;
}

.cotec-team-card--featured .cotec-team-card__eyebrow {
    margin-bottom: 9px;

    font-size: 13px;
}

.cotec-team-card--featured .cotec-team-card__name {
    max-width: 800px;

    font-size: clamp(32px, 3vw, 48px);
    line-height: 1;
    letter-spacing: -0.035em;
}

.cotec-team-card--featured .cotec-team-card__role {
    max-width: 700px;

    margin-top: 10px;

    color: var(--cotec-red);

    font-size: clamp(17px, 1.2vw, 21px);
    line-height: 1.3;
}


/* =========================================================
   BIOGRAFIA — DIRETOR-GERAL
========================================================= */

.cotec-team-card--featured .cotec-team-card__bio {
    width: 100%;
    max-width: 950px;

    margin-top: 16px;

    color: var(--cotec-color-text);

    font-size: clamp(14px, 0.95vw, 16px);
    font-weight: 400;
    line-height: 1.55;
}

.cotec-team-card--featured .cotec-team-card__bio p {
    margin: 0 0 10px;
}

.cotec-team-card--featured .cotec-team-card__bio p:last-child {
    margin-bottom: 0;
}

.cotec-team-card--featured .cotec-team-card__bio a {
    position: relative;

    z-index: 5;

    color: var(--cotec-red);

    text-decoration: underline;
}


/* =========================================================
   DIRETOR — LINKEDIN
========================================================= */

.cotec-team-card--featured .cotec-team-card__actions {
    justify-content: flex-start;

    margin-top: 18px;
    padding-top: 0;
}

.cotec-team-card--featured .cotec-team-linkedin,
.cotec-team-card--featured .cotec-team-linkedin:hover,
.cotec-team-card--featured .cotec-team-linkedin:focus,
.cotec-team-card--featured .cotec-team-linkedin:active {
    width: 32px;
    height: 32px;

    min-width: 32px;
    min-height: 32px;

    background: transparent !important;
}

.cotec-team-card--featured .cotec-team-linkedin::before {
    width: 32px;
    height: 32px;
}


/* =========================================================
   HOVER
========================================================= */

@media (hover: hover) and (pointer: fine) {

    .cotec-team-card:hover {
        transform: translateY(-4px);

        box-shadow:
            0 15px 38px rgb(0 0 0 / 11%);
    }

    .cotec-team-card:hover .cotec-team-card__photo {
        transform: scale(1.035);
    }


    /* Membros */

    .cotec-team-grid .cotec-team-card:hover,
    .cotec-team-grid .cotec-team-card:hover
    .cotec-team-card__content {
        background: var(--cotec-hover);
    }

    .cotec-team-grid .cotec-team-card:hover
    .cotec-team-card__name,

    .cotec-team-grid .cotec-team-card:hover
    .cotec-team-card__role {
        color: var(--cotec-black);
    }


    /* LinkedIn */

    .cotec-team-linkedin:hover::before {
        transform: scale(1.08);

        opacity: 0.75;
    }


    /* Diretor */

    .cotec-team-card--featured:hover {
        background: var(--cotec-hover);

        box-shadow:
            0 22px 62px rgb(0 0 0 / 13%);
    }

    .cotec-team-card--featured:hover
    .cotec-team-card__content {
        background: var(--cotec-hover);
    }

    .cotec-team-card--featured:hover
    .cotec-team-card__role,

    .cotec-team-card--featured:hover
    .cotec-team-card__eyebrow {
        color: var(--cotec-black);
    }
}


/* =========================================================
   MODAL / POPUP
========================================================= */

.cotec-team-modal {
    width: min(1100px, calc(100% - 40px));
    max-width: none;

    max-height: calc(100vh - 40px);

    margin: auto;
    padding: 0;

    overflow: visible;

    border: 0;

    color: var(--cotec-black);
    background: transparent;
}

.cotec-team-modal::backdrop {
    background: rgb(0 0 0 / 68%);

    backdrop-filter: blur(4px);
}


/* =========================================================
   MODAL — CAIXA
========================================================= */

.cotec-team-modal__box {
    position: relative;

    width: 100%;
    max-height: calc(100vh - 40px);

    overflow: hidden;

    background: var(--cotec-white);

    box-shadow:
        0 30px 90px rgb(0 0 0 / 35%);
}


/* =========================================================
   MODAL — GRID
========================================================= */

.cotec-team-modal__layout {
    display: grid;

    grid-template-columns:
        minmax(340px, 42%)
        minmax(0, 58%);

    width: 100%;

    max-height: calc(100vh - 40px);
}


/* =========================================================
   MODAL — IMAGEM
========================================================= */

.cotec-team-modal__image {
    position: relative;

    min-height: 580px;

    overflow: hidden;

    background: var(--cotec-color-grey-2);
}

.cotec-team-modal__image[hidden] {
    display: none !important;
}

.cotec-team-modal__photo {
    position: absolute;

    inset: 0;

    display: block;

    width: 100%;
    height: 100%;

    max-width: none;

    margin: 0;
    padding: 0;

    object-fit: cover;
    object-position: center center;
}

.cotec-team-modal__photo[hidden] {
    display: none !important;
}


/* =========================================================
   MODAL — CONTEÚDO
========================================================= */

.cotec-team-modal__content {
    display: flex;
    flex-direction: column;

    justify-content: center;

    min-width: 0;

    max-height: calc(100vh - 40px);

    padding:
        clamp(36px, 4vw, 65px)
        clamp(36px, 5vw, 75px);

    overflow-y: auto;

    background: var(--cotec-white);
}


/* =========================================================
   MODAL — EYEBROW
========================================================= */

.cotec-team-modal__eyebrow {
    margin: 0 0 14px;

    color: var(--cotec-red);

    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;

    text-transform: uppercase;
    letter-spacing: 0.08em;
}


/* =========================================================
   MODAL — NOME
========================================================= */

.cotec-team-modal__name {
    margin: 0;

    color: var(--cotec-black);

    font-size: clamp(32px, 3vw, 50px);
    font-weight: 700;
    line-height: 1.03;
    letter-spacing: -0.035em;
}


/* =========================================================
   MODAL — CARGO
========================================================= */

.cotec-team-modal__role {
    margin: 14px 0 0;

    color: var(--cotec-black);

    font-size: clamp(17px, 1.25vw, 22px);
    font-weight: 500;
    line-height: 1.4;
}

.cotec-team-modal__role[hidden] {
    display: none !important;
}


/* =========================================================
   MODAL — BIOGRAFIA
========================================================= */

.cotec-team-modal__bio {
    width: 100%;

    margin-top: 20px;

    color: var(--cotec-color-text);

    font-size: 15px;
    font-weight: 400;
    line-height: 1.6;
}

.cotec-team-modal__bio p {
    margin: 0 0 12px;
}

.cotec-team-modal__bio p:last-child {
    margin-bottom: 0;
}

.cotec-team-modal__bio a {
    color: var(--cotec-red);

    text-decoration: underline;
}

.cotec-team-modal__bio[hidden] {
    display: none !important;
}


/* =========================================================
   MODAL — LINKEDIN
========================================================= */

.cotec-team-modal__linkedin,
.cotec-team-modal__linkedin:hover,
.cotec-team-modal__linkedin:focus,
.cotec-team-modal__linkedin:active {
    position: relative;

    display: inline-flex;

    width: 34px;
    height: 34px;

    min-width: 34px;
    min-height: 34px;

    align-items: center;
    justify-content: center;

    margin-top: 24px;
    padding: 0;

    border: 0 !important;
    border-radius: 0 !important;

    color: transparent !important;
    background: transparent !important;

    box-shadow: none !important;

    font-size: 0;

    text-decoration: none !important;
}

.cotec-team-modal__linkedin::before {
    content: "";

    display: block;

    width: 34px;
    height: 34px;

    background-image: var(--cotec-linkedin-logo);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;

    transition:
        transform 200ms ease,
        opacity 200ms ease;
}

.cotec-team-modal__linkedin-label {
    position: absolute !important;

    width: 1px !important;
    height: 1px !important;

    margin: -1px !important;
    padding: 0 !important;

    overflow: hidden !important;

    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;

    white-space: nowrap !important;

    border: 0 !important;
}

.cotec-team-modal__linkedin-icon {
    display: none !important;
}

.cotec-team-modal__linkedin:hover::before {
    transform: scale(1.08);

    opacity: 0.75;
}

.cotec-team-modal__linkedin:focus-visible {
    outline: 2px solid var(--cotec-black);
    outline-offset: 4px;
}

.cotec-team-modal__linkedin[hidden] {
    display: none !important;
}


/* =========================================================
   MODAL — FECHAR
========================================================= */

.cotec-team-modal__close,
.cotec-team-modal__close:focus,
.cotec-team-modal__close:active {
    position: absolute;

    top: 16px;
    right: 16px;

    z-index: 10;

    display: flex;

    width: 44px;
    height: 44px;

    align-items: center;
    justify-content: center;

    margin: 0;
    padding: 0;

    border: 0;
    border-radius: 50%;

    color: var(--cotec-black) !important;
    background: var(--cotec-white) !important;

    box-shadow:
        0 5px 20px rgb(0 0 0 / 15%);

    font-size: 29px;
    font-weight: 300;
    line-height: 1;

    cursor: pointer;

    appearance: none;
}

.cotec-team-modal__close:hover,
.cotec-team-modal__close:focus-visible {
    color: var(--cotec-white) !important;
    background: var(--cotec-red) !important;
}


/* =========================================================
   DESKTOP GRANDE
   5 CARDS

   largura:
   5 × 230 + 4 × 16 = 1214px
========================================================= */

@media (min-width: 1270px) {

    .cotec-team-grid {
        width: min(100%, 1420px);
        margin-left: auto;
        margin-right: auto;

        grid-template-columns: repeat(5, minmax(0, 1fr));

        column-gap: 16px;
        row-gap: 22px;
    }

    .cotec-team-featured__grid {
        width: min(100%, 1420px);
        max-width: 1420px;
    }
}

/* =========================================================
   DESKTOP PEQUENO
   4 CARDS

   4 × 230 + 3 × 16 = 968px
========================================================= */

@media (max-width: 1269px) {

    .cotec-team-grid {
        grid-template-columns:
            repeat(4, 230px);
    }

    .cotec-team-featured__grid {
        width: min(100%, 968px);
        max-width: 968px;
    }

    .cotec-team-card--featured {
        grid-template-columns:
            minmax(360px, 40%)
            minmax(0, 60%);
    }
}


/* =========================================================
   TABLET GRANDE
   3 CARDS

   3 × 230 + 2 × 16 = 722px
========================================================= */

@media (max-width: 1010px) {

    .cotec-team-container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .cotec-team-grid {
        grid-template-columns:
            repeat(3, 230px);
    }

    .cotec-team-featured__grid {
        width: min(100%, 722px);
        max-width: 722px;
    }

    .cotec-team-card--featured {
        grid-template-columns:
            minmax(300px, 42%)
            minmax(0, 58%);
    }

    .cotec-team-card--featured .cotec-team-card__image {
        min-height: 300px;
    }

    .cotec-team-card--featured .cotec-team-card__content {
        min-height: 300px;

        padding: 28px 32px;
    }

    .cotec-team-card--featured .cotec-team-card__name {
        font-size: clamp(30px, 4vw, 40px);
    }

    .cotec-team-card--featured .cotec-team-card__bio {
        font-size: 14px;
    }
}


/* =========================================================
   TABLET
   2 CARDS

   2 × 230 + 1 × 16 = 476px
========================================================= */

@media (max-width: 760px) {

    .cotec-team-grid {
        grid-template-columns:
            repeat(2, 230px);
    }

    .cotec-team-featured__grid {
        width: min(100%, 476px);
        max-width: 476px;
    }


    /* Diretor passa para vertical */

    .cotec-team-card--featured {
        grid-template-columns: 1fr;
    }

    .cotec-team-card--featured::after {
        top: auto;
        right: 0;
        bottom: 0;
        left: 0;

        width: 100%;
        height: 5px;
    }

    .cotec-team-card--featured .cotec-team-card__image {
        width: 100%;
        height: auto;

        min-height: 0;

        aspect-ratio: 16 / 10;
    }

    .cotec-team-card--featured .cotec-team-card__content {
        min-height: 0;

        padding: 30px 28px 38px;
    }


    /* Modal vertical */

    .cotec-team-modal__layout {
        grid-template-columns: 1fr;

        max-height: none;
    }

    .cotec-team-modal__box {
        overflow-y: auto;
    }

    .cotec-team-modal__image {
        min-height: 0;

        aspect-ratio: 16 / 10;
    }

    .cotec-team-modal__content {
        max-height: none;

        overflow: visible;
    }
}


@media (max-width: 520px) {

    .cotec-team-container {
        padding-left: clamp(30px, 9vw, 42px);
        padding-right: clamp(30px, 9vw, 42px);
    }


    /* HEADER */

    .cotec-team-header {
        padding-top: 38px;
        padding-bottom: 32px;
    }

    .cotec-team-header__title {
        font-size: clamp(34px, 11vw, 44px);
    }


    /* DIRETOR-GERAL */

    .cotec-team-featured {
        padding-top: 10px;
        padding-bottom: 24px;
    }

    .cotec-team-featured .cotec-team-container {
    padding-left: clamp(30px, 9vw, 42px);
    padding-right: clamp(30px, 9vw, 42px);
}

    .cotec-team-featured__grid {
        width: 100%;
        max-width: none;
    }

    .cotec-team-card--featured {
        width: 100%;
    }

    .cotec-team-card--featured .cotec-team-card__image {
        aspect-ratio: 16 / 10;
    }

    .cotec-team-card--featured .cotec-team-card__content {
        padding: 26px 22px 32px;
    }

    .cotec-team-card--featured .cotec-team-card__name {
        font-size: 33px;
    }

    .cotec-team-card--featured .cotec-team-card__role {
        font-size: 17px;
    }

    .cotec-team-card--featured .cotec-team-card__bio {
        margin-top: 14px;

        font-size: 14px;
        line-height: 1.5;
    }


    /* RESTANTE EQUIPA */

    .cotec-team-members {
        padding-top: 14px;
        padding-bottom: 65px;
    }

    .cotec-team-grid {
        grid-template-columns: 230px;
        column-gap: 10px;
        row-gap: 22px;
        grid-template-columns: repeat(2, auto);
    }


    /* MODAL */

    .cotec-team-modal {
        width: calc(100% - 24px);
        max-height: calc(100vh - 24px);
    }

    .cotec-team-modal__box {
        max-height: calc(100vh - 24px);
    }

    .cotec-team-modal__image {
        aspect-ratio: 4 / 3;
    }

    .cotec-team-modal__content {
        padding: 30px 22px 34px;
    }

    .cotec-team-modal__name {
        font-size: 33px;
    }

    .cotec-team-modal__role {
        font-size: 17px;
    }

    .cotec-team-modal__bio {
        margin-top: 18px;

        font-size: 14px;
        line-height: 1.55;
    }
}

/* =========================================================
   MOBILE PEQUENO
========================================================= */

@media (max-width: 360px) {

    .cotec-team-container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .cotec-team-header__title {
        font-size: 32px;
    }
}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .cotec-team-card,
    .cotec-team-card__photo,
    .cotec-team-card__content,
    .cotec-team-card__name,
    .cotec-team-card__role,
    .cotec-team-card__eyebrow,
    .cotec-team-linkedin::before,
    .cotec-team-modal__linkedin::before {
        transition: none !important;
    }
}
