/* CSS Document */

@import url(http://fonts.googleapis.com/css?family=Open+Sans);
@import url(http://fonts.googleapis.com/css?family=Bree+Serif);

body {
	background: #212121;
	font-size:22px;
	line-height: 25px;
	color: #000000;
	margin: 0;
	padding: 0;
	word-wrap:break-word !important;
	font-family: 'Open Sans', sans-serif;
	}

h1 {
	font-size: 60px;
	text-align: center;
	color: #FFF;
}	

h3 {
	font-size: 30px;
	line-height: 34px;
	text-align: center;
	color: #FFF;
}

h3 a {
	color: #FFF;
}

a {
	color: #FFF;
}

h1 {
	margin-top: 100px;
	text-align:center;
	font-size:60px;
	line-height: 70px;
	font-family: 'Bree Serif', 'serif';
	}

#container {
	margin: 0 auto;
	max-width: 890px;
}

p {
	text-align: left;
	color: black;
}

.toggle,
[id^=drop]:not(.jqx-grid *) {
	display: none;
}

/* Giving a background-color to the nav container. */
nav { 
	margin:0;
	padding: 0;
	background-color: #565656;	 /* COLORE MENU */
	z-index:1500;
	position: relative;
}

#logo {
	display: block;
	padding: 0 30px;
	float: left;
	font-size:20px;
	line-height: 60px;
}

/* Since we'll have the "ul li" "float:left"
 * we need to add a clear after the container. */

nav:after {
	content:"";
	display:table;
	clear:both;
}

/* Removing padding, margin and "list-style" from the "ul",
 * and adding "position:reltive" */
nav ul {
	float: left;
	padding:0;
	margin:0;
	list-style: none;
	position: relative;
	}
	
/* Positioning the navigation items inline */
nav ul li {
	margin: 0px;
	display:inline-block;
	float: left;
	background-color: #565656;
	}

nav ul ul li {
	margin: 0px;
	display:inline-block;
	float: left;
	background-color: #808080;
	}
/* Styling the links */
nav a {
	display:block;
	padding:5px 15px;	
	color:#FFF;
	font-size:13px;
	text-decoration:none;
}


nav ul li ul li:hover {
	color: #002c74;
}
	
/* Background color change on Hover */
nav ul ul a:hover { 
	background-color: #e6e6e6; 
	color: #002c74;
}

/* Hide Dropdowns by Default
 * and giving it a position of absolute */
nav ul ul {
	display: none;
	position: absolute; 
	/* has to be the same number as the "line-height" of "nav a" */
	/*top: 35px; */
	/*background-color:#8b0000; NON VA BENE */ /* COLORE BACKGROUND SOTTO-MENU */

}
	
/* Display Dropdowns on Hover */
nav ul li:hover > ul {
	display:inherit;
}
	
/* Fisrt Tier Dropdown */
nav ul ul li {
	width:255px;
	float:none;
	display:list-item;
	position: relative;
}

/* Second, Third and more Tiers	
 * We move the 2nd and 3rd etc tier dropdowns to the left
 * by the amount of the width of the first tier.
*/
nav ul ul ul li {
	position: relative;
	top:-36px;
	/* has to be the same number as the "width" of "nav ul ul li" */ 
	left:255px; 
}

/*.edge{
	right:0;
}
*/


/* Change ' +' in order to change the Dropdown symbol */
/*li > a:after { content:  ' +'; }*/
li > a:after { content:  url(../images/freccia.png); margin-left:7px;}
li > a[href*="##"]:hover:after {content:  url(../images/freccia.png); margin-left:7px;}
li > a:hover:after { content:  url(../images/freccia-hover.png); margin-left:7px;}
li > a:only-child:after { content: ''; }


/* Media Queries
--------------------------------------------- */

@media all and (max-width : 1120px) {

	#logo {
		display: block;
		padding: 0;
		width: 100%;
		text-align: center;
		float: none;
	}

	nav {
		margin: 0;
	}

	/* Hide the navigation menu by default */
	/* Also hide the  */
	.toggle + a,
	.menu {
		display: none;
	}

	/* Stylinf the toggle lable */
	nav a,
	.toggle {
		display: block;
		background-color: #565656;
		padding:14px 20px;	
		color:#FFF;
		font-size:13px;
		text-decoration:none;
		border:none;
	}

	.toggle:hover {
		background-color: #808080;        /* COLORE QUANDO TOCCO UN ITEM DEL MENU DI QUALSIASI LIVELLO */
		/* border: 1px solid #000000; */
	}

	/* Display Dropdown when clicked on Parent Lable */
	[id^=drop]:checked + ul {
		display: block;
	}

	/* Change menu item's width to 100% */
	nav ul li {
		display: block;
		width: 100%;
	}
	
	nav ul li ul a:hover {
		background-color: #808080;
		color: #fff;
	}

	nav ul ul .toggle,
	nav ul ul a {
		padding: 0 40px;
	}

	nav ul ul ul a {
		padding: 0 80px;
	}

	nav ul a:hover{
		background-color: #808080;    /* COLORE GRIGIO SCURO MENU LIVELLO 1 */
		color:#FFF;
	}
 	nav ul ul ul a {
		background-color: #800000;    /* COLORE CELESTE ITEM MENU LIVELLO 3 */
	}
  
	nav ul ul ul a {
		padding:14px 20px;	
		color:#FFF;
		font-size:13px; 
		background-color: #800000;    /* COLORE CELESTE ITEM MENU LIVELLO 3 */
	}
	
	nav ul ul ul a:hover {
		background-color: #808080;
	}
	
	nav ul li ul li .toggle {
		padding:14px 20px;	
		color:#FFF;
		font-size:13px; 
	}
  

	nav ul ul ul ul a {
		padding:14px 20px;	
		color:#FFF;
		font-size:13px;
		background-color: #669999;   /* COLORE CELESTE ITEM MENU LIVELLO 4 */
	}
  
	nav ul li ul li ul li .toggle {
		background-color: #800000;    /* COLORE CELESTE ITEM MENU LIVELLO 3 */
	}
	
	nav ul li ul li .toggle,
	nav ul ul a {
		padding:14px 20px;	
		color:#FFF;
		font-size:13px; 
		background-color: #999999;    /* COLORE GRIGIO ITEM MENU LIVELLO 2 */
	}

	/* Hide Dropdowns by Default */
	nav ul ul {
		float: none;
		position:static;
		color: #ffffff;
		/* has to be the same number as the "line-height" of "nav a" */
	}
		
	/* Hide menus on hover */
	nav ul ul li:hover > ul,
	nav ul li:hover > ul {
		display: none;
	}
		
	/* Fisrt Tier Dropdown */
	nav ul ul li {
		display: block;
		width: 100%;
	}

	nav ul ul ul li {
		position: static;
		/* has to be the same number as the "width" of "nav ul ul li" */ 

	}

}

@media all and (max-width : 330px) {

	nav ul li {
		display:block;
		width: 100%;
	}

}
