:root {
  --fight-green: #21f119;
  --fight-green-deep: #11c80b;
  --fight-black: #050806;
  --fight-surface: #0d130f;
  --fight-line: rgba(255,255,255,.14);
  --fight-red: #ef2e37;
  --fight-orange: #ff7b28;
}

/* Entrada cinematografica: o som depende do primeiro gesto do usuario. */
.fight-loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 50% 45%, rgba(33,241,25,.12), transparent 28%),
    linear-gradient(145deg, #020403, #071008 58%, #020403);
  transition: opacity .42s ease, visibility .42s ease;
}
.fight-loader.is-leaving { opacity: 0; visibility: hidden; pointer-events: none; }
.fight-loader::before {
  content: "";
  position: absolute;
  inset: -30%;
  opacity: .12;
  background-image: radial-gradient(circle, #fff 0 1px, transparent 1.2px);
  background-size: 13px 13px;
  animation: fight-grain .24s steps(2) infinite;
}
.fight-loader__arena {
  position: relative;
  width: min(92vw, 760px);
  min-height: 520px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 18px;
  padding: 36px;
  text-align: center;
}
.fight-loader__arena::before,
.fight-loader__arena::after {
  content: "";
  position: absolute;
  left: 5%;
  right: 5%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--fight-green), transparent);
  box-shadow: 0 0 24px rgba(33,241,25,.75);
}
.fight-loader__arena::before { top: 9%; }
.fight-loader__arena::after { bottom: 9%; }
.fight-loader__round {
  color: var(--fight-green);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .36em;
  text-transform: uppercase;
}
.fight-loader__impact {
  position: relative;
  width: 215px;
  height: 215px;
  display: grid;
  place-items: center;
  border-radius: 50%;
}
.fight-loader__logo {
  position: relative;
  z-index: 2;
  width: 180px;
  max-height: 175px;
  object-fit: contain;
  filter: drop-shadow(0 0 28px rgba(33,241,25,.32));
}
.fight-loader__fist {
  position: absolute;
  z-index: 4;
  right: -235px;
  top: 28px;
  width: 132px;
  color: #fff;
  filter: drop-shadow(-17px 14px 0 rgba(33,241,25,.30));
  transform: rotate(-18deg) scale(1.4);
}
.fight-loader.is-ready .fight-loader__fist { animation: fight-punch .72s .12s cubic-bezier(.08,.88,.16,1.12) both; }
.fight-loader__shockwave {
  position: absolute;
  width: 185px;
  height: 185px;
  border: 5px solid var(--fight-green);
  border-radius: 50%;
  opacity: 0;
}
.fight-loader.is-ready .fight-loader__shockwave { animation: fight-shockwave .58s .68s ease-out both; }
.fight-loader h1 {
  margin: 4px 0 0;
  max-width: 720px;
  font-family: var(--condensed);
  font-size: clamp(42px, 7vw, 78px);
  line-height: .9;
  letter-spacing: .035em;
  text-transform: uppercase;
}
.fight-loader p {
  margin: 0;
  color: #d4ddd6;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.fight-loader__enter {
  min-height: 52px;
  margin-top: 8px;
  padding: 0 24px;
  border: 1px solid rgba(33,241,25,.55);
  background: var(--fight-green);
  color: #071008;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 16px 40px rgba(0,0,0,.32);
  transition: transform .2s ease, box-shadow .2s ease;
}
.fight-loader__enter:hover { transform: translateY(-2px); box-shadow: 0 20px 44px rgba(33,241,25,.16); }
.fight-loader__hint { font-size: 11px !important; color: #91a296 !important; letter-spacing: .06em !important; text-transform: none !important; }
body.fight-impact { animation: fight-screen-hit .34s ease-out; }

.fight-sound-toggle {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 5000;
  min-height: 44px;
  padding: 0 15px;
  border: 1px solid rgba(33,241,25,.4);
  border-radius: 999px;
  color: #fff;
  background: rgba(4,8,5,.88);
  box-shadow: 0 12px 36px rgba(0,0,0,.32);
  backdrop-filter: blur(12px);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
  cursor: pointer;
}
.fight-sound-toggle.is-muted { color: #a7b0aa; border-color: rgba(255,255,255,.18); }

.nav-enroll,
.button--fight {
  background: var(--fight-green) !important;
  color: var(--ink) !important;
  border-color: var(--fight-green) !important;
}
.nav-enroll { padding: 10px 14px; font-weight: 950 !important; }

/* Mapa real, com limite oficial do IBGE sobre base cartografica. */
.official-map-card { overflow: hidden; }
.official-map {
  min-height: 590px;
  width: 100%;
  background:
    radial-gradient(circle at 50% 50%, rgba(33,241,25,.09), transparent 40%),
    #09100b;
}
.official-map .leaflet-control-zoom a {
  color: #fff;
  background: #0c120e;
  border-color: rgba(255,255,255,.14);
}
.official-map .leaflet-control-attribution {
  color: #d6ded8;
  background: rgba(5,8,6,.78);
}
.official-map .leaflet-control-attribution a { color: var(--fight-green); }
.official-map .leaflet-popup-content-wrapper,
.official-map .leaflet-popup-tip {
  color: #fff;
  background: #0c120e;
}
.official-map .leaflet-popup-content { margin: 15px 17px; line-height: 1.45; }
.map-popup__modality {
  display: inline-block;
  margin-bottom: 8px;
  padding: 5px 8px;
  border-radius: 999px;
  color: #061006;
  background: var(--fight-green);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.map-popup__title { display: block; margin-bottom: 5px; font-size: 17px; }
.map-popup__address { display: block; color: #b8c3bb; font-size: 12px; }
.map-popup__button {
  display: inline-flex;
  margin-top: 10px;
  padding: 8px 10px;
  border: 0;
  color: #071008;
  background: var(--fight-green);
  font-weight: 900;
  cursor: pointer;
}
.elc-marker {
  position: relative;
  width: 34px;
  height: 34px;
  border: 3px solid #fff;
  border-radius: 50% 50% 50% 12%;
  background: var(--fight-green);
  box-shadow: 0 8px 22px rgba(0,0,0,.38), 0 0 0 6px rgba(33,241,25,.17);
  transform: rotate(-45deg);
}
.elc-marker::after {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 50%;
  background: #071008;
}
.elc-marker.is-muted { opacity: .18; filter: grayscale(1); }
.map-source-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 7px;
  color: #c5d0c8;
  font-size: 11px;
}
.map-source-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--fight-green);
  box-shadow: 0 0 0 4px rgba(33,241,25,.14);
}
.map-loading {
  position: absolute;
  z-index: 500;
  top: 84px;
  left: 50%;
  transform: translateX(-50%);
  padding: 9px 13px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  color: #fff;
  background: rgba(4,8,5,.88);
  font-size: 12px;
  font-weight: 850;
  pointer-events: none;
}

@keyframes fight-grain { 0% { transform: translate(0,0); } 50% { transform: translate(2%, -1%); } 100% { transform: translate(-1%,2%); } }
@keyframes fight-punch {
  0% { right: -235px; opacity: 0; transform: rotate(-18deg) scale(1.4); }
  68% { right: 42px; opacity: 1; transform: rotate(-18deg) scale(1.05); }
  82% { right: 22px; transform: rotate(-12deg) scale(.95); }
  100% { right: 30px; transform: rotate(-14deg) scale(1); }
}
@keyframes fight-shockwave { 0% { opacity: .9; transform: scale(.55); } 100% { opacity: 0; transform: scale(2.1); } }
@keyframes fight-screen-hit { 0% { transform: translate(0); } 18% { transform: translate(-5px,2px); } 38% { transform: translate(5px,-2px); } 62% { transform: translate(-2px,1px); } 100% { transform: translate(0); } }

@media (max-width: 900px) {
  .official-map { min-height: 500px; }
  .fight-sound-toggle { right: 12px; bottom: 12px; }
}
@media (max-width: 620px) {
  .fight-loader__arena { min-height: 460px; padding: 24px 16px; }
  .fight-loader__impact { width: 170px; height: 170px; }
  .fight-loader__logo { width: 140px; max-height: 138px; }
  .fight-loader__fist { width: 104px; }
  .official-map { min-height: 440px; }
  .map-toolbar { align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .fight-loader::before,
  .fight-loader__fist,
  .fight-loader__shockwave,
  body.fight-impact { animation: none !important; }
}

/* --------------------------------------------------------------------------
   Ajustes de responsividade e movimento do site institucional
   -------------------------------------------------------------------------- */

html,
body { max-width: 100%; }
body { overflow-x: clip; }

/* O card de metricas ultrapassa visualmente o hero. Ele nao pode ser recortado. */
.hero { overflow: visible; }
.hero__content,
.hero__grid,
.hero h1,
.hero__lead { min-width: 0; }
.hero h1 { overflow-wrap: normal; word-break: normal; }
.hero h1 em { max-width: 100%; }
.hero-metrics { overflow: visible; }
.hero-metrics strong {
  line-height: 1.08;
  padding-bottom: .06em;
}
.directory-head > p,
.region-map-filter > em {
  line-height: 1.3;
  overflow: visible;
}
.region-map-filter > em {
  min-height: 32px;
  padding-block: 2px;
}

/* Entradas mais perceptiveis durante a rolagem, mantendo o fallback acessivel. */
.reveal {
  filter: blur(6px);
  transform: translate3d(0, 34px, 0) scale(.988);
  transition:
    opacity .78s cubic-bezier(.2,.75,.2,1),
    transform .78s cubic-bezier(.2,.75,.2,1),
    filter .72s ease;
  will-change: opacity, transform, filter;
}
.reveal.is-visible {
  filter: blur(0);
  transform: translate3d(0, 0, 0) scale(1);
}
.project-story__photo.reveal {
  clip-path: inset(0 0 12% 0);
  transition:
    opacity .78s cubic-bezier(.2,.75,.2,1),
    transform .78s cubic-bezier(.2,.75,.2,1),
    filter .72s ease,
    clip-path .9s cubic-bezier(.2,.75,.2,1);
}
.project-story__photo.reveal.is-visible { clip-path: inset(0 0 0 0); }
.project-story__photo.reveal img { transform: scale(1.055); transition: transform 1.05s cubic-bezier(.2,.75,.2,1); }
.project-story__photo.reveal.is-visible img { transform: scale(1); }

.execution-band.reveal .execution-steps article,
.project-story__content.reveal .principles-list article,
.impact-copy.reveal .impact-points article,
.ods-panel.reveal .ods-grid article,
.regions-panel.reveal li {
  opacity: 0;
  transform: translateY(18px);
}
.execution-band.reveal.is-visible .execution-steps article,
.project-story__content.reveal.is-visible .principles-list article,
.impact-copy.reveal.is-visible .impact-points article,
.ods-panel.reveal.is-visible .ods-grid article,
.regions-panel.reveal.is-visible li {
  animation: elc-card-rise .58s cubic-bezier(.2,.75,.2,1) both;
}
.execution-band.reveal.is-visible .execution-steps article:nth-child(2),
.project-story__content.reveal.is-visible .principles-list article:nth-child(2),
.impact-copy.reveal.is-visible .impact-points article:nth-child(2),
.ods-panel.reveal.is-visible .ods-grid article:nth-child(2),
.regions-panel.reveal.is-visible li:nth-child(2) { animation-delay: .08s; }
.execution-band.reveal.is-visible .execution-steps article:nth-child(3),
.project-story__content.reveal.is-visible .principles-list article:nth-child(3),
.impact-copy.reveal.is-visible .impact-points article:nth-child(3),
.ods-panel.reveal.is-visible .ods-grid article:nth-child(3),
.regions-panel.reveal.is-visible li:nth-child(3) { animation-delay: .16s; }
.project-story__content.reveal.is-visible .principles-list article:nth-child(4),
.impact-copy.reveal.is-visible .impact-points article:nth-child(4),
.ods-panel.reveal.is-visible .ods-grid article:nth-child(4),
.regions-panel.reveal.is-visible li:nth-child(4) { animation-delay: .24s; }
.ods-panel.reveal.is-visible .ods-grid article:nth-child(5),
.regions-panel.reveal.is-visible li:nth-child(5) { animation-delay: .32s; }
.regions-panel.reveal.is-visible li:nth-child(6) { animation-delay: .40s; }
.regions-panel.reveal.is-visible li:nth-child(7) { animation-delay: .48s; }

.modalities-grid .modality-card.reveal:nth-child(2),
.gallery-grid .gallery-item.reveal:nth-child(2) { transition-delay: .06s; }
.modalities-grid .modality-card.reveal:nth-child(3),
.gallery-grid .gallery-item.reveal:nth-child(3) { transition-delay: .12s; }
.modalities-grid .modality-card.reveal:nth-child(4),
.gallery-grid .gallery-item.reveal:nth-child(4) { transition-delay: .18s; }
.modalities-grid .modality-card.reveal:nth-child(5),
.gallery-grid .gallery-item.reveal:nth-child(5) { transition-delay: .24s; }
.modalities-grid .modality-card.reveal:nth-child(6),
.gallery-grid .gallery-item.reveal:nth-child(6) { transition-delay: .30s; }
.modalities-grid .modality-card.reveal:nth-child(7) { transition-delay: .36s; }

.hero-metrics article {
  opacity: 0;
  animation: elc-metric-rise .64s cubic-bezier(.2,.75,.2,1) forwards;
}
.hero-metrics article:nth-child(1) { animation-delay: .12s; }
.hero-metrics article:nth-child(2) { animation-delay: .20s; }
.hero-metrics article:nth-child(3) { animation-delay: .28s; }
.hero-metrics article:nth-child(4) { animation-delay: .36s; }

.interactive-map-card.reveal .map-marker__dot { opacity: .15; }
.interactive-map-card.reveal.is-visible .map-marker__dot { animation: elc-marker-pop .42s ease-out both; }
.interactive-map-card.reveal.is-visible .map-marker:nth-child(3n+2) .map-marker__dot { animation-delay: .06s; }
.interactive-map-card.reveal.is-visible .map-marker:nth-child(3n) .map-marker__dot { animation-delay: .12s; }

@keyframes elc-card-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes elc-metric-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes elc-marker-pop {
  0% { opacity: .12; transform: scale(.45); }
  70% { opacity: 1; transform: scale(1.18); }
  100% { opacity: 1; transform: scale(1); }
}

/* O mapa deve caber na largura disponivel; sem canvas de 760px no celular. */
.map-stage { overflow: hidden; }
.nuclei-map {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: 760 / 470;
  touch-action: manipulation;
}
.map-footer p:first-child { white-space: normal; }
.map-marker__halo {
  fill: rgba(255,255,255,.001);
  pointer-events: all;
}

/* Tablets: o titulo nao disputa largura com a colagem. */
@media (max-width: 1180px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 52px;
  }
  .hero__content { max-width: 920px; }
  .hero h1 {
    max-width: 920px;
    font-size: clamp(58px, 9vw, 100px);
    line-height: .86;
  }
  .hero__lead { max-width: 760px; }
  .hero-collage {
    width: 100%;
    max-width: 920px;
    min-height: 560px;
  }
}

@media (max-width: 900px) {
  .hero__grid { padding-top: 60px; }
  .hero-collage { min-height: 520px; }
  .hero-metrics article { padding-bottom: 22px; }
}

@media (max-width: 680px) {
  .hero h1 {
    max-width: 100%;
    font-size: clamp(46px, 14.7vw, 70px) !important;
    line-height: .9;
    letter-spacing: -.035em;
  }
  .hero h1 em { display: inline-block; }
  .hero__lead { max-width: 100%; }
  .hero-collage { min-height: 450px; }
  .hero-metrics {
    margin-bottom: -28px;
    overflow: visible;
  }
  .hero-metrics article {
    min-width: 0;
    padding: 16px 14px 20px;
  }
  .hero-metrics strong {
    font-size: clamp(32px, 10vw, 42px);
    line-height: 1.1;
  }
  .hero-metrics span {
    overflow-wrap: anywhere;
    line-height: 1.35;
  }

  .map-stage {
    padding: 4px 0 0 !important;
    overflow: hidden !important;
  }
  .nuclei-map {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 0 !important;
  }
  .region-labels text { font-size: 17px; }
  .map-marker__dot { r: 8.5px; }
  .map-marker__pulse { r: 13px; }
  .map-marker__halo { r: 21px; stroke: transparent; stroke-width: 18px; }
  .map-marker__number { display: none; }
  .map-tooltip { max-width: calc(100% - 24px); }
  .map-legend { padding: 8px 16px 16px !important; }
  .map-footer { padding: 14px 16px !important; }

  .directory-head > p { padding-bottom: 3px; }
  .region-map-filter > em { min-width: 34px; height: 34px; }
}

@media (max-width: 430px) {
  .hero__grid { padding-top: 48px; }
  .hero h1 { font-size: clamp(43px, 14.2vw, 61px) !important; }
  .hero-collage { min-height: 410px; }
  .hero-metrics article { min-height: 104px; }
  .hero-metrics strong { font-size: 34px; }
  .section-heading h2,
  .gallery-heading h2,
  .impact-copy h2,
  .transparency-card h2 {
    overflow-wrap: break-word;
    word-break: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .project-story__photo.reveal,
  .project-story__photo.reveal img,
  .execution-band.reveal .execution-steps article,
  .project-story__content.reveal .principles-list article,
  .impact-copy.reveal .impact-points article,
  .ods-panel.reveal .ods-grid article,
  .regions-panel.reveal li,
  .hero-metrics article,
  .interactive-map-card.reveal .map-marker__dot {
    opacity: 1 !important;
    filter: none !important;
    clip-path: none !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }
}