﻿@import url("layout.css");

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;
}


/* =========================
   MASTHEAD
   ========================= */

#masthead {
	width: 750px;
	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;
}


/* =========================
   NAVIGATION
   ========================= */

#navigation {
	width: 750px;
	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;
}


/* =========================
   CONTENITORE PRINCIPALE
   ========================= */

#page_content {
	position: relative;
	width: 750px;
	margin-right: auto;
	margin-left: auto;

	/*
	 * Usiamo flex invece dei vecchi float
	 * per permettere alla colonna sinistra
	 * di rimanere sticky.
	 */
	display: flex;
	align-items: flex-start;
}


/* =========================
   COLONNA SINISTRA
   ========================= */

#content {
	position: sticky;
	top: 10px;

	width: 239px;
	min-width: 239px;
	max-width: 239px;

	padding-top: 5px;
	padding-bottom: 5px;

	text-align: left;

	/*
	 * Impedisce alla colonna di restringersi.
	 */
	flex: 0 0 239px;

	/*
	 * Importante: la colonna rimane sopra
	 * mentre la pagina viene fatta scorrere.
	 */
	align-self: flex-start;
}


/*
 * Contenitore dell'iframe
 */
#content .content_box {
	width: 239px;
	margin: 0;
	padding: 0;
}


/*
 * Iframe
 */
#content iframe {
	display: block;
	width: 239px;
	height: 815px;
	border: 0;
	margin: 0;
	padding: 0;
}


/* =========================
   COLONNA DESTRA
   ========================= */

#sidebar {
	width: 490px;
	min-width: 490px;
	max-width: 490px;

	padding-top: 5px;
	padding-bottom: 5px;

	text-align: left;

	/*
	 * Distanza tra colonna sinistra
	 * e colonna destra.
	 */
	margin-left: 21px;

	flex: 0 0 490px;

	align-self: flex-start;
}


/* =========================
   CONTENT
   ========================= */

#content h1,
#content h2,
#content h3,
#content h4,
#content h5,
#content h6 {
	color: #a0522d;
}

#content img {
	padding: 5px;
	border: 1px solid #a0522d;
}


/* =========================
   SIDEBAR
   ========================= */

#sidebar p {
	color: #222;
}

#sidebar img {
	float: right;
	margin-bottom: 5px;
	margin-left: 5px;
}


/* =========================
   FOOTER
   ========================= */

#footer {
	clear: both;
	width: 750px;
	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
   ========================= */

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;
}