A { color: #000000; text-decoration: none; }
A:hover { color: #DF7000; }
hr	{ height: 0; border: solid #D1D7DC 0; border-top-width: 1px;}

/* VISTA FORUM */
#el-spalla { background-color: #F0F0F0; width: 95%; }
#div_topics { width: 100%; }

@media screen and (min-width: 660px) {
	#forum_container { padding-right: 218px; }
	#div_topics { float: left; }
	#el-spalla { float: right; width: 210px; margin-right: -218px; }
}


#tab_topics { width: 100%; border-collapse: collapse; }
#tab_topics TH, #tab_topics TD { padding: 0; }

.paginaz, .paginaz_disc { width: 100%; font-size: 11px; text-align: center; clear: both; margin: 4px; }

#tab_topics TH {
	text-align: center; white-space: nowrap;
	font-size: .8em;
	background: #8C8C8C url('img/cellpic3.gif');
	color: #FFEAEA;
	padding: .2em 0;
}
#tab_topics TD { height: 2.1em; border-top: 1pt solid #990000; }
.thCornerL { text-align: left; padding-left: 16px; }
.pari { background-color: #FFD782; }
.dispari { background-color: #FFE19D; }
.trsel { background-color: #FFC862; }
TD.tit_disc { }
.img_disc { margin: 2px 3px 0 2px; }
A.disc_tit:link, A.disc_tit:visited {
	color: #333366;
	font-style: normal;
	font-weight: bold;
	text-decoration: none;
}
a.disc_tit:hover { color: #555588; }
.autore { font-size: .8em; font-style: italic; }
.sondaggio { font-weight: bold; font-size: 11px; }

.risp { font-size: .9em; font-weight: bold; }
.risp, .dati { text-align: center; vertical-align: middle; }
.dati { font-size: .8em; line-height: 1.2em; color: #990000; }

/* Anteprima pop-up */
BODY { overflow: hidden; }
#dek {
	position: absolute; visibility: hidden; z-index: 400; top: 0; left: 0;
	width: 400px; padding: .3em;
	/* Anche se invisibile occupa spazio: sugli schermi stretti non deve allargare la pagina */
	max-width: calc(100vw - 20px); box-sizing: border-box;
	border: 1px solid #664500;
	background-color: #FFE9BB;
	font-size: 1em; line-height: 1.2em;
	color: black;
}

/* Box ricerca */
#box_cerca { padding: 10px 4px; margin-top: 5px; margin-bottom: 10px; }
#box_cerca LABEL { font-size: .9em; }
#q_cerca { width: 160px; }

/* Box elenco forum */
#box-forums {
	background-color: #FFE9BB;
	width: 95%;
	margin: 5px auto;
	border: 1px solid #8C8C8C;
}
#box-forums H1 {
	font-weight: bold;
	font-size: .9em;
	width: 100%;
	text-align: center;
	border-bottom: 1px solid #8C8C8C;
	background-color: #FFD782;
}
#box-forums UL { margin: .3em .5em; }
#box-forums LI {margin: .5em 0; font-size: .95em; }
#box-forums A { color: #6C1800; font-weight: bold;  }

/**** VISTA DISCUSSIONE *****/
.titolo_disc { font-weight: bold; margin: 1em 0; }
.titolo_disc A, .titolo_disc A :visited, .titolo_disc A:link { color: #6C1800; }

#messaggi { width: 100%; }
#tab_messaggi TH {
	color: #FFEAEA;
	background: #990000 url('img/cellpic3.gif');
	font-size: .85em;
	padding: .2em .5em;
}
#tab_messaggi .box_autore { background: #FFD782;  }
TD.box_autore {
	vertical-align: top;
	text-align: center;
	padding: .4em .4em 1.5em;
	width: 125px;
	font-size: .8em;
}
.username { text-align: right; font-weight: bold; font-size: 1.2em; margin: .2em .4em .4em; }
.avatar { text-align: center; }
TD.messaggio { background: #FFE9BB !important; vertical-align: top; }
.int_msg {
	height: 16px;
	font-size: .9em;
	color: #5B0F25;
	background: #FFD782;
	padding: .2em 0 .2em .5em;
}
.dt_msg { float: right; margin-right: .4em; }
.inviato { color: #B95C00; }
.testo_msg { font-size: 13px; padding: .3em .8em; }
.testo_msg P { margin: 0.6em 0; }
.modificato { font-size: 10px; color: #5B0F25; }
.space_row { border-top: 1px solid #804040; }

.paginaz_disc { text-align: right; padding: 4px 0; }

#sondaggio { background: #F2F2F2; padding: 10px; }
#sondaggio TABLE { margin: 0 auto; }
#sondaggio CAPTION { font-weight: bold; }
.perc { font-weight: bold; text-align: right; }
#sondaggio DIV { text-align: center; font-weight: bold; }

.allegato {
	border-top: 1px solid #e3e3e3; border-bottom: 1px solid #e3e3e3;
	text-align: center;
	font-size: 0.9em;
}
.allegato .ico { vertical-align: bottom; }
.allegato A { font-weight: bold; }

/* Contenuti dei messaggi: immagini e video non devono uscire dalla colonna, né i link lunghi allargarla */
.testo_msg, .allegato { overflow-wrap: break-word; word-wrap: break-word; }
.testo_msg IMG, .allegato IMG { max-width: 100%; height: auto; }
.testo_msg IFRAME, .testo_msg OBJECT, .testo_msg EMBED { max-width: 100%; }

/* Schermi stretti: autore sopra il messaggio invece che in una colonna a fianco */
@media screen and (max-width: 600px) {
	#tab_messaggi, #tab_messaggi TBODY, #tab_messaggi TR, #tab_messaggi TD { display: block; width: auto; }
	#tab_messaggi TH { display: none; }
	TD.box_autore { text-align: left; padding: .4em .6em; overflow: hidden; }
	TD.box_autore .username { display: inline; text-align: left; margin: 0 .4em 0 0; }
	TD.box_autore .avatar { float: left; margin: 0 .6em 0 0; text-align: left; }
	TD.box_autore .avatar IMG { max-width: 48px; height: auto; }
	.int_msg { height: auto; overflow: hidden; }
	.testo_msg { padding: .3em .5em; }
	.quote-cont { width: 100%; }
	#sondaggio IMG { max-width: 30vw; }
	#sondaggio { padding: 10px 0; }
}

.quote-cont { width: 90%; margin: 10px auto; }
.quote-tit { font-size: 0.85em; font-weight: bold; }
.quote {
	background-color: #F5F5F5;
	border: 1px dotted #808080;
	color: #555544;
	font-style: italic;
	padding-left: 10px;
}