/* ===== Projeto REACT — tema neon + responsivo ===== */
:root {
  --neon-blue: #38bdf8;
  --neon-purple: #a78bfa;
  --neon-pink: #f472b6;
  --neon-green: #34d399;
  --bg-dark: #0a0118;
  --bg-darker: #060011;
  --white: #fff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-900: #0f172a;
  --glass-bg: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.12);
  --gradient-neon: linear-gradient(135deg, var(--neon-blue), var(--neon-purple), var(--neon-pink));
  --gradient-react: linear-gradient(
    90deg,
    #ff4d00 0%,
    #7e22ce 18%,
    #facc15 36%,
    #0284c7 54%,
    #65a30d 72%,
    #ff4d00 86%,
    #7e22ce 100%
  );
  --shadow-neon: 0 0 40px rgba(56, 189, 248, 0.25);
  --radius: 16px;
  --radius-sm: 12px;
  --transition: 0.25s ease;
  --transition-bounce: 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
  --container: min(1120px, calc(100% - 2rem));
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--gray-900);
  background: #fafbff;
  line-height: 1.6;
  overflow-x: hidden;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
.container { width: var(--container); margin-inline: auto; padding-inline: 0; }

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 14px 0;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  transition: var(--transition);
}
.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.08);
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: var(--container);
  margin-inline: auto;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gray-900);
  font-weight: 600;
  font-size: 1rem;
  z-index: 2;
}
.logo-text {
  font-family: 'Sora', 'Inter', system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.logo-project-image {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 50%;
  flex-shrink: 0;
  animation: logoSpin 16s linear infinite;
}
@keyframes logoSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.logo-flag {
  width: 24px;
  height: 16px;
  object-fit: cover;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.logo-flag:hover { transform: translateY(-1px) scale(1.03); box-shadow: 0 8px 16px rgba(0, 0, 0, 0.28); }
.logo-flag:focus-visible { outline: 2px solid #22d3ee; outline-offset: 2px; }
.nav-toggle {
  display: none;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  z-index: 2;
}
.nav-toggle:not(:has(.nav-toggle-label)) {
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav-toggle-icon {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle-icon span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gray-900);
  border-radius: 2px;
  transition: var(--transition);
}
.nav-toggle > span:not(.nav-toggle-label):not(.nav-toggle-icon) {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gray-900);
  border-radius: 2px;
  transition: var(--transition);
}
.nav-toggle-label {
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1;
  color: var(--gray-900);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a,
.nav-link-trigger {
  color: rgba(15, 23, 42, 0.86);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  border: none;
  background: transparent;
  line-height: 1.2;
  transition: var(--transition);
}
.nav-links a:hover,
.nav-link-trigger:hover { color: var(--gray-900); background: rgba(15, 23, 42, 0.08); }
.nav-links .nav-active-page {
  background: #d1d5db !important;
  border: 1px solid #9ca3af;
  color: #111827 !important;
  font-weight: 800 !important;
}
.nav-links .nav-active-page:hover {
  background: #d1d5db !important;
  color: #111827 !important;
}
.nav-item-submenu {
  position: relative;
}
.nav-link-has-submenu::after {
  content: '▼';
  display: inline-block;
  margin-left: 6px;
  font-size: 0.62rem;
  opacity: 0.75;
  transform: translateY(-1px);
}
.nav-submenu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 150px;
  list-style: none;
  margin: 0;
  padding: 6px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 1005;
}
.nav-submenu li {
  margin: 0;
}
.nav-submenu a {
  display: block;
  border-radius: 8px;
  padding: 10px 14px;
  color: #111827;
  font-weight: 600;
  white-space: nowrap;
}
.nav-submenu a:hover {
  background: rgba(15, 23, 42, 0.08);
  color: #0f172a;
}
.nav-submenu .nav-active-page {
  background: #e2e8f0;
  color: #111827 !important;
  border: 1px solid #94a3b8;
  font-weight: 700;
}
.nav-item-submenu:hover .nav-submenu,
.nav-item-submenu:focus-within .nav-submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

@media (min-width: 1025px) {
  .nav-submenu {
    min-width: 240px;
    padding: 8px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.14);
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.18);
  }

  .nav-submenu a {
    color: #111827 !important;
  }

  .nav-submenu a:hover {
    background: rgba(37, 99, 235, 0.1) !important;
    color: #1e3a8a !important;
  }

  .nav-submenu .nav-active-page {
    background: #dbeafe !important;
    color: #1e3a8a !important;
    border-color: #93c5fd !important;
  }

  .page-educativo--game .nav-submenu,
  .page-dados .nav-submenu {
    background: #fff;
    border-color: rgba(15, 23, 42, 0.14);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
  }

  .page-educativo--game .nav-submenu a,
  .page-dados .nav-submenu a {
    color: #111827 !important;
  }

  .page-educativo--game .nav-submenu a:hover,
  .page-dados .nav-submenu a:hover {
    background: rgba(0, 212, 255, 0.12) !important;
    color: #0c4a6e !important;
  }

  .nav-item-submenu:hover > .nav-link-has-submenu,
  .nav-item-submenu:focus-within > .nav-link-has-submenu,
  .nav-item-submenu:hover > .nav-link-trigger,
  .nav-item-submenu:focus-within > .nav-link-trigger {
    background: rgba(15, 23, 42, 0.08);
    color: #0f172a;
  }

  .page-educativo--game .nav-item-submenu:hover > .nav-link-has-submenu,
  .page-educativo--game .nav-item-submenu:focus-within > .nav-link-has-submenu,
  .page-educativo--game .nav-item-submenu:hover > .nav-link-trigger,
  .page-educativo--game .nav-item-submenu:focus-within > .nav-link-trigger,
  .page-dados .nav-item-submenu:hover > .nav-link-has-submenu,
  .page-dados .nav-item-submenu:focus-within > .nav-link-has-submenu,
  .page-dados .nav-item-submenu:hover > .nav-link-trigger,
  .page-dados .nav-item-submenu:focus-within > .nav-link-trigger {
    background: rgba(0, 212, 255, 0.16) !important;
    color: #fff !important;
  }
}
.nav-cta {
  background: #000 !important;
  color: var(--white) !important;
  font-weight: 700 !important;
  box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.45);
  animation: navCtaPulseBlack 1.9s ease-out infinite !important;
}
.nav-cta:hover { transform: translateY(-1px); }
@keyframes navCtaPulseBlack {
  0% {
    box-shadow:
      0 0 0 0 rgba(0, 0, 0, 0.42),
      0 0 0 rgba(0, 0, 0, 0.28);
  }
  70% {
    box-shadow:
      0 0 0 12px rgba(0, 0, 0, 0),
      0 0 24px rgba(0, 0, 0, 0.2);
  }
  100% {
    box-shadow:
      0 0 0 0 rgba(0, 0, 0, 0),
      0 0 0 rgba(0, 0, 0, 0);
  }
}
.nav-cta:hover { filter: none; transform: translateY(-1px); }

@keyframes navCtaPulse {
  0% {
    box-shadow:
      0 0 0 0 rgba(56, 189, 248, 0.55),
      0 0 32px rgba(56, 189, 248, 0.2);
  }
  70% {
    box-shadow:
      0 0 0 12px rgba(56, 189, 248, 0),
      0 0 40px rgba(167, 139, 250, 0.28);
  }
  100% {
    box-shadow:
      0 0 0 0 rgba(56, 189, 248, 0),
      0 0 32px rgba(56, 189, 248, 0.2);
  }
}

/* "Acesso" só na página inicial */
body:not(.page-home) .nav-item-submenu:has(.nav-admin-cta) {
  display: none;
}

.nav-admin-cta {
  background: transparent !important;
  border: 2px solid #000;
  color: #000 !important;
  font-weight: 700 !important;
  box-shadow: none;
}
.nav-admin-cta:hover {
  background: rgba(0, 0, 0, 0.08) !important;
  filter: none;
  transform: translateY(-1px);
}

/* Hero */
.hero {
  min-height: min(85vh, 900px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  position: relative;
  background: #fff;
  overflow: hidden;
  padding: clamp(88px, 12vw, 120px) 0 clamp(48px, 8vw, 72px);
}
.hero-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}
.hero-bg-shapes { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-logo-bg {
  position: absolute;
  right: max(-37.5%, -320px);
  top: 44%;
  width: 75%;
  max-width: 900px;
  height: auto;
  opacity: 0.18;
  z-index: 0;
  pointer-events: none;
  filter: drop-shadow(0 10px 28px rgba(56, 189, 248, 0.2));
  animation: heroLogoSpin 36s linear infinite;
}
.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.18;
  animation: morphFloat 18s ease-in-out infinite;
}
.shape-1 { width: 40vw; max-width: 420px; height: 40vw; max-height: 420px; background: var(--neon-purple); top: -10%; left: -5%; }
.shape-2 { width: 35vw; max-width: 360px; height: 35vw; max-height: 360px; background: var(--neon-blue); bottom: 10%; right: -8%; animation-delay: -6s; }
.shape-3 { width: 25vw; max-width: 280px; height: 25vw; max-height: 280px; background: var(--neon-pink); top: 40%; left: 30%; animation-delay: -12s; }
.shape-4 { width: 20vw; max-width: 220px; height: 20vw; max-height: 220px; background: var(--neon-green); bottom: 30%; left: 10%; animation-delay: -3s; }
@keyframes morphFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(4%, -3%) scale(1.05); }
  66% { transform: translate(-3%, 4%) scale(0.95); }
}
@keyframes heroLogoSpin {
  from { transform: translateY(-44%) rotate(0deg); }
  to { transform: translateY(-44%) rotate(360deg); }
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(167, 139, 250, 0.16), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(56, 189, 248, 0.12), transparent 50%);
  z-index: 0;
  animation: aurora 12s ease infinite alternate;
}
@keyframes aurora {
  from { opacity: 0.85; }
  to { opacity: 1; }
}
.page-home .nav-container,
.hero > .hero-content,
.page-home .footer > .container {
  margin-left: clamp(1.25rem, 5vw, 4rem);
  margin-right: auto;
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: left;
  color: var(--gray-900);
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(12px);
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.hero-badge-icon {
  font-size: 1.05rem;
  line-height: 1;
  flex: 0 0 auto;
}
.hero-title {
  font-family: 'Sora', 'Inter', system-ui, sans-serif;
  font-size: clamp(2.25rem, 7vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 1rem;
}
.hero-project { color: #000; }
.hero-react {
  margin: 0 0.15em;
  background: var(--gradient-react);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradientText 8s linear infinite;
  background-size: 220% auto;
}
.hero-under-title {
  margin: -0.2rem 0 0.85rem;
  font-size: clamp(1.25rem, 3.2vw, 1.85rem);
  color: rgba(15, 23, 42, 0.9);
  font-weight: 700;
  letter-spacing: 0.01em;
}
@keyframes gradientText {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}
.hero-subtitle {
  max-width: 46rem;
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: rgba(15, 23, 42, 0.84);
  margin: 0 0 0.75rem;
}
.hero-desc {
  max-width: 46rem;
  margin: 0 0 1.75rem;
  color: rgba(15, 23, 42, 0.72);
  font-size: clamp(0.85rem, 2vw, 1rem);
  padding-inline: 0;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-start;
  margin-bottom: 2rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition-bounce);
}
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-primary {
  background: var(--gradient-neon);
  color: var(--white);
  box-shadow: var(--shadow-neon);
  position: relative;
  overflow: hidden;
}
.btn-primary:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 12px 40px rgba(167, 139, 250, 0.35); }
.btn-black {
  background: #000;
  color: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}
.btn-black:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}
.btn-outline {
  border: 2px solid rgba(255, 255, 255, 0.35);
  color: var(--white);
  background: transparent;
}
.hero .btn-outline {
  border-color: rgba(15, 23, 42, 0.28);
  color: var(--gray-900);
}
.btn-outline:hover { border-color: var(--neon-blue); background: rgba(56, 189, 248, 0.12); }
.btn-denuncia {
  animation: denunciaPulse 1.9s ease-out infinite;
}
.btn-denuncia:hover { animation-play-state: paused; }
@keyframes denunciaPulse {
  0% { box-shadow: 0 0 0 0 rgba(15, 23, 42, 0.35); }
  70% { box-shadow: 0 0 0 14px rgba(15, 23, 42, 0); }
  100% { box-shadow: 0 0 0 0 rgba(15, 23, 42, 0); }
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(10px, 3vw, 20px);
  max-width: 640px;
  margin-inline: auto;
}
.stat {
  padding: 16px 12px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(15, 23, 42, 0.1);
  backdrop-filter: blur(12px);
  transition: var(--transition);
}
.stat:hover { transform: translateY(-3px); box-shadow: 0 8px 32px rgba(56, 189, 248, 0.2); }
.stat-number { font-size: clamp(1.5rem, 4vw, 2rem); font-weight: 800; color: var(--neon-blue); }
.stat-suffix { font-weight: 800; color: var(--neon-pink); }
.stat-label { display: block; font-size: 0.75rem; color: rgba(15, 23, 42, 0.68); margin-top: 4px; }
.hero-scroll { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 2; }
.scroll-indicator {
  width: 28px;
  height: 44px;
  border: 2px solid rgba(15, 23, 42, 0.28);
  border-radius: 14px;
  position: relative;
}
.scroll-indicator::after {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  background: var(--gray-900);
  border-radius: 2px;
  animation: scrollDot 1.5s ease infinite;
}
@keyframes scrollDot {
  0%, 100% { opacity: 1; transform: translateY(0); }
  50% { opacity: 0.4; transform: translateY(12px); }
}

.page-noticias { padding-top: 72px; background: #fafbff; }

/* News ticker */
.news-ticker {
  display: flex;
  align-items: stretch;
  background: var(--bg-darker);
  border-bottom: 1px solid var(--glass-border);
  overflow: hidden;
}
.news-ticker-label {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--white);
  background: var(--gradient-react);
}
.news-ticker-track { flex: 1; overflow: hidden; mask-image: linear-gradient(90deg, transparent, black 2%, black 98%, transparent); }
.news-ticker-content {
  display: flex;
  gap: 3rem;
  padding: 12px 0;
  width: max-content;
  animation: ticker 40s linear infinite;
}
.news-ticker:hover .news-ticker-content { animation-play-state: paused; }
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.ticker-item {
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
}
.ticker-source { font-weight: 700; margin-right: 6px; }

/* Sections */
.section { padding: clamp(48px, 8vw, 72px) 0; }
.section-header { text-align: center; max-width: 640px; margin: 0 auto clamp(28px, 5vw, 40px); }
#noticias .section-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
#noticias .section-title,
#noticias .section-desc,
#noticias .section-tag {
  text-align: center;
}
.section-tag {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.12);
  color: #6366f1;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 12px;
}
#noticias .section-tag {
  padding: 8px 18px;
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(12px);
  color: inherit;
  font-size: 0.85rem;
  font-weight: 500;
}
.section-title {
  font-family: 'Sora', 'Inter', system-ui, sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin: 0 0 12px;
  line-height: 1.2;
}
.section-desc { margin: 0; color: var(--gray-500); font-size: 1rem; }
#noticias .section-desc { white-space: nowrap; }
.text-gradient {
  background: var(--gradient-neon);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.text-gradient-react {
  display: inline-block;
  white-space: nowrap;
  background: var(--gradient-react);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 220% auto;
  animation: gradientText 8s linear infinite;
}

/* News section */
.news-search-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--gray-100);
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
  margin-bottom: 16px;
  transition: var(--transition);
}
.news-search-wrapper:focus-within {
  border-color: var(--neon-blue);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2), var(--shadow-neon);
}
.news-search-icon { opacity: 0.5; }
#newsSearchInput {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  font-size: 1rem;
  padding: 8px 4px;
}
.news-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.news-filter {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  background: var(--gray-100);
  color: var(--gray-900);
  transition: var(--transition);
}
.news-filter:hover, .news-filter.active {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(167, 139, 250, 0.2));
  color: var(--gray-900);
  font-weight: 600;
}
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 20px;
  align-items: stretch;
}
@media (min-width: 900px) {
  .news-card-featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 0;
    align-items: stretch;
  }
  .news-card-featured .news-card-link {
    display: contents;
  }
  .news-card-featured .news-card-img-wrap {
    aspect-ratio: auto;
    min-height: 220px;
    max-height: 320px;
  }
  .news-card-featured .news-card-img {
    min-height: 220px;
    max-height: 320px;
  }
  .news-card-featured .news-card-body {
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .news-card-featured .news-card-title {
    font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  }
  .news-card-featured .news-card-footer {
    grid-column: 1 / -1;
    padding-top: 0;
    margin-top: -4px;
  }
}
.news-loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px;
  color: var(--gray-500);
}
.news-spinner {
  width: 40px;
  height: 40px;
  margin: 0 auto 12px;
  border: 3px solid var(--gray-100);
  border-top-color: var(--neon-purple);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.news-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--gray-100);
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
  transition: var(--transition-bounce);
}
.news-card:hover { transform: translateY(-6px) scale(1.01); box-shadow: 0 16px 48px rgba(99, 102, 241, 0.12); }
.news-card-link { display: block; color: inherit; }
.news-card-img-wrap {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(145deg, #e2e8f0 0%, #f1f5f9 100%);
  position: relative;
}
.news-card-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.06);
}
.news-card-img {
  width: 100%;
  height: 100%;
  min-height: 160px;
  object-fit: cover;
  object-position: center 28%;
  transition: transform 0.5s var(--transition-bounce);
}
.news-card:hover .news-card-img { transform: scale(1.04); }
.news-card-img-placeholder {
  width: 100%;
  height: 100%;
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: rgba(255, 255, 255, 0.9);
  background-size: 200% 200%;
  animation: placeholderShift 8s ease infinite;
}
@keyframes placeholderShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.placeholder-initial { font-weight: 800; font-size: 2rem; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.2); }
.news-card-body { padding: 16px; }
.news-card-meta { font-size: 0.75rem; color: var(--gray-500); margin-bottom: 8px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.news-card-source {
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  color: var(--white);
}
.news-card-title { font-size: 1.05rem; font-weight: 700; margin: 0 0 8px; line-height: 1.35; }
.news-card-excerpt { font-size: 0.88rem; color: var(--gray-500); margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-card-footer {
  padding: 0 16px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
}
.news-card-portal { font-size: 0.8rem; color: var(--neon-purple); font-weight: 600; }
.news-more { text-align: center; margin-top: 28px; }
.news-more[hidden] { display: none !important; }

/* About */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 20px;
}
.about-card {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--gray-100);
  transition: var(--transition-bounce);
}
.about-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08); }
.about-icon { font-size: 2rem; margin-bottom: 12px; }
.about-card h3 { margin: 0 0 10px; font-size: 1.2rem; }
.about-card p { margin: 0; color: var(--gray-500); font-size: 0.95rem; }

/* Dados */
.section-dados {
  background: var(--bg-dark);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.section-dados .section-tag { background: rgba(255, 255, 255, 0.1); color: var(--neon-blue); }
.section-dados .section-title { color: var(--white); }
.section-dados .section-desc { color: rgba(255, 255, 255, 0.6); }
.dados-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 20px;
}
.dado-card {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  text-align: center;
  transition: var(--transition);
}
.dado-card:hover { box-shadow: 0 8px 32px rgba(56, 189, 248, 0.15); transform: translateY(-4px); }
.dado-icon { font-size: 2rem; margin-bottom: 8px; }
.dado-number { font-size: clamp(2rem, 5vw, 2.75rem); font-weight: 800; color: var(--neon-blue); display: inline; }
.dado-suffix { font-size: 1.5rem; font-weight: 700; color: var(--neon-pink); }
.dado-desc { margin: 12px 0 8px; font-size: 0.9rem; color: rgba(255, 255, 255, 0.75); }
.dado-source { font-size: 0.75rem; color: rgba(255, 255, 255, 0.45); line-height: 1.45; }
.dado-source a { color: rgba(125, 211, 252, 0.9); text-decoration: underline; text-underline-offset: 2px; }
.dado-source a:hover { color: #fff; }

.dados-grid--panorama { margin-bottom: 40px; }
.dados-tipos-header {
  margin: 0 0 24px;
  max-width: 720px;
}
.dados-tipos-header h3 {
  margin: 0 0 10px;
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  color: var(--white);
}
.dados-tipos-header p {
  margin: 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.95rem;
  line-height: 1.6;
}
.dados-tipos-header a { color: rgba(125, 211, 252, 0.95); }

.dados-grid--tipos { margin-bottom: 36px; }

.dado-card--highlight {
  border-color: rgba(56, 189, 248, 0.25);
  background: rgba(15, 23, 42, 0.55);
}

.dado-card--tipo {
  text-align: left;
  border-top: 3px solid rgba(56, 189, 248, 0.5);
}
.dado-card--tipo .dado-icon { margin-bottom: 4px; }
.dado-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 6px;
}
.dado-card--fisico { border-top-color: #f87171; }
.dado-card--verbal { border-top-color: #a78bfa; }
.dado-card--social { border-top-color: #fbbf24; }
.dado-card--cyber { border-top-color: #38bdf8; }

.dados-fontes {
  padding: 24px;
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.dados-fontes h3,
.dados-fontes h4 {
  margin: 0 0 12px;
  color: var(--white);
  font-size: 1rem;
}

.page-dados-main {
  padding-top: calc(72px + 48px);
  min-height: 100vh;
}

.dados-tipos-header h2 {
  margin: 0 0 10px;
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  color: var(--white);
}

.dados-page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 36px;
}

.dados-btn-outline {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

.dados-btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.dados-fontes ul {
  margin: 0 0 16px;
  padding-left: 1.2rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.88rem;
  line-height: 1.65;
}
.dados-fontes li + li { margin-top: 6px; }
.dados-nota {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.6;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 14px;
}

/* CTA */
.section-cta {
  background: var(--bg-dark);
  padding: clamp(40px, 8vw, 60px) 0;
  position: relative;
  overflow: hidden;
}
.cta-content { text-align: center; color: var(--white); position: relative; z-index: 1; }
.cta-content h2 { font-family: 'Sora', 'Inter', system-ui, sans-serif; font-size: clamp(1.5rem, 4vw, 2.25rem); margin: 0 0 12px; }
.cta-content p { color: rgba(255, 255, 255, 0.7); margin: 0 0 24px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.btn-white {
  background: var(--white);
  color: var(--gray-900);
}
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(255, 255, 255, 0.2); }
.btn-outline-white {
  border: 2px solid rgba(255, 255, 255, 0.4);
  color: var(--white);
}
.btn-outline-white:hover { background: rgba(255, 255, 255, 0.1); }

/* Footer */
.footer {
  background: var(--bg-darker);
  color: rgba(255, 255, 255, 0.75);
  padding: 48px 0 24px;
  border-top: 1px solid var(--glass-border);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 32px;
  margin-bottom: 32px;
}
.footer-logo { display: flex; align-items: center; gap: 8px; color: var(--white); font-weight: 600; margin-bottom: 12px; }
.footer-about p { font-size: 0.9rem; margin: 0 0 16px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--glass-bg);
  transition: var(--transition);
}
.footer-social-whatsapp { color: #25D366; }
.footer-social-whatsapp svg {
  width: 20px;
  height: 20px;
  display: block;
  fill: currentColor;
}
.footer-social a:hover { box-shadow: 0 0 20px rgba(56, 189, 248, 0.35); transform: translateY(-2px); }
.footer-links h4 { color: var(--white); margin: 0 0 14px; font-size: 0.95rem; }
.footer-links ul { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { font-size: 0.9rem; color: rgba(255, 255, 255, 0.65); }
.footer-links a:hover { color: var(--neon-blue); }
.footer-contact h4 { color: var(--white); margin: 0 0 14px; }
.footer-contact p { margin: 0 0 8px; font-size: 0.9rem; }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--glass-border);
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
}
.footer-bottom p { margin: 4px 0; }

/* Fade in */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ===== Mobile / tablet ===== */
@media (max-width: 900px) {
  .hero-stats { grid-template-columns: 1fr; max-width: 280px; }
}

@media (max-width: 768px) {
  /* Nav mobile: ver responsive.css + nav-mobile.js */
  .hero { align-items: stretch; }
  .hero > .hero-content {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    text-align: left;
  }
  .hero-title,
  .hero-under-title,
  .hero-subtitle,
  .hero-desc {
    display: block;
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    text-align: left;
  }
  .hero-badge {
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    text-align: left;
    justify-content: flex-start;
    font-size: 0.62rem;
    gap: 5px;
    padding: 5px 10px;
    margin-bottom: 0.85rem;
    letter-spacing: 0.01em;
  }
  .hero-badge-icon { font-size: 0.85rem; }
  .hero-under-title {
    font-size: 0.95rem;
    margin-bottom: 0.55rem;
  }
  .hero-subtitle { font-size: 0.82rem; }
  .hero-desc {
    font-size: 0.75rem;
    margin-bottom: 1.15rem;
  }
  .hero-actions {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: flex-start;
    gap: 8px;
    width: 100%;
  }
  .hero-actions .btn,
  .hero-actions .btn-lg {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    min-height: 40px;
    padding: 8px 10px;
    font-size: 0.75rem;
    line-height: 1.2;
    text-align: center;
    white-space: normal;
  }
  .hero-scroll { display: none; }
  .news-ticker { flex-direction: column; }
  .news-ticker-label { justify-content: center; }
  .news-search-wrapper .btn { width: 100%; }
}

@media (max-width: 480px) {
  :root { --container: min(100%, calc(100% - 1.25rem)); }
  .hero-actions { flex-direction: row; flex-wrap: nowrap; align-items: stretch; gap: 8px; width: 100%; }
  .hero-actions .btn,
  .hero-actions .btn-lg {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    min-height: 38px;
    padding: 7px 8px;
    font-size: 0.7rem;
  }
  .cta-actions { flex-direction: column; }
  .cta-actions .btn { width: 100%; }
  .hero-logo-bg { width: clamp(160px, 55vw, 280px); right: -22%; top: 42%; opacity: 0.16; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .news-ticker-content, .shape, .hero-react, .scroll-indicator::after, .logo-project-image, .hero-logo-bg { animation: none !important; }
  .nav-cta, .btn-denuncia { animation: none !important; }
  .news-card-img { transition: none; }
  .news-card:hover .news-card-img { transform: none; }
  .news-card-img-placeholder { animation: none !important; }
}

/* ===== Acessibilidade (botao discreto flutuante) ===== */
html.a11y-grayscale { filter: grayscale(1); }
html.a11y-reduce-motion *,
html.a11y-reduce-motion *::before,
html.a11y-reduce-motion *::after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}
body.a11y-high-contrast {
  background: #fff !important;
  color: #000 !important;
}
body.a11y-high-contrast .hero,
body.a11y-high-contrast .section-cta,
body.a11y-high-contrast .navbar.scrolled {
  background: #fff !important;
}
body.a11y-high-contrast .card,
body.a11y-high-contrast .about-card,
body.a11y-high-contrast .dado-card,
body.a11y-high-contrast details {
  background: #fff !important;
  color: #000 !important;
  border-color: #000 !important;
  box-shadow: none !important;
}
/* Barra fixa: acessibilidade + VLibras (canto inferior direito) */
.accessibility-dock {
  position: fixed;
  right: max(16px, env(safe-area-inset-right, 0px));
  bottom: max(16px, env(safe-area-inset-bottom, 0px));
  z-index: 13000;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  pointer-events: none;
}

.accessibility-dock > * {
  pointer-events: auto;
  flex-shrink: 0;
}

/* VLibras dentro da barra (sem flutuar separado) */
.accessibility-dock [vw] {
  position: relative !important;
  inset: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  top: auto !important;
  transform: none !important;
  margin: 0 !important;
}

.accessibility-dock [vw-access-button] {
  position: relative !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  top: auto !important;
  margin: 0 !important;
  width: 40px !important;
  height: 40px !important;
  border-radius: 999px !important;
}

.accessibility-dock [vw-plugin-wrapper] {
  position: fixed !important;
  inset: 0 !important;
  z-index: 13001 !important;
  pointer-events: none;
}

.accessibility-dock [vw-plugin-wrapper].active,
.accessibility-dock [vw-plugin-wrapper][style*="display: block"] {
  pointer-events: auto;
}

.a11y-widget {
  position: relative;
  right: auto;
  bottom: auto;
  z-index: 1;
}
.a11y-toggle {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 1, 24, 0.72);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  box-shadow: 0 8px 24px rgba(6, 0, 17, 0.38);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.a11y-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  width: min(260px, calc(100vw - 24px));
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(10, 1, 24, 0.92);
  color: #fff;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.a11y-widget.is-open .a11y-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.a11y-title { margin: 0 0 10px; font-size: .9rem; font-weight: 700; }
.a11y-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.a11y-row:last-child { margin-bottom: 0; }
.a11y-actions { display: inline-flex; gap: 6px; }
.a11y-btn,
.a11y-switch {
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-radius: 9px;
  height: 30px;
  min-width: 30px;
  padding: 0 8px;
  font-size: .78rem;
  font-weight: 700;
}
.a11y-switch { min-width: 86px; border-radius: 999px; }
.a11y-switch.is-on {
  background: rgba(52, 211, 153, 0.18);
  border-color: rgba(52, 211, 153, 0.5);
  color: #86efac;
}

@media (max-width: 768px) {
  .accessibility-dock {
    right: max(12px, env(safe-area-inset-right, 0px));
    bottom: max(12px, env(safe-area-inset-bottom, 0px));
    gap: 10px;
  }

  .accessibility-dock [vw-access-button] {
    width: 44px !important;
    height: 44px !important;
  }

  .a11y-toggle {
    width: 44px;
    height: 44px;
    font-size: 16px;
  }

  .a11y-panel {
    width: min(240px, calc(100vw - 20px));
    bottom: calc(100% + 8px);
  }
}
