/* IMPOSTAZIONI GENERALI X TUTTI I MENU */
.menu-cont a.nav-link{
	width: 100%;	 /* voce menu senza caret !!! */
}
.menu-cont a.nav-link1,
.dropdown a.nav-link1,
.dropdown-menu li a.nav-link1{
	width: calc(100% - 25px);	 /* voce menu  + caret  */
	display: inline-block;
}
.menu-cont a.nav-link2,
.dropdown a.nav-link2,
.dropdown-menu li a.nav-link2{
	width: 25px;	 /* caret x voce menu  */
	display: inline-block;
}
.nav-link1 + .nav-link2{
  /* riduce il padding x caret */
  padding-left: 2px !important;
  /*padding-right: 2px !important;*/
}
.dropdown li{
	margin-bottom: 0;
	padding: .3rem .5rem;
}


/* MENU ALTO - #header-menu1 
------------------------------------*/
#header-menu1{
	text-transform: uppercase;
	float: right;
}
#header-menu1 li > a:link,
#header-menu1 li > a:visited{
	background-color: transparent;
}
#header-menu1 li > a:hover,
#header-menu1 li.active > a:hover{
	background-color: transparent;
}
#header-menu1 li.active > a{
	background-color: transparent;
}


/* MENU BASSO - #header-menu2
------------------------------------*/
#header-menu2{
	padding: 0;
}
#header-menu2 .navbar-nav > li{
	white-space: nowrap;
}
#header-menu2 ul.navbar-nav{
   margin: auto;
}
#header-menu2 > ul > li > a{
	padding: 1.5rem;
		text-shadow: 1px 1px 1px black;
	text-transform: uppercase;
	color: #fff;
   font-size: 16px;
}
#header-menu2 > ul > li > a::after{
	position: relative;
	right: .8rem;
	margin-left: 0;
}
#header-menu2 > ul > li > a:link,
#header-menu2 > ul > li > a:visited{
	background-color: transparent;
	/*color: #cccccc;*/
}
#header-menu2 > ul > li a:hover,
#header-menu2 > ul > li a:active{
	color: #f5f5f5;
}
#header-menu2 > ul > li.active > a,
#header-menu2 .dropdown-menu > li.active > a{
	background-color: transparent;
	color: #f5f5f5;
}
#header-menu2 .dropdown-menu > .active > a,
#header-menu2 .dropdown-menu > .active > a:focus,
#header-menu2 .dropdown-menu > .active > a:hover{
	background-color: transparent;
	color: #f5f5f5;
}


/*.header-fixed-shrink #header-menu2 > ul > li > a,
.noslider-fixed-space-default .header.header-sticky #header-menu2 > ul > li > a{
	color: black;
}
body.editing .header.header-sticky #header-menu2 > ul > li:hover::after,
.header-fixed .header.header-fixed-shrink #header-menu2 > ul > li.active > a.nav-link::after{
	bottom: 4px;
}*/


/*Dropdown Submenu*/
#header-menu2 .dropdown-menu{
	white-space: normal;
	top: calc(100% - 2px);
	min-width: 240px;
	font-size: 15px;
	text-transform: none;
	/*display: block;*/
}
#header-menu2 .dropdown-menu li a{
	padding: .6rem .5rem;
	color: #666666;
}
/*#header-menu2 .dropdown-menu li a:hover,
#header-menu2 .dropdown-menu li a:active{
	color: black;
}*/
#header-menu2 .dropdown-menu li:hover,
#header-menu2 .dropdown-menu li:active{
	background-color: transparent;
}
#header-menu2 .dropdown-menu li a:hover,
#header-menu2 .dropdown-menu li a:active{
	color: #f5f5f5;
}
#header-menu2 .dropdown-menu li.active{
	background-color: transparent;
}
#header-menu2 .dropdown-menu li.active a,
#header-menu2 .dropdown-menu li.active a:hover{
	color: #f5f5f5;
}
#header-menu2 .dropdown-submenu > .dropdown-menu{
	/*top: calc(100% - 5px);*/
	top: calc(0% - 10px);
	/*top: 0 !important;*/
   left: 100%;
   margin: 0;
}
#header-menu2 .dropdown-submenu:hover > .dropdown-menu{
   display: block;
}
/* terzo livello */
#header-menu2 .dropdown-submenu > ul.liv2 > li > .dropdown-menu.liv3{
	left: 100%;
	top: -1px;
   margin: 0;
	display: block;
}


/*Submenu-left*/
#header-menu2 li.dropdown-left > ul.liv1.dropdown-menu{
	left: auto;
	right: 0;
}
/*#header-menu2 li.last .dropdown-menu{
	left: -100%;
}*/
#header-menu2 li.dropdown-left > ul.liv1.dropdown-menu > li.dropdown-submenu > ul.liv2{
	left: -100% !important;
}
/* terzo livello - sx */
#header-menu2 li.dropdown-left .dropdown-submenu > ul.liv2 > li > .dropdown-menu.liv3{
	left: -100%;
}


/* megamenu */
.dropdown.mega-menu-fullwidth{
	position: static;
}
li.mega-menu-fullwidth > ul.liv1.dropdown-menu{
	padding: 0;
	/*display: block;*/
}
.mega-menu-content{
	padding: 15px;
}
.mega-menu-content a{
	padding: .6rem 0 !important;
}
.mega-menu-content h3{
	padding: .8rem 0;
	font-size: 1.1rem;
}
.mega-menu-content ul.list-unstyled.liv2 > li > a{
	line-height: 1.5;
}


/* search */
header .search-open{
	right: 0;
	top: 40px;
	display: none;
	position: absolute;
	background: #f7f7f7;
	width: 300px;
}
.search-open .form-control{
	border: 1px solid #333333;
	border-radius: 0;
}
.search-open .btn,
.search-open .btn:hover, .search-open .btn:active,
.search-open .btn:focus{
	box-shadow: none;
	background-color: #333333;
	border-color: #333333;
	color: #f5f5f5;
}
.search-open .btn:hover{
	background-color: #222222;
}
header .li-search-text{
   display: none;
}


@media (min-width: 992px){
	/* caret left/right */
	#header-menu2 ul.liv1.dropdown-menu .dropdown-toggle::after{
   	border-top: .3em solid transparent;
		border-left: .3em solid;
		border-bottom: .3em solid transparent;
		border-right: .3em solid transparent;
		vertical-align: inherit;
	}
	#header-menu2 li.dropdown-left > ul.liv1.dropdown-menu .dropdown-toggle::after{
   	border-top: .3em solid transparent;
		border-right: .3em solid;
		border-bottom: .3em solid transparent;
		border-left: .3em solid transparent;
		vertical-align: inherit;
	}
	#header-menu2 li.dropdown-submenu{
		white-space: nowrap;
	}
	.navbar-toggler{
		display: none;
	}
}

/* TABLET - DESKTOP
------------------------------------*/
@media (min-width: 768px){
	.header .navbar-nav > li.dropdown:hover > .dropdown-menu{
   	display: block;
	}
	#header-menu2{
		margin-top: 20px;
		/*font-family: 'Lato', sans-serif;*/
	/*	margin-bottom: 10px;*/
	}
}


/* TABLET - IPAD - VERTICALI */
@media (min-width: 768px) and (max-width: 980px){
	.navbar-toggler{
		margin-right: 10px;
		position: absolute;
		top: -50px;
	}
}


/* Smartphone */
@media (max-width: 767px){
	#header-menu2 .navbar-nav > li{
		margin-right: 0;
	}
	/*#header-menu2 > ul > li > a:link,
	#header-menu2 > ul > li > a:visited{
		color: #666666;
	}*/
	.navbar{
  		padding: .5rem 0;
	}
}
