/* =========================================================
   NAPI Forense — style.css
   Fonte canônica de design: brand/brand-visual.md
   Tokens: brand/tokens/palette.css
   ========================================================= */

/* ─────────────────────────────────────────────────────────
   1. DESIGN TOKENS
   ───────────────────────────────────────────────────────── */
:root {
  /* Cores institucionais */
  --navy:        #0D2B4E;
  --teal:        #1B6B78;
  --teal-dark:   #134F5C;
  --green:       #5BAF62;
  --green-dark:  #3A7D44;
  --snow:        #F4F7FA;
  --charcoal:    #2C3E50;
  --white:       #FFFFFF;
  --border:      #DEE2E6;
  --muted:       #6C757D;

  /* Cores semânticas */
  --success:        var(--green);
  --success-light:  #E8F4E9;
  --success-dark:   var(--green-dark);
  --info:           var(--teal);
  --info-light:     #E5EFF1;
  --info-dark:      var(--teal-dark);
  --warning:        #B8881D;
  --warning-light:  #FAF1D9;
  --warning-dark:   #8F6816;
  --danger:         #B53A2C;
  --danger-light:   #F8E2DD;
  --danger-dark:    #8F2D21;

  /* Tipografia */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  /* Espaçamento (base 4px) */
  --space-xs:   4px;
  --space-sm:   8px;
  --space-md:   16px;
  --space-lg:   24px;
  --space-xl:   32px;
  --space-2xl:  48px;
  --space-3xl:  64px;
  --space-4xl:  96px;
  --space-5xl:  128px;
  --section-y:  clamp(64px, 9vw, 112px);

  /* Layout */
  --container:           1200px;
  --container-px:        clamp(16px, 4vw, 32px);
  --navbar-h:            72px;
  --navbar-h-mobile:     60px;

  /* Border radius */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   12px;
  --radius-xl:   16px;
  --radius-pill: 999px;

  /* Shadows (navy-tinted, sutis) */
  --shadow-xs:    0 1px 2px  rgba(13, 43, 78, .04);
  --shadow-sm:    0 2px 8px  rgba(13, 43, 78, .06);
  --shadow-md:    0 4px 16px rgba(13, 43, 78, .08);
  --shadow-lg:    0 8px 32px rgba(13, 43, 78, .10);
  --shadow-focus: 0 0 0 3px  rgba(27, 107, 120, .25);

  /* Transições */
  --t-fast: 120ms cubic-bezier(.4, 0, .2, 1);
  --t-base: 180ms cubic-bezier(.4, 0, .2, 1);
  --t-slow: 320ms cubic-bezier(.4, 0, .2, 1);

  /* Z-index scale */
  --z-banner:   100;
  --z-navbar:   200;
  --z-dropdown: 300;
  --z-modal:    400;
  --z-toast:    500;
}

/* ─────────────────────────────────────────────────────────
   2. RESET / BASE
   ───────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html:focus-within { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.7;
  color: var(--charcoal);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, picture, video, canvas, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; padding: 0; }
a { color: var(--teal-dark); text-decoration: none; transition: color var(--t-base); }
a:hover { color: var(--teal); }
:focus-visible { outline: 0; box-shadow: var(--shadow-focus); border-radius: var(--radius-sm); }
::selection { background: rgba(91, 175, 98, .25); color: var(--navy); }

/* Skip link para acessibilidade */
.skip-link {
  position: absolute; top: -100px; left: 8px; z-index: 9999;
  background: var(--navy); color: #fff; padding: 10px 16px;
  border-radius: var(--radius-md); font-size: 14px; font-weight: 600;
}
.skip-link:focus { top: 8px; color: #fff; }

/* ─────────────────────────────────────────────────────────
   3. TIPOGRAFIA
   ───────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  color: var(--navy);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(28px, 5vw, 42px); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
h2 { font-size: clamp(22px, 3vw, 30px); font-weight: 700; }
h3 { font-size: 18px; font-weight: 600; }
h4 { font-size: 16px; font-weight: 600; }
h5 { font-size: 14px; font-weight: 600; }
p { line-height: 1.7; }

.display { font-size: clamp(40px, 6vw, 64px); font-weight: 800; color: var(--navy); letter-spacing: -.025em; line-height: 1.05; }
.lead    { font-size: 17px; color: var(--muted); line-height: 1.65; max-width: 640px; }
.small   { font-size: 13px; color: var(--muted); }
.caption { font-size: 12px; font-weight: 500; color: var(--muted); }
.overline {
  display: inline-block;
  font-size: 11px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--green); margin-bottom: 14px;
}

/* Cores tipográficas utilitárias */
.t-navy     { color: var(--navy); }
.t-teal     { color: var(--teal); }
.t-green    { color: var(--green-dark); }
.t-muted    { color: var(--muted); }
.t-white    { color: #fff; }
.t-charcoal { color: var(--charcoal); }

/* Pesos */
.w-400 { font-weight: 400; } .w-500 { font-weight: 500; }
.w-600 { font-weight: 600; } .w-700 { font-weight: 700; } .w-800 { font-weight: 800; }

/* ─────────────────────────────────────────────────────────
   4. LAYOUT
   ───────────────────────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--container-px);
}
section { padding: var(--section-y) 0; position: relative; }
.section-alt { background: var(--snow); }
.section-navy { background: var(--navy); color: #fff; }
.section-navy h1, .section-navy h2, .section-navy h3, .section-navy h4 { color: #fff; }
.section-navy .lead { color: rgba(255, 255, 255, .78); }
.section-navy .overline { color: var(--green); }

.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: var(--space-lg); margin-bottom: 40px; flex-wrap: wrap;
}
.section-head-text { flex: 1; min-width: 280px; }

/* Grid utilities */
.grid { display: grid; gap: var(--space-lg); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto-280 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid-auto-220 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.grid-auto-180 { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* Espaçamento utilitário */
.mt-0 { margin-top: 0; } .mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); } .mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); } .mt-2xl { margin-top: var(--space-2xl); }
.mb-0 { margin-bottom: 0; } .mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); } .mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

/* Alinhamento */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* ─────────────────────────────────────────────────────────
   5. TOP BANNER (aviso)
   ───────────────────────────────────────────────────────── */
.top-banner {
  background: var(--green-dark); color: #fff;
  padding: 10px 48px 10px 16px; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
  gap: 16px; position: relative; z-index: var(--z-banner);
}
.top-banner a { color: #fff; text-decoration: underline; font-weight: 600; }
.top-banner a:hover { color: rgba(255, 255, 255, .9); }
.top-banner .banner-close {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: transparent; border: 0; color: rgba(255, 255, 255, .8);
  font-size: 20px; line-height: 1; cursor: pointer;
  padding: 4px 8px; border-radius: var(--radius-sm);
  transition: var(--t-base);
}
.top-banner .banner-close:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.top-banner.banner-closing { opacity: 0; transition: opacity 200ms; }

/* ─────────────────────────────────────────────────────────
   6. NAVBAR
   ───────────────────────────────────────────────────────── */
.navbar {
  background: var(--navy);
  position: sticky; top: 0; z-index: var(--z-navbar);
  transition: background var(--t-base), box-shadow var(--t-base);
}
.navbar.scrolled {
  background: rgba(13, 43, 78, .97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
}
.navbar-inner {
  display: flex; align-items: center; gap: var(--space-lg);
  padding: 14px 0; color: #fff;
}
.navbar-brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: #fff;
}
.navbar-brand:hover { color: #fff; }
.navbar-brand img { width: 40px; height: 40px; background: #fff; border-radius: 6px; padding: 4px; }
.navbar-brand strong { font-weight: 700; font-size: 15px; line-height: 1.1; display: block; }
.navbar-brand small {
  display: block; font-size: 11px; color: rgba(255, 255, 255, .6);
  font-weight: 400; letter-spacing: .04em; margin-top: 2px;
}
.navbar-menu {
  display: flex; gap: 4px; margin-left: auto; align-items: center;
}
.navbar-menu a {
  color: rgba(255, 255, 255, .72); font-size: 14px; font-weight: 500;
  padding: 8px 14px; border-radius: var(--radius-md);
  border-bottom: 2px solid transparent;
  transition: var(--t-base);
}
.navbar-menu a:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.navbar-menu a.active { color: #fff; border-bottom-color: var(--green); border-radius: 0; }
.navbar-cta {
  margin-left: 8px; background: var(--teal); color: #fff !important;
  padding: 10px 18px !important; border-radius: var(--radius-md) !important;
  border-bottom: none !important;
}
.navbar-cta:hover { background: var(--teal-dark) !important; }
.menu-toggle {
  display: none; background: transparent; border: 0;
  color: #fff; font-size: 24px; margin-left: auto;
  padding: 6px 10px; border-radius: var(--radius-md);
}
.menu-toggle:hover { background: rgba(255, 255, 255, .08); }

@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .navbar-menu {
    position: fixed; inset: var(--navbar-h-mobile) 0 0 0;
    background: var(--navy); flex-direction: column; align-items: stretch;
    padding: 24px var(--container-px); gap: 4px;
    transform: translateX(100%); transition: transform var(--t-slow);
  }
  .navbar-menu.is-open { transform: translateX(0); }
  .navbar-menu a {
    font-size: 17px; padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    border-radius: 0;
  }
  .navbar-menu a.active { border-left: 3px solid var(--green); padding-left: 13px; }
  .navbar-cta { margin-top: 16px; text-align: center; }
  .navbar-inner { padding: 10px 0; }
  .navbar-brand img { width: 36px; height: 36px; }
}

/* ── Dropdown da navbar (ex.: "Comunicação") ───────────────── */
.navbar-item { display: flex; align-items: center; }
.navbar-item.has-dropdown { position: relative; }
.navbar-dropdown-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; border: 0; cursor: pointer; font: inherit;
  color: rgba(255, 255, 255, .72); font-size: 14px; font-weight: 500;
  padding: 8px 14px; border-radius: var(--radius-md);
  border-bottom: 2px solid transparent; transition: var(--t-base);
}
.navbar-dropdown-toggle:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.navbar-dropdown-toggle.active { color: #fff; border-bottom-color: var(--green); border-radius: 0; }
.navbar-dropdown-toggle .bi { font-size: 11px; transition: transform var(--t-base); }
.navbar-item.has-dropdown:hover .navbar-dropdown-toggle .bi,
.navbar-item.has-dropdown.is-open .navbar-dropdown-toggle .bi { transform: rotate(180deg); }

.navbar-dropdown {
  position: absolute; top: 100%; left: 0; min-width: 200px;
  margin-top: 6px; padding: 6px; background: #fff;
  border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; gap: 2px; z-index: var(--z-dropdown);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity var(--t-base), transform var(--t-base), visibility var(--t-base);
}
.navbar-item.has-dropdown:hover .navbar-dropdown,
.navbar-item.has-dropdown:focus-within .navbar-dropdown,
.navbar-item.has-dropdown.is-open .navbar-dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.navbar-dropdown a {
  color: var(--charcoal); font-size: 14px; font-weight: 500;
  padding: 9px 12px; border-radius: var(--radius-sm);
  border-bottom: 0; white-space: nowrap; transition: var(--t-base);
}
.navbar-dropdown a:hover { color: var(--navy); background: var(--snow); }
.navbar-dropdown a.active { color: var(--teal-dark); background: var(--snow); border-bottom: 0; }

@media (max-width: 900px) {
  .navbar-item.has-dropdown { flex-direction: column; align-items: stretch; width: 100%; }
  .navbar-dropdown-toggle {
    width: 100%; justify-content: space-between;
    font-size: 17px; padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, .06); border-radius: 0;
  }
  .navbar-dropdown-toggle.active { border-bottom-color: rgba(255, 255, 255, .06); border-left: 3px solid var(--green); padding-left: 13px; }
  .navbar-dropdown {
    position: static; min-width: 0; margin-top: 0; padding: 0;
    background: transparent; box-shadow: none; transform: none;
    display: none; opacity: 1; visibility: visible;
  }
  .navbar-item.has-dropdown.is-open .navbar-dropdown { display: flex; }
  .navbar-dropdown a {
    color: rgba(255, 255, 255, .72); font-size: 16px;
    padding: 12px 16px 12px 36px;
    border-bottom: 1px solid rgba(255, 255, 255, .06); border-radius: 0;
  }
  .navbar-dropdown a:hover { color: #fff; background: rgba(255, 255, 255, .06); }
  .navbar-dropdown a.active { color: #fff; background: transparent; border-left: 3px solid var(--green); padding-left: 33px; }
}

/* ─────────────────────────────────────────────────────────
   7. HERO
   ───────────────────────────────────────────────────────── */
.hero {
  background: var(--navy); color: #fff;
  padding: clamp(80px, 10vw, 140px) 0 clamp(56px, 7vw, 80px);
  position: relative; overflow: hidden;
  background-image:
    radial-gradient(ellipse at 80% 20%, rgba(91, 175, 98, .08), transparent 50%),
    radial-gradient(ellipse at 20% 80%, rgba(27, 107, 120, .12), transparent 55%);
}
.hero h1, .hero h2, .hero h3 { color: #fff; }
.hero .overline { color: var(--green); }
.hero-inner {
  display: grid; grid-template-columns: 1.4fr 1fr;
  gap: var(--space-3xl); align-items: center;
}
@media (max-width: 900px) { .hero-inner { grid-template-columns: 1fr; gap: var(--space-2xl); } }
.hero h1 {
  font-size: clamp(34px, 5.5vw, 56px); font-weight: 800;
  letter-spacing: -.025em; line-height: 1.05; margin-bottom: 20px;
}
.hero h1 .accent { color: var(--green); }
.hero .lead { color: rgba(255, 255, 255, .78); font-size: 18px; max-width: 560px; margin-bottom: 32px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 48px; }
.hero-trust {
  display: flex; flex-wrap: wrap; gap: 32px;
  font-size: 13px; color: rgba(255, 255, 255, .6); align-items: center;
}
.hero-trust span { display: flex; align-items: center; gap: 6px; }
.hero-trust i { color: var(--green); font-size: 14px; }
.hero-card {
  background: rgba(255, 255, 255, .04);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius-xl); padding: var(--space-xl);
}
.hero-card img {
  width: 120px; margin: 0 auto var(--space-lg);
  background: #fff; border-radius: var(--radius-lg); padding: 12px;
}
.hero-card h3 {
  font-size: 14px; color: rgba(255, 255, 255, .6); font-weight: 500;
  letter-spacing: .06em; text-transform: uppercase;
  margin-bottom: var(--space-md); text-align: center;
}
.hero-card-row {
  display: flex; justify-content: space-between;
  padding: 12px 0; font-size: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.hero-card-row:last-child { border-bottom: none; }
.hero-card-row span:first-child { color: rgba(255, 255, 255, .7); }
.hero-card-row strong { color: #fff; font-weight: 600; }

/* ─────────────────────────────────────────────────────────
   8. IMPACT NUMBERS (cards de números)
   ───────────────────────────────────────────────────────── */
.impact {
  margin-top: -48px; position: relative; z-index: 2;
  padding-bottom: 0;
}
.impact-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: var(--space-sm);
  box-shadow: var(--shadow-md);
}
@media (max-width: 900px) { .impact-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .impact-grid { grid-template-columns: 1fr; } }
.impact-item {
  padding: 28px 24px; text-align: center;
  border-radius: var(--radius-lg); transition: background var(--t-base);
}
.impact-item:hover { background: var(--snow); }
.impact-num {
  font-size: clamp(32px, 4vw, 44px); font-weight: 800;
  color: var(--navy); line-height: 1; letter-spacing: -.02em;
  display: block; margin-bottom: 8px;
}
.impact-num .unit { color: var(--green); font-size: .7em; font-weight: 700; }
.impact-label {
  font-size: 13px; color: var(--muted); font-weight: 500;
  letter-spacing: .04em; line-height: 1.4;
}

/* ─────────────────────────────────────────────────────────
   9. BUTTONS
   ───────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-sans); font-weight: 600; font-size: 14px;
  padding: 12px 22px; border-radius: var(--radius-md);
  border: 1.5px solid transparent; cursor: pointer;
  transition: var(--t-base); text-decoration: none; line-height: 1;
  white-space: nowrap;
}
.btn:focus-visible { outline: 0; box-shadow: var(--shadow-focus); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .5; cursor: not-allowed; pointer-events: none; }

.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-dark); color: #fff; }
.btn-secondary { background: transparent; color: var(--teal); border-color: var(--teal); }
.btn-secondary:hover { background: rgba(27, 107, 120, .08); color: var(--teal-dark); }
.btn-ghost { background: transparent; color: var(--teal); }
.btn-ghost:hover { background: rgba(27, 107, 120, .08); }
.btn-green { background: var(--green); color: var(--navy); }
.btn-green:hover { background: var(--green-dark); color: #fff; }
.btn-danger { background: transparent; color: var(--danger-dark); border-color: var(--danger); }
.btn-danger:hover { background: var(--danger-light); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .25); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .4); color: #fff; }

.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 15px; }
.btn-block { display: flex; width: 100%; justify-content: center; }

/* ─────────────────────────────────────────────────────────
   10. BADGES
   ───────────────────────────────────────────────────────── */
.badge {
  display: inline-block; padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 10px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  white-space: nowrap;
}
.badge-pesquisa   { background: var(--teal);       color: #fff; }
.badge-evento     { background: var(--green);      color: var(--navy); }
.badge-comunicado { background: var(--navy);       color: #fff; }
.badge-edital     { background: var(--warning);    color: #fff; }
.badge-destaque   { background: var(--green-dark); color: #fff; }
.badge-rascunho   { background: var(--muted);      color: #fff; }
.badge-aviso      { background: var(--warning);    color: #fff; }
.badge-nota       { background: var(--info-dark);  color: #fff; }
.badge-geral      { background: var(--info);       color: #fff; }

/* ─────────────────────────────────────────────────────────
   11. ALERTS
   ───────────────────────────────────────────────────────── */
.alert {
  display: flex; gap: 14px; padding: 16px 20px;
  border-radius: var(--radius-md); border-left: 4px solid;
  margin-bottom: 12px; font-size: 14px;
}
.alert strong { font-weight: 600; }
.alert-icon {
  flex-shrink: 0; font-weight: 700;
  font-family: var(--font-mono); font-size: 16px; line-height: 1.4;
}
.alert-info    { background: var(--info-light);    color: var(--info-dark);    border-color: var(--info); }
.alert-success { background: var(--success-light); color: var(--success-dark); border-color: var(--success); }
.alert-warning { background: var(--warning-light); color: var(--warning-dark); border-color: var(--warning); }
.alert-danger  { background: var(--danger-light);  color: var(--danger-dark);  border-color: var(--danger); }

/* ─────────────────────────────────────────────────────────
   12. CARDS — News
   ───────────────────────────────────────────────────────── */
.news-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}
@media (max-width: 900px) { .news-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .news-grid { grid-template-columns: 1fr; } }
.news-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: var(--t-base); box-shadow: var(--shadow-xs);
  display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
}
.news-card:hover {
  transform: translateY(-3px); box-shadow: var(--shadow-sm);
  color: inherit;
}
.news-card-img {
  aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: center;
  color: rgba(255, 255, 255, .35); font-size: 48px; overflow: hidden;
}
.news-card-img img { width: 100%; height: 100%; object-fit: cover; }
.news-card-img.placeholder-1 { background: linear-gradient(135deg, #1B6B78 0%, #0D2B4E 100%); }
.news-card-img.placeholder-2 { background: linear-gradient(135deg, #3A7D44 0%, #1B6B78 100%); }
.news-card-img.placeholder-3 { background: linear-gradient(135deg, #0D2B4E 0%, #134F5C 100%); }
.news-card-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.news-meta {
  display: flex; align-items: center; gap: 12px;
  font-size: 12px; color: var(--muted); margin-bottom: 12px; flex-wrap: wrap;
}
.news-card h4, .news-card-title {
  font-size: 17px; font-weight: 600; color: var(--navy);
  line-height: 1.35; margin: 0 0 10px;
  text-transform: none; letter-spacing: 0;
}
.news-card p, .news-card-excerpt {
  font-size: 14px; color: var(--charcoal);
  line-height: 1.55; margin: 0 0 16px; flex: 1;
}
.news-link {
  font-size: 13px; font-weight: 600; color: var(--teal);
  display: inline-flex; align-items: center; gap: 4px;
}
.news-link::after { content: "→"; transition: transform var(--t-base); }
.news-link:hover::after { transform: translateX(4px); }

/* Empty state genérico */
.empty-state {
  padding: 64px 32px; text-align: center;
  background: #fff; border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
}
.empty-state i { font-size: 36px; color: var(--muted); margin-bottom: 16px; display: block; }
.empty-state h3 { color: var(--navy); margin-bottom: 8px; }
.empty-state p { color: var(--muted); margin: 0; }

/* ─────────────────────────────────────────────────────────
   13. EVENTS
   ───────────────────────────────────────────────────────── */
.event-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}
@media (max-width: 700px) { .event-grid { grid-template-columns: 1fr; } }
.event-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: var(--space-lg);
  display: flex; gap: 20px; transition: var(--t-base);
  box-shadow: var(--shadow-xs); text-decoration: none; color: inherit;
}
.event-card:hover {
  transform: translateY(-2px); box-shadow: var(--shadow-sm);
  color: inherit;
}
.event-date {
  flex-shrink: 0; width: 80px; text-align: center;
  background: var(--navy); color: #fff; border-radius: var(--radius-lg);
  padding: 14px 0; display: flex; flex-direction: column; justify-content: center;
}
.event-date .month {
  font-size: 11px; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--green); margin-bottom: 4px;
}
.event-date .day { font-size: 30px; font-weight: 800; line-height: 1; }
.event-date .year { font-size: 11px; color: rgba(255, 255, 255, .5); margin-top: 4px; }
.event-body { flex: 1; min-width: 0; }
.event-mode {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; color: var(--green-dark);
  background: var(--success-light); padding: 3px 9px;
  border-radius: var(--radius-pill); font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; margin-bottom: 8px;
}
.event-mode.online { background: var(--info-light); color: var(--info-dark); }
.event-mode.hibrido { background: var(--warning-light); color: var(--warning-dark); }
.event-body h4 {
  font-size: 17px; font-weight: 600; color: var(--navy);
  margin: 0 0 8px; line-height: 1.3;
}
.event-body p {
  font-size: 13px; color: var(--muted); margin: 0 0 12px;
  display: flex; align-items: center; gap: 6px;
}
.event-body p i { color: var(--teal); }
.event-link { font-size: 13px; font-weight: 600; color: var(--teal); }
.event-link::after { content: " →"; transition: var(--t-base); }
.event-link:hover::after { transform: translateX(4px); }

/* ─────────────────────────────────────────────────────────
   14. FRENTES DE PESQUISA (cards)
   ───────────────────────────────────────────────────────── */
.frente-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.frente-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px 24px;
  transition: var(--t-base); box-shadow: var(--shadow-xs);
  display: flex; flex-direction: column; gap: 14px;
  text-decoration: none; color: inherit;
}
/* Hover SOMENTE em cards que sao links (a.frente-card).
   Cards estaticos (div.frente-card) ficam parados — evita o
   contraste estranho do verde-no-teal nos cards ODS/valores. */
a.frente-card:hover {
  transform: translateY(-3px); box-shadow: var(--shadow-md);
  border-color: var(--teal); color: inherit;
}
.frente-icon {
  width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-lg); background: var(--snow);
  color: var(--teal); font-size: 24px; transition: var(--t-base);
}
a.frente-card:hover .frente-icon { background: var(--teal); color: #fff; }
.frente-card h3 { font-size: 17px; font-weight: 700; color: var(--navy); margin: 0; }
.frente-card p { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.55; }
.frente-card .arrow {
  font-size: 13px; color: var(--teal); font-weight: 600;
  margin-top: auto; display: flex; align-items: center; gap: 4px;
}

/* ─────────────────────────────────────────────────────────
   15. PARTNERS
   ───────────────────────────────────────────────────────── */
.partners { text-align: center; }
.partner-tag {
  display: inline-block; font-size: 10px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
  margin: 32px 0 16px;
}
.partner-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}
.partner-card {
  position: relative;
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 18px 14px 14px;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  gap: 12px;
  min-height: 156px; transition: var(--t-base);
  font-size: 13px; font-weight: 600; color: var(--navy);
  text-align: center; line-height: 1.3;
  text-decoration: none; overflow: hidden;
}
.partner-card:hover {
  border-color: var(--teal); box-shadow: var(--shadow-sm);
  color: var(--teal-dark);
  transform: translateY(-2px);
}
.partner-logo-box {
  flex: 0 0 auto;
  width: 100%; height: 64px;
  display: flex; align-items: center; justify-content: center;
}
.partner-logo-box img {
  max-width: 100%; max-height: 100%; width: auto; height: auto;
  object-fit: contain; transition: var(--t-base);
}
.partner-card:hover .partner-logo-box img { transform: scale(1.04); }
.partner-caption {
  font-size: 11.5px; font-weight: 600; color: var(--navy);
  line-height: 1.32;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 100%;
}
.partner-caption-country {
  color: var(--muted); font-weight: 500;
  white-space: nowrap;
}

/* Variante para logos brancas / fundo escuro nativo (UNA, Zicosur) */
.partner-card--dark {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.partner-card--dark:hover {
  background: #001a3d;
  border-color: var(--teal);
  color: #fff;
}
.partner-card--dark .partner-caption { color: #e7eef6; }
.partner-card--dark .partner-caption-country { color: rgba(255,255,255,.65); }

/* Badge de bandeira para parceiros internacionais (canto sup-direito) */
.partner-flag-badge {
  position: absolute; top: 8px; right: 8px;
  width: 20px; height: 14px; border-radius: 2px;
  box-shadow: 0 1px 2px rgba(13, 43, 78, .25);
  opacity: .85; transition: var(--t-base);
  z-index: 1;
}
.partner-card:hover .partner-flag-badge { opacity: 1; }

/* Tile com sigla — usado quando nao ha logo real disponivel. */
.partner-tile {
  display: flex; flex-direction: column; align-items: center;
  gap: 6px; text-align: center; width: 100%;
}
.partner-flag {
  width: 32px; height: 24px; border-radius: 3px;
  box-shadow: 0 1px 3px rgba(13, 43, 78, .15);
  margin-bottom: 2px;
}
.partner-flag-globe {
  font-size: 22px; color: var(--teal);
  margin-bottom: 2px;
}
.partner-acronym {
  font-size: 22px; font-weight: 800; color: var(--navy);
  letter-spacing: -.02em; line-height: 1;
}
.partner-card:hover .partner-acronym { color: var(--teal-dark); }
.partner-name {
  font-size: 11px; color: var(--muted); font-weight: 500;
  line-height: 1.35; max-width: 100%;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Country card — usado em /impacto para os 9 paises internacionais. */
.country-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}
.country-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 22px 16px;
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 8px; transition: var(--t-base);
}
.country-card:hover {
  border-color: var(--teal); box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}
.country-flag {
  width: 56px; height: 42px; border-radius: 4px;
  box-shadow: 0 1px 3px rgba(13, 43, 78, .15);
}
.country-globe { font-size: 36px; color: var(--teal); width: 56px; height: 42px; display: flex; align-items: center; justify-content: center; }
.country-card strong { color: var(--navy); font-size: 15px; font-weight: 700; }
.country-card span { color: var(--muted); font-size: 12px; line-height: 1.4; }

/* Mock-image — placeholder visual honesto para fotos a serem providenciadas.
   Use data-caption para indicar o que a foto real deve mostrar. */
.mock-image {
  position: relative; aspect-ratio: 16/9;
  border-radius: var(--radius-lg); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--teal-dark) 0%, var(--navy) 100%);
}
.mock-image i {
  font-size: clamp(48px, 8vw, 80px);
  color: rgba(255, 255, 255, .28);
  transition: var(--t-base);
}
.mock-image::before {
  content: '📷  Foto sugerida';
  position: absolute; top: 14px; left: 14px;
  background: rgba(255, 255, 255, .12);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  color: #fff; font-size: 10px; font-weight: 600;
  padding: 5px 11px; border-radius: var(--radius-pill);
  letter-spacing: .06em; text-transform: uppercase;
}
.mock-image::after {
  content: attr(data-caption);
  position: absolute; bottom: 14px; left: 14px; right: 14px;
  color: rgba(255, 255, 255, .82);
  font-size: 12px; font-weight: 500; line-height: 1.4;
  text-align: center;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .3);
}
.mock-image.theme-green { background: linear-gradient(135deg, var(--green-dark) 0%, var(--teal) 100%); }
.mock-image.theme-navy  { background: linear-gradient(135deg, var(--navy) 0%, var(--teal-dark) 100%); }
.mock-image.theme-snow  { background: linear-gradient(135deg, #E8F0F5 0%, #D9E4EC 100%); }
.mock-image.theme-snow i { color: var(--teal); }
.mock-image.theme-snow::before { background: rgba(13, 43, 78, .08); color: var(--navy); }
.mock-image.theme-snow::after  { color: var(--muted); text-shadow: none; }
.mock-image.tall { aspect-ratio: 4/5; }
.mock-image.square { aspect-ratio: 1/1; }
.mock-image.portrait { aspect-ratio: 3/4; }

/* Foto real em moldura (substitui mock-image quando a imagem chega) */
.portrait-photo {
  display: block; width: 100%; height: auto; aspect-ratio: 3/4;
  object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
}
.media-photo {
  display: block; width: 100%; height: auto; aspect-ratio: 16/9;
  object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
}
.media-photo.tall  { aspect-ratio: 4/5; }
.media-photo.wide  { aspect-ratio: 21/9; }
.media-photo.natural { aspect-ratio: auto; }
/* Faixa: largura total, altura baixa (hero das frentes) */
.media-photo.band { aspect-ratio: auto; height: clamp(190px, 30vw, 320px); }

/* ─────────────────────────────────────────────────────────
   15b. LINHA DO TEMPO (história / marcos)
   ───────────────────────────────────────────────────────── */
.timeline { position: relative; padding-left: 28px; }
.timeline::before {
  content: ''; position: absolute; left: 7px; top: 6px; bottom: 6px;
  width: 2px; background: var(--border);
}
.timeline-item { position: relative; padding-bottom: var(--space-xl); }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: ''; position: absolute; left: -28px; top: 4px;
  width: 16px; height: 16px; border-radius: var(--radius-pill);
  background: var(--white); border: 3px solid var(--teal);
}
.timeline-item.is-highlight::before { border-color: var(--green); background: var(--green); }
.timeline-year {
  font-family: var(--font-mono); font-size: 13px; font-weight: 700;
  color: var(--teal-dark); letter-spacing: .02em;
}
.timeline-item.is-highlight .timeline-year { color: var(--green-dark); }
.timeline-title { font-size: 16px; font-weight: 700; color: var(--navy); margin: 2px 0 4px; }
.timeline-item p { font-size: 14px; color: var(--muted); line-height: 1.6; margin: 0; }

/* ─────────────────────────────────────────────────────────
   15c. LISTA DE INFORMAÇÕES (chave/valor — ex.: como visitar)
   ───────────────────────────────────────────────────────── */
.info-list { display: grid; gap: var(--space-md); margin: 0; }
.info-list .info-row { display: flex; gap: 14px; align-items: flex-start; }
.info-list .info-ico {
  flex: 0 0 auto; width: 38px; height: 38px; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  background: var(--info-light); color: var(--teal-dark); font-size: 17px;
}
.info-list .info-k { display: block; font-size: 12px; font-weight: 700; color: var(--navy); text-transform: uppercase; letter-spacing: .04em; }
.info-list .info-v { display: block; font-size: 14px; color: var(--charcoal); line-height: 1.55; margin-top: 2px; }
.info-list .info-v a { color: var(--teal-dark); font-weight: 600; }

/* ─────────────────────────────────────────────────────────
   16. FORMULÁRIOS
   ───────────────────────────────────────────────────────── */
.form-row { display: grid; gap: 6px; margin-bottom: 16px; }
.form-row label {
  font-size: 13px; font-weight: 600; color: var(--navy);
}
.form-row input,
.form-row textarea,
.form-row select {
  font-family: var(--font-sans); font-size: 15px;
  padding: 10px 14px;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  background: #fff; color: var(--charcoal);
  transition: var(--t-base); width: 100%;
}
.form-row textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
  outline: 0; border-color: var(--teal); box-shadow: var(--shadow-focus);
}
.form-row input.is-invalid,
.form-row textarea.is-invalid { border-color: var(--danger); }
.form-row .help    { font-size: 12px; color: var(--muted); }
.form-row .err-msg { font-size: 12px; color: var(--danger-dark); }
.form-row .req     { color: var(--danger); font-weight: 700; }
.form-actions      { display: flex; gap: 12px; align-items: center; margin-top: 24px; flex-wrap: wrap; }

/* ─────────────────────────────────────────────────────────
   17. FOOTER
   ───────────────────────────────────────────────────────── */
.site-footer {
  background: var(--navy); color: rgba(255, 255, 255, .7);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 48px;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 500px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand img {
  width: 56px; height: 56px; background: #fff;
  border-radius: var(--radius-md); padding: 6px; margin-bottom: 16px;
}
.footer-brand strong {
  color: #fff; font-size: 15px; font-weight: 700;
  display: block; margin-bottom: 8px;
}
.footer-brand p {
  font-size: 13px; color: rgba(255, 255, 255, .5);
  margin: 0; line-height: 1.55; max-width: 280px;
}

.site-footer h5 {
  color: #fff; font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase; margin: 0 0 16px; font-weight: 600;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a {
  color: rgba(255, 255, 255, .65); font-size: 14px;
  display: inline-block; transition: var(--t-base);
}
.site-footer a:hover { color: var(--green); }

.social { display: flex; gap: 8px; margin-top: 8px; }
.social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: var(--radius-md);
  background: rgba(255, 255, 255, .06); font-size: 16px;
  color: rgba(255, 255, 255, .7);
}
.social a:hover { background: var(--green); color: var(--navy); }

.footer-bottom {
  padding-top: 32px; border-top: 1px solid rgba(255, 255, 255, .08);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
  font-size: 12px; color: rgba(255, 255, 255, .45);
}
.footer-bottom strong { color: rgba(255, 255, 255, .7); font-weight: 600; }

/* ─────────────────────────────────────────────────────────
   18. CTA (chamada final pré-footer)
   ───────────────────────────────────────────────────────── */
.cta-section {
  background: var(--navy); color: #fff;
  padding: var(--section-y) 0; text-align: center;
  background-image: radial-gradient(circle at 50% 100%, rgba(91, 175, 98, .12), transparent 60%);
}
.cta-section h2 {
  color: #fff; margin-bottom: 14px;
  max-width: 680px; margin-left: auto; margin-right: auto;
}
.cta-section .lead { color: rgba(255, 255, 255, .78); margin: 0 auto 32px; }
.cta-buttons {
  display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center;
}

/* ─────────────────────────────────────────────────────────
   19. ABOUT (texto institucional)
   ───────────────────────────────────────────────────────── */
.about-grid {
  display: grid; grid-template-columns: 1fr 1.4fr;
  gap: var(--space-3xl); align-items: start;
}
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; gap: var(--space-xl); } }
.about p {
  font-size: 16px; color: var(--charcoal);
  line-height: 1.75; margin-bottom: 16px;
}
.about-features {
  margin-top: 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
}
@media (max-width: 500px) { .about-features { grid-template-columns: 1fr; } }
.about-feature {
  display: flex; gap: 14px; align-items: flex-start;
}
.about-feature i { color: var(--teal); font-size: 24px; flex-shrink: 0; margin-top: 2px; }
.about-feature strong {
  display: block; color: var(--navy);
  font-size: 14px; font-weight: 600; margin-bottom: 4px;
}
.about-feature span { font-size: 13px; color: var(--muted); line-height: 1.5; }

/* ─────────────────────────────────────────────────────────
   20. REVEAL ON SCROLL (fade-in suave)
   ───────────────────────────────────────────────────────── */
[data-reveal] {
  opacity: 0; transform: translateY(16px);
  transition: opacity 400ms ease-out, transform 400ms ease-out;
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
[data-reveal][data-delay="100"] { transition-delay: 100ms; }
[data-reveal][data-delay="200"] { transition-delay: 200ms; }
[data-reveal][data-delay="300"] { transition-delay: 300ms; }

/* ─────────────────────────────────────────────────────────
   21. PAGINATION
   ───────────────────────────────────────────────────────── */
.pagination {
  display: flex; justify-content: center; align-items: center;
  gap: 4px; margin-top: var(--space-2xl); flex-wrap: wrap;
}
.pagination a, .pagination span {
  min-width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 12px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 500;
  color: var(--charcoal); border: 1px solid var(--border);
  transition: var(--t-base);
}
.pagination a:hover { background: var(--snow); color: var(--teal-dark); border-color: var(--teal); }
.pagination .current { background: var(--teal); color: #fff; border-color: var(--teal); }
.pagination .disabled { opacity: .4; pointer-events: none; }

/* ─────────────────────────────────────────────────────────
   22. PAGE HEADER (para páginas internas)
   ───────────────────────────────────────────────────────── */
.page-header {
  background: var(--navy); color: #fff;
  padding: clamp(48px, 7vw, 96px) 0 clamp(40px, 6vw, 72px);
  background-image:
    radial-gradient(ellipse at 90% 50%, rgba(91, 175, 98, .06), transparent 50%),
    radial-gradient(ellipse at 0% 100%, rgba(27, 107, 120, .12), transparent 55%);
}
.page-header h1, .page-header h2, .page-header h3 { color: #fff; }
.page-header .lead { color: rgba(255, 255, 255, .78); }
.page-header .overline { color: var(--green); }
.breadcrumb {
  display: flex; gap: 6px; font-size: 12px; color: rgba(255, 255, 255, .55);
  margin-bottom: 16px;
}
.breadcrumb a { color: rgba(255, 255, 255, .55); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb i { font-size: 10px; align-self: center; }

/* ─────────────────────────────────────────────────────────
   23. ACESSIBILIDADE / MOTION
   ───────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ─────────────────────────────────────────────────────────
   24. PRINT
   ───────────────────────────────────────────────────────── */
@media print {
  .navbar, .top-banner, .site-footer, .cta-section { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  a { color: #000; text-decoration: underline; }
  section { padding: 24px 0; page-break-inside: avoid; }
  .container { max-width: 100%; padding: 0 12mm; }
  .hero { background: #fff; color: #000; }
  .hero h1, .hero h2, .hero h3 { color: #000; }
}
