/* ==========================================================
   Nimber — Quem Somos
   Página criada a partir do layout de referência enviado.
   ========================================================== */

.nimber-about-page {
  --container: 1476px;
  --about-cyan: #08b7e8;
  --about-cyan-2: #0ad2c3;
  --about-navy: #182837;
  --about-blue: #4f88aa;
  --about-soft: #eef1f2;
  --about-radius: clamp(22px, 2vw, 34px);
  --about-section-space: clamp(72px, 6vw, 104px);
  --about-section-space-half: clamp(36px, 3vw, 52px);
}

.nimber-about-page .site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nimber-about-page .site-nav__links a[href="#como-funciona"] {
  pointer-events: none;
}

html.js.nimber-hero-booting body.nimber-about-page .about-hero__eyebrow,
html.js.nimber-hero-booting body.nimber-about-page .about-hero h1 {
  visibility: hidden;
}

/* Hero */
.about-hero {
  position: relative;
  min-height: clamp(680px, 58vw, 960px);
  padding-top: 146px;
  overflow: hidden;
  background: #fff;
  isolation: isolate;
}

.about-hero__media {
  position: absolute;
  z-index: -2;
  inset: 146px 0 0;
  background-image: url("../../images/nimber/quem-somos/hero-about.jpg");
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}

.about-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(13, 31, 44, .34) 0%, rgba(13, 31, 44, .08) 43%, rgba(13, 31, 44, 0) 72%);
}

.about-hero__content {
  display: flex;
  min-height: calc(clamp(680px, 58vw, 960px) - 146px);
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding-top: 30px;
  padding-bottom: 44px;
  max-width: calc(var(--container-wide) + (var(--container-gutter) * 2));
}

.about-hero__eyebrow {
  margin-bottom: 22px;
  color: #04c5e5;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: .34em;
}

.about-hero h1 {
  max-width: 670px;
  margin: 0;
  color: #fff;
  font-size: clamp(36px, 3.15vw, 48px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.about-hero__line-mask {
  display: block;
  overflow: hidden;
  padding-bottom: .05em;
}

.about-hero__line {
  display: block;
  width: fit-content;
  max-width: 100%;
}

.about-hero h1 strong {
  font-weight: 900;
}

/* Purpose / bridge */
.about-bridge {
  padding: var(--about-section-space) 0;
  background: #fff;
}

.about-bridge__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(380px, .85fr);
  align-items: center;
  gap: clamp(52px, 7vw, 122px);
}

.about-bridge__visual {
  margin: 0;
}

.about-bridge__visual img {
  display: block;
  width: 100%;
  max-width: 940px;
  height: auto;
  margin-inline: auto;
  object-fit: contain;
  filter: drop-shadow(0 22px 34px rgba(25, 55, 74, .08));
}

.about-bridge__copy {
  padding-right: clamp(0px, 3vw, 40px);
}

.about-bridge__copy h2,
.about-partners__copy h2 {
  margin: 0 0 clamp(34px, 3.4vw, 58px);
  color: #090909;
  font-size: clamp(36px, 3vw, 48px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -.035em;
}

.nimber-about-page main h1 strong,
.nimber-about-page main h2 strong {
  color: transparent;
  background: linear-gradient(92deg, #00b8ef 0%, #08c9d8 52%, #0bd7b4 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 900;
}

/* Hero: texto integralmente branco, sem gradiente. */
.nimber-about-page main .about-hero h1 strong {
  color: inherit;
  background: none;
  background-clip: border-box;
  -webkit-background-clip: border-box;
  -webkit-text-fill-color: currentColor;
}

/* "Ponte segura" da seção Parceiros: gradiente azul escuro exclusivo. */
.nimber-about-page main .about-partners__copy h2 strong {
  color: transparent !important;
  background: linear-gradient(110deg, #1d2c3a 0%, #2d5269 56%, #548bae 100%) !important;
  background-clip: text !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

/* Newsletter: destaque azul sólido, sem herdar o gradiente global dos títulos. */
.nimber-about-page main .newsletter h2 strong {
  color: #00b9f2 !important;
  background: none !important;
  background-image: none !important;
  background-clip: border-box !important;
  -webkit-background-clip: border-box !important;
  -webkit-text-fill-color: #00b9f2 !important;
}

.about-bridge__copy p {
  max-width: 680px;
  margin: 0 0 24px;
  color: #202a33;
  font-size: 18px;
  line-height: 1.55;
}

/* Shared section heading */
.about-section-heading {
  max-width: 1120px;
  margin: 0 auto clamp(44px, 4vw, 64px);
  text-align: center;
}

.about-section-heading h2 {
  margin: 0 0 22px;
  color: #090909;
  font-size: clamp(36px, 3vw, 48px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -.035em;
}

.about-section-heading p {
  margin: 0;
  color: #27323b;
  font-size: 18px;
  line-height: 1.65;
}

.about-section-heading--compact {
  margin-bottom: clamp(36px, 3.5vw, 52px);
}

/* Team */
.about-team {
  padding: var(--about-section-space) 0;
  background: #fff;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(24px, 2.6vw, 50px);
}

.team-card {
  min-width: 0;
  overflow: hidden;
  border-radius: 22px;
  background: #eceeef;
  box-shadow: 0 16px 34px rgba(26, 42, 54, .10);
  transform: translateZ(0);
}

.team-card__image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1.12;
  border-radius: 22px 22px 0 0;
  background: #e9eef1;
}

.team-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform .65s cubic-bezier(.22, 1, .36, 1);
}

.team-card--legacy-anthony .team-card__image img {
  object-position: 60% center;
}

@media (hover: hover) and (pointer: fine) {
  .team-card:hover .team-card__image img {
    transform: scale(1.045);
  }
}

.team-card__body {
  min-height: 106px;
  padding: 22px 20px 20px;
  text-align: center;
}

.team-card__body h3 {
  margin: 0 0 5px;
  color: #2c3338;
  font-size: clamp(17px, 1.2vw, 21px);
  font-weight: 500;
}

.team-card__body p {
  margin: 0;
  color: #49545d;
  font-size: 18px;
}

/* Partners */
.about-partners {
  border-top: 2px solid rgba(0, 183, 239, .55);
  border-bottom: 2px solid rgba(0, 183, 239, .55);
  background: #eef1f2;
}

.about-partners__grid {
  display: grid;
  grid-template-columns: minmax(430px, .9fr) minmax(0, 1.6fr);
  align-items: center;
  gap: clamp(50px, 6vw, 110px);
  min-height: clamp(440px, 34vw, 610px);
  padding-top: var(--about-section-space);
  padding-bottom: var(--about-section-space);
}

.about-partners__copy .eyebrow {
  margin-bottom: 28px;
  color: var(--about-cyan);
}

.about-partners__copy h2 {
  margin-bottom: 0;
  color: #34546b;
  font-size: clamp(34px, 2.8vw, 48px);
  line-height: 1.06;
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 1.55vw, 24px);
}

.partner-card {
  display: grid;
  height: clamp(126px, 10vw, 164px);
  min-width: 0;
  place-items: center;
  overflow: hidden;
  padding: clamp(18px, 1.6vw, 28px);
  border: 2px solid transparent;
  border-radius: clamp(18px, 1.5vw, 24px);
  background:
    linear-gradient(90deg, #eaf5f9 0%, #f5fafc 52%, #edf7fa 100%) padding-box,
    linear-gradient(90deg, rgba(20, 183, 235, .52) 0%, rgba(112, 177, 207, .24) 58%, rgba(214, 231, 239, .72) 100%) border-box;
  box-shadow: 0 12px 30px rgba(36, 77, 101, .06);
}

.partner-card img {
  display: block;
  width: auto;
  max-width: 86%;
  height: auto;
  max-height: 84px;
  object-fit: contain;
  transform-origin: center;
}

.partner-card--altma img {
  max-width: min(86%, 196px);
}

.partner-card--martelli img {
  max-width: min(76%, 126px);
  max-height: 92px;
}

.partner-card--vale-verde img {
  max-width: min(94%, 208px);
}

.partner-card--bicalho img {
  max-width: min(82%, 150px);
  max-height: 88px;
}

/* History */
.about-history {
  padding: var(--about-section-space) 0 var(--about-section-space-half);
  background: #fff;
}

.history-slider {
  position: relative;
  overflow: hidden;
  padding: 0 0 125px;
}

/*
 * Estado inicial da entrada da História.
 *
 * A classe é aplicada no <head>, antes de o body ser renderizado. Assim,
 * imagem, textos e controles nunca aparecem no estado final antes de o GSAP
 * assumir a animação.
 *
 * O container .history-slider permanece estático para não reintroduzir o
 * conflito de composição corrigido na v141.
 */
html.js.nimber-history-booting
body.nimber-about-page
.history-slide:first-child
.history-slide__image {
  opacity: 0;
  transform: translate3d(-26px, 0, 0);
}

html.js.nimber-history-booting
body.nimber-about-page
.history-slide:first-child
.history-slide__image img {
  transform: scale(1.035);
  transform-origin: 50% 50%;
}

html.js.nimber-history-booting
body.nimber-about-page
.history-slide:first-child
.history-slide__copy > * {
  opacity: 0;
  transform: translate3d(28px, 0, 0);
}

html.js.nimber-history-booting
body.nimber-about-page
.history-slider__arrows {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
}

/*
 * A paginação é criada dinamicamente pelo Swiper.
 *
 * A classe independente permanece ativa até os bullets existirem e a
 * animação ser preparada. O container .history-slider__controls não recebe
 * transform, evitando recriar o problema de composição do scroll.
 */
html.js.nimber-history-controls-booting
body.nimber-about-page
.history-slider__pagination
.swiper-pagination-bullet {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
}

/*
 * Antes do Swiper inicializar, somente o primeiro slide participa do layout.
 * Isso evita uma faixa horizontal com os cinco slides durante o boot.
 */
.history-slider:not(.swiper-initialized) .swiper-wrapper {
  display: block;
  width: 100%;
  height: auto;
  transform: none !important;
}

.history-slider:not(.swiper-initialized) .history-slide {
  display: none;
}

.history-slider:not(.swiper-initialized) .history-slide:first-child {
  display: grid;
}

.history-slide {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(380px, .82fr);
  align-items: center;
  gap: clamp(58px, 8vw, 132px);
}

.history-slide__image {
  margin: 0;
  overflow: hidden;
  aspect-ratio: 1.5 / 1;
  border-radius: var(--about-radius);
  background: #e7ecef;
}

.history-slide__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.history-slide__copy {
  padding-right: clamp(0px, 3vw, 46px);
}

.history-slide__copy h3 {
  margin: 0 0 24px;
  color: #050505;
  font-size: clamp(36px, 3.4vw, 60px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -.035em;
}

.history-slide__copy h3 strong {
  color: var(--about-blue);
  font-weight: 900;
}

.history-slide__copy p {
  max-width: 650px;
  margin: 0;
  color: #242e36;
  font-size: 18px;
  line-height: 1.55;
}

.history-slider__controls {
  position: absolute;
  z-index: 5;
  right: 0;
  bottom: 0;
  left: 0;
}

.history-slider__arrows {
  position: absolute;
  z-index: 8;
  top: clamp(2px, .8vw, 14px);
  right: 0;
  display: flex;
  gap: 16px;
  margin: 28px 0 28px;
}

.history-slider__prev,
.history-slider__next {
  display: grid;
  width: 66px;
  height: 66px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: var(--about-cyan);
  font-size: 22px;
  cursor: pointer;
  transition: transform .25s ease, opacity .25s ease;
}

.history-slider__prev {
  background: linear-gradient(135deg, #caeefe, #24b7ef);
}

.history-slider__prev:hover,
.history-slider__next:hover {
  transform: scale(1.06);
}

.history-slider__prev.swiper-button-disabled,
.history-slider__next.swiper-button-disabled {
  opacity: .42;
  cursor: default;
}

.history-slider__pagination.swiper-pagination {
  position: static;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 28px;
  width: 100%;
}

.history-slider__pagination .swiper-pagination-bullet {
  position: relative;
  display: flex;
  width: auto;
  height: 62px;
  margin: 0 !important;
  flex-direction: column;
  align-items: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  opacity: 1;
  cursor: pointer;
}

.history-slider__pagination .swiper-pagination-bullet::before {
  content: "";
  display: block;
  width: 100%;
  height: 10px;
  margin-bottom: 20px;
  border-radius: 999px;
  background: #1e2d3a;
  transition: transform .35s ease;
}

.history-slider__pagination .swiper-pagination-bullet::after {
  content: attr(data-year);
  color: #172432;
  font-size: 15px;
  font-style: normal;
  font-weight: 500;
  letter-spacing: .35em;
}

.history-slider__pagination .swiper-pagination-bullet-active::before {
  background: #1e2d3a;
}

.history-slider.is-history-autoplaying
.history-slider__pagination
.swiper-pagination-bullet-active::before {
  background: linear-gradient(
    90deg,
    var(--about-cyan) 0 50%,
    #1e2d3a 50% 100%
  );
  background-size: 200% 100%;
  background-position: 100% 0;
  animation: history-progress-fill
    var(--history-autoplay-duration, 5200ms)
    linear forwards;
}

.history-slider.is-history-autoplay-paused
.history-slider__pagination
.swiper-pagination-bullet-active::before {
  animation-play-state: paused;
}

@keyframes history-progress-fill {
  to {
    background-position: 0 0;
  }
}

/* Mission, vision, values */
.about-pillars {
  padding: var(--about-section-space-half) 0 var(--about-section-space);
  background: #fff;
}

.about-pillars__stack {
  display: grid;
  gap: clamp(16px, 1.55vw, 24px);
}

.pillar-row {
  display: grid;
  grid-template-columns: minmax(250px, .72fr) minmax(0, 2.25fr);
  gap: clamp(16px, 1.55vw, 24px);
  height: clamp(128px, 9vw, 172px);
  min-height: 0;
}

.pillar-row--mission {
  grid-template-columns: minmax(0, 2.25fr) minmax(280px, .72fr);
}

.pillar-label,
.pillar-image {
  min-width: 0;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  border-radius: clamp(18px, 1.5vw, 26px);
}

.pillar-label {
  display: grid;
  place-items: center;
  border: 2px solid transparent;
  background:
    linear-gradient(#eceeef, #eceeef) padding-box,
    linear-gradient(120deg, #08b7e8, #d8e4e9) border-box;
}

.pillar-row--mission .pillar-label,
.pillar-row--values .pillar-label {
  background:
    linear-gradient(#eceeef, #eceeef) padding-box,
    linear-gradient(120deg, #08b7e8, #00da92) border-box;
}

.pillar-label h2 {
  margin: 0;
  color: #344f63;
  font-size: clamp(40px, 3.4vw, 56px);
  font-weight: 700;
  line-height: 1;
}

.pillar-row--vision .pillar-label h2 {
  color: var(--about-cyan);
}

.pillar-row--mission .pillar-label h2 {
  color: #04c5b5;
}

.pillar-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: center;
}

/* CTA — exact Home component, with page-specific text only. */
.about-cta .future-cta__content {
  padding-top: var(--about-section-space);
  padding-bottom: var(--about-section-space);
}

.about-cta .future-cta__content h2 {
  max-width: 560px;
  margin-bottom: 38px;
  font-size: clamp(36px, 3vw, 48px);
}

.about-cta .button--light {
  min-width: 260px;
  border-color: var(--about-cyan);
}

.newsletter--about {
  padding-top: var(--about-section-space);
}

/* Scroll reveal performance */
.qs-reveal {
  backface-visibility: hidden;
  transform-origin: 50% 50%;
}

@media (max-width: 1399.98px) {
  .about-hero {
    min-height: 780px;
  }

  .about-hero__content {
    min-height: 634px;
  }

  .about-bridge__grid {
    grid-template-columns: minmax(0, 1.12fr) minmax(350px, .88fr);
  }

  .about-partners__grid {
    grid-template-columns: minmax(390px, .86fr) minmax(0, 1.6fr);
  }
}

@media (max-width: 1199.98px) {
  .about-hero {
    min-height: 710px;
    padding-top: 92px;
  }

  .about-hero__media {
    inset: 92px 0 0;
  }

  .about-hero__content {
    min-height: 618px;
  }

  .about-bridge__grid,
  .about-partners__grid,
  .history-slide {
    grid-template-columns: 1fr 1fr;
  }

  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 800px;
    margin-inline: auto;
  }

  .partner-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .partner-card {
    height: 136px;
  }

  .history-slider__arrows {
    top: 0;
  }

  .history-slider__prev,
  .history-slider__next {
    width: 56px;
    height: 56px;
  }
}

@media (max-width: 991.98px) {
  .about-hero {
    min-height: 680px;
  }

  .about-hero__media {
    background-position: 63% center;
  }

  .about-hero__media::after {
    background: linear-gradient(90deg, rgba(13, 31, 44, .70) 0%, rgba(13, 31, 44, .32) 56%, rgba(13, 31, 44, .04) 100%);
  }

  .about-hero h1 {
    max-width: 540px;
  }

  .about-bridge__grid,
  .about-partners__grid,
  .history-slide {
    grid-template-columns: 1fr;
  }

  .about-bridge__visual {
    max-width: 820px;
    margin-inline: auto;
  }

  .about-bridge__copy {
    max-width: 760px;
    padding-right: 0;
  }

  .about-partners__grid {
    min-height: 0;
  }

  .about-partners__copy {
    max-width: 680px;
  }

  .partner-grid {
    width: 100%;
  }

  .history-slider {
    padding-bottom: 116px;
  }

  .history-slide {
    gap: 38px;
  }

  .history-slide__copy {
    max-width: 760px;
    padding-right: 0;
  }

  .history-slider__arrows {
    position: static;
    justify-content: flex-end;
    margin: 28px 0 0;
  }

  .history-slider__pagination.swiper-pagination {
    gap: 16px;
  }

  .history-slider__pagination .swiper-pagination-bullet::after {
    font-size: 13px;
    letter-spacing: .22em;
  }

  .pillar-row,
  .pillar-row--mission {
    grid-template-columns: minmax(210px, .72fr) minmax(0, 1.8fr);
    height: clamp(124px, 13vw, 150px);
  }
}

@media (max-width: 767.98px) {
  .nimber-about-page {
    --about-section-space: 64px;
    --about-section-space-half: 32px;
  }

  .about-hero {
    min-height: 670px;
  }

  .about-hero__media {
    background-position: 68% center;
  }

  .about-hero__media::after {
    background: linear-gradient(90deg, rgba(13, 31, 44, .83) 0%, rgba(13, 31, 44, .52) 58%, rgba(13, 31, 44, .12) 100%);
  }

  .about-hero__content {
    min-height: 578px;
    justify-content: flex-end;
    padding-bottom: 72px;
  }

  .about-hero h1 {
    max-width: 430px;
    font-size: clamp(34px, 8vw, 48px);
  }

  .about-bridge__grid {
    gap: 54px;
  }

  .about-bridge__copy h2,
  .about-partners__copy h2 {
    font-size: clamp(34px, 9vw, 48px);
  }

  .team-grid {
    grid-template-columns: 1fr;
    max-width: 430px;
  }

  .team-card__image {
    aspect-ratio: 1 / 1.02;
  }

  .partner-grid {
    grid-template-columns: 1fr 1fr;
  }

  .partner-card {
    height: 126px;
    padding: 16px;
    border-radius: 18px;
  }

  .history-slider {
    padding-bottom: 104px;
  }

  .history-slide__image {
    aspect-ratio: 1.28 / 1;
  }

  .history-slider__pagination.swiper-pagination {
    gap: 9px;
  }

  .history-slider__pagination .swiper-pagination-bullet {
    height: 50px;
  }

  .history-slider__pagination .swiper-pagination-bullet::before {
    height: 7px;
    margin-bottom: 15px;
  }

  .history-slider__pagination .swiper-pagination-bullet::after {
    font-size: 11px;
    letter-spacing: .08em;
  }

  .pillar-row,
  .pillar-row--mission {
    grid-template-columns: 1fr;
    gap: 12px;
    height: auto;
  }

  .pillar-label {
    min-height: 104px;
    border-radius: 20px;
  }

  .pillar-image {
    height: clamp(190px, 54vw, 250px);
    min-height: 0;
    border-radius: 20px;
  }

  .pillar-row--mission .pillar-label,
  .pillar-row--mission .pillar-image {
    order: initial;
  }

}

@media (max-width: 575.98px) {
  .nimber-about-page {
    --about-section-space: 56px;
    --about-section-space-half: 28px;
  }

  .about-hero {
    min-height: 620px;
  }

  .about-hero__content {
    min-height: 528px;
  }

  .about-hero__media {
    background-position: 66% center;
  }

  .about-hero__eyebrow {
    letter-spacing: .24em;
  }

  .about-section-heading {
    margin-bottom: 40px;
  }

  .about-section-heading--compact {
    margin-bottom: 34px;
  }

  .about-bridge__copy h2 br,
  .about-partners__copy h2 br {
    display: none;
  }

  .partner-grid {
    grid-template-columns: 1fr;
  }

  .partner-card {
    height: 136px;
  }

  .history-slider__arrows {
    justify-content: flex-start;
  }

  .history-slider__prev,
  .history-slider__next {
    width: 50px;
    height: 50px;
  }

  .history-slider__pagination.swiper-pagination {
    overflow-x: auto;
    grid-template-columns: repeat(5, minmax(78px, 1fr));
    padding-bottom: 8px;
    scrollbar-width: none;
  }

  .history-slider__pagination.swiper-pagination::-webkit-scrollbar {
    display: none;
  }

  .about-cta .future-cta__content h2 br {
    display: none;
  }
}


@media (hover: hover) and (pointer: fine) {
  .partner-card img {
    transition: transform .55s cubic-bezier(.22, 1, .36, 1);
  }

  .partner-card:hover img {
    transform: scale(1.035);
  }
}

.nimber-about-page .qs-reveal,
.nimber-about-page .pillar-label,
.nimber-about-page .pillar-image {
  backface-visibility: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .team-card__image img,
  .history-slider__prev,
  .history-slider__next {
    transition: none !important;
  }
}

@media (max-width: 575.98px) {
  .about-hero h1 {
    font-size: 33px;
    letter-spacing: -.045em;
  }
}


/* ==========================================================
   Quem Somos v47 — typography, containers and CTA fidelity
   ========================================================== */
@media (max-width: 767.98px) {
  .about-hero__line-mask {
    padding-bottom: .08em;
  }

  .about-cta .future-cta__content {
    width: min(100%, 520px);
  }
}


/* ==========================================================
   Quem Somos v160.4 — grids dinâmicos e conteúdo estruturado
   ========================================================== */
.team-card--legacy-anthony .team-card__image img {
  object-position: 60% center;
}

.team-grid.team-grid--dynamic {
  --team-gap: clamp(24px, 2.6vw, 50px);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--team-gap);
}

.team-grid--dynamic .team-card {
  flex: 0 1 calc((100% - (3 * var(--team-gap))) / 4);
  width: calc((100% - (3 * var(--team-gap))) / 4);
  max-width: 360px;
}

.partner-grid.partner-grid--dynamic {
  --partner-gap: clamp(14px, 1.55vw, 24px);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--partner-gap);
}

.partner-grid--dynamic .partner-card {
  flex: 0 1 calc((100% - (3 * var(--partner-gap))) / 4);
  width: calc((100% - (3 * var(--partner-gap))) / 4);
  color: #34546b;
  text-decoration: none;
}

.partner-card__name {
  display: block;
  max-width: 100%;
  color: #34546b;
  font-size: clamp(15px, 1.1vw, 18px);
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  overflow-wrap: anywhere;
}

.history-slider__pagination.swiper-pagination {
  grid-template-columns: repeat(var(--history-count, 5), minmax(0, 1fr));
}

.history-slider--single {
  padding-bottom: 0;
}

.history-slider--single .swiper-wrapper {
  display: block;
  width: 100%;
  transform: none !important;
}

.history-slider--single .history-slide {
  display: grid;
}

@media (max-width: 1199.98px) {
  .team-grid--dynamic .team-card {
    flex-basis: calc((100% - var(--team-gap)) / 2);
    width: calc((100% - var(--team-gap)) / 2);
  }

  .partner-grid--dynamic .partner-card {
    flex-basis: calc((100% - var(--partner-gap)) / 2);
    width: calc((100% - var(--partner-gap)) / 2);
  }
}

@media (max-width: 767.98px) {
  .team-grid--dynamic .team-card {
    flex-basis: 100%;
    width: 100%;
  }

  .partner-grid--dynamic .partner-card {
    flex-basis: calc((100% - var(--partner-gap)) / 2);
    width: calc((100% - var(--partner-gap)) / 2);
  }
}

@media (max-width: 575.98px) {
  .partner-grid--dynamic .partner-card {
    flex-basis: 100%;
    width: 100%;
  }

  .history-slider__pagination.swiper-pagination {
    grid-template-columns: repeat(var(--history-count, 5), minmax(78px, 1fr));
  }
}


/* Estados opcionais sem wrappers vazios. */
.about-section-heading--empty {
  display: none;
}

.about-partners__grid--cards-only {
  grid-template-columns: minmax(0, 1fr);
}

.about-partners__grid--cards-only .partner-grid {
  width: min(100%, 980px);
  margin-inline: auto;
}

.about-bridge__grid--visual-only {
  grid-template-columns: minmax(0, 890px);
  justify-content: center;
}

.about-bridge__grid--visual-only .about-bridge__visual {
  width: 100%;
  margin-inline: auto;
}
