/* Depoimentos — carrossel compacto */

.depoimentos__intro {
  margin-bottom: clamp(28px, 4vw, 40px);
}

.depoimentos__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: clamp(28px, 4vw, 40px);
}

.depoimentos__head .depoimentos__intro {
  margin-bottom: 0;
}

.depoimentos__nav {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.depoimentos__btn {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.3s, background 0.3s, color 0.3s;
}

.depoimentos__btn svg {
  width: 18px;
  height: 18px;
}

.depoimentos__btn:hover {
  border-color: rgba(107, 79, 140, 0.4);
  color: var(--brand);
}

.depoimentos__btn:disabled {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}

.depoimentos__viewport {
  display: flex;
  flex-flow: row nowrap;
  align-items: stretch;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.depoimentos__viewport::-webkit-scrollbar {
  display: none;
}

.depoimentos__card {
  box-sizing: border-box;
  flex: 0 0 260px;
  width: 260px;
  max-width: 260px;
  min-width: 260px;
  height: 220px;
  scroll-snap-align: start;
  margin: 0;
  padding: 18px 18px 16px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-whisper);
}

.depoimentos__roll {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  margin: 0;
  mask-image: linear-gradient(to bottom, transparent, #000 10px, #000 calc(100% - 14px), transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 10px, #000 calc(100% - 14px), transparent);
}

.depoimentos__roll:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.depoimentos__quote {
  margin: 0;
  flex: 1 1 auto;
  min-height: 0;
  font-family: var(--serif);
  font-size: 15px;
  font-style: italic;
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink);
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.depoimentos__roll .depoimentos__quote {
  display: block;
  -webkit-line-clamp: unset;
  padding-block: 2px 6px;
}

.depoimentos__author {
  display: grid;
  gap: 2px;
  margin: 12px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  flex-shrink: 0;
}

.depoimentos__author strong {
  font-size: 13.5px;
  font-weight: 700;
}

.depoimentos__author span {
  font-size: 12.5px;
  color: var(--muted);
}

.depoimentos__dots {
  display: flex;
  gap: 6px;
  margin-top: 18px;
  min-height: 8px;
}

.depoimentos__dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  border: none;
  padding: 0;
  background: rgba(26, 26, 26, 0.18);
  cursor: pointer;
  transition: background 0.3s, width 0.3s;
}

.depoimentos__dot.is-active {
  width: 18px;
  background: var(--brand);
}

@media (max-width: 480px) {
  .depoimentos__card {
    flex-basis: 220px;
    width: 220px;
    max-width: 220px;
    min-width: 220px;
    height: 210px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .depoimentos__roll {
    overflow-y: auto;
    mask-image: none;
    -webkit-mask-image: none;
  }
}
