/********** SELETTORI ***********/

html {
    background-color: #B8B8B8;
}

body, input, textarea, select {
    font-family: 'Open Sans', helvetica, arial, tahoma, verdana, sans-serif;
    font-size: 100%;
}

body {
    text-align: center;
    line-height: 1.4em;
    margin-top: 1em;
}

img {
    border: 0;
}

em {
    font-style: italic;
}

p {
    margin: 0 0 1em 0;
}

a {
    color: black;
    text-decoration: underline;
}

input, textarea, select {
    padding: 0.3em;
    border: 1px solid #285B87;
}

input[type='submit']:active, input[type='reset']:active {
    position: relative;
    top: 1px;
}

textarea {
    width: 95%;
}

h1, h2, h3, h4 {
    margin-bottom: 0.3em;
}

h1 {
    font-size: 180%;
}

h2 {
    font-size: 160%;
}

h3 {
    font-size: 140%;
}

h4 {
    font-size: 110%;
}

label {
    font-style: italic;
}

form {
    width: 60%;
    margin: 0 auto;
    text-align: left;
}

form.small {
    width: 45%;
}

form.full {
    width: 100%;
}

fieldset {
    border: 1px solid #285B87;
    margin-top: 1em;
    padding: 0.5em;
    background-color: #c4daed;
}

fieldset legend {
    font-weight: bold;
    margin-left: 0.4em;
    padding: 0.3em;
}

ul, ol {
    margin:0;
    padding: 0;
}

ul li, ol li {
    margin-left: 2.5em;
    padding: 0.7em;
}

ul li {
    list-style: square;
}

ol li {
    list-style: decimal;
}

table {
    border-collapse: collapse;
    margin: 0;
    padding: 0;
    width: 100%;
}

th, td {
    border: 1px solid #285B87;
    padding: 0.3em;
    vertical-align: middle;
}

table th {
    background-color: #c4daed;
    font-weight: bold;
    text-align: center;
}

tbody tr:nth-child(even) {
    background-color: #F0F0F0;
}

/********** LAYOUT ***********/

#container {
    background: white url(images/sfumatura.jpg) repeat-x left top;
    width: 95%;
    margin: 0 auto;
    text-align: left;
    margin-top: 1em;
    padding: 0 0.5em 0.5em 0.5em;
}

#header {
	background: transparent url(images/logo.png) no-repeat center left;
    color: white;
    height: 125px;
    padding: 0.5em 0 0 0.5em;
    position: relative;
    z-index: 1;
}

#navbar, #footer {
    padding: 0.5em;	
    text-align: center;
    background-color: #285B87;
    color: white;
}

#navbar {
    font-weight: bold;
}

#navbar a, #footer a {
    color: white;
    text-decoration: none;	    
}

#navbar a {
    margin: 0 0.5em 0 0.5em;
    padding: 0.3em;
    border: 1px solid #285B87;
    text-transform: uppercase;
	transition: background-color 0.2s, color 0.2s;
}

#navbar a:hover {
    background-color: white;
    color: #285B87;
}

#footer a:hover {
    text-decoration: underline;
}

#breadcrumb {
    margin: 0 0 1.5em 0;
    font-size: 0.90em;
}

#breadcrumb span {
	font-weight: bold;
}

#sx {
    width: 300px;
    float: left;
}

#contentfull {
    padding: 1em 0 2em 0;
}

#content {
	padding: 1em 1em 2em 1em;
    margin-left: 300px;
}

#footer {
    clear: both;
    text-align: center;
    font-size: 90%;
    border-top: 1px dotted #B8B8B8;
}

#footer p.navigazione a {
    margin: 0 0.2em 0 0.2em;
    padding: 0.3em;
}

#validation {
    clear: both;
    margin: 1em 0 1em 0;
    padding: 0;
}

#validation a {
    text-decoration: none;
}

#infocookies {
    margin: 0 auto;
    padding: 0.5em;	
    text-align: center;
    background-color: white;
    color: black;
    width: 95%;
}

#infocookies a {
    color: black;
    text-decoration: underline;
    padding: 0.3em;
}

#utenteloggato {
    font-size: 90%;
    text-align: center;
    background-color: #c4daed;
    padding: 0.6em;
    margin: 0.2em 0 0.6em 0.2em;
    border: 1px solid white;
    color: black;
    position: absolute;
    bottom: 0;
    right: 0;
}

#utenteloggato p {
	margin-bottom: 0.2em;
}

#utenteloggato a {
	color: black;
	margin: 0 0.3em 0 0.3em;
}


/********** CLASSI SELETTORI ***********/

h4.pageheader {
	font-size: 120%;
    border-left: 1px solid #B8B8B8;
    border-bottom: 1px solid #B8B8B8;
    padding: 0.3em;
    font-weight: bold;
    margin-bottom: 1em;
}

div.menu {
    background-color: #E0E0E0;
    border: 1px solid #B8B8B8;
    margin: 0.5em 0 0.5em 0;
}

div.menu a {
    display: block;
    text-decoration: none;
    margin: 0.2em;
    padding: 0.2em;
    border-width: 1px;
    border-style: solid;
    border-color: #E0E0E0 #E0E0E0 #B8B8B8 #E0E0E0;
    transition: background-color 0.2s, border 0.2s;
}

div.menu a:hover {
	border-radius: 4px;
    background-color: white;
    border: 1px solid white;
}

div.menu a:last-child {
	border: none;
}

div.menu p {
    font-weight: bold;
    color: white;
    padding: 0.3em;
    background-color: #285B87;
    margin: 0;
}

ol.lettere li {
    list-style-type: lower-alpha;
}

p.separatore {
    margin-bottom: 0.2em;
}

div.mappa ul li {
    padding: 0.5em;
}

div.mappa p {
    font-weight: bold;
}

p.errore, p.msg {
    padding: 0.3em;
    font-style: italic;
    text-align: center;
    border: 1px solid gray;
    color: white;
}

p.errore {
    background-color: #8B0000;
}

p.msg {
    background-color: #006400;
}


/********** SELETTORI CSS3 ***********/

#container, 
#navbar,
#utenteloggato, 
#footer,
div.menu,
#navbar a,
input,
textarea,
select,
fieldset,
#infocookies,
p.errore,
p.msg {
    border-radius: 4px;
}

div.menu h3 {
    border-radius: 4px 4px 0 0;
}

textarea {
    resize: none;
}

div.menu ul li:last-child {
    border: 0;
}

/********** CLASSI GENERICHE ***********/

.floatleft {
    float: left;
}

.floatright {
    float: right;
}

.clearboth {
    clear: both;
}

.bold {
    font-weight: bold;
}

.underline {
    text-decoration: underline;
}

.left {
    text-align: left;
}

.center {
    text-align: center;
}

.right {
    text-align: right;
}

.italic {
    font-style: italic;
}

.fontred {
    color: red;
}

.fontgreen {
    color: green;
}

.dotted {
    border: 1px dotted #B8B8B8;
}

.dottedtop {
    border-top: 1px dotted #B8B8B8;
}

.nodisplay {
    display: none;
}

.smallfont {
    font-size: 90%;
}

