/* Página Sobre nós — ajustes locais para uma leitura mais compacta em desktop. */
@media(min-width:981px){
  .page-hero{padding-top:72px;padding-bottom:64px}
  .page-hero .display{font-size:clamp(2.45rem,4vw,4.25rem);line-height:.98}
  .page-hero .lede{font-size:1.05rem;line-height:1.62;max-width:66ch}
  .section{padding-top:68px;padding-bottom:68px}
  .section.flush-bottom{padding-bottom:26px}
  .section-head{margin-bottom:30px}
  .section-head .display,.split>.display{font-size:clamp(1.9rem,3vw,3.15rem);line-height:1.04}
  .reason-grid{gap:14px}
  .reason{padding:20px}
  .reason h3{font-size:1.02rem;line-height:1.25}
  .reason p{font-size:.94rem;line-height:1.55}
  .stat-strip{margin-top:0}
}

/* Equipa — cartões equilibrados e perfis expansíveis. */
#equipa .team-grid-hierarchy{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
#equipa .member{display:grid;grid-template-columns:108px minmax(0,1fr);align-items:start;min-height:0;overflow:hidden}
#equipa .member>.team-profile-photo{display:block;width:84px;height:105px;margin:16px 0 16px 16px;border-radius:11px;object-fit:cover;object-position:center 22%}
#equipa .team-profile-summary{padding:16px 18px}
#equipa .team-profile-summary>b{display:block;font-size:1.04rem;line-height:1.25}
#equipa .team-profile-summary>small{display:block;margin-top:4px;line-height:1.4}
#equipa .team-profile-summary p{font-size:.92rem;line-height:1.52}
#equipa .member-founder,#equipa .member-operations{grid-column:auto;box-shadow:none}
#equipa .member-founder{border-color:rgba(53,105,184,.28)}
#equipa .member-operations{border-color:rgba(47,181,196,.24)}
.team-profile-card{position:relative;border:1px solid rgba(20,34,52,.13);border-radius:15px;background:#fff;cursor:pointer;transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease}
.team-profile-card:hover{border-color:rgba(53,105,184,.42);box-shadow:0 14px 34px rgba(20,34,52,.09);transform:translateY(-2px)}
.team-profile-card:hover .team-profile-button span{transform:translateX(3px)}
.team-profile-card:focus-within{border-color:rgba(53,105,184,.42)}
.team-profile-button{display:inline-flex;align-items:center;gap:8px;margin-top:10px;padding:0;border:0;background:transparent;color:inherit;font:600 .78rem/1.2 "IBM Plex Mono",monospace;letter-spacing:.035em;text-transform:uppercase;cursor:pointer}
.team-profile-button span{transition:transform .2s ease}
.team-profile-button:hover span,.team-profile-button:focus-visible span{transform:translateX(3px)}
.team-profile-button:focus-visible,.team-profile-close:focus-visible{outline:2px solid currentColor;outline-offset:4px}

.team-profile-dialog{width:min(900px,calc(100vw - 32px));max-height:calc(100dvh - 32px);padding:0;border:0;border-radius:22px;background:#fff;color:#142234;box-shadow:0 28px 90px rgba(20,34,52,.24);overflow:auto}
.team-profile-dialog::backdrop{background:rgba(20,34,52,.46);backdrop-filter:blur(3px)}
.team-profile-dialog[open]{animation:team-dialog-in .22s cubic-bezier(.2,.75,.25,1) both}
.team-profile-dialog-card{position:relative;padding:24px}
.team-profile-dialog-grid{display:grid;grid-template-columns:minmax(180px,27%) minmax(0,1fr);gap:30px;align-items:start}
.team-profile-dialog-photo{display:block;width:100%;max-width:230px;height:auto;aspect-ratio:4/5;margin:0;border-radius:16px;object-fit:cover;object-position:center 22%}
.team-profile-dialog-copy{padding:28px 30px 22px 0}
.team-profile-dialog-copy .display{margin:.25rem 0 .45rem;font-size:clamp(2rem,4vw,3.35rem);line-height:1}
.team-profile-role{margin:0 0 22px;font-weight:600;color:rgba(20,34,52,.68)}
.team-profile-body{max-width:58ch}
.team-profile-body p{margin:0 0 1rem;line-height:1.68}
.team-profile-close{position:sticky;top:14px;z-index:2;float:right;display:inline-flex;align-items:center;gap:8px;margin:0 0 -42px auto;padding:9px 12px;border:1px solid rgba(20,34,52,.16);border-radius:999px;background:rgba(255,255,255,.94);color:inherit;font:600 .76rem/1 "IBM Plex Mono",monospace;cursor:pointer}
.team-profile-close span{font-size:1.1rem;line-height:.7}
html.team-dialog-open{overflow:hidden}
@keyframes team-dialog-in{from{opacity:0;transform:translateY(8px) scale(.99)}to{opacity:1;transform:none}}

/* Testemunhos — seis depoimentos completos, todos com a mesma hierarquia. */
.testimonial-carousel{position:relative}
.testimonial-viewport{overflow:hidden}
.testimonial-track{display:flex;gap:14px;will-change:transform;transition:transform .55s cubic-bezier(.22,.61,.36,1)}
.testimonial-slide{flex:0 0 calc((100% - 28px)/3);display:flex;flex-direction:column;justify-content:space-between;min-width:0;height:auto;margin:0;padding:20px}
.testimonial-slide blockquote{flex:1;margin:0;font-size:.91rem;line-height:1.55}
.testimonial-slide figcaption{margin-top:16px;padding-top:14px}
.testimonial-slide .who{font-size:.78rem;line-height:1.35}
.testimonial-slide .avatar{width:34px;height:34px;font-size:.72rem}
.testimonial-controls{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin-top:14px}
.carousel-button{display:inline-grid;place-items:center;width:38px;height:38px;border:1px solid rgba(20,34,52,.18);border-radius:999px;background:transparent;color:inherit;font:600 .94rem/1 inherit;cursor:pointer;transition:background .2s ease,border-color .2s ease,transform .2s ease}
.carousel-button:hover,.carousel-button:focus-visible{background:rgba(53,105,184,.08);border-color:rgba(53,105,184,.36);transform:translateY(-1px)}
.carousel-button:focus-visible{outline:2px solid currentColor;outline-offset:3px}
.carousel-status{margin:0;min-width:66px;text-align:center;font-family:"IBM Plex Mono",monospace;font-size:.74rem;letter-spacing:.04em}
.testimonial-carousel.is-static .testimonial-controls{display:none}

@media(max-width:980px){.testimonial-slide{flex-basis:calc((100% - 14px)/2)}}
@media(max-width:760px){
  #equipa .team-grid-hierarchy{grid-template-columns:1fr}
  #equipa .member{grid-template-columns:90px minmax(0,1fr)}
  #equipa .member>.team-profile-photo{width:68px;height:85px;margin:14px 0 14px 14px}
  #equipa .team-profile-summary{padding:14px 14px 14px 10px}
  .team-profile-dialog{width:calc(100vw - 20px);max-height:calc(100dvh - 20px);border-radius:17px}
  .team-profile-dialog-card{padding:14px}
  .team-profile-dialog-grid{grid-template-columns:1fr;gap:18px}
  .team-profile-dialog-photo{max-width:none;height:min(38vh,260px);aspect-ratio:auto;object-position:center 22%}
  .team-profile-dialog-copy{padding:0 6px 12px}
  .team-profile-dialog-copy .display{font-size:2rem}
  .team-profile-close{top:8px;margin-bottom:-45px}
  .testimonial-slide{flex-basis:100%;padding:18px}
  .testimonial-slide blockquote{font-size:.95rem}
  .testimonial-controls{justify-content:center}
}
@media(prefers-reduced-motion:reduce){.testimonial-track{transition:none}.team-profile-dialog[open]{animation:none}.team-profile-button span{transition:none}}