/*********************************************************
 * COMMONS
 * 
 *********************************************************/

/* Per avere la centratura della colonna singola si utilizza la proprietà text-align:center e il div#container */
body {
	text-align: center;
	background-image: url('img/bg_grid.png');
	background-color: black;
	color: #BC8F8F; /*rosybrown*/
	font-family: Verdana, sans-serif;
	font-size: 100%;
}

a {
	color: #DEB887; /*BurlyWood*/
	font-family:sans-serif;
	text-decoration: none;
}

a:link, a:visited {

}

a:hover {
	text-decoration: underline;
}

a img {border: none; } 

.ghost {
	display: none;
}

ul.flat {
	padding:0;
	margin:0;
	list-style-type:none;
}
ul.flat li {
	display: inline;
}

p {
	font-size: 1em;
}

ul.diamond, ul.nodot {
	list-style-type:none;
	padding:0px;
	margin:0px;
}

ul.diamond li {
	background-image:url(img/list_dot.png);
	background-repeat:no-repeat;
	background-position:0px 5px;
	padding-left:20px;
}

/*********************************************************
 * NO-BOX STYLE
 * 
 *********************************************************/

/*
 * HEADER
 * 
 */

h1.title {
	color:#FAFF4C;
	font-family: "Bank Gothic",Arial,sans-serif;
	font-size:3.2em;
	font-variant:small-caps;
	margin:0px;
	position:relative;
	z-index:2;
}

h4.title {
	/*color:#986462;*/
	color: #BC8F8F;  /*rosybrown*/
	font-family:"Courier New",monospace;
	font-size:1.5em;
	margin:-15px 0px 0px 20px;
}

h1.title a, h4.title a {
	color: inherit; /*BurlyWood*/
	font: inherit;
	text-decoration: none;
}

/*
 * MENU
 * 
 */

a.img_lang_link {
	padding:0px;
	margin:0px;	
	text-decoration: none;
	display: inline;
	height: 30px;
}

img.lang {
	margin: 0px;
	padding: 0px;
	margin-top:5px;
}

/*
 * NAVBAR
 * 
 */

div#navbar a {
	color:#FAFF4C;
	font-family:sans-serif;
	line-height:30px;
	font-variant:small-caps;
	/*text-transform:uppercase;*/
	text-decoration: none;
	font-weight:bold;
}

li.selected a {
	text-decoration: underline !important ;
}

div#navbar a:hover {
	text-decoration: underline;
}

/*
 * MAIN
 * 
 */

h2.title {
	color:#FAFF4C;
	font-family:sans-serif;
	/*font-variant:small-caps;*/
	text-transform:uppercase;
	margin:0px 0px 10px 0px;	
}

div#main p {
	margin-bottom: 0px;
	text-align:justify;
}

div#main a[href$='.pdf'] {
display:inline-block;
padding-right:14px;
background:transparent url(img/link_doc.png) center right no-repeat;
}

div#main a.external {
display:inline-block;
padding-right:14px;
background:transparent url(img/link_external.png) center right no-repeat;
}

div#main img {
	margin: 5px;
}

div#main table.center {
	margin-left:auto;
	margin-right:auto;
}


div#main table {
	border-collapse:collapse;
	/*border: 2px solid rgb(242,39,22);*/
	margin: 16px 0px 0px 0px;
}

div#main th {
	/*border-style: none none solid none;
	border-width: 0px 0px 0px 0px;
	border-color: green green blue green;*/
	padding: 2px 5px 2px 2px;
	border: 2px solid rgb(242,39,22);
	color:#FAFF4C;
}

div#main td {
	padding: 2px 4px;
	border: 2px solid rgb(242,39,22);
}

div#main table img {
	margin: 2px 0px 0px 4px;
	float: right;
}

/*
 * SIDEBAR
 * 
 */

h3.title {
	color:#FAFF4C;
	font-family:sans-serif;
	/*font-variant:small-caps;*/
	text-transform:uppercase;
	margin:0px 0px 10px 0px;
}

div#sidebar p {
	margin: 3px;
}

div#sidebar a:hover {
	/*color: #FFCC66;*/
	color: #FAFF4C;	
	text-decoration: none;
}

/*
 * FOOTER
 * 
 */

div#footer p {
	font-size:0.7em;
	line-height: 30px;
	margin: 0px;
}

/*********************************************************
 * FORM STYLE
 * 
 *********************************************************/

form.themed legend {
	color: #FAFF4C;
	font-family: inherit;
	font-size: inherit;
	/*text-transform:uppercase;*/
	padding:0 5px;
   	/* Hack for IE 
	*margin-bottom: 1em; */
}

form.themed fieldset {
	border: 2px solid rgb(242,39,22);
	margin-top: 15px;
	padding: 20px;
	/* Hack for IE 
	*padding-top: 0; */
}


form.themed input[type="text"], textarea {
	border: 4px double rgb(242,39,22);
	background: transparent;
	color: inherit;
	font-size: 1em;
	font-family: "Courier New", monospace;
	padding: 2px;
	margin-bottom: 10px;
}


form.themed input[type="text"]:hover, textarea:hover {
	border: 4px solid rgb(242,39,22);
}

form.themed input[type="text"]:focus, textarea:focus {
	border: 4px solid #FAFF4C;
}

input[type="text"].inlined {
	margin: 0px !important;
}

label.inlined {
	display: inline;
}

input[type="submit"] {
	background-color: transparent;
	color: #FAFF4C;
	border: 4px double rgb(242,39,22);
	font-size: 1em;
}

input[type="submit"]:hover {
	border: 4px outset rgb(242,39,22);
}

input[type="submit"]:focus {
	border: 4px outset #FAFF4C;
}

input[type="submit"]:active {
	border: 4px inset #FAFF4C;
}

form.themed b.error {
	color: red;
}

form.themed b.ok {
	color: green;
}

form.themed p {
	margin-top: 0;
}

/*********************************************************
 * SEMANTIC SECTION
 * 
 *********************************************************/

/*
 * CONTAINER
 * 
 */

/* Tramite l'impostazione di una larghezza e dei margini auto si centra il contenuto del sito su una singola colonna */
div#container {
	width: 640px;
	margin: 0px auto;
	text-align: left;
}

/*
 * TOP
 * 
 */

div#top {
	width:640px;
	height:200px;
	position: relative;
}

/*
 * HEADER
 * 
 */

/* Background della parte principale dell'header */
div#header_bg_box {
	width: 480px;
	height: 200px;
	background-repeat: no-repeat;
	position: absolute;
	left: 0px;
	top: 0px;
	background: url('img/template_red.png') 0 0 no-repeat;;
}

div#header {
	height:90px;
	left:30px;
	padding: 30px 20px;
	top:25px;
	width:315px;
	position: absolute;
}

/*
 * MENU
 * 
 */

div#menu_bg_box {
	width: 295px;
	height: 200px;
	left: 345px;
	top: 0px;
	position: absolute;
}

div#menu_bg_s1 {
	width: 220px;
	left: 75px;
	top: 0px;
	background: url('img/template_red.png') -420px -200px no-repeat;
}

div#menu_bg_s2 {
	width: 245px;
	left: 50px;
	top: 40px;
	background: url('img/template_red.png') -395px -440px no-repeat;
}

div#menu_bg_s3 {
	width: 270px;
	left: 25px;
	top: 80px;
	background: url('img/template_red.png') -370px -680px no-repeat;
}

div#menu_bg_s4 {
	width: 295px;
	left: 0px;
	top: 120px;
	background: url('img/template_red.png') -345px -920px no-repeat;
}

.menu_bg {
	position: absolute;
	height: 80px;
}

#menu {
	width: 295px;
	height: 200px;
	left: 345px;
	top: 0px;
	position: absolute;
}

.menu_content {
	position:absolute;
	text-align: right;	
}

#menu_s1 {
	height:23px;
	left:125px;
	padding:3px 11px;
	top:25px;
	width:118px;
}

#menu_s2 {
	top: 65px;
	left: 100px;
	width: 165px;
	height: 30px;
}

#menu_s3 {
	top: 105px;
	left: 70px;
	width: 195px;
	height: 30px;
}

#menu_s4 {
	left: 45px;
	top: 145px;
	width: 220px;
	height: 30px;
}

/*
 * NAVBAR
 * 
 */

div#navbar {
	margin-top: -35px;
	margin-bottom: -45px;
	width: 640px;
	height: 90px;
}

#navbar_start {
	float: left;
	width: 100px;
	height: 90px;
	background: url('img/template_red.png') -0px -1000px no-repeat;
}

#navbar_end {
	float: left;
	width: 85px;
	height: 90px;
	background: url('img/template_red.png') -555px -1000px no-repeat;
	clear: right;
}

.bar_no_se {
	float: left;
	width: 70px;
	height: 90px;
	background: url('img/template_red.png') -415px -1000px no-repeat;
	background-repeat: no-repeat;

}

.bar_so_ne {
	float: left;
	width: 70px;
	height: 90px;
	background: url('img/template_red.png') -280px -1000px no-repeat;
	background-repeat: no-repeat;

}

.navbar_bg {
	float: left;
	background-image:url('img/navbar_content.png');
	background-repeat: repeat-x;
	height: 90px;

}

.navbar_content {
	padding: 30px 0px 30px 0px;
	/* Margini negativi per poter usare 15px di diffusione dei separatori */
	margin: 0px -15px 0px -15px;
	height: 30px;
	position: relative;

}

/*
 * MAIN
 * 
 */

div#main {
	width: 640px;
	margin-bottom:-30px;
	margin-top:-25px;
}

div#main_start {
	width: 640px;
	height: 45px;
	background: url('img/template_red.png') -0px -1090px no-repeat;
}

div#main_bg {
	width: 640px;
	background-image:url('img/main_content.png');
	background-repeat: repeat-y;
/*	background: url('img/template_red.png') -0px -1155px repeat-y;
	background-repeat: repeat-y;
*/	
}

div#main_content {
	padding: 0px 50px;
	margin: 0px 0px;
}

div#main_end {
	width: 640px;
	height: 65px;
	background: url('img/template_red.png') -0px -1280px no-repeat;
}

/*
 * SIDEBAR
 * 
 */

div#sidebar {
	width: 640px;
	margin-top: -35px;
	margin-bottom: -40px;
}

div#sidebar_start {
	width: 640px;
	height: 80px;
	background: url('img/template_red.png') -0px -1345px no-repeat;
}

div#sidebar_bg {
	width: 640px;
	background-image:url('img/sidebar_content.png');
	background-repeat: repeat-y;
}

div#sidebar_end {
	width: 640px;
	height: 80px;
	background: url('img/template_red.png') -0px -1510px no-repeat;
	z-index: -1;
}

div#sidebar_content {
	padding: 0px 70px;
}

div.sidebar_envelop {
	float:left;
	margin-bottom:-50px;
	margin-top:-25px;
	width: 500px;
}

div.sidebar_container {
	padding-left: 160px;
  	padding-right: 160px;
}

div.sidebar_container .column {
	float: left;
}

div.sidebar_left {
	width: 160px;
	margin-left: -160px;
}

div.sidebar_center {
	width: 100%;
}

div.sidebar_right {
	width: 160px;
	margin-right:-160px;

}

div.sidebar_footer {
	clear: both;
}

/*
 * FOOTER
 * 
 */

div#footer {
	width: 640px;
	height: 85px;
	background: url('img/template_red.png') -0px -1590px no-repeat;
	background-repeat: no-repeat;
}

div#footer_left_content, div#footer_right_content {
	width: 140px;
	height: 30px;
	padding: 5px;
}

div#footer_left_content {
	position: relative;
	top: 25px;
	left: 130px;
	text-align: right;
	padding: 5px;
}

div#footer_right_content {
	position: relative;
	text-align: left;
	left: 360px;
	top: -15px;
	padding: 5px;
}