/* Scoped to the current home testimonial section. */
#depoimentos .testimonials {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 24px;
  margin-top: 40px;
  align-items: stretch;
}
#depoimentos .testimonials figure,
#depoimentos .testimonials figure:first-child {
  position: relative;
  isolation: isolate;
  grid-row: auto;
  min-width: 0;
  padding: 36px 30px;
  border: 1px solid var(--verde-claro);
  border-radius: 24px;
  background: var(--creme);
  box-shadow: 0 6px 24px rgb(7 62 55 / .035);
  transition: transform .65s var(--ease), box-shadow .65s var(--ease), border-color .65s var(--ease), opacity .65s var(--ease);
}
#depoimentos .testimonials figure::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(260px circle at var(--spot-x, 50%) var(--spot-y, 50%), rgb(255 255 255 / .22), transparent 75%);
  opacity: 0;
  transition: opacity .8s ease;
}
#depoimentos .testimonial-stars {
  display: block;
  width: fit-content;
  margin-bottom: 24px;
  color: #A47A38;
  font-size: 15px;
  line-height: 1;
  letter-spacing: .15em;
}
#depoimentos .testimonials .quote,
#depoimentos .testimonials figure:first-child .quote {
  position: absolute;
  top: 24px;
  right: 24px;
  height: auto;
  font: 72px/1 var(--font-display);
  color: rgb(200 153 79 / .25);
  pointer-events: none;
}
#depoimentos .testimonials figcaption {
  position: relative;
  margin: 0 0 18px;
  padding: 0;
  border: 0;
  color: var(--verde-profundo);
  font: 400 27px/1.18 var(--font-display);
  overflow-wrap: anywhere;
}
#depoimentos .testimonials blockquote,
#depoimentos .testimonials figure:first-child blockquote {
  margin: 0;
  color: var(--texto);
  font: 400 16px/1.7 var(--font-body);
  overflow-wrap: break-word;
}
@media (hover: hover) and (pointer: fine) {
  #depoimentos .testimonials figure:hover {
    transform: translateY(-3px);
    border-color: #82AC8D;
    box-shadow: 0 14px 32px rgb(7 62 55 / .11);
  }
  #depoimentos .testimonials figure:hover::before { opacity: 1; }
}
@media (max-width: 1100px) {
  #depoimentos .testimonials { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  #depoimentos .testimonials { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; }
  #depoimentos .testimonials figure,
  #depoimentos .testimonials figure:first-child { padding: 30px 24px; }
}
@media (prefers-reduced-motion: reduce) {
  #depoimentos .testimonials figure,
  #depoimentos .testimonials figure::before { transition: none; }
  #depoimentos .testimonials figure:hover { transform: none; }
  #depoimentos .testimonials figure::before { display: none; }
}

/* Carousel rhythm and navigation. */
#depoimentos .testimonial-layout { display:grid; grid-template-columns:minmax(230px,.8fr) minmax(0,2fr); gap:56px; align-items:center; }
#depoimentos .testimonial-intro { padding:40px 30px; border-radius:24px; }
#depoimentos .testimonial-intro h2 { font-size:clamp(35.2px,3.3vw,48.4px); margin:0; }
#depoimentos .testimonial-intro .eyebrow { font-size:11px; }
#depoimentos .testimonial-carousel { min-width:0; }
#depoimentos .testimonial-stage { position:relative; }
#depoimentos .testimonials { display:flex; gap:28px; margin:0; padding:12px 12px 20px; overflow-x:auto; scroll-snap-type:x mandatory; scrollbar-width:none; align-items:stretch; grid-auto-rows:auto; overscroll-behavior-x:contain; }
#depoimentos .testimonials::-webkit-scrollbar { display:none; }
#depoimentos .testimonials figure,
#depoimentos .testimonials figure:first-child { flex:0 0 calc((100% - 76px) / 2.15); padding:30px 24px; scroll-snap-align:start; min-height:var(--testimonial-card-height,auto); }
#depoimentos .testimonials figcaption { min-height:2.36em; margin-bottom:14px; font-size:25px; }
#depoimentos .testimonial-stars { margin-bottom:20px; }
#depoimentos .testimonials blockquote,
#depoimentos .testimonials figure:first-child blockquote { font-size:15px; line-height:1.6; }
#depoimentos .testimonials .quote { transition:translate .65s var(--ease); }
#depoimentos .testimonial-arrow { position:absolute; top:calc(50% - 4px); transform:translateY(-50%); z-index:3; display:grid; place-items:center; width:42px; height:42px; border-radius:50%; border:1px solid var(--verde-claro); background:var(--creme); color:var(--verde-profundo); box-shadow:0 4px 14px rgb(7 62 55 / .08); font-size:22px; }
#depoimentos .testimonial-prev { left:-21px; }
#depoimentos .testimonial-next { right:-21px; }
#depoimentos .testimonial-dots { display:flex; justify-content:center; gap:4px; margin-top:0; }
#depoimentos .testimonial-dots button { display:grid; place-items:center; width:28px; height:32px; padding:0; border:0; background:transparent; }
#depoimentos .testimonial-dots button::before { content:''; width:7px; height:7px; border-radius:50%; background:var(--verde-claro); transition:background-color .4s ease; }
#depoimentos .testimonial-dots button[aria-pressed='true']::before { background:var(--verde-profundo); }
#depoimentos .testimonial-status { position:absolute; width:1px; height:1px; padding:0; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
@media(hover:hover) and (pointer:fine) { #depoimentos .testimonials figure:hover .quote { translate:0 -2px; } }
@media(max-width:1100px) { #depoimentos .testimonial-layout { grid-template-columns:minmax(220px,.7fr) minmax(0,1.3fr); gap:40px; } #depoimentos .testimonials figure,#depoimentos .testimonials figure:first-child { flex-basis:calc((100% - 42px) / 1.5); } }
@media(max-width:700px) { #depoimentos .testimonial-layout { grid-template-columns:minmax(0,1fr); gap:28px; } #depoimentos .testimonial-intro { padding:32px 26px; } #depoimentos .testimonials { gap:24px; padding-inline:4px; } #depoimentos .testimonials figure,#depoimentos .testimonials figure:first-child { flex-basis:100%; padding:30px 24px; } #depoimentos .testimonial-arrow { display:none; } }
@media(prefers-reduced-motion:reduce) { #depoimentos .testimonials .quote { transition:none; translate:none !important; } #depoimentos .testimonials { scroll-behavior:auto; } }

/* Intro panel aligned with the testimonial cards. */
#depoimentos .testimonial-layout { align-items:stretch; }
#depoimentos .testimonial-intro { position:relative; isolation:isolate; overflow:hidden; display:flex; flex-direction:column; align-self:stretch; margin:12px 0 52px; padding:44px 32px; background:linear-gradient(145deg,var(--verde-profundo),#0C3029); border-radius:24px; }
#depoimentos .testimonial-leaves { position:absolute; inset:0; width:100%; height:100%; z-index:-1; pointer-events:none; color:var(--verde-claro); opacity:.19; }
#depoimentos .testimonial-intro .eyebrow { font-size:11px; letter-spacing:.14em; color:#DCE9E1; margin-bottom:28px; }
#depoimentos .testimonial-intro .eyebrow::before { display:none; }
#depoimentos .testimonial-intro h2 { font:600 clamp(32px,3vw,46px)/1.12 var(--font-body); letter-spacing:-.035em; margin:0 0 26px; color:var(--creme); }
#depoimentos .testimonial-intro-copy { color:#DCE9E1; font-size:16px; line-height:1.75; margin:0 0 30px; }
#depoimentos .testimonial-budget { margin-top:auto; display:flex; justify-content:space-between; width:100%; min-height:54px; padding:15px 22px; border:0; border-radius:12px; background:var(--creme); color:var(--verde-profundo); font-size:14px; gap:12px; }
#depoimentos .testimonial-source { display:flex; align-items:center; gap:8px; margin:24px 0 0; font-size:12px; color:#DCE9E1; }
#depoimentos .testimonial-source span { padding:4px 10px; border:1px solid rgb(156 196 166 / .3); border-radius:9px; font-family:Georgia,serif; color:var(--creme); }
@media(max-width:700px) { #depoimentos .testimonial-intro { margin:0; padding:36px 28px; } #depoimentos .testimonial-intro h2 { font-size:39.6px; } }
