/* Depoimentos de clientes: card, painel "ler completo", carrossel, vídeo em caixa. Usado na home e em /cases-de-sucesso/. */
/* ===== Depoimentos: carrossel grande (vídeo) e carrossel pequeno (texto) ===== */
.dep-tag { align-self: flex-start; display: inline-block; margin-bottom: 1rem; padding: 0.25rem 0.75rem; border-radius: 999px; background: #DDF3F3; color: var(--teal-deep, #005454); font: 700 0.75rem var(--v2-display, inherit); letter-spacing: 0.04em; }
.dep-inst { margin: 0 0 1rem; font: 800 0.875rem var(--v2-display, inherit); letter-spacing: 0.1em; text-transform: uppercase; color: var(--gray-500); }
.dep-big__q { margin: 0; }
.dep-big__q p { margin: 0; font: 500 clamp(1.125rem, 1.5vw, 1.375rem)/1.55 var(--v2-display, inherit); letter-spacing: -0.01em; color: var(--gray-900); text-wrap: pretty; }
.dep-who { display: grid; gap: 0.15rem; margin: 1.75rem 0 0; padding-top: 1.25rem; border-top: 1px solid #E4E6E6; }
.dep-who b { font-size: 1rem; color: var(--gray-900); }
.dep-who span { font-size: 0.9375rem; color: var(--gray-600); }
.dep-media--ph { display: grid; place-items: center; background: linear-gradient(145deg, #0B4A4A, #062A2A); }
.dep-media__hex { position: absolute; inset: 8%; width: 84%; height: 84%; fill: rgba(255,255,255,0.04); stroke: rgba(61,213,214,0.45); stroke-width: 2; }
.dep-media__inst { position: relative; padding: 0 12%; text-align: center; font: 800 clamp(1.6rem, 2.6vw, 2.4rem)/1.1 var(--v2-display, inherit); letter-spacing: -0.03em; color: #fff; }


.dep-modal { margin: auto; width: min(34rem, 94vw, calc(84vh * 0.8)); padding: 0; border: 0; border-radius: 1rem; background: #000; overflow: visible; }
.dep-modal::backdrop { background: rgba(10,10,10,0.78); }
.dep-modal__box { aspect-ratio: 4 / 5; overflow: hidden; border-radius: 1rem; }
.dep-modal__box iframe, .dep-modal__box video { display: block; width: 100%; height: 100%; border: 0; }
.dep-modal__x { position: absolute; top: -2.75rem; right: 0; width: 2.25rem; height: 2.25rem; border: 0; border-radius: 50%; background: rgba(255,255,255,0.92); color: #1A1A1A; font-size: 1.5rem; line-height: 1; cursor: pointer; }

/* Cards em vídeo: trecho em destaque como título, depoimento completo menor embaixo */
:is(.provas-case, .dep-card) .dep-title { margin: 0 0 1.5rem; font: 700 clamp(1.5rem, 2.3vw, 2rem)/1.25 var(--v2-display, inherit) !important; letter-spacing: -0.02em; color: var(--gray-900); text-wrap: balance; }
.dep-title .v2-acc { color: var(--teal-ink-soft, #0A8F8F); }
.dep-big__q--full { padding: 1rem 1.25rem; border-left: 3px solid var(--teal); border-radius: 0 0.5rem 0.5rem 0; background: var(--slate-50, #F6F8F8); }
.dep-big__q--full p { font: 400 0.9688rem/1.65 var(--font-inter, inherit); letter-spacing: 0; color: var(--gray-700); }
.dep-big__q--full + .dep-who { margin-top: 1.5rem; }

/* Depoimentos em texto: carrossel automático, dois cards por vez (um no celular); "Ler depoimento completo" sobe um painel de dentro do card */
.dep-read { width: min(1240px, 91vw); margin: clamp(4rem, 7vw, 6rem) auto 0; }
.dep-read__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.dep-read__title { margin: 0; font: 800 clamp(1.25rem, 2vw, 1.625rem) var(--v2-display, inherit); letter-spacing: -0.02em; color: var(--gray-900); }
.dep-read__ctl { display: flex; flex: none; gap: 0.5rem; }
.dep-track { display: flex; gap: 1.5rem; padding-block: 1.5rem; margin-block: -1.5rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.dep-track::-webkit-scrollbar { display: none; }
.dep-card { position: relative; flex: 0 0 calc((100% - 1.5rem) / 2); scroll-snap-align: start; display: flex; flex-direction: column; min-height: 22rem; overflow: hidden; border: 1px solid #E4E6E6; border-radius: 1.5rem; background: #fff; box-shadow: 0 10px 30px rgba(26,26,26,0.05); }
.dep-card__body { display: flex; flex: 1; flex-direction: column; min-width: 0; padding: clamp(1.75rem, 2.8vw, 2.5rem); }
.dep-card__top { display: flex; align-items: center; min-height: 2.4rem; margin-bottom: 1.25rem; }
.dep-card__top .dep-inst { margin: 0; }
.dep-card__top .dep-inst--logo img { max-width: 8rem; filter: grayscale(1); opacity: .7; }
.dep-card .dep-title { margin-bottom: 1.75rem; font-size: clamp(1.3rem, 1.8vw, 1.6rem) !important; }
.dep-card__lead { margin: 0 0 1.75rem; font: 600 clamp(1.1rem, 1.4vw, 1.3rem)/1.4 var(--v2-display, inherit); color: var(--gray-900); }
.dep-card__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 1.5rem; margin-top: auto; }
.dep-card__foot { display: grid; gap: 0.75rem; margin-top: 0.75rem; padding-top: 1.25rem; border-top: 1px solid #E4E6E6; }
.dep-card__who { display: flex; align-items: center; gap: 1rem; min-width: 0; }
.dep-avatar.dep-card__avatar { width: 4.5rem; height: 4.5rem; background: var(--teal-deep, #005454); color: #fff; font-size: 1.25rem; box-shadow: 0 0 0 3px #fff, 0 0 0 5px #BFE8E8; }
.dep-card__name { display: grid; gap: 0.1rem; margin: 0; min-width: 0; }
.dep-card__name b { font-size: 1rem; color: var(--gray-900); }
.dep-card__name span { font-size: 0.875rem; line-height: 1.35; color: var(--gray-600); }
.dep-more { justify-self: start; display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.35rem 0; border: 0; background: none; font: 700 0.875rem var(--v2-display, inherit); color: var(--teal-ink-soft, #0A8F8F); cursor: pointer; transition: color 0.2s, gap 0.2s; }
.dep-more:hover { color: var(--teal-deep, #005454); gap: 0.6rem; }
.dep-dots { display: flex; justify-content: center; gap: 0.5rem; margin-top: 1.75rem; }
.dep-dot { position: relative; width: 0.5rem; height: 0.5rem; padding: 0; overflow: hidden; border: 0; border-radius: 999px; background: #D5D9D9; cursor: pointer; transition: width 0.3s var(--ease-out-smooth, ease), background-color 0.2s; }
.dep-dot.is-on { width: 2.25rem; }
.dep-dot::after { content: ""; position: absolute; inset: 0; background: var(--teal); transform: scaleX(0); transform-origin: left; }
.dep-dot.is-on::after { animation: dep-prog 9s linear forwards; }
.dep-read.is-offscreen .dep-dot::after, .dep-read.is-open .dep-dot::after, .dep-read:hover .dep-dot::after, .dep-read:focus-within .dep-dot::after { animation-play-state: paused; }
.dep-read.is-manual .dep-dot.is-on::after { animation: none; transform: none; }
@keyframes dep-prog { to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .dep-dot.is-on::after { animation: none !important; transform: none; } }
.dep-sheet { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; padding: clamp(1.5rem, 3vw, 2.5rem); overflow-y: auto; background: #fff; transform: translateY(102%); visibility: hidden; transition: transform 0.45s var(--ease-out-smooth, ease), visibility 0s 0.45s; }
.is-open > .dep-sheet { transform: none; visibility: visible; transition-delay: 0s; }
.dep-sheet__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.dep-sheet__label { font: 800 0.75rem var(--v2-display, inherit); letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal-ink-soft, #0A8F8F); }
.dep-sheet__close { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border: 1px solid #E4E6E6; border-radius: 50%; background: #fff; color: var(--gray-900); cursor: pointer; transition: border-color 0.2s, background-color 0.2s, color 0.2s; }
.dep-sheet__close:hover { border-color: var(--teal); background: var(--teal); color: #fff; }
.dep-sheet__q { margin: 0; padding-left: 1.25rem; border-left: 3px solid var(--teal); }
.dep-sheet__q p { margin: 0; font: 400 1rem/1.65 var(--font-inter, inherit); color: var(--gray-700); text-wrap: pretty; }
.dep-sheet .dep-who { margin-top: auto; }
.dep-sheet__q + .dep-who { margin-top: 1.5rem; }
@media (max-width: 760px) {
  .dep-read__ctl { display: none; }
  .dep-card { flex-basis: 100%; min-height: 0; }
}
.dep-avatar { flex: none; display: grid; place-items: center; width: 3rem; height: 3rem; overflow: hidden; border-radius: 50%; background: #DDF3F3; color: var(--teal-deep, #005454); font: 800 0.9375rem var(--v2-display, inherit); }
.dep-avatar img { width: 100%; height: 100%; object-fit: cover; }
.dep-inst--logo { display: flex; align-items: center; min-height: 2.4rem; margin: 0 0 1.25rem; }
.dep-inst--logo img { display: block; width: auto; max-width: 11rem; object-fit: contain; }

/* Cards em vídeo: etiqueta do segmento à esquerda e logo (ou nome) da instituição à direita, na mesma linha */
.dep-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.dep-head .dep-tag { margin: 0; }
.dep-head .dep-inst { margin: 0; min-height: 0; text-align: right; }
.dep-head .dep-inst--logo img { max-width: 8.5rem; filter: grayscale(1); opacity: .7; }

/* Cards em vídeo: título + rodapé com "ler completo"; imagem maior; o texto completo sobe sobre a coluna de texto */
.dep-foot { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; margin-top: auto; padding-top: 1.25rem; border-top: 1px solid #E4E6E6; }
.dep-foot .dep-who { margin: 0; padding: 0; border: 0; flex: 1 1 auto; min-width: 0; }
.dep-foot .dep-more { flex: none; justify-self: auto; }
@media (max-width: 640px) { .dep-foot { flex-direction: column; align-items: flex-start; gap: 0.5rem; } }

/* Página /cases-de-sucesso/: grade de cards */
.dep-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem; }
.dep-grid .dep-card { flex: none; min-height: 23rem; }
.dep-card__top .dep-tag { margin: 0 0 0 auto; }
.dep-more--play { color: var(--gray-900); }
@media (max-width: 760px) { .dep-grid { grid-template-columns: 1fr; } }
.dep-read__head--bare { justify-content: flex-end; }

/* Cards de texto: a frase em destaque fica centralizada na altura livre entre a instituição e o "ler completo" */
.dep-card .dep-card__body > .dep-title, .dep-card .dep-card__body > .dep-card__lead { margin-block: auto; padding-block: 1.25rem; }
.dep-card .dep-card__actions { margin-top: 0; }

/* Dentro de uma seção de página (ex.: Educação): ocupa a largura toda do container, alinhado ao título e aos números */
.v2-sec .dep-read { width: 100%; margin-top: 2.5rem; }

/* Card em vídeo: foto da pessoa ao lado do nome; a coluna da direita fica para o vídeo vertical (4x5) */
.dep-foot__who { display: flex; align-items: center; gap: 0.9rem; flex: 1 1 auto; min-width: 0; }
.dep-avatar.dep-foot__avatar { width: 3.5rem; height: 3.5rem; background: var(--teal-deep, #005454); color: #fff; font-size: 1rem; box-shadow: 0 0 0 2px #fff, 0 0 0 4px #BFE8E8; }
.dep-actions { padding-bottom: 1.25rem; }
.provas-case__visual-inner.dep-media--ph.has-video .dep-media__inst { transform: translateY(-4.6rem); }
.dep-inline { position: absolute; inset: 0; z-index: 2; }
.dep-inline.is-playing { background: #000; }
.dep-inline iframe, .dep-inline video { position: absolute; inset: 0; display: block; width: 100%; height: 100%; border: 0; object-fit: cover; }
.dep-play { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; width: 100%; padding: 0; padding-top: 5.5rem; border: 0; background: none; color: #fff; cursor: pointer; }
.dep-inline.is-playing .dep-play { display: none; }
.dep-play__btn { position: relative; display: grid; place-items: center; width: 4.75rem; height: 4.75rem; border-radius: 50%; background: #fff; color: var(--teal-ink, #0A8F8F); box-shadow: 0 14px 34px rgba(0,0,0,0.38); transition: transform 0.25s var(--ease-out-smooth, ease-out); }
.dep-play__btn .icon { margin-left: 3px; fill: currentColor; }
.dep-play__btn::after { content: ""; position: absolute; inset: -0.55rem; border: 2px solid rgba(255,255,255,0.55); border-radius: 50%; animation: depPlayRing 2.4s ease-out infinite; }
.dep-play:hover .dep-play__btn, .dep-play:focus-visible .dep-play__btn { transform: scale(1.07); }
.dep-play:focus-visible { outline: 3px solid #fff; outline-offset: -6px; }
.dep-play__label { font: 700 0.75rem/1 var(--font-jakarta, inherit); letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.92); }
@keyframes depPlayRing { 0% { transform: scale(0.9); opacity: 0.9; } 100% { transform: scale(1.35); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .dep-play__btn::after { animation: none; } }
.provas-case__visual-inner:not(.dep-media--ph) .dep-play { padding-top: 0; }
.provas-case__visual-inner > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* texto sobre a capa: fundo escuro suave no meio/embaixo para o "Assistir ao depoimento" ler bem */
.provas-case__visual-inner:not(.dep-media--ph) .provas-case__overlay { background: linear-gradient(to top, rgba(8,28,28,0.55), rgba(8,28,28,0.12) 55%, rgba(8,28,28,0.25)); }
