@charset "utf-8";
/* -----------------Menu nella versione mobile-----------------*/

.active{
	color:#FFFFFF;
	background-color: #345EA9/* primary lightcolor*/;
}

img.wpml-ls-flag {
    padding-top: 6px!important;
}
	
.active-dropdown{
	color:#FFFFFF;
	background-color:#345EA9/* primary lightcolor*/;
}

nav{
	height:100%;
	/*background-color:#1F4037;sfondo menu mobile*/
	background-color: #1F4037;
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#1F4037",endColorstr="#2e52a0",GradientType=1);
	position:fixed;
	width:100%;
	visibility:hidden;
	overflow:auto;/* permette lo scroll quando il menu è aperto*/
}

nav ul{
	padding-top:54px;/* barra + 10 px per staccarlo*/
	padding-bottom: 100px;/* spazio sotto al menu*/
}

nav ul ul{
	padding-top:0;
	padding-bottom: 0;
}

nav ul li a {
	padding: 8px 0 8px 32px;
	display:block;
	color:#fff;
	font-size:16px;
}

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

nav ul li ul li a {/* aggiunta per struttura wordpress*/
	padding: 8px 0 8px 42px;
	font-size:14px;
}

/* inserisco in modo diverso la freccetta per la struttura wordpress
nav label:after{
	content:'';
	background-image:url("img/arrow-down.svg.html");
	background-repeat:no-repeat;
	background-position: center center;
	width: 15px;
	height: 15px;
	padding: 15px;
	float: right;
	margin-top: -45px;
	margin-right: 16px;
}
*/


nav input:checked ~ label:after{
	transform: rotate(180deg);
}

.lingua{
	border-top: 1px solid #345EA9/* primary lightcolor*/; 
}

.lingua > a:before{
	content: url("img/earth-globe.svg.html");
	margin-right: 5px;
}

/* -------------- DROP DOWN SENZA JAVA con select----------------- */
	
nav label{
	color:#FFF;
  	cursor:pointer;
}

nav label:hover{
	color:#fff;
}

nav input{/*nascondere l'input*/
	display:none}


nav .tendina{ /*stile del secondo livello del menu*/
  max-height:0;
  padding:0;
  overflow:hidden;
  transition:max-height 0.5s ease-out;
  min-width:100%;
}


nav input:checked ~ .tendina{/*mostrare il secondo livello del menu*/
  	max-height:300px;
}

nav .tendina li a{
  	display:block;
  	padding:8px 0 8px 45px;
  	white-space:nowrap;
  	font-size: 14px;
}

/* ----------------- div bar per l'attivazione del menu ------------------ */

#bar{
	background-color: #1F4037; 
	height:44px;
	width:100%;
	z-index:2;
	position:fixed;
	box-shadow: 0px 0px 3px 2px rgba(0,0,0,0.4);
}

#bar #logo{
	float:right;
	margin-right:12px;
	width: 165px;
}

/* ----------------- Hamburger animation ------------------ */

#hamburger {
  display: none;
}

.menuicon {
 	position:fixed;
	height:44px;
	width:44px;
	margin-left:5px;
	z-index:203;
}

.menuicon  span {
    display: block;
    top: 21px;
    width: 30px;
    height:2px;
    left:8px;
    background-color: #fff;
    position: relative;
	border-radius:20px;
    transition-duration: 0;  
    transition-delay: .1s;
}
    
.menuicon  span::after, .menuicon  span::before {
    display: block;
    content: '';
    position: absolute;
    width: 30px;
    height:2px;
    background-color: #fff;
	border-radius:20px;
    transition-duration: .1s;
	-webkit-transition-delay: .1s, 0;
    transition-delay: .1s, 0;
}

.menuicon  span::before {
      margin-top: -8px;
}
.menuicon  span::after {
      margin-top: 8px;
}

#hamburger:checked ~ .menuicon span{
    background-color: rgba(0,0,0,0);
}
    
#hamburger:checked ~ .menuicon span::before {
      margin-top: 0px;
      -webkit-transition-delay: 0, .3s;
      -moz-transition-delay: 0, .3s;
      -ms-transition-delay: 0,.3s;
      -o-transition-delay: 0, .3s;
      transition-delay: 0, .3s;
}
	
#hamburger:checked ~ .menuicon span::after {
      margin-top: 0px;
      -webkit-transition-delay: 0, .3s;
      -moz-transition-delay: 0, .3s;
      -ms-transition-delay: 0,.3s;
      -o-transition-delay: 0, .3s;
      transition-delay: 0, .3s;
}

#hamburger:checked ~ .menuicon span::before {
      -webkit-transform: rotate(45deg);
      -moz-transform: rotate(45deg);
      -ms-transform: rotate(45deg);
      -o-transform: rotate(45deg);
      transform: rotate(45deg);
}

#hamburger:checked ~ .menuicon span::after {
      -webkit-transform: rotate(-45deg);
      -moz-transform: rotate(-45deg);
      -ms-transform: rotate(-45deg);
      -o-transform: rotate(-45deg);
      transform: rotate(-45deg);
}

/* ----------------- menu animation faccio apparire il menu ------------------ */

#hamburger:checked ~ .menu-visibility{
	visibility:visible;
}

#hamburger:checked ~ .contenitore{
	display: none;
}

/* --#hamburger:checked ~ .contenitore .contenuto .anteprima-container{ un problema quando uso le posizioni relative e absolute così tolgo quando è aperto il menu
	background-color: green;
	position:fixed;
}---*/

.menu-item-387 {
	display: block;
	padding-top: 30px;	
}

/* -----------------media per menu orizzontale ------------------ */

@media screen and (min-width: 980px){
	
.menuicon{
	display:none; /* togliere icona hambuger icon */
}
	
#bar #logo{
	float:left;
	margin-left:10px;
}

nav{
	z-index:3;
	margin-top:10px;
	height:auto;
	background-color:transparent;
	transition:none;
	width:auto;
	float:right;
	right:10px;
	visibility:visible;
	overflow:visible;
	background: none;
}

.active{
	background-color:transparent;
	color:#fff /* secondary-color*/;
}	

.current-menu-item a {
	color:#fff !important; 
}
	
.active-dropdown{
	color:#fff;
	background-color:#345EA9/* primary lightcolor*/;
}

nav ul{
	padding:0;
}
	
nav ul li a {
	font-size:16px;
	color: #fff;
	transition: background-color 0.3s ease;
	padding: 0;
	font-weight: bold;
	text-decoration: none;
}

nav ul li a:hover {
	background-color:transparent;
	color:#70B62C!important;
}

nav ul li {	
	margin:0;
	float:left;
	position:relative;
	padding:0 16px;
}
	
/* ----------------- dropdown - attivare il menu a tendina con hover ------------------ */
	
nav ul li ul { 
	position:fixed;
	height:0;
	overflow:hidden;
	background-color: #2E52A0 /* primary color*/
}
	
nav ul li:hover ul{
	height:auto;
	padding-top: 12px; /* se sposti il nav sposta anche questo*/
	position: absolute;
    right: 0;
	border-bottom-left-radius: 5px;
	border-bottom-right-radius: 5px;
}

nav ul li ul li {
	font-size: 14px;
	font-weight: normal;
	float:none;
	padding:0;
	width: 250px;
	border-top: 1px solid #345EA9/* primary lightcolor*/;
}

nav ul li ul li a {
	padding: 16px 32px;
	display: block;
	background-color: #2E52A0/* primary color*/;
	color: #ffffff;
	font-weight: normal;
}

nav ul li ul li a:hover {
	background-color:#345EA9/* primary lightcolor*/;
}
	
.lingua{
	border-top: 0;
	border-left: solid 1px #fff;
	float: left;
}
	
.menu li.has-children > a:after {
    content: url("../img/arrow-down.svg");
    display: inline;
	padding-left: 6px;
}
	
.submenu > a:after{
	content: url("img/arrow-down.svg.html");
	margin-left:8px;
	margin-right: 0;	
}
	
/* -------------- Togliere nel grande le label----------------- */
	
nav label{
	display: none;
}

.menu-item-387 {
display: none;
}	

}

