/* ============================================================
   DEPOIMENTOS — seção da home (prefixado para não conflitar)
   Colégio Metaverso
   ============================================================ */

/* -------- Container da seção — fundo gradiente -------- */
.home-depoimentos {
    padding: 80px 0;
    background: linear-gradient(135deg, #022340 0%, #0a3a5c 55%, #0d5c4d 100%);
    position: relative;
    overflow: hidden;
}

/* Textura sutil opcional (bolinhas/mapa) — pode remover se não quiser */
.home-depoimentos::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url('../images/graficos/map-shape-3.png') center/cover no-repeat;
    opacity: .06;
    pointer-events: none;
    z-index: 0;
}
.home-depoimentos > .container {
    position: relative;
    z-index: 1;
}

/* -------- Títulos — brancos para contraste -------- */
.home-depoimentos .home-depoimentos-pre-title {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #50c6db;
    margin-bottom: 8px;
}
.home-depoimentos .home-depoimentos-title {
    font-size: 32px;
    line-height: 1.2;
    margin: 0 0 12px;
    color: #ffffff;
}
.home-depoimentos .home-depoimentos-section-text {
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, .75);
    margin: 0;
}

/* -------- Controles (setas) — claros sobre fundo escuro -------- */
.home-depoimentos-controls {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}
.home-depoimentos-control {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .25);
    background: rgba(255, 255, 255, .08);
    color: #ffffff;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.home-depoimentos-control:hover {
    background: #50c6db;
    border-color: #50c6db;
    color: #022340;
    transform: translateY(-2px);
}
.home-depoimentos-control:focus-visible {
    outline: 2px solid #50c6db;
    outline-offset: 2px;
}

/* -------- Carrossel — barra de rolagem oculta -------- */
.home-depoimentos-scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;

    /* Esconde a scrollbar em todos os navegadores */
    scrollbar-width: none;          /* Firefox */
    -ms-overflow-style: none;       /* IE/Edge antigo */
}
.home-depoimentos-scroll::-webkit-scrollbar {
    display: none;                  /* Chrome/Safari/Edge */
    width: 0;
    height: 0;
}

.home-depoimentos-card-wrap {
    flex: 0 0 auto;
    width: 340px;
    scroll-snap-align: start;
}

/* -------- Card — fundo branco sobre gradiente -------- */
.home-depoimentos-card {
    background: #ffffff;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 14px;
    padding: 28px 24px;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
}
.home-depoimentos-card:hover {
    box-shadow: 0 16px 40px rgba(0, 0, 0, .25);
    border-color: #50c6db;
    transform: translateY(-4px);
}

.home-depoimentos-quote {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 42px;
    line-height: 1;
    color: #50c6db;
    opacity: .35;
    font-family: Georgia, serif;
}
.home-depoimentos-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 16px;
    border: 3px solid #f1f5f9;
}
.home-depoimentos-text {
    font-size: 14px;
    line-height: 1.65;
    color: #4a5568;
    margin: 0 0 20px;
    flex-grow: 1;
}
.home-depoimentos-name {
    font-size: 16px;
    font-weight: 700;
    color: #022340;
    margin: 0 0 4px;
}
.home-depoimentos-role {
    display: block;
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 12px;
}
.home-depoimentos-stars {
    font-size: 16px;
    color: #f5b301;
    letter-spacing: 2px;
}

/* -------- Card de vídeo -------- */
.home-depoimentos-card--video .home-depoimentos-video-btn {
    display: inline-block;
    margin: 4px 0 16px;
    cursor: pointer;
    text-decoration: none;
    line-height: 0;
    transition: transform .25s ease, opacity .2s ease;
}
.home-depoimentos-card--video .home-depoimentos-video-btn img {
    display: block;
    width: auto;
    max-width: 180px;
    height: auto;
    border: 0;
}
.home-depoimentos-card--video .home-depoimentos-video-btn:hover {
    transform: scale(1.04);
    opacity: .9;
}
.home-depoimentos-card--video .home-depoimentos-video-btn:focus-visible {
    outline: 2px solid #50c6db;
    outline-offset: 4px;
    border-radius: 6px;
}

/* -------- Modal de vídeo -------- */
.home-depoimentos-modal {
    position: fixed;
    inset: 0;
    z-index: 99998;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(2, 35, 65, .92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity .3s ease;
}
.home-depoimentos-modal.is-open {
    display: flex;
    opacity: 1;
}
.home-depoimentos-modal.is-closing {
    opacity: 0;
}
.home-depoimentos-modal-inner {
    position: relative;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
    transform: scale(.94);
    opacity: 0;
    transition: transform .35s cubic-bezier(.2, .9, .3, 1.2), opacity .3s ease;
}
.home-depoimentos-modal.is-open .home-depoimentos-modal-inner {
    transform: scale(1);
    opacity: 1;
}
.home-depoimentos-modal-inner video {
    display: block;
    width: 100%;
    height: auto;
    max-height: 90vh;
    background: #000;
}
.home-depoimentos-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: rgba(2, 35, 65, .85);
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s ease, transform .2s ease;
    font-family: Arial, sans-serif;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .4);
}
.home-depoimentos-modal-close:hover {
    background: #022340;
    transform: rotate(90deg);
}
.home-depoimentos-modal-close:focus-visible {
    outline: 2px solid #50c6db;
    outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
    .home-depoimentos-modal,
    .home-depoimentos-modal-inner,
    .home-depoimentos-modal-close {
        transition: none !important;
    }
}

/* -------- Responsivo -------- */
@media (max-width: 991px) {
    .home-depoimentos .home-depoimentos-title { font-size: 26px; }
    .home-depoimentos-controls { justify-content: flex-start; margin-top: 16px; }
}
@media (max-width: 767px) {
    .home-depoimentos { padding: 60px 0; }
    .home-depoimentos .home-depoimentos-title { font-size: 22px; }
    .home-depoimentos-card-wrap { width: 280px; }
    .home-depoimentos-card { padding: 22px 20px; }
    .home-depoimentos-modal { padding: 10px; }
    .home-depoimentos-modal-inner { max-height: 80vh; border-radius: 8px; }
    .home-depoimentos-modal-close { width: 38px; height: 38px; font-size: 22px; top: 6px; right: 6px; }
}