/*PADRÃO*/

.toggle,
[id^=drop] {
    display: none;
}

nav {
    margin: 0 auto;
    padding: 0;
    width: 100%;
    display: block;
}

nav label {
    content: "";
}

nav:after {
    content: "";
    display: table;
    clear: both;
}

nav a {
    display: block;
    text-decoration: none;
    font-weight: 400;
    text-align: center;
    color: #fff;
    font-size: 18px;
}


/*MENU*/

nav ul {
    padding: 0;
    list-style: none;
    display: block;
    float: none;
}

nav ul li {
    margin: 0 auto;
    float: left;
    text-align: center;
    position: relative;
    transition: 0.3s;
    padding: 5px 20px;
}

nav ul li:hover a {
    color: #fff;
}


/*SUBMENU*/

nav ul li ul {
    display: none;
    position: absolute;
    z-index: 99999999;
    left: 0;
    margin-top: 0;
}

nav ul li:hover>ul {
    display: block;
}

nav ul li ul li {
    width: 300px;
    float: none;
    display: list-item;
    background: #fff;
    padding: 0;
    border-bottom: 1px solid #dadad9;
    text-align: left;
}

nav ul li ul li a {
    color: #003D7B!important;
    text-align: left;
    padding: 10px;
}

nav ul li ul li:hover a {
    font-weight: bold;
}


/*MENU TERCEIRO NIVEL*/

nav ul li ul li ul {
    position: absolute;
    top: 0;
    left: 300px;
    z-index: 9999999;
}

nav ul li ul li ul li {
    background: #dadad9;
    text-align: left;
}

nav ul li ul li ul li:hover a {
    font-weight: bold;
}


/*MENU QUARTO NIVEL*/

nav ul li ul li ul li ul {
    position: absolute;
    top: 50px;
    left: 0;
    z-index: 9999999;
}

nav ul li ul li ul li ul {
    background: #dadad9;
    text-align: left;
}

nav ul li ul li ul li:hover a {
    font-weight: bold;
}

@media screen and (max-width: 1350px) {
    nav ul {
        width: 100%;
        position: absolute;
        z-index: 9999999;
    }
    [id^=drop]:checked+ul {
        display: block;
    }
    .barras {
        float: right;
        margin-right: 20px;
        cursor: pointer;
        margin-top: -45px;
    }
    .barras:hover {
        background: none
    }
    .barras i {
        font-size: 30px;
        color: #fff;
        float: right;
        right: 0;
        margin-right: 5%;
    }
    .toggle+a,
    .menu_resp {
        display: none;
    }
    .toggle {
        display: block;
        color: #999;
        text-decoration: none;
        border: none;
    }
    .toggle a:hover {
        color: #fff;
    }
    label.submenu {
        margin: 0;
        padding: 0;
    }
    ;
    /*MENU*/
    nav {
        margin: 15px 0;
        border-radius: 0;
    }
    nav a {
        padding: 14px 20px;
        color: #fff;
    }
    nav ul li {
        display: block;
        background: #333;
        width: 95%;
        border-radius: 0;
        padding: 0;
        border-bottom: 1px solid #868685;
        text-align: left;
    }
    /*SUBMENU*/
    nav ul li ul {
        position: relative;
        width: 100%;
        left: 0;
        top: 0;
        margin: 0 auto;
    }
    nav ul li ul li {
        width: 100%;
        display: block;
    }
    nav ul li ul li .toggle {
        background-color: #d1d1d1;
    }
    nav ul li ul li:hover {
        background: #CCC;
    }
    nav ul li ul li:hover .toggle {
        background: #CCC;
    }
    /*MENU TERCEIRO NIVEL*/
    nav ul li ul li ul {
        position: relative;
        width: 100%;
        left: 0;
    }
    nav ul li ul li ul li {
        background: #77787B;
    }
    nav ul li ul li ul li a {
        color: #FFF;
    }
    nav ul li ul li ul li:hover a {
        background-color: #868685;
        color: #FFF;
    }
    nav ul ul li:hover>ul,
    nav ul li:hover>ul {
        display: none;
    }
}

@media all and (max-width: 550px) {
    .barras {
        margin-top: -50px;
    }
}

@media all and (max-width: 330px) {
    nav ul li {
        display: block;
        width: 100%;
    }
}