/*  Generated by www.menucool.com/horizontal/tab-menu  */

/* main menu
--------------------------------------------*/
ul#tabmenu {
	width: 100%;
	margin: 0 auto;
	/*If the menu has a width, this "margin:0 auto;" makes the menu center-aligned. You can remove it for left-alignment, or change it to "margin-left:auto; margin-right:0;" for right-alignment.*/
	text-align: center;
	list-style: none;
	padding: 0;
	font-size: 0;
	position: relative;
	min-height: 60px;
}

ul#tabmenu:after {
	content: '.';
	height: 0;
	clear: both;
	display: block;
	visibility: hidden;
}

ul#tabmenu li {
	display: inline;
	list-style: none;
	padding: 0;
	margin-top: 0;
	margin-bottom: 0;
	margin-left: -1px;
	margin-right: 0;
}

/*Main menu links*/
ul#tabmenu li a {
	letter-spacing: normal;
	color: #555555;
	padding: 5px 30px 0;
	line-height: 24px;
	font-size: 14px;
	font-weight: normal;
	font-family: Arial;
	text-decoration: none;
	display: inline-block;
	outline: 0;
	border: none;
	border-bottom: none;
	background: #FFFFFF url(bg-gray.gif) no-repeat 0 bottom;
	position: relative;
	top: 6px;
	z-index: 4;
}
/* If you've set the menu's javascript file with { preview:false }, you may want to specify the following hovered tab styles     
ul#tabmenu li a:hover {
    color: red;
    background: black;
}*/
ul#tabmenu li.active a { /*padding-bottom:1px;*/
	background: #FFFFFF url(bg-gray1.gif) no-repeat 0 bottom;
	color: #333333;
}

/* You can set active tab's style when hovered
ul#tabmenu li.active a:hover {
    color:green;
}*/

/* Secondary level sub-menu
----------------------------------------------------------*/
ul#tabmenu li.active ul, ul#tabmenu>li:first-child>ul {
	display: block;
	text-align: center;
	margin: 0;
	padding: 0;
	border: 1px solid #DEE2E9;
	border-top: 1px solid #C6CDD8;
	float: left;
	width: 100%;
	z-index: 3;
	border-radius: 3px;
}

ul#tabmenu li ul {
	display: none;
	letter-spacing: normal;
	background: #FFFFFF url(bg-gray2.gif) repeat-x 0 0;
}

ul#tabmenu li li {
	margin-left: 0px;
}

/*Sub-menu links*/
ul#tabmenu ul li a {
	color: #000000;
	padding: 0 18px;
	font-size: 14px;
	font-weight: normal;
	font-family: Arial;
	line-height: 36px;
	margin: 0;
	border: 0;
	/*top: 0;*/
	background: transparent;
}

ul#tabmenu li.active ul li.active a {
	color: #3399FF !important;
}

ul#tabmenu li.active li a, ul#tabmenu li.active li a:hover {
	color: #000000;
	border: 0;
	background: transparent;
}

ul#tabmenu ul li.subActive a, ul#tabmenu ul li a:hover {
	text-decoration: underline;
	color: #0066CC;
}

ul#tabmenu li.dummy a {
	padding: 0;
}

/*Third-level sub menu
------------------------------------------------------------*/
ul#tabmenu ul li li {
	font-size: 11px;
}

/* links */
ul#tabmenu ul li li a {
	line-height: 22px;
	padding: 0;
	white-space: nowrap;
	font-size: 11px;
	font-weight: normal;
	font-family: Arial;
}
/* non-active links */
ul#tabmenu ul li.subActive li a {
	color: #000000;
	text-decoration: none;
}
/* active link */
ul#tabmenu ul li.subActive li.subActive a, ul#tabmenu ul li.subActive li a:hover
	{
	color: #0066CC;
	text-decoration: underline;
}

ul#tabmenu li.active li li {
	display: block;
	*clear: both; /*IE hack*/
}

ul#tabmenu li.active ul ul {
	text-align: left;
	padding: 4px 24px 10px 24px;
	left: 0px; /*offset*/
	width: auto;
	background: #FFFFFF;
	border: 1px solid #DEE2E9;
	border-top: 0;
	*top: 36px;
	display: none;
	position: absolute;
	z-index: 4;
	border-radius: 0 0 4px 4px;
}

ul#tabmenu li.active li {
	position: relative;
}

/* MATTEO 12/05/2014
CUSTOM PER BRESCIA */
ul#tabmenu li.active ul, ul#tabmenu>li:first-child>ul {
	display: block;
	text-align: center;
	margin: 0;
	padding: 0;
	border: 0px solid;
	border-top: 11px solid #000;
	float: left;
	width: 100%;
	z-index: 3;
	border-radius: 0px;
	/* 	margin-top: -2px; */
}

ul#tabmenu li.active.blue-back ul {
	border-top: 11px solid #3399FF;
}

ul#tabmenu li.active.green-back ul {
	border-top: 11px solid #059C69;
}

ul#tabmenu li.active.yellow-back ul {
	border-top: 11px solid #FFA00E;
}

.parent {
	padding-left: 3px !important;
}

ul#tabmenu li ul {
	background: url(menu-back.png) repeat-x scroll 0 0 !important;
}

ul#tabmenu li ul li a {
	background: url(sep1.gif) no-repeat scroll 100% 0 transparent !important;
	color: #777777 !important;
	text-decoration: none !important;
	font-weight: bold !important;
	height: 50px;
	top: 0;
}

a.blue-back {
	background: #3399FF url(main_menu-bg.png) !important;
	border-top-left-radius: 5px;
	border-top-right-radius: 5px;
	font-weight: bold !important;
	color: #FFF !important;
}

a.green-back {
	background: #059C69 url(main_menu-bg.png) !important;
	border-top-left-radius: 5px;
	border-top-right-radius: 5px;
	font-weight: bold !important;
	color: #FFF !important;
}

a.yellow-back {
	background: #FFA00E url(main_menu-bg.png) !important;
	border-top-left-radius: 5px;
	border-top-right-radius: 5px;
	font-weight: bold !important;
	color: #FFF !important;
}

@media screen and (max-width: 768px) {
	ul#tabmenu li ul {
		background: white !important;
	}
}

/* FINE CUSTOM PER BRESCIA */