/* mainmenu */

div#mainmenu{
	clear:both;
	margin-top:25px;
	padding-bottom:50px;
}

div#mainmenu ul li{
	float:left;
	margin-right:10px;
	position:relative;
}

div#mainmenu ul li a{
	color:#989898;
	font-size:16px;
	text-decoration:none;
	font-weight:bold;
	width:85px;
	line-height:25px;
	height:27px;
	display:block;
	letter-spacing:-1px;
	text-align:center;
	width:120px;
}
div#mainmenu ul li a:hover{
	/*background-image:url(../images/it/bg_mainmenu_active.png);*/
	background-image:url(../images/it/bg_mainmenu_active_b.png);
	background-repeat:no-repeat;
	color:#fff;
}

div#mainmenu ul li#mmactive a{
	/*background-image:url(../images/it/bg_mainmenu_active.png);*/
	background-image:url(../images/it/bg_mainmenu_active_b.png);
	background-repeat:no-repeat;
	color:#fff;
}


/*--- DROPDOWN ---*/
div#mainmenu ul ul{
	background:rgba(255,255,255,0); /* But! Let's make the background fully transparent where we can, we don't actually want to see it if we can help it... */
	list-style:none;
	position:absolute;
	left:-9999px; /* Hide off-screen when not needed (this is more accessible than display:none;) */
	background-image:url(../images/it/bg_dropdown.gif);
	background-repeat:no-repeat;
	background-position:0 0;
	background-color:#cbd231;
	width:143px;
	padding:10px 0 5px 10px;
	z-index:10000;
}
div#mainmenu ul ul li{
	padding-top:1px; /* Introducing a padding between the li and the a give the illusion spaced items */
	float:none;
}
div#mainmenu ul ul a, div#mainmenu ul li#mmactive ul a{
	white-space:nowrap; /* Stop text wrapping and creating multi-line dropdown items */
	color:#505050;
	font-size:12px;
	font-weight:normal;
	letter-spacing:0;
	text-align:left;
}
div#mainmenu ul li:hover ul{ /* Display the dropdown on hover */
	left:0; /* Bring back on-screen when needed */
}
div#mainmenu ul li:hover a{ /* These create persistent hover states, meaning the top-most link stays 'hovered' even when your cursor has moved down the list. */
	/*background-image:url(../images/it/bg_mainmenu_active.png);*/
	background-image:url(../images/it/bg_mainmenu_active_b.png);
	background-repeat:no-repeat;
	color:#fff;
	text-decoration:none;
}
div#mainmenu ul li:hover ul a{ /* The persistent hover state does however create a global style for links even before they're hovered. Here we undo these effects. */
	text-decoration:none;
	color:#505050;
}
div#mainmenu ul li:hover ul li a:hover,  div#mainmenu ul li#mmactive ul a:hover{ /* Here we define the most explicit hover states--what happens when you hover each individual link. */
	color:#fff;
}

/* VARIAZIONI BUSINESS */

body#business div#mainmenu ul li a{
	width:120px;
}
body#business div#mainmenu ul li#mmactive a{background-image:url(../images/it/bg_mainmenu_active_b.png);}
body#business div#mainmenu ul li a:hover{background-image:url(../images/it/bg_mainmenu_active_b.png);}
body#business div#mainmenu ul li:hover a{background-image:url(../images/it/bg_mainmenu_active_b.png);}


