/* ==========================================================
   SJTCM v2 — Proposta de layout governamental
   ========================================================== */

:root {
    --green-900: #062F1F;
    --green-800: #0A3F2A;
    --green-700: #0B5D3B;
    --green-600: #117048;
    --green-100: #E3F1EA;
    --green-50:  #F2F8F5;

    --gold-500: #F2B705;
    --gold-400: #FFC933;
    --gold-100: #FFF6D9;

    --red-600: #C8102E;
    --black: #111512;
    --flag-strip: linear-gradient(90deg, var(--red-600) 0 14%, var(--green-700) 14% 42%, #fff 42% 43%, var(--black) 43% 71%, #fff 71% 72%, var(--gold-500) 72% 100%);

    --ink: #16201B;
    --ink-soft: #46544C;
    --ink-muted: #6A776F;
    --line: #D7DFDA;
    --line-soft: #E8EDEA;
    --surface: #FFFFFF;
    --surface-alt: #F4F6F5;
    --focus: #FFBF47;

    --radius: 6px;
    --radius-lg: 10px;
    --shadow-mega: 0 24px 48px -12px rgba(6, 47, 31, .28);
    --shadow-card: 0 1px 2px rgba(17, 21, 18, .06), 0 4px 14px rgba(17, 21, 18, .05);

    --font: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-display: "Merriweather", Georgia, serif;
    --container: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--ink);
    background: var(--surface);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--green-700); }
h1, h2, h3 { margin: 0; line-height: 1.25; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
button { font: inherit; cursor: pointer; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; box-shadow: 0 0 0 5px var(--black); border-radius: 2px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.skip-link {
    position: absolute; left: 16px; top: -60px; z-index: 1000;
    background: var(--gold-500); color: var(--black); font-weight: 700;
    padding: 10px 16px; border-radius: var(--radius); text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Botões ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px 20px; border-radius: var(--radius); border: 2px solid transparent;
    font-weight: 700; font-size: .95rem; text-decoration: none; line-height: 1.2;
    transition: background .15s, color .15s, border-color .15s;
    white-space: nowrap;
}
.btn-primary { background: var(--green-700); color: #fff; }
.btn-primary:hover { background: var(--green-800); }
.btn-gold { background: var(--gold-500); color: var(--black); box-shadow: inset 0 -3px 0 rgba(0,0,0,.18); }
.btn-gold:hover { background: var(--gold-400); }
.btn-ghost { border-color: rgba(255,255,255,.6); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.btn-outline-sm { border-color: var(--green-700); color: var(--green-700); padding: 8px 14px; font-size: .88rem; }
.btn-outline-sm:hover { background: var(--green-700); color: #fff; }
.btn-block { width: 100%; }

.link-arrow { font-weight: 700; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.link-arrow:hover { text-decoration: underline; text-underline-offset: 4px; }
.link-arrow i { transition: transform .15s; }
.link-arrow:hover i { transform: translateX(3px); }

/* ==========================================================
   Cabeçalho
   ========================================================== */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line-soft); }
.site-header-inner { display: flex; align-items: center; gap: 28px; padding-top: 18px; padding-bottom: 18px; }

.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand-emblem { width: 64px; height: 64px; }
.brand-text { display: flex; flex-direction: column; padding-left: 14px; border-left: 3px solid var(--gold-500); }
.brand-kicker { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); font-weight: 600; }
.brand-name { font-family: var(--font-display); font-weight: 900; font-size: 1.28rem; color: var(--green-800); line-height: 1.2; }
.brand-sub { font-size: .85rem; font-weight: 600; color: var(--ink-soft); }

.header-search { flex: 1; max-width: 420px; margin-left: auto; display: flex; border: 2px solid var(--ink); border-radius: var(--radius); overflow: hidden; }
.header-search input { flex: 1; border: 0; padding: 10px 14px; font: inherit; font-size: .95rem; min-width: 0; background: transparent; color: var(--ink); }
.header-search input:focus { outline: none; }
.header-search:focus-within { outline: 3px solid var(--focus); outline-offset: 1px; }
.header-search button { border: 0; background: var(--green-700); color: #fff; padding: 0 16px; font-size: 1rem; }
.header-search button:hover { background: var(--green-800); }

.header-cta { display: flex; align-items: center; gap: 18px; }
.header-hotline { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.header-hotline > i { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--green-100); color: var(--green-700); }
.header-hotline span { display: flex; flex-direction: column; line-height: 1.2; }
.header-hotline small { font-size: .72rem; color: var(--ink-muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.header-hotline strong { font-size: 1rem; }

.nav-toggle { display: none; }

/* ==========================================================
   Navegação principal + Mega menu (desktop)
   ========================================================== */
.main-nav {
    position: sticky; top: 0; z-index: 100;
    background: var(--green-700);
    box-shadow: inset 0 -4px 0 var(--green-800);
}
.main-nav.is-stuck { box-shadow: inset 0 -4px 0 var(--green-800), 0 6px 18px rgba(0,0,0,.18); }
.main-nav-inner { display: flex; align-items: stretch; }
.menu { display: flex; align-items: stretch; }
.menu-item { position: static; display: flex; }

.menu-link {
    display: flex; align-items: center; gap: 8px;
    padding: 0 18px; min-height: 56px;
    background: none; border: 0; color: #fff;
    font-weight: 600; font-size: .96rem; text-decoration: none;
    position: relative; white-space: nowrap;
}
.menu-link::after {
    content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 4px;
    background: var(--gold-500); transform: scaleX(0); transition: transform .2s;
}
.menu-link:hover { background: var(--green-600); }
.menu-link:hover::after, .menu-link.is-current::after, .menu-link[aria-expanded="true"]::after { transform: scaleX(1); }
.menu-link[aria-expanded="true"] { background: var(--green-800); }
.menu-link .fa-chevron-down { font-size: .7rem; transition: transform .2s; opacity: .85; }
.menu-link[aria-expanded="true"] .fa-chevron-down { transform: rotate(180deg); }
.menu-link:focus-visible { box-shadow: inset 0 0 0 3px var(--focus); outline: none; }

.sr-only-desktop { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.nav-mobile-extra { display: none; }

/* Mega painel */
.mega {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--surface);
    border-top: 4px solid var(--gold-500);
    box-shadow: var(--shadow-mega);
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
    max-height: calc(100vh - 80px); overflow-y: auto;
}
.menu-item.is-open > .mega { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.mega-inner { display: grid; gap: 36px; padding-top: 32px; padding-bottom: 36px; }

.mega-backdrop {
    position: fixed; inset: 0; z-index: 90; background: rgba(6, 20, 13, .45);
    opacity: 0; visibility: hidden; transition: opacity .2s, visibility 0s linear .2s;
}
.mega-backdrop.is-visible { opacity: 1; visibility: visible; transition-delay: 0s; }

.mega-layout-feature  { grid-template-columns: 1.15fr 1fr 1fr .7fr; }
.mega-layout-services { grid-template-columns: 2fr 1fr; }
.mega-layout-programs { grid-template-columns: 2fr 1fr; }
.mega-layout-cols     { grid-template-columns: repeat(3, 1fr) 1.05fr; }
.mega-layout-news     { grid-template-columns: 1fr 2fr; }

.mega-heading {
    font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
    color: var(--ink-muted); padding-bottom: 10px; margin-bottom: 12px;
    border-bottom: 1px solid var(--line);
}
.mega-eyebrow {
    display: inline-flex; gap: 6px; align-items: center;
    font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--green-700);
}
.mega-more { display: inline-flex; gap: 8px; align-items: center; font-weight: 700; color: var(--green-700); font-size: .92rem; margin-top: auto; }
.mega-more i { transition: transform .15s; }
.mega-more.light { color: var(--gold-400); }

/* Lista com ícone, título e descrição */
.mega-list { display: grid; gap: 4px; }
.mega-list.two-col { grid-template-columns: 1fr 1fr; column-gap: 20px; }
.mega-list a {
    display: flex; gap: 14px; align-items: flex-start;
    padding: 10px 12px; margin: 0 -12px; border-radius: var(--radius);
    text-decoration: none; color: var(--ink);
    transition: background .15s;
}
.mega-list a > i {
    flex-shrink: 0; width: 36px; height: 36px; border-radius: var(--radius);
    display: grid; place-items: center; background: var(--green-50); color: var(--green-700);
    font-size: .95rem; transition: background .15s, color .15s;
}
.mega-list a span { display: flex; flex-direction: column; }
.mega-list strong { font-size: .96rem; font-weight: 700; line-height: 1.35; }
.mega-list small { font-size: .84rem; color: var(--ink-soft); line-height: 1.45; margin-top: 2px; }
.mega-list a:hover { background: var(--surface-alt); }
.mega-list a:hover strong { color: var(--green-700); text-decoration: underline; text-underline-offset: 3px; }
.mega-list a:hover > i { background: var(--green-700); color: #fff; }
.mega-list.compact a { flex-direction: column; gap: 0; padding: 8px 12px; }
.mega-list.compact a strong { position: relative; }

/* Destaque com imagem (Institucional) */
.mega-feature { display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: var(--ink); }
.mega-feature-img, .mega-card figure { aspect-ratio: 16/10; overflow: hidden; border-radius: var(--radius-lg); margin-bottom: 6px; background: var(--surface-alt); }
.mega-feature-img img, .mega-card figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.mega-feature:hover img, .mega-card:hover img { transform: scale(1.04); }
.mega-feature-title { font-family: var(--font-display); font-size: 1.2rem; color: var(--green-800); }
.mega-feature-desc { font-size: .88rem; color: var(--ink-soft); line-height: 1.5; }
.mega-feature:hover .mega-feature-title { text-decoration: underline; text-underline-offset: 4px; }
.mega-feature:hover .mega-more i, .mega-card:hover .mega-more i, .mega-promo:hover .mega-more i { transform: translateX(4px); }

.mega-aside { background: var(--green-50); border-radius: var(--radius-lg); padding: 20px; align-self: start; }
.mega-stats { margin: 0; display: grid; gap: 14px; }
.mega-stats div { display: flex; align-items: baseline; gap: 10px; }
.mega-stats dt { font-family: var(--font-display); font-size: 1.7rem; font-weight: 900; color: var(--green-700); min-width: 44px; }
.mega-stats dd { margin: 0; font-size: .86rem; color: var(--ink-soft); font-weight: 600; }

/* Tiles de serviços */
.mega-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mega-tile {
    display: flex; gap: 12px; align-items: flex-start; height: 100%;
    padding: 14px; border: 1px solid var(--line); border-radius: var(--radius-lg);
    text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .15s, transform .15s;
}
.mega-tile:hover { border-color: var(--green-700); box-shadow: var(--shadow-card); transform: translateY(-2px); }
.mega-tile-icon {
    flex-shrink: 0; width: 42px; height: 42px; border-radius: 50%;
    background: var(--gold-100); color: #8A6400; display: grid; place-items: center; font-size: 1rem;
}
.mega-tile span:last-child { display: flex; flex-direction: column; }
.mega-tile strong { font-size: .95rem; line-height: 1.35; }
.mega-tile small { font-size: .82rem; color: var(--ink-soft); line-height: 1.45; margin-top: 3px; }
.mega-tile:hover strong { color: var(--green-700); }
.mega-all { display: inline-flex; gap: 8px; align-items: center; margin-top: 18px; font-weight: 700; text-decoration: none; }
.mega-all:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Promo com imagem de fundo */
.mega-promo {
    position: relative; display: flex; align-items: flex-end; min-height: 320px;
    border-radius: var(--radius-lg); overflow: hidden; text-decoration: none; color: #fff;
}
.mega-promo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.mega-promo::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(6,47,31,.05) 15%, rgba(6,47,31,.92) 72%); }
.mega-promo:hover img { transform: scale(1.04); }
.mega-promo-body { position: relative; z-index: 2; padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.mega-promo-body strong { font-family: var(--font-display); font-size: 1.35rem; }
.mega-promo-body > span:not(.mega-badge):not(.mega-more) { font-size: .9rem; color: rgba(255,255,255,.88); line-height: 1.5; }
.mega-badge { align-self: flex-start; background: var(--gold-500); color: var(--black); font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding: 4px 10px; border-radius: 99px; display: inline-flex; gap: 6px; align-items: center; }

/* Cartão com imagem (Programas) */
.mega-card { display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: var(--ink); background: var(--surface-alt); padding: 14px; border-radius: var(--radius-lg); }
.mega-card strong { font-family: var(--font-display); font-size: 1.1rem; color: var(--green-800); }
.mega-card > span:not(.mega-eyebrow):not(.mega-more) { font-size: .88rem; color: var(--ink-soft); line-height: 1.5; }
.mega-card .mega-eyebrow { color: #0F7A3E; }

/* Documento em destaque */
.mega-doc { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; background: var(--surface-alt); border: 1px solid var(--line); border-left: 4px solid var(--red-600); border-radius: var(--radius); padding: 20px; align-self: start; }
.mega-doc-icon { font-size: 1.8rem; color: var(--red-600); }
.mega-doc strong { font-size: 1.02rem; }
.mega-doc small { color: var(--ink-muted); font-size: .8rem; margin-bottom: 6px; }

/* Notícias no mega menu */
.mega-news-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.mega-news-item { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--ink); }
.mega-news-item img { aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); width: 100%; }
.mega-news-item span { display: flex; flex-direction: column; gap: 4px; }
.mega-news-item time { font-size: .78rem; color: var(--ink-muted); font-weight: 600; }
.mega-news-item strong { font-size: .92rem; line-height: 1.4; }
.mega-news-item:hover strong { color: var(--green-700); text-decoration: underline; text-underline-offset: 3px; }

/* ==========================================================
   Conteúdo
   ========================================================== */
.notice { background: var(--gold-100); border-bottom: 1px solid #F0DC9A; }
.notice-inner { display: flex; gap: 16px; align-items: center; padding-top: 12px; padding-bottom: 12px; font-size: .92rem; }
.notice-tag { flex-shrink: 0; background: var(--black); color: #fff; font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; padding: 4px 10px; border-radius: 4px; display: inline-flex; gap: 6px; align-items: center; }
.notice p { flex: 1; }
.notice a { font-weight: 700; color: var(--ink); }

.hero { background: var(--green-900); color: #fff; position: relative; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 70% 30%; }
/* Véu verde: quase sólido atrás do texto, transparente à direita para mostrar a fotografia */
.hero::before {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background:
        linear-gradient(0deg, rgba(6, 47, 31, .6) 0, transparent 140px),
        linear-gradient(90deg, rgba(6, 47, 31, .97) 0%, rgba(6, 47, 31, .93) 40%, rgba(6, 47, 31, .58) 64%, rgba(6, 47, 31, .15) 100%);
}
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--flag-strip); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: end; min-height: 600px; padding-top: 64px; padding-bottom: 80px; }
.hero-copy { align-self: center; }
.breadcrumb { display: flex; align-items: center; gap: 10px; font-size: .82rem; color: #BFD9CB; margin-bottom: 20px; flex-wrap: wrap; }
.breadcrumb i { font-size: .6rem; opacity: .7; }
.breadcrumb [aria-current] { color: #fff; font-weight: 700; }
.hero h1 { font-family: var(--font-display); font-weight: 900; font-size: clamp(1.9rem, 3.6vw, 2.9rem); line-height: 1.18; letter-spacing: -.01em; }
.hero-lead { margin-top: 18px; font-size: 1.08rem; color: #D6E8DE; max-width: 60ch; }
.hero-search { margin-top: 32px; background: #fff; color: var(--ink); padding: 18px; border-radius: var(--radius-lg); border-top: 4px solid var(--gold-500); }
.hero-search label { display: block; font-weight: 800; margin-bottom: 10px; }
.hero-search-field { display: flex; align-items: center; gap: 10px; border: 2px solid var(--ink); border-radius: var(--radius); padding-left: 14px; }
.hero-search-field:focus-within { outline: 3px solid var(--focus); outline-offset: 1px; }
.hero-search-field > i { color: var(--ink-muted); }
.hero-search-field input { flex: 1; border: 0; padding: 12px 0; font: inherit; min-width: 0; background: transparent; color: var(--ink); }
.hero-search-field input:focus { outline: none; }
.hero-search-field .btn { border-radius: 0 3px 3px 0; align-self: stretch; }
.hero-popular { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; font-size: .88rem; color: #BFD9CB; }
.hero-popular a { color: #fff; font-weight: 600; text-underline-offset: 3px; }
.hero-popular a:hover { color: var(--gold-400); }
.hero-caption {
    justify-self: end; display: flex; gap: 12px; align-items: center;
    background: #fff; color: var(--ink); padding: 14px 18px; border-radius: var(--radius-lg); box-shadow: var(--shadow-mega);
}
.hero-caption-icon { width: 40px; height: 40px; border-radius: 50%; background: var(--gold-500); color: var(--black); display: grid; place-items: center; }
.hero-caption span:last-child { display: flex; flex-direction: column; font-size: .86rem; color: var(--ink-soft); line-height: 1.35; }
.hero-caption strong { color: var(--ink); font-size: .95rem; }

.section { padding: 72px 0; scroll-margin-top: 56px; }
.section-alt { background: var(--surface-alt); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 32px; flex-wrap: wrap; }
.eyebrow { font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--green-700); margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 24px; height: 3px; background: var(--gold-500); }
.section-head h2, .about-copy h2 { font-family: var(--font-display); font-size: clamp(1.5rem, 2.6vw, 2.1rem); color: var(--ink); }

.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-card {
    position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
    padding: 26px; display: flex; flex-direction: column; gap: 10px; transition: border-color .15s, box-shadow .15s;
}
.service-card:hover { border-color: var(--green-700); box-shadow: var(--shadow-card); }
.service-icon { width: 48px; height: 48px; border-radius: var(--radius); background: var(--green-100); color: var(--green-700); display: grid; place-items: center; font-size: 1.2rem; margin-bottom: 6px; }
.service-card h3 { font-size: 1.1rem; }
.service-card h3 a { color: var(--ink); text-decoration: none; }
.service-card h3 a::after { content: ""; position: absolute; inset: 0; }
.service-card:hover h3 a { color: var(--green-700); text-decoration: underline; text-underline-offset: 3px; }
.service-card p { color: var(--ink-soft); font-size: .93rem; }
.service-meta { display: flex; gap: 16px; margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--line); font-size: .82rem; font-weight: 600; color: var(--ink-muted); }
.service-meta i { color: var(--green-700); margin-right: 4px; }
.service-card-cta { background: var(--green-800); border-color: var(--green-800); color: #fff; justify-content: center; }
.service-card-cta:hover { border-color: var(--green-800); }
.service-card-cta p { color: #CFE3D8; margin-bottom: 8px; }
.service-card-cta .btn { align-self: flex-start; }

.about-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: center; }
.about-media img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--radius-lg); }
.about-quote { margin: 24px 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--gold-500); }
.about-quote p { font-family: var(--font-display); font-size: 1.12rem; color: var(--green-800); line-height: 1.55; }
.about-quote footer { margin-top: 10px; font-size: .86rem; color: var(--ink-soft); }
.mvv { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 0; }
.mvv dt { font-weight: 800; color: var(--green-700); margin-bottom: 6px; }
.mvv dd { margin: 0; font-size: .92rem; color: var(--ink-soft); }
.values { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.values li { background: #fff; border: 1px solid var(--line); padding: 5px 12px; border-radius: 99px; font-size: .84rem; font-weight: 600; }

.stats-band { background: var(--black); color: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stats-grid div { padding: 32px 24px; border-left: 1px solid #2A322D; display: flex; flex-direction: column; gap: 4px; }
.stats-grid div:first-child { border-left: 0; padding-left: 0; }
.stats-grid strong { font-family: var(--font-display); font-size: 2.3rem; color: var(--gold-500); line-height: 1; }
.stats-grid span { font-size: .9rem; color: #C3CCC6; }

.program-layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; }
.program-feature { position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 420px; display: flex; align-items: flex-end; color: #fff; }
.program-feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.program-feature::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, transparent 25%, rgba(6,47,31,.94) 78%); }
.program-feature-body { position: relative; z-index: 2; padding: 32px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.program-feature h3 { font-family: var(--font-display); font-size: 1.6rem; }
.program-feature p { color: #DCEAE2; max-width: 52ch; }
.status { font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding: 4px 10px; border-radius: 99px; }
.status-open { background: #D9F5E4; color: #0B5D3B; }
.program-list { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.program-list li + li { border-top: 1px solid var(--line); }
.program-list a { display: flex; align-items: center; gap: 16px; padding: 18px 20px; text-decoration: none; color: var(--ink); background: #fff; transition: background .15s; height: 100%; }
.program-list a > i:first-child { width: 42px; height: 42px; flex-shrink: 0; border-radius: var(--radius); background: var(--green-50); color: var(--green-700); display: grid; place-items: center; }
.program-list a > i:last-child { margin-left: auto; color: var(--ink-muted); font-size: .8rem; }
.program-list span { display: flex; flex-direction: column; }
.program-list small { color: var(--ink-soft); font-size: .86rem; }
.program-list a:hover { background: var(--green-50); }
.program-list a:hover strong { color: var(--green-700); text-decoration: underline; text-underline-offset: 3px; }

.news-layout { display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: auto auto; gap: 20px; }
.news-card { background: #fff; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; position: relative; }
.news-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.news-lead { grid-row: span 2; }
.news-lead img { aspect-ratio: 16/11; }
.news-body { padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.news-meta { display: flex; gap: 12px; align-items: center; font-size: .8rem; color: var(--ink-muted); font-weight: 600; }
.news-cat { color: var(--green-700); text-transform: uppercase; letter-spacing: .06em; font-weight: 800; }
.news-card h3 { font-size: 1.02rem; line-height: 1.4; }
.news-lead h3 { font-family: var(--font-display); font-size: 1.35rem; }
.news-card h3 a { color: var(--ink); text-decoration: none; }
.news-card h3 a::after { content: ""; position: absolute; inset: 0; }
.news-card:hover h3 a { color: var(--green-700); text-decoration: underline; text-underline-offset: 3px; }
.news-card p:not(.news-meta) { color: var(--ink-soft); font-size: .93rem; }
.communiques { grid-column: span 2; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--green-700); border-radius: var(--radius-lg); padding: 20px 24px; }
.communiques h3 { font-size: 1rem; display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.communiques h3 i { color: var(--red-600); }
.communiques li + li { border-top: 1px solid var(--line-soft); }
.communiques a { display: flex; gap: 16px; padding: 12px 0; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .93rem; }
.communiques time { flex-shrink: 0; width: 56px; color: var(--ink-muted); font-size: .82rem; font-weight: 700; padding-top: 1px; }
.communiques a:hover { color: var(--green-700); text-decoration: underline; text-underline-offset: 3px; }

.district-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.district-list li { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; display: flex; flex-direction: column; gap: 4px; background: #fff; }
.district-num { font-family: var(--font-display); font-weight: 900; font-size: 1.1rem; color: var(--gold-500); -webkit-text-stroke: .5px #8A6400; }
.district-list strong { font-size: 1.05rem; }
.district-list small { color: var(--ink-soft); font-size: .86rem; }

/* ==========================================================
   Rodapé
   ========================================================== */
.site-footer { background: var(--green-900); color: #C9DAD0; font-size: .93rem; }
.footer-help { background: var(--green-700); color: #fff; }
.footer-help-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-top: 32px; padding-bottom: 32px; flex-wrap: wrap; }
.footer-help h2 { font-family: var(--font-display); font-size: 1.5rem; }
.footer-help p { color: #D6E8DE; }
.footer-help-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-top: 56px; padding-bottom: 48px; }
.footer-brand img { margin-bottom: 14px; }
.footer-brand strong { color: #fff; }
.footer-brand address { font-style: normal; margin-top: 14px; line-height: 1.8; }
.footer-brand address i { width: 18px; color: var(--gold-500); }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid #2E5A45; display: grid; place-items: center; color: #fff; text-decoration: none; transition: background .15s; }
.footer-social a:hover { background: var(--gold-500); color: var(--black); border-color: var(--gold-500); }
.footer-col h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: #fff; margin-bottom: 16px; }
.footer-col li + li { margin-top: 10px; }
.footer-col a, .footer-bottom a { color: #C9DAD0; text-decoration: none; }
.footer-col a:hover, .footer-bottom a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { border-top: 1px solid #1B4A35; font-size: .84rem; }
.footer-bottom-inner { display: flex; justify-content: space-between; gap: 16px; padding-top: 20px; padding-bottom: 20px; flex-wrap: wrap; }
.footer-bottom ul { display: flex; gap: 20px; flex-wrap: wrap; }

/* ==========================================================
   Responsivo
   ========================================================== */
@media (max-width: 1180px) {
    .header-hotline { display: none; }
    .menu-link { padding: 0 13px; font-size: .92rem; }
    .mega-layout-feature { grid-template-columns: 1.2fr 1fr 1fr; }
    .mega-layout-feature .mega-aside { display: none; }
    .mega-layout-cols { grid-template-columns: repeat(3, 1fr); }
    .mega-layout-cols .mega-doc { grid-column: 1 / -1; flex-direction: row; align-items: center; flex-wrap: wrap; }
    .mega-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
    /* ---- Navegação móvel: gaveta + acordeão ---- */
    .header-search, .header-cta { display: none; }
    .site-header-inner { padding-top: 12px; padding-bottom: 12px; }
    .brand-emblem { width: 50px; height: 50px; }
    .brand-name { font-size: 1.05rem; }

    .nav-toggle {
        display: inline-flex; align-items: center; gap: 10px; margin-left: auto;
        background: var(--green-700); color: #fff; border: 0; border-radius: var(--radius);
        padding: 10px 14px; font-weight: 700;
    }
    .nav-toggle-bars { display: flex; flex-direction: column; gap: 4px; width: 18px; }
    .nav-toggle-bars span { height: 2px; background: currentColor; border-radius: 2px; transition: transform .2s, opacity .2s; }
    .nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
    .nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) { opacity: 0; }
    .nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

    .main-nav { position: static; box-shadow: none; display: none; }
    .main-nav.is-open { display: block; }
    .main-nav-inner.container { flex-direction: column; padding: 0; }
    .menu { flex-direction: column; }
    .menu-item { flex-direction: column; border-top: 1px solid var(--green-600); }
    .menu-link { min-height: 54px; padding: 0 24px; justify-content: space-between; width: 100%; font-size: 1rem; }
    .menu-link::after { display: none; }
    .menu-link .fa-house { display: none; }
    .sr-only-desktop { position: static; width: auto; height: auto; clip: auto; overflow: visible; }

    .mega {
        position: static; box-shadow: none; border-top: 0; transform: none;
        max-height: none; overflow: visible; display: none; opacity: 1; visibility: visible;
    }
    .menu-item.is-open > .mega { display: block; }
    .mega-inner { grid-template-columns: 1fr !important; gap: 24px; padding: 20px 24px 28px; }
    .mega-feature-img, .mega-card figure { aspect-ratio: 21/9; }
    .mega-list.two-col, .mega-grid { grid-template-columns: 1fr; }
    .mega-promo { min-height: 220px; }
    .mega-news-list { grid-template-columns: 1fr; gap: 12px; }
    .mega-news-item { flex-direction: row; align-items: center; }
    .mega-news-item img { width: 96px; flex-shrink: 0; }
    .mega-layout-feature .mega-aside { display: block; }
    .mega-layout-cols .mega-doc { flex-direction: column; align-items: flex-start; }
    .mega-backdrop { display: none; }

    .nav-mobile-extra { display: grid; gap: 10px; padding: 20px 24px 24px; border-top: 1px solid var(--green-600); }

    .hero-grid, .about-grid, .program-layout { grid-template-columns: 1fr; gap: 36px; }
    .hero-grid { min-height: 0; gap: 28px; padding-top: 48px; padding-bottom: 56px; }
    .hero::before { background: linear-gradient(180deg, rgba(6, 47, 31, .96) 0%, rgba(6, 47, 31, .9) 65%, rgba(6, 47, 31, .74) 100%); }
    .hero-bg { object-position: 60% 30%; }
    .hero-caption { justify-self: start; }
    .about-media img { aspect-ratio: 16/10; }
    .service-grid { grid-template-columns: repeat(2, 1fr); }
    .news-layout { grid-template-columns: 1fr 1fr; }
    .news-lead { grid-row: auto; grid-column: 1 / -1; }
    .district-list { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid div:nth-child(3) { border-left: 0; padding-left: 0; }
    .stats-grid div { border-top: 1px solid #2A322D; }
    .stats-grid div:nth-child(-n+2) { border-top: 0; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
    .container { padding: 0 16px; }
    .brand-kicker { display: none; }
    .brand-text { padding-left: 10px; }
    .brand-name { font-size: .95rem; }
    .brand-emblem { width: 42px; height: 42px; }
    .nav-toggle-label { display: none; }
    .menu-link { padding: 0 16px; }
    .mega-inner { padding: 16px 16px 24px; }
    .nav-mobile-extra { padding: 16px; }
    .notice-inner { flex-wrap: wrap; gap: 8px; font-size: .88rem; }
    .notice p { flex-basis: 100%; }
    .hero-grid { padding-top: 32px; padding-bottom: 44px; }
    .hero-search { padding: 14px; }
    .hero-search-field { flex-wrap: wrap; padding: 0; border: 0; }
    .hero-search-field > i { display: none; }
    .hero-search-field input { border: 2px solid var(--ink); border-radius: var(--radius); padding: 11px 12px; width: 100%; flex-basis: 100%; }
    .hero-search-field .btn { width: 100%; border-radius: var(--radius); }
    .section { padding: 52px 0; }
    .service-grid, .news-layout, .district-list, .mvv { grid-template-columns: 1fr; }
    .communiques { grid-column: auto; }
    .stats-grid div { padding: 22px 12px; }
    .stats-grid strong { font-size: 1.8rem; }
    .program-feature { min-height: 360px; }
    .program-feature-body { padding: 22px; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .footer-help-actions .btn { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* ==========================================================
   Páginas interiores (portal dinâmico)
   ========================================================== */
.h3 { font-size: 1.1rem; }
.h4 { font-size: 1rem; }
.text-muted { color: var(--ink-muted); }
mark { background: var(--gold-100); color: inherit; padding: 0 2px; border-radius: 2px; }
.count { display: inline-block; min-width: 22px; padding: 0 7px; border-radius: 99px; background: var(--surface-alt); color: var(--ink-muted); font-size: .75rem; font-weight: 700; text-align: center; margin-left: 4px; }
.container-narrow { max-width: 860px; }
.section-tight { padding: 48px 0 72px; }
.btn-outline { border-color: var(--green-700); color: var(--green-700); background: #fff; }
.btn-outline:hover { background: var(--green-700); color: #fff; }
.btn-lg { padding: 14px 26px; font-size: 1rem; }
.mt-link { margin-top: 22px; }
.mega-heading a { color: inherit; text-decoration: none; }
.mega-heading a:hover { color: var(--green-700); }
.hero .breadcrumb { margin-bottom: 20px; }

/* Cabeçalho das páginas interiores */
.page-hero { background: linear-gradient(155deg, var(--green-800) 0%, var(--green-900) 75%); color: #fff; position: relative; overflow: hidden; padding: 40px 0 48px; }
.page-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 45% 140% at 90% 0%, rgba(23, 128, 82, .45) 0%, transparent 70%); }
.page-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--flag-strip); }
.page-hero .container { position: relative; }
.page-hero .breadcrumb a { color: #BFD9CB; text-decoration: none; }
.page-hero .breadcrumb a:hover { color: #fff; text-decoration: underline; }
.page-hero__eyebrow { font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-400); margin-bottom: 8px; }
.page-hero h1 { font-family: var(--font-display); font-weight: 900; font-size: clamp(1.7rem, 3.2vw, 2.5rem); line-height: 1.2; max-width: 30ch; }
.page-hero__lead { margin-top: 14px; color: #D6E8DE; font-size: 1.05rem; max-width: 70ch; }

/* Layout de conteúdo com barra lateral */
.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; }
.content-layout--left { grid-template-columns: 280px minmax(0, 1fr); }
.content-aside { display: grid; gap: 20px; position: sticky; top: 76px; }
.content-figure { margin-bottom: 28px; }
.content-figure img { width: 100%; border-radius: var(--radius-lg); aspect-ratio: 16/9; object-fit: cover; }
.content-figure figcaption { font-size: .85rem; color: var(--ink-muted); margin-top: 8px; }
.block-title { font-family: var(--font-display); font-size: 1.3rem; margin: 36px 0 14px; display: flex; align-items: center; gap: 10px; }
.block-title i { color: var(--green-700); font-size: .95em; }
.content-main > .block-title:first-child { margin-top: 0; }

.prose { color: var(--ink); font-size: 1.02rem; line-height: 1.75; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-family: var(--font-display); font-size: 1.35rem; margin-top: 1.8em; }
.prose h3 { font-size: 1.15rem; margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: .4em; }
.prose a { color: var(--green-700); text-underline-offset: 3px; }
.prose blockquote { border-left: 4px solid var(--gold-500); padding-left: 18px; font-family: var(--font-display); color: var(--green-800); }
.prose img { border-radius: var(--radius); height: auto; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.prose th { background: var(--surface-alt); }
.prose-lg { font-size: 1.08rem; }
.prose-box { background: var(--green-50); border: 1px solid var(--green-100); border-radius: var(--radius-lg); padding: 20px 24px; }

.side-title { font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 12px; font-family: var(--font); }
.side-nav { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px; background: #fff; }
.side-nav li + li { border-top: 1px solid var(--line-soft); }
.side-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 6px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .93rem; border-radius: var(--radius); }
.side-nav a i { color: var(--green-700); width: 18px; text-align: center; }
.side-nav a:hover { background: var(--surface-alt); color: var(--green-700); }
.side-nav a.is-active { background: var(--green-700); color: #fff; }
.side-nav a.is-active i, .side-nav a.is-active .count { color: #fff; background: transparent; }
.side-nav .count { margin-left: auto; }
.help-card { border: 1px solid var(--line); border-top: 4px solid var(--green-700); border-radius: var(--radius-lg); padding: 20px; background: #fff; display: grid; gap: 10px; }
.help-card p { font-size: .93rem; color: var(--ink-soft); }
.help-card p i { color: var(--green-700); width: 18px; }
.help-card--accent { border-top-color: var(--gold-500); background: var(--green-50); }
.side-note { font-size: .82rem !important; color: var(--ink-muted) !important; }

.leader-card { display: grid; grid-template-columns: 220px 1fr; gap: 28px; align-items: center; background: var(--surface-alt); border-radius: var(--radius-lg); padding: 24px; margin-bottom: 28px; }
.leader-card img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--radius); }
.leader-card h2 { font-family: var(--font-display); font-size: 1.5rem; }
.leader-role { color: var(--ink-soft); margin-top: 4px; }
.mvv-cards { margin-bottom: 8px; }
.mvv-cards > div { background: var(--surface-alt); border-radius: var(--radius-lg); padding: 20px; }

/* Grelha de ligações */
.tile-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tile { position: relative; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; display: flex; flex-direction: column; gap: 8px; transition: border-color .15s, box-shadow .15s; background: #fff; }
.tile:hover { border-color: var(--green-700); box-shadow: var(--shadow-card); }
.tile h2 { font-size: 1.1rem; }
.tile h2 a { color: var(--ink); text-decoration: none; }
.tile h2 a::after { content: ""; position: absolute; inset: 0; }
.tile:hover h2 a { color: var(--green-700); text-decoration: underline; text-underline-offset: 3px; }
.tile p { color: var(--ink-soft); font-size: .93rem; }

/* Filtros */
.filter-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills a { display: inline-flex; align-items: center; gap: 7px; padding: 8px 16px; border-radius: 99px; border: 1px solid var(--line); background: #fff; color: var(--ink-soft); font-weight: 600; font-size: .9rem; text-decoration: none; transition: all .15s; }
.pills a:hover { border-color: var(--green-700); color: var(--green-700); }
.pills a.is-active { background: var(--green-700); border-color: var(--green-700); color: #fff; }
.pills-sm a { padding: 6px 12px; font-size: .84rem; }
.empty-state { text-align: center; padding: 56px 16px; color: var(--ink-muted); }
.empty-state i { font-size: 2.2rem; margin-bottom: 12px; color: var(--line); }
.service-area { font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--green-700); }
.service-card .h3 a { color: var(--ink); text-decoration: none; }
.service-card .h3 a::after { content: ""; position: absolute; inset: 0; }
.service-card:hover .h3 a { color: var(--green-700); text-decoration: underline; text-underline-offset: 3px; }
.service-meta { flex-wrap: wrap; }

/* Factos (serviço/programa) */
.fact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 32px; }
.fact-grid li { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 16px; background: #fff; }
.fact-grid li > i { width: 38px; height: 38px; border-radius: var(--radius); background: var(--green-100); color: var(--green-700); display: grid; place-items: center; flex-shrink: 0; }
.fact-grid span { display: flex; flex-direction: column; }
.fact-grid small { font-size: .75rem; color: var(--ink-muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }
.fact-grid strong { font-size: .95rem; line-height: 1.35; }

/* Programas */
.program-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.program-card { position: relative; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: #fff; display: flex; flex-direction: column; transition: border-color .15s, box-shadow .15s; }
.program-card:hover { border-color: var(--green-700); box-shadow: var(--shadow-card); }
.program-card > img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.program-card-icon { aspect-ratio: 16/9; display: grid; place-items: center; font-size: 2.6rem; color: var(--gold-500); background: var(--green-800) repeating-linear-gradient(45deg, rgba(255,255,255,.05) 0 1px, transparent 1px 18px); }
.program-card-body { padding: 20px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; flex: 1; }
.program-card-body .h3 a { color: var(--ink); text-decoration: none; }
.program-card-body .h3 a::after { content: ""; position: absolute; inset: 0; }
.program-card:hover .h3 a { color: var(--green-700); text-decoration: underline; text-underline-offset: 3px; }
.program-card-body p { color: var(--ink-soft); font-size: .93rem; }
.program-card-body .service-meta { width: 100%; }
.status-soon { background: var(--gold-100); color: #8A6400; }
.status-closed { background: #F3E3E5; color: #9B1024; }
.status-permanent { background: #E4ECF7; color: #1D4E89; }

/* Notícias */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.news-card .h3 { font-size: 1.05rem; line-height: 1.4; }
.news-card .h3 a { color: var(--ink); text-decoration: none; }
.news-card .h3 a::after { content: ""; position: absolute; inset: 0; }
.news-card:hover .h3 a { color: var(--green-700); text-decoration: underline; text-underline-offset: 3px; }
.communiques-more { margin-top: 10px; font-size: .9rem; }
.communique-list { border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; }
.communique-list li { display: flex; gap: 20px; padding: 20px 24px; align-items: flex-start; }
.communique-list li + li { border-top: 1px solid var(--line-soft); }
.communique-list a { font-weight: 700; font-size: 1.05rem; color: var(--ink); text-decoration: none; }
.communique-list a:hover { color: var(--green-700); text-decoration: underline; }
.communique-list small { display: block; color: var(--ink-soft); margin-top: 4px; font-size: .9rem; }

/* Artigo */
.article-head { background: var(--surface-alt); border-bottom: 1px solid var(--line); padding: 36px 0 36px; }
.breadcrumb-dark { color: var(--ink-muted); margin-bottom: 22px; }
.breadcrumb-dark a { color: var(--ink-soft); text-decoration: none; }
.breadcrumb-dark a:hover { color: var(--green-700); text-decoration: underline; }
.article-head h1 { font-family: var(--font-display); font-weight: 900; font-size: clamp(1.7rem, 3.4vw, 2.5rem); line-height: 1.2; margin-top: 10px; }
.article-lead { font-size: 1.15rem; color: var(--ink-soft); margin-top: 16px; }
.article-byline { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 18px; font-size: .88rem; color: var(--ink-muted); font-weight: 600; }
.article-byline i { color: var(--green-700); margin-right: 4px; }
.article-body { padding-top: 36px; padding-bottom: 56px; }

/* Agenda */
.event-date { flex-shrink: 0; width: 72px; text-align: center; background: var(--green-700); color: #fff; border-radius: var(--radius); padding: 8px 4px; font-size: .75rem; font-weight: 700; text-transform: uppercase; line-height: 1.2; }
.event-date strong { display: block; font-family: var(--font-display); font-size: 1.6rem; line-height: 1.1; }
.event-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.event-item { display: flex; gap: 16px; align-items: center; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 16px; background: #fff; }
.event-info { display: flex; flex-direction: column; gap: 4px; }
.event-info a { font-weight: 700; color: var(--ink); text-decoration: none; line-height: 1.35; }
.event-info a:hover { color: var(--green-700); text-decoration: underline; }
.event-info small { color: var(--ink-muted); font-size: .82rem; }
.event-cards { display: grid; gap: 16px; }
.event-card { position: relative; display: flex; gap: 20px; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; background: #fff; transition: border-color .15s; }
.event-card:hover { border-color: var(--green-700); }
.event-card .h3 a { color: var(--ink); text-decoration: none; }
.event-card .h3 a::after { content: ""; position: absolute; inset: 0; }
.event-card:hover .h3 a { color: var(--green-700); text-decoration: underline; }
.event-meta { font-size: .88rem; color: var(--ink-muted); margin: 4px 0 8px; }
.event-card p:last-child { color: var(--ink-soft); font-size: .93rem; }

/* Documentos */
.inline-search { display: flex; gap: 10px; margin-bottom: 24px; }
.inline-search input { flex: 1; min-width: 0; border: 2px solid var(--ink); border-radius: var(--radius); padding: 11px 14px; font: inherit; }
.inline-search input:focus { outline: 3px solid var(--focus); outline-offset: 1px; }
.inline-search-lg input { font-size: 1.05rem; padding: 14px 16px; }
.doc-list { display: grid; gap: 12px; }
.doc-item { display: flex; gap: 18px; align-items: flex-start; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; background: #fff; scroll-margin-top: 90px; }
.doc-item:target { border-color: var(--gold-500); box-shadow: 0 0 0 3px var(--gold-100); }
.doc-icon { width: 46px; height: 54px; border-radius: 6px; display: grid; place-items: center; font-size: 1.4rem; background: #FBE9EC; color: var(--red-600); flex-shrink: 0; }
.doc-icon--doc, .doc-icon--docx, .doc-icon--odt { background: #E4ECF7; color: #1D4E89; }
.doc-icon--xls, .doc-icon--xlsx { background: var(--green-100); color: var(--green-700); }
.doc-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.doc-cat { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--green-700); }
.doc-ref { font-weight: 600; color: var(--ink-soft); font-size: .9rem; }
.doc-info p { font-size: .92rem; color: var(--ink-soft); }
.doc-meta { display: flex; gap: 16px; flex-wrap: wrap; font-size: .8rem !important; color: var(--ink-muted) !important; font-weight: 600; }
.doc-btn { flex-shrink: 0; }
.doc-soon { font-size: .8rem; color: var(--ink-muted); font-weight: 600; white-space: nowrap; }

/* Organograma */
.org-chart { display: flex; flex-direction: column; align-items: center; }
.org-node { text-align: center; border-radius: var(--radius-lg); padding: 18px 28px; display: flex; flex-direction: column; gap: 4px; min-width: min(420px, 100%); text-decoration: none; }
.org-node strong { font-family: var(--font-display); font-size: 1.15rem; }
.org-node small { font-size: .88rem; }
.org-node--top { background: var(--black); color: #fff; }
.org-node--top small { color: #C3CCC6; }
.org-node--dir { background: var(--green-700); color: #fff; }
.org-node--dir small { color: #D6E8DE; }
.org-node--base { background: var(--gold-100); border: 1px solid #F0DC9A; color: var(--ink); }
.org-node--base:hover { border-color: var(--gold-500); }
.org-badge { align-self: center; font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; background: rgba(255,255,255,.15); padding: 3px 10px; border-radius: 99px; }
.org-node--base .org-badge { background: #fff; color: #8A6400; }
.org-line { width: 3px; height: 28px; background: var(--line); }
.org-depts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; width: 100%; }
.org-dept { border: 1px solid var(--line); border-top: 4px solid var(--green-700); border-radius: var(--radius-lg); padding: 20px; background: #fff; display: flex; flex-direction: column; gap: 10px; scroll-margin-top: 90px; }
.org-dept-head { display: flex; justify-content: space-between; align-items: center; }
.org-dept-head .service-icon { margin: 0; }
.org-dept-num { font-family: var(--font-display); font-weight: 900; font-size: 1.6rem; color: var(--gold-500); -webkit-text-stroke: .5px #8A6400; }
.org-dept h2 { font-size: 1.02rem; line-height: 1.35; }
.org-dept p { font-size: .9rem; color: var(--ink-soft); }
.org-chief { font-weight: 700; color: var(--green-700) !important; }
.org-reps { display: grid; gap: 6px; font-size: .86rem; padding-top: 10px; border-top: 1px dashed var(--line); }
.org-reps i { color: var(--gold-500); font-size: .7rem; margin-right: 4px; }

/* Rede de atendimento */
.office-hq { display: grid; grid-template-columns: 1fr 1.2fr; gap: 28px; align-items: stretch; background: var(--surface-alt); border-radius: var(--radius-lg); padding: 28px; margin-bottom: 32px; }
.office-hq h2 { font-family: var(--font-display); font-size: 1.4rem; margin-bottom: 14px; }
.office-hq p { margin-top: 8px; color: var(--ink-soft); }
.office-hq p i { color: var(--green-700); width: 20px; }
.map-frame { width: 100%; min-height: 280px; border: 0; border-radius: var(--radius); background: var(--line-soft); }
.office-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.office-card { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; background: #fff; display: flex; flex-direction: column; gap: 10px; scroll-margin-top: 90px; }
.office-card h2 { font-size: 1.15rem; }
.office-card > p { color: var(--ink-soft); font-size: .92rem; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { font-size: .78rem; font-weight: 600; background: var(--green-50); color: var(--green-700); border: 1px solid var(--green-100); padding: 3px 10px; border-radius: 99px; }
.office-meta { display: grid; gap: 6px; font-size: .88rem; color: var(--ink-soft); }
.office-meta i { color: var(--green-700); width: 18px; }

/* FAQ */
.faq-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; }
.faq-groups > .block-title:first-child { margin-top: 0; }
.accordion { border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; overflow: hidden; }
.accordion-item + .accordion-item { border-top: 1px solid var(--line); }
.accordion-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; font-weight: 700; font-size: 1rem; }
.accordion-item summary::-webkit-details-marker { display: none; }
.accordion-item summary i { color: var(--green-700); transition: transform .2s; flex-shrink: 0; }
.accordion-item[open] summary { color: var(--green-700); }
.accordion-item[open] summary i { transform: rotate(45deg); }
.accordion-item summary:hover { background: var(--surface-alt); }
.accordion-item:target { box-shadow: inset 4px 0 0 var(--gold-500); }
.accordion-body { padding: 0 22px 20px; color: var(--ink-soft); }

/* Contactos */
.contact-layout { display: grid; grid-template-columns: 1fr 1.25fr; gap: 40px; align-items: start; }
.contact-info { display: grid; gap: 20px; }
.contact-cards { display: grid; gap: 12px; }
.contact-cards li { display: flex; gap: 14px; align-items: flex-start; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 16px; background: #fff; }
.contact-cards li > i { width: 40px; height: 40px; border-radius: 50%; background: var(--green-100); color: var(--green-700); display: grid; place-items: center; flex-shrink: 0; }
.contact-cards span { display: flex; flex-direction: column; }
.contact-cards small { font-size: .75rem; color: var(--ink-muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }
.contact-cards a { color: var(--ink); }
.social-row { display: flex; flex-wrap: wrap; gap: 8px; }
.social-btn { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: var(--radius); color: #fff; text-decoration: none; font-weight: 700; font-size: .88rem; }
.social-btn--facebook { background: #1877F2; }
.social-btn--instagram { background: linear-gradient(45deg, #F58529, #DD2A7B, #8134AF); }
.social-btn--whatsapp { background: #128C4B; }
.social-btn--youtube { background: #D90000; }
.social-btn--linkedin { background: #0A66C2; }
.social-btn--x { background: #111; }
.social-btn:hover { filter: brightness(1.08); }
.form-card { border: 1px solid var(--line); border-top: 4px solid var(--gold-500); border-radius: var(--radius-lg); padding: 32px; background: #fff; scroll-margin-top: 80px; }
.form-card h2 { font-family: var(--font-display); font-size: 1.4rem; }
.form-intro { color: var(--ink-soft); margin: 6px 0 22px; }
.form-alert { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--radius); margin-bottom: 20px; font-size: .93rem; }
.form-alert > i { font-size: 1.2rem; margin-top: 2px; }
.form-alert--ok { background: #E6F6EC; color: #0B5D3B; border: 1px solid #B6E2C6; }
.form-alert--erro { background: #FCEAEA; color: #8A1020; border: 1px solid #F3C1C8; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 700; font-size: .9rem; }
.field input, .field select, .field textarea { border: 2px solid #9AA8A0; border-radius: var(--radius); padding: 11px 13px; font: inherit; color: var(--ink); background: #fff; width: 100%; }
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--ink); }
.field.has-error input, .field.has-error textarea { border-color: var(--red-600); }
.field-error { color: var(--red-600); font-size: .85rem; font-weight: 600; }
.field-check label { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; font-size: .9rem; color: var(--ink-soft); }
.field-check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--green-700); flex-shrink: 0; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Pesquisa */
.search-results { display: grid; gap: 4px; margin-bottom: 12px; }
.search-results li { padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.search-results a { font-weight: 700; font-size: 1.08rem; color: var(--green-700); text-underline-offset: 3px; }
.search-url { display: block; font-size: .8rem; color: #2E7D32; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-results p { color: var(--ink-soft); font-size: .93rem; margin-top: 4px; }

/* Partilha */
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.share__label { font-weight: 700; font-size: .9rem; margin-right: 4px; }
.share__btn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); background: #fff; color: var(--ink-soft); text-decoration: none; cursor: pointer; font-size: 1rem; transition: all .15s; }
.share__btn:hover { color: #fff; border-color: transparent; }
.share__btn--facebook:hover { background: #1877F2; }
.share__btn--whatsapp:hover { background: #25D366; }
.share__btn--x:hover { background: #111; }
.share__btn--linkedin:hover { background: #0A66C2; }
.share__btn--telegram:hover { background: #229ED9; }
.share__btn--email:hover, .share__copy:hover, .share__native:hover { background: var(--green-700); }
.share__copy.is-copied { background: var(--green-700); color: #fff; }

/* Erro 404 */
.error-inner { text-align: center; max-width: 640px; }
.error-code { display: block; font-family: var(--font-display); font-weight: 900; font-size: 6rem; line-height: 1; color: var(--green-100); -webkit-text-stroke: 2px var(--green-700); }
.error-inner h1 { font-family: var(--font-display); font-size: 2rem; margin-top: 12px; }
.error-inner > p { color: var(--ink-soft); margin: 12px auto 24px; }
.error-search { display: flex; gap: 10px; }
.error-search input { flex: 1; border: 2px solid var(--ink); border-radius: var(--radius); padding: 11px 14px; font: inherit; min-width: 0; }
.error-links { display: flex; justify-content: center; gap: 24px; margin-top: 24px; flex-wrap: wrap; }

@media (max-width: 1024px) {
    .content-layout, .content-layout--left, .faq-layout, .contact-layout, .office-hq { grid-template-columns: 1fr; gap: 28px; }
    .content-aside { position: static; }
    .content-layout--left .content-aside { order: 2; }
    .tile-grid, .program-cards, .news-grid, .office-grid, .event-list { grid-template-columns: repeat(2, 1fr); }
    .org-depts { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .page-hero { padding: 28px 0 32px; }
    .tile-grid, .program-cards, .news-grid, .office-grid, .event-list, .org-depts, .field-row { grid-template-columns: 1fr; }
    .leader-card { grid-template-columns: 1fr; }
    .leader-card img { max-width: 220px; }
    .doc-item { flex-wrap: wrap; }
    .doc-btn { width: 100%; }
    .form-card { padding: 22px 18px; }
    .inline-search, .error-search { flex-direction: column; }
    .communique-list li { padding: 16px; gap: 14px; }
    .event-card { padding: 16px; gap: 14px; }
}
