.menu-nbuilder-custom {
    position: absolute;
    top: 140px;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 9999;
    background: #0069FF;
}

.menu-nbuilder-custom ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.menu-nbuilder-custom li {
    position: relative;
}

.menu-nbuilder-custom a {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    color: #fff;
    text-decoration: none;
    background: transparent;
    white-space: nowrap;
    width: 200px; /* Largura fixa para nivel-1 */
}

.menu-nbuilder-custom a img {
    margin-right: 8px;
}

/* Submenu nível 2 */
.menu-nbuilder-custom ul ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    z-index: 9999;
    min-width: 200px; /* Mesma largura do nível 1 */
}

/* Submenu nível 3 */
.menu-nbuilder-custom ul ul ul {
    left: 100%;
    top: 0;
    min-width: 200px; /* igual para consistência */
}

.menu-nbuilder-custom li:hover > ul {
    display: block;
}

.menu-nbuilder-custom ul ul li a {
    background: #f9f9f9;
    color: #333;
    font-size: 14px;
    width: 100%; /* ocupa largura total do submenu */
}

.menu-nbuilder-custom ul ul li a:hover {
    background: #eee;
}

.overlay-menu {
    position: fixed;
    top: 165;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
    pointer-events: none;
}

/* Ativa overlay quando o menu principal está sendo "hovered" */
.menu-nbuilder-custom.menu-ativo ~ .overlay-menu {
    display: block;
    pointer-events: auto;
}
