/* =====================================================
   Home — DEPOIMENTOS
   Desktop: Figma 711:1664, 711:1666 (setas ao palco citação+autor).
   Mobile: Figma 890:2323 (setas à altura da citação; autor centrado; gradiente #ebe9e9).
   ===================================================== */

.home-depoimentos {
  --BORD-INTENSO: #291212;
  --depo-nav-col: 2.125rem; /* 34px */
  --depo-stage-gap: clamp(0.5rem, 2vw, 2.5rem);
  --depo-title-quote-gap: 80px;
  --depo-nav-shift-y: -0.875rem;

  position: relative;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  padding: clamp(3rem, 8vw, 6.5rem) 0 clamp(3.5rem, 9vw, 7.5rem);
  box-sizing: border-box;
}

.home-depoimentos__gradient {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    #ffffff 0%,
    #e7dfd3 50%,
    #faf8f5 100%
  );
  opacity: 0.85;
}

.home-depoimentos__inner {
  position: relative;
  z-index: 1;
}

.home-depoimentos__layout {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  width: 100%;
  box-sizing: border-box;
}

.home-depoimentos__title {
  margin: 0 0 var(--depo-title-quote-gap) calc(var(--depo-nav-col) + var(--depo-stage-gap));
  padding: 0;
  max-width: min(25.4375rem, calc(100% - var(--depo-nav-col) - var(--depo-stage-gap)));
  width: auto;
  text-align: left;
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 3.36vw, 3.125rem);
  line-height: clamp(2.75rem, 4.7vw, 4.375rem);
  letter-spacing: 0;
  text-transform: uppercase;
  color: #291212;
  box-sizing: border-box;
}

.home-depoimentos__title-line {
  display: block;
}

/* Palco: mobile = [seta | citação | seta] + autor; desktop = grid com quote-carousel em display:contents */
.home-depoimentos__stage {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: clamp(1.25rem, 4vw, 1.75rem);
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.home-depoimentos__quote-carousel {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

@media (min-width: 992px) {
  body.home .home-depoimentos .home-depoimentos__inner.home-layout-container,
  body.home .home-depoimentos .home-depoimentos__inner.container {
    max-width: min(1632px, calc(100vw - 3rem));
  }

  .home-depoimentos {
    --depo-stage-gap: clamp(1rem, 2.5vw, 2.5rem);
  }

  .home-depoimentos__stage {
    display: grid;
    grid-template-columns: var(--depo-nav-col) minmax(0, 1fr) var(--depo-nav-col);
    grid-template-rows: auto auto;
    column-gap: var(--depo-stage-gap);
    row-gap: clamp(1.25rem, 2.5vw, 2rem);
    align-items: start;
  }

  .home-depoimentos__quote-carousel {
    display: contents;
  }

  .home-depoimentos__stage .home-depoimentos__nav--prev {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
  }

  .home-depoimentos__stage .swiper-depoimentos-quotes {
    grid-column: 2;
    grid-row: 1;
  }

  .home-depoimentos__stage .home-depoimentos__nav--next {
    grid-column: 3;
    grid-row: 1;
    align-self: center;
  }

  .home-depoimentos__stage .swiper-depoimentos-authors {
    grid-column: 2;
    grid-row: 2;
  }
}

.swiper-depoimentos-quotes {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.swiper-depoimentos-authors {
  width: 100%;
  min-width: 0;
  overflow: hidden;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.swiper-depoimentos-quotes .swiper-wrapper,
.swiper-depoimentos-authors .swiper-wrapper {
  margin: 0;
  padding: 0;
}

.swiper-depoimentos-quotes .swiper-slide,
.swiper-depoimentos-authors .swiper-slide {
  height: auto;
  padding: 0;
  box-sizing: border-box;
}

.home-depoimentos__slide--quote {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.home-depoimentos__slide--author {
  display: flex;
  justify-content: flex-start;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.home-depoimentos-card__quote {
  margin: 0;
  margin-block: 0;
  margin-inline: 0;
  padding: 0;
  border: 0;
  flex: 0 0 auto;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  color: var(--BORD-INTENSO, #291212);
  font-family: "Noto Serif", Georgia, "Times New Roman", serif;
  font-size: clamp(1.0625rem, 0.3rem + 3.25vw, 3.75rem);
  font-style: italic;
  font-weight: 300;
  line-height: normal;
  letter-spacing: 0;
  hyphens: none;
  -webkit-hyphens: none;
  overflow-wrap: break-word;
  word-break: normal;
}

.home-depoimentos-card__quote p {
  margin: 0;
  line-height: normal;
  color: inherit;
  font: inherit;
  max-width: none;
  width: 100%;
  hyphens: none;
  -webkit-hyphens: none;
  overflow-wrap: break-word;
  word-break: normal;
}

.home-depoimentos-card__author {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.25rem);
  margin: 0;
  padding: 0;
}

.home-depoimentos-card__avatar {
  flex-shrink: 0;
  width: clamp(4.5rem, 12vw, 7.5rem);
  height: clamp(4.5rem, 12vw, 7.5rem);
  border-radius: 50%;
  overflow: hidden;
  background-color: #e7dfd3;
}

.home-depoimentos-card__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.home-depoimentos-card__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  min-width: 0;
}

.home-depoimentos-card__name {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: clamp(1.125rem, 2.2vw, 1.875rem);
  line-height: 1.2;
  color: #291212;
}

.home-depoimentos-card__role {
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: clamp(0.9375rem, 1.5vw, 1.25rem);
  line-height: normal;
  color: #291212;
}

.home-depoimentos__nav {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  opacity: 1;
  transition: opacity 0.2s ease;
  transform: translateY(var(--depo-nav-shift-y));
}

.home-depoimentos__nav-icon {
  display: block;
  width: 34px;
  height: 34px;
}

.home-depoimentos .home-depoimentos__nav.swiper-button-prev,
.home-depoimentos .home-depoimentos__nav.swiper-button-next {
  position: relative;
  inset: auto;
  top: auto;
  right: auto;
  bottom: auto;
  left: auto;
  margin: 0;
  transform: translateY(var(--depo-nav-shift-y));
}

.home-depoimentos .home-depoimentos__nav.swiper-button-prev::after,
.home-depoimentos .home-depoimentos__nav.swiper-button-next::after {
  content: none;
  display: none;
}

.home-depoimentos__nav:hover,
.home-depoimentos__nav:focus-visible {
  opacity: 0.85;
}

.home-depoimentos__nav:focus-visible {
  outline: 2px solid #291212;
  outline-offset: 3px;
}

.home-depoimentos__nav-icon.is-prev {
  transform: matrix(-1, 0, 0, 1, 0, 0);
}

.home-depoimentos__nav.swiper-button-disabled {
  opacity: 0.25;
  cursor: default;
  pointer-events: none;
}

/* Mobile — Figma 890:2323 */
@media (max-width: 991.98px) {
  .home-depoimentos {
    padding: clamp(2.25rem, 7vw, 3.5rem) 0 clamp(2.5rem, 8vw, 4rem);
    --depo-nav-col: 1.25rem; /* 20px área toque */
    --depo-nav-shift-y: 0;
    --depo-title-quote-gap: clamp(2rem, 6vw, 2.5rem);
  }

  .home-depoimentos__gradient {
    background: linear-gradient(180deg, #ffffff 0%, #ebe9e9 49%, #ffffff 100%);
    opacity: 0.8;
  }

  .home-depoimentos__title {
    margin-left: auto;
    margin-right: auto;
    margin-bottom: var(--depo-title-quote-gap);
    max-width: 20.6875rem; /* ~331px */
    text-align: center;
    font-size: 1.875rem;
    line-height: 2.5rem;
  }

  .home-depoimentos__quote-carousel {
    gap: clamp(0.5rem, 2vw, 0.75rem);
  }

  .home-depoimentos__nav {
    width: 20px;
    height: 20px;
    transform: none;
  }

  .home-depoimentos .home-depoimentos__nav.swiper-button-prev,
  .home-depoimentos .home-depoimentos__nav.swiper-button-next {
    transform: none;
  }

  .home-depoimentos__nav-icon {
    width: 20px;
    height: 20px;
  }

  .home-depoimentos-card__quote {
    max-width: 16.75rem; /* 268px */
    margin-left: auto;
    margin-right: auto;
    font-size: 1.25rem; /* 20px — Noto Serif Light Italic */
    font-weight: 300;
    font-style: italic;
    text-align: center;
  }

  .home-depoimentos-card__quote p {
    text-align: center;
  }

  .home-depoimentos__slide--author {
    justify-content: center;
  }

  .home-depoimentos-card__author {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .home-depoimentos-card__avatar {
    width: 3.75rem; /* 60px */
    height: 3.75rem;
  }

  .home-depoimentos-card__meta {
    align-items: center;
    text-align: center;
  }

  /* Figma 890:2327 — Inter 16px / leading 36px */
  .home-depoimentos-card__name {
    font-size: 1rem;
    line-height: 2.25rem;
  }

  /* Figma 890:2328 — Inter 12px */
  .home-depoimentos-card__role {
    font-size: 0.75rem;
    line-height: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-depoimentos__nav {
    transition: none;
  }
}
