/* ==========================================================================
   CAPOEIRA SOL NASCENTE — Folha de estilo principal
   Paleta extraída do brasão: azul, dourado, verde e vermelho.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Cores da marca */
  --blue-900: #0a1f45;
  --blue-800: #10306b;
  --blue-700: #16418f;
  --blue-600: #1d54b8;
  --gold-500: #f5c518;
  --gold-600: #e0ab00;
  --gold-400: #ffd84d;
  --green-600: #14803f;
  --green-500: #1b9c4f;
  --red-500: #d22b2b;

  /* Neutros */
  --ink: #0d1424;
  --ink-soft: #3d4757;
  --muted: #6b7688;
  --line: #e3e7ee;
  --paper: #ffffff;
  --paper-alt: #f6f8fb;

  /* Tipografia */
  --font-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-body: 'Barlow', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Métricas */
  --container: 1200px;
  --gutter: 24px;
  --header-h: 84px;
  --radius: 10px;

  /* Movimento */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.7s;
}

/* --------------------------------------------------------------------------
   2. Reset e base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-soft);
  background: var(--paper);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.05;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

p {
  margin: 0 0 1.1em;
}

p:last-child {
  margin-bottom: 0;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding: 110px 0;
}

/* --------------------------------------------------------------------------
   3a. Camadas de parallax
   O JS publica o deslocamento em `--parallax`; cada camada compõe esse valor
   no próprio transform. A folga reservada em `vh` precisa ser maior que
   metade do `data-speed` do elemento, senão a borda aparece no fim do curso.
   -------------------------------------------------------------------------- */
[data-parallax] {
  transform: translate3d(0, var(--parallax, 0px), 0);
}

/* --------------------------------------------------------------------------
   3b. Mídia (foto real + placeholder)

   A foto vai num <img> de verdade, e não em `background-image`. Motivo:
   um `url()` guardado em variável CSS é resolvido a partir da folha de
   estilo onde o `var()` é aplicado — ou seja, `assets/img/x.jpg` viraria
   `assets/css/assets/img/x.jpg`. No <img>, o caminho é resolvido a partir
   do HTML, que é o que se espera ao escrever o endereço.

   O degradê da marca fica no contêiner, atrás da foto, e aparece sozinho
   enquanto o arquivo não existe.
   -------------------------------------------------------------------------- */
.media {
  position: relative;
  overflow: hidden;
  background-image: linear-gradient(135deg, var(--blue-800), var(--blue-600) 45%, var(--green-600));
  background-size: cover;
  background-position: center;
}

.media__img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --------------------------------------------------------------------------
   3c. Animações de entrada (scroll reveal)

   Fica aqui, antes dos componentes, de propósito: `.is-visible` zera o
   transform com a mesma especificidade dos `:hover` dos cards. Se viesse
   depois na folha, venceria a disputa e mataria todo efeito de hover que
   usa transform.
   -------------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(38px);
  transition:
    opacity var(--dur) var(--ease-out),
    transform var(--dur) var(--ease-out);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

[data-reveal-delay="1"] {
  transition-delay: 0.12s;
}

[data-reveal-delay="2"] {
  transition-delay: 0.24s;
}

[data-reveal-delay="3"] {
  transition-delay: 0.36s;
}

/* --------------------------------------------------------------------------
   4. Botões e links
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 12px 26px;
  border: 2px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.25s var(--ease-out), background-color 0.25s, color 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--pill {
  background: var(--gold-500);
  color: var(--blue-900);
  box-shadow: 0 6px 18px rgba(245, 197, 24, 0.35);
}

.btn--pill:hover {
  background: var(--gold-400);
  box-shadow: 0 10px 24px rgba(245, 197, 24, 0.45);
}

.btn--outline {
  border-color: var(--gold-600);
  color: var(--blue-800);
  background: transparent;
}

.btn--outline:hover {
  background: var(--gold-500);
  border-color: var(--gold-500);
  color: var(--blue-900);
}

.btn--ghost {
  border-color: rgba(255, 255, 255, 0.7);
  color: #fff;
  backdrop-filter: blur(2px);
}

.btn--ghost:hover {
  background: #fff;
  color: var(--blue-900);
  border-color: #fff;
}

.btn--lg {
  padding: 16px 38px;
  font-size: 17px;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--gold-600);
  transition: gap 0.25s var(--ease-out), color 0.25s;
}

.link-arrow::after {
  content: '';
  width: 26px;
  height: 2px;
  background: currentColor;
  transition: width 0.25s var(--ease-out);
}

.link-arrow:hover {
  gap: 16px;
  color: var(--blue-700);
}

.link-arrow:hover::after {
  width: 34px;
}

/* --------------------------------------------------------------------------
   5. Cabeçalho de seção
   -------------------------------------------------------------------------- */
.section-head {
  text-align: center;
  margin-bottom: 56px;
}

.section-title {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 700;
  color: var(--blue-800);
  letter-spacing: 0.04em;
}

.section-rule {
  display: block;
  width: 78px;
  height: 4px;
  margin: 18px auto 0;
  background: var(--gold-500);
  border-radius: 2px;
}

.section-lead {
  max-width: 640px;
  margin: 20px auto 0;
  font-size: 18px;
  color: var(--muted);
}

.section-head--light .section-title {
  color: #fff;
}

.section-head--light .section-lead {
  color: rgba(255, 255, 255, 0.78);
}

/* --------------------------------------------------------------------------
   6. Header fixo
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(6px);
  transition: background-color 0.35s, box-shadow 0.35s, height 0.35s;
}

.site-header.is-stuck {
  height: 68px;
  background: #fff;
  box-shadow: 0 4px 24px rgba(13, 20, 36, 0.1);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand__mark {
  width: 46px;
  height: 46px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.3));
  transition: width 0.35s, height 0.35s;
}

.is-stuck .brand__mark {
  width: 40px;
  height: 40px;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand__text strong {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  transition: color 0.35s;
}

.brand__text small {
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  transition: color 0.35s;
}

.is-stuck .brand__text strong {
  color: var(--blue-800);
}

.is-stuck .brand__text small {
  color: var(--muted);
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav__link {
  position: relative;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  padding: 6px 0;
  transition: color 0.25s;
}

.nav__link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--gold-500);
  transition: width 0.3s var(--ease-out);
}

.nav__link.is-active::after {
  width: 100%;
}

.is-stuck .nav__link {
  color: var(--ink);
}

.nav__link:hover {
  color: var(--gold-500);
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  background: none;
  border: 0;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out), opacity 0.2s, background-color 0.35s;
}

.is-stuck .nav-toggle span {
  background: var(--ink);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   7. Hero com parallax
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--blue-900);

  /* Sangria que a camada de fundo estende para além da tela, dando curso
     ao parallax. Precisa ser > metade do `data-speed` do hero (0.35 / 2). */
  --hero-bleed: 20vh;
  /* Altura real da camada de fundo — base do cálculo de cobertura do vídeo. */
  --hero-bg-h: calc(100vh + 2 * var(--hero-bleed));
}

.hero__bg {
  position: absolute;
  inset: calc(-1 * var(--hero-bleed)) 0;
  will-change: transform;
}

.hero__media {
  width: 100%;
  height: 100%;
  background-image: linear-gradient(140deg, var(--blue-900) 0%, var(--blue-700) 40%, var(--green-600) 100%);
  background-size: cover;
  background-position: center;
  transform: scale(1.06);
}

/* Vídeo de fundo -------------------------------------------------------- */
.hero__video {
  position: absolute;
  inset: 0;
  overflow: hidden;
  /* O player não recebe clique nenhum: o hero continua sendo só cenário. */
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.4s var(--ease-out);
}

.hero__video.is-ready {
  opacity: 1;
}

/* O iframe do YouTube tem proporção fixa 16:9 e não aceita `object-fit`.
   Então dimensionamos pelo maior lado necessário e centralizamos: o que
   sobra é cortado, imitando um `cover`. */
.hero__video iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: max(100vw, calc(var(--hero-bg-h) * 16 / 9));
  height: max(56.25vw, var(--hero-bg-h));
  transform: translate(-50%, -50%);
  border: 0;
  pointer-events: none;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 31, 69, 0.85) 0%, rgba(10, 31, 69, 0.35) 45%, rgba(10, 31, 69, 0.15) 100%),
    linear-gradient(180deg, rgba(10, 31, 69, 0.55) 0%, transparent 30%, rgba(10, 31, 69, 0.6) 100%);
}

/* Painel diagonal (referência do modelo) */
.hero__panel {
  position: absolute;
  inset: 0 0 0 auto;
  width: min(62%, 900px);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
  /*background: linear-gradient(115deg, rgba(20, 128, 63, 0) 0%, rgba(20, 128, 63, 0) 22%, rgba(20, 128, 63, 0.88) 22.2%, rgba(10, 31, 69, 0.92) 100%);*/
  clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%);
}

.hero__panel-content {
  max-width: 460px;
  text-align: right;
}

.hero__eyebrow {
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 6px;
}

.hero__title {
  display: grid;
  gap: 2px;
  margin-bottom: 30px;
}

.hero__title-line {
  font-size: clamp(34px, 5.2vw, 62px);
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
}

.hero__title-line--accent {
  color: var(--gold-500);
}

.hero__title-line--soft {
  font-size: clamp(20px, 2.4vw, 30px);
  font-weight: 500;
  text-transform: none;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 6px;
}

.hero__badge {
  position: absolute;
  left: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
  top: 50%;
  /* Compõe a centragem vertical com o deslocamento do parallax. */
  transform: translate3d(0, calc(-50% + var(--parallax, 0px)), 0);
  display: flex;
  align-items: center;
  gap: 18px;
  will-change: transform;
}

.hero__badge img {
  width: 110px;
  filter: drop-shadow(0 8px 22px rgba(0, 0, 0, 0.45));
}

.hero__badge-text {
  display: flex;
  flex-direction: column;
  padding-left: 18px;
  border-left: 2px solid rgba(255, 255, 255, 0.35);
}

.hero__badge-text strong {
  font-family: var(--font-display);
  font-size: 28px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fff;
  line-height: 1;
}

.hero__badge-text span {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-500);
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 2;
}

.hero__scroll-line {
  width: 1px;
  height: 46px;
  background: rgba(255, 255, 255, 0.4);
  position: relative;
  overflow: hidden;
}

.hero__scroll-line::after {
  content: '';
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 40%;
  background: var(--gold-500);
  animation: scroll-cue 1.9s var(--ease-out) infinite;
}

.hero__scroll-label {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

@keyframes scroll-cue {
  0% {
    transform: translateY(-100%);
  }

  100% {
    transform: translateY(250%);
  }
}

/* --------------------------------------------------------------------------
   8. Faixa de números
   -------------------------------------------------------------------------- */
.stats {
  background: var(--gold-500);
  padding: 46px 0;
  position: relative;
  z-index: 2;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat {
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.stat:first-child {
  border-left: 0;
}

.stat__number {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(38px, 4.5vw, 54px);
  font-weight: 700;
  line-height: 1;
  color: var(--blue-800);
}

.stat__label {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-800);
}

/* --------------------------------------------------------------------------
   9. Notícias
   -------------------------------------------------------------------------- */
.news {
  background: var(--paper);
}

.news__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(13, 20, 36, 0.07);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 40px rgba(13, 20, 36, 0.16);
}

.card__media {
  display: block;
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.card__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(10, 31, 69, 0.55) 100%);
  opacity: 0;
  transition: opacity 0.4s;
}

.card:hover .card__media::after {
  opacity: 1;
}

.card__tag {
  position: absolute;
  left: 16px;
  top: 16px;
  z-index: 1;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--gold-500);
  color: var(--blue-900);
}

.card__body {
  padding: 24px 22px 26px;
}

.card__title {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--blue-800);
  transition: color 0.25s;
}

.card:hover .card__title {
  color: var(--gold-600);
}

.card__date {
  display: none;
  margin-top: 14px;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.news__footer {
  text-align: center;
  margin-top: 48px;
}

/* --------------------------------------------------------------------------
   10. Blocos diagonais (Instituição / Mestre)
   -------------------------------------------------------------------------- */
.split {
  position: relative;
  padding: 130px 0;
  overflow: hidden;
  background: var(--paper);
}

.split__band {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.split--gold .split__band {
  background: linear-gradient(100deg, var(--gold-500), var(--gold-600));
  clip-path: polygon(28% 0, 100% 0, 100% 100%, 8% 100%);
}

.split--green .split__band {
  background: linear-gradient(260deg, var(--green-600), var(--blue-800));
  clip-path: polygon(0 0, 78% 0, 94% 100%, 0 100%);
}

.split__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 70px;
}

.split--reverse .split__inner {
  grid-template-columns: 1.1fr 0.9fr;
}

.split__figure {
  will-change: transform;
}

.circle-photo {
  aspect-ratio: 1;
  border-radius: 50%;
  box-shadow: 0 24px 60px rgba(13, 20, 36, 0.28);
  border: 8px solid rgba(255, 255, 255, 0.9);
  transition: transform 0.6s var(--ease-out);
}

.circle-photo:hover {
  transform: scale(1.03) rotate(-1.5deg);
}

.split__title {
  margin-bottom: 22px;
}

.split__title span,
.split__title strong {
  display: block;
  font-size: clamp(32px, 4.4vw, 50px);
  font-weight: 700;
  line-height: 1;
}

.split--gold .split__title span {
  color: rgba(10, 31, 69, 0.55);
  font-weight: 500;
}

.split--gold .split__title strong {
  color: var(--blue-900);
}

.split--gold .split__content {
  color: rgba(10, 31, 69, 0.85);
}

.split--gold .split__content b {
  color: var(--blue-900);
}

.split--gold .link-arrow {
  color: var(--blue-900);
}

.split--gold .link-arrow:hover {
  color: #fff;
}

.split--green .split__title span {
  color: var(--gold-500);
  font-weight: 500;
}

.split--green .split__title strong {
  color: #fff;
}

.split--green .split__content {
  color: rgba(255, 255, 255, 0.86);
}

.split--green .split__content b {
  color: #fff;
}

.split--green .link-arrow {
  color: var(--gold-500);
}

.split--green .link-arrow:hover {
  color: #fff;
}

/* Conteúdo institucional expansível */
.institution-more {
  grid-column: 2;
  justify-self: end;
}

.institution-more__trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  padding: 12px 20px;
  border: 2px solid var(--blue-900);
  border-radius: 999px;
  background: transparent;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--blue-900);
  cursor: pointer;
  transition: color 0.3s, background-color 0.3s, transform 0.3s;
}

.institution-more__trigger:hover,
.institution-more__trigger:focus-visible {
  color: #fff;
  background: var(--blue-900);
  transform: translateY(-2px);
}

.institution-more__trigger svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  transition: transform 0.3s var(--ease-out);
}

.institution-more__trigger:hover svg,
.institution-more__trigger:focus-visible svg {
  transform: translateX(3px);
}

body.has-open-modal {
  overflow: hidden;
}

.institution-modal {
  width: min(calc(100% - 40px), 1120px);
  max-width: none;
  max-height: min(88vh, 900px);
  padding: 0;
  border: 0;
  border-radius: 22px;
  color: rgba(10, 31, 69, 0.88);
  background: #fff9e8;
  box-shadow: 0 28px 80px rgba(4, 16, 39, 0.35);
  overflow: hidden;
}

.institution-modal::backdrop {
  background: rgba(4, 16, 39, 0.74);
  backdrop-filter: blur(5px);
}

.institution-modal[open] {
  animation: institution-modal-in 0.32s var(--ease-out) both;
}

@keyframes institution-modal-in {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.institution-modal__surface {
  display: flex;
  max-height: min(88vh, 900px);
  flex-direction: column;
}

.institution-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 24px 30px;
  border-bottom: 1px solid rgba(10, 31, 69, 0.12);
  background: var(--gold-500);
}

.institution-modal__eyebrow {
  display: block;
  margin-bottom: 2px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(10, 31, 69, 0.7);
}

.institution-modal__header h2 {
  margin: 0;
  font-size: clamp(25px, 3vw, 36px);
  color: var(--blue-900);
}

.institution-modal__close {
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  place-items: center;
  border: 2px solid var(--blue-900);
  border-radius: 50%;
  color: var(--blue-900);
  background: transparent;
  cursor: pointer;
  transition: color 0.25s, background-color 0.25s, transform 0.25s;
}

.institution-modal__close:hover,
.institution-modal__close:focus-visible {
  color: #fff;
  background: var(--blue-900);
  transform: rotate(5deg);
}

.institution-modal__close svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2;
}

.institution-modal__body {
  padding: 34px 36px 40px;
  overflow-y: auto;
}

.institution-details__content {
  columns: 2 380px;
  column-gap: 54px;
}

.institution-details__content h3 {
  margin: 28px 0 12px;
  break-after: avoid;
  font-size: 25px;
  color: var(--blue-900);
}

.institution-details__content h3:first-of-type {
  margin-top: 28px;
}

.institution-details__content p,
.institution-details__content ul {
  break-inside: avoid;
}

.institution-details__content ul {
  display: grid;
  gap: 8px;
  margin: 4px 0 22px;
}

.institution-details__content li {
  position: relative;
  padding-left: 20px;
}

.institution-details__content li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.63em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-600);
}

/* Missão, visão e valores */
.principles {
  background: var(--paper);
}

.principles__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.principle-card {
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 10px 30px rgba(13, 20, 36, 0.07);
}

.principle-card--values {
  grid-column: 1 / -1;
}

.principle-card__icon {
  display: inline-grid;
  width: 52px;
  height: 52px;
  place-items: center;
  margin-bottom: 20px;
  border-radius: 50%;
  font-size: 21px;
  color: var(--blue-900);
  background: var(--gold-500);
}

.principle-card h3 {
  margin-bottom: 12px;
  font-size: 29px;
  color: var(--blue-800);
}

.principle-card p {
  color: var(--muted);
}

.values-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.values-list li {
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--blue-800);
  background: var(--paper-alt);
  border: 1px solid var(--line);
}

/* Áreas de atuação */
.practice-areas {
  color: #fff;
  background:
    radial-gradient(circle at 10% 15%, rgba(245, 197, 24, 0.14), transparent 34%),
    linear-gradient(125deg, var(--blue-900), var(--green-600));
}

.practice-areas__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.practice-areas__grid li {
  display: flex;
  min-height: 116px;
  align-items: center;
  gap: 15px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.07);
  transition: transform 0.3s, background-color 0.3s;
}

.practice-areas__grid li:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.13);
}

.practice-areas__grid i {
  flex: 0 0 40px;
  font-size: 25px;
  text-align: center;
  color: var(--gold-500);
}

/* --------------------------------------------------------------------------
   11. MOVIMENTO — Equipe Ferro / Team Feminino
   -------------------------------------------------------------------------- */
.movement {
  position: relative;
  padding: 120px 0 130px;
  background: var(--ink);
  overflow: hidden;
}

.movement__bg {
  position: absolute;
  inset: -20vh -5%;
  background:
    radial-gradient(circle at 18% 20%, rgba(29, 84, 184, 0.45), transparent 55%),
    radial-gradient(circle at 82% 78%, rgba(20, 128, 63, 0.45), transparent 55%),
    repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.028) 0 2px, transparent 2px 46px);
  will-change: transform;
}

.movement .container {
  position: relative;
  z-index: 1;
}

.movement__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 34px;
}

.team-block {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  transition: transform 0.45s var(--ease-out), border-color 0.45s, box-shadow 0.45s;
}

.team-block:hover {
  transform: translateY(-10px);
  border-color: rgba(245, 197, 24, 0.45);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.45);
}

.team-block__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.team-block__media::after {
  content: '';
  position: absolute;
  inset: 0;
  transition: opacity 0.45s;
}

.team-block--ferro .team-block__media::after {
  background: linear-gradient(200deg, rgba(10, 31, 69, 0.15), rgba(10, 31, 69, 0.82));
}

.team-block--feminino .team-block__media::after {
  background: linear-gradient(200deg, rgba(210, 43, 43, 0.15), rgba(10, 31, 69, 0.82));
}

.team-block:hover .team-block__media::after {
  opacity: 0.75;
}

.team-block__badge {
  position: absolute;
  z-index: 1;
  left: 20px;
  top: 20px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  backdrop-filter: blur(4px);
}

.team-block__body {
  padding: 34px 32px 38px;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.team-block__title {
  position: relative;
  font-size: clamp(28px, 3.2vw, 38px);
  font-weight: 700;
  color: #fff;
  padding-bottom: 16px;
  margin-bottom: 18px;
}

.team-block__title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 56px;
  height: 4px;
  border-radius: 2px;
  transition: width 0.45s var(--ease-out);
}

.team-block--ferro .team-block__title::after {
  background: var(--gold-500);
}

.team-block--feminino .team-block__title::after {
  background: var(--red-500);
}

.team-block:hover .team-block__title::after {
  width: 96px;
}

.team-block__text {
  color: rgba(255, 255, 255, 0.72);
}

.team-block__list {
  margin: 6px 0 26px;
  display: grid;
  gap: 9px;
}

.team-block__list li {
  position: relative;
  padding-left: 24px;
  font-size: 15.5px;
  color: rgba(255, 255, 255, 0.82);
}

.team-block__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 10px;
  height: 10px;
  transform: rotate(45deg);
  border: 2px solid var(--gold-500);
}

.team-block--feminino .team-block__list li::before {
  border-color: var(--red-500);
}

.team-block__body .link-arrow {
  margin-top: auto;
  color: var(--gold-500);
}

.team-block--feminino .team-block__body .link-arrow {
  color: #ff7a7a;
}

.team-block__body .link-arrow:hover {
  color: #fff;
}

/* --------------------------------------------------------------------------
   12. Oficinas
   -------------------------------------------------------------------------- */
.workshops {
  background: var(--paper-alt);
}

.workshops__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.workshop {
  position: relative;
  background: #fff;
  border-radius: var(--radius);
  padding: 40px 26px 32px;
  border-top: 4px solid var(--gold-500);
  box-shadow: 0 2px 10px rgba(13, 20, 36, 0.06);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s;
}

.workshop:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 40px rgba(13, 20, 36, 0.14);
}

.workshop:nth-child(4n + 2) {
  border-top-color: var(--blue-600);
}

.workshop:nth-child(4n + 3) {
  border-top-color: var(--green-500);
}

.workshop:nth-child(4n + 4) {
  border-top-color: var(--red-500);
}

.workshop__index {
  font-family: var(--font-display);
  font-size: 46px;
  font-weight: 700;
  line-height: 1;
  color: var(--line);
  transition: color 0.4s;
}

.workshop:hover .workshop__index {
  color: var(--gold-500);
}

.workshop__title {
  font-size: 21px;
  font-weight: 600;
  color: var(--blue-800);
  margin: 10px 0 12px;
}

.workshop p {
  font-size: 15.5px;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   13. Vídeo
   -------------------------------------------------------------------------- */
.video-band {
  position: relative;
  padding: 100px 0;
  background: linear-gradient(120deg, var(--blue-800), var(--green-600));
  overflow: hidden;
}

.video-band__diagonal {
  position: absolute;
  inset: 0;
  background: var(--gold-500);
  opacity: 0.14;
  clip-path: polygon(0 62%, 100% 12%, 100% 44%, 0 92%);
}

.video-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  max-width: 780px;
  margin-inline: auto;
  aspect-ratio: 16 / 8;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.4);
  transition: transform 0.45s var(--ease-out);
}

/* O véu escuro é um ::before, que na ordem do DOM vem antes da foto —
   sem z-index explícito a foto passaria por cima dele. */
.video-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(10, 31, 69, 0.45);
  transition: background-color 0.4s;
}

.video-card:hover {
  transform: scale(1.02);
}

.video-card:hover::before {
  background: rgba(10, 31, 69, 0.25);
}

.video-card__play {
  position: relative;
  z-index: 2;
  width: 84px;
  height: 60px;
  border-radius: 14px;
  background: var(--red-500);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.35);
  transition: transform 0.35s var(--ease-out), background-color 0.3s;
}

.video-card__play::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-42%, -50%);
  border-style: solid;
  border-width: 12px 0 12px 20px;
  border-color: transparent transparent transparent #fff;
}

.video-card:hover .video-card__play {
  transform: scale(1.12);
  background: #ef3b3b;
}

/* Com o player aberto, a capa e o botão saem de cena. */
.video-card__frame {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-card.is-playing {
  cursor: default;
}

.video-card.is-playing::before,
.video-card.is-playing .video-card__play,
.video-card.is-playing .video-card__label {
  opacity: 0;
  pointer-events: none;
}

.video-card.is-playing:hover {
  transform: none;
}

.video-card__label {
  position: relative;
  z-index: 2;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
}

/* --------------------------------------------------------------------------
   14. Parceiros
   -------------------------------------------------------------------------- */
.partners {
  background: #fff;
}

.partners__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  align-items: center;
}

.partners__grid--small {
  grid-template-columns: repeat(6, 1fr);
  margin-top: 22px;
}

.partner {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 92px;
  padding: 14px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--paper-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  filter: grayscale(1);
  opacity: 0.72;
  transition: opacity 0.35s, filter 0.35s, transform 0.35s var(--ease-out), color 0.35s;
}

.partner:hover {
  opacity: 1;
  filter: none;
  transform: translateY(-4px);
  color: var(--blue-800);
}

.partners__grid--small .partner {
  min-height: 72px;
  font-size: 14px;
}

/* Logos com proporções bem diferentes entre si: `contain` mantém cada
   marca inteira e a altura máxima é que dá o alinhamento óptico. */
.partner img {
  width: auto;
  max-width: 100%;
  max-height: 64px;
  object-fit: contain;
}

.partners__grid--small .partner img {
  max-height: 46px;
}

.partners__subtitle {
  margin: 56px 0 0;
  text-align: center;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   15. CTA
   -------------------------------------------------------------------------- */
.cta {
  position: relative;
  padding: 140px 0;
  overflow: hidden;
  background: var(--blue-900);
  text-align: center;
}

.cta__bg {
  position: absolute;
  inset: -20vh 0;
  background-image: var(--img, none), linear-gradient(120deg, var(--blue-800), var(--green-600) 60%, var(--gold-600));
  background-size: cover, cover;
  background-position: center, center;
  will-change: transform;
}

.cta__scrim {
  position: absolute;
  inset: 0;
  background: rgba(8, 20, 44, 0.72);
}

.cta__inner {
  position: relative;
  z-index: 1;
}

.cta__title {
  font-size: clamp(34px, 5.4vw, 62px);
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.03em;
}

.cta__text {
  max-width: 560px;
  margin: 18px auto 34px;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.82);
}

.cta__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.cta__pix {
  font-size: 15px;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.7);
}

.cta__pix b {
  color: var(--gold-500);
}

/* --------------------------------------------------------------------------
   16. Rodapé
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.7);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
  padding-block: 70px 56px;
}

.site-footer__logo {
  width: 88px;
  margin-bottom: 18px;
}

.site-footer__brand p {
  font-size: 15px;
  line-height: 1.6;
}

.site-footer__brand b {
  color: #fff;
}

.site-footer__col h4 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--gold-500);
  margin-bottom: 16px;
}

.site-footer__col p {
  font-size: 15px;
  line-height: 1.7;
}

.site-footer__col a {
  transition: color 0.25s;
}

.site-footer__col a:hover {
  color: var(--gold-500);
}

.site-footer__note {
  margin-top: 12px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.45);
}

.social {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.social__link {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  /* O ícone herda a cor daqui, então o hover do link já o acompanha. */
  font-size: 16px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.8);
  transition: background-color 0.3s, color 0.3s, transform 0.3s var(--ease-out), border-color 0.3s;
}

.social__link:hover {
  background: var(--gold-500);
  border-color: var(--gold-500);
  color: var(--blue-900);
  transform: translateY(-3px);
}

.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-block: 22px;
}

.site-footer__bottom p {
  font-size: 13.5px;
  text-align: center;
  color: rgba(255, 255, 255, 0.42);
}

/* --------------------------------------------------------------------------
   17. Nossa Equipe
   -------------------------------------------------------------------------- */
.team {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 10% 18%, rgba(245, 197, 24, 0.16), transparent 26%),
    var(--paper-alt);
}

.team::after {
  content: '';
  position: absolute;
  right: -90px;
  bottom: -130px;
  width: 300px;
  aspect-ratio: 1;
  border: 46px solid rgba(22, 65, 143, 0.05);
  border-radius: 50%;
  pointer-events: none;
}

.team-carousel {
  --team-gap: 32px;
  position: relative;
  z-index: 1;
}

.team-carousel__viewport {
  overflow: hidden;
  padding: 18px 8px 28px;
  margin: -18px -8px -28px;
  touch-action: pan-y;
}

.team-carousel__track {
  display: flex;
  gap: var(--team-gap);
  transform: translateX(0);
  transition: transform 0.55s var(--ease-out);
  will-change: transform;
}

.team-member {
  flex: 0 0 calc((100% - (2 * var(--team-gap))) / 3);
  min-width: 0;
  padding: 34px 24px 30px;
  text-align: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 12px 34px rgba(13, 20, 36, 0.08);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}

.team-member:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 44px rgba(13, 20, 36, 0.14);
}

.team-member__photo {
  width: min(220px, 78%);
  aspect-ratio: 1;
  margin: 0 auto 24px;
  border: 7px solid var(--paper);
  border-radius: 50%;
  outline: 3px solid var(--gold-500);
  box-shadow: 0 14px 30px rgba(13, 20, 36, 0.18);
}

.team-member__photo .media__img {
  object-position: center 22%;
}

.team-member__name {
  font-size: clamp(23px, 2.5vw, 29px);
  font-weight: 700;
  color: var(--blue-800);
}

.team-member__nickname {
  min-height: 1.5em;
  margin: 6px 0 0;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.team-member__role {
  display: inline-block;
  margin: 12px 0 0;
  padding: 7px 15px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--blue-900);
  background: var(--gold-500);
}

.team-member__name+.team-member__role {
  margin-top: 38px;
}

.team-carousel__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 42px;
}

.team-carousel__arrow {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 2px solid var(--blue-800);
  border-radius: 50%;
  color: var(--blue-800);
  background: transparent;
  cursor: pointer;
  transition: color 0.25s, background-color 0.25s, transform 0.25s var(--ease-out), opacity 0.25s;
}

.team-carousel__arrow:hover:not(:disabled) {
  color: var(--paper);
  background: var(--blue-800);
  transform: translateY(-2px);
}

.team-carousel__arrow:disabled {
  opacity: 0.32;
  cursor: default;
}

.team-carousel__dots {
  display: flex;
  align-items: center;
  gap: 9px;
}

.team-carousel__dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #b9c0cc;
  cursor: pointer;
  transition: width 0.3s var(--ease-out), background-color 0.3s;
}

.team-carousel__dot.is-active {
  width: 30px;
  background: var(--gold-500);
}

.team-carousel__arrow:focus-visible,
.team-carousel__dot:focus-visible {
  outline: 3px solid rgba(22, 65, 143, 0.3);
  outline-offset: 3px;
}

.team-carousel__status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   18. Responsivo
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .news__grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .practice-areas__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .partners__grid--small {
    grid-template-columns: repeat(3, 1fr);
  }

  .site-footer__inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero__badge img {
    width: 84px;
  }

  .hero__badge-text strong {
    font-size: 22px;
  }
}

@media (max-width: 900px) {
  :root {
    --header-h: 68px;
  }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: #fff;
    box-shadow: 0 18px 40px rgba(13, 20, 36, 0.18);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s var(--ease-out);
  }

  .nav.is-open {
    max-height: 70vh;
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0;
  }

  .nav__list li {
    border-bottom: 1px solid var(--line);
  }

  .nav__list li:last-child {
    border-bottom: 0;
  }

  .nav__link {
    display: block;
    color: var(--ink);
    padding: 15px var(--gutter);
  }

  .nav__link::after {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    min-height: 88vh;
    /* Curso de parallax mais curto no mobile: combina com o amortecimento
       aplicado no JS e, como a sangria entra no cálculo de cobertura,
       reduz o quanto o vídeo 16:9 precisa ser ampliado em tela vertical. */
    --hero-bleed: 8vh;
  }

  .hero__panel {
    width: 100%;
    clip-path: none;
    justify-content: center;
    padding-inline: var(--gutter);
    background: linear-gradient(180deg, rgba(10, 31, 69, 0.15) 0%, rgba(10, 31, 69, 0.8) 55%, rgba(10, 31, 69, 0.95) 100%);
    align-items: flex-end;
    padding-bottom: 110px;
  }

  .hero__panel-content {
    text-align: center;
    max-width: 560px;
  }

  .hero__badge {
    left: 50%;
    top: 24%;
    transform: translate3d(-50%, calc(-50% + var(--parallax, 0px)), 0);
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .hero__badge-text {
    border-left: 0;
    padding-left: 0;
    align-items: center;
  }

  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px 12px;
  }

  .stat:nth-child(3) {
    border-left: 0;
  }

  .split {
    padding: 90px 0;
  }

  .split__inner,
  .split--reverse .split__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .split--reverse .split__figure {
    order: -1;
  }

  .split__figure {
    max-width: 380px;
    margin-inline: auto;
  }

  .split--gold .split__band {
    clip-path: polygon(0 22%, 100% 6%, 100% 100%, 0 100%);
  }

  .split--green .split__band {
    clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%);
  }

  .institution-more {
    grid-column: 1;
    justify-self: start;
  }

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

  .principle-card--values {
    grid-column: auto;
  }

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

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

  .team-carousel {
    --team-gap: 24px;
  }

  .team-member {
    flex-basis: calc((100% - var(--team-gap)) / 2);
  }

  .section {
    padding: 80px 0;
  }

  .cta {
    padding: 100px 0;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 16px;
  }

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

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

  .institution-modal {
    width: calc(100% - 20px);
    max-height: 94dvh;
    border-radius: 16px;
  }

  .institution-modal__surface {
    max-height: 94dvh;
  }

  .institution-modal__header {
    padding: 18px 18px 16px;
  }

  .institution-modal__header h2 {
    font-size: 24px;
  }

  .institution-modal__eyebrow {
    font-size: 12px;
  }

  .institution-modal__close {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  .institution-modal__body {
    padding: 26px 22px 32px;
  }

  .institution-details__content {
    columns: 1;
  }

  .principle-card {
    padding: 28px 24px;
  }

  .practice-areas__grid {
    grid-template-columns: 1fr;
  }

  .practice-areas__grid li {
    min-height: 88px;
  }

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

  .partners__grid--small {
    grid-template-columns: repeat(2, 1fr);
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .brand__text small {
    display: none;
  }

  .site-header__actions .btn--pill {
    display: none;
  }

  .team-block__body {
    padding: 28px 22px 32px;
  }

  .team-carousel {
    --team-gap: 18px;
  }

  .team-member {
    flex-basis: 100%;
    padding-inline: 18px;
  }

  .team-member__photo {
    width: min(230px, 82%);
  }

  .video-card {
    aspect-ratio: 4 / 3;
  }
}

/* --------------------------------------------------------------------------
   19. Acessibilidade — respeita quem prefere menos movimento
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }

  /* O JS não publica `--parallax` neste modo, então as camadas ficam
     paradas sozinhas — zerar o transform aqui quebraria a centragem. */
}

/* Integração WordPress/Elementor */
.admin-bar .site-header {
  top: 32px;
}

.nav__list .menu-item {
  list-style: none;
}

.card__title a,
.event-card__title a {
  color: inherit;
  text-decoration: none;
}

.site-content {
  min-height: 60vh;
  padding-top: 9rem;
}

.elementor-page .site-content {
  padding: 0;
}

@media (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }
}