/* ══════════════════════════════════════════════════════════════
   TEMPLATE DE PÁGINA DE SECRETARIA — Prefeitura de Campina Grande do Sul
   Depende do index.css para: reset, body, focus, variáveis globais,
   barra superior, header, navbar e skip-nav.

   Organização:
    1.  Variáveis exclusivas da página
    2.  Hero / cabeçalho da secretaria
    3.  Layout principal (coluna + sidebar)
    4.  Abas (tabs)
    5.  Aba Secretaria — texto + contato + secretário
    6.  Aba Departamentos
    7.  Aba Solicitação de Acesso
    8.  Aba Links Úteis
    9.  Sidebar
   10.  Rodapé
   11.  Alto contraste eMAG
   12.  Responsividade
══════════════════════════════════════════════════════════════ */


/* ══ 1. VARIÁVEIS EXCLUSIVAS DA PÁGINA ══════════════════════
   Mantidas: nomenclatura --pi-* é diferente do index.css
══════════════════════════════════════════════════════════════ */

:root {
  --pi-verde:        #2d7a2d;
  --pi-verde-escuro: #1e5c1e;
  --pi-verde-medio:  #3a9a3a;
  --pi-verde-claro:  #e8f5e8;
  --pi-amarelo:      #f5c518;
  --pi-cinza-bg:     #eef2ee;
  --pi-cinza-borda:  #c8d8c8;
  --pi-texto:        #1a2a1a;
}


/* ══ 2. HERO / CABEÇALHO DA SECRETARIA ═══════════════════════ */
.pi-skip-nav {
  position: absolute;
  top: -100%;
  left: 0;
  z-index: 9999;
  padding: 0.75rem 1.25rem;
  background: #1a5c2a;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: top 0.2s ease;
}

.pi-skip-nav:focus {
  top: 0;
}

#pi-hero {
  background: var(--pi-verde-escuro);
  padding: 18px 0 0;
  position: relative;
  overflow: hidden;
}

.pi-hero-inner {
  position: relative;
  z-index: 2;
  padding-bottom: 12px;
}

.pi-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
  list-style: none;
  padding: 0;
}

.pi-breadcrumb li {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, .7);
}

.pi-breadcrumb li a {
  color: rgba(255, 255, 255, .75);
  text-decoration: none;
  transition: color .15s;
}

.pi-breadcrumb li a:hover {
  color: #fff;
  text-decoration: underline;
}

.pi-breadcrumb li[aria-current="page"] {
  color: rgba(255, 255, 255, .95);
  font-weight: 500;
}

.pi-breadcrumb-sep {
  color: rgba(255, 255, 255, .4);
  font-size: 0.625rem;
}

.pi-hero-titulo {
  font-size: 1.5rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: .2px;
  line-height: 1.2;
  margin: 0;
  text-transform: uppercase;
}

.pi-hero-subtitulo {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, .75);
  margin-top: 5px;
  font-weight: 300;
}

.pi-hero-ilustracao {
  display: block;
  width: 100%;
  line-height: 0;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,.4) 35%, rgba(0,0,0,.75) 100%);
          mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,.4) 35%, rgba(0,0,0,.75) 100%);
}

.pi-hero-ilustracao img {
  display: block;
  width: 100%;
  height: 70px;
  object-fit: cover;
  object-position: center 30%;
  opacity: 0.18;
}

@media (max-width: 575px) {
  .pi-hero-titulo { font-size: 1.125rem; }
  .pi-hero-ilustracao img { height: 70px; }
}


/* ══ 3. LAYOUT PRINCIPAL ════════════════════════════════════ */

#pi-main {
  background: #fff;
  padding: 38px 0 56px;
}

.pi-layout {
  display: grid;
  grid-template-columns: 1fr 270px;
  gap: 40px;
  align-items: start;
}

@media (max-width: 991px) {
  .pi-layout { grid-template-columns: 1fr; }
  .pi-sidebar { order: -1; }
}

.pi-secao-titulo {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--pi-verde-escuro);
  margin: 0 0 5px;
  display: flex;
  align-items: center;
  gap: 9px;
}

.pi-secao-titulo i {
  font-size: 0.9375rem;
  color: var(--pi-verde);
  flex-shrink: 0;
}

.pi-secao-divider {
  border: none;
  border-top: 2px solid var(--pi-verde-claro);
  margin: 0 0 22px;
}

.pi-mt-secao { margin-top: 40px; }

.pi-btn-verde {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--pi-verde);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  transition: background .2s, transform .15s;
  border: none;
  cursor: pointer;
  font-family: 'Roboto', sans-serif;
}

.pi-btn-verde:hover {
  background: var(--pi-verde-escuro);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}

.pi-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--pi-verde);
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: 6px;
  border: 1.5px solid var(--pi-verde);
  text-decoration: none;
  transition: all .2s;
}

.pi-btn-outline:hover {
  background: var(--pi-verde-claro);
  color: var(--pi-verde-escuro);
  text-decoration: none;
}

.pi-btn-full {
  width: 100%;
  justify-content: center;
}


/* ══ 4. ABAS (TABS) ══════════════════════════════════════════ */

.sec-tabs-nav {
  display: flex;
  flex-wrap: wrap;
  border-bottom: 2px solid var(--pi-cinza-borda);
  margin-bottom: 28px;
  list-style: none;
  padding: 0;
}

.sec-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 20px;
  font-size: 0.875rem;
  font-weight: 400;
  color: #555;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: color .15s, border-color .15s;
  font-family: 'Roboto', sans-serif;
  white-space: nowrap;
}

.sec-tab-btn:hover { color: var(--pi-verde); }

.sec-tab-btn.ativo {
  color: var(--pi-verde);
  border-bottom-color: var(--pi-verde);
  font-weight: 700;
}

.sec-tab-painel { display: none; }
.sec-tab-painel.ativo { display: block; }


/* ══ 5. ABA SECRETARIA ══════════════════════════════════════ */

.sec-titulo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--pi-verde-escuro);
  margin-bottom: 14px;
  line-height: 1.3;
}

.sec-texto {
  font-size: 0.9375rem;
  color: #444;
  line-height: 1.8;
  margin-bottom: 22px;
}

.sec-texto p { margin-bottom: 14px; }
.sec-texto p:last-child { margin-bottom: 0; }

.sec-contato-lista { margin: 0 0 24px; }

.sec-contato-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: #444;
  margin-bottom: 8px;
  line-height: 1.5;
}

.sec-contato-item:last-child { margin-bottom: 0; }

.sec-contato-item i {
  color: var(--pi-verde);
  font-size: 0.9375rem;
  margin-top: 2px;
  flex-shrink: 0;
  width: 18px;
}

.sec-contato-item strong {
  color: var(--pi-texto);
  margin-right: 4px;
}

.sec-contato-item a {
  color: var(--pi-verde-escuro);
  text-decoration: none;
}

.sec-contato-item a:hover {
  text-decoration: underline;
  color: var(--pi-verde);
}

.sec-secretario-bloco {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  margin-top: 32px;
  padding: 28px;
  background: #fff;
  border: 1.5px solid var(--pi-cinza-borda);
  border-left: 4px solid var(--pi-verde);
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(45, 122, 45, .06);
}

.sec-secretario-foto {
  width: 160px;
  height: 190px;
  min-width: 160px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--pi-cinza-bg);
  border: 3px solid var(--pi-verde-claro);
  outline: 1.5px solid var(--pi-cinza-borda);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ccc;
  font-size: 3rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .10);
  flex-shrink: 0;
}

.sec-secretario-foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.sec-secretario-corpo { flex: 1; min-width: 0; }

.sec-secretario-label {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--pi-verde);
  text-transform: uppercase;
  letter-spacing: 1px;
  background: var(--pi-verde-claro);
  border-radius: 4px;
  padding: 3px 10px;
  margin-bottom: 8px;
  border: 1px solid rgba(45, 122, 45, .18);
}

.sec-secretario-nome {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--pi-verde-escuro);
  margin-bottom: 4px;
  line-height: 1.25;
}

.sec-secretario-nome::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: var(--pi-verde);
  margin-top: 10px;
  margin-bottom: 12px;
  border-radius: 2px;
}

.sec-secretario-bio { font-size: 0.875rem; color: #555; line-height: 1.8; }
.sec-secretario-bio p { margin-bottom: 10px; }
.sec-secretario-bio p:last-child { margin-bottom: 0; }


/* ══ 6. ABA DEPARTAMENTOS ══════════════════════════════════ */

.sec-depto-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.sec-depto-card {
  background: #fff;
  border: 1.5px solid var(--pi-cinza-borda);
  border-radius: 10px;
  padding: 22px 20px 18px;
  transition: border-color .2s, box-shadow .2s, transform .2s;
  position: relative;
}

.sec-depto-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--pi-verde-claro);
  border-radius: 10px 10px 0 0;
  transition: background .2s;
}

.sec-depto-card:hover {
  border-color: var(--pi-verde);
  box-shadow: 0 6px 20px rgba(45, 122, 45, .10);
  transform: translateY(-2px);
}

.sec-depto-card:hover::before { background: var(--pi-verde); }

.sec-depto-nome {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--pi-verde);
  margin-bottom: 16px;
  line-height: 1.35;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--pi-cinza-borda);
}

.sec-depto-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.8125rem;
  color: #555;
  margin-bottom: 10px;
  line-height: 1.5;
}

.sec-depto-item:last-child { margin-bottom: 0; }

.sec-depto-item i {
  color: var(--pi-verde);
  font-size: 0.8125rem;
  margin-top: 2px;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  background: var(--pi-verde-claro);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sec-depto-item strong {
  color: var(--pi-texto);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: .2px;
  display: block;
  margin-bottom: 1px;
}

.sec-depto-item a { color: var(--pi-verde-escuro); text-decoration: none; word-break: break-all; }
.sec-depto-item a:hover { text-decoration: underline; color: var(--pi-verde); }


/* ══ 7. ABA SOLICITAÇÃO DE ACESSO ════════════════════════════ */

.sec-acesso-texto { font-size: 0.9375rem; color: #444; line-height: 1.8; }
.sec-acesso-texto p { margin-bottom: 14px; }
.sec-acesso-texto p:last-child { margin-bottom: 0; }
.sec-acesso-texto strong { color: var(--pi-texto); }

.sec-aviso {
  background: #fffbea;
  border-left: 4px solid var(--pi-amarelo);
  border-radius: 0 6px 6px 0;
  padding: 14px 18px;
  font-size: 0.875rem;
  color: #5a4a00;
  line-height: 1.6;
  margin: 20px 0;
}

.sec-aviso strong { font-weight: 700; }

.sec-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 22px;
}

.sec-form-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1.5px solid var(--pi-cinza-borda);
  border-radius: 8px;
  padding: 12px 14px;
  text-decoration: none;
  transition: border-color .2s, background .15s;
}

.sec-form-item:hover {
  border-color: var(--pi-verde);
  background: var(--pi-verde-claro);
  text-decoration: none;
}

.sec-form-icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  background: var(--pi-verde-claro);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9375rem;
  color: var(--pi-verde);
}

.sec-form-item:hover .sec-form-icon { background: rgba(45, 122, 45, .2); }

.sec-form-nome { font-size: 0.8125rem; font-weight: 600; color: var(--pi-verde-escuro); line-height: 1.35; }
.sec-form-desc { font-size: 0.7rem; color: #888; margin-top: 2px; }


/* ══ 8. ABA LINKS ÚTEIS ════════════════════════════════════ */

.sec-links-categoria { margin-bottom: 28px; }
.sec-links-categoria:last-child { margin-bottom: 0; }

.sec-links-cat-titulo {
  font-size: 0.6875rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #777;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--pi-cinza-borda);
}

.sec-links-lista { list-style: none; padding: 0; margin: 0; columns: 2; gap: 0; }
.sec-links-lista li { break-inside: avoid; }

.sec-links-lista li a {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  padding: 6px 4px;
  font-size: 0.8125rem;
  color: var(--pi-verde);
  text-decoration: none;
  line-height: 1.4;
  transition: color .15s, padding-left .15s;
}

.sec-links-lista li a:hover { color: var(--pi-verde-escuro); padding-left: 8px; }
.sec-links-lista li a i { font-size: 0.5rem; color: var(--pi-verde); margin-top: 5px; flex-shrink: 0; }


/* ══ 9. SIDEBAR ════════════════════════════════════════════ */

.pi-sidebar-card {
  background: #fff;
  border: 1.5px solid var(--pi-cinza-borda);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 16px;
}

.pi-sidebar-card h3 {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--pi-verde-escuro);
  letter-spacing: .3px;
  text-transform: uppercase;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--pi-verde-claro);
  display: flex;
  align-items: center;
  gap: 8px;
}

.pi-sidebar-card h3 i { font-size: 0.875rem; color: var(--pi-verde); }

.pi-sidebar-links { list-style: none; padding: 0; margin: 0; }
.pi-sidebar-links li { border-bottom: 1px solid #eef2ee; }
.pi-sidebar-links li:last-child { border-bottom: none; }

.pi-sidebar-links li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 4px;
  font-size: 0.8125rem;
  color: #444;
  text-decoration: none;
  transition: color .15s, padding-left .15s;
  gap: 8px;
}

.pi-sidebar-links li a:hover { color: var(--pi-verde); padding-left: 6px; }
.pi-sidebar-links li a i.fa-chevron-right { font-size: 0.625rem; color: #bbb; flex-shrink: 0; }
.pi-sidebar-links li.ativo a { color: var(--pi-verde); font-weight: 600; }

.pi-controles-bloco {
  background: var(--pi-verde-claro);
  border: 1.5px solid #b8dab8;
  border-radius: 10px;
  padding: 18px;
  margin-bottom: 16px;
}

.pi-controles-bloco h3 {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--pi-verde-escuro);
  text-transform: uppercase;
  letter-spacing: .3px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pi-controles-bloco h3 i { color: var(--pi-verde); }

.pi-ctrl-row { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.pi-ctrl-row:last-child { margin-bottom: 0; }
.pi-ctrl-label { font-size: 0.75rem; color: #3a5a3a; flex: 1; }
.pi-ctrl-btns { display: flex; gap: 4px; }

.pi-ctrl-btn {
  border: 1px solid #b8dab8;
  background: #fff;
  color: var(--pi-verde-escuro);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 5px;
  cursor: pointer;
  transition: background .15s, color .15s;
  font-family: 'Roboto', sans-serif;
}

.pi-ctrl-btn:hover { background: var(--pi-verde); color: #fff; border-color: var(--pi-verde); }

.pi-ctrl-btn-contraste {
  width: 100%;
  border: 1.5px solid #b8dab8;
  background: #fff;
  color: var(--pi-verde-escuro);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all .15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Roboto', sans-serif;
}

.pi-ctrl-btn-contraste:hover { background: var(--pi-verde); color: #fff; border-color: var(--pi-verde); }

.pi-sidebar-contato { background: var(--pi-verde-claro); border-color: #b3d6be !important; }
.pi-sidebar-contato h3 { border-color: #b3d6be; }

.pi-sidebar-contato p {
  font-size: 0.8125rem;
  color: #3a5a3a;
  line-height: 1.7;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pi-sidebar-contato p:last-of-type { margin-bottom: 14px; }
.pi-sidebar-contato p i { color: var(--pi-verde); flex-shrink: 0; }


/* ══ 10. RODAPÉ ════════════════════════════════════════════ */

#pi-footer {
  background: var(--pi-verde-escuro);
  color: rgba(255, 255, 255, .7);
  padding: 42px 0 16px;
}

.pi-footer-heading {
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 1px solid rgba(255, 255, 255, .15);
  padding-bottom: 8px;
  margin-bottom: 12px;
}

#pi-footer ul { list-style: none; padding: 0; margin: 0; }
#pi-footer ul li { margin-bottom: 5px; }

#pi-footer ul li a {
  color: rgba(255, 255, 255, .6);
  font-size: 0.75rem;
  text-decoration: none;
  transition: color .15s;
}

#pi-footer ul li a:hover { color: #fff; }

.pi-footer-logo-wrap { display: flex; align-items: center; margin-bottom: 16px; }
.pi-footer-logo-wrap .pi-logo-img { height: 50px; }

.pi-footer-contact p { font-size: 0.8125rem; margin-bottom: 6px; color: rgba(255, 255, 255, .7); }

.pi-footer-contact a {
  color: rgba(255, 255, 255, .7);
  text-decoration: none;
  transition: color .15s;
}

.pi-footer-contact a:hover { color: #fff; }
.pi-footer-contact i { color: var(--pi-amarelo); width: 18px; margin-right: 6px; }

.pi-footer-social { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }

.pi-footer-social a {
  color: rgba(255, 255, 255, .6);
  font-size: 1.25rem;
  text-decoration: none;
  transition: color .15s;
}

.pi-footer-social a:hover { color: #fff; }

.pi-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  margin-top: 28px;
  padding-top: 16px;
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, .35);
  text-align: center;
}


/* ══ 11. ALTO CONTRASTE eMAG ════════════════════════════════ */

body.high-contrast {
  background: #000 !important;
  color: #fff !important;
}

body.high-contrast #pi-main,
body.high-contrast article,
body.high-contrast .pi-layout,
body.high-contrast .sec-tab-painel,
body.high-contrast .sec-texto,
body.high-contrast .sec-acesso-texto,
body.high-contrast .sec-secretario-bio,
body.high-contrast .pi-sidebar {
  background: #000 !important;
  color: #fff !important;
}

body.high-contrast a { color: #ff0 !important; }

body.high-contrast #pi-barra-topo,
body.high-contrast #pi-navbar {
  background: #000 !important;
  border: 1px solid #fff !important;
}

body.high-contrast #pi-navbar .dropdown-menu,
body.high-contrast #pi-navbar .dropdown-menu.mega-menu {
  background: #111 !important;
  border: 1px solid #fff !important;
}

body.high-contrast #pi-navbar .dropdown-item,
body.high-contrast #pi-navbar .mega-col .dropdown-item { color: #ff0 !important; }

body.high-contrast #pi-navbar .dropdown-item:hover {
  background: #333 !important;
  color: #fff !important;
}

body.high-contrast #pi-navbar .dropdown-group-title { color: #ff0 !important; }

body.high-contrast #pi-header {
  background: #000 !important;
  border-color: #fff !important;
}

body.high-contrast .pi-search-input {
  background: #000 !important;
  color: #fff !important;
  border-color: #fff !important;
}

body.high-contrast .pi-search-input::placeholder { color: #aaa !important; }

body.high-contrast .pi-search-btn {
  background: #222 !important;
  color: #ff0 !important;
  border-color: #fff !important;
}

body.high-contrast #pi-hero {
  background: #000 !important;
  border-bottom: 2px solid #fff;
}

body.high-contrast .pi-hero-ilustracao { display: none; }

body.high-contrast .pi-hero-titulo,
body.high-contrast .pi-hero-subtitulo { color: #fff !important; }

body.high-contrast .pi-breadcrumb li,
body.high-contrast .pi-breadcrumb li a { color: #ff0 !important; }

body.high-contrast .sec-tabs-nav { border-color: #555 !important; }
body.high-contrast .sec-tab-btn { color: #aaa !important; background: #000 !important; }
body.high-contrast .sec-tab-btn:hover { color: #ff0 !important; }
body.high-contrast .sec-tab-btn.ativo { color: #ff0 !important; border-bottom-color: #ff0 !important; }

body.high-contrast .sec-titulo { color: #fff !important; }
body.high-contrast .sec-texto p { color: #fff !important; }

body.high-contrast .sec-contato-item { color: #ddd !important; }
body.high-contrast .sec-contato-item i { color: #ff0 !important; }
body.high-contrast .sec-contato-item strong { color: #fff !important; }

body.high-contrast .sec-secretario-bloco {
  background: #000 !important;
  border-color: #fff !important;
  border-left-color: #ff0 !important;
}

body.high-contrast .sec-secretario-label {
  background: #222 !important;
  color: #ff0 !important;
  border-color: #fff !important;
}

body.high-contrast .sec-secretario-nome { color: #fff !important; }
body.high-contrast .sec-secretario-nome::after { background: #ff0 !important; }
body.high-contrast .sec-secretario-bio p { color: #ddd !important; }

body.high-contrast .sec-depto-card {
  background: #000 !important;
  border-color: #fff !important;
}

body.high-contrast .sec-depto-card::before { background: #ff0 !important; }
body.high-contrast .sec-depto-nome { color: #ff0 !important; border-bottom-color: #555 !important; }
body.high-contrast .sec-depto-item { color: #ddd !important; }
body.high-contrast .sec-depto-item i { background: #222 !important; color: #ff0 !important; }
body.high-contrast .sec-depto-item strong { color: #fff !important; }

body.high-contrast .sec-acesso-texto p { color: #fff !important; }
body.high-contrast .sec-acesso-texto strong { color: #ff0 !important; }

body.high-contrast .sec-aviso {
  background: #111 !important;
  border-color: #ff0 !important;
  color: #fff !important;
}

body.high-contrast .sec-form-item { background: #000 !important; border-color: #fff !important; }
body.high-contrast .sec-form-item:hover { background: #111 !important; border-color: #ff0 !important; }
body.high-contrast .sec-form-icon { background: #222 !important; color: #ff0 !important; }
body.high-contrast .sec-form-nome { color: #fff !important; }
body.high-contrast .sec-form-desc { color: #aaa !important; }

body.high-contrast .sec-links-cat-titulo { color: #aaa !important; border-bottom-color: #555 !important; }
body.high-contrast .sec-links-lista li a { color: #ff0 !important; }
body.high-contrast .sec-links-lista li a:hover { color: #fff !important; }
body.high-contrast .sec-links-lista li a i { color: #ff0 !important; }

body.high-contrast .pi-sidebar-card,
body.high-contrast .pi-controles-bloco {
  background: #000 !important;
  border: 1.5px solid #fff !important;
}

body.high-contrast .pi-sidebar-card h3,
body.high-contrast .pi-controles-bloco h3 {
  color: #fff !important;
  border-bottom-color: #555 !important;
}

body.high-contrast .pi-sidebar-card h3 i,
body.high-contrast .pi-controles-bloco h3 i { color: #ff0 !important; }

body.high-contrast .pi-sidebar-links li { border-bottom-color: #444 !important; }
body.high-contrast .pi-sidebar-links li a { color: #ff0 !important; }
body.high-contrast .pi-sidebar-links li a:hover { color: #fff !important; background: #222 !important; }
body.high-contrast .pi-sidebar-links li a i.fa-chevron-right { color: #ff0 !important; }

body.high-contrast .pi-ctrl-label { color: #ddd !important; }
body.high-contrast .pi-ctrl-btn { background: #222 !important; color: #ff0 !important; border-color: #fff !important; }
body.high-contrast .pi-ctrl-btn:hover { background: #ff0 !important; color: #000 !important; }

body.high-contrast .pi-ctrl-btn-contraste {
  background: var(--pi-amarelo) !important;
  color: #000 !important;
  border-color: var(--pi-amarelo) !important;
  font-weight: 700 !important;
}

body.high-contrast .pi-barra-acesso-contraste { background: var(--pi-amarelo) !important; color: #000 !important; }

body.high-contrast .pi-sidebar-contato p { color: #ddd !important; }
body.high-contrast .pi-sidebar-contato p i { color: #ff0 !important; }

body.high-contrast #pi-footer {
  background: #000 !important;
  border-top: 1px solid #fff;
}

body.high-contrast .pi-footer-heading { color: #fff !important; border-bottom-color: #555 !important; }

body.high-contrast #pi-footer ul li a,
body.high-contrast .pi-footer-contact p { color: #ff0 !important; }

body.high-contrast .pi-footer-contact a { color: #ff0 !important; }
body.high-contrast .pi-footer-contact i { color: #ff0 !important; }
body.high-contrast .pi-footer-social a { color: #ff0 !important; }
body.high-contrast .pi-footer-social a:hover { color: #fff !important; }
body.high-contrast .pi-footer-bottom { color: rgba(255, 255, 255, .6) !important; border-top-color: #555 !important; }

body.high-contrast .pi-btn-verde {
  background: #ff0 !important;
  color: #000 !important;
  border: 2px solid #fff !important;
}

body.high-contrast .pi-btn-verde:hover { background: #fff !important; color: #000 !important; }

body.high-contrast .pi-btn-outline {
  color: #ff0 !important;
  border-color: #ff0 !important;
  background: #000 !important;
}

body.high-contrast .pi-btn-outline:hover { background: #222 !important; color: #fff !important; }

body.high-contrast .pi-badge-item { color: #ff0 !important; border-color: #fff !important; }

body.high-contrast .pi-barra-social a { color: #ff0 !important; }
body.high-contrast .pi-barra-social a:hover { background: #333 !important; color: #fff !important; }

body.high-contrast .pi-barra-telefone { color: #ff0 !important; }
body.high-contrast .pi-barra-horario-dias,
body.high-contrast .pi-barra-horario-turno { color: #fff !important; }

body.high-contrast :focus-visible {
  outline: 3px solid #ff0 !important;
  outline-offset: 2px !important;
}


/* ══ 12. RESPONSIVIDADE ════════════════════════════════════ */

@media (max-width: 900px) {
  .sec-depto-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 575px) {
  .sec-depto-grid { grid-template-columns: 1fr; }

  .sec-secretario-bloco {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
    padding: 20px 18px;
  }

  .sec-secretario-foto {
    width: 130px;
    height: 154px;
    min-width: 130px;
  }

  .sec-secretario-corpo { width: 100%; }
  .sec-secretario-nome::after { margin-left: auto; margin-right: auto; }
  .sec-form-grid { grid-template-columns: 1fr; }
  .sec-links-lista { columns: 1; }
}