/* RESET */
body{
    margin: 0;
    padding: 0;
}
*{
    list-style: none;
    text-decoration: none;
    color: rgb(61,61,61);
    font-family: Arial, Helvetica, sans-serif;
}

/* NAVBAR */
#NavBarBox{
    width: 100%;
    transition: all 0.3s ease;
}
.NavBarItemList ul li{
    position: relative; /* 👈 isto é o cérebro da operação */
}

#NavBarBox.fixed{
    position: fixed;
    top: 0;
    left: 0;
    background: white;
    z-index: 3000;
    box-shadow: 0px 2px 10px rgba(0,0,0,0.1);
}

/* TOP BAR */
.AllContact{
    background-color: rgba(163,163,163,1);
    display: flex;
    padding: 8px 0 4px 50px;
    justify-content: space-between;
}
.AllContact div{display: flex;}
.AllContact div img{width: 26px;height: 24px;}
.AllContact div label{
    width: 230px;
    color: white;
    font-size: 9pt;
    margin: 4px 0 0 6px;
}
.SocialNetWork{margin-right: 5%;}
.SocialNetWork span{margin: 0 6%;cursor: pointer;}

/* NAV MAIN */
.NavBarItem{
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(51,51,51,0.1);
}

/* LOGO */
.LogoMark span:nth-child(1) img{width: 80px;height: 80px;}
.LogoMark span:nth-child(2){
    position: absolute;
    margin: 25px 0 0 -10px;
    border-left: 2px solid rgba(51,51,51,0.5);
}
.LogoMark span:nth-child(2) div{
    font-size: 9pt;
    padding: 1px 4px;
}

/* MENU DESKTOP */
.NavBarItemList{
    margin-right: 15px;
}

.NavBarItemList ul li{
    display: inline;
    padding: 10px;
}

.NavBarItemList ul li a{
    font-size: 10pt;
    font-weight: 700;
}

.NavBarItemList ul li a:hover{
    color: rgb(15,215,255);
}

/* DROPDOWN */
.DropDownBox{
    position: absolute;
    top: 100%;
    left: 0; /* 👈 chave do problema */
    margin-top: -6px;
    background: whitesmoke;
    display: none;
    z-index: 2000;
    transition: all 0.3s ease;
    min-width: 160px;
}
.DropDownBox p{
    margin: 0;
    padding: 6px;
    font-size: 9pt;
    text-align: center;
}
.DropDownBox p:hover{
    color: white;
    background-image: linear-gradient(to left, rgb(0,248,220), rgb(0,180,223));
}

.NavBarItemList ul li:hover > .DropDownBox{
    display: block;
}

/* LOGIN BTN */
.NavBarItemList ul li:nth-child(7){
    background-image: linear-gradient(to left, rgb(0,248,220), rgb(0,180,223));
    padding: 6px 16px;
    border-radius: 4px;
}
.NavBarItemList ul li:nth-child(7) a{color: white;}

/* HAMBURGER */
.Hamburger{
    display: none;
    flex-direction: column;
    cursor: pointer;
    margin-right: 20px;
}
.Hamburger span{
    width: 25px;
    height: 3px;
    background: #333;
    margin: 4px 0;
    transition: 0.3s;
}

/* ANIMAÇÃO */
.Hamburger.open span:nth-child(1){
    transform: rotate(45deg) translate(5px,5px);
}
.Hamburger.open span:nth-child(2){
    opacity: 0;
}
.Hamburger.open span:nth-child(3){
    transform: rotate(-45deg) translate(6px,-6px);
}

/* MOBILE */
@media (max-width:768px){

    .AllContact{display:none;}
    .Hamburger{display:flex;}

    .NavBarItem{padding:10px;}

    .NavBarItemList{
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;

        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .NavBarItemList.active{
        transform: translateX(0);
    }

    .NavBarItemList ul{
        display:flex;
        flex-direction:column;
    }

    .NavBarItemList ul li{
        display:block;
        padding:15px;
        border-bottom:1px solid #eee;
    }

    .DropDownBox{
        position: relative;
        display: none;
        background:#f5f5f5;
    }

    .NavBarItemList ul li.active .DropDownBox{
        display:block;
    }
    .NavBarItemList ul li:nth-child(7){
        text-align: center;
        width: 80%;
        margin: 20px auto;
        
    }
    /* NAV MAIN */
    .NavBarItem{
        margin-left: 5px;
        width: 90%;
    }
}