/* =========================================
   TESTIMONIALS — imagem fixa esquerda + carrossel de texto
   ========================================= */

.testi {
  position: relative;
  background: var(--color-bg);
  display: grid;
  grid-template-columns: 360px 1fr;
  align-items: center;
  min-height: 420px;
  overflow: hidden;
}

/* ── Foto FIXA esquerda, moldura reta ──
   altura fixa (não 100%): o card de depoimento muda de tamanho conforme
   o texto da citação ativa, e a foto não pode "respirar" junto com ele. */
.testi-photo-col {
  position: relative;
  height: 420px;
  align-self: center;
  border-right: 5px solid;
  border-image: var(--gradient-thermal-v) 1;
  overflow: hidden;
}

.testi-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.testi-photo-col:not(:has(img[src])) {
  background: linear-gradient(135deg, #e8f0fb, #c9d9f0);
}

/* ── Conteúdo direita ── */
.testi-content {
  padding: 4rem 4rem 4rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  text-align: center;
}

/* Heading */
.testi-heading {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  font-weight: 700;
  color: var(--color-ink);
  line-height: 1.25;
  margin: 0;
}

.testi-heading-blue {
  color: var(--color-accent);
}

/* ── Card ── */
.testi-card {
  position: relative;
  width: 100%;
  max-width: 640px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 2.5rem 3rem;
}

.testi-quote-mark {
  position: absolute;
  top: 0.5rem;
  left: 1.5rem;
  font-family: var(--font-display);
  font-size: 4.5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--color-accent-soft);
  user-select: none;
}

.testi-quote {
  /* Inter itálico: a Space Grotesk não tem variante itálica */
  font-family: var(--font-body);
  font-size: 1.02rem;
  font-style: italic;
  line-height: 1.7;
  color: var(--color-body);
  margin: 0 0 1.5rem;
  /* transição suave ao trocar */
  transition: opacity 0.35s ease;
}

.testi-author-name {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-ink);
  margin: 0;
  transition: opacity 0.35s ease;
}

.testi-author-company {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-accent);
  margin: 0;
  transition: opacity 0.35s ease;
}

.testi-author-extra {
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: var(--color-muted);
  margin: 0;
  transition: opacity 0.35s ease;
}

/* estado de fade durante a troca */
.testi-card.is-fading .testi-quote,
.testi-card.is-fading .testi-author-name,
.testi-card.is-fading .testi-author-company,
.testi-card.is-fading .testi-author-extra {
  opacity: 0;
}

/* ── Bolinhas ── */
.testi-dots {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
}

.testi-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  background: var(--color-border-strong);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}

.testi-dot:hover {
  background: var(--color-muted);
}

.testi-dot.active {
  background: var(--color-accent);
  transform: scale(1.15);
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 768px) {
  .testi {
    grid-template-columns: 1fr;
  }

  .testi-photo-col {
    height: 220px;
    min-height: 220px;
    border-right: none;
    border-bottom: 5px solid;
    border-image: var(--gradient-thermal) 1;
  }

  .testi-content {
    padding: 2.5rem 1.25rem 3rem;
    gap: 1.5rem;
  }

  .testi-card {
    padding: 2rem 1.5rem;
  }

  .testi-quote-mark {
    left: 0.75rem;
    font-size: 3.5rem;
  }
}
