@charset "UTF-8";

/*
 * Organizzazione del documento
 * 
 * -RESET
 * -MEDIA
 * -SPECIAL
 * -selettori per tag
 * -selettori per Classi
 * -selettori per Id
 */ /*  RESET  */
* {
	padding: 0;
	margin: 0;
}

ol,ul {
	margin-left: 27px;
	margin-top: 5px;
}

li {
	margin-top: 10px;
}

/*  MEDIA  */
@media screen {
	#footer {
		display: none;
	}
	body {
		margin: 0 10mm 0 10mm;
	}
}

@media print {
	* {
		page-break-inside: avoid;
	}
	ol,ul,li,h1,h2,h3,h4,h5,h6,dl,table {
		page-break-before: auto;
	}
	ol,ul,li,dl,table {
		page-break-inside: auto;
	}
}

/*  SPECIAL  */
@page {
	margin: 10mm 10mm 10mm 10mm;
	@bottom-left { 
		content: "Pag. " counter(page) " di " counter(pages);
		font-style: italic;
		padding-bottom:5mm;
		padding-left:10mm;
		font-size:0.6em;
	}
	@bottom {
		content: flow(docfooter);
		padding-bottom:5mm;
	    font-size:0.7em;
	}
}

/*  ------------------------------ selettori per tag ------------------------------  */
body {
	color: #000;
	background-color: #fff !important;
	font-family: Times New Roman, serif;
	font-size: 10pt;
	background-image: url('stampa_di_prova.png');
	background-repeat: repeat-y;
	background-position: right 0;
}

div {
	width: 100%;
	margin-left: auto;
	margin-right: auto;
	margin-top: 5px;
}

p {
	text-align: justify;
}

pre {
	font-family: Times New Roman, serif;
	font-size: 1em;
	text-align: justify;
}

em {
	font-style: italic;
}

strong {
	font-weight: bold;
}

/* intestazioni */
h1 {
	border: 0.2mm solid #000;
	font-weight: bold;
	font-size: 1.5em;
	padding: 1mm;
}

h2 {
	padding: 0.5mm;
	margin-top: 5mm;
	margin-bottom: 12mm;
	border: 0.2mm solid black;
	font-weight: bold;
	font-size: 1.1em;
	color: white;
	background-color: #145eaf;
	text-align: center;
	text-transform: uppercase;
}

h3 {
	padding: 0.5mm 1.5mm;
	margin-top: 5mm;
	margin-bottom: 4mm;
	border: 1px solid black;
	font-weight: bold;
	font-size: 1em;
	text-align: left;
	text-transform: uppercase;
	background-color: #b0b0b0;
}

h4 {
	text-align: center;
	font-weight: bold;
	font-size: 1.2em;
}

h5 {
	margin-top: 5mm;
	margin-bottom: 4mm;
	font-size: 1.1em;
	font-weight: bold;
}

h6 {
	
}

/* Liste */
ul {
	list-style-type: none;
}

/* Tabelle */
table {
	margin-top: 2mm;
	width: 100%;
	border: 1px solid #838383;
	padding: 0px;
	border-collapse: collapse;
	border-spacing: 0;
}

caption {
	background-color: #349;
	color: white;
	font-weight: bold;
	font-size: 1.1em;
	padding: 2px;
	text-transform: uppercase;
}

th {
	background-color: #e6e6e6;
	text-align: justify;
	font-weight: normal;
}

thead th {
	text-align: center;
	font-weight: bold;
}

th,td {
	border-bottom: 1px solid #838383;
	border-right: 1px solid #838383;
	padding: 0.15em;
}

/* Definizioni */
dl {
	
}

dt {
	display: inline-block;
	padding: 0.8mm 0.8mm 0.8mm 0;
	font-weight: bold;
	width: 54mm !important;
	vertical-align: top;
	text-align: left;
	border-top: 1px dashed #eee;
}

dt:after {
	content: ":";
}

dd {
	display: inline-block;
	padding: 0.8mm 0 0.8mm 0.8mm;
	width: 133mm;
	text-align: justify;
	vertical-align: top;
	border-top: 1px dashed #eee;
}

/*  ------------------------------ selettori per Classe ------------------------------  */
body.definitivo {
	background-image: url('filigrana.png');
}

div.frontespizio {
	margin-bottom: 2mm;
	color: white;
	text-align: center;
	font-weight: bold;
	background-color: #00008a;
	white-space: pre-line;
}

p.anagrafica,p.indirizzo {
	padding-top: 5px;
	padding-bottom: 5px;
}

p.descrizione {
	padding-top: 5px;
	padding-bottom: 5px;
	white-space: pre-line;
}

div.frontespizio p {
	text-align: center;
}

div.frontespizio h1 {
	border: 0;
	margin: 0;
	padding: 0;
	font-size: 2.5em;
	text-transform: uppercase;
}

div.frontespizio *:first-child {
	font-size: 2.5em;
}

div.frontespizio strong {
	text-decoration: underline;
}

div.ente_competente {
	margin-top: 2mm;
	margin-bottom: 2mm;
	width: 100%;
	text-align: right;
	font-size: 1.1em;
	white-space: pre-line;
}

div.ente_competente span {
	display: block;
}

.input {
	margin-left: 1mm;
	margin-right: 1mm;
	font-style: italic;
}

.nota {
	color: red;
}

.area_testo {
	padding: 3px;
	border: 1px solid black;
	margin: 4mm 0mm 3mm 0mm;
	text-align: justify;
}

.area_testo .input {
	display: block;
	white-space: pre-wrap;
}

.titolo_area {
	display: block;
	font-weight: bold;
}

.radio_on,.radio_off,.check_on,.check_off,.upload {
	padding-left: 17px;
	background-repeat: no-repeat;
	background-position: left top;
}

.radio_on {
	background-image: url('radio_on.png');
}

.radio_off {
	background-image: url('radio_off.png');
}

.check_on {
	background-image: url('check_on.png');
}

.check_off {
	background-image: url('check_off.png');
}

.upload {
	background-image: url('upload.png');
}

/* Tabelle */
table.cronoprogramma {
	font-size: 0.8em;
}

tr.totale,td.totale,th.totale {
	background-color: #e6e6e6;
}

tr.parziale {
	background-color: #9e9e9e;
	font-weight: bold;
}

tr.parziale th {
	background-color: #9e9e9e;
}

tr.sottosezione {
	background-color: #ffff66;
}

tr.sottosezione th {
	background-color: #ffff66;
}

tr.sottosezione td:first-child {
	text-align: center;
	font-weight: bold;
}

td.money {
	text-align: right;
}

td.numeric,td.unita_misura {
	text-align: center;
}

td.off {
	content: '';
	background-color: #000 !important;
}

/*  Liste  */
ol.dichiarazioni>li>span.dichiara {
	text-decoration: underline;
}

ul.disc {
	list-style-type: disc;
}

ul.disc>li>ul {
	list-style-type: circle;
}

ul.legenda  li {
	margin: 0px;
	font-size: 0.9em;
}

ul.upload {
	background-image: none;
	padding-left: 0px;
}

ul.upload li {
	padding-left: 17px;
	background-repeat: no-repeat;
	background-position: left top;
	background-image: url('upload.png');
}

/*  ------------------------------ selettori per Id ------------------------------  */
#footer {
	text-align: center;
	flow: static(docfooter);
}