/*
  JMA — camada visual da versão 2
  Mantém a estrutura de slides e impress.js; muda hierarquia, ritmo e interação.
*/

:root {
  --verde: #20b451;
  --verde-escuro: #14532a;
  --verde-oliva: #356b1d;
  --verde-claro: #b9e5c7;
  --azul: #46a9d4;
  --ink: #121815;
  --muted: #68766e;
  --bg: #edf1f1;
  --card: rgba(255, 255, 255, .84);
  --line: #cbd8d0;
  --r: .55vw;
}

body {
  background:
    radial-gradient(circle at 82% 4%, rgba(32, 180, 81, .08), transparent 22vw),
    var(--bg);
}

.step {
  transition: opacity .55s ease, filter .55s ease;
}

.step:not(.active) {
  filter: saturate(.72);
}

.card {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .34), transparent 38%),
    var(--bg);
  padding: 5.2vh var(--gut) 7vh;
}

.card::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: min(18vw, 220px);
  height: .45vh;
  background: var(--verde);
  opacity: .8;
}

.card > .corpo {
  justify-content: center;
}

.faixa {
  width: 36vw;
  height: 5vh;
  background: var(--verde);
  box-shadow: 0 .8vh 2vh rgba(20, 83, 42, .12);
}

.faixa span {
  font-size: var(--f-xs);
  letter-spacing: .16em;
}

.marca {
  width: 4.9vw;
  opacity: .9;
}

.curvas circle {
  stroke: var(--verde);
  opacity: .44;
}

h1, h2, h3 {
  letter-spacing: -.025em;
}

.eyebrow {
  letter-spacing: .2em;
  font-size: var(--f-xs);
}

.titulo {
  font-size: clamp(30px, 3.35vw, 58px);
  letter-spacing: -.045em;
}

.titulo b {
  color: var(--verde);
}

.titulo small {
  letter-spacing: 0;
}

.sub {
  max-width: 78vw;
}

/* Capa: mantém a força da foto, mas evita corte do slogan. */
.capa .bg::after {
  background:
    linear-gradient(90deg, rgba(32, 180, 81, .9) 0%, rgba(32, 180, 81, .48) 35%, rgba(20, 83, 42, .12) 66%, rgba(0, 0, 0, .26) 100%);
}

.capa .logo {
  width: min(48vw, 760px);
  top: 42%;
}

.capa .tagline {
  left: 50%;
  right: auto;
  bottom: 8.5vh;
  max-width: 66vw;
  white-space: nowrap;
  font-size: clamp(34px, 4.8vw, 72px);
  line-height: .9;
  transform: translateX(-50%);
}

.capa .rodape {
  bottom: 8.5vh;
}

/* Participação ao vivo: QR no primeiro slide e camada não bloqueante no telão. */
.participacao {
  position: absolute;
  top: 5vh;
  right: var(--gut);
  z-index: 4;
  width: min(15vw, 230px);
  padding: .8vw;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: .45vw;
  background: rgba(255, 255, 255, .94);
  color: var(--verde-escuro);
  text-align: center;
  box-shadow: 0 1.5vh 4vh rgba(0, 0, 0, .24);
  backdrop-filter: blur(10px);
}

.participacao-kicker {
  margin-bottom: .45vw;
  color: var(--verde);
  font-size: var(--f-xs);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.participacao-qr {
  aspect-ratio: 1;
  padding: .35vw;
  background: #fff;
}

.participacao-qr img {
  display: block;
  width: 100%;
  height: 100%;
}

#participacao-code {
  display: block;
  margin-top: .5vw;
  color: var(--verde-escuro);
  font-size: var(--f-s);
  letter-spacing: .12em;
}

.participacao > span {
  display: block;
  margin-top: .25vw;
  color: var(--muted);
  font-size: var(--f-xs);
}

#live-barras {
  position: fixed;
  top: 1.1vh;
  left: 50%;
  z-index: 24;
  display: flex;
  gap: .45vw;
  width: min(48vw, 720px);
  transform: translateX(-50%);
  pointer-events: none;
}

.live-led {
  position: fixed;
  top: 1.35vh;
  left: 1.5vw;
  z-index: 25;
  width: clamp(9px, .85vw, 16px);
  height: clamp(9px, .85vw, 16px);
  border: 1px solid rgba(255, 255, 255, .78);
  border-radius: 50%;
  background: #e1a900;
  box-shadow: 0 0 0 .18vw rgba(225, 169, 0, .16), 0 0 1.3vh rgba(225, 169, 0, .48);
  transition: background .35s ease, box-shadow .35s ease;
}

.live-led[data-status="live"] {
  background: var(--verde);
  box-shadow: 0 0 0 .18vw rgba(32, 180, 81, .16), 0 0 1.3vh rgba(32, 180, 81, .5);
}

.live-led[data-status="delay"] {
  background: #e1a900;
  box-shadow: 0 0 0 .18vw rgba(225, 169, 0, .16), 0 0 1.3vh rgba(225, 169, 0, .5);
}

.live-led[data-status="offline"] {
  background: #d64545;
  box-shadow: 0 0 0 .18vw rgba(214, 69, 69, .14), 0 0 1.3vh rgba(214, 69, 69, .48);
}

.live-bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: .3vw;
  min-width: 0;
  flex: 1;
  padding: .25vw .4vw;
  border: 1px solid rgba(20, 83, 42, .12);
  border-radius: 999px;
  background: rgba(255, 255, 255, .84);
  box-shadow: 0 .4vh 1.5vh rgba(20, 83, 42, .1);
  font-size: var(--f-xs);
}

.live-bar span { font-size: var(--f-s); }
.live-bar i {
  display: block;
  height: .38vh;
  min-width: .2vw;
  border-radius: 999px;
  background: var(--verde);
  transition: width .45s cubic-bezier(.2, .7, .2, 1);
}
.live-bar b { color: var(--verde-escuro); font-size: var(--f-xs); }

#live-feed {
  position: fixed;
  top: 8vh;
  right: 1.4vw;
  z-index: 24;
  width: min(17vw, 280px);
  pointer-events: none;
}

.live-feed-title {
  margin-bottom: .5vh;
  color: var(--verde-escuro);
  font-size: var(--f-xs);
  font-weight: 700;
  letter-spacing: .14em;
  text-align: right;
  text-transform: uppercase;
}

#live-eventos {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: .45vh;
}

.live-evento {
  display: flex;
  align-items: center;
  gap: .45vw;
  padding: .4vw .55vw;
  border: 1px solid rgba(255, 255, 255, .58);
  border-radius: .35vw;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 .8vh 2.2vh rgba(20, 83, 42, .14);
  color: var(--ink);
  animation: live-rise .55s cubic-bezier(.2, .8, .2, 1) both;
}

.live-avatar-fallback,
.live-evento img {
  display: grid;
  flex: 0 0 2.1vw;
  width: 2.1vw;
  height: 2.1vw;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: var(--verde-escuro);
  color: #fff;
  font-size: var(--f-xs);
  font-weight: 700;
  object-fit: cover;
}

.live-evento-texto {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.live-evento-texto b,
.live-evento-texto small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.live-evento-texto b { font-size: var(--f-xs); }
.live-evento-texto small { color: var(--muted); font-size: .72em; }
.live-reacao .live-evento-texto small { color: var(--verde); font-size: var(--f-s); }

@keyframes live-rise {
  from { opacity: 0; transform: translateY(2.2vh) scale(.92); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

body.modo-viewer #participacao,
body.modo-viewer #live-barras,
body.modo-viewer #live-led,
body.modo-viewer #live-feed,
body.modo-viewer #barra {
  display: none !important;
}

/* Capítulos: linguagem de abertura editorial, não painel de aplicativo. */
.ato .bg::after {
  background:
    linear-gradient(180deg, rgba(20, 83, 42, .42), rgba(20, 83, 42, .72) 58%, rgba(10, 40, 20, .94));
}

.ato .num {
  color: var(--verde-claro);
  opacity: .27;
  letter-spacing: -.08em;
}

.ato h2 {
  font-size: clamp(54px, 6.8vw, 112px);
  letter-spacing: -.06em;
}

.ato .pergunta {
  font-size: clamp(34px, 4.1vw, 68px);
  line-height: .95;
}

.ato .itens {
  max-width: 84vw;
  gap: .7vw;
  margin-top: 4vh;
}

.ato .itens span {
  border-radius: .25vw;
  border-color: rgba(255, 255, 255, .78);
  background: rgba(5, 40, 20, .2);
  padding: .75vh 1.25vw;
  font-size: var(--f-s);
  backdrop-filter: blur(9px);
}

/* Conteúdo editorial: blocos baixos, planos e com acento verde. */
.cols {
  gap: 1.25vw;
}

.box {
  min-width: 0;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-top: .5vh solid var(--verde);
  border-radius: var(--r);
  background: var(--card);
  box-shadow: 0 1.4vh 3.2vh rgba(20, 83, 42, .055);
  padding: 2.6vh 1.8vw;
  backdrop-filter: blur(5px);
}

.box h3 {
  color: var(--verde-escuro);
  font-size: clamp(19px, 1.65vw, 30px);
  letter-spacing: -.04em;
}

.box p,
.box li {
  color: #28332d;
}

.box:hover {
  border-color: rgba(32, 180, 81, .6);
  box-shadow: 0 1.7vh 4vh rgba(20, 83, 42, .1);
  transform: translateY(-.55vh) scale(1.018);
  position: relative;
  z-index: 3;
}

.box::before,
.tile::before,
#mapa-painel::before,
.radial .centro::before {
  content: "";
  position: absolute;
  inset: -35% auto -35% -70%;
  width: 48%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .52), transparent);
  opacity: 0;
  transform: skewX(-18deg);
  transition: transform .65s ease, opacity .35s ease;
  pointer-events: none;
  z-index: 0;
}

.box:hover::before,
.tile:hover::before,
#mapa-painel:hover::before,
.radial .centro:hover::before {
  opacity: .8;
  transform: translateX(360%) skewX(-18deg);
}

.box > *,
.tile > *,
#mapa-painel > *,
.radial .centro > * {
  position: relative;
  z-index: 1;
}

.box:hover h3 {
  color: var(--verde);
  transition: color .3s ease;
}

.box,
.tile,
.braco,
#mapa-painel,
.radial .centro {
  transition: transform .38s cubic-bezier(.2, .7, .2, 1),
    scale .38s cubic-bezier(.2, .7, .2, 1),
    box-shadow .38s ease,
    border-color .38s ease;
}

.tile:hover {
  transform: translateY(-.45vh) scale(1.035);
  position: relative;
  z-index: 3;
}

.tile:hover .n {
  transform: translateY(-.35vh) scale(1.07);
  text-shadow: 0 .4vh 1.4vh rgba(0, 0, 0, .28);
}

.braco:hover {
  scale: 1.06;
  z-index: 3;
}

.braco .nome,
.braco .num,
.braco .lab {
  transition: transform .35s ease, color .35s ease, text-shadow .35s ease;
}

.braco:hover .nome {
  transform: translateY(-.25vh);
  color: var(--verde);
}

.braco:hover .num {
  transform: translateY(-.35vh) scale(1.08);
  color: var(--verde);
  text-shadow: 0 .5vh 1.4vh rgba(32, 180, 81, .24);
}

#mapa-painel:hover {
  transform: translateY(-.35vh) scale(1.012);
  box-shadow: 0 1.8vh 4.5vh rgba(20, 83, 42, .15);
  position: relative;
  z-index: 3;
}

#missao .cols,
#como .cols,
#integridade .cols,
#parceiros .cols {
  align-self: stretch;
}

#missao .box {
  min-height: 24vh;
}

#como .box {
  min-height: 30vh;
}

.placeholder {
  background: rgba(32, 180, 81, .035);
  border-style: dashed;
}

.tag {
  border-radius: .2vw;
}

/* Números: mais próximos dos painéis verdes da referência. */
.tiles {
  gap: .9vw;
}

.tile {
  position: relative;
  overflow: hidden;
  border-radius: .25vw;
  background: var(--verde-oliva);
  border: 1px solid rgba(255, 255, 255, .18);
  box-shadow: 0 1.2vh 2.6vh rgba(20, 83, 42, .12);
}

.tile:nth-child(2n) {
  background: var(--verde-escuro);
}

.tile .n {
  font-size: clamp(34px, 3.6vw, 68px);
  letter-spacing: -.07em;
}

.tile .l {
  font-size: var(--f-xs);
  letter-spacing: .08em;
}

/* Rede de cuidado: círculo leve, categorias com o azul editorial da JMA. */
.radial .centro {
  position: relative;
  overflow: hidden;
  border-width: .35vw;
  border-color: var(--verde);
  box-shadow: 0 1vh 3vh rgba(20, 83, 42, .08);
}

.radial .centro:hover {
  scale: 1.06;
  box-shadow: 0 1.8vh 4.5vh rgba(20, 83, 42, .18);
  z-index: 3;
}

.marco {
  cursor: default;
  transition: transform .38s cubic-bezier(.2, .7, .2, 1), filter .38s ease;
}

.marco .dot {
  transition: transform .38s ease, box-shadow .38s ease, background .38s ease;
}

.marco:hover {
  transform: translateX(-50%) translateY(-.55vh) scale(1.04);
  filter: saturate(1.12);
  z-index: 3;
}

.marco:hover .dot {
  transform: scale(1.35);
  background: var(--verde-claro);
  box-shadow: 0 0 0 .45vw rgba(32, 180, 81, .18), 0 0 2vh rgba(32, 180, 81, .32);
}

.braco .nome {
  color: var(--azul);
  letter-spacing: .02em;
}

/* Scrolls internos com sinalização visual clara. */
.rolavel,
.tira {
  scrollbar-color: var(--verde) rgba(20, 83, 42, .08);
  scrollbar-width: thin;
}

.rolavel::-webkit-scrollbar,
.tira::-webkit-scrollbar {
  width: .55vw;
}

.rolavel::-webkit-scrollbar-track,
.tira::-webkit-scrollbar-track {
  background: rgba(20, 83, 42, .06);
}

.rolavel::-webkit-scrollbar-thumb,
.tira::-webkit-scrollbar-thumb {
  background: var(--verde);
  border-radius: 999px;
}

/* Fotos: imagem primeiro; informação aparece no hover, foco ou toque. */
.ph {
  border: 1px solid rgba(20, 83, 42, .18);
  border-radius: .35vw;
  box-shadow: 0 1.2vh 2.8vh rgba(20, 83, 42, .1);
  isolation: isolate;
  transition: transform .45s cubic-bezier(.2, .7, .2, 1),
    box-shadow .45s ease,
    border-color .45s ease;
}

.ph::after {
  content: "＋";
  position: absolute;
  right: 1vw;
  top: .8vh;
  color: #fff;
  font-size: var(--f-l);
  line-height: 1;
  opacity: .8;
  text-shadow: 0 .2vh .8vh rgba(0, 0, 0, .45);
  transition: transform .35s ease, opacity .35s ease;
  z-index: 2;
}

.ph img {
  transition: transform .7s cubic-bezier(.2, .7, .2, 1), filter .5s ease;
}

.ph figcaption {
  padding: 5vh 1.2vw 1.6vh;
  background: linear-gradient(180deg, transparent, rgba(8, 39, 20, .9));
  transform: translateY(24%);
}

.ph figcaption b {
  letter-spacing: -.02em;
}

.ph:hover,
.ph:focus-visible {
  outline: none;
  border-color: var(--verde);
  box-shadow: 0 1.8vh 4.5vh rgba(20, 83, 42, .2);
  transform: scale(1.018);
  position: relative;
  z-index: 4;
}

.ph:hover img,
.ph:focus-visible img {
  transform: scale(1.1);
  filter: saturate(1.08);
}

.ph:hover::after,
.ph:focus-visible::after {
  transform: rotate(45deg) scale(1.15);
  opacity: 1;
}

.ph:focus-visible {
  box-shadow: 0 0 0 .3vw rgba(32, 180, 81, .35), 0 1.8vh 4.5vh rgba(20, 83, 42, .2);
}

/* Alcance: faixa de fotos com snap e dica de exploração. */
.tira {
  position: relative;
  grid-template-columns: 1fr;
  gap: .9vw;
  padding: 0 .7vw 1vh 0;
  scroll-snap-type: y proximity;
}

.tira .ph {
  height: 36vh;
  min-height: 25vh;
  scroll-snap-align: start;
}

.scroll-hint {
  position: absolute;
  right: 1.25vw;
  bottom: 1.4vh;
  z-index: 3;
  padding: .7vh .9vw;
  color: #fff;
  background: rgba(20, 83, 42, .88);
  border-radius: .2vw;
  font-size: var(--f-xs);
  letter-spacing: .12em;
  text-transform: uppercase;
  pointer-events: none;
  animation: hint-pulse 1.5s ease-out 2;
}

.scroll-hint span {
  display: inline-block;
  margin-left: .35vw;
  color: var(--verde-claro);
  font-size: var(--f-m);
}

@keyframes hint-pulse {
  0%, 100% { transform: translateY(0); opacity: .86; }
  50% { transform: translateY(-.45vh); opacity: 1; }
}

/* Mosaico: composição assimétrica, com áreas grandes e pequenas. */
.mosaico {
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(8, 10vh);
  grid-auto-rows: unset;
  gap: .8vw;
  margin-top: 2.5vh;
}

.mosaico > .ph {
  grid-column: auto;
  grid-row: auto;
}

.mosaico > .ph:nth-child(1) {
  grid-column: 1 / 7;
  grid-row: 1 / 4;
}

.mosaico > .ph:nth-child(2) {
  grid-column: 7 / 10;
  grid-row: 1 / 3;
}

.mosaico > .ph:nth-child(3) {
  grid-column: 10 / 13;
  grid-row: 1 / 3;
}

.mosaico > .ph:nth-child(4) {
  grid-column: 7 / 13;
  grid-row: 3 / 5;
}

.mosaico > .ph:nth-child(5) {
  grid-column: 1 / 4;
  grid-row: 4 / 7;
}

.mosaico > .ph:nth-child(6) {
  grid-column: 4 / 7;
  grid-row: 4 / 6;
}

.mosaico > .ph:nth-child(7) {
  grid-column: 4 / 7;
  grid-row: 6 / 9;
}

.mosaico > .ph:nth-child(8) {
  grid-column: 10 / 13;
  grid-row: 5 / 9;
}

.mosaico > .ph:nth-child(9) {
  grid-column: 7 / 10;
  grid-row: 5 / 7;
}

.mosaico > .ph:nth-child(10) {
  grid-column: 1 / 4;
  grid-row: 7 / 9;
}

.mosaico > .ph:nth-child(11) {
  grid-column: 7 / 10;
  grid-row: 7 / 9;
}

#galeria .corpo {
  justify-content: flex-start;
}

/* Entrada contextual: montagem curta, definida pelo tipo de conteúdo. */
.step.card.montando .eyebrow,
.step.card.montando .titulo,
.step.card.montando .corpo > * {
  opacity: 1;
}

.step.card.montando[data-entrada="columns"] .corpo > .cols > *,
.step.card.montando[data-entrada="tiles"] .corpo > .tiles > *,
.step.card.montando[data-entrada="swot"] .corpo > .swot > *,
.step.card.montando[data-entrada="horizonte"] .corpo > .horizonte > *,
.step.card.montando[data-entrada="strip"] .tira .ph,
.step.card.montando[data-entrada="mosaic"] .mosaico .ph,
.step.card.montando[data-entrada="timeline"] .timeline .marco,
.step.card.montando[data-entrada="radial"] .radial .centro,
.step.card.montando[data-entrada="radial"] .radial .braco {
  opacity: 1;
}

.step.card.active .eyebrow {
  animation: jma-enter-left .28s cubic-bezier(.2, .7, .2, 1) both;
}

.step.card.active .titulo {
  animation: jma-enter .32s cubic-bezier(.2, .7, .2, 1) .03s both;
}

.step.card.active .corpo > * {
  animation: jma-enter .34s cubic-bezier(.2, .7, .2, 1) .07s both;
}

.step.card.active[data-entrada="columns"] .corpo > .cols > * {
  animation: jma-enter-columns .42s cubic-bezier(.22, .8, .22, 1) var(--entrada-delay, 0ms) both;
}

.step.card.active[data-entrada="tiles"] .corpo > .tiles > * {
  animation: jma-enter-tiles .5s cubic-bezier(.22, .8, .22, 1) var(--entrada-delay, 0ms) both;
}

.step.card.active[data-entrada="swot"] .corpo > .swot > *,
.step.card.active[data-entrada="horizonte"] .corpo > .horizonte > * {
  animation: jma-enter-panels .44s cubic-bezier(.22, .8, .22, 1) var(--entrada-delay, 0ms) both;
}

.step.card.active[data-entrada="strip"] .tira .ph {
  animation: jma-enter-strip .4s cubic-bezier(.22, .8, .22, 1) var(--entrada-delay, 0ms) both;
}

.step.card.active[data-entrada="mosaic"] .mosaico .ph {
  animation: jma-enter-mosaic .5s cubic-bezier(.22, .8, .22, 1) var(--entrada-delay, 0ms) both;
}

.step.card.active[data-entrada="timeline"] .timeline .marco,
.step.card.active[data-entrada="radial"] .radial .centro,
.step.card.active[data-entrada="radial"] .radial .braco {
  animation: jma-enter-anchor .46s cubic-bezier(.22, .8, .22, 1) var(--entrada-delay, 0ms) both;
}

/* Active card prepares while camera moves; animation releases after `pronto`. */
.step.card.active:not(.pronto) * {
  animation-play-state: paused !important;
}

.step.card.active.pronto * {
  animation-play-state: running !important;
}

/* A visão geral usa os cartões como mapa: previews inativos nunca somem. */
.step.card:not(.active) .eyebrow,
.step.card:not(.active) .titulo,
.step.card:not(.active) .corpo > *,
.step.card:not(.active) .corpo > .cols > *,
.step.card:not(.active) .corpo > .tiles > *,
.step.card:not(.active) .corpo > .swot > *,
.step.card:not(.active) .corpo > .horizonte > *,
.step.card:not(.active) .tira .ph,
.step.card:not(.active) .mosaico .ph,
.step.card:not(.active) .timeline .marco,
.step.card:not(.active) .radial .centro,
.step.card:not(.active) .radial .braco {
  opacity: 1;
  animation: none;
}

@keyframes jma-enter {
  from {
    opacity: 0;
    transform: translateY(1.1vh);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes jma-enter-columns {
  from {
    opacity: 0;
    translate: 0 1.4vh;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}

@keyframes jma-enter-tiles {
  from {
    opacity: 0;
    translate: 0 1.8vh;
    scale: .94;
  }
  to {
    opacity: 1;
    translate: 0 0;
    scale: 1;
  }
}

@keyframes jma-enter-panels {
  from {
    opacity: 0;
    translate: -1.2vw 0;
    scale: .98;
  }
  to {
    opacity: 1;
    translate: 0 0;
    scale: 1;
  }
}

@keyframes jma-enter-strip {
  from {
    opacity: 0;
    translate: -1.4vw 0;
    scale: .985;
  }
  to {
    opacity: 1;
    translate: 0 0;
    scale: 1;
  }
}

@keyframes jma-enter-mosaic {
  from {
    opacity: 0;
    translate: 0 1vh;
    scale: .92;
  }
  to {
    opacity: 1;
    translate: 0 0;
    scale: 1;
  }
}

@keyframes jma-enter-anchor {
  from {
    opacity: 0;
    translate: 0 1.3vh;
    scale: .88;
  }
  to {
    opacity: 1;
    translate: 0 0;
    scale: 1;
  }
}

@keyframes jma-enter-left {
  from {
    opacity: 0;
    transform: translateX(-.8vw);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Mapa e painéis: mesma linguagem plana dos outros slides. */
#mapa-leaflet,
#mapa-painel {
  border-radius: .35vw;
  box-shadow: 0 1.2vh 3.2vh rgba(20, 83, 42, .08);
}

#mapa-painel {
  position: relative;
  overflow: hidden;
  border-top: .5vh solid var(--verde);
}

/* Estratégia continua colorida, mas sem quatro linguagens de cartões diferentes. */
.swot .box {
  border-top-width: .7vh;
}

.horizonte .box {
  border-radius: 0;
}

/* Overlay de foto: destaque visual sem quebrar o fluxo de apresentação. */
#destaque {
  background: rgba(5, 28, 15, .96);
  padding: 5vh 5vw 13vh;
  backdrop-filter: blur(8px);
}

#destaque img {
  max-width: 90vw;
  max-height: 70vh;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: .25vw;
  box-shadow: 0 2.5vh 8vh rgba(0, 0, 0, .5);
}

#destaque .leg {
  bottom: 4.8vh;
  max-width: 78vw;
  margin: 0 auto;
  padding: 0;
  font-size: clamp(16px, 1.3vw, 25px);
  line-height: 1.35;
}

#destaque .leg b {
  font-size: clamp(26px, 2.7vw, 50px);
  color: var(--verde-claro);
}

#destaque .fechar {
  position: fixed;
  top: 2.2vh;
  right: 2.3vw;
  z-index: 2;
  border: 0;
  padding: 0;
  background: transparent;
  font: inherit;
  color: #fff;
  font-size: clamp(28px, 2.3vw, 42px);
  line-height: 1;
  text-align: right;
  text-shadow: 0 .2vh 1vh rgba(0, 0, 0, .6);
  opacity: .9;
  cursor: pointer;
}

#destaque .fechar small {
  display: block;
  margin-top: -.3vh;
  font-size: var(--f-xs);
  font-weight: 400;
  letter-spacing: .04em;
  white-space: nowrap;
}

/* Barra permanece útil, mas deixa de competir com o slide. */
#barra {
  padding: 1.1vh 1.7vw 1.1vw 6vw;
  background: linear-gradient(180deg, transparent, rgba(237, 241, 241, .82));
}

#barra button {
  border: 1px solid rgba(20, 83, 42, .25);
  border-radius: .2vw;
  background: rgba(255, 255, 255, .86);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

#barra button:hover,
#barra button:focus-visible {
  border-color: var(--verde);
  background: #fff;
  transform: translateY(-.2vh);
}

#barra .prog {
  background: rgba(20, 83, 42, .12);
}

/* Reduz movimento só quando usuário pedir; interação continua funcional. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

@media (max-aspect-ratio: 1/1) {
  .card {
    padding: 4.5vh var(--gut) 10vh;
  }

  .card::after {
    width: 34vw;
  }

  .faixa {
    width: 52vw;
  }

  .capa .logo {
    width: 84vw;
  }

  .capa .tagline {
    max-width: 92vw;
    font-size: 9vw;
  }

  .participacao {
    top: 4vh;
    right: 4vw;
    width: 28vw;
    padding: 1.5vw;
    border-radius: 1.4vw;
  }

  #live-barras {
    top: .8vh;
    width: 88vw;
    gap: 1vw;
  }

  #live-feed {
    top: 7vh;
    right: 3vw;
    width: 38vw;
  }

  .live-evento {
    padding: 1.1vw 1.4vw;
    border-radius: 1.2vw;
  }

  .live-avatar-fallback,
  .live-evento img {
    flex-basis: 5vw;
    width: 5vw;
    height: 5vw;
  }

  .ato .itens {
    max-width: 90vw;
  }

  .ato .itens span {
    border-radius: 1vw;
  }

  .box {
    border-radius: 1.3vw;
  }

  .mosaico {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: none;
    grid-auto-rows: 18vh;
    gap: 2.5vw;
  }

  .mosaico > .ph:nth-child(n) {
    grid-column: auto;
    grid-row: auto;
  }

  .mosaico > .ph.w2 {
    grid-column: span 2;
  }

  .mosaico > .ph.h2 {
    grid-row: span 2;
  }

  .tira .ph {
    height: 26vh;
  }

  .scroll-hint {
    right: 3vw;
    border-radius: 1vw;
  }

  #destaque {
    padding: 5vh 4vw 16vh;
  }

  #destaque img {
    max-width: 92vw;
    max-height: 62vh;
    border-radius: 1vw;
  }

  #destaque .leg {
    padding: 0 5vw;
  }
}
