.nr-header { position: relative; z-index: 100; background: #fff; font-family: Montserrat, sans-serif; box-shadow: 0 2px 4px rgba(0, 0, 0, .05), 0 8px 24px rgba(0, 0, 0, .10); }
.nr-header-top { max-width: 1030px; margin: auto; padding: 22px 10px 14px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nr-logo { display: block; flex-shrink: 0; }
.nr-logo img { display: block; width: 225px; height: auto; }
.nr-social { display: flex; align-items: center; gap: 18px; }
.nr-header .nr-social a { color: #676767; font-size: 22px; display: flex; width: 33px; min-height: 44px; align-items: center; justify-content: center; text-decoration: none; }
.nr-header .nr-social a:hover { color: #c00205; }
.nr-navigation { max-width: 1030px; margin: auto; padding: 0 10px 16px; }
.nr-header ul { list-style: none; margin: 0; padding: 0; }
.nr-menu { display: flex; justify-content: space-between; align-items: center; gap: 0; }
.nr-menu > li { position: relative; }
.nr-menu > li + li { margin: 0 0 0 38px; }
.nr-menu > li + li::before { content: ''; position: absolute; left: -35px; top: 15px; height: 15px; width: 1px; background: #ddd; }
.nr-header .nr-menu a { display: block; color: #3f4142; text-decoration: none; font-size: 15px; font-weight: 400; line-height: 20px; white-space: nowrap; }
.nr-menu > li > a, .nr-cards-heading { padding: 14px 0; }
.nr-header .nr-menu a[aria-current="page"] { color: #ffae00; }
.nr-header .nr-menu a:hover, .nr-header .nr-cards:hover .nr-cards-heading > a, .nr-header .nr-cards:hover .nr-cards-heading > button { color: #c00205; }
.nr-menu > li > a::after, .nr-cards-heading::after { content: ''; position: absolute; height: 4px; bottom: 0; left: 0; right: 0; background: #ffae00; transform: scaleX(0); transition: transform .18s ease; }
.nr-menu > li > a[aria-current="page"]::after, .nr-menu > li:hover > a::after, .nr-menu > li:focus-within > a::after, .nr-cards:hover .nr-cards-heading::after, .nr-cards:focus-within .nr-cards-heading::after { transform: scaleX(1); }
.nr-menu > li:hover > a::after, .nr-cards:hover .nr-cards-heading::after { background: #c00205; }
.nr-cards-heading { display: flex; align-items: center; }
.nr-header button { border: 0; border-radius: 0; cursor: pointer; box-shadow: none; }
.nr-cards-heading button { padding: 0 4px; background: transparent; color: #3f4142; font-size: 20px; line-height: 20px; }
.nr-header .nr-submenu { position: absolute; top: 100%; left: 0; min-width: 158px; background: #c00205; border-radius: 4px 4px 0 0; overflow: hidden; box-shadow: 0 6px 18px #0002; padding: 0; }
.nr-header .nr-submenu[hidden] { display: none; }
.nr-header .nr-submenu a { padding: 10px 16px; color: #fff; font-size: 12px; font-weight: 600; line-height: 17px; text-align: center; }
.nr-header .nr-submenu a:hover, .nr-header .nr-submenu a:focus-visible { background: #edc500; color: #fff; }
.nr-header .nr-cards:has(.nr-submenu:not([hidden])) .nr-cards-heading > a { color: #ffae00; }
.nr-header .nr-cards:has(.nr-submenu:not([hidden])) .nr-cards-heading::after { background: #ffae00; transform: scaleX(1); }
.nr-header .nr-cards:has(.nr-submenu:not([hidden])) .nr-cards-heading > button { color: #c00205; }
.nr-header a:focus-visible, .nr-header button:focus-visible { outline: 3px solid #ffae00; outline-offset: 4px; }
.nr-header .nr-menu-toggle { display: none; background: #c00205; color: #fff; min-width: 44px; min-height: 44px; font-size: 25px; padding: 4px; }
@media (max-width: 1100px) and (min-width: 1025px) {
    .nr-header .nr-menu a { font-size: 15px; }
}
@media (max-width: 1024px) {
    .nr-header-top { padding: 14px 20px; flex-wrap: nowrap; gap: 12px; }
    .nr-logo img { width: 220px; }
    .nr-social { margin-left: auto; }
    .nr-header .nr-menu-toggle { display: block; }
    .nr-navigation { display: none; padding: 0; background: #c00205; }
    .nr-navigation.is-open { display: block; }
    .nr-menu { display: block; }
    .nr-menu > li + li { margin: 0; }
    .nr-header .nr-menu > li > a:hover, .nr-header .nr-cards:hover .nr-cards-heading { background: #fff; }
    .nr-menu > li + li::before { display: none; }
    .nr-header .nr-menu > li > a, .nr-cards-heading { padding: 15px 24px; }
    .nr-header .nr-menu a, .nr-cards-heading button { color: #fff; }
    .nr-cards-heading { justify-content: space-between; }
    .nr-cards-heading button { min-width: 44px; min-height: 30px; }
    .nr-menu > li > a[aria-current="page"]::after { width: 4px; height: 100%; right: auto; }
    .nr-header .nr-submenu { position: static; box-shadow: none; background: #a50003; }
    .nr-header .nr-submenu a { padding-left: 24px; text-align: left; }
}
@media (max-width: 520px) {
    .nr-header-top { padding: 12px; display: grid; grid-template-columns: 1fr 44px; gap: 4px 12px; }
    .nr-logo { grid-column: 1; grid-row: 1; }
    .nr-logo img { width: 175px; }
    .nr-social { grid-column: 1; grid-row: 2; margin: 0; gap: 8px; justify-content: flex-start; flex-wrap: nowrap; }
    .nr-header .nr-social a { font-size: 18px; width: 32px; min-height: 32px; }
    .nr-header .nr-menu-toggle { grid-column: 2; grid-row: 1 / 3; }
}
.nr-header.is-compact { position: fixed; top: 0; left: 0; right: 0; box-shadow: 0 3px 6px rgba(0, 0, 0, .07), 0 10px 28px rgba(0, 0, 0, .14); }
.nr-header.is-compact .nr-header-top { padding: 8px 16px; flex-wrap: nowrap; display: flex; }
.nr-header.is-compact .nr-logo img { width: 170px; }
.nr-header.is-compact .nr-social { margin-left: auto; }
.nr-header.is-compact .nr-menu-toggle { display: block; }
.nr-header.is-compact .nr-navigation { display: none; position: absolute; right: max(16px, calc((100% - 1030px) / 2)); width: 300px; max-width: calc(100% - 24px); max-height: calc(100dvh - 70px); overflow-y: auto; padding: 0; background: #c00205; box-shadow: 0 8px 18px #0002; }
.nr-header.is-compact .nr-navigation.is-open { display: block; }
.nr-header.is-compact .nr-menu { display: block; }
.nr-header.is-compact .nr-menu > li + li { margin: 0; }
.nr-header.is-compact .nr-menu > li + li::before { display: none; }
.nr-header.is-compact .nr-menu > li > a, .nr-header.is-compact .nr-cards-heading { padding: 14px 20px; }
.nr-header.is-compact .nr-menu a, .nr-header.is-compact .nr-cards-heading button { color: #fff; }
.nr-header.is-compact .nr-menu a[aria-current] { color: #ffae00; }
.nr-header.is-compact .nr-menu > li > a:hover, .nr-header.is-compact .nr-cards:hover .nr-cards-heading { color: #c00205; background: #fff; }
.nr-header.is-compact .nr-cards-heading { justify-content: space-between; }
.nr-header.is-compact .nr-submenu { position: static; box-shadow: none; background: #a50003; }
.nr-header.is-compact .nr-submenu a:hover, .nr-header.is-compact .nr-submenu a:focus-visible { background: #edc500; color: #fff; }
@media (max-width: 520px) {
    .nr-header.is-compact .nr-social { display: none; }
    .nr-header.is-compact .nr-menu-toggle { margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) { .nr-header *::after { transition: none; } }

/* A página atual mantém o destaque, inclusive durante o hover. */
.nr-header .nr-menu > li > a[aria-current="page"]:hover,
.nr-header.is-compact .nr-menu > li > a[aria-current="page"]:hover {
    color: #ffae00;
    background: transparent;
}
.nr-menu > li:hover > a[aria-current="page"]::after { background: #ffae00; }
.nr-header .nr-cards:has(a[aria-current="page"]) .nr-cards-heading > a { color: #ffae00; }
.nr-header .nr-cards:has(a[aria-current="page"]) .nr-cards-heading::after { background: #ffae00; transform: scaleX(1); }
.nr-cards-heading button::after { content: ''; display: inline-block; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); vertical-align: 4px; }

/* O cabeçalho permanece fixo e interpola suas dimensões sem desaparecer. */
.nr-header.is-ready {
    position: fixed; top: 0; left: 0; right: 0;
    height: var(--nr-expanded-height);
    transition: height .48s cubic-bezier(.22, 1, .36, 1), box-shadow .48s ease;
}
.nr-header.is-ready.is-compact { height: var(--nr-compact-height); }
.nr-header.is-ready .nr-header-top { transition: padding .48s cubic-bezier(.22, 1, .36, 1); }
.nr-header.is-ready .nr-logo img { transition: width .48s cubic-bezier(.22, 1, .36, 1); }
.nr-header.is-ready .nr-menu-toggle { transition: opacity .3s ease, visibility .3s ease; }
.nr-header.is-measuring { height: auto !important; }
.nr-header.is-measuring, .nr-header.is-measuring * { transition: none !important; animation: none !important; }
@media (min-width: 1025px) {
    .nr-header.is-ready:not(.is-compact) .nr-menu-toggle { display: block; position: absolute; right: 16px; top: 8px; opacity: 0; visibility: hidden; pointer-events: none; }
}
@media (max-width: 1024px) {
    .nr-header.is-ready:not(.is-compact) .nr-navigation {
        position: absolute; top: 100%; left: 0; right: 0;
        max-height: calc(100dvh - var(--nr-expanded-height)); overflow-y: auto;
    }
}
@keyframes nr-menu-reveal {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}
.nr-header .nr-navigation.is-open, .nr-header .nr-submenu:not([hidden]) { animation: nr-menu-reveal .24s ease-out; }
@media (prefers-reduced-motion: reduce) {
    .nr-header, .nr-header *, .nr-header *::after { animation: none !important; transition: none !important; }
}
