html, * { margin: 0; padding: 0; box-sizing: border-box; }
body { background: #fff; text-align: left; font-family: "Titillium Web", Tahoma, Verdana, Arial, sans-serif; color: #000; }

@media screen and (min-width: 320px) {
	div.delimiter { width: 320px; max-width: 320px; margin: 0 auto; padding: 0; }
}
@media screen and (min-width: 480px) {
	div.delimiter { width: 480px; max-width: 480px; margin: 0 auto; padding: 0; }
}
@media screen and (min-width: 768px) {
	div.delimiter { width: 768px; max-width: 768px; margin: 0 auto; padding: 0; }
}
@media screen and (min-width: 1024px) {
	div.delimiter { width: 1024px; max-width: 1024px; margin: 0 auto; padding: 0; }
}

h1 { font-size: 1.6em; }
h2 { font-size: 1.4em; }
h3 { font-size: 1.1em; }

a { text-decoration: none; }
a:hover { text-decoration: underline; }
a img, a:hover img, a img:hover { text-decoration: none; border: 0; }

ul { padding-left: 15px; }





/* **************************************************************************************************** */





header { background: #fff; color: #30373d; }
header .head { background: #30373d; }
header .head a { display: inline-block; font-size: 1.0em; font-weight: bold; padding: 10px 0px; color: #fff; }
header .head a#rt { margin-left: 5px; }
header .head a#spid { float: right; background: #0065cb; padding: 10px 15px; }
header .head a#spid span { font-size: 1.3em; margin-right: 10px; }
header .head .social { float: right; margin-right: 8px; }
header .head .social .icon { display: inline-block; background: #fff; color: #30373d; width: 26px; height: 26px; line-height: 26px; text-align: center; border-radius: 13px; margin: 8px 2px; padding: 5px; line-height: 16px; }
header .head .social .icon:hover { background: #eaeaea; }

header .body #toggle-menu { display: block; float: left; margin-left: 10px; background: none; border: none; text-align: left; color: #30373d; font-size: 1.2em; cursor: pointer; }
header .body #toggle-menu .line { display: block; background-color: #30373d; width: 35px; height: 3px; border-radius: 1px; margin: 0px 0px 6px; }
header .body #toggle-menu .line:last-child { margin-bottom: 3px; }
header .body #toggle-menu:after {
	display: block;
	width: 35px;
	position: relative;
	content: "MENU";
	font-size: 0.6em;
	font-weight: bold;
	color: #30373d;
	text-align: center;
}

header .body .search { margin: 10px 10px 0px 0px; text-align: right; }
header .body .search form input { display: inline-block; background: #fff; border: 1px solid #eaeaea; width: 200px; padding: 10px; font-size: 0.9em; }
header .body .search form button { display: inline-block; border: none; }
header .body .search form button span { background: #14508f; border: 1px solid #14508f; color: #fff; font-size: 1.2em; padding: 10px 15px; }

header .body h1.logo { background: transparent url('/assets/img/logo.png') 5px 10px no-repeat; background-size: 80px auto; min-height: 125px; padding: 35px 0px 0px 95px; font-size: 1.6em; line-height: 1.0em; }
header .body h1.logo a { color: inherit; }
header .body h1.logo span { font-size: 0.6em; font-weight: lighter; }
header .body h1.logo span:before {
	content: "\A";
	display: block;
	height: 0;
	font-size: 0;
	line-height: 0;
	clear: both;
	visibility: hidden;
}

@media screen and (min-width: 768px) {
	header .body { padding: 10px 0px; }
	
	header .body #toggle-menu { margin: 35px 0px 0px 45px; }
	header .body #toggle-menu .line { width: 40px; margin: 0px 0px 7px; }
	header .body #toggle-menu:after { width: 40px; font-size: 0.7em; }
	
	header .body .search { float: right; margin-top: 25px; }
	header .body h1.logo { float: left; }
	
	header .body:after {
		content: "\A";
		display: block;
		height: 0;
		font-size: 0;
		line-height: 0;
		clear: both;
		visibility: hidden;
	}
}





nav#accesso-rapido { display: block; background: #2060a3; border-color: #30373d; border-width: 0px 0px 1px; border-style: solid; }
nav#accesso-rapido ul { padding: 0px; list-style-type: none; text-align: center; }
nav#accesso-rapido ul li { display: inline; }
nav#accesso-rapido ul li a { display: inline-block; color: #fff; font-size: 0.95em; padding: 7px 15px; border-color: #fff; border-width: 0px 0px 0px 1px; border-style: solid; }
nav#accesso-rapido ul li:first-child a { border: none; }
nav#accesso-rapido ul li a:hover { background: #fff; color: #2060a3; text-decoration: none; }
nav#accesso-rapido ul li:last-child:after {
	content: "\A";
	display: block;
	height: 0;
	font-size: 0;
	line-height: 0;
	clear: both;
	visibility: hidden;
}
@media screen and (max-width: 768px) {
	nav#accesso-rapido { display: none; }
}





nav#root-menu {
	display: block;
	width: 300px;
	height: 100%;
	position: absolute;
	top: 0px;
	left: -302px;
	z-index: 999;
	overflow-y: scroll;
	background: #fff;
	border-right: 2px solid #ccc;
}
nav#root-menu p { background: #222; color: #fff; font-size: 1.9em; font-weight: lighter; padding: 9px 15px; border-color: #ccc; border-width: 0px 0px 2px 0px; border-style: solid; }
nav#root-menu p a { float: right; color: #fff; }
nav#root-menu ul { padding: 0px; list-style-type: none; }
nav#root-menu ul li { border-color: #f7f7f7; border-width: 0px 0px 2px 0px; border-style: solid; }
nav#root-menu ul li a { display: block; color: #222; font-size: 1em; padding: 13px 15px; }
nav#root-menu ul li a:hover, nav#root-menu ul li a.selected { background: #f7f7f7; }
nav#root-menu ul li a.selected { color: #2060a3; }
nav#root-menu ul li a span.collapse-ctrl { float: right; margin: 5px 0px; }
nav#root-menu ul li ul { display: none; border-color: #222; border-width: 2px 0px 0px 0px; border-style: solid; }
nav#root-menu ul li ul li { background: #f7f7f7; border: none; }
nav#root-menu ul li ul li a { padding: 7px 15px; }





div#panorama { margin: 0px auto; width: 100%; height: 350px; z-index: -999; }





/* **************************************************************************************************** */





#container { margin: 0px auto 150px; }



aside#breadcrumbs { background: #eaeaea; font-size: 1.0em; font-weight: lighter; padding: 15px 0px; }
aside#breadcrumbs a { color: #30373d; margin: 0px 5px; }
aside#breadcrumbs a:first-child { margin-left: 0px; }
aside#breadcrumbs a span { margin-right: 5px; }



section#main { margin: 15px 0px; }
section#main h1, section#main article { padding: 5px 0px; margin: 5px 0px; border-color: #f7f7f7; border-width: 0px 0px 3px 0px; border-style: solid; }
section#main article figure img { width: 100%; }
section#main article p { margin: 5px 0px; }
section#main article a { color: #2060a3; }

section#main article .preview { width: 180px; max-width: 180px; height: 150px; max-height: 150px; float: right; margin: 0px 0px 5px 5px; }
section#main article .preview:hover { filter: brightness(125%); }

section .datetime { font-size: 0.8em; font-style: italic; text-align: right; }

section#main article table.attachments { margin-top: 20px; margin-bottom: 40px; font-size: 0.95em; }
section#main article table.attachments td { padding: 5px; }
section#main article table.attachments tr:nth-child(odd), section#main article table.attachments tr.odd { background: #f1f1f1; }
section#main article table.attachments tr:nth-child(even), section#main article table.attachments tr.even { background: #fff; }

section .tags, section#main p.tags { background: #fff; padding: 10px 0px; margin-top: 35px; margin-bottom: 35px; border-width: 1px 0px 0px; border-color: #e0dEe8; border-style: dotted; font-size: 0.9em; }
section .tags span { font-weight: bold; }
section .tags a { color: #c00; }

section .pages { padding: 40px 0px; color: #30373d; text-align: center; }
section .pages:before { content: 'pag.'; margin-right: 5px; }
section .pages a { color: #2060a3; font-weight: bold; }
section .pages span { font-weight: bold; }
section .pages span:before { content: '['; }
section .pages span:after { content: ']'; }

/*.element .title, .element .title a { color: #005088; font-weight: bold; }
.element .preview { max-width: 150px; max-height: 120px; float: left; margin: 0px 5px 5px 0px; }
.element .datetime { font-weight: bold; font-style: normal; font-size: 11px; }
.element .readmore { text-align: right; float: right; }
.readall { text-align: right; }
.element .readmore a, .readall a { font-weight: bold; }
hr.separator { clear: both; border-style: dotted; border-color: #696969; border-width: 1px 0px 0px 0px; margin: 5px 0px; }

.list, .matrix { margin: 10px 0px; }

.matrix table { border: 0px; width: 600px; max-width: 600px; margin: 0px; }
.matrix table td { text-align: center; vertical-align: middle; padding: 5px; }
.matrix table td a img { max-width: 170px; }*/

.section { margin-bottom: 20px; margin-top: 20px;}
.section .title { font-size: 1.1em; font-weight: bold; }

.tabella { width: 100%; }
.tabella th { text-align: left; }
.tabella .odd { background: #f1f1f1; }
.tabella .even { background: #fff; }
.tabella td { padding: 2px; vertical-align: middle; }

.raccolta_documenti table { margin-top: 5px; }

.gallery { margin: 0px auto; text-align: center; }
.gallery a { margin: 10px 20px; border: 1px solid #ccc; display: inline-block; }
.gallery .preview { display: block; width: 150px; max-width: 150px; height: 120px; max-height: 120px; margin: 5px; }



aside#right { margin: 15px 0px; padding: 15px; background: #eaeaea; color: #30373d; }
aside#right p.title { font-weight: bold; }
aside#right ul { padding: 5px 0px 0px 5px; list-style-type: none; }
aside#right ul li { padding: 3px 0px; }
aside#right ul li:before {
	font-family: FontAwesome;
	font-size: 0.8em;
	content: '\f105';
	padding-right: 8px;
	color: #30373d;
}
aside#right ul li a { color: #30373d; }



section#main aside.social { background: #eaeaea; color: #30373d; font-size: 0.9em; padding: 15px; margin: 5px 0px 20px 0px; }
section#main aside.social h3 { font-weight: bold; padding-bottom: 4px; }
section#main aside.social a { color: #30373d; margin-right: 10px; }
section#main aside.social a.addthis span { margin-right: 5px; }



section#center:before {
	content: "\A";
	display: block;
	height: 0;
	font-size: 0;
	line-height: 0;
	clear: both;
	visibility: hidden;
}
section#center { width: 100%; background: #fff; }
section#center ul { padding: 0px; text-align: center; }
section#center ul li { display: block; float: left; width: 46%; margin: 5px 2%; background: #2060a3; color: #fff; text-align: left; }
@media screen and (min-width: 768px) {
	section#center ul li { width: 246px; margin: 5px; }
}
@media screen and (min-width: 1024px) {
	section#center ul li { width: 331px; }
}
section#center ul li a { display: block; color: #fff; height: 130px; padding: 10px; font-size: 1.1em; font-weight: 600; }
section#center ul li a span { display: inline-block; font-size: 1.2em; margin: 5px; }
section#center ul:after {
	content: "\A";
	display: block;
	height: 0;
	font-size: 0;
	line-height: 0;
	clear: both;
	visibility: hidden;
}



@media screen and (min-width: 768px) {
	#container { width: 768px; max-width: 768px; }
	section#main { float: left; width: 509px; } 
	aside#right { float: right; width: 234px; margin: 25px 0px 15px 25px; }
	aside.social { float: left; width: 509px; margin: 5px 0px 25px 0px; }
	#container:after, .delimiter:after {
		content: "\A";
		display: block;
		height: 0;
		font-size: 0;
		line-height: 0;
		clear: both;
		visibility: hidden;
	}
}

@media screen and (min-width: 1024px) {
	#container { width: 1024px; max-width: 1024px; }
	section#main { width: 725px; }
	aside.social { width: 725px; }
	aside#right { width: 274px; }
}





/* **************************************************************************************************** */





section#list h2 { padding: 20px 0px 5px; }
section#list article { padding: 20px 0px; border-width: 0px 0px 1px 0px; border-color: #eaeaea; border-style: solid; }
section#list article h3 { margin-bottom: 5px; }
section#list article h3 a { color: inherit; }
section#list article img.preview { float: left; margin: 0px 5px 5px 0px; }
section#list article a.next { display: block; color: #2060a3; text-align: right; font-weight: bold; text-transform: uppercase; font-size: 0.9em; }
section#list article a.next span { margin-right: 5px; }
section#list article a.next:after {
	content: "\A";
	display: block;
	height: 0;
	font-size: 0;
	line-height: 0;
	clear: both;
	visibility: hidden;
}

section#list p.no_results { padding: 20px 0px 30px; }



@media screen and (min-width: 768px) {
	section#list { float: left; width: 509px; } 
}

@media screen and (min-width: 1024px) {
	section#list { width: 725px; }
}





/* **************************************************************************************************** */





section#pp, section#buttons, section#avvisi, section#events, section#banners { margin: 0px; width: 100%; padding: 5px 0px; }
section#pp, section#events { background: #eaeaea; }
section#pp h3, section#buttons h3, section#avvisi h3, section#events h3, section#banners h3 { display: inline-block; padding: 5px; font-size: 1.3em; width: 235px; }

section#pp a.archive, section#avvisi a.archive, section#events a.archive { display: block; float: right; color: #000; font-size: 1.1em; margin: 8px 0px 4px; }
section#pp a.archive span, section#avvisi a.archive, section#events a.archive { color: #2060a3; margin-right: 5px; }



section#pp ul, section#avvisi ul, section#events ul { padding: 0px; }
section#pp ul li, section#avvisi ul li, section#events ul li { display: block; padding: 10px; }
section#pp ul li div, section#events ul li div { background: #fff; }
section#pp ul li div *, section#avvisi ul li *, section#events ul li div * { padding: 5px; }
section#pp ul li div a, section#avvisi ul li a, section#events ul li div a { padding: 0px; }
section#pp ul li img, section#events ul li img { width: 100%; height: auto; padding: 0px; }
@media screen and (min-width: 768px) {
	section#pp ul li, section#avvisi ul li, section#events ul li { width: 25%; float: left; padding: 0px 10px; margin: 10px 0px; }
	section#pp ul li div, section#avvisi ul li, section#events ul li div { min-height: 225px; }
	section#pp ul li:last-child:after, section#avvisi ul li:last-child:after, section#events ul li:last-child:after {
		content: "\A";
		display: block;
		height: 0;
		font-size: 0;
		line-height: 0;
		clear: both;
		visibility: hidden;
	}
}
section#pp ul li h4, section#avvisi ul li h4, section#events ul li h4 { font-size: 1.1em; }
section#pp ul li h4 a, section#avvisi ul li h4 a, section#events ul li h4 a { color: inherit; }



section#buttons { background: #f2f2f2; padding: 10px 0px; }
section#buttons ul { padding: 0px; text-align: center; }
section#buttons ul li { display: block; float: left; width: 46%; margin: 5px 2%; background: #2060a3; color: #fff; text-align: left; border-radius: 5px; }
@media screen and (min-width: 768px) {
	section#buttons ul li { width: 246px; margin: 5px; }
}
@media screen and (min-width: 1024px) {
	section#buttons ul li { width: 331px; }
}
section#buttons ul li a { display: block; color: #fff; height: 50px; padding: 5px; line-height: 40px; }
section#buttons ul li a span { display: inline-block; font-size: 1.2em; margin: 5px; }
section#buttons ul:after {
	content: "\A";
	display: block;
	height: 0;
	font-size: 0;
	line-height: 0;
	clear: both;
	visibility: hidden;
}



section#extra > div { padding: 5px; }

section#extra .comunicati_stampa ul { padding: 0px; }
section#extra .comunicati_stampa ul li { list-style-type: none; font-size: 0.9em; margin: 5px; border-width: 0px 0px 1px; border-style: dotted; border-color: #c4d5e6; }
section#extra .comunicati_stampa ul li a { color: #000; }
section#extra .comunicati_stampa ul li .datetime { font-style: initial; font-weight: bold; text-align: left; }
section#extra .comunicati_stampa ul li .title { text-transform: uppercase; }

section#extra .video_youtube .video_preview { margin: 5px 1%; }
section#extra .video_youtube .video_preview img { width: 100%; height: auto; }

@media screen and (min-width: 768px) {
	section#extra { margin: 15px 0px; }
	section#extra .comunicati_stampa { float: left; width: 50%; }
	section#extra .comunicati_stampa ul {
		column-count: 2;
		/*column-width: 50%; // ONLY IF FIXED! */
		column-gap: 1em;
		-moz-column-count: 2;
		/*-moz-column-width: 50%; // ONLY IF FIXED! */
		-moz-column-gap: 1em;
		-webkit-column-count: 2;
		/*-webkit-column-width: 50%; // ONLY IF FIXED! */
		-webkit-column-gap: 1em;
	}
	section#extra .video_youtube { float: right; width: 50%; }
	section#extra .video_youtube .video_preview { display: inline-block; width: 48%; margin-top: 0px; margin-bottom: 0px; }
	section#extra:after {
		content: "\A";
		display: block;
		height: 0;
		font-size: 0;
		line-height: 0;
		clear: both;
		visibility: hidden;
	}
}

section#extra a.archive { display: block; text-align: right; color: #000; font-size: 1em; margin: 4px 0px 2px; }
section#extra a.archive span { color: #2060a3; margin-right: 3px; }


section#avvisi { font-size: 0.9em; border-width: 0px 0px 2px 0px; border-color: #eaeaea; border-style: solid; text-align: left; }
section#avvisi p.datetime { font-size: 1em; border-width: 0px 0px 2px 0px; border-color: #eaeaea; border-style: solid; text-align: left; padding: 0px; margin: 5px; }
section#avvisi p.datetime::before { content: ""; position: absolute; width: 25px; height: 2px; background: #2060a3; margin-top: 23px; }
section#avvisi a.next { display: block; text-align: right; color: #2060a3; font-size: 1em; margin: 4px 0px 2px; }



section#banners ul { padding: 0px; }
section#banners ul li { display: block; padding: 10px; }
@media screen and (min-width: 768px) {
	section#banners ul li { width: 33%; float: left; }
	section#banners ul li:last-child:after {
		content: "\A";
		display: block;
		height: 0;
		font-size: 0;
		line-height: 0;
		clear: both;
		visibility: hidden;
	}
}
section#banners ul li a { display: block; padding: 0px; }
section#banners ul li a img { width: 100%; }





/* **************************************************************************************************** */





footer { background: #30373d; color: #fff; padding: 25px 0px 50px; }
footer a { color: #65dde0; }
footer ul { padding: 0px; list-style-type: none; }
footer ul li { border-color: #fff; border-width: 0px 0px 1px; border-style: solid; padding: 5px 3px; }

footer div { padding: 10px 0px; }
footer div div { padding: 0px; border-color: #fff; border-width: 3px 0px 0px; border-style: solid; }
footer div div:first-child { border: none; }
footer div div.info { font-size: 0.9em; }
footer div div.info p { margin: 3px 0px; }
footer div div.info p.logo { margin-top: 0px; background: transparent url('/assets/img/logo.png') left top no-repeat; background-size: 40px auto; padding-left: 50px; height: 60px; font-size: 1.4em; line-height: 1.2em; }
footer div div.info span { display: inline-block; width: 20px; text-align: center; }
footer div div.web_pa img { margin-top: 5px; }
footer div div.menu li:first-child { font-weight: bold; }

@media screen and (min-width: 768px) {
	footer div div { float: left; width: 31%; margin: 1%; }
	footer div:after {
		content: "\A";
		display: block;
		height: 0;
		font-size: 0;
		line-height: 0;
		clear: both;
		visibility: hidden;
	}
}





#toTop {
	display: block;
	position: fixed;
	bottom: 20px;
	right: 20px;
	z-index: 999;
	width: 40px;
	height: 40px;
	background-color: #2060a3;
	color: #fff;
	text-align: center;
	line-height: 30px;
	font-size: 1.3em;
	border: 2px solid #fff;
	border-radius: 20px;
	cursor: pointer;
	padding: 5px;
	line-height: 20px;
}





/* **************************************************************************************************** */





section form.gare { margin: 10px 0px; background: #2060a3; color: #fff; font-size: 0.9em; }
section form.gare div { padding: 5px 10px; }
section form.gare div:last-child { text-align: right; padding-left: 10px; padding-right: 10px; }
@media screen and (min-width: 768px) {
	section form.gare div { float: left; }
	section form.gare:after {
		content: "\A";
		display: block;
		height: 0;
		font-size: 0;
		line-height:0;
		clear: both;
		visibility: hidden;
	}
}
section form.gare input, section form.gare select, section form.gare button { padding: 2px; border: 1px solid #30373d; border-radius: 3px; max-width: 250px; }
section form.gare button { padding-left: 10px; padding-right: 10px; }

section article.gare dl { margin: 15px 5px; font-size: 0.9em; }
section article.gare dl dt { font-weight: bold; color: #2060a3; }
section article.gare dl dd { padding-bottom: 10px; }
@media screen and (min-width: 768px) {
	section article.gare dl { background: #2060a3;   border-width: 0px 1px 1px 0px; border-style: solid; border-color: #2060a3; }
	section article.gare dl dt { float: left; clear: left; width: 175px; text-align: right; color: #fff; padding: 5px; }
	section article.gare dl dt:after { content: ':'; }
	section article.gare dl dt:not(:first-child) { border-width: 1px 0px 0px 0px; border-style: solid; border-color: #fff; }
	section article.gare dl dd { margin-left: 175px; background: #fff; padding: 5px;   border-width: 1px 0px 0px; border-style: solid; border-color: #2060a3; }
	section article.gare dl dd p { padding: 0px 0px 5px; }
	section article.gare dl dd p:last-child { padding: 0px; }
	section article.gare dl dd:after {
		content: "\A";
		display: block;
		height: 0;
		font-size: 0;
		line-height:0;
		clear: both;
		visibility: hidden;
	}
}





form.web-module { margin-bottom: 15px; }
form.web-module fieldset { padding: 5px; margin: 15px 0px; border: 2px solid #2060a3; }
form.web-module legend { font-weight: bold; padding: 0px 5px; }
form.web-module label { display: block; }
form.web-module label + label, form.web-module div + div { margin-top: 10px; }
form.web-module label input { margin: 0px 5px; }
form.web-module input[type="submit"] { margin-top: 15px; padding: 3px 7px; background: #2060a3; color: #fff; border: 1px solid #30373d; font-size: 0.9em; }
/*form.web-module*/ .result { margin: 25px 0px !important; text-align: center; }
/*form.web-module*/ .result.ok { color: #096; font-style: italic; }
/*form.web-module*/ .result.error { color: #f00; font-weight: bold; }

.web-form p { margin: 10px 0px; }
.web-form label { display: block; font-weight: bold; }
.web-form label:after { content: ':'; }
.web-form input, .web-form select, .web-form textarea { padding: 2px; width: 100%; }
.web-form button { background: #14508f; border: none; color: #fff; font-size: 1em; padding: 5px 10px; margin: 10px 0px; }
@media screen and (min-width: 768px) {
	.web-form input { width: 50%; }
	.web-form select { width: 30%; }
	.web-form textarea { width: 80%; height: 100px; }
}