#header {
	position: relative;
	z-index: 999;
	background: rgb(255,255,255);
	background: -moz-linear-gradient(top,  rgba(255,255,255,1) 0%, rgba(231,231,231,1) 50%, rgba(231,231,231,1) 50%);
	background: -webkit-linear-gradient(top,  rgba(255,255,255,1) 0%,rgba(231,231,231,1) 50%,rgba(231,231,231,1) 50%);
	background: linear-gradient(to bottom,  rgba(255,255,255,1) 0%,rgba(231,231,231,1) 50%,rgba(231,231,231,1) 50%);
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#e7e7e7',GradientType=0 );
}
.ar_box {
	position: absolute;
	top: 10px;
	right: 301px;
	width: 260px;
	height: 50px;
	padding: 10px 0 10px 30px; 
	border-right: 1px solid #e0e0e0;
}
#response_form_login .ajax_response {
	 background: #fff;
	 z-index: 99999;
	 position: absolute;
	 padding: 5px;
	 border-radius: 5px;
}
.search_box {
	position: absolute;
	top: 10px;
	right: 0;
	width: 270px;
	height: 50px;
	padding: 10px 0 10px 30px; 
	border-left: 1px solid #fff;
}
#header h4 {
	height: 21px;
	margin: 0 0 5px 0;
}
#header h4 img {
	vertical-align: baseline;
}
#header input {
	display: inline-block;
	vertical-align: middle;
	border-radius: 3px;
	border: none;
	height: 20px;
	line-height: 20px;
	padding: 0 10px 0 22px;
	font-size: 12px;
	-webkit-box-shadow: inset 1px 1px 3px 0px rgba(0,0,0,0.75);
	-moz-box-shadow: inset 1px 1px 3px 0px rgba(0,0,0,0.75);
	box-shadow: inset 1px 1px 3px 0px rgba(0,0,0,0.75);
}
#header .ar_box input {
	width: 60px;
	padding-left: 10px;
}
#header button {
	display: inline-block;
	vertical-align: middle;
	line-height: 20px;
	padding: 0 10px;
	margin: 0 0 0 5px;
	color: #fff;
	font-size: 12px;
	border-radius: 3px;
	border: 0;
}
#logo {
	display: inline-block;
	padding: 5px 0 0 5px;
	box-sizing: border-box;
}
#nav {
	right: 0;
	padding: 0;
	box-sizing: border-box;
}
/*#nav::before {
	content: url("../img/close_menu.png");
	display: block;
	position: absolute;
	top: 0;
	left: 0;
}*/
#nav > li {
	position: relative;
	display: inline-block;
	vertical-align: top;
}
#nav > li:hover, #nav > li.selected {
	background: #da320b;
	border-top-left-radius: 10px;
	border-top-right-radius: 10px;
}
#nav > li > a {
	display: block;
	height: 31px;
	line-height: 31px;
	padding: 0 20px;
	color: #fff;
	font-size: 15px !important;
	text-transform: uppercase;
	border-right: 1px solid #000e67;
	border-left: 1px solid #4279a2;
}
#nav > li:first-child > a {
	border-left: none;
}
#nav > li:last-child > a {
	border-right: none;
}
#nav > li:hover > a,
#nav > li.selected > a{
	background: rgb(5,112,168);
	background: -moz-linear-gradient(top,  rgba(5,112,168,1) 0%, rgba(110,169,209,1) 100%);
	background: -webkit-linear-gradient(top,  rgba(5,112,168,1) 0%,rgba(110,169,209,1) 100%);
	background: linear-gradient(to bottom,  rgba(5,112,168,1) 0%,rgba(110,169,209,1) 100%);
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#0570a8', endColorstr='#6ea9d1',GradientType=0 );
}
#nav > li img {
	vertical-align: middle;
}

#nav ul.reset {
	position: absolute;
	top: 31px;
	left: 50%;
	padding: 0 10px;
	max-height: 0;
	transition: 0.25s;
	overflow: hidden;
	transform: translateX(-50%);
	-webkit-transform: translateX(-50%);
	background: rgb(110,169,209);
	background: -moz-linear-gradient(top,  rgba(110,169,209,1) 0%, rgba(5,112,168,1) 100%);
	background: -webkit-linear-gradient(top,  rgba(110,169,209,1) 0%,rgba(5,112,168,1) 100%);
	background: linear-gradient(to bottom,  rgba(110,169,209,1) 0%,rgba(5,112,168,1) 100%);
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#6ea9d1', endColorstr='#0570a8',GradientType=0 );
}
#nav > li:hover > ul.reset,
#nav > li.hover > ul.reset {
	padding: 10px;
	max-height: 500px;
	transition: 0.5s;
}
#nav ul li {
	white-space: nowrap;
}
#nav ul li a {
	display: block;
	padding: 2px 0;
	color: #fff;
	text-align: center;
}
#nav ul li:first-child > a {
	border-top: 0 !important;
}
#nav ul li:last-child > a {
	border-bottom: 0 !important;
}

.links_box {
	position: absolute;
	top: 0;
	right: 0;
	width: 226px;
	padding: 10px;
}
ul.reset.socials {
	margin: 0 0 5px 0;
}
ul.reset.socials li {
	display: inline-block;
	vertical-align: top;
	margin: 0 0 0 4px;
}
ul.reset.socials li:first-child {
	margin-left: 0;
}
ul.reset.socials li img {
	display: block;
}

ul.reset.links li {
	margin: 0 0 5px 0;
	text-align: left;
}
ul.reset.links li a {
	position: relative;
	display: block;
	padding: 6px 5px;
	padding-left: 68px;
	color: #fff;
	font-size: 14px;
	border-radius: 5px;
	box-sizing: border-box;
}
ul.reset.links li a img {
	position: absolute;
	top: 6px;
	left: 5px;
	height: 32px;
}
ul.reset.links li.openpolis a {
	color: #535353;
	border: 1px solid #dedede;
}
ul.reset.links li.openpolis a img {
	left: 15px;
}
.patrimoni a {
	background: #43bb98;
}
ul.reset.links li.patrimoni a img {
	left: 20px;
}
.camera a {
	background: #1f164f;
}
.ricerca_box {
	position: absolute;
	right: 0;
	bottom: 0;
	width: 246px;
	height: 35px;
	text-align: center;
	background: #3a9140;
}
.ricerca_box form {
	position: relative;
	width: 90%;
	margin: 6px auto 0 auto;
}
.ricerca_box input {
	width: 100%;
	height: 22px;
	padding: 0 0 0 30px;
	line-height: 24px;
	border-radius: 12px;
	box-sizing: border-box;
	background: #fff;
	border: 0;
}
.ricerca_box button {
	position: absolute;
	top: 5px;
	left: 5px;
}

#fb {
	position: absolute;
	top: 22px;
	right: 10px;
}

@media only screen and (max-width: 1000px){
	.links_box {
		position: static;
		top: 0;
		right: 0;
		width: auto;
		padding: 10px;
		text-align: center;
	}
	ul.reset.links li {
		display: inline-block;
		width: 230px;
		margin: 5px;
	}
	.ricerca_box {
		position: static;
		width: 100%;
	}
	.ricerca_box form {
		width: 100%;
	}
}