/* ==========================================================
   Jaqueline Cassol — Site institucional
   Folha de estilos principal
   ========================================================== */

/* ---------- Fontes (auto-hospedadas, sem CDN) ---------- */
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-latin-400-normal.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-latin-500-normal.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-latin-600-normal.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-latin-700-normal.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-latin-800-normal.woff2') format('woff2');
  font-weight: 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Playfair Display';
  src: url('../fonts/playfair-display-latin-600-normal.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Playfair Display';
  src: url('../fonts/playfair-display-latin-600-italic.woff2') format('woff2');
  font-weight: 600; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Playfair Display';
  src: url('../fonts/playfair-display-latin-700-italic.woff2') format('woff2');
  font-weight: 700; font-style: italic; font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  /* Paleta oficial da campanha */
  --green:        #178a3d;
  --green-dark:   #0d3d1f;
  --green-light:  #27af48;
  --navy:         #123f6e;
  --navy-light:   #3e9df5;
  --gold:         #fdda02;
  --gold-dark:    #a68a00;
  --cream:        #efefef;
  --white:        #ffffff;
  --ink:          #123f6e;
  --gray:         #667085;
  --gray-light:   #e6e2d6;
  --border:       #e5e7eb;

  /* Cores oficiais da campanha (material de comunicação) */
  --camp-navy:        #123f6e;
  --camp-blue:        #3e9df5;
  --camp-yellow:      #fdda02;
  --camp-gray:        #efefef;
  --camp-green-light: #77d959;
  --camp-green:       #27af48;

  --font-sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;

  --shadow-card: 0 20px 50px -22px rgba(15, 36, 25, 0.35);
  --shadow-float: 0 30px 70px -25px rgba(10, 20, 15, 0.45);

  --container-w: 1180px;
}

/* ---------- Reset básico ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
  overflow-x: hidden; /* trava de segurança: nenhum elemento largo demais deve gerar rolagem lateral no site */
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; font-weight: 700; }
p { margin: 0; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 1rem; }

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--white); color: var(--ink);
  padding: 10px 16px; z-index: 999; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}

.italic-serif { font-family: var(--font-serif); font-style: italic; font-weight: 600; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 15px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1.5px solid transparent;
  transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease, color .25s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--gold { background: var(--gold); color: var(--green-dark); }
.btn--gold:hover { background: var(--gold-dark); box-shadow: 0 12px 24px -10px rgba(216,143,31,0.55); }
.btn--outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.45); }
.btn--outline:hover { background: rgba(255,255,255,0.1); border-color: #fff; }
.btn--outline-dark { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--outline-dark:hover { background: var(--navy); color: #fff; }
.btn--sm { padding: 10px 20px; font-size: 0.85rem; }
.btn--block { width: 100%; justify-content: center; }
.btn svg { width: 16px; height: 16px; flex: none; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 0.9rem;
  color: var(--green); transition: gap .2s ease;
}
.link-arrow:hover { gap: 12px; }
.link-arrow svg { width: 16px; height: 16px; }
.link-arrow--light { color: var(--white); }
.link-arrow--gold { color: var(--gold); }

/* ---------- Eyebrow / kickers ---------- */
.eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dark);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: '';
  width: 26px; height: 2px; background: var(--gold-dark); display: inline-block;
}
.eyebrow--light { color: var(--gold); }
.eyebrow--light::before { background: var(--gold); }

/* ==========================================================
   HEADER
   ========================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--header-bg, rgba(10, 36, 25, 0.55));
  backdrop-filter: blur(var(--header-blur, 10px));
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: background-color .3s ease, box-shadow .3s ease;
}
.site-header.is-scrolled {
  background: rgba(255,255,255,0.97);
  box-shadow: 0 8px 24px -14px rgba(0,0,0,0.25);
  border-bottom-color: transparent;
}
.site-header__inner {
  display: flex; align-items: center; gap: 24px;
  height: 76px;
}
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand__logo { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; flex: none; }
.brand__mark {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--gold); color: var(--green-dark);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif); font-weight: 700; font-size: 1.05rem;
  flex: none;
}
.brand__text { display: flex; flex-direction: column; line-height: 1.2; }
.brand__name { font-weight: 700; font-size: 1.05rem; color: #fff; }
.brand__tagline { font-size: 0.72rem; color: rgba(255,255,255,0.65); letter-spacing: .02em; }
.site-header.is-scrolled .brand__name { color: var(--ink); }
.site-header.is-scrolled .brand__tagline { color: var(--gray); }

.main-nav { display: flex; align-items: center; gap: 22px; }
.main-nav a {
  font-size: 0.92rem; font-weight: 500; color: rgba(255,255,255,0.85);
  position: relative; padding: 6px 0;
}
.main-nav a::after {
  content: ''; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--gold); transition: width .25s ease;
}
.main-nav a:hover::after, .main-nav a.is-active::after { width: 100%; }
.main-nav a.is-active { color: #fff; }
.site-header.is-scrolled .main-nav a { color: var(--ink); }

.nav-cta { flex: none; }
.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; background: none; border: none; padding: 0;
}
.nav-toggle span { width: 100%; height: 2px; background: #fff; transition: all .25s ease; }
.site-header.is-scrolled .nav-toggle span { background: var(--ink); }

/* ==========================================================
   HERO
   ========================================================== */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 15%, rgba(242,169,59,0.14), transparent 45%),
    linear-gradient(155deg, var(--hero-bg, var(--green)) 0%, var(--green-dark) 65%, #071b13 100%);
  padding: 90px 0 60px;
  color: #fff;
}
.hero__decor {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
}
.hero__decor svg { position: absolute; }
.hero__inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.hero__eyebrow { margin-bottom: 26px; }
.hero__title {
  font-size: clamp(2.3rem, 4.2vw, 3.4rem);
  color: #fff;
  margin-bottom: 22px;
}
.hero__title span.line { display: block; }
.hero__title .accent {
  display: block;
  color: var(--gold);
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
}
.hero__description {
  font-size: 1.08rem; color: rgba(255,255,255,0.78); max-width: 520px; margin-bottom: 34px;
}
.hero__ctas { display: flex; gap: 16px; flex-wrap: wrap; }

.hero__card {
  background: #fff; color: var(--ink);
  border-radius: var(--radius-lg);
  padding: 34px 32px;
  box-shadow: var(--shadow-float);
  position: relative;
  animation: floatCard 6s ease-in-out infinite;
}
@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.hero__card-label {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; color: var(--gray);
  margin-bottom: 14px;
}
.hero__card-amount {
  font-size: clamp(2rem, 3vw, 2.5rem); font-weight: 800; color: var(--green);
  margin-bottom: 6px;
}
.hero__card-amount-desc { font-size: 0.85rem; color: var(--gray); margin-bottom: 22px; }
.hero__card-divider { height: 1px; background: var(--border); margin: 20px 0; }
.hero__card-count { display: flex; align-items: baseline; gap: 10px; }
.hero__card-count strong { font-size: 1.8rem; font-weight: 800; color: var(--gold-dark); }
.hero__card-count span { font-size: 0.85rem; color: var(--gray); }

.hero__quote {
  text-align: right; margin-top: 40px; position: relative; z-index: 2;
}
.hero__quote p {
  font-family: var(--font-serif); font-style: italic; font-size: 1.4rem; line-height: 1.35;
}
.hero__quote .line1 { color: rgba(255,255,255,0.55); }
.hero__quote .line2 { color: var(--gold); font-weight: 700; }

.hero__scroll {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin-top: 50px; color: rgba(255,255,255,0.55); font-size: 0.8rem; letter-spacing: 0.05em;
}
.hero__scroll svg { width: 14px; height: 14px; animation: bounce 1.8s infinite; }
@keyframes bounce {
  0%, 100% { transform: translateY(0); opacity: .5; }
  50% { transform: translateY(5px); opacity: 1; }
}

/* ==========================================================
   PILARES
   ========================================================== */
.pillars { background: #fff; padding: 96px 0; overflow: hidden; }
.pillars__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px;
  margin-top: 12px;
}

.pillar-card {
  --pillar-accent: var(--camp-navy);
  --pillar-accent-2: var(--camp-blue);
  --pillar-icon-color: #fff;
  --pillar-code-color: var(--camp-navy);
  position: relative; background: #fff; border-radius: var(--radius-md);
  padding: 38px 26px 28px; box-shadow: var(--shadow-card); overflow: hidden;
  transition: transform .35s ease, box-shadow .35s ease;
}
.pillar-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 5px;
  background: linear-gradient(90deg, var(--pillar-accent), var(--pillar-accent-2));
}
.pillar-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-float); }
.pillar-card:hover .pillar-card__icon { transform: scale(1.08) rotate(-4deg); }

.pillar-card:nth-child(4n+2) { --pillar-accent: var(--camp-green); --pillar-accent-2: var(--camp-green-light); --pillar-code-color: var(--camp-green); }
.pillar-card:nth-child(4n+3) { --pillar-accent: var(--camp-blue); --pillar-accent-2: var(--camp-navy); --pillar-code-color: var(--camp-blue); }
.pillar-card:nth-child(4n+4) { --pillar-accent: var(--camp-yellow); --pillar-accent-2: #e0c400; --pillar-icon-color: var(--camp-navy); --pillar-code-color: #a68a00; }

.pillar-card__num {
  position: absolute; top: 8px; right: 16px; font-family: var(--font-serif, serif);
  font-size: 3.6rem; font-weight: 800; line-height: 1; color: rgba(18, 63, 110, 0.07);
  z-index: 0; user-select: none; pointer-events: none;
}

.pillar-card__icon {
  position: relative; z-index: 1; width: 56px; height: 56px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
  background: linear-gradient(135deg, var(--pillar-accent), var(--pillar-accent-2));
  color: var(--pillar-icon-color);
  box-shadow: 0 12px 24px -12px rgba(18, 63, 110, 0.45);
  transition: transform .35s ease;
}
.pillar-card__icon svg { width: 27px; height: 27px; }

.pillar-card__code {
  position: relative; z-index: 1; display: block; color: var(--pillar-code-color); font-weight: 700;
  font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 8px;
}
.pillar-card__title { position: relative; z-index: 1; font-size: 1.15rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.pillar-card__desc { position: relative; z-index: 1; font-size: 0.92rem; color: var(--gray); line-height: 1.55; }

.pillar-card__bar {
  position: relative; z-index: 1; display: block; height: 4px; width: 0; margin-top: 22px;
  border-radius: 999px; background: linear-gradient(90deg, var(--pillar-accent), var(--pillar-accent-2));
  transition: width .8s ease .3s;
}
[data-reveal].is-visible .pillar-card__bar { width: 52px; }

/* ==========================================================
   NÚMEROS / PRESTAÇÃO DE CONTAS
   ========================================================== */
.numbers { background: var(--cream); padding: 100px 0; }
.section-head {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: end;
  margin-bottom: 56px;
}
.section-head h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem); color: var(--navy); margin-top: 14px;
}
.section-head p { color: var(--gray); font-size: 1rem; }
.section-head--center { grid-template-columns: 1fr; text-align: center; justify-items: center; }

.numbers__grid {
  display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 60px; align-items: center;
  margin-bottom: 60px;
}
.chart-wrap { position: relative; max-width: 320px; margin: 0 auto; }
.chart-wrap canvas { position: relative; z-index: 1; }
.chart-center {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; pointer-events: none;
}
.chart-center strong { font-size: 1.5rem; font-weight: 800; color: var(--navy); }
.chart-center span { font-size: 0.68rem; letter-spacing: 0.08em; color: var(--gray); margin-top: 6px; max-width: 120px; }

.legend { display: flex; flex-direction: column; gap: 22px; }
.legend__row { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; }
.legend__label { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--navy); font-size: 0.95rem; }
.legend__dot { width: 11px; height: 11px; border-radius: 3px; flex: none; }
.legend__amount { font-weight: 700; color: var(--ink); }
.legend__bar { grid-column: 1 / -1; height: 8px; border-radius: 999px; background: var(--gray-light); overflow: hidden; }
.legend__bar-fill { height: 100%; border-radius: 999px; width: 0; transition: width 1.2s cubic-bezier(.2,.8,.2,1); }

.stats-strip {
  display: grid; grid-template-columns: repeat(var(--stat-count, 4), 1fr);
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}
.stat-card { padding: 30px 26px; border-left: 1px solid var(--border); text-align: left; }
.stat-card:first-child { border-left: none; }
.stat-card strong {
  display: block; font-size: clamp(1.5rem, 2.4vw, 1.9rem); font-weight: 800; color: var(--green); margin-bottom: 6px;
}
.stat-card span { font-size: 0.85rem; color: var(--gray); }

/* ==========================================================
   MUNICÍPIOS
   ========================================================== */
.municipios { background: var(--navy); padding: 100px 0; color: #fff; position: relative; overflow: hidden; }
.municipios .eyebrow { color: var(--gold); }
.municipios .eyebrow::before { background: var(--gold); }
.municipios .section-head h2 { color: #fff; }
.municipios .section-head p { color: rgba(255,255,255,0.68); }

.municipios__controls {
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center;
  margin-bottom: 36px;
}
.search-box {
  flex: 1 1 320px; max-width: 420px;
  display: flex; align-items: center; gap: 10px;
  background: #fff; border-radius: 999px; padding: 14px 20px;
}
.search-box svg { width: 18px; height: 18px; color: var(--gray); flex: none; }
.search-box input { border: none; outline: none; width: 100%; font-size: 0.95rem; color: var(--ink); background: transparent; }

.filter-tabs { display: flex; gap: 10px; flex-wrap: wrap; }
.filter-tabs button {
  padding: 10px 20px; border-radius: 999px; border: 1.5px solid rgba(255,255,255,0.25);
  background: transparent; color: #fff; font-size: 0.85rem; font-weight: 600; transition: all .2s ease;
}
.filter-tabs button.is-active { background: var(--gold); border-color: var(--gold); color: var(--green-dark); }
.filter-tabs button:hover:not(.is-active) { border-color: #fff; }

.municipios__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-bottom: 26px;
}
.municipio-card {
  background: #fff; color: var(--ink); border-radius: var(--radius-md); padding: 28px;
  transition: transform .3s ease, box-shadow .3s ease;
}
.municipio-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-float); }
.municipio-card__eyebrow {
  font-size: 0.7rem; letter-spacing: 0.1em; font-weight: 700; color: var(--gold-dark); text-transform: uppercase; margin-bottom: 10px;
}
.municipio-card__name { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; }
.municipio-card__amount { font-size: 1.6rem; font-weight: 800; color: var(--green); margin-bottom: 10px; }
.municipio-card__desc { font-size: 0.88rem; color: var(--gray); margin-bottom: 18px; min-height: 42px; white-space: pre-line; }
.municipio-card__empty { text-align: center; color: rgba(255,255,255,0.7); padding: 40px 0; grid-column: 1 / -1; }

.municipios-pagination {
  display: none; justify-content: center; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-bottom: 26px;
}
.municipios-pagination button {
  min-width: 40px; height: 40px; padding: 0 6px; border-radius: 999px;
  border: 1.5px solid rgba(255,255,255,0.25); background: transparent; color: #fff;
  font-size: 0.9rem; font-weight: 600; display: flex; align-items: center; justify-content: center;
  transition: all .2s ease;
}
.municipios-pagination button:hover:not(.is-active):not(:disabled) { border-color: #fff; }
.municipios-pagination button.is-active { background: var(--gold); border-color: var(--gold); color: var(--green-dark); }
.municipios-pagination button:disabled { opacity: .35; cursor: default; }

.municipios__footnote { text-align: center; font-style: italic; color: rgba(255,255,255,0.5); font-size: 0.85rem; }

/* ==========================================================
   TRAJETÓRIA (teaser na home)
   ========================================================== */
.trajetoria-teaser { display: grid; grid-template-columns: 0.85fr 1.15fr; }
.trajetoria-teaser__visual {
  background: linear-gradient(160deg, var(--green) 0%, var(--green-dark) 100%);
  color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 80px 40px; position: relative; overflow: hidden; text-align: center;
}
.trajetoria-teaser__watermark {
  position: absolute; font-family: var(--font-serif); font-weight: 700; font-size: 9rem;
  color: rgba(255,255,255,0.06); white-space: nowrap; top: 50%; left: 50%;
  transform: translate(-50%, -50%) rotate(-8deg); pointer-events: none;
}
.ro-badge {
  width: 190px; height: 190px; border: 2px solid var(--gold); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; position: relative; z-index: 1;
  margin-bottom: 22px;
}
.ro-badge span { font-family: var(--font-serif); font-weight: 700; font-size: 3.2rem; color: var(--gold); }
.trajetoria-teaser__caption { position: relative; z-index: 1; }
.trajetoria-teaser__caption strong { display: block; font-size: 1.4rem; }
.trajetoria-teaser__caption small { color: rgba(255,255,255,0.6); font-size: 0.85rem; }

/* Variante com a foto da candidata ocupando toda a área verde,
   em vez do círculo pequeno "RO" */
.trajetoria-teaser__visual--photo {
  padding: 0; justify-content: flex-end; background: var(--green-dark);
  min-height: 380px;
}
.trajetoria-teaser__photo {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0;
}
.trajetoria-teaser__visual--photo::after {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(180deg, rgba(10,36,25,0) 45%, rgba(10,36,25,0.85) 100%);
}
.trajetoria-teaser__visual--photo .trajetoria-teaser__caption { padding: 0 40px 44px; width: 100%; }

.trajetoria-teaser__content { background: #fff; padding: 80px 60px; }
.trajetoria-teaser__content h2 { font-size: clamp(1.9rem, 3vw, 2.5rem); color: var(--navy); margin: 16px 0 20px; }
.trajetoria-teaser__content h2 .accent { display: block; }
.trajetoria-teaser__content p.desc { color: var(--gray); margin-bottom: 30px; max-width: 480px; }

.mini-timeline { display: flex; flex-direction: column; gap: 18px; margin-bottom: 32px; }
.mini-timeline__item { display: grid; grid-template-columns: 90px 1fr; gap: 18px; align-items: baseline; }
.mini-timeline__year { font-weight: 800; color: var(--gold-dark); font-size: 0.95rem; }
.mini-timeline__text { font-size: 0.95rem; color: var(--ink); font-weight: 500; }

/* ==========================================================
   NOTÍCIAS
   ========================================================== */
.news { background: var(--cream); padding: 100px 0; }
.news__head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 44px; gap: 24px; flex-wrap: wrap; }
.news__head h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); color: var(--navy); margin-top: 14px; }

.news__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.news-card { background: #fff; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-card); transition: transform .3s ease; }
.news-card:hover { transform: translateY(-6px); }
.news-card__media {
  position: relative; height: 170px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.news-card__media img { width: 100%; height: 100%; object-fit: cover; }
.news-card__media-fallback {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif); font-weight: 700; font-size: 2.6rem; color: rgba(255,255,255,0.35);
  letter-spacing: 0.05em; text-transform: uppercase;
}
.news-card__tag {
  position: absolute; top: 16px; left: 16px; background: rgba(255,255,255,0.92); color: var(--navy);
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 999px; z-index: 2;
}
.news-card__body { padding: 24px; }
.news-card__meta { font-size: 0.78rem; color: var(--gray); margin-bottom: 10px; }
.news-card__title { font-size: 1.08rem; font-weight: 700; margin-bottom: 10px; }
.news-card__excerpt { font-size: 0.9rem; color: var(--gray); margin-bottom: 18px; }

/* ==========================================================
   PARTICIPE (formulário de contato)
   ========================================================== */
.participate {
  background: linear-gradient(155deg, var(--green) 0%, var(--green-dark) 100%);
  padding: 100px 0; color: #fff;
}
.participate__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.participate__title { font-size: clamp(1.9rem, 3.2vw, 2.5rem); margin-bottom: 20px; }
.participate__title .accent { display: block; }
.participate__desc { color: rgba(255,255,255,0.75); max-width: 440px; }

.form-card { background: #fff; border-radius: var(--radius-lg); padding: 36px; color: var(--ink); box-shadow: var(--shadow-float); }
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-size: 0.82rem; font-weight: 600; margin-bottom: 8px; color: var(--navy); }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: 13px 16px; border-radius: var(--radius-sm); border: 1.5px solid var(--border);
  background: #fbfaf7; transition: border-color .2s ease;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { outline: none; border-color: var(--green); }
.form-row textarea { min-height: 110px; resize: vertical; }
.form-alert { padding: 14px 18px; border-radius: var(--radius-sm); font-size: 0.9rem; margin-bottom: 18px; }
.form-alert--success { background: #e7f6ee; color: #146c43; border: 1px solid #b9e6cd; }
.form-alert--error { background: #fdecec; color: #b42318; border: 1px solid #f6c9c6; }

/* ==========================================================
   FOOTER
   ========================================================== */
.site-footer { background: var(--green-dark); color: rgba(255,255,255,0.75); padding: 70px 0 0; }
.site-footer__top {
  display: grid; grid-template-columns: 1.4fr 0.9fr 0.9fr 0.9fr; gap: 40px;
  padding-bottom: 50px; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.brand--light .brand__name { color: #fff; }
.site-footer__about { margin-top: 16px; font-size: 0.9rem; max-width: 280px; }
.site-footer__col h3 { color: #fff; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 18px; }
.site-footer__col ul { display: flex; flex-direction: column; gap: 12px; }
.site-footer__col a { font-size: 0.92rem; }
.site-footer__col a:hover { color: var(--gold); }
.site-footer__bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  padding-top: 24px; padding-bottom: 24px; font-size: 0.8rem; color: rgba(255,255,255,0.5);
}

/* ==========================================================
   PÁGINAS INTERNAS (Trajetória / Resultados / Notícias)
   ========================================================== */
.page-hero {
  background: linear-gradient(155deg, var(--green) 0%, var(--green-dark) 100%);
  color: #fff; padding: 130px 0 70px; text-align: center;
}
.page-hero h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin: 16px 0; }
.page-hero p { color: rgba(255,255,255,0.75); max-width: 600px; margin: 0 auto; }

.timeline-full { padding: 90px 0; }
.timeline-full__list { max-width: 760px; margin: 0 auto; position: relative; padding-left: 40px; }
.timeline-full__list::before {
  content: ''; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px; background: var(--gray-light);
}
.timeline-full__item { position: relative; padding-bottom: 46px; }
.timeline-full__item:last-child { padding-bottom: 0; }
.timeline-full__item::before {
  content: ''; position: absolute; left: -40px; top: 4px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--gold); border: 4px solid #fff; box-shadow: 0 0 0 2px var(--gold);
}
.timeline-full__year { color: var(--gold-dark); font-weight: 800; font-size: 1.05rem; margin-bottom: 6px; display: block; }
.timeline-full__title { font-size: 1.2rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.timeline-full__desc { color: var(--gray); }

.results-page { padding: 90px 0; background: var(--cream); }
.results-summary { display: grid; grid-template-columns: repeat(var(--stat-count, 3), 1fr); gap: 22px; margin-bottom: 60px; }
.results-summary .stat-card { background: #fff; border-radius: var(--radius-md); border: 1px solid var(--border); }

.news-list-page { padding: 90px 0; }

.news-filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 40px; }
.news-filters__tab {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 18px; border-radius: 999px;
  border: 1px solid var(--border); font-size: 0.85rem; font-weight: 600; color: var(--navy); transition: all .2s ease;
}
.news-filters__tab:hover { border-color: var(--tab-cor, var(--green)); color: var(--tab-cor, var(--green)); }
.news-filters__tab.is-active { background: var(--tab-cor, var(--green)); color: #fff; border-color: var(--tab-cor, var(--green)); }
.news-filters__count {
  font-size: 0.72rem; font-weight: 700; background: rgba(0,0,0,0.08); border-radius: 999px; padding: 1px 8px;
}
.news-filters__tab.is-active .news-filters__count { background: rgba(255,255,255,0.25); }

.news-list-page__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-bottom: 50px; }

.pagination { display: flex; justify-content: center; gap: 10px; }
.pagination a, .pagination span {
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; border: 1px solid var(--border); font-size: 0.9rem; font-weight: 600;
}
.pagination a:hover { border-color: var(--green); color: var(--green); }
.pagination .is-active { background: var(--green); color: #fff; border-color: var(--green); }

/* max-width já inclui o padding (box-sizing: border-box global), então o
   texto continua com até ~760px de largura em telas grandes; a diferença é
   que, em telas pequenas, sobra respiro nas laterais em vez do texto ir até
   a borda da tela (o que causava a sensação de "corte" no celular). */
.single-news { padding: 90px 24px; max-width: 760px; margin: 0 auto; }
.single-news__tag {
  display: inline-block; background: var(--cream); color: var(--navy); font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase; padding: 6px 16px; border-radius: 999px; margin-bottom: 18px;
}
.single-news__title { font-size: clamp(1.8rem, 3.4vw, 2.4rem); color: var(--navy); margin-bottom: 14px; overflow-wrap: break-word; }
.single-news__meta { color: var(--gray); font-size: 0.9rem; margin-bottom: 30px; }
.single-news__media { border-radius: var(--radius-md); overflow: hidden; margin-bottom: 34px; }
.single-news__content {
  font-size: 1.05rem; color: #2b2b2b; max-width: 100%;
  overflow-wrap: break-word; word-break: break-word;
}
.single-news__content p { margin-bottom: 18px; }
.single-news__content img {
  max-width: 100%; height: auto; display: block;
  margin: 24px auto; border-radius: 10px;
}
/* Qualquer conteúdo mais "largo" colado no texto (tabela, iframe embutido
   etc.) não pode empurrar a página para o lado no celular. */
.single-news__content table { max-width: 100%; display: block; overflow-x: auto; }
.single-news__content iframe, .single-news__content video { max-width: 100%; }
.single-news__back { margin-bottom: 30px; display: inline-block; }

@media (max-width: 600px) {
  .single-news { padding: 60px 18px; }
}

/* Galeria de fotos inserida dentro do texto de uma notícia (via botão
   "Galeria" no Painel). */
.noticia-galeria-embutida {
  margin: 30px 0; padding: 22px; background: var(--cream); border-radius: var(--radius-md);
}
.noticia-galeria-embutida__titulo { font-size: 1.05rem; color: var(--navy); margin-bottom: 14px; }
.noticia-galeria-embutida__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px;
}
.noticia-galeria-embutida__item {
  display: block; aspect-ratio: 1 / 1; border-radius: 8px; overflow: hidden; box-shadow: var(--shadow-card);
}
.noticia-galeria-embutida__item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.noticia-galeria-embutida__link { font-size: 0.85rem; font-weight: 700; color: var(--green); }
@media (max-width: 600px) {
  .noticia-galeria-embutida__grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
}

.empty-state { text-align: center; padding: 60px 20px; color: var(--gray); }

/* ==========================================================
   GALERIA DE FOTOS
   ========================================================== */
.gallery-page { padding: 90px 0; }
.gallery-filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 40px; }
.gallery-filters a {
  display: inline-block; padding: 8px 18px; border-radius: 999px; border: 1px solid var(--border);
  font-size: 0.85rem; font-weight: 600; color: var(--navy); transition: all .2s ease;
}
.gallery-filters a:hover { border-color: var(--green); color: var(--green); }
.gallery-filters a.is-active { background: var(--green); color: #fff; border-color: var(--green); }

.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 50px; }
.gallery-item {
  position: relative; display: block; aspect-ratio: 1 / 1; border-radius: var(--radius-md);
  overflow: hidden; box-shadow: var(--shadow-card); cursor: pointer;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; cursor: pointer; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item__caption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 12px 8px;
  background: linear-gradient(to top, rgba(0,0,0,0.75), rgba(0,0,0,0));
  color: #fff; font-size: 0.78rem; line-height: 1.3;
}

@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

/* ==========================================================
   GALERIA DE FOTOS NA HOME (carrossel por categoria)
   ========================================================== */
.gallery-home { padding: 90px 0; background: var(--cream); }

.gallery-home__tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.gallery-home__tab {
  padding: 8px 18px; border-radius: 999px; border: 1px solid var(--border); background: #fff;
  font-size: 0.85rem; font-weight: 600; color: var(--navy); cursor: pointer; transition: all .2s ease;
}
.gallery-home__tab:hover { border-color: var(--green); color: var(--green); }
.gallery-home__tab.is-active { background: var(--green); color: #fff; border-color: var(--green); }

.gallery-home__panel { display: none; position: relative; align-items: center; gap: 10px; }
.gallery-home__panel.is-active { display: flex; }

.gallery-home__track {
  display: flex; flex-wrap: nowrap; gap: 14px; overflow-x: auto; scroll-behavior: smooth;
  scroll-snap-type: x mandatory; padding: 4px 2px 10px; flex: 1;
  -ms-overflow-style: none; scrollbar-width: none;
}
.gallery-home__track::-webkit-scrollbar { display: none; }

.gallery-home__item {
  flex: 0 0 auto; width: 220px; height: 220px; border-radius: var(--radius-md); overflow: hidden;
  box-shadow: var(--shadow-card); border: 0; padding: 0; cursor: pointer; scroll-snap-align: start;
  background: #fff; transition: transform .25s ease;
}
.gallery-home__item:hover { transform: translateY(-4px); }
.gallery-home__item img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: pointer; }

.gallery-home__nav {
  flex: none; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--border);
  background: #fff; color: var(--navy); display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all .2s ease;
}
.gallery-home__nav:hover { background: var(--gold); border-color: var(--gold); color: var(--green-dark); }
.gallery-home__nav svg { width: 20px; height: 20px; }

@media (max-width: 640px) {
  .gallery-home__item { width: 160px; height: 160px; }
  .gallery-home__nav { display: none; }
}

/* ---------- Popup (lightbox) ao clicar em uma foto ---------- */
.gallery-lightbox {
  position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center;
  padding: 24px; opacity: 0; visibility: hidden; transition: opacity .25s ease;
}
.gallery-lightbox.is-open { opacity: 1; visibility: visible; }
.gallery-lightbox__backdrop { position: absolute; inset: 0; background: rgba(10, 20, 15, 0.86); }
.gallery-lightbox__inner {
  position: relative; z-index: 1; max-width: min(90vw, 900px); background: #fff; border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: 0 30px 60px rgba(0,0,0,0.4);
}
.gallery-lightbox__inner img { display: block; max-width: 100%; max-height: 74vh; width: auto; margin: 0 auto; object-fit: contain; background: #000; }
.gallery-lightbox__close {
  position: absolute; top: 12px; right: 12px; z-index: 2; width: 38px; height: 38px; border-radius: 50%;
  border: 0; background: rgba(0,0,0,0.55); color: #fff; display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.gallery-lightbox__close svg { width: 18px; height: 18px; }
.gallery-lightbox__footer {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px;
}
.gallery-lightbox__footer span { color: var(--navy); font-size: 0.92rem; }
.gallery-lightbox__download {
  flex: none; width: 42px; height: 42px; border-radius: 50%; background: var(--green); color: #fff;
  display: flex; align-items: center; justify-content: center; transition: background .2s ease;
}
.gallery-lightbox__download:hover { background: var(--gold); color: var(--green-dark); }
.gallery-lightbox__download svg { width: 20px; height: 20px; }

body.gallery-lightbox-open { overflow: hidden; }

/* ==========================================================
   VÍDEOS DO YOUTUBE NA HOME (abas por categoria/tag)
   ========================================================== */
.videos-home { padding: 90px 0; background: #fff; }

.videos-home__tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.videos-home__tab {
  padding: 8px 18px; border-radius: 999px; border: 1px solid var(--border); background: #fff;
  font-size: 0.85rem; font-weight: 600; color: var(--navy); cursor: pointer; transition: all .2s ease;
}
.videos-home__tab:hover { border-color: var(--tab-cor, var(--green)); color: var(--tab-cor, var(--green)); }
.videos-home__tab.is-active { background: var(--tab-cor, var(--green)); color: #fff; border-color: var(--tab-cor, var(--green)); }

.videos-home__panel { display: none; position: relative; align-items: center; gap: 10px; }
.videos-home__panel.is-active { display: flex; }

.videos-home__track {
  display: flex; flex-wrap: nowrap; gap: 18px; overflow-x: auto; scroll-behavior: smooth;
  scroll-snap-type: x mandatory; padding: 4px 2px 10px; flex: 1;
  -ms-overflow-style: none; scrollbar-width: none;
}
.videos-home__track::-webkit-scrollbar { display: none; }

.videos-home__item {
  flex: 0 0 auto; width: 300px; border-radius: var(--radius-md); overflow: hidden;
  box-shadow: var(--shadow-card); border: 0; padding: 0; cursor: pointer; scroll-snap-align: start;
  background: #fff; transition: transform .25s ease; text-align: left; display: flex; flex-direction: column;
}
.videos-home__item:hover { transform: translateY(-4px); }

.videos-home__thumb { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; display: block; }
.videos-home__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.videos-home__play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
}
.videos-home__play svg {
  width: 54px; height: 54px; color: #fff; filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5));
  transition: transform .2s ease;
}
.videos-home__item:hover .videos-home__play svg { transform: scale(1.12); }

.videos-home__tag {
  align-self: flex-start; margin: 12px 14px 0; padding: 4px 12px; border-radius: 999px;
  color: #fff; font-size: 0.72rem; font-weight: 700;
}
.videos-home__titulo {
  padding: 8px 14px 14px; color: var(--navy); font-size: 0.9rem; font-weight: 600; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.videos-home__nav {
  flex: none; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--border);
  background: #fff; color: var(--navy); display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all .2s ease;
}
.videos-home__nav:hover { background: var(--gold); border-color: var(--gold); color: var(--green-dark); }
.videos-home__nav svg { width: 20px; height: 20px; }

@media (max-width: 640px) {
  .videos-home__item { width: 220px; }
  .videos-home__nav { display: none; }
}

/* ---------- Popup (modal) com o player do YouTube ---------- */
.videos-modal {
  position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center;
  padding: 24px; opacity: 0; visibility: hidden; transition: opacity .25s ease;
}
.videos-modal.is-open { opacity: 1; visibility: visible; }
.videos-modal__backdrop { position: absolute; inset: 0; background: rgba(10, 20, 15, 0.9); }
.videos-modal__inner {
  position: relative; z-index: 1; width: 100%; max-width: 900px; background: #fff; border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: 0 30px 60px rgba(0,0,0,0.4);
}
.videos-modal__frame { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.videos-modal__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.videos-modal__titulo { padding: 14px 20px; color: var(--navy); font-size: 0.95rem; font-weight: 600; margin: 0; }
.videos-modal__close {
  position: absolute; top: 12px; right: 12px; z-index: 2; width: 38px; height: 38px; border-radius: 50%;
  border: 0; background: rgba(0,0,0,0.55); color: #fff; display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.videos-modal__close svg { width: 18px; height: 18px; }

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

/* ==========================================================
   QUEM SOU (biografia + carrossel)
   ========================================================== */
.bio-content-section { padding: 90px 0 40px; }
.bio-content { max-width: 760px; margin: 0 auto; }
.bio-content .btn { margin-top: 30px; }

.bio-carousel-section { padding: 60px 0 100px; background: var(--cream); margin-top: 50px; }
.bio-carousel-section__title { text-align: center; font-size: clamp(1.5rem, 2.6vw, 2rem); color: var(--navy); margin-bottom: 40px; }

.carousel { position: relative; max-width: 780px; margin: 0 auto; }
.carousel__viewport { overflow: hidden; border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }
.carousel__track { display: flex; transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.carousel__slide {
  flex: 0 0 100%; margin: 0; position: relative; background: var(--navy);
  aspect-ratio: 16 / 10; display: flex; align-items: flex-end;
}
.carousel__slide img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.carousel__slide figcaption {
  position: relative; z-index: 1; width: 100%; padding: 18px 24px;
  background: linear-gradient(0deg, rgba(10,20,15,0.75), transparent);
  color: #fff; font-size: 0.92rem; font-weight: 500;
}
.carousel__btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%; border: none;
  background: #fff; color: var(--navy); box-shadow: var(--shadow-card);
  display: flex; align-items: center; justify-content: center; transition: background-color .2s ease;
}
.carousel__btn:hover { background: var(--gold); color: var(--green-dark); }
.carousel__btn svg { width: 20px; height: 20px; }
.carousel__btn--prev { left: -20px; }
.carousel__btn--next { right: -20px; }
.carousel__dots { display: flex; justify-content: center; gap: 8px; margin-top: 20px; }
.carousel__dots button {
  width: 9px; height: 9px; border-radius: 50%; border: none; background: var(--gray-light); padding: 0;
}
.carousel__dots button.is-active { background: var(--gold-dark); width: 22px; border-radius: 999px; }

@media (max-width: 600px) {
  .carousel__btn--prev { left: 8px; }
  .carousel__btn--next { right: 8px; }
}

/* ---------- Reveal on scroll ---------- */
[data-reveal] {
  opacity: 0; transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
  transition-delay: var(--reveal-delay, 0s);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* ==========================================================
   RESPONSIVO
   ========================================================== */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__quote { text-align: left; }
  .numbers__grid { grid-template-columns: 1fr; }
  .section-head { grid-template-columns: 1fr; }
  .pillars__grid { grid-template-columns: repeat(2, 1fr); }
  .stats-strip { grid-template-columns: repeat(2, 1fr) !important; }
  .stat-card:nth-child(3) { border-left: none; }
  .municipios__grid { grid-template-columns: repeat(2, 1fr); }
  .trajetoria-teaser { grid-template-columns: 1fr; }
  .trajetoria-teaser__content { padding: 60px 32px; }
  .news__grid, .news-list-page__grid { grid-template-columns: repeat(2, 1fr); }
  .participate__inner { grid-template-columns: 1fr; }
  .site-footer__top { grid-template-columns: 1fr 1fr; }
  .results-summary { grid-template-columns: 1fr !important; }
}

/* A partir daqui o cabeçalho vira menu hambúrguer — feito num breakpoint
   mais alto que o resto do layout porque a barra de navegação (marca +
   5 links + botão) é a área mais "cheia" do site e é a primeira a espremer
   quando a tela estreita, antes de qualquer outra seção. */
@media (max-width: 1100px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  body.nav-open .main-nav {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--green-dark); padding: 24px; gap: 18px; z-index: 99;
    max-height: calc(100vh - 76px); overflow-y: auto;
  }
  body.nav-open .main-nav .nav-cta { margin-top: 4px; }
  /* Quando o menu mobile abre depois de rolar a página, o cabeçalho já está
     no estado "rolado" (fundo branco, texto escuro) — mas o painel do menu
     continua com fundo verde escuro, então os links precisam voltar a ser
     claros para não ficarem ilegíveis (texto escuro sobre fundo escuro). */
  body.nav-open .site-header.is-scrolled .main-nav a { color: rgba(255,255,255,0.85); }
  body.nav-open .site-header.is-scrolled .main-nav a.is-active { color: #fff; }
}

@media (max-width: 720px) {
  .pillars__grid { grid-template-columns: 1fr 1fr; }
  .pillar-card__num { font-size: 2.6rem; }
  .municipios__grid, .news__grid, .news-list-page__grid { grid-template-columns: 1fr; }
  .stats-strip { grid-template-columns: 1fr !important; }
  .stat-card { border-left: none !important; border-top: 1px solid var(--border); }
  .stat-card:first-child { border-top: none; }
  .site-footer__top { grid-template-columns: 1fr; }
  .site-footer__bottom { flex-direction: column; }
}

@media (max-width: 480px) {
  .pillars__grid { grid-template-columns: 1fr; }
}

/* ==========================================================
   Foto da candidata dentro do círculo "RO"
   Qualquer tamanho/proporção enviado no painel se ajusta ao
   círculo automaticamente (object-fit: cover).
   ========================================================== */
.ro-badge--photo { padding: 0; overflow: hidden; }
.ro-badge--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

/* ==========================================================
   Botão flutuante do WhatsApp
   ========================================================== */
.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 30px -10px rgba(0,0,0,0.45);
  z-index: 1000;
  animation: whatsapp-float-bounce 3s ease-in-out infinite;
  transition: transform .2s ease, box-shadow .2s ease;
}
.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 18px 36px -8px rgba(0,0,0,0.5);
  animation-play-state: paused;
}
.whatsapp-float svg { width: 30px; height: 30px; }
@keyframes whatsapp-float-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* ==========================================================
   Setas flutuantes de rolagem (topo / final da página)
   ========================================================== */
.scroll-nav {
  position: fixed;
  left: 24px;
  bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 999;
}
.scroll-nav__btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--green-dark);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 24px -8px rgba(10,20,15,0.5);
  transition: opacity .25s ease, transform .2s ease, background-color .25s ease;
}
.scroll-nav__btn svg { width: 18px; height: 18px; }
.scroll-nav__btn:hover { background: var(--gold-dark); transform: translateY(-2px); }
.scroll-nav__btn.is-disabled { opacity: .35; pointer-events: none; }

@media (max-width: 720px) {
  .whatsapp-float { right: 16px; bottom: 16px; width: 54px; height: 54px; }
  .whatsapp-float svg { width: 26px; height: 26px; }
  .scroll-nav { left: 16px; bottom: 16px; }
  .scroll-nav__btn { width: 40px; height: 40px; }
}
