﻿@import url("layout.css");

/* =====================================================
   BODY
   ===================================================== */

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;

	margin: 0;
	padding: 0;
}


/* =====================================================
   CONTAINER
   ===================================================== */

#container {
	width: 100%;
	margin-top: 57px;

	border-bottom: none;

	background-color: #fff;

	min-height: 100vh;
}

/* =====================================================
   MASTHEAD
   ===================================================== */

#masthead {
	width: 800px;

	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: 800px;

	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;
}


/* =====================================================
   PAGE CONTENT
   ===================================================== */

#page_content {
	position: relative;

	width: 800px;

	margin-right: auto;
	margin-left: auto;
}


/* =====================================================
   CONTENT
   ===================================================== */

#content {
	position: relative;

	float: left;

	width: 700px;

	padding-top: 5px;
	padding-bottom: 5px;

	text-align: left;
}


/* =====================================================
   SIDEBAR
   ===================================================== */

#sidebar {
	display: none !important;
}


/* =====================================================
   CONTENT STYLES
   ===================================================== */

#content h1,
#content h2,
#content h3,
#content h4,
#content h5,
#content h6 {
	color: #a0522d;
}

#content img {
	padding: 5px;

	border: 1px solid #a0522d;
}


/* =====================================================
   FOOTER
   ===================================================== */

#footer {
	clear: both;

	width: 800px;

	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 STYLES
   ===================================================== */

a {
	color: #a0522d;

	text-decoration: underline;
}

a:hover {
	color: #800000;

	text-decoration: underline;
}


/* =====================================================
   GENERIC
   ===================================================== */

.style_bold {
	font-weight: bold;
}

.style_italic {
	font-style: italic;
}


/* =====================================================
   LAYOUT RICERCA
   ===================================================== */

#ricerca-layout {
	width: 100%;

	display: flex;

	align-items: flex-start;

	box-sizing: border-box;

	margin: 0;
	padding: 0;

	overflow: visible;
}


/* =====================================================
   COLONNA ANNO
   ===================================================== */

#ricerca-anno {
	width: 61px;
	min-width: 61px;
	max-width: 61px;

	flex: 0 0 61px;

	box-sizing: border-box;

	position: -webkit-sticky;
	position: sticky;

	top: 0;

	align-self: flex-start;

	z-index: 1000;

	background: #FBF7EE;

	border: 2px solid #000000;

	padding: 5px;
}


/* =====================================================
   COLONNA CENTRALE
   ===================================================== */

#ricerca-centro {
	flex: 1 1 auto;

	min-width: 0;

	box-sizing: border-box;

	position: relative;

	background: #fff;

	padding: 5px 8px;

	text-align: center;

	overflow: visible;
}


/* =====================================================
   COLONNA EVENTO
   ===================================================== */

#ricerca-evento {
	width: 274px;
	min-width: 274px;
	max-width: 274px;

	flex: 0 0 274px;

	box-sizing: border-box;

	position: -webkit-sticky;
	position: sticky;

	top: 0;

	align-self: flex-start;

	z-index: 1000;

	background: #FBF7EE;

	border: 2px solid #000000;

	padding: 5px;
}


/* =====================================================
   BOX RICERCA
   ===================================================== */

.ricerca-box {
	width: 100%;

	box-sizing: border-box;

	background: #FBF7EE;

	text-align: center;

	padding: 5px;
}


/* =====================================================
   TITOLO BOX
   ===================================================== */

.ricerca-titolo {
	text-align: center;

	margin-bottom: 5px;

	line-height: 1.4em;
}


/* =====================================================
   CONTENUTO BOX
   ===================================================== */

.ricerca-box-contenuto {
	width: 100%;

	box-sizing: border-box;

	text-align: center;

	overflow: visible;
}


/* =====================================================
   SELECT
   ===================================================== */

#ricerca-anno select,
#ricerca-evento select {
	max-width: 100%;

	box-sizing: border-box;
}


/* =====================================================
   INPUT
   ===================================================== */

#ricerca-anno input,
#ricerca-evento input {
	max-width: 100%;

	box-sizing: border-box;
}


/* =====================================================
   TABELLE CENTRALI
   ===================================================== */

#ricerca-centro table {
	max-width: 100%;

	box-sizing: border-box;
}


/* =====================================================
   IMMAGINI CENTRALI
   ===================================================== */

#ricerca-centro img {
	max-width: 100%;

	height: auto;
}


/* =====================================================
   STICKY DESKTOP
   ===================================================== */

@media screen and (min-width: 601px) {

	#ricerca-layout {
		width: 100%;

		display: flex;

		align-items: flex-start;

		overflow: visible;
	}

	#ricerca-anno {
		position: -webkit-sticky;
		position: sticky;

		top: 0;

		align-self: flex-start;
	}

	#ricerca-evento {
		position: -webkit-sticky;
		position: sticky;

		top: 0;

		align-self: flex-start;
	}
}


/* =====================================================
   TABLET
   ===================================================== */

@media screen and (max-width: 820px) {

	#masthead,
	#navigation,
	#page_content,
	#footer {
		width: 96%;
	}

	#content {
		width: 100%;

		float: none;
	}

	#ricerca-layout {
		width: 100%;
	}
}


/* =====================================================
   MOBILE
   ===================================================== */

@media screen and (max-width: 600px) {

	#container {
		margin-top: 10px;
	}

	#masthead {
		width: 96%;
	}

	#navigation {
		width: 96%;
		height: auto;
	}

	#navigation ul {
		width: 100%;
	}

	#navigation li {
		float: none;
		width: 100%;
	}

	#navigation a {
		text-align: center;
	}

	#page_content {
		width: 96%;
	}

	#content {
		width: 100%;

		float: none;
	}


	/* ---------------------------------------------
	   LAYOUT MOBILE
	   --------------------------------------------- */

	#ricerca-layout {
		display: flex;

		width: 100%;

		align-items: flex-start;

		overflow: visible;
	}


	/* ---------------------------------------------
	   ANNO MOBILE
	   --------------------------------------------- */

	#ricerca-anno {
		width: 61px;
		min-width: 61px;
		max-width: 61px;

		flex: 0 0 61px;

		position: -webkit-sticky;
		position: sticky;

		top: 0;

		align-self: flex-start;

		z-index: 1000;

		border: 2px solid #000000;

		background: #FBF7EE;

		padding: 3px;
	}


	/* ---------------------------------------------
	   CENTRO MOBILE
	   --------------------------------------------- */

	#ricerca-centro {
		flex: 1 1 auto;

		min-width: 0;

		padding: 5px 4px;

		background: #fff;
	}


	/* ---------------------------------------------
	   EVENTO MOBILE
	   --------------------------------------------- */

	#ricerca-evento {
		width: 110px;
		min-width: 110px;
		max-width: 110px;

		flex: 0 0 110px;

		position: -webkit-sticky;
		position: sticky;

		top: 0;

		align-self: flex-start;

		z-index: 1000;

		border: 2px solid #000000;

		background: #FBF7EE;

		padding: 3px;
	}
}


/* =====================================================
   STAMPA
   ===================================================== */

@media print {

	#ricerca-anno,
	#ricerca-evento {
		position: static;
	}

	#ricerca-centro {
		background: #fff;
	}

	body {
		background: #fff;
	}
}
