.testimonials {
  padding: clamp(64px, 7vw, 100px) max(6%, 24px);
  background: linear-gradient(rgba(76, 49, 28, .12), rgba(76, 49, 28, .12)), url("assets/fundo-depoimentos.png") center / cover no-repeat;
  color: #4c311c;
}

.testimonials-panel {
  width: min(100%, 1100px);
  margin: 0 auto;
  padding: clamp(42px, 5vw, 70px) clamp(24px, 4.5vw, 64px);
  background: rgba(250, 248, 238, .93);
  text-align: center;
}

.testimonials-eyebrow {
  margin: 0 0 16px;
  font: 700 .85rem/1.4 Arial, sans-serif;
  letter-spacing: .14em;
}

.testimonials h2 {
  max-width: 780px;
  margin: 0 auto clamp(28px, 3vw, 42px);
  font-size: clamp(2rem, 3.3vw, 3.15rem);
}

.testimonials-frame {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
}

.testimonials-track {
  display: flex;
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.testimonials-carousel.is-ready .testimonials-track { scrollbar-width: none; align-items: flex-start; overflow-y: hidden; }
.testimonials-carousel.is-ready .testimonials-track::-webkit-scrollbar { display: none; }

.testimonial {
  display: flex;
  flex: 0 0 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 170px;
  margin: 0;
  padding: 4px 4px 12px;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.testimonial blockquote {
  max-width: 770px;
  margin: 0 0 20px;
  font: 400 clamp(1.1rem, 1.5vw, 1.3rem)/1.7 Lora, Georgia, serif;
  letter-spacing: normal;
}

.testimonial figcaption {
  font: 700 .85rem/1.5 Arial, sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.testimonials-arrow {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  padding: 0;
  border: 1px solid #826f5c;
  border-radius: 50%;
  background: transparent;
  color: #4c311c;
  cursor: pointer;
}

.testimonials-arrow:hover { background: rgba(76, 49, 28, .08); }
.testimonials-arrow:focus-visible, .testimonials-track:focus-visible { outline: 3px solid #4c311c; outline-offset: 4px; }
.testimonials-arrow svg { display: block; width: 20px; height: 20px; margin: 0; flex: none; }
.testimonials-arrow[hidden], .testimonials-status[hidden] { display: none; }
.testimonials-status { margin: 16px 0 0; font: 700 .8rem/1.5 Arial, sans-serif; letter-spacing: .08em; }

@media (max-width: 650px) {
  .testimonials { padding: 36px 18px; background-position: 42% center; }
  .testimonials-panel { padding: 30px 22px; }
  .testimonials h2 { font-size: clamp(1.85rem, 8vw, 2.5rem); margin-bottom: 22px; }
  .testimonials-frame { grid-template-columns: 1fr 1fr; gap: 12px; }
  .testimonials-track { grid-column: 1 / -1; grid-row: 1; }
  .testimonials-prev { grid-column: 1; grid-row: 2; justify-self: end; }
  .testimonials-next { grid-column: 2; grid-row: 2; justify-self: start; }
  .testimonial { min-height: 0; }
  .testimonial blockquote { font-size: 1.05rem; line-height: 1.55; margin-bottom: 14px; }
  .testimonials-status { margin-top: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .testimonials-track { scroll-behavior: auto; }
}
