﻿@import url("layout.css");

{
box-sizing: border-box;
}

body {
font-family: "Georgia", "Times New Roman", Times, serif;
font-size: 0.8em;

background-attachment: scroll;
background-color: #e6d98f;
background-image: url("../images/background.gif");
background-position: top left;
background-repeat: repeat-x;


}

#container {
width: 100%;
margin-top: 57px;

border-bottom: 2px solid #a0522d;
background-color: #fff;


}

/* =====================================================
TESTATA ORIGINALE
===================================================== */

#masthead {
width: 700px;
margin-right: auto;
margin-left: auto;
padding-top: 5px;
padding-bottom: 5px;
}

#masthead h1 {
font-weight: normal;
color: #daa520;
text-transform: uppercase;
float: left;
margin-top: 5px;
display: inline;
}

#masthead h3 {
font-weight: normal;
color: #965;
float: left;
margin-top: 10px;
margin-left: 30px;
display: inline;
}

/* =====================================================
NAVIGAZIONE ORIGINALE
===================================================== */

#navigation {
width: 700px;
margin-right: auto;
margin-left: auto;
clear: both;
overflow: hidden;
margin-bottom: 10px;
}

#navigation ul {
list-style-type: none;
width: auto;
margin: 0;
padding: 0;
}

#navigation li {
float: left;
}

#navigation a {
text-decoration: none;
color: #a0522d;
display: block;
margin: 0 1px;
padding: 5px;
border: 1px solid #708090;
background-color: #edb;
}

#navigation a:hover {
text-decoration: none;
color: #edb;
background-color: #a0522d;
}

/* =====================================================
PAGINA
===================================================== */

#page_content {
position: relative;
width: 700px;
margin-right: auto;
margin-left: auto;
}

/* =====================================================
CONTENT
===================================================== */

#content {
position: relative;

float: left;

width: 600px;
max-width: 600px;

padding-top: 5px;
padding-bottom: 5px;

text-align: left;

overflow: visible;


}

/* =====================================================
SEZIONE NEWS
===================================================== */

.news_heading {
display: flex;
align-items: center;

width: 600px;
max-width: 600px;

margin: 0 0 18px 0;
padding: 12px 16px;

box-sizing: border-box;

background:
	linear-gradient(
		135deg,
		#fffaf1,
		#f7ead4
	);

border-left: 5px solid #a0522d;

border-radius: 4px;

box-shadow:
	0 1px 4px
	rgba(80, 50, 20, 0.08);

gap: 12px;

overflow: hidden;


}

.news_heading_icon {
width: 42px;
height: 42px;

min-width: 42px;

display: flex;

align-items: center;
justify-content: center;

border-radius: 50%;

background-color: #8b4513;

color: #ffffff;

font-size: 24px;

line-height: 1;

flex-shrink: 0;


}

.news_heading_text {
min-width: 0;
flex: 1;
}

.news_heading_text h2 {
margin: 0;

color: #7b3f12;

font-size: 25px;

font-weight: normal;

line-height: 1.1;


}

.news_heading_text p {
margin: 3px 0 0 0;

color: #806b5c;

font-size: 13px;


}

/* =====================================================
RIQUADRO CORPO NEWS
===================================================== */

.news_detail {
display: block;

width: 600px;
max-width: 600px;

margin: 0;
padding: 0;

box-sizing: border-box;

background-color: #ffffff;

border: 1px solid #eadfd4;

border-radius: 4px;

box-shadow:
	0 1px 4px
	rgba(70, 45, 20, 0.08);

overflow: hidden;


}

/* =====================================================
IMMAGINE
===================================================== */

.news_image_container {
width: 100%;
max-width: 100%;

padding: 18px 18px 0 18px;

box-sizing: border-box;

text-align: center;

background-color: #faf7f2;

overflow: hidden;


}

.news_image_container .news_image {
display: block;

width: auto;
max-width: 100%;

height: auto;

margin-left: auto;
margin-right: auto;

padding: 0;

border: 1px solid #d7c4ad;

border-radius: 5px;

box-shadow:
	0 2px 6px
	rgba(0, 0, 0, 0.10);


}

/* =====================================================
TITOLO
===================================================== */

.news_title {
width: 100%;
max-width: 100%;

margin: 0;

padding: 20px 28px 8px 28px;

box-sizing: border-box;

color: #7b3f12;

font-size: 27px;

font-weight: normal;

line-height: 1.25;

overflow-wrap: break-word;
word-wrap: break-word;


}

/* =====================================================
DATA
===================================================== */

.news_date {
display: inline-flex;

align-items: center;

gap: 7px;

margin: 0 28px 18px 28px;

padding: 5px 11px;

box-sizing: border-box;

background-color: #f4eadb;

border-radius: 20px;

color: #80552e;

font-size: 13px;


}

/* =====================================================
NUOVA ICONA CALENDARIO
===================================================== */

.calendar_icon {
position: relative;

display: inline-block;

width: 16px;
height: 15px;

min-width: 16px;

flex-shrink: 0;

background-color: #8b4513;

border: 1px solid #74370e;

border-radius: 2px;

vertical-align: middle;


}

/* linea superiore del calendario */

.calendar_icon::before {
content: "";

position: absolute;

left: 2px;
right: 2px;
top: 4px;

height: 1px;

background-color: #ffffff;


}

/* anelli superiori del calendario */

.calendar_icon::after {
content: "";

position: absolute;

left: 4px;
top: -3px;

width: 2px;
height: 5px;

background-color: #8b4513;

box-shadow:
	6px 0 0 #8b4513;


}

/* =====================================================
TESTO
===================================================== */

.news_text {
width: 100%;
max-width: 100%;

margin: 0;

padding: 0 28px 10px 28px;

box-sizing: border-box;

font-size: 16px;

line-height: 1.75;

color: #40342c;

overflow-wrap: break-word;
word-wrap: break-word;


}

.news_text p {
margin-top: 0;
margin-bottom: 17px;
}

.news_text .intro {
font-size: 18px;
color: #5c4029;
}

/* =====================================================
PROTEZIONE CONTENUTI
===================================================== */

.news_detail img {
max-width: 100% !important;
height: auto !important;
}

.news_detail table {
max-width: 100% !important;
}

.news_detail iframe {
max-width: 100% !important;
}

.news_detail embed {
max-width: 100% !important;
}

.news_detail object {
max-width: 100% !important;
}

/* =====================================================
CONTINUA / ALLEGATO
===================================================== */

.news_link {
width: auto;

max-width: calc(100% - 56px);

margin: 20px 28px 25px 28px;


}

.news_link a {
display: block;

width: 100%;
max-width: 100%;

padding: 11px 15px;

box-sizing: border-box;

background-color: #8b4513;

border: 1px solid #74370e;

border-radius: 6px;

color: #ffffff !important;

text-decoration: none !important;

font-size: 14px;

box-shadow:
	0 2px 5px
	rgba(80, 40, 10, 0.16);


}

.news_link a:hover {
background-color: #a0522d;

color: #ffffff !important;

text-decoration: none !important;

box-shadow:
	0 4px 8px
	rgba(80, 40, 10, 0.20);


}

/* =====================================================
SIDEBAR ORIGINALE
===================================================== */

#sidebar {
float: right;
width: 380px;
padding-top: 5px;
padding-bottom: 5px;
text-align: left;
}

/* =====================================================
FOOTER ORIGINALE
===================================================== */

#footer {
clear: both;
width: 700px;
margin-right: auto;
margin-left: auto;
text-align: left;
margin-top: 10px;
margin-bottom: 10px;
}

#footer p {
font-size: 0.85em;
color: #808080;
}

#footer a {
color: #a0522d;
text-decoration: underline;
}

#footer a:hover {
color: #800000;
text-decoration: none;
}

/* =====================================================
LINK ORIGINALI
===================================================== */

a {
color: #a0522d;
text-decoration: underline;
}

a:hover {
color: #800000;
text-decoration: underline;
}

/* =====================================================
STILI VARI
===================================================== */

.style_bold {
font-weight: bold;
}

.style_italic {
font-style: italic;
}

/* =====================================================
RESPONSIVE
===================================================== */

@media screen and (max-width: 720px) {

#masthead,
#navigation,
#page_content,
#footer {
	width: auto;
	margin-left: 12px;
	margin-right: 12px;
}

#masthead {
	overflow: hidden;
}

#masthead h1 {
	float: none;
	display: block;
	margin-top: 5px;
}

#masthead h3 {
	float: none;
	display: block;
	margin-top: 5px;
	margin-left: 0;
}

#navigation {
	overflow: hidden;
}

#content {
	float: none;

	width: 100%;
	max-width: 100%;
}

.news_heading {
	width: 100%;
	max-width: 100%;
}

.news_detail {
	width: 100%;
	max-width: 100%;
}

.news_title {
	padding-left: 18px;
	padding-right: 18px;
}

.news_date {
	margin-left: 18px;
	margin-right: 18px;
}

.news_text {
	padding-left: 18px;
	padding-right: 18px;
}

.news_link {
	margin-left: 18px;
	margin-right: 18px;

	max-width: calc(100% - 36px);
}


}

/* =====================================================
SMARTPHONE
===================================================== */

@media screen and (max-width: 480px) {

#container {
	margin-top: 0;
}

.news_heading {
	padding: 10px 12px;
	gap: 9px;
}

.news_heading_icon {
	width: 38px;
	height: 38px;
	min-width: 38px;
	font-size: 21px;
}

.news_heading_text h2 {
	font-size: 21px;
}

.news_heading_text p {
	font-size: 11px;
}

.news_title {
	font-size: 22px;
}

.news_text {
	font-size: 14px;
	line-height: 1.65;
}

.news_link {
	margin-left: 15px;
	margin-right: 15px;

	max-width: calc(100% - 30px);
}


}