
/* ----------------------------------------------------------------------------
	Navigation Menu
----------------------------------------------------------------------------- */
#menutoggle {
	display: block;
	margin: 0;
	padding-top:0px;
	padding-bottom:10px;
	width: auto;
	color: #ffffff;
	background:none;
	height: 30px;
	font: 18px 'Overpass', sans-serif;
	font-weight:400;
	text-align: left;
	text-transform: uppercase;
	cursor: pointer;
	position: absolute;
	right: 0;
	bottom: 0;
	border-radius: 4px 4px 0 0;
	transition: background 0.2s linear 0s;
	-webkit-tap-highlight-color: rgba(0,0,0,0);
}
#menutoggle span {
    display: none;
	padding-bottom:10px;
	padding-top:0px;
}
#menutoggle:before {
	display: inline-block;
	margin-left: 0;
	width: 18px;
	height: 30px;
	line-height: 48px;
	color: inherit;
	font-family: 'icons';
	text-align: center;
	font-size: 21px;
	vertical-align: top;
}
#menutoggle.is-active:before {
	margin-bottom:20px;
	

}
#menutoggle:hover, #menutoggle:active, #menutoggle.is-active {
	background: none;
	color:#000000;
}
#menutoggle { display: block; }
#nav {
    clear: both;
    width: 100%;
    height: 0;
    overflow: visible;
    position: relative;
    z-index: 1000;
	
}
#nav ul {
    float: none;
    display: block;
    margin: 0;
    width: auto;
    opacity: 0;
	max-height: 0;
    background: #b1b1b1;
    overflow: hidden;
    transition: max-height 0.25s cubic-bezier(0, 0.7, 0, 1), opacity 0.2s ease-in-out;
    border-radius: 0 0 4px 4px;
    top: 1px;
    border: 0;
    position: relative;
}
#nav #menutoggle.is-active + ul {
    max-height: 1000px;
	opacity: 1;
	transition: max-height 0.3s ease-in-out, opacity 0.25s ease-in-out;
}
#nav li {
    display: block;
    margin: 0;
    padding: 0;
    height: auto;
    overflow: hidden;
    border: 0;
    border-top: 1px dotted #455a64;
	padding-right:100px;
}
#nav li:first-child {
    border-top: 0;
}
#nav li.onmobile {
	display: block;
}
#nav a, #nav span.submenu {
    float: none;
    display: block;
    margin: 0;
    padding: 9px 20px;
    height: auto;
    color: #ffffff;
    line-height: 1.4em;
    text-align: left;
    font: 18px 'Overpass', sans-serif;
	font-weight:400;
	text-align: left;
    border: 0;
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(0,0,0,0);
	transition: background 0.17s linear 0s;
}
#nav span.submenu:after {
    float: right;
    margin-left: 10px;
    width: 15px;
    height: inherit;
    color: inherit;
    font-family: 'icons';
    text-align: center;
    font-size: 105%;
    vertical-align: top;
}
#nav span.submenu.is-active {
	border-bottom: 1px dotted #455a64;
}
#nav span.submenu.is-active:after {

}
#nav ul.submenu {
    margin: 0;
    padding: 0;
    width: 100%;
    max-height: 0;
    background: none;
    opacity: 1;
    position: relative;
    top: 0;
	transition: max-height 0.15s linear 0s;
}
#nav span.submenu.is-active + ul.submenu {
    max-height: 360px;
    overflow-y: auto;
}
#nav ul.submenu a {
    padding-left: 40px;
    background: none;
}
#nav ul.submenu a:before {
    display: inline-block;
    margin-right: 5px;
    margin-left: -15px;
    width: 10px;
    height: inherit;
    color: inherit;
    font-family: 'icons';
    text-align: center;
    font-size: inherit;
    vertical-align: top;
}
#nav a:hover, #nav a.is-active, #nav li:hover span.submenu, #nav ul.submenu a:hover, #nav ul.submenu a.is-active {
    background: #313131;
	color:#ffffff;
}

@media (min-width: 30em) { /* Small devices (landscape phones, 576px and up) */
/*@media (min-width: 48em) { /* Medium devices (tablets, 768px and up) */
    #menutoggle { padding: 0 25px 0 25px; }
	#menutoggle span { display: inline-block; }
    #menutoggle:before { margin-right: 10px; }

}
@media (min-width: 62em) { /* Large devices (desktops, 992px and up) */
    #menutoggle { display: none; }
    #nav {
        height: 30px;
        background:none;
        position: relative;
        z-index: 99;
        border: 0;
        border-radius: 4px;
		margin-top:-41px;
    }
    #nav ul {
        display: block !important;
        float: left;
        width: 100%;
        height: auto;
        opacity: 1;
        margin: 4px 0;
        position: relative;
        z-index: 10;
        top: 0;
        overflow: visible;
    }
    #nav li {
        float: left;
        margin: 0 5px;
        padding: 0;
        height: 30px;
        width: auto;
        min-width: auto;
        position: relative;
        border: 0;
        overflow: visible;
		margin-right:170px;
    }
    #nav li:first-child {
        margin-left: 4px;
        border-left: 0;
    }
	#nav li:last-child {
        margin-right:0px;
    }

    #nav li.last {
        border-right: 0;
    }
    #nav li.right {
        float: right;
        margin-right: 4px;
        border-right: 0;
    }
    #nav li.onmobile {
        display: none;
    }
    #nav a, #nav span.submenu {
        float: left;
        margin: 0;
        padding: 0 14px;
        height: 30px;
        border: 0;
        color: #ffffff;
        font: 18px 'Overpass', sans-serif;
		font-weight:400;
		text-align: left;
        line-height: 30px;
        text-align: center;
        text-transform: uppercase;
        border-radius: 3px;
        transition: background 0.2s linear 0s;
        cursor: pointer;
    }
    #nav span.submenu:after {
        display: none;
    }
    #nav a:hover, #nav li:hover span.submenu, #nav ul.submenu a:hover {
		color:#F00;
        background: transparent;
		 -webkit-transition: all 0.7s ease-out; -moz-transition:all 0.4s ease-out; -ms-transition:all 0.4s ease-out; -o-transition:all 0.4s ease-out; transition:all 0.4s ease-out; 
    }
	#nav a.is-active, #nav span.submenu.is-active {
		color:#ffffff;
        background: transparent;
		 -webkit-transition: all 0.7s ease-out; -moz-transition:all 0.4s ease-out; -ms-transition:all 0.4s ease-out; -o-transition:all 0.4s ease-out; transition:all 0.4s ease-out; 
    }
    #nav li:hover a.submenu, #nav li:hover span.submenu, #nav span.submenu.is-active.hover {
        border-radius: 3px 3px 0 0;
        -webkit-tap-highlight-color: rgba(0,0,0,0);
    }
    #nav li:hover {
        z-index: 11;
    }
    #nav ul.submenu {
        float:left;
        margin: 0;
        padding: 0;
        width: 250px;
        max-height: 0;
        position: absolute;
        opacity: 0;
        background: #b1b1b1;
        top: 95%;
        z-index: 10;
        border-radius: 0 3px 3px 3px;
        box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.2);
        transition: max-height 0.2s linear 0s, padding 0.2s linear 0s, opacity 0.2s linear 0s;
        overflow: hidden;
        overflow-y: auto;
    }
    #nav li:hover ul.submenu, #nav ul.submenu.is-active {
		padding: 3px 0;
        left: 0;
		max-height: 360px;
        opacity: 1;
    }
    #nav ul.submenu li {
        float: none;
        display: block;
        margin: 0;
        padding: 0;
        border: 0;
        height: auto;
		background:#b1b1b1;
    }
    #nav ul.submenu a {
        float: none;
        display: block;
        margin: 0;
        padding: 7px 15px 7px 28px;
        height: auto;
        text-transform: none;
        font: 18px 'Overpass', sans-serif;
		font-weight:400;
		text-align: left;
		color:#ffffff;
        line-height: 1.5em;
        border-radius: 0;
        border: 0;
        border-top: 1px dotted #37474f;
		background:#b1b1b1;
    }
    #nav ul.submenu li:first-child a {
        border: 0;
    }
    #nav ul.submenu li a:hover, #nav ul.submenu li a.is-active {
        background: #313131;
		width:100%;
    }
}

/* POSTIDOL MEDIA QUERIES */
/* 1680 display */
@media only screen and ( min-width: 1380px) and ( max-width: 1690px ) {
#nav li { margin-right:130px; }
}

/* 1366 display */
@media only screen and ( min-width: 1285px) and ( max-width: 1368px ) {
#nav li { margin-right:90px; }
}

/* 1280 display */
@media only screen and ( min-width: 1025px) and ( max-width: 1280px ) {
#nav li { margin-right:70px; }
}
/* tablet landscape */
@media only screen and ( min-width: 981px) and ( max-width: 1024px ) {
#nav li { margin-right:30px; }
}
/* tablet portrait */
@media only screen and ( min-width: 640px) and ( max-width: 980px ) {
#nav 	{ margin-top:-10px; }
#nav a, #nav span.submenu { color:#ffffff; }
}
/* phone*/
@media only screen and ( min-width: 320px) and ( max-width: 635px ) { 
#nav 	{ position:absolute; margin-top:0px; }
#nav a, #nav span.submenu { color:#ffffff; }
#menutoggle span {
    display:block;
	padding:10px;
}

}
