header.masthead { padding:6px 0; background:#fff; border-bottom:1px solid var(--sa-line,#e5e7eb); }
header.masthead .navbar-header { display:flex; align-items:center; }
header.masthead .navbar-brand { display:flex; align-items:center; gap:10px; margin:0; padding:0;
  font-size:18px; font-weight:700; color:var(--sa-ink,#111827); white-space:normal; }
header.masthead .navbar-brand img.img-responsive { height:48px; width:auto; }
header.masthead .navbar-brand .vcenter { padding:0; line-height:1.25; }
header.masthead .navbar-brand small { font-size:12px; font-weight:500; color:var(--sa-muted,#6b7280); line-height:1.3; }
header.masthead .nav-link { font-size:13px; font-weight:600; padding:6px 10px; margin:0 2px 0 0; border-radius:8px;
  color:var(--sa-muted,#4b5563); }
header.masthead .nav-link:hover, header.masthead .nav-link:focus, header.masthead .nav-link.active {
  background:var(--sa-tint,#eef2ff); color:var(--sa-primary,#1d4ed8); text-decoration:none; }
@media (max-width:767.98px) {
  header.masthead .navbar-header { justify-content:center; }
  header.masthead .navbar-brand { justify-content:center; text-align:center; font-size:16px; }
  header.masthead .navbar-brand img.img-responsive { height:40px; }
}

/* ajuste v2: submenus do menu do modulo (subnav) */
header.masthead .dropdown-menu{border:0;border-radius:10px;padding:6px;min-width:210px;max-height:70vh;overflow-y:auto;box-shadow:0 12px 28px rgba(15,23,42,.18)}
header.masthead .dropdown-item{padding:0;border-radius:6px;background:transparent}
header.masthead .dropdown-item>a{display:block;padding:7px 12px;border-radius:6px;font-size:13px;font-weight:500;color:var(--sa-ink,#1f2937);text-decoration:none}
header.masthead .dropdown-item:hover,header.masthead .dropdown-item:focus-within,header.masthead .dropdown-item.active{background:var(--sa-tint,#eef2ff)}
header.masthead .dropdown-item:hover>a,header.masthead .dropdown-item.active>a{color:var(--sa-primary,#1d4ed8)}
header.masthead .show>.nav-link{background:var(--sa-tint,#eef2ff);color:var(--sa-primary,#1d4ed8)}
