/* =========================================================
   DEPOIMENTOS - PÁGINA
   ========================================================= */


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

.page-depoimentos {
    background: var(--maestria-background);
}

.depoimentos-hero {
    padding: 105px 0 95px;
    background: var(--maestria-dark);
}

.depoimentos-hero__content {
    max-width: 820px;
}

.depoimentos-hero h1 {
    max-width: 800px;
    margin: 0 0 25px;
    color: #fff;
    font-size: clamp(42px, 5vw, 68px);
    font-weight: 700;
    line-height: 1.06;
    letter-spacing: -0.04em;
}

.depoimentos-hero p {
    max-width: 720px;
    margin: 0;
    color: rgba(255, 255, 255, .78);
    font-size: 18px;
    line-height: 1.75;
}


/* =========================================================
   LISTA DE DEPOIMENTOS
   ========================================================= */

.depoimentos-lista {
    padding: 105px 0 115px;
    background: var(--maestria-background-light);
}

.depoimentos-section-heading {
    max-width: 760px;
    margin: 0 auto 55px;
    text-align: center;
}

.depoimentos-section-heading h2 {
    margin: 0 0 18px;
    color: var(--maestria-dark);
    font-size: clamp(34px, 4vw, 50px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.035em;
}

.depoimentos-section-heading p {
    max-width: 650px;
    margin: 0 auto;
    color: var(--maestria-secondary);
    font-size: 17px;
    line-height: 1.7;
}


/* =========================================================
   GRID
   ========================================================= */

.depoimentos-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    align-items: stretch;
}


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

.depoimento-card {
    position: relative;

    display: flex;
    flex-direction: column;

    min-width: 0;
    padding: 38px 34px 32px;

    box-sizing: border-box;

    background: var(--maestria-background);
    border: 1px solid var(--maestria-border);
    border-radius: 16px;

    box-shadow: 0 8px 30px rgba(0, 0, 0, .035);

    transition:
        transform .25s ease,
        box-shadow .25s ease,
        border-color .25s ease;
}

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

    border-color: rgba(195, 19, 35, .18);

    box-shadow: 0 16px 40px rgba(0, 0, 0, .07);
}


/* =========================================================
   CARD DESTAQUE
   ========================================================= */

.depoimento-card--destaque {
    border-color: rgba(195, 19, 35, .25);
}

.depoimento-card--destaque::before {
    content: "";

    position: absolute;
    top: 0;
    left: 28px;
    right: 28px;

    height: 3px;

    background: var(--maestria-primary);
    border-radius: 0 0 4px 4px;
}


/* =========================================================
   ASPAS
   ========================================================= */

.depoimento-card__quote {
    margin: 0 0 4px;

    color: var(--maestria-primary);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 58px;
    font-weight: 700;
    line-height: .8;
}


/* =========================================================
   TEXTO
   ========================================================= */

.depoimento-card__text {
    flex: 1;

    margin: 0 0 28px;

    color: var(--maestria-dark);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 17px;
    line-height: 1.7;
}

.depoimento-card__text p {
    margin: 0 0 1em;
}

.depoimento-card__text p:last-child {
    margin-bottom: 0;
}

.depoimento-card__text a {
    color: var(--maestria-primary);
}

.depoimento-card__text strong {
    font-weight: 700;
}


/* =========================================================
   AUTOR
   ========================================================= */

.depoimento-card__author {
    display: flex;
    align-items: center;
    gap: 15px;

    margin-top: auto;
    padding-top: 22px;

    border-top: 1px solid var(--maestria-border);
}


/* =========================================================
   LOGO
   ========================================================= */

.depoimento-card__logo {
    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 62px;

    width: 62px;
    height: 62px;

    padding: 7px;

    box-sizing: border-box;

    background: #fff;
    border: 1px solid var(--maestria-border);
    border-radius: 10px;

    overflow: hidden;
}

.depoimento-card__logo img {
    display: block;

    width: 100%;
    height: 100%;

    max-width: 100%;
    max-height: 100%;

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


/* =========================================================
   INFORMAÇÕES DO AUTOR
   ========================================================= */

.depoimento-card__author-info {
    display: flex;
    flex-direction: column;

    min-width: 0;

    line-height: 1.4;
}

.depoimento-card__author-info strong {
    display: block;

    color: var(--maestria-dark);
    font-size: 15px;
    font-weight: 700;
}

.depoimento-card__author-info > span {
    display: block;

    margin-top: 2px;

    color: var(--maestria-secondary);
    font-size: 14px;
    font-weight: 600;
}

.depoimento-card__author-info small {
    display: block;

    margin-top: 3px;

    color: var(--maestria-secondary);
    font-size: 12px;
    line-height: 1.4;
}


/* =========================================================
   META
   ========================================================= */

.depoimento-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;

    gap: 8px;

    margin-top: 20px;
}

.depoimento-card__meta span {
    display: inline-flex;
    align-items: center;

    min-height: 28px;
    padding: 5px 10px;

    box-sizing: border-box;

    color: var(--maestria-secondary);
    background: var(--maestria-background-light);

    border: 1px solid var(--maestria-border);
    border-radius: 999px;

    font-size: 12px;
    line-height: 1.2;
}

.depoimento-card__meta span:first-child {
    color: var(--maestria-primary);
}


/* =========================================================
   VÍDEO DO DEPOIMENTO
   ========================================================= */

.depoimento-card__video {
    margin-top: 18px;
}

.depoimento-card__video a {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    color: var(--maestria-primary);

    font-size: 13px;
    font-weight: 700;
    text-decoration: none;

    transition:
        color .2s ease,
        gap .2s ease;
}

.depoimento-card__video a span {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 24px;
    height: 24px;

    color: #fff;
    background: var(--maestria-primary);
    border-radius: 50%;

    font-size: 9px;
    line-height: 1;

    transition:
        background-color .2s ease,
        transform .2s ease;
}

.depoimento-card__video a:hover,
.depoimento-card__video a:focus-visible {
    color: var(--maestria-primary-dark);
}

.depoimento-card__video a:hover span,
.depoimento-card__video a:focus-visible span {
    background: var(--maestria-primary-dark);
    transform: scale(1.05);
}


/* =========================================================
   ESTADO VAZIO
   ========================================================= */

.depoimentos-empty {
    max-width: 700px;
    margin: 0 auto;

    padding: 45px 35px;

    text-align: center;

    background: var(--maestria-background);
    border: 1px solid var(--maestria-border);
    border-radius: 16px;
}

.depoimentos-empty p {
    margin: 0;

    color: var(--maestria-secondary);
    font-size: 16px;
    line-height: 1.7;
}


/* =========================================================
   VÍDEOS
   ========================================================= */

.depoimentos-videos {
    padding: 105px 0 115px;
    background: var(--maestria-background);
}

.depoimentos-videos__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}


/* =========================================================
   CARD DE VÍDEO
   ========================================================= */

.depoimento-video-card {
    overflow: hidden;

    background: var(--maestria-background);
    border: 1px solid var(--maestria-border);
    border-radius: 16px;

    box-shadow: 0 8px 30px rgba(0, 0, 0, .035);

    transition:
        transform .25s ease,
        box-shadow .25s ease;
}

.depoimento-video-card:hover {
    transform: translateY(-4px);

    box-shadow: 0 16px 40px rgba(0, 0, 0, .07);
}


/* =========================================================
   THUMBNAIL
   ========================================================= */

.depoimento-video-card__thumbnail {
    position: relative;

    display: block;

    aspect-ratio: 16 / 9;

    overflow: hidden;

    background: var(--maestria-background-light);
}

.depoimento-video-card__thumbnail img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform .4s ease;
}

.depoimento-video-card:hover
.depoimento-video-card__thumbnail img {
    transform: scale(1.035);
}


/* =========================================================
   PLAY
   ========================================================= */

.depoimento-video-card__play {
    position: absolute;
    top: 50%;
    left: 50%;

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

    width: 58px;
    height: 58px;

    color: #fff;
    background: var(--maestria-primary);

    border-radius: 50%;

    font-size: 17px;
    line-height: 1;

    transform: translate(-50%, -50%);

    box-shadow: 0 8px 25px rgba(0, 0, 0, .2);

    transition:
        transform .25s ease,
        background-color .25s ease;
}

.depoimento-video-card:hover
.depoimento-video-card__play {
    background: var(--maestria-primary-dark);

    transform: translate(-50%, -50%) scale(1.08);
}


/* =========================================================
   CONTEÚDO DO CARD DE VÍDEO
   ========================================================= */

.depoimento-video-card__content {
    padding: 24px 25px 26px;
}

.depoimento-video-card__content h3 {
    margin: 0 0 15px;

    color: var(--maestria-dark);

    font-size: 19px;
    font-weight: 700;
    line-height: 1.3;
}

.depoimento-video-card__content a {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    color: var(--maestria-primary);

    font-size: 14px;
    font-weight: 700;
    text-decoration: none;

    transition:
        color .2s ease,
        gap .2s ease;
}

.depoimento-video-card__content a:hover,
.depoimento-video-card__content a:focus-visible {
    color: var(--maestria-primary-dark);
    gap: 11px;
}


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

.depoimentos-cta {
    padding: 0 0 105px;
    background: var(--maestria-background);
}

.depoimentos-cta__box {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(260px, .7fr);
    gap: 60px;
    align-items: center;

    padding: 58px 65px;

    box-sizing: border-box;

    background: var(--maestria-background-light);

    border: 1px solid var(--maestria-border);
    border-radius: 18px;
}

.depoimentos-cta__content h2 {
    max-width: 650px;

    margin: 0 0 18px;

    color: var(--maestria-dark);

    font-size: clamp(30px, 3.5vw, 44px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.depoimentos-cta__content p {
    max-width: 650px;

    margin: 0;

    color: var(--maestria-secondary);

    font-size: 16px;
    line-height: 1.7;
}

.depoimentos-cta__action {
    display: flex;
    justify-content: flex-end;
}


/* =========================================================
   RESPONSIVO
   ========================================================= */

@media (max-width: 1100px) {

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

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

    .depoimentos-cta__box {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 40px;
        padding: 50px;
    }
}


@media (max-width: 900px) {

    .depoimentos-hero {
        padding: 85px 0 80px;
    }

    .depoimentos-lista,
    .depoimentos-videos {
        padding: 85px 0 95px;
    }

    .depoimentos-cta {
        padding-bottom: 85px;
    }

    .depoimentos-section-heading {
        margin-bottom: 45px;
    }

    .depoimentos-cta__box {
        grid-template-columns: 1fr;
    }

    .depoimentos-cta__action {
        justify-content: flex-start;
    }
}


@media (max-width: 700px) {

    .depoimentos-hero {
        padding: 72px 0 68px;
    }

    .depoimentos-hero h1 {
        font-size: clamp(38px, 10vw, 52px);
    }

    .depoimentos-hero p {
        font-size: 16px;
    }

    .depoimentos-lista,
    .depoimentos-videos {
        padding: 70px 0 80px;
    }

    .depoimentos-grid,
    .depoimentos-videos__grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .depoimento-card {
        padding: 34px 28px 28px;
    }

    .depoimento-card__text {
        font-size: 16px;
        line-height: 1.65;
    }

    .depoimentos-cta {
        padding-bottom: 70px;
    }

    .depoimentos-cta__box {
        padding: 38px 28px;
        border-radius: 15px;
    }

    .depoimentos-cta__content h2 {
        font-size: 32px;
    }
}


@media (max-width: 480px) {

    .depoimentos-section-heading h2 {
        font-size: 32px;
    }

    .depoimentos-section-heading p {
        font-size: 15px;
    }

    .depoimento-card {
        padding: 30px 23px 25px;
        border-radius: 14px;
    }

    .depoimento-card__quote {
        font-size: 52px;
    }

    .depoimento-card__author {
        gap: 12px;
    }

    .depoimento-card__logo {
        flex-basis: 56px;
        width: 56px;
        height: 56px;
    }

    .depoimento-card__author-info strong {
        font-size: 14px;
    }

    .depoimento-card__author-info > span {
        font-size: 13px;
    }

    .depoimento-card__meta {
        margin-top: 16px;
    }

    .depoimento-video-card__content {
        padding: 21px 21px 23px;
    }

    .depoimento-video-card__content h3 {
        font-size: 18px;
    }

    .depoimento-video-card__play {
        width: 52px;
        height: 52px;
        font-size: 15px;
    }

    .depoimentos-cta__box {
        padding: 32px 23px;
    }

    .depoimentos-cta__content h2 {
        font-size: 29px;
    }
}


/* =========================================================
   ACESSIBILIDADE
   ========================================================= */

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

    .depoimento-card,
    .depoimento-video-card,
    .depoimento-video-card__thumbnail img,
    .depoimento-video-card__play,
    .depoimento-video-card__content a,
    .depoimento-card__video a,
    .depoimento-card__video a span {
        transition: none;
    }
}