/* GESTIONE MENU CON BARRA ELASTICA */


/* --- DIV ----*/
#ph-line-nav		 				{z-index: 999; width: 40%; height: 50px; position: relative; top: -50px; left: 42%; background-color: transparent;  display:  inline-block;  }

.nav {
	font-family: Verdana;
	font-size: 11pt;
	font-weight:bold;
	/* text-shadow: 0 1px 0 white; */ 
	text-align: center;
	vertical-align: middle; 
	line-height: 1; 
	overflow: hidden;
	width: 100%;
	position: relative; 
	top: 36px;
	left: 0px;
	border: 0px solid red;
}
  
  
  
.nodo_menu {
	font-family: Verdana;
	font-size: 11pt;
	font-weight: bold;
	text-align: left;
	vertical-align: middle; 
	line-height: 160%; 
	overflow: hidden;
	width: 88%;
	height: 50px;
	left: 8%;

	display: block;
	position: relative;
	padding: 0px;
	color: #000000;
	cursor: pointer;
}
#ball_1, #ball_2, #ball_3, #ball_4 {
	vertical-align: middle; 
	line-height: 162%; 
	overflow: hidden;
	width: 21px;
	height: auto;

	position: relative;
}
/* --- TESTO MENU ----*/
.nav a {
	display: block;
	position: relative;
	float: left;
	padding: 6px 0 24px 0;
	width: 25%;
	text-decoration: none;
	color: #000000;
	cursor: pointer;
		  
	-webkit-transition: .7s;
	-moz-transition: .7s;
	-o-transition: .7s;
	-ms-transition: .7s;
	transition: .7s; 
}
	  

.nav a:hover {
	color: #161616; 
}


.effect {
	position: absolute;
	left: -12.5%;
/* 	left: -10%;  */
	
	-webkit-transition: 0.7s ease-in-out;
	-moz-transition: 0.7s ease-in-out;
	-o-transition: 0.7s ease-in-out;
	-ms-transition: 0.7s ease-in-out;
	transition: 0.7s ease-in-out; 
}

	

/* --- di quanto si sposta la barra ----*/
.nav a:nth-child(1):hover ~ .effect { left: 12.5%; }
.nav a:nth-child(2):hover ~ .effect { left: 37.5%; }
.nav a:nth-child(3):hover ~ .effect { left: 62.5%; }
.nav a:nth-child(4):hover ~ .effect { left: 87.5%; }

/* .nav a:nth-child(1):hover ~ .effect { left: 10%; }
.nav a:nth-child(2):hover ~ .effect { left: 30%; }
.nav a:nth-child(3):hover ~ .effect { left: 50%; }
.nav a:nth-child(4):hover ~ .effect { left: 70%; }
.nav a:nth-child(5):hover ~ .effect { left: 90%; } */




/* ----- line example -----*/
.ph-line-nav .effect {
	width: 70px;
	height: 2px;
	bottom: 12px;
	background: #FB2200;
	margin-left:-35px;
}

/* ----- FINE ----- */


@media (min-width: 1365px) and (max-width: 1700px) {

	#ph-line-nav		 				{z-index: 999; width: 52%; height: 50px; position: relative; top: -50px; left: 34%; background-color: transparent;  display:  inline-block;  }
	.nav a									{ padding: 6px 0 24px 0; width: 22%; }
	.ph-line-nav .effect				{ width: 66px; 	margin-left:-33px; }

	.effect { left: -9%; }

	/* --- di quanto si sposta la barra ----*/
	.nav a:nth-child(1):hover ~ .effect { left: 11%; }
	.nav a:nth-child(2):hover ~ .effect { left: 33%; }
	.nav a:nth-child(3):hover ~ .effect { left: 55%; }
	.nav a:nth-child(4):hover ~ .effect { left: 77%; }


}


@media (min-width: 1200px) and (max-width: 1364px) {

	#ph-line-nav		 				{z-index: 999; width: 66%; height: 50px; position: relative; top: -50px; left: 33%; background-color: transparent;  display:  inline-block;  }
	.nav a									{ padding: 6px 0 24px 0; width: 16%; }
	.ph-line-nav .effect				{ width: 60px; 	margin-left:-30px; }

	.effect { left: -8%; }

	/* --- di quanto si sposta la barra ---- */
	.nav a:nth-child(1):hover ~ .effect { left: 8%; }
	.nav a:nth-child(2):hover ~ .effect { left: 24%; }
	.nav a:nth-child(3):hover ~ .effect { left: 40%; }
	.nav a:nth-child(4):hover ~ .effect { left: 56%; }

}

@media (min-width: 980px) and (max-width: 1199px) 
{
	
	#ph-line-nav		 				{z-index: 999; width: 75%; height: 50px; position: relative; top: -50px; left: 20%; background-color: transparent;  display:  inline-block;  }
	.nav a									{ padding: 6px 0 24px 0; width: 18%; }
	.ph-line-nav .effect				{ width: 70px; 	margin-left:-35px; }

	.effect { left: -8%; }

	/* --- di quanto si sposta la barra ----*/
	.nav a:nth-child(1):hover ~ .effect { left: 9%; }
	.nav a:nth-child(2):hover ~ .effect { left: 27%; }
	.nav a:nth-child(3):hover ~ .effect { left: 45%; }
	.nav a:nth-child(4):hover ~ .effect { left: 63%; }

}


@media (max-width: 979px) 
{
	
	#ph-line-nav		 				{z-index: 999; width: 45%; height: 50px; position: relative; top: -50px; left: 52%; background-color: transparent;  display:  inline-block;  }
	.nav a									{ padding: 6px 0 24px 0; width: 18%; }
	.ph-line-nav .effect				{ width: 70px; 	margin-left:-35px; }


	.effect { left: -12.5%; }

	/* --- di quanto si sposta la barra ----*/
	.nav a:nth-child(1):hover ~ .effect { left: 9%; }
	.nav a:nth-child(2):hover ~ .effect { left: 27%; }
	.nav a:nth-child(3):hover ~ .effect { left: 45%; }
	.nav a:nth-child(4):hover ~ .effect { left: 63%; }


}
