/* GMSE multipage navigation: each navigation item opens a dedicated URL. */
body[data-page="home"] main > section:not(#inicio) { display: none !important; }
body[data-page="institucional"] main > section:not(#o-gmse) { display: none !important; }
body[data-page="acervo"] main > section:not(#acervo) { display: none !important; }
body[data-page="atividades"] main > section:not(#atividades) { display: none !important; }
body[data-page="pesquisa"] main > section:not(#pesquisa) { display: none !important; }
body[data-page="conservacao"] main > section:not(#conservacao) { display: none !important; }
body[data-page="galeria"] main > section:not(#galeria) { display: none !important; }
body[data-page="publicacoes"] main > section:not(#noticias):not(#biblioteca) { display: none !important; }
body[data-page="contato"] main > section:not(#contato) { display: none !important; }

/* On inner pages, give the selected content comfortable space below the fixed-feeling header. */
body:not([data-page="home"]) main > section:not(#acesso) {
  min-height: calc(100vh - 82px);
}
body:not([data-page="home"]) main > section.section-pad:first-child,
body:not([data-page="home"]) main > section:not(#inicio) {
  scroll-margin-top: 82px;
}
body[data-page="home"] .hero {
  min-height: calc(100vh - 82px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
body[data-page="home"] .hero-grid { width: 100%; }
body:not([data-page="home"]) #acesso { display: none !important; }

.main-nav a[aria-current="page"]:not(.nav-member) {
  color: #a8d3ad;
  position: relative;
}
.main-nav a[aria-current="page"]:not(.nav-member)::after {
  content: "";
  display: block;
  position: absolute;
  height: 2px;
  left: 0;
  right: 0;
  bottom: -8px;
  background: #8bbd94;
}
@media (max-width: 900px) {
  body[data-page="home"] .hero { min-height: calc(100vh - 72px); }
  body:not([data-page="home"]) main > section:not(#acesso) { min-height: 0; }
  .main-nav a[aria-current="page"]:not(.nav-member)::after { bottom: -3px; }
}
