.nova-menu {
--nova-menu-color: var(--e-global-color-primary);
--nova-menu-color-hover: var(--e-global-color-secondary);
--nova-menu-gap: 28px;
--nova-menu-submenu-bg: var(--e-global-color-blanco);
--nova-menu-panel-bg: var(--e-global-color-crema);
--nova-menu-border: var(--e-global-color-borde);
--nova-menu-toggle: var(--e-global-color-primary);
--nova-menu-active-line: var(--e-global-color-accent);
color: var(--nova-menu-color);
}
.nova-menu ul {
list-style: none;
margin: 0;
padding: 0;
}
.nova-menu a {
color: var(--nova-menu-color);
text-decoration: none;
transition: color 0.15s ease;
}
.nova-menu a:focus-visible,
.nova-menu .current-menu-item > a,
.nova-menu .current-menu-ancestor > a {
color: var(--nova-menu-color-hover);
}
@media (hover: hover) {
.nova-menu a:hover {
color: var(--nova-menu-color-hover);
}
} .nova-menu .nova-menu__toggle,
.nova-menu .nova-menu__close,
.nova-menu .nova-menu__sub-toggle,
.nova-menu .nova-menu__toggle:hover,
.nova-menu .nova-menu__close:hover,
.nova-menu .nova-menu__sub-toggle:hover,
.nova-menu .nova-menu__toggle:focus,
.nova-menu .nova-menu__close:focus,
.nova-menu .nova-menu__sub-toggle:focus {
min-height: 0;
padding: 0;
border: 0;
border-radius: 999px;
background: transparent;
box-shadow: none;
color: inherit; transition: background-color 0.15s ease;
} .nova-menu .nova-menu__toggle:focus-visible,
.nova-menu .nova-menu__close:focus-visible,
.nova-menu .nova-menu__sub-toggle:focus-visible {
outline: var(--nova-focus-outline, 3px solid var(--e-global-color-accent));
outline-offset: 2px;
box-shadow: var(--nova-focus-ring, 0 0 0 7px var(--e-global-color-primary));
}
.nova-menu .nova-menu__cta {
transition: background-color 0.15s ease, color 0.15s ease;
}
.nova-menu .nova-menu__sub-toggle:focus-visible {
background: var(--nova-menu-border);
}
@media (hover: hover) {
.nova-menu .nova-menu__sub-toggle:hover,
.nova-menu .nova-menu__close:hover,
.nova-menu .nova-menu__toggle:hover {
background: var(--nova-menu-border);
}
}
.nova-menu button {
display: inline-flex;
align-items: center;
justify-content: center;
padding: 0;
margin: 0;
border: 0;
background: none;
color: inherit;
cursor: pointer;
font: inherit;
} .nova-menu--vertical .nova-menu__list {
display: flex;
flex-direction: column;
gap: calc(var(--nova-menu-gap) / 2.5);
} .nova-menu--horizontal .nova-menu__list {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: var(--nova-menu-justify, center);
gap: 8px var(--nova-menu-gap);
} @media (min-width: 1025px) and (max-width: 1180px) {
.nova-menu--horizontal .nova-menu__list {
column-gap: calc(var(--nova-menu-gap) * 0.7);
}
}
.nova-menu--horizontal .nova-menu__list > li {
position: relative;
display: flex;
align-items: center;
gap: 4px;
}
.nova-menu--horizontal .nova-menu__list > li > a {
display: inline-block;
padding: 8px 0;
}
.nova-menu__sub-toggle {
width: 28px;
height: 28px;
border-radius: 999px;
}
.nova-menu__sub-toggle svg {
transition: transform 0.15s ease;
}
.nova-menu .nova-menu__sub-toggle[aria-expanded="true"] svg {
transform: rotate(180deg);
}
.nova-menu--horizontal .sub-menu {
position: absolute;
top: 100%;
left: -16px;
z-index: 20;
min-width: 260px;
padding: 10px;
border: 1px solid var(--nova-menu-border);
border-radius: 16px;
background: var(--nova-menu-submenu-bg);
box-shadow: 0 16px 40px color-mix(in srgb, var(--e-global-color-primary) 12%, transparent);
opacity: 0;
visibility: hidden;
transform: translateY(6px);
transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}
.nova-menu--horizontal .menu-item-has-children:focus-within > .sub-menu,
.nova-menu--horizontal .menu-item-has-children.is-open > .sub-menu {
opacity: 1;
visibility: visible;
transform: none;
}
@media (hover: hover) {
.nova-menu--horizontal .menu-item-has-children:hover > .sub-menu {
opacity: 1;
visibility: visible;
transform: none;
}
}
.nova-menu--horizontal .sub-menu a {
display: block;
padding: 10px 12px;
border-radius: 10px;
font-weight: 500;
}
.nova-menu--horizontal .sub-menu a:focus-visible {
background: var(--nova-menu-panel-bg);
}
@media (hover: hover) {
.nova-menu--horizontal .sub-menu a:hover {
background: var(--nova-menu-panel-bg);
}
} .nova-menu--horizontal .sub-menu > li {
position: relative;
display: flex;
align-items: center;
gap: 4px;
}
.nova-menu--horizontal .sub-menu > li > a {
flex: 1;
white-space: nowrap;
}
.nova-menu--horizontal .sub-menu .sub-menu {
top: -11px;
left: calc(100% + 6px);
min-width: 200px;
transform: translateX(-6px);
}
.nova-menu--horizontal .sub-menu .nova-menu__sub-toggle svg {
transform: rotate(-90deg);
}
.nova-menu--horizontal .sub-menu .nova-menu__sub-toggle[aria-expanded="true"] svg {
transform: rotate(90deg);
} .nova-menu--horizontal .nova-menu__list > .current-menu-item > a,
.nova-menu--horizontal .nova-menu__list > .current-menu-ancestor > a,
.nova-menu--horizontal .nova-menu__list > .current-menu-parent > a,
.nova-menu--horizontal .sub-menu .current-menu-item > a {
text-decoration: underline;
text-decoration-color: var(--nova-menu-active-line);
text-decoration-thickness: 2px;
text-underline-offset: 6px;
}
.nova-menu--vertical .current-menu-item > a {
font-weight: 700;
} .nova-menu__toggle,
.nova-menu__close,
.nova-menu__cta,
.nova-menu__wa,
.nova-menu__overlay {
display: none !important;
} @media (max-width: 1024px) {
.nova-menu--bp-tablet .nova-menu__toggle {
display: inline-flex !important;
}
}
@media (max-width: 767px) {
.nova-menu--bp-mobile .nova-menu__toggle {
display: inline-flex !important;
}
}
@media (max-width: 1024px) {
.nova-menu--bp-tablet .nova-menu__toggle,
.nova-menu--bp-tablet .nova-menu__close {
width: 48px;
height: 48px;
color: var(--nova-menu-toggle);
}
.nova-menu--bp-tablet .nova-menu__panel {
position: fixed;
inset: 0 0 0 auto;
z-index: 1000;
display: flex;
flex-direction: column;
gap: 8px;
width: min(88vw, 380px);
padding: 12px 20px calc(24px + env(safe-area-inset-bottom));
overflow-y: auto;
overscroll-behavior: contain;
background: var(--nova-menu-panel-bg);
box-shadow: -16px 0 40px color-mix(in srgb, var(--e-global-color-primary) 16%, transparent);
visibility: hidden;
transform: translateX(100%);
transition: transform 0.25s ease, visibility 0.25s;
}
.nova-menu--bp-tablet.is-open .nova-menu__panel {
visibility: visible;
transform: none;
}
.nova-menu--bp-tablet .nova-menu__overlay {
position: fixed;
inset: 0;
z-index: 999;
display: block !important;
background: color-mix(in srgb, var(--e-global-color-primary) 40%, transparent);
opacity: 0;
visibility: hidden;
transition: opacity 0.25s ease, visibility 0.25s;
}
.nova-menu--bp-tablet.is-open .nova-menu__overlay {
opacity: 1;
visibility: visible;
}
.nova-menu--bp-tablet .nova-menu__close {
display: inline-flex !important;
align-self: flex-end;
}
.nova-menu--bp-tablet .nova-menu__list {
flex-direction: column;
align-items: stretch;
flex-wrap: nowrap;
gap: 0;
}
.nova-menu--bp-tablet .nova-menu__list > li {
flex-wrap: wrap;
justify-content: space-between;
border-bottom: 1px solid var(--nova-menu-border);
}
.nova-menu--bp-tablet .nova-menu__list > li > a {
flex: 1;
min-height: 56px;
display: flex;
align-items: center;
padding: 0;
}
.nova-menu--bp-tablet .nova-menu__sub-toggle {
width: 48px;
height: 48px;
}
.nova-menu--bp-tablet .sub-menu {
position: static;
flex-basis: 100%;
display: none;
min-width: 0;
padding: 0 0 12px 12px;
border: 0;
box-shadow: none;
background: none;
opacity: 1;
visibility: visible;
transform: none;
}
.nova-menu--bp-tablet .menu-item-has-children.is-open > .sub-menu {
display: block;
}
.nova-menu--bp-tablet .sub-menu a {
min-height: 48px;
display: flex;
align-items: center;
}
.nova-menu--bp-tablet .nova-menu__list .current-menu-item > a,
.nova-menu--bp-tablet .nova-menu__list .current-menu-ancestor > a {
padding-left: 12px;
box-shadow: inset 3px 0 0 var(--nova-menu-active-line);
font-weight: 700;
text-decoration: none;
}
.nova-menu--bp-tablet .nova-menu__wa {
display: inline-flex !important;
align-items: center;
justify-content: center;
gap: 10px;
min-height: 52px;
border: 1.5px solid var(--nova-menu-color);
border-radius: 999px;
font-weight: 700;
}
.nova-menu--bp-tablet .nova-menu__cta {
display: inline-flex !important;
justify-content: center;
align-items: center;
width: 100%;
min-height: 52px;
margin-top: 16px;
}
}
@media (max-width: 767px) {
.nova-menu--bp-mobile .nova-menu__toggle,
.nova-menu--bp-mobile .nova-menu__close {
width: 48px;
height: 48px;
color: var(--nova-menu-toggle);
}
.nova-menu--bp-mobile .nova-menu__panel {
position: fixed;
inset: 0 0 0 auto;
z-index: 1000;
display: flex;
flex-direction: column;
gap: 8px;
width: min(88vw, 380px);
padding: 12px 20px calc(24px + env(safe-area-inset-bottom));
overflow-y: auto;
overscroll-behavior: contain;
background: var(--nova-menu-panel-bg);
box-shadow: -16px 0 40px color-mix(in srgb, var(--e-global-color-primary) 16%, transparent);
visibility: hidden;
transform: translateX(100%);
transition: transform 0.25s ease, visibility 0.25s;
}
.nova-menu--bp-mobile.is-open .nova-menu__panel {
visibility: visible;
transform: none;
}
.nova-menu--bp-mobile .nova-menu__overlay {
position: fixed;
inset: 0;
z-index: 999;
display: block !important;
background: color-mix(in srgb, var(--e-global-color-primary) 40%, transparent);
opacity: 0;
visibility: hidden;
transition: opacity 0.25s ease, visibility 0.25s;
}
.nova-menu--bp-mobile.is-open .nova-menu__overlay {
opacity: 1;
visibility: visible;
}
.nova-menu--bp-mobile .nova-menu__close {
display: inline-flex !important;
align-self: flex-end;
}
.nova-menu--bp-mobile .nova-menu__list {
flex-direction: column;
align-items: stretch;
flex-wrap: nowrap;
gap: 0;
}
.nova-menu--bp-mobile .nova-menu__list > li {
flex-wrap: wrap;
justify-content: space-between;
border-bottom: 1px solid var(--nova-menu-border);
}
.nova-menu--bp-mobile .nova-menu__list > li > a {
flex: 1;
min-height: 56px;
display: flex;
align-items: center;
padding: 0;
}
.nova-menu--bp-mobile .sub-menu {
position: static;
flex-basis: 100%;
display: none;
min-width: 0;
padding: 0 0 12px 12px;
border: 0;
box-shadow: none;
background: none;
opacity: 1;
visibility: visible;
transform: none;
}
.nova-menu--bp-mobile .menu-item-has-children.is-open > .sub-menu {
display: block;
}
.nova-menu--bp-mobile .nova-menu__list .current-menu-item > a,
.nova-menu--bp-mobile .nova-menu__list .current-menu-ancestor > a {
padding-left: 12px;
box-shadow: inset 3px 0 0 var(--nova-menu-active-line);
font-weight: 700;
text-decoration: none;
}
.nova-menu--bp-mobile .nova-menu__wa {
display: inline-flex !important;
align-items: center;
justify-content: center;
gap: 10px;
min-height: 52px;
border: 1.5px solid var(--nova-menu-color);
border-radius: 999px;
font-weight: 700;
}
.nova-menu--bp-mobile .nova-menu__cta {
display: inline-flex !important;
justify-content: center;
align-items: center;
width: 100%;
min-height: 52px;
margin-top: 16px;
}
} @media (max-width: 1024px) {
.nova-menu--bp-tablet .sub-menu > li {
flex-wrap: wrap;
justify-content: space-between;
}
.nova-menu--bp-tablet .sub-menu > li > a {
flex: 1;
}
.nova-menu--bp-tablet .sub-menu .sub-menu {
left: auto;
padding-bottom: 4px;
}
.nova-menu--bp-tablet .sub-menu .nova-menu__sub-toggle svg {
transform: none;
}
.nova-menu--bp-tablet .sub-menu .nova-menu__sub-toggle[aria-expanded="true"] svg {
transform: rotate(180deg);
}
}
@media (max-width: 767px) {
.nova-menu--bp-mobile .sub-menu > li {
flex-wrap: wrap;
justify-content: space-between;
}
.nova-menu--bp-mobile .sub-menu > li > a {
flex: 1;
}
.nova-menu--bp-mobile .sub-menu .sub-menu {
left: auto;
padding-bottom: 4px;
}
.nova-menu--bp-mobile .sub-menu .nova-menu__sub-toggle svg {
transform: none;
}
.nova-menu--bp-mobile .sub-menu .nova-menu__sub-toggle[aria-expanded="true"] svg {
transform: rotate(180deg);
}
} .nova-menu.is-open .nova-menu__panel {
transition: transform 0.25s ease, visibility 0s;
}
body.nova-menu-open {
overflow: hidden;
}
@media (prefers-reduced-motion: reduce) {
.nova-menu *,
.nova-menu__panel {
transition: none !important;
}
} @media (max-width: 1024px), (pointer: coarse) {
.nova-menu--vertical .nova-menu__list {
gap: 0;
}
.nova-menu--vertical .nova-menu__list a {
display: flex;
align-items: center;
min-height: 44px;
}
}