:root {
  --background: #f6f2e8;
  --foreground: #1f2a1f;
  --card: rgba(255, 251, 244, 0.88);
  --card-strong: #fefcf8;
  --muted: #667468;
  --line: rgba(31, 42, 31, 0.12);
  --primary: #1d5b45;
  --primary-strong: #12392c;
  --accent: #d97b2d;
  --accent-soft: #f2d4b1;
  --shadow: 0 24px 60px rgba(12, 60, 40, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--foreground);
  background:
    radial-gradient(circle at top left, rgba(217, 123, 45, 0.24), transparent 32%),
    radial-gradient(circle at 85% 10%, rgba(29, 91, 69, 0.18), transparent 28%),
    linear-gradient(180deg, #f8f5ed 0%, #f4efe4 38%, #efe7d7 100%);
}

.portal-shell::before,
.portal-shell::after {
  content: "";
  position: fixed;
  border-radius: 999px;
  filter: blur(10px);
  z-index: -1;
}

.portal-shell::before {
  top: 6rem;
  right: -4rem;
  width: 18rem;
  height: 18rem;
  background: rgba(217, 123, 45, 0.16);
}

.portal-shell::after {
  left: -5rem;
  bottom: 14rem;
  width: 22rem;
  height: 22rem;
  background: rgba(29, 91, 69, 0.1);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

.wrap {
  width: min(1200px, 92vw);
  margin: 0 auto;
}

.topbar {
  margin-top: 22px;
  padding: 20px 28px;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.75), rgba(252, 246, 236, 0.72));
  border-radius: 20px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  gap: 14px;
  align-items: center;
}

.brand img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 11px;
  color: var(--muted);
  font-weight: 700;
}

.brand h1 {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--muted);
  font-weight: 600;
  max-width: 640px;
}

.top-actions {
  display: flex;
  gap: 10px;
}

.btn {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 11px 18px;
  border-radius: 999px;
  font-weight: 600;
  transition: 220ms ease;
}

.btn:hover {
  background: var(--primary-strong);
  transform: translateY(-1px);
}

.btn.ghost {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.8);
  color: var(--foreground);
}

.btn.btn-support {
  background: #ff3b8c;
  border-radius: 0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 800;
}

.btn.btn-support:hover {
  background: #e62d79;
}

.btn.btn-login-ent {
  background: var(--primary, #1d5b45);
  color: #fff;
  border-color: var(--primary, #1d5b45);
}

.btn.btn-login-ent:hover {
  opacity: .88;
}

/* ═══════════════════════════════════════════════════════════
   NAVIGATION
═════════════════════════════════════════════════════════════*/
.main-menu {
  margin-top: 16px;
  position: relative;
  z-index: 100;
}

/* Mobile-only controls — never render on desktop */
.nav-hamburger,
.sub-toggle {
  display: none !important;
}

/* ── DESKTOP horizontal pill bar ──────────────────────────── */
@media (min-width: 981px) {
  .nav-drawer {
    display: block;
  }

  .menu-level {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    background: linear-gradient(to right, #1a6e98, #1d7ba8);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 14px;
    overflow: visible;
    box-shadow: 0 6px 20px rgba(6, 60, 88, .22);
  }

  .menu-item {
    position: relative;
    display: block;
  }

  .menu-item > a,
  .menu-item > .menu-label {
    display: block;
    padding: 11px 20px;
    font-size: .9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, .95);
    text-decoration: none;
    white-space: nowrap;
    transition: background .15s;
  }

  .menu-item > a:hover,
  .menu-item > .menu-label:hover {
    background: rgba(255, 255, 255, .16);
  }

  .menu-item > .menu-label {
    cursor: pointer;
    opacity: .8;
  }

  /* rounded ends on first/last item */
  .menu-level > .menu-item:first-child > a,
  .menu-level > .menu-item:first-child > .menu-label {
    border-radius: 13px 0 0 13px;
  }

  .menu-level > .menu-item:last-child > a,
  .menu-level > .menu-item:last-child > .menu-label {
    border-radius: 0 13px 13px 0;
  }

  /* dividers between items */
  .menu-level > .menu-item + .menu-item > a,
  .menu-level > .menu-item + .menu-item > .menu-label {
    border-left: 1px solid rgba(255, 255, 255, .14);
  }

  /* Dropdown */
  .menu-item > .menu-level {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 220px;
    border-radius: 12px;
    background: #1d7ba8;
    border: 1px solid rgba(255, 255, 255, .15);
    box-shadow: 0 14px 36px rgba(6, 60, 88, .32);
    overflow: hidden;
  }

  .menu-item.open > .menu-level {
    display: block;
  }

  .menu-item.has-children > a::after,
  .menu-item.has-children > .menu-label::after {
    content: ' \25BE';
    font-size: .72em;
    opacity: .7;
    margin-left: 3px;
  }

  .menu-item.open > a::after,
  .menu-item.open > .menu-label::after {
    content: ' \25B4';
  }

  .menu-item > .menu-level .menu-item > .menu-level {
    left: 100%;
    top: -2px;
  }

  .menu-item > .menu-level > .menu-item > a,
  .menu-item > .menu-level > .menu-item > .menu-label {
    padding: 10px 18px;
    font-size: .88rem;
    color: #fff;
    border-left: 0 !important;
    border-radius: 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
  }

  .menu-item > .menu-level > .menu-item:last-child > a,
  .menu-item > .menu-level > .menu-item:last-child > .menu-label {
    border-bottom: 0;
  }
}

.main-grid {
  margin-top: 24px;
  margin-bottom: 32px;
  display: grid;
  gap: 20px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.glass-card {
  background: var(--card);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.section-title {
  font-family: "Merriweather", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
  margin: 0;
}

.section-title-sm {
  font-size: clamp(1.6rem, 2.2vw, 2.4rem);
}

.hero h2 {
  margin-top: 10px;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.9s ease;
}

.hero-layer::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(14, 40, 30, 0.56), rgba(14, 40, 30, 0.38));
}

.hero-layer.is-active {
  opacity: 1;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-has-bg .eyebrow,
.hero-has-bg .section-title,
.hero-has-bg .lead {
  color: #edf7ff;
}

.hero-no-bg {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.65), rgba(245, 238, 225, 0.72));
}

.hero-no-bg .eyebrow {
  color: var(--accent);
}

.hero-no-bg .lead {
  color: var(--muted);
}

.lead {
  margin-top: 14px;
  line-height: 1.7;
  font-size: 18px;
  max-width: 900px;
}

.actions {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-has-bg .btn {
  background: rgba(18, 57, 44, 0.95);
}

.hero-has-bg .btn.ghost {
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.stat {
  border-radius: 28px;
}

.stat .value {
  margin: 0;
  color: var(--primary-strong);
  font-size: 28px;
  font-weight: 800;
}

.stat p:last-child {
  margin-bottom: 0;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.section-head h3 {
  margin: 4px 0 0;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  max-width: 680px;
  line-height: 1.6;
}

.cards-grid {
  display: grid;
  gap: 16px;
}

.cards-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.campaign-card {
  overflow: hidden;
}

.post img,
.cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 14px;
  border: 1px solid var(--line);
  margin-bottom: 12px;
}

.post h4 {
  margin: 8px 0;
  font-size: 28px;
  color: var(--primary-strong);
}

.post p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.post.post-clickable {
  cursor: pointer;
}

.post.post-clickable:hover {
  transform: translateY(-2px);
}

.post-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 11px;
  font-weight: 700;
}

.badge {
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 999px;
  padding: 4px 10px;
}

.content-snippet {
  margin-top: 10px;
  color: var(--foreground) !important;
  max-height: 120px;
  overflow: hidden;
}

.share-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
}

.share-row a:hover {
  color: var(--primary-strong);
}

.inline-link {
  display: inline-block;
  margin-top: 12px;
  color: var(--primary);
  font-weight: 700;
}

.inline-link:hover {
  color: var(--primary-strong);
}

.highlight {
  margin-top: 2px !important;
  margin-bottom: 6px !important;
  color: var(--accent) !important;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 11px;
  font-weight: 700;
}

.video-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.content-page h2 {
  margin-top: 8px;
  font-size: clamp(32px, 4vw, 52px);
  font-family: "Merriweather", Georgia, serif;
}

.content-page-hero {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 8px;
  margin-bottom: 18px;
}

.content-page-avatar {
  width: 132px;
  height: 132px;
  flex: 0 0 132px;
  border-radius: 999px;
  object-fit: cover;
  object-position: center;
  border: 4px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 28px rgba(12, 60, 40, 0.14);
}

.content-page-headings {
  display: grid;
  gap: 8px;
}

.content-page-headings h2 {
  margin: 0;
}

#doacoes,
#contato {
  border-radius: 28px;
}

.final-grid {
  grid-template-columns: 1.1fr 0.9fr;
  align-items: stretch;
}

#doacoes .multiline {
  white-space: pre-wrap;
}

#contato h3 {
  margin-top: 8px;
  margin-bottom: 12px;
  font-size: 32px;
  color: var(--primary-strong);
}

.wa-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  border: 1px solid rgba(37, 211, 102, 0.35);
  background: rgba(37, 211, 102, 0.12);
  color: #0f7a3f;
  padding: 4px 10px;
  font-weight: 700;
}

.social-row {
  margin-top: 16px;
}

.content-page .subtitle {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
}

.content-page .summary {
  margin: 0;
  max-width: 780px;
  color: var(--foreground);
  line-height: 1.7;
}

.rich-text {
  color: var(--foreground);
  line-height: 1.7;
}

.rich-text a {
  color: var(--primary);
  text-decoration: underline;
}

.footer {
  margin-bottom: 28px;
  margin-top: 24px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(248, 243, 234, 0.74));
  border-radius: 20px;
}

.footer p {
  margin: 6px 0;
}

.footer-simple {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
}

.footer-logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
  border-radius: 6px;
}

.copyright {
  color: var(--muted);
  font-size: 14px;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.rise {
  animation: rise 700ms ease-out both;
}

.rise-delay-1 {
  animation-delay: 80ms;
}

.rise-delay-2 {
  animation-delay: 160ms;
}

@media (max-width: 980px) {
  .stats-grid,
  .cards-grid.two,
  .final-grid {
    grid-template-columns: 1fr;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .content-page-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .portal-shell::before,
  .portal-shell::after {
    display: none;
  }

  /* ── Nav mobile: barra fixa com hambúrguer ─────────────── */
  .main-menu {
    width: 100%;
    max-width: 100%;
    margin: 8px 0 0;
    padding: 0 16px;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(to right, #1a6e98, #1d7ba8);
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(6, 60, 88, .25);
  }

  /* Label "Menu" à esquerda */
  .main-menu::before {
    content: 'Menu';
    color: #fff;
    font-weight: 700;
    font-size: .95rem;
    letter-spacing: .02em;
  }

  /* ── Hambúrguer ── */
  .nav-hamburger {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 10px;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    transition: background .15s;
  }

  .nav-hamburger:hover {
    background: rgba(255, 255, 255, .22);
  }

  .nav-hamburger span {
    display: block;
    width: 18px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform .25s ease, opacity .2s ease;
  }

  #main-nav.menu-open .nav-hamburger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  #main-nav.menu-open .nav-hamburger span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }

  #main-nav.menu-open .nav-hamburger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* ── Drawer ── */
  .nav-drawer {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 6px);
    z-index: 300;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 14px 36px rgba(6, 60, 88, .32);
  }

  #main-nav.menu-open .nav-drawer {
    display: block;
  }

  /* ── Menu list dentro do drawer ── */
  .menu-level {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    background: #1d7ba8;
    border: none;
    border-radius: 0;
    box-shadow: none;
  }

  .menu-item {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
  }

  .menu-item > a,
  .menu-item > .menu-label {
    flex: 1;
    display: block;
    padding: 13px 18px;
    font-size: .93rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    border-radius: 0 !important;
  }

  .menu-item > a:active {
    background: rgba(255, 255, 255, .12);
  }

  /* Submenu oculto, abre com .expanded */
  .menu-item > .menu-level {
    display: none;
    position: static;
    flex-basis: 100%;
    width: 100%;
    border-radius: 0;
    box-shadow: none;
    background: rgba(0, 0, 0, .15);
  }

  .menu-item.expanded > .menu-level {
    display: flex;
  }

  .menu-item > .menu-level > .menu-item > a,
  .menu-item > .menu-level > .menu-item > .menu-label {
    padding-left: 32px;
    font-size: .88rem;
    opacity: .9;
  }

  /* ── Botão de expandir submenu ── */
  .sub-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 50px;
    flex-shrink: 0;
    background: rgba(0, 0, 0, .12);
    border: none;
    border-left: 1px solid rgba(255, 255, 255, .1);
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    color: rgba(255, 255, 255, .9);
    cursor: pointer;
    font-size: .8rem;
    padding: 0;
    transition: background .15s, transform .2s;
  }

  .sub-toggle:active {
    background: rgba(0, 0, 0, .22);
  }

  .menu-item.expanded > .sub-toggle {
    transform: rotate(180deg);
    background: rgba(0, 0, 0, .22);
  }
}

