/*#####-----struttura-----#####*/

* {
  margin: 0;
  padding: 0;
}

html,body{margin: 0;padding:0;height:100%;}

body {
  margin: 0;
  padding: 0;
  background: #FFF url(../images/background_body_3.jpg);
  color: #000000;
  font-family: Arial, Helvetica, Verdana, sans-serif;
  text-align: left;
  font-size: .76em;
  line-height: 1.5em; 
}

#fondi{
	position: relative;
	text-align: left;
	width: 873px;
  	margin: 0 auto;
	background: #fff url(../images/background_fondi.gif) repeat-y;
}

#wrapper {
	width: 760px;
	background: transparent url(../images/background_wrapper.gif) repeat-y;
	margin: 0 56px;
}

/*body>div#wrapper{height: auto; min-height: 100%;}*/

#branding {
  height: 180px;
  background-color: #fff;
  background-image: url(../images/brand.gif);
  background-repeat: no-repeat;
  padding: 0;
  margin: 0;
}

#header {
  height: 180px;
  background-image: url(../images/header.jpg);
  background-repeat: no-repeat;
  padding-bottom: 10px;
}

#main {
  display: table;
  border-collapse: collapse;
}

#main .inner {
  display: table-row;
}

#nav {
  display: table-cell;
  width: 180px;
  background-color: #e7dbcd;
  height: 100%;
}

#content {
  display: table-cell;
  width: 560px;
  padding-left: 15px;
  padding-right: 10px;
  margin: 0;
  text-align: justify;
}

#gallerycontent {
  display: table-cell;
  width: 560px;
  padding-left: 15px;
  padding-right: 10px;
  margin: 0;
  text-align: justify;
}

#footer {
	width: 760px;
  border-top: 2px solid #d7ad7b;
  background-color: #e7dbcd;
  font-size: 90%;
  padding: 0;
  text-align: right;
  clear: both;
  margin: 0;
}

#clear {
	display: block;
	clear: both;
	width: 100%;
	height:1px;
	overflow:hidden;
}

/*#####-----tipografico-----#####*/

h1 {
  text-indent: -9999px;
}

h2 {
	font-size: 180%;
	font-weight: normal;
	margin-bottom: 0.4em;
	color: #5a3811; 
	border-bottom: 1px solid #5a3811; 
	line-height: 1.8em;
}

h3 {
	font-size: 160%;
	font-weight: normal;
	margin-bottom: 0.6em;
	margin-top: 1.2em;
	color: #800000; 
	font-family: Georgia, serif;
	font-style: italic;
	line-height: 1.6em;
}

h4 {
	font-size: 140%;
	font-weight: normal;
	margin-bottom: 0.6em;
	margin-top: 1.2em;
	color: #556400; 
	font-family: Georgia, serif;
	font-style: italic;
}

h5 {
	font-size: 120%;
	font-weight: normal;
	margin-bottom: 0.6em;
	margin-top: 1.2em;
	color: #606060; 
	font-family: Georgia, serif;
	font-style: italic;
}

h6 {
	font-size: 100%;
	font-weight: normal;
	margin-bottom: 0.6em;
	margin-top: 1.2em;
	color: #000; 
	font-family: Georgia, serif;
	font-style: italic;
}

#content ul, ol {
	margin-left: 1.8em;
}

#content em {
	font-weight: bold;
	font-style: normal;
}

#content strong {
	font-weight: bold;
	font-style: normal;
}

#content a:link, a:visited {
	color: #5a3811;
	text-decoration: none;
	border-bottom: 2px solid #5a3811;
}

#content a:hover {
	color: #800000;
	text-decoration: none;
	border-bottom: 2px solid #800000;
}

p {
  padding-bottom: 1em;
} 

p.contatore {
	border-top: 1px solid #000;
}

p.sottotitolo {
	font-style: italic;
	font-size: 0.9em;
}

#footer p {
	padding: 0.64em;
}

#footer a:link, a:visited {
	color: #5a3811;
	text-decoration: none;
	border-bottom: 2px solid #5a3811;
}

#footer a:hover {
	color: #800000;
	text-decoration: none;
	border-bottom: 2px solid #800000;
}

/*#####-----navigazione-----#####*/

#nav ul {
  list-style: none;
}

#nav li {
  width: 180px;
}

#nav a:link, #nav a:visited {
  text-decoration: none;
  color: #5a3811;
  background-color: transparent;
  display: block;
  padding: 0.3em 10px 0.3em 10px;
  border-bottom: 4px solid #d7c9b9;
}

#nav a:hover {
  border-bottom: 4px solid #fff;
}

/*#####################*/
/*######___gallerie___#######*/
/*####################*/

#gallery {
	width:100%;
	background-color: #fff;
	}

#gallery ul {
	list-style:none;
	padding:0;
	margin:0;
	}

#gallery ul li {
	display:inline;
	padding: 10px;
	float:left;
	margin: 5px;
	border: 1px solid #303030;
	}

#gallery ul li a {
	display:block;
	text-decoration:none;
	border:1px solid #646464;
	}

#gallery ul li a img {
	display:block;
	height:64px;
	width:auto;
	border:0;
	}

#gallery ul li a:hover {
	display:block;
	text-decoration:none;
	border:1px solid #960000;
	}
	
/*##################*/
/*###___form e moduli___###*/
/*##################*/

fieldset {
	padding: 1em;
	margin: 1em;
	border: 1px solid #5a3811;
	}
	
input, textarea {
	border: 1px solid #5a3811;
	background-color: #eeeeee;
}

label {
	color: #101010;
	font-weight: bold;
	display: block;
	margin: 1em 0 0.4em 0;
}

legend {
	font-size: 120%;
	font-weight: bold;
}

p.par_errore {
	min-height: 36px;
	padding-left: 36px;
	background-color: #ff0000;
	background: #ff0000 url(../risorse/messagebox_warning.png) top left no-repeat;
	color: #fff;
	font-weight: bold;
	border: 1px solid #000;
}
	
p.par_successo {
	min-height: 36px;
	padding-left: 36px;
	background: #dbedb7 url(../risorse/apply.png) top left no-repeat;
	color: #000;
	font-weight: bold;
	border: 1px solid #000;
}

span.minitext {
	font-size:small;
	padding: 1em;
}

span.disable {
	background-color: red;
	color: white;
	font-size: small;
	padding: 0.3em;
}