
body.institutional header.cabecalho-v3 { position: sticky; top: 0; z-index: 20; background: #fff; }
.cabecalho-v3 .header-inner { display: grid; grid-template-columns: auto minmax(0,1fr) auto; grid-template-areas: "brand nav cta"; gap: .5rem 1rem; padding-block: .43rem; }
.cabecalho-v3 .brand { grid-area: brand; margin: 0; }
.cabecalho-v3 #navigation { grid-area: nav; display: flex; flex-wrap: nowrap; align-items: center; justify-content: center; gap: .4rem .84rem; width: auto; margin: 0; padding: 0; }
.cabecalho-v3 #navigation a { white-space: nowrap; font-size: .9rem; }
.cabecalho-v3 #navigation a[aria-current=page], .rodape-v3 a[aria-current=page] { text-decoration: underline; text-underline-offset: .35rem; text-decoration-thickness: 2px; }
.cabecalho-v3 #menu-button { grid-area: toggle; display: none; margin: 0; min-height: 44px; }
body.institutional .cabecalho-v3 .whatsapp { grid-area: cta; display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 44px; color: #fff; background: #14713e; border-color: #14713e; padding: .35rem .65rem; margin: 0; white-space: nowrap; }
body.institutional .cabecalho-v3 .whatsapp:hover { background: #105a32; }
.cabecalho-v3 .cta-compacto { display: none; }
.cabecalho-v3 :is(a,button):focus-visible { outline: 3px solid #086477; outline-offset: 3px; }
.rodape-v3 { display: flex; align-items: center; flex-wrap: wrap; gap: .38rem 1rem; }
.rodape-v3 a { display: inline-flex; align-items: center; min-height: 32px; }
@media (max-width: 73.99rem) {
  .cabecalho-v3 .header-inner { grid-template-columns: minmax(0,1fr) auto auto; grid-template-areas: "brand toggle cta" "nav nav nav"; gap: 0 .55rem; }
  .cabecalho-v3-ready .cabecalho-v3 #menu-button { display: inline-flex; align-items: center; justify-content: center; }
  .cabecalho-v3-ready .cabecalho-v3 #menu-button[aria-expanded=false] + #navigation { display: none; }
  .cabecalho-v3 #navigation { flex-direction: column; align-items: stretch; max-height: min(65dvh, 26rem); overflow-y: auto; margin-top: .35rem; gap: 0; }
  .cabecalho-v3 #navigation a { display: flex; align-items: center; min-height: 44px; padding: .2rem .5rem; white-space: normal; }
  .cabecalho-v3 .cta-completo { display: none; }
  .cabecalho-v3 .cta-compacto { display: inline; }
}
@media (max-width: 25rem) {
  .cabecalho-v3 .header-inner { column-gap: .34rem; }
  .cabecalho-v3 .brand img { width: 100px; }
  body.institutional .cabecalho-v3 .whatsapp { padding-inline: .42rem; }
  .cabecalho-v3 .whatsapp svg { display: none; }
}
@media (max-width: 52rem) {
  .rodape-v3 { align-items: flex-start; flex-direction: column; }
}
