/* Generic reconstruction of the27th-tg Joomla template
   Original theme CSS was not preserved in the archive; this is a clean,
   minimal stylesheet that restores a coherent 3-column layout and
   institutional typography. */

* { box-sizing: border-box; }

body {
	margin: 0;
	padding: 0;
	font-family: "Georgia", "Times New Roman", serif;
	font-size: 15px;
	line-height: 1.6;
	color: #2b2b2b;
	background: #ece7df;
}

a { color: #8a1c1c; text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; }

/* ---- outer frame ---- */
.tg-top, .tg-bottom { width: 100%; }

#tg, .tg {
	max-width: 1000px;
	margin: 0 auto;
	background: #ffffff;
	box-shadow: 0 0 14px rgba(0,0,0,.12);
}

/* ---- header ---- */
#template-top {
	background: #8a1c1c;
	color: #fff;
	padding: 22px 26px;
}
#template-top .template-top- { }
#logo {
	min-height: 46px;
	font-family: "Georgia", serif;
	font-size: 22px;
	font-weight: bold;
	letter-spacing: .3px;
	color: #fff;
}
#logo:empty::after {
	content: "Comitato Nazionale per la Valorizzazione dei Beni Culturali e Ambientali";
	display: block;
}
#template-top-second { }

/* ---- top utility bar (rss / search) ---- */
#template-menu {
	background: #6f1616;
	padding: 8px 26px;
}
#hornav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 10px;
}
#hornav .moduletable { display: inline-block; }
.bcarss_feed a { color: #ffdede; font-size: 13px; }
.search input.inputbox {
	padding: 5px 8px;
	border: 1px solid #ccc;
	font-size: 13px;
	width: 170px;
}
.search input.button {
	padding: 5px 12px;
	border: 0;
	background: #d8b34a;
	color: #3a2a00;
	font-weight: bold;
	cursor: pointer;
}

/* ---- main 3-column grid ---- */
#template { padding: 0; }
#template-center4 {
	display: flex;
	align-items: flex-start;
	gap: 22px;
	padding: 24px 26px;
}
#allsidebar-left { flex: 0 0 200px; }
#template-center-center4 { flex: 1 1 auto; min-width: 0; }
#allsidebar-right { flex: 0 0 210px; }

@media (max-width: 860px) {
	#template-center4 { flex-direction: column; }
	#allsidebar-left, #allsidebar-right { flex-basis: auto; width: 100%; }
}

/* ---- sidebar modules ---- */
.module, .module_menu {
	margin-bottom: 20px;
	background: #f6f2ea;
	border: 1px solid #e2d8c6;
	border-radius: 3px;
}
.module .inner, .module_menu .inner { padding: 10px 12px; }
.module h3, .module_menu h3 {
	margin: 0 0 8px;
	padding-bottom: 6px;
	border-bottom: 2px solid #8a1c1c;
	font-size: 15px;
	color: #6f1616;
	text-transform: uppercase;
	letter-spacing: .4px;
}

ul.menu, ul.latestnews, ul.mostread {
	list-style: none;
	margin: 0;
	padding: 0;
}
ul.menu li, ul.latestnews li, ul.mostread li {
	border-bottom: 1px solid #e6ddcc;
}
ul.menu li:last-child, ul.latestnews li:last-child, ul.mostread li:last-child {
	border-bottom: 0;
}
ul.menu li a, ul.latestnews li a, ul.mostread li a {
	display: block;
	padding: 7px 4px;
	color: #333;
	font-size: 14px;
}
ul.menu li a span { color: inherit; }
ul.menu li.active a, ul.menu li#current a { color: #8a1c1c; font-weight: bold; }
ul.menu li a:hover, ul.latestnews li a:hover, ul.mostread li a:hover {
	color: #8a1c1c;
	text-decoration: none;
}
ul.menu li span { display: block; padding: 7px 4px; color: #777; }

/* ---- article / content ---- */
table.blog, table.contentpaneopen, table.tg_contentpaneopen {
	width: 100%;
	border-collapse: collapse;
}
.contentheading {
	font-family: "Georgia", serif;
	font-size: 20px;
	line-height: 1.3;
	color: #6f1616;
	padding: 6px 0 4px;
	border-bottom: 1px solid #e2d8c6;
}
.buttonheading { width: 24px; }
.small { color: #888; font-size: 12px; font-style: italic; }
.createdate, .modifydate { color: #999; font-size: 12px; padding: 2px 0 10px; }
.contentpaneopen td { vertical-align: top; }
.contentpaneopen p { margin: 0 0 12px; }
.article_separator { display: block; height: 26px; }

a.readon {
	display: inline-block;
	margin: 4px 0 10px;
	padding: 6px 14px;
	background: #8a1c1c;
	color: #fff;
	font-size: 13px;
	border-radius: 2px;
}
a.readon:hover { background: #6f1616; text-decoration: none; }

.blog_more { margin-top: 14px; padding-top: 10px; border-top: 1px solid #e2d8c6; }
.blog_more ul { padding-left: 18px; }
.blog_more li { margin: 4px 0; }

ul.tg-pagination {
	list-style: none;
	padding: 0;
	margin: 16px 0;
	text-align: center;
}
ul.tg-pagination li {
	display: inline-block;
	margin: 0 2px;
}
ul.tg-pagination li a {
	padding: 3px 7px;
	border: 1px solid #e2d8c6;
	color: #8a1c1c;
	border-radius: 2px;
}

/* ---- footer ---- */
#tg-bottom-menu {
	background: #6f1616;
	color: #f3e7e7;
	padding: 14px 26px;
	font-size: 11px;
	line-height: 1.5;
}
#tg-bottom-menu a { color: #ffdede; }
#credit font { color: #f3e7e7 !important; }

.clearfix::after { content: ""; display: table; clear: both; }
