:root {
  --ogmo-navy: #072640;
  --ogmo-cyan: #13a2d2;
  --ogmo-gold: #cf9d3d;
  --ogmo-ink: #10253a;
  --ogmo-paper: #f5f8fc;
  --ogmo-card: #ffffff;
  --ogmo-shadow: 0 16px 40px rgba(7, 38, 64, 0.14);
  --ogmo-radius: 18px;
}

@font-face {
  font-family: "Apple Garamond Local";
  src: url("../font/AppleGaramond.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Apple Garamond Local";
  src: url("../font/AppleGaramond-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

body.site-modern {
  background:
    radial-gradient(circle at 15% -10%, rgba(19, 162, 210, 0.22), transparent 38%),
    radial-gradient(circle at 90% -30%, rgba(207, 157, 61, 0.2), transparent 45%),
    linear-gradient(180deg, #edf4fa 0%, #f9fbfe 35%, #ffffff 100%);
  color: var(--ogmo-ink);
  font-family: "Source Sans 3", "Segoe UI", Arial, sans-serif;
  padding-top: 94px;
}

body.site-modern h1,
body.site-modern h2,
body.site-modern h3,
body.site-modern h4,
body.site-modern h5,
body.site-modern h6,
body.site-modern .nav-link,
body.site-modern .dropdown-item {
  font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
}

body.site-modern .site-nav .nav-link,
body.site-modern .site-nav .dropdown-item,
body.site-modern .site-nav .mini-mega-title,
body.site-modern .site-nav .mini-mega-label,
body.site-modern .site-nav .mini-mega-desc {
  font-family: "Montserrat", sans-serif;
}

.site-nav {
  min-height: 82px;
  border-bottom: 1px solid rgba(7, 38, 64, 0.08);
  box-shadow: 0 10px 30px rgba(7, 38, 64, 0.1);
  background: rgba(255, 255, 255, 0.97) !important;
  backdrop-filter: blur(8px);
  overflow: visible;
  padding-bottom: 0.38rem;
  padding-top: 0.38rem;
}

.site-nav > .container {
  align-items: center;
  flex-wrap: nowrap;
}

.site-nav .navbar-brand img {
  display: block;
  height: auto;
  max-width: 100%;
  width: 100%;
  transition: transform 0.25s ease;
}

.site-nav .site-brand-highlight {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  display: flex;
  flex: 0 0 280px;
  justify-content: flex-start;
  margin: 0;
  order: 1;
  padding: 0;
  position: relative;
  transform: none;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  width: 280px;
  z-index: 12;
}

.site-nav .site-brand-highlight:hover {
  box-shadow: none;
  transform: translateY(-1px);
}

.site-nav .site-brand-highlight:hover img {
  transform: none;
}

.site-nav .nav-item {
  padding: 2px 0 !important;
}

.site-nav .navbar-nav {
  align-items: center;
  gap: 0.14rem;
  justify-content: flex-start;
  margin-left: 0 !important;
  width: auto;
}

.site-nav .navbar-collapse {
  align-items: center;
  flex: 1 1 auto;
  flex-basis: auto;
  justify-content: flex-start;
  margin-left: 0.35rem;
  margin-top: 0;
  order: 2;
  width: auto;
}

.site-nav .navbar-toggler {
  margin-left: auto;
  order: 3;
}

@media (min-width: 1200px) {
  .site-nav .navbar-collapse {
    display: flex !important;
  }
}

.site-nav .navbar-nav > .nav-item {
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(7, 38, 64, 0.08);
  border-radius: 11px;
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.site-nav .navbar-nav > .nav-item:hover,
.site-nav .navbar-nav > .nav-item:focus-within {
  background: rgba(19, 162, 210, 0.08);
  border-color: rgba(19, 162, 210, 0.24);
  box-shadow: 0 8px 18px rgba(7, 38, 64, 0.08);
}

.site-nav .nav-link {
  color: var(--ogmo-navy) !important;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.12;
  padding: 0.34rem 0.43rem !important;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.site-nav .nav-link-health {
  padding-left: 0.43rem !important;
}

.site-nav .nav-link:hover,
.site-nav .nav-link:focus {
  color: var(--ogmo-cyan) !important;
}

.site-nav .dropdown-menu {
  border: 1px solid rgba(7, 38, 64, 0.08);
  border-radius: 12px;
  box-shadow: var(--ogmo-shadow);
  padding: 0.55rem;
  min-width: 15rem;
}

.site-nav #navbarDropdownLogin + .dropdown-menu {
  left: auto;
  right: 0;
}

.site-nav .dropdown-item {
  border-radius: 8px;
  color: var(--ogmo-ink);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.52rem 0.72rem;
}

.site-nav .dropdown-item:hover {
  background: rgba(19, 162, 210, 0.1);
  color: var(--ogmo-navy);
}

.link_acesso_tpa {
  background: linear-gradient(135deg, #f4f9ff 0%, #eef4ff 100%);
  box-shadow: 0 8px 18px rgba(7, 38, 64, 0.12);
}

.home-carousel-wrap {
  margin-bottom: 1.5rem;
  margin-top: 1rem;
}

.carousel {
  border-radius: var(--ogmo-radius);
  overflow: hidden;
  box-shadow: var(--ogmo-shadow);
}

.carousel-item {
  background: #f3f7fb;
}

.theme-dark .carousel-item,
.theme-dark .news-card-image {
  background: #0d2235;
}

/* A imagem deve caber inteira dentro do slide (sem cortar bordas) */
.carousel-item img {
  min-height: 300px;
  object-fit: contain;
  object-position: center;
  width: 100%;
}

/* Altura acompanha a proporção real das artes do carrossel (991 x 260),
   então a área do slide fica exatamente do tamanho da imagem, sem sobra. */
.home-carousel-wrap .carousel-item img {
  aspect-ratio: 991 / 260;
  height: auto;
  min-height: 0;
}

.home-map-wrap {
  margin-bottom: 2rem;
  margin-top: 1.5rem;
}

.home-map {
  border: 0;
  border-radius: var(--ogmo-radius);
  box-shadow: var(--ogmo-shadow);
  display: block;
  height: 240px !important;
  max-height: 240px !important;
  width: 100% !important;
}

/* (overlay removido — imagens do carousel renderizam sem máscara) */

.carousel-item > a {
  display: block;
}

.carousel-control-prev,
.carousel-control-next {
  z-index: 5;
  width: 8%;
  opacity: 0.85;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: rgba(7, 38, 64, 0.55);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  background-size: 55% 55%;
}

.carousel-indicators {
  z-index: 5;
}

.carousel-indicators li {
  background-color: rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  width: 10px;
  height: 10px;
  margin: 0 4px;
}

.carousel-indicators .active {
  background-color: var(--ogmo-gold);
}

.carousel-caption {
  background: rgba(7, 38, 64, 0.66);
  backdrop-filter: blur(2px);
  border-left: 4px solid var(--ogmo-gold);
  border-radius: 12px;
  padding: 0.75rem 1rem;
}

.container .card {
  border: 1px solid rgba(7, 38, 64, 0.08);
  border-radius: var(--ogmo-radius);
  box-shadow: 0 8px 18px rgba(7, 38, 64, 0.1);
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.container .card:hover {
  transform: translateY(-4px);
  box-shadow: var(--ogmo-shadow);
}

.container .card-title a,
.container a h6,
.container a h5 {
  color: var(--ogmo-navy);
  text-decoration: none;
}

.container .card-title a:hover,
.container a h6:hover,
.container a h5:hover {
  color: var(--ogmo-cyan);
}

.bg-azulOgmo {
  background: linear-gradient(135deg, #06263f 0%, #0a3a61 100%) !important;
}

.bg-azulOgmoClaro {
  background: linear-gradient(135deg, #0d8fbf 0%, #14aadf 100%) !important;
}

.btn-lg-Ogmo {
  display: inline-block;
  border: none;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(13, 143, 191, 0.28);
  color: #ffffff !important;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.5rem 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-lg-Ogmo:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(13, 143, 191, 0.35);
}

.breadcrumb {
  background: #ffffff;
  border: 1px solid rgba(7, 38, 64, 0.08);
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(7, 38, 64, 0.08);
}

.form-control,
.form-control-file {
  border-radius: 12px;
  border: 1px solid rgba(7, 38, 64, 0.14);
  box-shadow: none;
}

.form-control:focus {
  border-color: var(--ogmo-cyan);
  box-shadow: 0 0 0 0.2rem rgba(19, 162, 210, 0.18);
}

.site-footer {
  background: linear-gradient(145deg, #052139 0%, #0a3556 55%, #0e4c79 100%);
  color: #f4fbff;
  margin-top: 2.4rem;
  padding: 2.4rem 0 2rem;
}

.footer-shell {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.04) 100%);
  box-shadow: 0 20px 36px rgba(2, 18, 31, 0.35);
  padding: 1.4rem 1.2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1.3fr 1fr 1.2fr 0.9fr;
  gap: 1.8rem;
  align-items: start;
}

/* ---- Coluna da marca ---- */
.footer-brand {
  text-align: left;
}

.footer-brand-top {
  align-items: center;
  display: flex;
  gap: 0.9rem;
}

.footer-brand img {
  flex: 0 0 auto;
  max-width: 150px;
  width: 100%;
}

.footer-slogan {
  border-left: 1px solid rgba(255, 255, 255, 0.28);
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
  padding-left: 0.9rem;
}

.footer-tag {
  color: rgba(238, 250, 255, 0.9);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 1rem 0 0;
  max-width: 23rem;
  text-align: left;
}

.footer-badge {
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  display: flex;
  gap: 0.7rem;
  margin-top: 1.1rem;
  max-width: 23rem;
  padding: 0.8rem 0.95rem;
}

.footer-badge svg {
  color: #7fd3f5;
  flex: 0 0 auto;
}

.footer-badge span {
  color: rgba(238, 250, 255, 0.92);
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.4;
}

/* ---- Títulos das colunas ---- */
.footer-col-title {
  align-items: center;
  color: #ffffff;
  display: flex;
  font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  gap: 0.5rem;
  letter-spacing: 0.08em;
  margin: 0 0 0.7rem;
  text-transform: uppercase;
}

.footer-col-title svg {
  color: #7fd3f5;
  flex: 0 0 auto;
}

/* ---- Lista de contato ---- */
.footer-info-list,
.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-info-list li {
  align-items: flex-start;
  color: rgba(230, 246, 255, 0.95);
  display: grid;
  font-size: 0.9rem;
  gap: 0.55rem;
  grid-template-columns: 18px 1fr;
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

.footer-info-list li svg {
  color: #7fd3f5;
  margin-top: 0.18rem;
}

.footer-info-list a {
  color: rgba(230, 246, 255, 0.95);
  text-decoration: none;
  word-break: break-word;
}

.footer-info-list a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* Endereço clicável que abre o mapa */
.footer-address-btn {
  background: transparent;
  border: 0;
  color: rgba(230, 246, 255, 0.95);
  cursor: pointer;
  display: block;
  font: inherit;
  line-height: 1.4;
  padding: 0;
  text-align: left;
  width: 100%;
}

.footer-address-btn:hover {
  color: #ffffff;
}

.footer-address-btn:hover span {
  text-decoration: underline;
}

.footer-address-hint {
  color: #7fd3f5;
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  margin-top: 0.2rem;
}

.footer-address-btn:focus-visible {
  border-radius: 6px;
  outline: 2px solid #7fd3f5;
  outline-offset: 3px;
}

/* Mapa revelado ao clicar no endereço */
.footer-map {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  margin-top: 1.2rem;
  overflow: hidden;
}

.footer-map[hidden] {
  display: none;
}

.footer-map iframe {
  border: 0;
  display: block;
  height: 300px;
  width: 100%;
}

/* ---- Links rápidos / políticas ---- */
.footer-links li {
  margin-bottom: 0.42rem;
}

.footer-links a {
  align-items: center;
  color: rgba(230, 246, 255, 0.92);
  display: inline-flex;
  font-size: 0.92rem;
  gap: 0.45rem;
  text-decoration: none;
  transition: color 0.18s ease, transform 0.18s ease;
}

.footer-links a::before {
  color: #7fd3f5;
  content: "›";
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1;
}

.footer-links a:hover {
  color: #ffffff;
  transform: translateX(2px);
}

/* ---- Redes sociais ---- */
.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: flex-start;
}

.footer-social a {
  align-items: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 12px;
  display: inline-flex;
  height: 46px;
  justify-content: center;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  width: 46px;
}

.footer-social a img {
  filter: drop-shadow(0 5px 8px rgba(0, 0, 0, 0.2));
}

.footer-social a:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

/* ---- Botão Ouvidoria ---- */
.footer-ouvidoria {
  align-items: center;
  background: rgba(127, 211, 245, 0.08);
  border: 1px solid rgba(127, 211, 245, 0.4);
  border-radius: 14px;
  color: #ffffff;
  display: flex;
  gap: 0.7rem;
  margin-top: 1.2rem;
  max-width: 18rem;
  padding: 0.75rem 0.9rem;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.footer-ouvidoria svg {
  color: #7fd3f5;
  flex: 0 0 auto;
}

.footer-ouvidoria-text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.footer-ouvidoria-text strong {
  font-size: 0.86rem;
  font-weight: 700;
}

.footer-ouvidoria-text {
  color: rgba(230, 246, 255, 0.9);
  font-size: 0.8rem;
}

.footer-ouvidoria:hover {
  background: rgba(127, 211, 245, 0.16);
  border-color: rgba(127, 211, 245, 0.65);
  transform: translateY(-2px);
}

/* ---- Barra inferior ---- */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  margin-top: 1.6rem;
  padding-top: 1.2rem;
  text-align: center;
}

.footer-bottom p {
  color: rgba(230, 246, 255, 0.82);
  font-size: 0.9rem;
  margin: 0;
}

.Xmodal-content {
  border-radius: 14px;
}

.institutional-page {
  margin-bottom: 2rem;
}

.institutional-hero {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 249, 255, 0.92) 100%);
  border: 1px solid rgba(7, 38, 64, 0.1);
  border-radius: var(--ogmo-radius);
  box-shadow: var(--ogmo-shadow);
  padding: 1.2rem 1.2rem 0.7rem;
}

.institutional-head {
  margin-bottom: 1rem;
}

.institutional-kicker {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(19, 162, 210, 0.12);
  border: 1px solid rgba(19, 162, 210, 0.25);
  color: var(--ogmo-navy);
  font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.68rem;
  text-transform: uppercase;
}

.institutional-head h2 {
  color: var(--ogmo-navy);
  font-size: clamp(1.45rem, 1.2rem + 0.9vw, 2.1rem);
  line-height: 1.2;
  margin: 0.58rem 0 0;
}

.institutional-media {
  background: #ffffff;
  border: 1px solid rgba(7, 38, 64, 0.1);
  border-radius: 14px;
  box-shadow: 0 10px 26px rgba(7, 38, 64, 0.11);
  overflow: hidden;
}

.institutional-image,
.institutional-video {
  display: block;
  width: 100%;
}

.institutional-image {
  object-fit: cover;
}

.institutional-video {
  min-height: 320px;
}

.institutional-prose {
  color: #14324d;
  font-size: 1.03rem;
  line-height: 1.72;
  word-break: break-word;
  overflow: hidden; /* clearfix p/ floats internos (ex: <img style="float:left">) */
}

.institutional-prose img {
  max-width: 100%;
  height: auto;
}

.institutional-prose img[style*="float: left"],
.institutional-prose img[style*="float:left"] {
  margin: 0.4rem 1rem 1rem 0;
}

.institutional-prose img[style*="float: right"],
.institutional-prose img[style*="float:right"] {
  margin: 0.4rem 0 1rem 1rem;
}

.institutional-prose p {
  margin-bottom: 1rem;
}

.institutional-prose h1,
.institutional-prose h2,
.institutional-prose h3,
.institutional-prose h4,
.institutional-prose h5,
.institutional-prose h6 {
  color: var(--ogmo-navy);
  margin-top: 1.35rem;
  margin-bottom: 0.75rem;
}

/* clear: as listas não devem contornar imagens flutuantes. Sem isso, quando um
   <img style="float:left"> fica logo acima da lista, apenas o primeiro <li>
   é empurrado para a direita (os demais caem abaixo do float e voltam para a
   margem), desalinhando os itens na vertical. */
.institutional-prose ul,
.institutional-prose ol {
  clear: both;
  margin-bottom: 1rem;
  padding-left: 1.3rem;
}

.institutional-prose li {
  margin-bottom: 0.25rem;
}

.institutional-prose a {
  color: #0e82ac;
  text-decoration: underline;
  text-decoration-color: rgba(14, 130, 172, 0.36);
  text-underline-offset: 0.18rem;
}

.institutional-prose a:hover {
  color: #0a5f82;
}

/* Wipe MS Word inline pollution inside prose */
.institutional-prose table,
.institutional-prose table * {
  font-family: inherit !important;
  font-size: inherit !important;
  line-height: inherit !important;
  color: inherit !important;
  background: transparent !important;
  mso-fareast-language: normal;
}

.institutional-prose table {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  display: table;
  table-layout: auto;
  border-collapse: separate !important;
  border-spacing: 0;
  border: 1px solid rgba(7, 38, 64, 0.12) !important;
  border-radius: 14px;
  overflow: hidden;
  background: #ffffff !important;
  box-shadow: 0 8px 18px rgba(7, 38, 64, 0.08);
  margin: 1.1rem 0 1.4rem;
}

.institutional-prose table tbody {
  background: #ffffff;
}

.institutional-prose table tr:first-child td,
.institutional-prose table tr:first-child th,
.institutional-prose table thead td,
.institutional-prose table thead th {
  background: linear-gradient(135deg, rgba(7, 38, 64, 0.06) 0%, rgba(19, 162, 210, 0.08) 100%) !important;
  color: var(--ogmo-navy) !important;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.institutional-prose table tbody tr:nth-child(even) td {
  background: rgba(244, 249, 255, 0.55) !important;
}

.institutional-prose table tbody tr:hover td {
  background: rgba(19, 162, 210, 0.07) !important;
}

.institutional-prose table td,
.institutional-prose table th {
  border: 0 !important;
  border-bottom: 1px solid rgba(7, 38, 64, 0.08) !important;
  padding: 0.78rem 1rem !important;
  vertical-align: top;
  word-break: break-word;
  width: auto !important;
  height: auto !important;
}

.institutional-prose table tbody tr:last-child td {
  border-bottom: 0 !important;
}

.institutional-prose table td + td,
.institutional-prose table th + th {
  border-left: 1px solid rgba(7, 38, 64, 0.08) !important;
}

.institutional-prose table p {
  margin: 0 0 0.35rem !important;
  line-height: 1.45 !important;
}
.institutional-prose table p:last-child { margin-bottom: 0 !important; }

/* Parágrafos vazios em células (lixo do MS Word) → colapsa */
.institutional-prose table p:empty,
.institutional-prose table [class^="Mso"]:empty,
.institutional-prose table [class*=" Mso"]:empty {
  display: none !important;
}
/* Parágrafos contendo só nbsp / espaço */
.institutional-prose table p > span:only-child:empty {
  display: none;
}

/* Limpa lixo do MS Word no prose em geral */
.institutional-prose [class^="Mso"],
.institutional-prose [class*=" Mso"] {
  margin: 0 0 0.65rem !important;
  font-family: inherit !important;
  font-size: inherit !important;
  line-height: 1.55 !important;
  color: inherit !important;
  background: transparent !important;
}
/* Dentro de células de tabela, parágrafos MsoNormal são compactos */
.institutional-prose table [class^="Mso"],
.institutional-prose table [class*=" Mso"] {
  margin: 0 0 0.25rem !important;
  text-align: left !important;
}
.institutional-prose table [class^="Mso"]:last-child,
.institutional-prose table [class*=" Mso"]:last-child {
  margin-bottom: 0 !important;
}

.institutional-prose span[style*="font-family"],
.institutional-prose span[style*="font-size"],
.institutional-prose span[style*="mso-"],
.institutional-prose span[lang],
.institutional-prose span[class*="Mso"] {
  font-family: inherit !important;
  font-size: inherit !important;
  line-height: inherit !important;
  color: inherit !important;
  background: transparent !important;
}

/* Mata os comentários condicionais que ficam invisíveis mas inflam altura via texto residual */
.institutional-prose xml,
.institutional-prose o\:p,
.institutional-prose w\:WordDocument,
.institutional-prose w\:LatentStyles {
  display: none !important;
}

.section-head-inline {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.section-head-inline h2,
.section-head-inline h3 {
  color: var(--ogmo-navy);
  margin: 0;
}

.section-meta {
  background: rgba(19, 162, 210, 0.1);
  border: 1px solid rgba(19, 162, 210, 0.22);
  border-radius: 999px;
  color: #095879;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.26rem 0.66rem;
}

.updates-section {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.98) 0%, rgba(240, 249, 255, 0.95) 100%);
  border: 1px solid rgba(7, 38, 64, 0.1);
  border-radius: 22px;
  box-shadow: var(--ogmo-shadow);
  margin-top: 1rem;
  padding: 1.2rem;
}

.updates-header {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.updates-header h1 {
  align-items: center;
  color: var(--ogmo-navy);
  display: flex;
  font-size: clamp(1.3rem, 1rem + 1.05vw, 2rem);
  gap: 0.55rem;
  margin: 0;
}

.updates-header img {
  filter: drop-shadow(0 8px 12px rgba(7, 38, 64, 0.2));
}

.updates-header-sub {
  color: #234766;
  font-size: 0.96rem;
  margin: 0.35rem 0 0;
}

.updates-featured-card {
  background: #ffffff;
  border: 1px solid rgba(7, 38, 64, 0.1);
  border-radius: 18px;
  box-shadow: 0 16px 30px rgba(7, 38, 64, 0.13);
  height: 100%;
  overflow: hidden;
}

/* Moldura de proporção fixa (16:9): a imagem inteira é enquadrada dentro do
   espaço do destaque, sem corte. O padding-top segura a proporção mesmo em
   navegadores sem suporte a aspect-ratio. */
.updates-featured-image-wrap {
  background: linear-gradient(160deg, #eef3f8 0%, #dce6f0 100%);
  display: block;
  overflow: hidden;
  padding-top: 56.25%;
  position: relative;
  width: 100%;
}

.updates-featured-image {
  display: block;
  height: 100%;
  left: 0;
  object-fit: contain;
  object-position: center;
  position: absolute;
  top: 0;
  width: 100%;
}

.updates-featured-date {
  background: rgba(5, 33, 57, 0.84);
  border-radius: 999px;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  left: 0.9rem;
  letter-spacing: 0.04em;
  padding: 0.34rem 0.72rem;
  position: absolute;
  top: 0.9rem;
}

.updates-featured-label {
  background: linear-gradient(135deg, #cf9d3d 0%, #e0ba6a 100%);
  border-radius: 999px;
  color: #3f2e0e;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 0.35rem 0.72rem;
  position: absolute;
  right: 0.9rem;
  text-transform: uppercase;
  top: 0.9rem;
}

.updates-featured-body {
  padding: 1rem;
}

.updates-featured-body h2 {
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.65rem);
  margin: 0 0 0.66rem;
}

.updates-featured-body h2 a {
  color: var(--ogmo-navy);
  text-decoration: none;
}

.updates-featured-body h2 a:hover {
  color: #0f80aa;
}

.updates-featured-body p {
  color: #234969;
  line-height: 1.66;
}

.updates-side-list {
  display: grid;
  gap: 0.78rem;
}

.updates-side-item {
  align-items: stretch;
  background: #e9ecef70;
  border: 1px solid rgba(7, 38, 64, 0.09);
  border-radius: 14px;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 110px 1fr;
  padding: 0.64rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.updates-side-item:hover {
  box-shadow: 0 12px 22px rgba(7, 38, 64, 0.14);
  transform: translateY(-2px);
}

.updates-side-thumb {
  border-radius: 10px;
  display: block;
  overflow: hidden;
}

.updates-side-thumb img {
  display: block;
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.updates-side-content h3 {
  font-size: 1rem;
  margin: 0.35rem 0 0.32rem;
}

.updates-side-content h3 a {
  color: var(--ogmo-navy);
  text-decoration: none;
}

.updates-side-content h3 a:hover {
  color: #0f80aa;
}

.updates-side-content p {
  color: #375875;
  font-size: 0.92rem;
  line-height: 1.45;
  margin: 0;
}

.updates-side-date {
  color: #0f7299;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.news-page,
.gallery-page {
  margin-bottom: 2rem;
}

.news-list-section {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(245, 251, 255, 0.96) 100%);
  border: 1px solid rgba(7, 38, 64, 0.1);
  border-radius: 22px;
  box-shadow: var(--ogmo-shadow);
  padding: 1.15rem;
}

.news-list-wrap {
  display: grid;
  gap: 1rem;
}

.news-row-card {
  background: #ffffff;
  border: 1px solid rgba(7, 38, 64, 0.1);
  border-radius: 16px;
  display: grid;
  gap: 0.95rem;
  grid-template-columns: 260px 1fr;
  overflow: hidden;
}

.news-row-image {
  background: #e8f2fa;
  display: block;
  height: 100%;
  min-height: 190px;
}

.news-row-image img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.news-row-content {
  padding: 1rem 1rem 1rem 0.2rem;
}

.news-row-date {
  color: #0f7299;
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 0.45rem;
  text-transform: uppercase;
}

.news-row-content h3 {
  font-size: clamp(1.1rem, 0.98rem + 0.6vw, 1.4rem);
  margin: 0 0 0.45rem;
}

.news-row-content h3 a {
  color: var(--ogmo-navy);
  text-decoration: none;
}

.news-row-content h3 a:hover {
  color: #0f80aa;
}

.news-row-content p {
  color: #2e516e;
  line-height: 1.6;
  margin-bottom: 0.72rem;
}

.news-pagination {
  margin-top: 1rem;
}

.news-pagination .pagination {
  gap: 0.28rem;
  margin-bottom: 0;
}

.news-pagination .page-link {
  border: 1px solid rgba(7, 38, 64, 0.12);
  border-radius: 10px;
  color: var(--ogmo-navy);
  font-weight: 700;
  min-width: 42px;
  text-align: center;
}

.news-pagination .page-item.active .page-link {
  background: #0f80aa;
  border-color: #0f80aa;
  color: #ffffff;
}

.news-pagination .page-item.disabled .page-link {
  opacity: 0.56;
}

.gallery-hero {
  background: linear-gradient(135deg, #05233d 0%, #0c5b82 100%);
  border-radius: 18px;
  box-shadow: 0 18px 34px rgba(6, 35, 61, 0.24);
  color: #f3fbff;
  margin-bottom: 1rem;
  overflow: hidden;
  padding: 1.2rem 1.1rem;
  position: relative;
}

.gallery-hero::after {
  background: radial-gradient(circle at top right, rgba(207, 157, 61, 0.34), transparent 52%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.gallery-hero h2,
.gallery-hero p {
  margin: 0;
  position: relative;
  z-index: 1;
}

.gallery-hero h2 {
  font-size: clamp(1.35rem, 1.1rem + 0.9vw, 2rem);
}

.gallery-hero p {
  color: rgba(243, 251, 255, 0.95);
  margin-top: 0.54rem;
  max-width: 48rem;
}

.gallery-featured-block,
.gallery-grid-block {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(246, 250, 255, 0.95) 100%);
  border: 1px solid rgba(7, 38, 64, 0.1);
  border-radius: 18px;
  box-shadow: 0 14px 28px rgba(7, 38, 64, 0.12);
  margin-bottom: 1rem;
  padding: 1rem;
}

.gallery-feature-card {
  background: #ffffff;
  border: 1px solid rgba(7, 38, 64, 0.1);
  border-radius: 14px;
  box-shadow: 0 10px 22px rgba(7, 38, 64, 0.12);
  height: 100%;
  overflow: hidden;
}

.gallery-media img,
.gallery-iframe {
  display: block;
  width: 100%;
}

.gallery-media img {
  max-height: 280px;
  object-fit: cover;
}

.gallery-iframe {
  min-height: 280px;
}

.gallery-feature-body {
  padding: 0.95rem;
}

.gallery-feature-body h4 {
  color: var(--ogmo-navy);
  margin: 0 0 0.42rem;
}

.gallery-feature-body p {
  color: #355774;
  line-height: 1.56;
  margin: 0;
}

.gallery-grid-card {
  background: #ffffff;
  border: 1px solid rgba(7, 38, 64, 0.1);
  border-radius: 14px;
  box-shadow: 0 10px 20px rgba(7, 38, 64, 0.11);
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.gallery-grid-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 32px rgba(7, 38, 64, 0.16);
}

/* Wrapper para iframe (16:9) — usado quando há urlvideo */
.gallery-video-wrap {
  background: #000;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 340px;
  overflow: hidden;
  border-radius: 14px 14px 0 0;
}
.gallery-video-wrap iframe {
  border: 0;
  display: block;
  height: 100%;
  width: 100%;
  position: absolute;
  inset: 0;
}

/* Imagem clicável (abre modal) */
.gallery-image-link {
  display: block;
  position: relative;
  overflow: hidden;
  background: #e8f2fa;
}
.gallery-image-link img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-grid-card:hover .gallery-image-link img { transform: scale(1.04); }

.gallery-image-empty {
  align-items: center;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #eaf3fb 0%, #f7fbff 100%);
  color: #6a8298;
  display: flex;
  font-size: 0.88rem;
  font-weight: 600;
  justify-content: center;
}

.gallery-grid-body {
  padding: 0.85rem 0.95rem 1rem;
}
.gallery-grid-body h4 {
  color: var(--ogmo-navy);
  font-size: 1.02rem;
  line-height: 1.35;
  margin: 0;
}

.gallery-badge {
  background: rgba(5, 33, 57, 0.85);
  border-radius: 999px;
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 700;
  left: 0.66rem;
  letter-spacing: 0.04em;
  padding: 0.28rem 0.66rem;
  position: absolute;
  text-transform: uppercase;
  top: 0.66rem;
  z-index: 2;
}

.gallery-badge-feat {
  background: linear-gradient(135deg, #cf9d3d 0%, #e0ba6a 100%);
  color: #3f2e0e;
  left: auto;
  right: 0.66rem;
}

/* Compatibilidade: se algum iframe legado vier sem wrapper */
.gallery-grid-card > iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  display: block;
}

.gallery-video-link {
  display: block;
  position: relative;
}

.gallery-pagination .page-item.active .page-link {
  background: #0b5f86;
  border-color: #0b5f86;
}

/* ============================================================
   Organograma Horizontal — Estrutura Organizacional (id=20)
   ============================================================ */
.org-container { position: relative; width: 100%; min-height: 480px; overflow-x: auto; padding: 10px 0 20px; }
.org-wrap { position: relative; min-width: 1240px; min-height: 460px; }
.org-title { position: absolute; left: 0; top: 10px; font-family: "Space Grotesk", "Trebuchet MS", sans-serif; }
.org-title span { display: block; font-size: 1.6rem; font-weight: 300; color: var(--ogmo-navy); letter-spacing: 0.04em; line-height: 1.1; }
.org-title strong { display: block; font-size: 2rem; font-weight: 800; color: var(--ogmo-navy); letter-spacing: -0.01em; }
.org-logo { position: absolute; right: 0; bottom: 0; width: 90px; opacity: 0.7; }
.ob { position: absolute; background: #ffffff; border: 2px solid #0f7299; border-radius: 8px; color: var(--ogmo-navy); font-size: 0.78rem; font-weight: 700; text-align: center; display: flex; align-items: center; justify-content: center; padding: 4px 8px; line-height: 1.2; transition: transform .2s, box-shadow .2s; cursor: default; }
.ob:hover { transform: translateY(-2px) scale(1.04); box-shadow: 0 8px 20px rgba(7, 38, 64, .18); z-index: 3; }
a.ob { text-decoration: none; cursor: pointer; }
a.ob:hover { color: var(--ogmo-navy); }
a.ob.exec:hover { color: #fff; }
.ob.exec { background: linear-gradient(135deg, #06263f, #0c5b82); color: #fff; border-color: #06263f; font-size: 0.82rem; }
.ob.dept { background: linear-gradient(135deg, #0a4264, #0f7299); color: #fff; border-color: #0a4264; }
.ob.dept:hover { box-shadow: 0 10px 24px rgba(10, 66, 100, .3); }
.ol { position: absolute; background: #0f7299; }
.ol.h { height: 2px; }
.ol.v { width: 2px; }

@media (max-width: 1199px) {
  body.site-modern {
    padding-top: 94px;
  }

  .site-nav {
    min-height: 84px;
  }

  .site-nav > .container {
    flex-wrap: wrap;
  }

  .site-nav .navbar-nav {
    align-items: stretch;
    gap: 0.38rem;
    width: 100%;
  }

  .site-nav .nav-link {
    font-size: 0.84rem;
  }

  .site-nav .navbar-brand img {
    max-width: 100%;
  }

  .site-nav .site-brand-highlight {
    flex-basis: 280px;
    transform: none;
    padding: 0;
    margin-right: 0;
    width: 280px;
  }

  /* Hamburger em tom cinza claro */
  .site-nav .navbar-toggler {
    background: #f2f4f7;
    border: 1px solid rgba(7, 38, 64, 0.14);
    border-radius: 10px;
    padding: 0.45rem 0.62rem;
    box-shadow: 0 2px 6px rgba(7, 38, 64, 0.08);
    transition: background 0.18s ease, border-color 0.18s ease;
  }
  .site-nav .navbar-toggler:hover,
  .site-nav .navbar-toggler:focus {
    background: #e8ecf1;
    border-color: rgba(7, 38, 64, 0.22);
    outline: 0;
    box-shadow: 0 0 0 3px rgba(19, 162, 210, 0.18);
  }
  .site-nav .navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='%2306263f' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
    width: 22px;
    height: 22px;
  }

  /* Menu colapsado com scroll interno — evita travar em telas pequenas */
  .site-nav .navbar-collapse {
    flex-basis: 100%;
    margin-left: 0;
    max-height: calc(100vh - 96px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    border-top: 1px solid rgba(7, 38, 64, 0.08);
    margin-top: 0.55rem;
    padding: 0.55rem 0.35rem 0.6rem;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 18px 38px rgba(7, 38, 64, 0.14);
    order: 4;
    width: 100%;
  }

  .site-nav .dropdown-menu {
    border: 0;
    box-shadow: none;
    padding-left: 0.4rem;
    margin-top: 0;
  }

  /* Dropdown institucional (mega-menu) dentro do colapso não pode estourar */
  .site-nav .mega-menu,
  .site-nav .mega-menu.show {
    position: static !important;
    float: none;
    max-height: none;
    width: 100%;
    max-width: 100%;
    transform: none !important;
    inset: auto !important;
  }
}

@media (max-width: 1199px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 1.4rem;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 991px) {
  body.site-modern {
    padding-top: 88px;
  }

  .site-nav .navbar-brand img {
    max-width: 100%;
  }

  .site-nav .site-brand-highlight {
    border-radius: 14px;
    box-shadow: none;
    flex-basis: 250px;
    margin-right: 0;
    padding: 0;
    width: 250px;
  }

  .carousel-item img {
    min-height: 210px;
  }

  /* altura continua vindo do aspect-ratio (991 x 260) */
  .home-carousel-wrap .carousel-item img {
    height: auto;
    min-height: 0;
  }

  .home-map {
    height: 220px !important;
    max-height: 220px !important;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.4rem;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-social {
    justify-content: flex-start;
  }

  .footer-shell {
    border-radius: 16px;
    padding: 1.1rem 0.95rem;
  }

  .institutional-hero {
    padding: 1rem;
  }

  .institutional-video {
    min-height: 220px;
  }

  .updates-header {
    align-items: flex-start;
  }

  .news-row-card {
    grid-template-columns: 1fr;
  }

  .news-row-image {
    min-height: 220px;
  }

  .news-row-content {
    padding: 0.95rem;
  }

  .updates-side-item {
    grid-template-columns: 96px 1fr;
  }
}

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

  .footer-brand-top {
    flex-wrap: wrap;
    gap: 0.7rem;
  }

  .footer-slogan {
    border-left: 0;
    padding-left: 0;
  }

  .updates-section,
  .news-list-section,
  .gallery-featured-block,
  .gallery-grid-block,
  .institutional-hero {
    border-radius: 14px;
    padding: 0.85rem;
  }

  .updates-header h1 {
    font-size: 1.25rem;
  }

  .updates-header img {
    width: 52px;
  }

  .updates-featured-date,
  .updates-featured-label {
    font-size: 0.66rem;
    padding: 0.25rem 0.52rem;
  }

  .updates-side-item {
    grid-template-columns: 86px 1fr;
    padding: 0.5rem;
  }

  .gallery-iframe {
    min-height: 220px;
  }
}

/* =========================================================
   2026 — Refinos: Reveal, Mega Menu, Institucional v2, Notícias v2
   ========================================================= */

/* Reveal on scroll */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  will-change: opacity, transform;
}
.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 767.98px) {
  .home-hero .reveal-on-scroll,
  .hero-section .reveal-on-scroll,
  .generic-hero.reveal-on-scroll,
  .operations-dashboard.reveal-on-scroll,
  .numbers-section.reveal-on-scroll,
  .transparency-dashboard.reveal-on-scroll,
  .safety-section.reveal-on-scroll {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Mega menu ---------- */

.site-nav .mega-menu {
  border: 1px solid rgba(7, 38, 64, 0.08);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(7, 38, 64, 0.18);
  padding: 1.1rem 1.1rem 0.6rem;
  min-width: 720px;
  max-width: calc(100vw - 32px);
  background:
    radial-gradient(circle at 0% 0%, rgba(19, 162, 210, 0.08), transparent 45%),
    radial-gradient(circle at 100% 0%, rgba(207, 157, 61, 0.08), transparent 45%),
    #ffffff;
  margin-top: 0.4rem;
  right: auto;
  left: 0;
}

.mega-menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem 1rem;
}

.mega-menu-col { padding: 0.2rem 0.2rem 0.4rem; }

.mega-menu-title {
  color: var(--ogmo-cyan);
  font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin: 0 0 0.6rem;
  padding: 0 0.4rem;
  text-transform: uppercase;
  position: relative;
}
.mega-menu-title::after {
  content: "";
  display: block;
  width: 28px;
  height: 2px;
  margin-top: 6px;
  background: linear-gradient(90deg, var(--ogmo-cyan), var(--ogmo-gold));
  border-radius: 2px;
}

.mega-menu-item {
  align-items: flex-start;
  border-radius: 12px;
  color: var(--ogmo-ink) !important;
  display: grid;
  gap: 0.7rem;
  grid-template-columns: 36px 1fr;
  padding: 0.55rem 0.6rem;
  text-decoration: none;
  transition: background 0.18s ease, transform 0.18s ease;
}
.mega-menu-item + .mega-menu-item { margin-top: 0.1rem; }

.mega-menu-item:hover,
.mega-menu-item:focus {
  background: linear-gradient(135deg, rgba(19, 162, 210, 0.10) 0%, rgba(7, 38, 64, 0.04) 100%);
  transform: translateX(2px);
  text-decoration: none;
}

.mega-menu-icon {
  align-items: center;
  background: linear-gradient(135deg, rgba(19, 162, 210, 0.16) 0%, rgba(207, 157, 61, 0.10) 100%);
  border: 1px solid rgba(19, 162, 210, 0.22);
  border-radius: 10px;
  color: var(--ogmo-navy);
  display: inline-flex;
  height: 36px;
  justify-content: center;
  width: 36px;
  flex-shrink: 0;
}

.mega-menu-text { display: flex; flex-direction: column; min-width: 0; }
.mega-menu-label {
  color: var(--ogmo-navy);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.2;
}
.mega-menu-desc {
  color: #5a7693;
  font-size: 0.74rem;
  font-weight: 500;
  margin-top: 2px;
}

.mega-menu-foot {
  align-items: center;
  border-top: 1px solid rgba(7, 38, 64, 0.08);
  color: #4a6580;
  display: flex;
  flex-wrap: wrap;
  font-size: 0.82rem;
  gap: 0.6rem;
  justify-content: space-between;
  margin-top: 0.6rem;
  padding: 0.7rem 0.4rem 0.2rem;
}
.mega-menu-cta {
  align-items: center;
  background: linear-gradient(135deg, var(--ogmo-navy) 0%, #0c5b82 100%);
  border-radius: 999px;
  color: #ffffff !important;
  display: inline-flex;
  font-weight: 700;
  font-size: 0.78rem;
  gap: 0.45rem;
  letter-spacing: 0.04em;
  padding: 0.46rem 0.95rem;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.mega-menu-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(7, 38, 64, 0.24);
  color: #ffffff !important;
  text-decoration: none;
}

/* ---------- Institucional v2 ---------- */
.institutional-hero-v2 {
  background:
    radial-gradient(circle at 90% -20%, rgba(207, 157, 61, 0.18), transparent 55%),
    radial-gradient(circle at -10% 110%, rgba(19, 162, 210, 0.18), transparent 55%),
    linear-gradient(135deg, #ffffff 0%, #f4f9ff 100%);
  padding: 1.6rem 1.4rem;
  position: relative;
  overflow: hidden;
}
.institutional-hero-shape {
  position: absolute;
  top: -60px;
  right: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(19, 162, 210, 0.18) 0%, rgba(207, 157, 61, 0.12) 100%);
  filter: blur(2px);
  pointer-events: none;
}
.institutional-hero-v2 .institutional-head { margin-bottom: 0; position: relative; }
.institutional-hero-v2 .institutional-head h2 {
  background: linear-gradient(135deg, #06263f 0%, #0f7299 60%, #cf9d3d 130%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.6rem);
  letter-spacing: -0.01em;
}
.institutional-subtitle {
  color: #4a6580;
  font-size: 0.96rem;
  margin: 0.55rem 0 0;
  max-width: 56ch;
}

.institutional-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 1.4rem;
  margin-top: 1.2rem;
  align-items: start;
}

.institutional-layout-full {
  grid-template-columns: 1fr;
}

.institutional-sidebar {
  position: sticky;
  top: 110px;
}
.institutional-sidebar-card {
  background: #ffffff;
  border: 1px solid rgba(7, 38, 64, 0.1);
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(7, 38, 64, 0.08);
  padding: 1rem 0.8rem;
}
.institutional-sidebar-title {
  color: var(--ogmo-cyan);
  font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin: 0 0 0.7rem;
  padding-left: 0.6rem;
  text-transform: uppercase;
}
.institutional-nav { display: grid; gap: 0.15rem; }
.institutional-nav-item {
  align-items: center;
  border-left: 3px solid transparent;
  border-radius: 0 10px 10px 0;
  color: #2e516e !important;
  display: flex;
  font-size: 0.9rem;
  font-weight: 600;
  gap: 0.55rem;
  padding: 0.58rem 0.7rem 0.58rem 0.6rem;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.institutional-nav-bullet {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(19, 162, 210, 0.5);
  flex-shrink: 0;
}
.institutional-nav-item:hover {
  background: rgba(19, 162, 210, 0.08);
  color: var(--ogmo-navy) !important;
  text-decoration: none;
}
.institutional-nav-item.is-active {
  background: linear-gradient(90deg, rgba(19, 162, 210, 0.16) 0%, rgba(19, 162, 210, 0) 100%);
  border-left-color: var(--ogmo-cyan);
  color: var(--ogmo-navy) !important;
}
.institutional-nav-item.is-active .institutional-nav-bullet {
  background: var(--ogmo-gold);
  box-shadow: 0 0 0 3px rgba(207, 157, 61, 0.18);
}

.institutional-content { min-width: 0; }

.institutional-content .institutional-media {
  margin-bottom: 1.2rem;
}

.institutional-prose-lead > p:first-of-type {
  color: #1c3a58;
  font-size: 1.12rem;
  font-weight: 500;
  line-height: 1.65;
}
.institutional-prose-lead h1,
.institutional-prose-lead h2,
.institutional-prose-lead h3 {
  position: relative;
  padding-left: 0.85rem;
}
.institutional-prose-lead h1::before,
.institutional-prose-lead h2::before,
.institutional-prose-lead h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  bottom: 0.35em;
  width: 4px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--ogmo-cyan), var(--ogmo-gold));
}

/* Card de contato institucional */
.institutional-contact-card {
  background:
    radial-gradient(circle at 100% 0%, rgba(207, 157, 61, 0.16), transparent 55%),
    linear-gradient(135deg, #06263f 0%, #0c4a6e 60%, #0f7299 100%);
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(6, 38, 63, 0.25);
  color: #f3fbff;
  clear: both;
  margin-top: 2.4rem;
  padding: 1.4rem 1.4rem 1.2rem;
  position: relative;
  overflow: hidden;
}
.institutional-contact-head h3 {
  color: #ffffff;
  font-size: 1.35rem;
  margin: 0.3rem 0 0.45rem;
}
.institutional-contact-head p {
  color: rgba(243, 251, 255, 0.85);
  margin: 0 0 1rem;
  max-width: 50ch;
}
.institutional-contact-kicker {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: #ffe9b8;
  display: inline-block;
  font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 0.3rem 0.7rem;
  text-transform: uppercase;
}
.institutional-contact-list {
  display: grid;
  gap: 0.55rem;
  list-style: none;
  margin: 0 0 1.05rem;
  padding: 0;
}
.institutional-contact-list li {
  align-items: center;
  color: #e6f5ff;
  display: flex;
  font-size: 0.94rem;
  gap: 0.65rem;
  line-height: 1.45;
}
.institutional-contact-list a {
  color: #ffe9b8;
  text-decoration: underline;
  text-underline-offset: 0.18rem;
}
.institutional-contact-icon {
  align-items: center;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: #ffffff;
  display: inline-flex;
  flex-shrink: 0;
  height: 34px;
  justify-content: center;
  width: 34px;
}
.institutional-contact-cta {
  align-items: center;
  background: linear-gradient(135deg, #cf9d3d 0%, #e0ba6a 100%);
  border-radius: 999px;
  color: #3f2e0e !important;
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 800;
  gap: 0.5rem;
  letter-spacing: 0.06em;
  padding: 0.62rem 1.1rem;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.institutional-contact-cta:hover {
  color: #3f2e0e !important;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(207, 157, 61, 0.34);
}

/* ---------- Organograma funcional ---------- */
.orgchart-wrapper {
  background: linear-gradient(160deg, #f4f9ff 0%, #eaf3fb 50%, #f0f6ff 100%);
  border: 1px solid rgba(7, 38, 64, 0.1);
  border-radius: 22px;
  box-shadow: 0 18px 40px rgba(7, 38, 64, 0.1);
  margin-top: 2rem;
  padding: 2rem 1.8rem 1.8rem;
  overflow-x: auto;
}
.orgchart-header {
  margin-bottom: 1.6rem;
  text-align: center;
}
.orgchart-kicker {
  background: rgba(19, 162, 210, 0.1);
  border: 1px solid rgba(19, 162, 210, 0.22);
  border-radius: 999px;
  color: #095879;
  display: inline-block;
  font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 0.28rem 0.7rem;
  text-transform: uppercase;
}
.orgchart-title {
  background: linear-gradient(135deg, #06263f 0%, #0f7299 60%, #cf9d3d 130%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2.2rem);
  margin: 0.5rem 0 0.25rem;
}
.orgchart-title span {
  font-weight: 800;
}
.orgchart-subtitle {
  color: #4a6580;
  font-size: 0.92rem;
  margin: 0;
}

.orgchart {
  display: flex;
  align-items: flex-start;
  gap: 0;
  min-width: 820px;
}

/* Governança (coluna esquerda) */
.orgchart-governance {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  padding-right: 0.4rem;
}
.orgchart-gov-connector {
  width: 2px;
  height: 14px;
  background: linear-gradient(180deg, var(--ogmo-cyan), rgba(19, 162, 210, 0.3));
}

/* Conector central (governança → departamentos) */
.orgchart-main-connector {
  width: 28px;
  min-height: 100%;
  flex-shrink: 0;
  position: relative;
  align-self: stretch;
}
.orgchart-main-connector::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--ogmo-cyan) 0%, var(--ogmo-gold) 100%);
  transform: translateX(-50%);
}

/* Nó genérico */
.orgchart-node {
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.5rem 0.7rem;
  text-align: center;
  position: relative;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  justify-content: center;
  line-height: 1.25;
}
.orgchart-node:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 10px 24px rgba(7, 38, 64, 0.18);
  z-index: 2;
}
.orgchart-node-icon {
  flex-shrink: 0;
  opacity: 0.7;
}

/* Governança nodes */
.orgchart-node[data-level="gov"] {
  background: #ffffff;
  border: 1.5px solid rgba(19, 162, 210, 0.3);
  color: var(--ogmo-navy);
  min-width: 150px;
  box-shadow: 0 4px 14px rgba(7, 38, 64, 0.08);
}
.orgchart-node[data-level="exec"] {
  background: linear-gradient(135deg, #06263f 0%, #0c5b82 100%);
  border: none;
  color: #ffffff;
  min-width: 160px;
  box-shadow: 0 8px 22px rgba(6, 38, 63, 0.3);
  font-size: 0.82rem;
}
.orgchart-node[data-level="exec"] .orgchart-node-icon {
  opacity: 1;
  color: #ffe9b8;
}

/* Departamentos */
.orgchart-departments {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
  min-width: 0;
}

.orgchart-dept-row {
  display: flex;
  align-items: center;
  gap: 0;
}

.orgchart-node-dept {
  background: linear-gradient(135deg, #0a4264 0%, #0f7299 100%);
  border: none;
  color: #ffffff;
  min-width: 155px;
  max-width: 170px;
  flex-shrink: 0;
  box-shadow: 0 6px 18px rgba(10, 66, 100, 0.25);
  font-size: 0.76rem;
}
.orgchart-node-dept .orgchart-node-icon {
  opacity: 0.9;
  color: #ffe9b8;
}
.orgchart-node-dept:hover {
  box-shadow: 0 12px 28px rgba(10, 66, 100, 0.35);
}

/* Conector dept → subs */
.orgchart-sub-connector {
  width: 20px;
  height: 2px;
  background: linear-gradient(90deg, var(--ogmo-cyan), rgba(19, 162, 210, 0.25));
  flex-shrink: 0;
}

/* Sub-departamentos */
.orgchart-subs {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  align-items: center;
}

.orgchart-node-sub {
  background: #ffffff;
  border: 1.5px solid rgba(19, 162, 210, 0.22);
  color: var(--ogmo-navy);
  font-weight: 600;
  font-size: 0.73rem;
  padding: 0.42rem 0.65rem;
  box-shadow: 0 3px 10px rgba(7, 38, 64, 0.06);
}
.orgchart-node-sub:hover {
  border-color: var(--ogmo-cyan);
  background: rgba(19, 162, 210, 0.06);
}

/* Animação de entrada */
.orgchart-dept-row {
  opacity: 0;
  transform: translateX(-16px);
  animation: orgSlideIn 0.4s ease forwards;
}
.orgchart-dept-row:nth-child(1) { animation-delay: 0.1s; }
.orgchart-dept-row:nth-child(2) { animation-delay: 0.18s; }
.orgchart-dept-row:nth-child(3) { animation-delay: 0.26s; }
.orgchart-dept-row:nth-child(4) { animation-delay: 0.34s; }
.orgchart-dept-row:nth-child(5) { animation-delay: 0.42s; }
.orgchart-dept-row:nth-child(6) { animation-delay: 0.5s; }
.orgchart-dept-row:nth-child(7) { animation-delay: 0.58s; }

@keyframes orgSlideIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Responsivo */
@media (max-width: 991px) {
  .orgchart {
    flex-direction: column;
    align-items: stretch;
    min-width: 0;
  }
  .orgchart-governance {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    padding: 0 0 0.8rem;
  }
  .orgchart-gov-connector { width: 16px; height: 2px; }
  .orgchart-main-connector {
    width: 100%;
    min-height: 0;
    height: 2px;
    margin: 0.4rem 0;
  }
  .orgchart-main-connector::before {
    left: 0;
    top: 50%;
    bottom: auto;
    width: 100%;
    height: 2px;
    transform: translateY(-50%);
  }
  .orgchart-dept-row {
    flex-wrap: wrap;
    gap: 0.4rem;
  }
  .orgchart-node-dept {
    min-width: 140px;
    max-width: none;
  }
  .orgchart-sub-connector { width: 100%; height: 0; }
  .orgchart-wrapper { padding: 1.2rem 1rem; }
}

@media (max-width: 575px) {
  .orgchart-node[data-level="gov"],
  .orgchart-node[data-level="exec"] { min-width: 120px; font-size: 0.72rem; }
  .orgchart-node-dept { font-size: 0.72rem; min-width: 120px; }
  .orgchart-node-sub { font-size: 0.68rem; }
}

/* ---------- Notícias v2 (grid de cards) ---------- */
.news-list-head {
  align-items: flex-end;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: space-between;
  margin-bottom: 1.1rem;
}
.news-kicker {
  color: var(--ogmo-cyan);
  display: block;
  font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
}
.news-list-head h2 {
  color: var(--ogmo-navy);
  font-size: clamp(1.4rem, 1.15rem + 0.95vw, 2rem);
  margin: 0;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem;
}

.news-card {
  background: #ffffff;
  border: 1px solid rgba(7, 38, 64, 0.1);
  border-radius: 16px;
  box-shadow: 0 10px 22px rgba(7, 38, 64, 0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 38px rgba(7, 38, 64, 0.16);
}

.news-card-image {
  background: #e8f2fa;
  display: block;
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
/* A imagem é redimensionada para caber inteira no card (sem cortar) */
.news-card-image img {
  display: block;
  height: 100%;
  width: 100%;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform 0.4s ease;
}
/* zoom no hover removido: recortava a imagem que agora é exibida por inteiro */
.news-card:hover .news-card-image img { transform: none; }

.news-card-date {
  background: rgba(5, 33, 57, 0.86);
  border-radius: 999px;
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 700;
  left: 0.85rem;
  letter-spacing: 0.05em;
  padding: 0.32rem 0.72rem;
  position: absolute;
  text-transform: uppercase;
  top: 0.85rem;
}

.news-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1rem 1.1rem 1.1rem;
}
.news-card-body h3 {
  font-size: 1.16rem;
  line-height: 1.3;
  margin: 0 0 0.55rem;
}
.news-card-body h3 a {
  color: var(--ogmo-navy);
  text-decoration: none;
}
.news-card-body h3 a:hover { color: #0f80aa; }
.news-card-body p {
  color: #2e516e;
  flex: 1;
  font-size: 0.94rem;
  line-height: 1.6;
  margin: 0 0 0.85rem;
}
.news-card-link {
  align-items: center;
  align-self: flex-start;
  color: var(--ogmo-cyan);
  display: inline-flex;
  font-size: 0.84rem;
  font-weight: 700;
  gap: 0.4rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
  transition: gap 0.18s ease, color 0.18s ease;
}
.news-card-link:hover {
  color: var(--ogmo-navy);
  gap: 0.6rem;
  text-decoration: none;
}

.news-pagination-info {
  color: #4a6580;
  font-size: 0.84rem;
  font-weight: 600;
  margin: 0.7rem 0 0;
  text-align: center;
}

/* Responsivo */
@media (max-width: 1199px) {
  .site-nav .mega-menu { min-width: 640px; }
}

@media (max-width: 991px) {
  .site-nav .mega-menu {
    background: #ffffff;
    border: 0;
    box-shadow: none;
    min-width: 0;
    padding: 0.4rem 0;
  }
  .mega-menu-grid { grid-template-columns: 1fr; gap: 0.2rem; }
  .mega-menu-title {
    margin-top: 0.6rem;
    border-top: 1px solid rgba(7, 38, 64, 0.08);
    padding-top: 0.6rem;
  }
  .mega-menu-col:first-child .mega-menu-title { border-top: 0; padding-top: 0; }
  .mega-menu-foot { padding: 0.7rem 0.4rem; }

  .institutional-layout {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .institutional-sidebar { position: static; }
  .institutional-sidebar-card { padding: 0.85rem 0.7rem; }
  .institutional-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
  }
  .institutional-nav-item {
    border-left: 0;
    border-radius: 999px;
    border: 1px solid rgba(7, 38, 64, 0.12);
    font-size: 0.82rem;
    padding: 0.42rem 0.85rem;
  }
  .institutional-nav-item.is-active {
    background: var(--ogmo-cyan);
    color: #ffffff !important;
    border-color: var(--ogmo-cyan);
  }
  .institutional-nav-item.is-active .institutional-nav-bullet { background: #ffffff; }
  .institutional-nav-bullet { display: none; }

  .news-grid { grid-template-columns: 1fr; }
}

@media (max-width: 575px) {
  .institutional-hero-v2 { padding: 1.1rem 0.95rem; }
  .institutional-contact-card { padding: 1.1rem 1rem 1rem; }
  .news-card-image { aspect-ratio: 4 / 3; }
}

/* ---------- Mini mega-menu (dropdowns estilizados) ---------- */

.site-nav .mini-mega {
  border: 1px solid rgba(7, 38, 64, 0.08);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(7, 38, 64, 0.18);
  padding: 0.9rem 1rem 0.6rem;
  min-width: 340px;
  max-width: calc(100vw - 32px);
  background:
    radial-gradient(circle at 0% 0%, rgba(19, 162, 210, 0.08), transparent 45%),
    radial-gradient(circle at 100% 0%, rgba(207, 157, 61, 0.08), transparent 45%),
    #ffffff;
  margin-top: 0.4rem;
  right: auto;
  left: 0;
}
.mini-mega-grid {
  display: grid;
  gap: 0.25rem;
}
.mini-mega-title {
  color: var(--ogmo-cyan);
  font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin: 0 0 0.45rem;
  padding: 0 0.4rem;
  text-transform: uppercase;
  position: relative;
}
.mini-mega-title::after {
  content: "";
  display: block;
  width: 24px;
  height: 2px;
  margin-top: 5px;
  background: linear-gradient(90deg, var(--ogmo-cyan), var(--ogmo-gold));
  border-radius: 2px;
}
.mini-mega-item {
  align-items: center;
  border-radius: 12px;
  color: var(--ogmo-ink) !important;
  display: grid;
  gap: 0.65rem;
  grid-template-columns: 34px 1fr;
  padding: 0.5rem 0.55rem;
  text-decoration: none;
  transition: background 0.18s ease, transform 0.18s ease;
}
.mini-mega-item:hover,
.mini-mega-item:focus {
  background: linear-gradient(135deg, rgba(19, 162, 210, 0.10) 0%, rgba(7, 38, 64, 0.04) 100%);
  transform: translateX(2px);
  text-decoration: none;
  color: var(--ogmo-ink) !important;
}
.mini-mega-icon {
  align-items: center;
  background: linear-gradient(135deg, rgba(19, 162, 210, 0.16) 0%, rgba(207, 157, 61, 0.10) 100%);
  border: 1px solid rgba(19, 162, 210, 0.22);
  border-radius: 10px;
  color: var(--ogmo-navy);
  display: inline-flex;
  height: 34px;
  justify-content: center;
  width: 34px;
  flex-shrink: 0;
}
.mini-mega-text { display: flex; flex-direction: column; min-width: 0; }
.mini-mega-label {
  color: var(--ogmo-navy);
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.2;
}
.mini-mega-desc {
  color: #5a7693;
  font-size: 0.72rem;
  font-weight: 500;
  margin-top: 1px;
}
.mini-mega-divider {
  border: 0;
  border-top: 1px solid rgba(7, 38, 64, 0.08);
  margin: 0.35rem 0.4rem;
}
@media (max-width: 991px) {
  .site-nav .mini-mega {
    background: #ffffff;
    border: 0;
    box-shadow: none;
    min-width: 0;
    padding: 0.4rem 0;
  }
  .mini-mega-title {
    margin-top: 0.4rem;
    border-top: 1px solid rgba(7, 38, 64, 0.08);
    padding-top: 0.5rem;
  }
}

/* Menu mobile no tema escuro: painel escuro + textos claros (legibilidade) */
@media (max-width: 991px) {
  .theme-dark .site-nav .navbar-collapse {
    background: #0d2235;
    border-top-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.45);
  }

  .theme-dark .site-nav .mega-menu,
  .theme-dark .site-nav .mini-mega {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: none;
  }

  .theme-dark .site-nav .mega-menu-item,
  .theme-dark .site-nav .mini-mega-item,
  .theme-dark .site-nav .dropdown-item {
    color: #edf7ff !important;
  }

  .theme-dark .site-nav .mega-menu-label,
  .theme-dark .site-nav .mini-mega-label {
    color: #edf7ff;
  }

  .theme-dark .site-nav .mega-menu-desc,
  .theme-dark .site-nav .mini-mega-desc {
    color: #bdd0e2;
  }

  .theme-dark .site-nav .mega-menu-item:hover,
  .theme-dark .site-nav .mega-menu-item:focus,
  .theme-dark .site-nav .mini-mega-item:hover,
  .theme-dark .site-nav .mini-mega-item:focus,
  .theme-dark .site-nav .dropdown-item:hover {
    background: rgba(19, 162, 210, 0.18);
    color: #ffffff !important;
  }

  .theme-dark .site-nav .mega-menu-foot {
    border-top-color: rgba(255, 255, 255, 0.12);
    color: #bdd0e2;
  }

  .theme-dark .site-nav .mini-mega-title,
  .theme-dark .site-nav .mini-mega-divider,
  .theme-dark .site-nav .mega-menu-title {
    border-top-color: rgba(255, 255, 255, 0.12);
  }

  /* Botão hamburger legível sobre a barra escura */
  .theme-dark .site-nav .navbar-toggler {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
  }

  .theme-dark .site-nav .navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='%23edf7ff' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
  }
}

/* ---------- Página genérica modernizada ---------- */
.generic-page { margin-bottom: 2rem; }

.generic-hero {
  background:
    radial-gradient(circle at 90% -20%, rgba(207, 157, 61, 0.18), transparent 55%),
    radial-gradient(circle at -10% 110%, rgba(19, 162, 210, 0.18), transparent 55%),
    linear-gradient(135deg, #ffffff 0%, #f4f9ff 100%);
  border-radius: 18px;
  padding: 1.6rem 1.4rem;
  position: relative;
  overflow: hidden;
  margin-bottom: 1.4rem;
}
.generic-hero-shape {
  position: absolute;
  top: -60px;
  right: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(19, 162, 210, 0.18) 0%, rgba(207, 157, 61, 0.12) 100%);
  filter: blur(2px);
  pointer-events: none;
}
.generic-hero .generic-head { position: relative; }
.generic-kicker {
  background: rgba(19, 162, 210, 0.1);
  border: 1px solid rgba(19, 162, 210, 0.22);
  border-radius: 999px;
  color: #095879;
  display: inline-block;
  font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 0.28rem 0.7rem;
  text-transform: uppercase;
}
.generic-hero h2 {
  background: linear-gradient(135deg, #06263f 0%, #0f7299 60%, #cf9d3d 130%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.6rem);
  letter-spacing: -0.01em;
  margin: 0.5rem 0 0;
}
.generic-subtitle {
  color: #4a6580;
  font-size: 0.96rem;
  margin: 0.55rem 0 0;
  max-width: 56ch;
}

.generic-content-card {
  background: #ffffff;
  border: 1px solid rgba(7, 38, 64, 0.1);
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(7, 38, 64, 0.08);
  padding: 1.6rem 1.6rem 1.4rem;
}
.generic-content-card .generic-prose { line-height: 1.7; color: #1c3a58; }
.generic-content-card .generic-prose img {
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(7, 38, 64, 0.12);
  max-width: 100%;
}
.generic-content-card .generic-prose iframe {
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(7, 38, 64, 0.12);
  max-width: 100%;
}
.generic-media {
  margin-bottom: 1.2rem;
}
.generic-media img {
  border-radius: 14px;
  box-shadow: 0 10px 26px rgba(7, 38, 64, 0.12);
  max-width: 100%;
  height: auto;
}
.generic-media iframe {
  border-radius: 14px;
  box-shadow: 0 10px 26px rgba(7, 38, 64, 0.12);
  width: 100%;
  max-width: 560px;
  aspect-ratio: 16/9;
}

/* Editais list modernizada */
.edital-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.55rem; }
.edital-item {
  align-items: center;
  background: linear-gradient(135deg, rgba(245, 248, 252, 1) 0%, rgba(240, 249, 255, 0.8) 100%);
  border: 1px solid rgba(7, 38, 64, 0.09);
  border-radius: 12px;
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.edital-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(7, 38, 64, 0.1);
}
.edital-icon {
  align-items: center;
  background: linear-gradient(135deg, rgba(19, 162, 210, 0.16) 0%, rgba(207, 157, 61, 0.10) 100%);
  border: 1px solid rgba(19, 162, 210, 0.22);
  border-radius: 10px;
  color: var(--ogmo-navy);
  display: inline-flex;
  flex-shrink: 0;
  height: 38px;
  justify-content: center;
  width: 38px;
}
.edital-info { flex: 1; min-width: 0; }
.edital-info a {
  color: var(--ogmo-navy);
  font-weight: 700;
  font-size: 0.94rem;
  text-decoration: none;
}
.edital-info a:hover { color: var(--ogmo-cyan); }
.edital-info p {
  color: #4a6580;
  font-size: 0.84rem;
  line-height: 1.45;
  margin: 0.2rem 0 0;
}
.edital-empty {
  text-align: center;
  color: #4a6580;
  padding: 2rem;
  font-size: 0.95rem;
}

/* Estatística (PowerBI) wrapper */
.stat-frame-wrapper {
  background: linear-gradient(135deg, #06263f 0%, #0c4a6e 50%, #0f7299 100%);
  border-radius: 18px;
  padding: 0.5rem;
  box-shadow: 0 18px 40px rgba(6, 38, 63, 0.25);
  position: relative;
  overflow: hidden;
}
.stat-frame-wrapper::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 18%, rgba(207, 157, 61, 0.2) 0%, transparent 35%),
    radial-gradient(circle at 100% 90%, rgba(19, 162, 210, 0.25) 0%, transparent 45%);
  pointer-events: none;
}
.stat-frame-wrapper iframe {
  border-radius: 14px;
  display: block;
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 800px;
  border: 0;
  background: #ffffff;
}
.stat-frame-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 0.8rem 0.3rem;
  position: relative;
  z-index: 1;
}
.stat-frame-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.stat-frame-dot.red { background: #ff5f57; }
.stat-frame-dot.yellow { background: #febc2e; }
.stat-frame-dot.green { background: #28c840; }
.stat-frame-title {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.78rem;
  font-weight: 600;
  margin-left: 0.4rem;
}

@media (max-width: 575px) {
  .generic-hero { padding: 1.1rem 0.95rem; border-radius: 14px; }
  .generic-content-card { padding: 1.1rem 1rem 1rem; }
  .stat-frame-wrapper iframe { min-height: 500px; }
}

/* =========================================================
   Contato — redesign 2026 (split-card)
   ========================================================= */
.contato-page { margin-bottom: 2rem; }

/* Card composto: 2 painéis colados */
.contato-card {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  background: #ffffff;
  border-radius: 26px;
  box-shadow: 0 30px 70px rgba(6, 38, 63, 0.22);
  overflow: hidden;
  margin-bottom: 1.6rem;
  min-height: 640px;
  position: relative;
}

/* PAINEL ESQUERDO — escuro */
.contato-aside {
  background: linear-gradient(160deg, #03192d 0%, #06263f 35%, #0a4264 75%, #0f7299 130%);
  color: #f3fbff;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 2.2rem 1.9rem 1.9rem;
  position: relative;
  overflow: hidden;
}


.contato-aside-bg {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 15% 18%, rgba(207, 157, 61, 0.25) 0%, transparent 35%),
    radial-gradient(circle at 110% 90%, rgba(19, 162, 210, 0.32) 0%, transparent 45%);
  pointer-events: none;
}
.contato-aside-glow {
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  right: -130px;
  top: -120px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.07) 0%, transparent 70%);
  pointer-events: none;
}

.contato-aside > * { position: relative; z-index: 1; }

.contato-aside-top {
  margin: 0 0 1.5rem;
  text-align: center;
  flex: 0 0 auto;
}

.contato-brasao {
  align-self: center;
  display: block;
  width: min(220px, 62%);
  height: auto;
  margin: 0 auto 1.2rem;
  filter: drop-shadow(0 18px 34px rgba(0, 0, 0, 0.45));
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.03) 100%);
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
  flex: 0 0 auto;
}

.contato-aside-top .contato-kicker { margin: 0 auto; }
.contato-aside-top .contato-title { text-align: center; }
.contato-aside-top .contato-lead { margin-left: auto; margin-right: auto; }

.contato-kicker {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: #ffe9b8;
  display: inline-block;
  font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  padding: 0.34rem 0.82rem;
  text-transform: uppercase;
}

.contato-title {
  color: #ffffff;
  font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
  font-size: clamp(2.2rem, 1.6rem + 2.2vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.02;
  margin: 1rem 0 0.95rem;
}
.contato-title span {
  background: linear-gradient(135deg, #ffe9b8 0%, #cf9d3d 60%, #f7d68e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: italic;
}

.contato-lead {
  color: rgba(243, 251, 255, 0.84);
  font-size: 0.99rem;
  line-height: 1.62;
  margin: 0;
  max-width: 28rem;
}

/* Lista de canais */
.contato-channels {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  list-style: none;
  margin: 0 0 1.6rem;
  padding: 0;
}
.contato-channels li {
  align-items: flex-start;
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 42px 1fr;
}
.contato-channel-icon {
  align-items: center;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  color: #ffe9b8;
  display: inline-flex;
  height: 42px;
  justify-content: center;
  width: 42px;
  flex-shrink: 0;
}
.contato-channel-label {
  color: rgba(255, 233, 184, 0.78);
  display: block;
  font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin-bottom: 0.18rem;
  text-transform: uppercase;
}
.contato-channel-value {
  color: #f3fbff;
  display: block;
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.42;
  word-break: break-word;
}
.contato-channel-link {
  text-decoration: underline;
  text-decoration-color: rgba(255, 233, 184, 0.45);
  text-underline-offset: 0.18rem;
}
.contato-channel-link:hover {
  color: #ffe9b8;
  text-decoration-color: #ffe9b8;
}

/* Rodapé do painel esquerdo: redes sociais */
.contato-aside-bottom {
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 0.95rem;
  justify-content: space-between;
  margin-top: 1.2rem;
  padding-top: 1.05rem;
  flex: 0 0 auto;
}
.contato-aside-bottom-label {
  color: rgba(255, 233, 184, 0.85);
  font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.contato-social { display: flex; gap: 0.45rem; }
.contato-social a {
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  color: #ffffff;
  display: inline-flex;
  height: 38px;
  justify-content: center;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
  width: 38px;
}
.contato-social a:hover {
  background: linear-gradient(135deg, #cf9d3d 0%, #e0ba6a 100%);
  border-color: #cf9d3d;
  color: #03192d;
  transform: translateY(-2px);
}

/* PAINEL DIREITO — formulário */
.contato-form-panel {
  background: #ffffff;
  padding: 2.2rem 2rem 1.9rem;
  position: relative;
}

.contato-form-head { margin-bottom: 1.4rem; }
.contato-form-kicker {
  color: var(--ogmo-cyan);
  display: block;
  font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  margin-bottom: 0.32rem;
  text-transform: uppercase;
}
.contato-form-head h3 {
  color: var(--ogmo-navy);
  font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
  font-size: clamp(1.5rem, 1.2rem + 0.9vw, 2rem);
  letter-spacing: -0.01em;
  margin: 0 0 0.5rem;
}
.contato-form-head p {
  color: #4a6580;
  font-size: 0.96rem;
  margin: 0;
}

.contato-form { display: flex; flex-direction: column; gap: 1rem; }

.contato-field { position: relative; display: flex; flex-direction: column; }
.contato-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Inputs base */
.contato-page .form-control {
  background: #f7fbfe;
  border: 1.5px solid rgba(7, 38, 64, 0.1);
  border-radius: 14px;
  color: var(--ogmo-navy);
  font-size: 0.98rem;
  padding: 1.05rem 1rem 0.55rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  height: auto;
  width: 100%;
}
.contato-page .form-control:focus {
  background: #ffffff;
  border-color: var(--ogmo-cyan);
  box-shadow: 0 0 0 4px rgba(19, 162, 210, 0.15);
  outline: 0;
}

/* Floating labels */
.contato-field-floating { position: relative; }
.contato-field-floating > label {
  color: #6a8298;
  font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  left: 1.05rem;
  pointer-events: none;
  position: absolute;
  top: 1.05rem;
  transition: all 0.16s ease;
  background: transparent;
}
.contato-field-floating > .form-control:focus + label,
.contato-field-floating > .form-control:not(:placeholder-shown) + label {
  color: var(--ogmo-cyan);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  top: 0.36rem;
}

.contato-field-textarea > .form-control {
  min-height: 130px;
  padding-top: 1.4rem;
  resize: none;
}
.contato-field-textarea > label { top: 1.1rem; }
.contato-field-textarea > .form-control:focus + label,
.contato-field-textarea > .form-control:not(:placeholder-shown) + label {
  top: 0.5rem;
}

/* Select com label fora */
.contato-field-select { display: flex; flex-direction: column; }
.contato-field-label {
  color: var(--ogmo-navy);
  font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin: 0 0 0.4rem 0.2rem;
  text-transform: uppercase;
}
.contato-page select.form-control {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2306263f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding: 0.85rem 2.4rem 0.85rem 1rem;
}

/* File input customizado */
.contato-field-file { position: relative; }
.contato-file-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
  z-index: 2;
}
.contato-file-label {
  align-items: center;
  background: #f7fbfe;
  border: 1.5px dashed rgba(7, 38, 64, 0.18);
  border-radius: 14px;
  color: var(--ogmo-navy);
  cursor: pointer;
  display: flex;
  gap: 0.85rem;
  margin: 0;
  padding: 0.85rem 1rem;
  transition: border-color 0.18s ease, background 0.18s ease;
}
.contato-field-file:hover .contato-file-label {
  background: #f1f8fd;
  border-color: var(--ogmo-cyan);
}
.contato-file-icon {
  align-items: center;
  background: linear-gradient(135deg, rgba(19, 162, 210, 0.16) 0%, rgba(207, 157, 61, 0.12) 100%);
  border-radius: 10px;
  color: var(--ogmo-navy);
  display: inline-flex;
  height: 38px;
  justify-content: center;
  width: 38px;
  flex-shrink: 0;
}
.contato-file-text { display: flex; flex-direction: column; min-width: 0; }
.contato-file-text strong {
  color: var(--ogmo-navy);
  font-size: 0.92rem;
  font-weight: 700;
  word-break: break-word;
}
.contato-file-text small {
  color: #6a8298;
  font-size: 0.78rem;
  margin-top: 0.12rem;
}

.contato-page .help-block {
  color: #c83b3b;
  font-size: 0.82rem;
  margin: 0.3rem 0 0 0.2rem;
}

/* Botão de envio */
.contato-submit {
  align-items: center;
  align-self: flex-start;
  background: linear-gradient(135deg, #06263f 0%, #0c5b82 60%, #0f7299 100%);
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
  font-size: 0.94rem;
  font-weight: 700;
  gap: 0.85rem;
  letter-spacing: 0.06em;
  margin-top: 0.5rem;
  padding: 0.95rem 1.05rem 0.95rem 1.6rem;
  text-transform: uppercase;
  transition: transform 0.2s ease, box-shadow 0.2s ease, gap 0.2s ease;
  position: relative;
}
.contato-submit-arrow {
  align-items: center;
  background: linear-gradient(135deg, #cf9d3d 0%, #e0ba6a 100%);
  border-radius: 50%;
  color: #03192d;
  display: inline-flex;
  height: 36px;
  justify-content: center;
  width: 36px;
  transition: transform 0.25s ease;
}
.contato-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 32px rgba(6, 38, 63, 0.32);
  gap: 1.05rem;
}
.contato-submit:hover .contato-submit-arrow { transform: rotate(-12deg) scale(1.05); }
.contato-submit:active { transform: translateY(0); }

/* Mapa abaixo */
.contato-map-section {
  margin-bottom: 2rem;
  width: 100%;
}
.contato-map-card {
  background: #ffffff;
  border: 1px solid rgba(7, 38, 64, 0.1);
  border-radius: 22px;
  box-shadow: 0 22px 44px rgba(7, 38, 64, 0.14);
  max-width: 100%;
  overflow: hidden;
  width: 100%;
}
.contato-map {
  border: 0;
  display: block;
  height: 240px !important;
  max-height: 240px !important;
  max-width: 100%;
  width: 100% !important;
}

@media (max-width: 991px) {
  .contato-card {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .contato-aside { padding: 1.7rem 1.4rem 1.4rem; }
  .contato-form-panel { padding: 1.7rem 1.4rem 1.4rem; }
  .contato-title { font-size: clamp(2rem, 1.5rem + 1.8vw, 2.6rem); }
  .contato-map {
    height: 220px !important;
    max-height: 220px !important;
  }
}

@media (max-width: 575px) {
  body.site-modern {
    padding-top: 84px;
  }

  .site-nav {
    min-height: 76px;
  }

  .site-nav .navbar-brand img {
    max-width: 100%;
  }

  .site-nav .site-brand-highlight {
    flex-basis: 215px;
    padding: 0;
    width: 215px;
  }

  .contato-card { border-radius: 20px; }
  .contato-aside { padding: 1.4rem 1.1rem 1.2rem; }
  .contato-form-panel { padding: 1.4rem 1.1rem 1.2rem; }
  .contato-field-row { grid-template-columns: 1fr; }
  .contato-aside-bottom { flex-direction: column; align-items: flex-start; gap: 0.7rem; }
  .contato-channels li { grid-template-columns: 36px 1fr; gap: 0.7rem; }
  .contato-channel-icon { width: 36px; height: 36px; }
  .contato-submit { width: 100%; justify-content: space-between; }
  .home-carousel-wrap .carousel-item img { height: auto; }
  .home-map {
    height: 200px !important;
    max-height: 200px !important;
  }
  .contato-map {
    height: 200px !important;
    max-height: 200px !important;
  }
}

/* ===== OGMO 2026 - melhorias home/PWA/UX ===== */
.section-kicker{display:inline-flex;align-items:center;gap:.4rem;color:var(--ogmo-cyan);font-weight:800;letter-spacing:.08em;text-transform:uppercase;font-size:.78rem}.section-heading-row{align-items:flex-end;display:flex;gap:1rem;justify-content:space-between;margin:2.2rem 0 1rem}.section-heading-row h2{color:var(--ogmo-navy);font-size:2rem;font-weight:800;margin:.2rem 0}.section-heading-row p{color:#607080;margin:0}.data-badge,.outline-link{border:1px solid rgba(19,162,210,.3);border-radius:999px;color:var(--ogmo-navy);font-weight:800;padding:.55rem .9rem;text-decoration:none}.outline-link:hover{background:rgba(19,162,210,.1);text-decoration:none}.home-quick-actions{display:grid;gap:1rem;grid-template-columns:1.25fr 1fr;margin-top:-.35rem}.quick-card,.home-search-card,.metric-card,.chart-card,.safety-card,.numbers-panel{background:rgba(255,255,255,.92);border:1px solid rgba(7,38,64,.08);border-radius:var(--ogmo-radius);box-shadow:var(--ogmo-shadow)}.quick-card{padding:1.4rem}.quick-card-primary{background:linear-gradient(135deg,rgba(7,38,64,.98),rgba(19,162,210,.92));color:#fff}.quick-card h2{font-size:1.45rem;font-weight:800;margin:.15rem 0 .35rem}.quick-eyebrow{font-weight:800;letter-spacing:.08em;text-transform:uppercase;font-size:.75rem;opacity:.8}.quick-links{display:flex;flex-wrap:wrap;gap:.55rem;margin-top:1rem}.quick-links a{background:#fff;border-radius:999px;color:var(--ogmo-navy);font-weight:800;padding:.52rem .85rem;text-decoration:none}.quick-card:not(.quick-card-primary) .quick-links a{background:rgba(19,162,210,.1)}.home-search-section{margin-top:1.2rem}.home-search-card{align-items:center;display:grid;gap:1rem;grid-template-columns:1fr 1.15fr;padding:1.45rem}.home-search-form{background:#f3f7fb;border:1px solid rgba(7,38,64,.08);border-radius:999px;display:flex;gap:.5rem;padding:.4rem}.home-search-form input{background:transparent;border:0;flex:1;font-size:1rem;outline:0;padding:.65rem 1rem}.home-search-form button{background:linear-gradient(135deg,var(--ogmo-cyan),var(--ogmo-navy));border:0;border-radius:999px;color:#fff;font-weight:800;padding:.65rem 1.1rem}.search-suggestions{grid-column:1/-1;display:flex;gap:.5rem;flex-wrap:wrap}.search-suggestions a{color:var(--ogmo-navy);font-weight:700;text-decoration:none}.metric-grid{display:grid;gap:1rem;grid-template-columns:repeat(4,1fr)}.metric-card{overflow:hidden;padding:1.25rem;position:relative}.metric-card:before{background:linear-gradient(180deg,var(--ogmo-cyan),var(--ogmo-gold));content:"";height:100%;left:0;position:absolute;top:0;width:5px}.metric-card span{color:#607080;font-weight:800}.metric-card strong{color:var(--ogmo-navy);display:block;font-size:2.4rem;line-height:1;margin:.45rem 0}.metric-card small{color:#778899;font-weight:700}.numbers-panel{align-items:center;background:linear-gradient(135deg,#072640,#0d4c72 65%,#13a2d2);color:#fff;display:grid;gap:1rem;grid-template-columns:1fr 1.4fr;margin-top:1.5rem;padding:1.6rem}.numbers-panel .section-kicker{color:#bfefff}.numbers-copy h2{font-size:2rem;font-weight:800}.numbers-grid{display:grid;gap:.85rem;grid-template-columns:repeat(2,1fr)}.numbers-grid div{background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.18);border-radius:16px;padding:1rem;text-align:center}.numbers-grid strong{display:block;font-size:2rem}.numbers-grid span{font-weight:700;opacity:.9}.chart-grid{display:grid;gap:1rem;grid-template-columns:1fr 1fr}.chart-card{padding:1.2rem}.chart-card h3{font-size:1.15rem;font-weight:800}.ogmo-chart{display:block;width:100%}.safety-card{align-items:center;background:linear-gradient(135deg,#fff,#f3faff);display:grid;gap:1.5rem;grid-template-columns:1fr 1.2fr;margin:1.6rem 0;padding:1.6rem}.safety-card h2{color:var(--ogmo-navy);font-size:2rem;font-weight:800}.safety-stats{display:grid;gap:.85rem;grid-template-columns:repeat(2,1fr)}.safety-stats div{align-items:center;background:#fff;border:1px solid rgba(7,38,64,.08);border-radius:16px;display:flex;flex-direction:column;justify-content:center;padding:1rem;text-align:center}.safety-stats strong{color:var(--ogmo-cyan);display:block;font-size:2rem;line-height:1}.safety-stats span{color:#607080;font-weight:700}.theme-toggle{align-items:center;background:var(--ogmo-navy);border:0;border-radius:999px;bottom:22px;box-shadow:var(--ogmo-shadow);color:#fff;display:flex;font-size:1.2rem;height:48px;justify-content:center;position:fixed;right:22px;width:48px;z-index:9999}.footer-hours,.footer-shortcuts{margin:.2rem 0}.footer-shortcuts a{color:inherit;font-weight:700}.theme-dark{--ogmo-paper:#071928;--ogmo-card:#0d2235;--ogmo-ink:#edf7ff;background:linear-gradient(180deg,#051421,#071b2b 40%,#0b2033 100%)!important;color:#edf7ff}.theme-dark .site-nav,.theme-dark .quick-card:not(.quick-card-primary),.theme-dark .home-search-card,.theme-dark .metric-card,.theme-dark .chart-card,.theme-dark .safety-card{background:rgba(13,34,53,.96)!important;border-color:rgba(255,255,255,.08)}.theme-dark h1,.theme-dark h2,.theme-dark h3,.theme-dark .metric-card strong,.theme-dark .site-nav .nav-link,.theme-dark .outline-link,.theme-dark .data-badge{color:#edf7ff!important}.theme-dark p,.theme-dark .metric-card span,.theme-dark .section-heading-row p,.theme-dark .safety-stats span{color:#bdd0e2}.theme-dark .home-search-form{background:#071928}.theme-dark .home-search-form input{color:#fff}.theme-dark .safety-stats div{background:#071928;border-color:rgba(255,255,255,.08)}
@media (max-width:991px){.home-quick-actions,.home-search-card,.numbers-panel,.chart-grid,.safety-card{grid-template-columns:1fr}.metric-grid,.numbers-grid,.safety-stats{grid-template-columns:repeat(2,1fr)}.section-heading-row{align-items:flex-start;flex-direction:column}.home-search-form{border-radius:18px;flex-direction:column}.home-search-form button{border-radius:14px}}@media (max-width:575px){.metric-grid,.numbers-grid,.safety-stats{grid-template-columns:1fr}.numbers-copy h2,.safety-card h2,.section-heading-row h2{font-size:1.55rem}.theme-toggle{bottom:14px;right:14px}}

.quick-links a.quick-icon-link {
  align-items: center;
  display: inline-flex;
  gap: 0.45rem;
}

.quick-links a.quick-icon-link svg {
  flex: 0 0 auto;
  height: 18px !important;
  max-height: 18px !important;
  max-width: 18px !important;
  min-height: 18px !important;
  min-width: 18px !important;
  width: 18px !important;
}

.quick-whatsapp-icon {
  color: #168a45;
}

.contact-card {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  justify-content: center;
  min-height: 100%;
  text-align: center;
}

.contact-card p {
  margin: 0.25rem auto 0.35rem;
  max-width: 19rem;
}

.contact-card .quick-links {
  justify-content: center;
  margin-top: 0.45rem;
}

.contact-card .quick-icon-link {
  justify-content: center;
  min-width: 8.4rem;
}

.after-updates-actions {
  margin-bottom: 1.2rem;
  margin-top: 1rem;
}

.metric-card-detail {
  overflow: visible;
  z-index: 1;
}

.operations-dashboard {
  overflow: visible;
  position: relative;
  z-index: 80;
}

.operations-dashboard .metric-grid {
  overflow: visible;
}

.numbers-section {
  position: relative;
  z-index: 1;
}

.metric-card-detail:hover,
.metric-card-detail:focus-within,
.metric-card-detail.is-open {
  z-index: 60;
}

.metric-card-button {
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  display: block;
  padding: 0;
  text-align: left;
  width: 100%;
}

.metric-card-button:focus {
  outline: 0;
}

.metric-card-button:focus-visible {
  border-radius: 10px;
  outline: 3px solid rgba(19, 162, 210, 0.32);
  outline-offset: 5px;
}

.metric-detail-popover {
  background: #ffffff;
  border: 1px solid rgba(7, 38, 64, 0.12);
  border-radius: 14px;
  box-shadow: 0 18px 42px rgba(7, 38, 64, 0.2);
  left: 0.9rem;
  max-height: 270px;
  opacity: 0;
  overflow: auto;
  padding: 0.85rem;
  pointer-events: none;
  position: absolute;
  right: 0.9rem;
  top: calc(100% - 0.15rem);
  transform: translateY(8px);
  transition: opacity 0.16s ease, transform 0.16s ease;
  z-index: 999;
}

.metric-card-detail:hover .metric-detail-popover,
.metric-card-detail:focus-within .metric-detail-popover,
.metric-card-detail.is-open .metric-detail-popover {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.metric-detail-popover h4 {
  color: var(--ogmo-navy);
  font-size: 0.9rem;
  font-weight: 800;
  margin: 0 0 0.55rem;
}

.metric-detail-list {
  display: grid;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.metric-detail-list li {
  background: rgba(19, 162, 210, 0.08);
  border-radius: 9px;
  color: var(--ogmo-navy);
  font-size: 0.86rem;
  font-weight: 700;
  padding: 0.45rem 0.55rem;
}

.metric-category-list li {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.metric-category-list strong {
  color: var(--ogmo-cyan);
  font-size: 1rem;
  margin: 0;
}

.metric-empty {
  color: #607080;
  font-size: 0.86rem;
  margin: 0;
}

.theme-dark .metric-detail-popover {
  background: #0d2235;
  border-color: rgba(255, 255, 255, 0.12);
}

.theme-dark .metric-detail-popover h4,
.theme-dark .metric-detail-list li {
  color: #edf7ff;
}

.theme-dark .metric-detail-list li {
  background: rgba(19, 162, 210, 0.16);
}

/* ===== OGMO 2026 - ajustes tema escuro (logo / atualizações / busca + atendimento) ===== */

/* 1) Logo no menu: fundo branco com cantos arredondados no tema escuro */
.theme-dark .site-nav .site-brand-highlight {
  background: #ffffff;
  border-radius: 14px;
  padding: 6px 14px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

/* 2) Últimas atualizações: aplicar tema escuro (destaques mantêm o fundo atual) */
.theme-dark .updates-section {
  background: linear-gradient(160deg, rgba(13, 34, 53, 0.96) 0%, rgba(7, 27, 43, 0.96) 100%);
  border-color: rgba(255, 255, 255, 0.08);
}

.theme-dark .updates-featured-card {
  background: #0d2235;
  border-color: rgba(255, 255, 255, 0.08);
}

.theme-dark .updates-featured-image-wrap {
  background: linear-gradient(160deg, #0f2a41 0%, #0a1f33 100%);
}

.theme-dark .updates-side-item {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
}

.theme-dark .updates-header h1,
.theme-dark .updates-featured-body h2 a,
.theme-dark .updates-side-content h3 a {
  color: #edf7ff;
}

.theme-dark .updates-header-sub,
.theme-dark .updates-featured-body p,
.theme-dark .updates-side-content p {
  color: #bdd0e2;
}

/* 3) Busca global e Atendimento: textos em fonte clara e botões claros */
.theme-dark .quick-search-card h2,
.theme-dark .contact-card h2 {
  color: #edf7ff;
}

.theme-dark .quick-search-card p,
.theme-dark .contact-card p,
.theme-dark .contact-card .quick-eyebrow {
  color: #bdd0e2;
}

.theme-dark .quick-search-card .search-suggestions a {
  color: #bfefff;
}

.theme-dark .quick-search-card .home-search-form button,
.theme-dark .contact-card .quick-links a {
  background: #edf7ff;
  color: var(--ogmo-navy);
}

.theme-dark .quick-search-card .home-search-form button:hover,
.theme-dark .contact-card .quick-links a:hover {
  background: #ffffff;
}

/* ===== PWA - botão "Instalar app" (mobile) ===== */
.pwa-install-btn {
  align-items: center;
  background: linear-gradient(135deg, var(--ogmo-cyan), var(--ogmo-navy));
  border: 0;
  border-radius: 999px;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 12px 26px rgba(7, 38, 64, 0.32);
  color: #ffffff;
  display: inline-flex;
  font-size: 0.88rem;
  font-weight: 800;
  gap: 0.42rem;
  left: calc(14px + env(safe-area-inset-left, 0px));
  line-height: 1;
  max-width: calc(100vw - 110px);
  padding: 0.68rem 1rem;
  position: fixed;
  white-space: nowrap;
  z-index: 9998;
}

.pwa-install-btn span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.pwa-install-btn svg {
  flex: 0 0 auto;
}

.pwa-install-btn:active {
  transform: translateY(1px);
}

.pwa-ios-hint {
  background: #ffffff;
  border: 1px solid rgba(7, 38, 64, 0.15);
  border-radius: 14px;
  bottom: calc(78px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 18px 42px rgba(7, 38, 64, 0.28);
  color: var(--ogmo-navy);
  left: 16px;
  margin: 0 auto;
  max-width: 360px;
  padding: 0.9rem 2rem 0.9rem 1rem;
  position: fixed;
  right: 16px;
  z-index: 10000;
}

.pwa-ios-hint strong {
  display: block;
  font-size: 0.98rem;
  margin-bottom: 0.25rem;
}

.pwa-ios-hint p {
  font-size: 0.88rem;
  line-height: 1.4;
  margin: 0;
}

.pwa-ios-hint-close {
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
  position: absolute;
  right: 0.55rem;
  top: 0.45rem;
}

.theme-dark .pwa-ios-hint {
  background: #0d2235;
  border-color: rgba(255, 255, 255, 0.14);
  color: #edf7ff;
}
