/* =========================================================
   DEPOIMENTOS em vídeo — "Algumas alunas da Formação:"
   Carrossel horizontal com scroll-snap. Classes prefixadas testi-.
   Depende dos tokens de styles.css (--cream, --gold*, --font-*, --gutter, --maxw, --ease).
   ========================================================= */
.testimonials {
  background: #000;
  padding: clamp(64px, 10vw, 120px) 0;
  overflow: hidden;
}

.testi-title {
  margin: 0 0 clamp(28px, 4vw, 44px);
  text-align: center;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  letter-spacing: .01em;
  color: var(--cream-72, rgba(246,242,234,.72));
}

/* ---------- Trilho ---------- */
.testi-viewport { position: relative; max-width: var(--maxw, 1240px); margin: 0 auto; }

.testi-track {
  --testi-gap: 16px;
  display: flex;
  gap: var(--testi-gap);
  margin: 0;
  padding: 4px var(--gutter, 20px) 12px;
  list-style: none;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter, 20px);
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.testi-track::-webkit-scrollbar { display: none; }

.testi-slide {
  flex: 0 0 85%;
  scroll-snap-align: start;
  display: flex;
}

/* ---------- Card ---------- */
.testi-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  border-radius: 24px;
  background: #0d0b09;
  border: 1px solid rgba(212,168,85,.16);
  overflow: hidden;
  cursor: pointer;
  transition: border-color .35s var(--ease, ease), transform .35s var(--ease, ease);
}
.testi-card:hover { border-color: rgba(212,168,85,.34); }
.testi-card.is-playing { cursor: default; }

/* mídia 16:9 */
.testi-media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #050403;
  border-radius: 24px 24px 0 0;
  overflow: hidden;
}
.testi-video,
.testi-poster,
.testi-poster img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.testi-video { background: #000; }
.testi-poster { transition: opacity .35s var(--ease, ease); }
.testi-poster::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,.45) 100%);
}
.testi-card.is-playing .testi-poster { opacity: 0; pointer-events: none; }

/* botão play discreto */
.testi-play {
  position: absolute; left: 16px; bottom: 16px; z-index: 2;
  width: 52px; height: 52px;
  display: grid; place-items: center;
  padding: 0; border-radius: 50%;
  border: 1px solid rgba(246,227,173,.55);
  background: rgba(0,0,0,.42);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  color: var(--cream, #F6F2EA);
  cursor: pointer;
  transition: transform .35s var(--ease, ease), background .35s, border-color .35s, opacity .25s;
}
.testi-play svg { width: 18px; height: 18px; margin-left: 3px; }
.testi-card:hover .testi-play,
.testi-play:hover { background: rgba(0,0,0,.6); border-color: var(--gold-soft, #D4A855); transform: scale(1.06); }
.testi-play:focus-visible { outline: 2px solid var(--gold-bright, #F2C14E); outline-offset: 4px; border-radius: 50%; }
.testi-card.is-playing .testi-play { opacity: 0; pointer-events: none; }

/* corpo */
.testi-body {
  display: flex; flex-direction: column; gap: 14px;
  flex: 1;
  padding: 20px 22px 22px;
}
.testi-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.testi-name {
  margin: 0;
  font-family: var(--font-body);
  font-size: .95rem; line-height: 1.4;
  color: rgba(246,242,234,.55);
}
.testi-name strong { color: #fff; font-weight: 700; }
.testi-quote-icon { flex: none; width: 26px; height: 20px; color: var(--gold-soft, #D4A855); margin-top: 2px; }
.testi-text {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem; line-height: 1.55;
  color: var(--cream, #F6F2EA);
}
.testi-kicker {
  margin: auto 0 0;
  padding-top: 14px;
  border-top: 1px solid rgba(212,168,85,.14);
  font-family: var(--font-body);
  font-weight: 700; font-size: .7rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold-soft, #D4A855);
}

/* ---------- Navegação (setas) ---------- */
.testi-nav { display: flex; justify-content: center; gap: 12px; margin-top: 24px; }
.testi-arrow {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  padding: 0; border-radius: 50%;
  border: 1px solid rgba(212,168,85,.4);
  background: transparent;
  color: var(--cream, #F6F2EA);
  cursor: pointer;
  transition: background .3s, border-color .3s, opacity .3s;
}
.testi-arrow svg { width: 18px; height: 18px; }
.testi-arrow:hover { background: rgba(212,168,85,.12); border-color: var(--gold-soft, #D4A855); }
.testi-arrow[disabled] { opacity: .3; cursor: default; background: transparent; }
.testi-arrow:focus-visible { outline: 2px solid var(--gold-bright, #F2C14E); outline-offset: 3px; border-radius: 50%; }

/* ---------- Breakpoints ---------- */
@media (min-width: 640px) {
  .testi-slide { flex-basis: 58%; }
}
@media (min-width: 860px) {
  .testi-track { --testi-gap: 20px; }
  .testi-slide { flex-basis: 44%; }
}
@media (min-width: 1100px) {
  .testi-track { --testi-gap: 24px; }
  /* 3 cards visíveis dentro da largura do container */
  .testi-slide { flex-basis: calc((100% - 2 * var(--testi-gap)) / 3); }
  .testi-play { width: 56px; height: 56px; left: 18px; bottom: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .testi-track { scroll-behavior: auto; }
  .testi-card, .testi-play, .testi-poster, .testi-arrow { transition: none; }
  .testi-card:hover .testi-play, .testi-play:hover { transform: none; }
}
