*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue-50:  #fff0f0;
  --blue-100: #dbeafe;
  --blue-600: #cc0000;
  --blue-700: #aa0000;
  --blue-800: #990000;
  --blue-900: #7a0000;
  --slate-900: #0f172a;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-900: #111827;
  --white: #ffffff;
}

html { scroll-behavior: smooth; }
body { font-family: 'Raleway', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif; font-size: 14px; color: #212529; background: #fff; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; background: none; border: none; font-family: inherit; }
.hidden { display: none !important; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 14px; }

/* ─── TOP BAR ─── */
.topbar { background: linear-gradient(to right, var(--blue-800), var(--blue-700), var(--blue-600)); color: rgba(255,255,255,0.9); font-size: 12px; font-weight: 500; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; }
.topbar-left { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.topbar-right { display: flex; align-items: center; gap: 10px; }
.topbar a { color: rgba(255,255,255,0.9); transition: color .2s; }
.topbar a:hover { color: #fff; }
.topbar-item { display: flex; align-items: center; gap: 5px; }
.topbar-divider { color: rgba(255,255,255,0.4); }
.topbar-btn { background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.3); color: rgba(255,255,255,0.9); padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; letter-spacing: .04em; transition: background .2s; }
.topbar-btn:hover { background: rgba(255,255,255,0.25); }
.social-links { display: flex; align-items: center; gap: 8px; }
.social-links a { width: 24px; height: 24px; background: rgba(255,255,255,0.2); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; transition: background .2s; }
.social-links a:hover { background: rgba(255,255,255,0.35); }

/* ─── HEADER ─── */
header { background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.08); position: sticky; top: 0; z-index: 100; }
.navbar-inner { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; }
.logos { display: flex; align-items: center; gap: 16px; }
.logos img { height: 48px; width: auto; object-fit: contain; }
.logos-divider { width: 1px; height: 40px; background: var(--gray-200); }
nav { display: flex; align-items: center; gap: 2px; }
.nav-link { font-size: 13px; font-weight: 600; color: var(--gray-700); padding: 8px 10px; border-radius: 6px; transition: color .2s, background .2s; white-space: nowrap; display: flex; align-items: center; gap: 4px; }
.nav-link:hover, .nav-link.active { color: var(--blue-700); background: #fff0f0; }
.dropdown { position: relative; }
.dropdown-menu { display: none; position: absolute; top: calc(100% + 4px); left: 0; background: #fff; border: 1px solid var(--gray-200); border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,0.12); min-width: 210px; padding: 6px; z-index: 200; }
.dropdown:hover .dropdown-menu { display: block; }
.dropdown-item { display: block; padding: 8px 12px; font-size: 13px; color: var(--gray-700); border-radius: 6px; font-weight: 500; transition: background .15s, color .15s; }
.dropdown-item:hover { background: #fff0f0; color: var(--blue-700); }
.portal-btn { display: flex; align-items: center; gap: 6px; background: linear-gradient(135deg, var(--blue-600), var(--blue-700)); color: #fff; padding: 8px 16px; border-radius: 20px; font-size: 13px; font-weight: 600; transition: opacity .2s, transform .15s; margin-left: 8px; }
.portal-btn:hover { opacity: .9; transform: translateY(-1px); }
.mobile-menu-btn { display: none; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 8px; border: 1px solid var(--gray-200); color: var(--gray-700); font-size: 18px; }

/* ─── MOBILE NAV ─── */
.mobile-nav { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 200; }
.mobile-nav.open { display: block; }
.mobile-nav-panel { position: absolute; right: 0; top: 0; bottom: 0; width: 300px; background: #fff; padding: 24px; overflow-y: auto; transform: translateX(100%); transition: transform .3s ease; }
.mobile-nav.open .mobile-nav-panel { transform: translateX(0); }
.mobile-nav-close { display: flex; justify-content: flex-end; margin-bottom: 24px; }
.mobile-nav-close button { font-size: 20px; color: var(--gray-500); }
.mobile-nav-link { display: block; padding: 12px 0; font-size: 15px; font-weight: 600; color: var(--gray-700); border-bottom: 1px solid var(--gray-100); }

/* ─── PAGE HERO ─── */
.page-hero {
  background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-800) 50%, var(--blue-700) 100%);
  padding: 64px 0 48px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: .15;
}
.page-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .2; }
.page-hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(122,0,0,.88), rgba(153,0,0,.75)); }

/* ─── NEWS BACKGROUND CARDS ─── */
.page-hero-news-bg {
  position: absolute; inset: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 12px; padding: 16px;
  z-index: 0; pointer-events: none; opacity: .18;
}
.phn-card { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; }
.phn-img { height: 60px; background-size: cover; background-position: center; flex-shrink: 0; }
.phn-body { padding: 10px 12px; flex: 1; }
.phn-tag { font-size: 9px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #fcd34d; display: block; margin-bottom: 5px; }
.phn-title { font-size: 11px; font-weight: 600; color: #fff; line-height: 1.4; margin-bottom: 6px; }
.phn-date { font-size: 9px; color: rgba(255,255,255,.7); }
.page-hero-inner { position: relative; z-index: 1; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: rgba(255,255,255,.65); margin-bottom: 16px; }
.breadcrumb a { color: rgba(255,255,255,.65); transition: color .2s; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb-sep { color: rgba(255,255,255,.4); }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; color: #fff; margin-bottom: 12px; }
.page-hero p { font-size: 16px; color: rgba(255,255,255,.8); max-width: 560px; line-height: 1.7; }

.hero-stats-bar { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); border-radius: 12px; display: flex; gap: 0; margin-top: 36px; overflow: hidden; }
.hero-stat { flex: 1; padding: 18px 20px; border-right: 1px solid rgba(255,255,255,.15); text-align: center; }
.hero-stat:last-child { border-right: none; }
.hero-stat i { font-size: 20px; color: rgba(255,255,255,.7); margin-bottom: 8px; display: block; }
.hero-stat-label { font-size: 12px; color: rgba(255,255,255,.75); font-weight: 600; }

/* ─── SECTIONS ─── */
.section { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 48px; }
.section-tag { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-600); margin-bottom: 10px; }
.section-title { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; color: var(--gray-900); margin-bottom: 14px; }
.section-subtitle { font-size: 15px; color: var(--gray-500); max-width: 560px; margin: 0 auto; line-height: 1.7; }

/* ─── ABOUT ─── */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-text h2 { font-size: 2rem; font-weight: 800; color: var(--gray-900); margin-bottom: 24px; }
.about-text p { font-size: 15px; color: var(--gray-600); line-height: 1.8; margin-bottom: 16px; }
.about-text p:last-of-type { margin-bottom: 0; }
.about-highlight { background: var(--blue-50); border-left: 4px solid var(--blue-600); padding: 16px 20px; border-radius: 0 8px 8px 0; font-size: 14px; color: var(--blue-800); font-weight: 600; margin-top: 20px; }
.about-image { border-radius: 16px; overflow: hidden; box-shadow: 0 24px 48px rgba(0,0,0,.12); }
.about-image img { width: 100%; height: 420px; object-fit: cover; loading: lazy; }

/* ─── VISÃO / MISSÃO / VALORES ─── */
.vmv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.vmv-card { background: #fff; border: 1.5px solid var(--gray-200); border-radius: 16px; padding: 32px 24px; text-align: center; transition: transform .25s, box-shadow .25s, border-color .25s; }
.vmv-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(170,0,0,.12); border-color: var(--blue-600); }
.vmv-icon { width: 56px; height: 56px; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; font-size: 22px; }
.vmv-icon.blue { background: var(--blue-50); color: var(--blue-600); }
.vmv-icon.yellow { background: #fefce8; color: #ca8a04; }
.vmv-icon.teal { background: #f0fdfa; color: #0d9488; }
.vmv-card h3 { font-size: 16px; font-weight: 700; color: var(--gray-900); margin-bottom: 12px; }
.vmv-card p { font-size: 13px; color: var(--gray-500); line-height: 1.7; }

/* ─── TIMELINE ─── */
.timeline-wrap { max-width: 640px; margin: 0 auto; }
.timeline { position: relative; padding-left: 32px; }
.timeline::before { content: ''; position: absolute; left: 10px; top: 0; bottom: 0; width: 2px; background: var(--blue-100); }
.timeline-item { position: relative; margin-bottom: 32px; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-item::before { content: ''; position: absolute; left: -26px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--blue-600); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--blue-100); }
.timeline-year { font-size: 11px; font-weight: 700; color: var(--blue-600); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 4px; }
.timeline-item h4 { font-size: 15px; font-weight: 700; color: var(--gray-900); margin-bottom: 6px; }
.timeline-item p { font-size: 13px; color: var(--gray-500); line-height: 1.6; }

/* ─── COMUNAS ─── */
.communes-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.commune-card { background: #fff; border-radius: 12px; padding: 32px; border: 1px solid var(--gray-200); transition: transform .25s, box-shadow .25s; }
.commune-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(170,0,0,.1); }
.commune-icon { width: 56px; height: 56px; background: linear-gradient(135deg, var(--blue-50), var(--blue-100)); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 24px; color: var(--blue-600); margin-bottom: 20px; }
.commune-card h3 { font-size: 18px; font-weight: 700; color: var(--gray-900); margin-bottom: 10px; }
.commune-card p { font-size: 14px; color: var(--gray-500); line-height: 1.7; }

/* ─── EMPTY STATE ─── */
.empty-card { background: var(--gray-100); border: 2px dashed var(--gray-300); border-radius: 12px; padding: 48px; text-align: center; color: var(--gray-500); }
.empty-card i { font-size: 40px; color: var(--gray-300); margin-bottom: 16px; display: block; }
.empty-card h3 { font-size: 16px; font-weight: 600; color: var(--gray-600); margin-bottom: 12px; }
.empty-card a { display: inline-flex; align-items: center; gap: 6px; background: var(--blue-600); color: #fff; padding: 9px 20px; border-radius: 20px; font-size: 13px; font-weight: 600; margin-top: 8px; transition: background .2s; }
.empty-card a:hover { background: var(--blue-700); }

/* ─── CTA ─── */
.cta-section { background: linear-gradient(135deg, var(--blue-900), var(--blue-800)); padding: 80px 0; text-align: center; }
.cta-inner { max-width: 600px; margin: 0 auto; }
.cta-inner h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; color: #fff; margin-bottom: 16px; }
.cta-inner p { font-size: 15px; color: rgba(255,255,255,.75); line-height: 1.7; margin-bottom: 32px; }
.btn-cta { display: inline-flex; align-items: center; gap: 8px; background: #fff; color: var(--blue-700); padding: 13px 28px; border-radius: 25px; font-size: 14px; font-weight: 700; transition: transform .2s, box-shadow .2s; box-shadow: 0 4px 16px rgba(0,0,0,.2); }
.btn-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.25); }

/* ─── FOOTER ─── */
footer { background: var(--slate-900); color: rgba(255,255,255,.75); padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand img { height: 48px; margin-bottom: 16px; filter: brightness(0) invert(1); }
.footer-brand h3 { font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.footer-brand p { font-size: 13px; line-height: 1.7; }
footer h4 { font-size: 13px; font-weight: 700; color: #fff; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 16px; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: 13px; color: rgba(255,255,255,.65); transition: color .2s; display: flex; align-items: center; gap: 6px; }
.footer-links a::before { content: '›'; color: #60a5fa; }
.footer-links a:hover { color: #fff; }
.footer-contact li { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 13px; }
.footer-contact i { color: #60a5fa; width: 16px; text-align: center; }
.footer-contact a { color: rgba(255,255,255,.75); transition: color .2s; }
.footer-contact a:hover { color: #fff; }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a { width: 36px; height: 36px; background: rgba(255,255,255,.1); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 14px; color: rgba(255,255,255,.7); transition: background .2s, color .2s; }
.footer-social a:hover { background: var(--blue-600); color: #fff; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; font-size: 12px; flex-wrap: wrap; gap: 12px; }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { color: rgba(255,255,255,.5); transition: color .2s; }
.footer-bottom-links a:hover { color: rgba(255,255,255,.85); }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .vmv-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .topbar { display: none; }
  nav, .portal-btn { display: none; }
  .mobile-menu-btn { display: flex; }
  .logos img { height: 36px; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-image { display: none; }
  .communes-grid { grid-template-columns: 1fr; }
  .vmv-grid { grid-template-columns: 1fr; }
  .hero-stats-bar { flex-direction: column; }
  .hero-stat { border-right: none; border-bottom: 1px solid rgba(255,255,255,.15); }
  .hero-stat:last-child { border-bottom: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .section { padding: 56px 0; }
}
