#nav,
#nav ul,
#nav ul li,
#nav ul li a,
#nav #menu-button {
    list-style: none;
    line-height: 1.1;
    display: block;
    position: relative;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

#nav {
    font-family: inherit;
    text-align: center;
    position:relative; 
    margin:0 auto; 
    max-width:1280px; 
    font-weight:500;
}

#nav ul {
    display: inline;
    font-size:0;
    margin: 0 0 -4px 0;
    text-align: left;
}

#nav ul li {
    z-index: 100;
    padding: 1em 0.5em;
    margin:0;
    font-size:1rem;
}

#nav ul li ul {
    position: absolute;
    top: 3rem;
}


#nav ul li a {
    font-size:1em;
    padding: 0 1em 0em 1em;
    display: block;
    text-decoration: none;
    text-transform: uppercase;
    color: #fff;
}

#nav ul li ul li a{
	font-size:0.8em;	
}

/*#nav:after,
#nav > ul:after {
    content: ".";
    display: block;
    clear: both;
    visibility: hidden;
    line-height: 0;
    height: 0;
}*/

#nav #menu-button {
    display: none;
}

#nav > ul > li {
    float: left;
}


#nav > ul > li:hover > a {
    text-decoration: underline;
    -webkit-transition: all 0.3s;
    -moz-transition: all 0.3s;
    -ms-transition: all 0.3s;
    -o-transition: all 0.3s;
    transition: all 0.3s;
}

#nav > ul > li.active > a {
    text-decoration: underline;
    -webkit-transition: all 0.3s;
    -moz-transition: all 0.3s;
    -ms-transition: all 0.3s;
    -o-transition: all 0.3s;
    transition: all 0.3s;
}

#nav ul ul {
    position: absolute;
    left: -9999px;
}

#nav ul ul li {
    height: 0;
    padding:0;
    -webkit-transition: all .25s ease;
    -moz-transition: all .25s ease;
    -ms-transition: all .25s ease;
    -o-transition: all .25s ease;
    transition: all .25s ease;
}

#nav li:hover > ul {
    left: auto;
}

#nav li:hover > ul > li {
    height: auto;
}

#nav ul ul ul {
    margin-left: 100%;
    top: 0;
}

#nav ul ul li a {
    padding: 0.5em 1em;
    white-space: nowrap;
    color: rgba(255,255,255,0.5);
    background: rgba(0,0,0,0.75);
    text-transform: none;
}

#nav ul ul li:last-child > a,
#nav ul ul li.last-item > a {
    border-bottom: 0;
}

#nav ul ul li:hover > a,
#nav ul ul li a:hover {
    color: #fff;
    -webkit-transition: all 0.3s;
    -moz-transition: all 0.3s;
    -ms-transition: all 0.3s;
    -o-transition: all 0.3s;
    transition: all 0.3s;
}


/*--------------------------------------------------------*/
/*MEDIA QUERY*/
/*--------------------------------------------------------*/

@media all and (max-width: 1280px) {
    #nav {
        width: 100%;
        font-family: inherit;
    }

    #nav > ul > li > a {
        padding: 17px;
    }

    #nav > ul > li:first-of-type a {
        padding: 17px;
    }

    #nav ul {
        width: 100%;
        display: none;
        padding: 0 0 0 0;
    }


    #nav ul li {
        width: 100%;
        border-top: 1px solid rgba(255, 255, 255, 0.3);
        padding: 0;
    }

    #nav ul li ul {
        position: inherit;
        top: 0;
    }

    #nav ul ul li,
    #nav li:hover > ul > li {
        height: auto;
    }

    #nav ul li a,
    #nav ul ul li a {
        width: calc(100% - 58px);
        border-bottom: 0;
        color: #fff;
    }

    #nav > ul > li {
        float: none;
    }

    #nav ul ul li a {
        padding-left: 25px;
    }

    #nav ul ul ul li a {
        padding-left: 35px;
    }

    #nav ul ul li a {
       color: rgba(255,255,255,0.5);
        background: none;
    }

    #nav ul ul li:hover > a,
    #nav ul ul li.active > a {
        color: #fff;
        -webkit-transition: all 0.3s;
        -moz-transition: all 0.3s;
        -ms-transition: all 0.3s;
        -o-transition: all 0.3s;
        transition: all 0.3s;
    }

    #nav ul ul,
    #nav ul ul ul {
        position: relative;
        left: 0;
        width: 100%;
        margin: 0;
        text-align: left;
    }

    #nav > ul > li.has-sub > a:after,
    #nav > ul > li.has-sub > a:before,
    #nav ul ul > li.has-sub > a:after,
    #nav ul ul > li.has-sub > a:before {
        display: none;
    }

    #nav #menu-button {
        display: block;
        padding: 17px;
        color: #fff;
        cursor: pointer;
        font-size: 1.2em;
        letter-spacing: .4px;
        /*    font-size: 12px;*/
        text-transform: uppercase;
        /*    font-weight: 700;*/
    }

    #nav #menu-button:after {
        position: absolute;
        top: 28px;
        right: 17px;
        display: block;
        height: 4px;
        width: 20px;
        border-top: 2px solid #fff;
        border-bottom: 2px solid #fff;
        content: '';
    }

    #nav #menu-button:before {
        position: absolute;
        top: 22px;
        right: 17px;
        display: block;
        height: 2px;
        width: 20px;
        background: #fff;
        content: '';
    }

    #nav #menu-button.menu-opened:after {
        top: 27px;
        border: 0;
        height: 2px;
        /*    width: 15px;*/
        background: #ffffff;
        -webkit-transform: rotate(45deg);
        -moz-transform: rotate(45deg);
        -ms-transform: rotate(45deg);
        -o-transform: rotate(45deg);
        transform: rotate(45deg);
    }

    #nav #menu-button.menu-opened:before {
        top: 27px;
        background: #ffffff;
        /*    width: 15px;*/
        -webkit-transform: rotate(-45deg);
        -moz-transform: rotate(-45deg);
        -ms-transform: rotate(-45deg);
        -o-transform: rotate(-45deg);
        transform: rotate(-45deg);
    }

    #nav .submenu-button {
        position: absolute;
        z-index: 99;
        right: 0;
        top: 0;
        display: block;
        border-left: 1px solid rgba(255, 255, 255, 0.3);
        height: 58px;
        width: 58px;
        cursor: pointer;
    }

    #nav .submenu-button.submenu-opened {
        background: rgba(255, 255, 255, 0.1);
    }

    #nav ul ul .submenu-button {
        height: 46px;
        width: 46px;
    }

    #nav .submenu-button:after { /*minus*/
        position: absolute;
        top: 29px;
        right: 24px;
        width: 10px;
        height: 2px;
        display: block;
        background: #fff;
        content: '';
    }

    #nav ul ul .submenu-button:after { /*minus*/
        top: 23px;
        right: 17px;
    }

    #nav .submenu-button.submenu-opened:after {
        background: #ffffff;
    }

    #nav .submenu-button:before { /*plus*/
        position: absolute;
        top: 25px;
        right: 28px;
        display: block;
        width: 2px;
        height: 10px;
        background: #fff;
        content: '';
    }

    #nav ul ul .submenu-button:before { /*plus*/
        top: 19px;
        right: 21px;
    }

    #nav .submenu-button.submenu-opened:before {
        display: none;
    }
}

