body {
	background: #00628b url("../img/bg_gradient.png") repeat-x top left;
}

a {
	text-decoration: none;
	color: #00628b;
}

a:hover {
	text-decoration: underline;
}

#top_giuliano {
	float: left;
	margin: 0;
	padding: 0;
	width: 330px;
	height: 300px;
	background: url("../img/top_giuliano.png") no-repeat top left;
}

#title_giuliano {
	float: right;
	margin: 0;
	padding: 0;
	width: 630px;
	height: 300px;
	background: url("../img/title_giuliano_pdl_5.png") no-repeat top left;
}

#nav {
	list-style-type: none;
	list-style-position:outside;
	position: relative;
	margin: 0;
	padding: 0;
	width: 940px;
	margin-left: 10px;
}

#nav li {
	display: block;
	overflow: hidden;
	padding: 0;
	cursor: pointer;
	float: left;
	width: 160px;
	height: 60px;
	margin-left: 0;
}

#nav li#nav_home, #nav li#nav_contattami { width: 150px; }

#nav a{
	display:block;
	height:60px;
	text-indent:-9999px;
	outline:none;
	background-image: url("../img/menu2.png");
	background-repeat: no-repeat;
}

#nav_home a { background-position: 0px 0px; }
#nav_chi_sono a { background-position: -150px 0px; }
#nav_comunicati a { background-position: -310px 0px; }
#nav_agenda a { background-position: -470px 0px; }
#nav_media a { background-position: -630px 0px; }
#nav_contattami a { background-position: -790px 0px; }

#nav_home a.active { background-position: 0px bottom; }
#nav_chi_sono a.active { background-position: -150px bottom; }
#nav_comunicati a.active { background-position: -310px bottom; }
#nav_agenda a.active { background-position: -470px bottom; }
#nav_media a.active { background-position: -630px bottom; }
#nav_contattami a.active { background-position: -790px bottom; }

#nav_home a:hover { background-position: 0px -60px; }
#nav_chi_sono a:hover { background-position: -150px -60px; }
#nav_comunicati a:hover { background-position: -310px -60px; }
#nav_agenda a:hover { background-position: -470px -60px; }
#nav_media a:hover { background-position: -630px -60px; }
#nav_contattami a:hover { background-position: -790px -60px; }

#box_home {
	width: 940px;
	height: 282px;
	background: url(../img/home_box.png) no-repeat;
	color: #eee;
}

#box_home div#scheda_img {
	margin-top: 45px;
}

#box_home div#scheda_info {
	margin-top: 25px;
}

#box_home a {
	color: #fff;
	text-decoration: underline;
}

.scheda {
	overflow: auto;
	width: 500px;
	height: 400px;
}

#scheda_05 {
	overflow: auto;
	width: 500px;
	height: 300px;
}

.content_box, .message {
	background-color: #fff;
	padding-top: 25px;
}

.message {
	font-size: 21px;
	color: #00628b;
	text-align: center;
	margin-left: 10px;
	margin-right: 10px;
}

#primary_box {
	background-image: url("../img/box_border.png");
	background-position: top left;
	background-repeat: no-repeat;
	min-height: 551px;
}

#footer {
	background: url("../img/footer.png") no-repeat top left;
	width: 940px;
	height: 60px;
	border-bottom: 3px solid white;
}

#footer div {
	color: #fff;
	line-height: 60px;
	font-size: 14px;
}

#footer div.omega {
	text-align: right;
}

.date_month {
	font-family: Georgia, sans-serif;
	font-size: 21px;
	letter-spacing: -1px;
	margin-left: 5px;
	float: right;
}

.date_number {
	font-family: Georgia, sans-serif;
	font-size: 50px;
	line-height: 60px;
	margin-top: -15px;
	letter-spacing: -1px;
	float: right;
}

.post_date {
	height: 60px;
}

.event_item {
	border-top: 1px solid #AAA;
}

.event_item p {
	margin-bottom: 0px;
}

.event_expander {
	display: block;
}

.event_extended {
    overflow: auto;
	width: 640px;
	height: 400px;
}

.event_extended h6 {
	text-align: right;
}

.event_item .event_extended {
	display: none;
}

.post_title {
	cursor: pointer;
}

.post_title:hover {
	text-decoration: underline;
}

.active {
	color: #00628b;
}

#profilo_link, #opere_link, #foto_link, #video_link {
	cursor: pointer;
}

.fancyhome img {
	border: 1px solid #444;
	padding: 4px;
	margin-left: 10px;
}

.photo {
	margin: 30px;
	margin-left: 40px;
	margin-right: 40px;
	position: relative;
	width: 180px;
	height: 130px;
	float: left;
}
.photo img {
	background: #fff;
	border: solid 1px #ccc;
	padding: 4px;
}
.photo span {
	width: 189px;
	height: 137px;
	display: block;
	position: absolute;
	top: -5px;
	left: -5px;
	background: url(../img/cut-corner.png) no-repeat;
}
.photo a {
	text-decoration: none;
}

hr {
	margin-top: 0;
	margin-bottom: 29px;
}

#login_link {
	text-align: center;
}

#login_link a {
	color: #fff;
}

#tv_top {
	width: 540px;
	height: 31px;
	background: url(../img/tv_top.png) no-repeat;
}

#tv_left {
	float: left;
	width: 34px;
	height: 271px;
	background: url(../img/tv_left.png) no-repeat;
	margin-left: 1px;
}

#tv_content {
	float: left;
	width: 478px;
	height: 271px;
	background: #000 url(../img/tv_content.jpg) no-repeat;
	overflow: hidden;
}

#tv_right {
	float: left;
	width: 29px;
	height: 271px;
	background: url(../img/tv_right.png) no-repeat;
	margin-left: -2px;
}

#tv_bottom {
	clear: both;
	width: 540px;
	height: 108px;
	background: url(../img/tv_bottom.png) no-repeat;
}

#video_list h4 {
	margin-bottom: 15px;
}

#tv {
	margin-top: 60px;
}

.video_popup {
	overflow: auto;
	width: 640px;
	height: 400px;
}

/* Tables */
table {
	background: #fff;
	border:1px solid #ccc;
	border-right:0;
	clear: both;
	color: #333;
	margin-bottom: 10px;
	width: 100%;
}
th {
	background: #f2f2f2;
	border:1px solid #bbb;
	border-top: 1px solid #fff;
	border-left: 1px solid #fff;
	text-align: center;
}
th a {
	background:#f2f2f2;
	display: block;
	padding: 2px 4px;
	text-decoration: none;
}
th a:hover {
	background: #ccc;
	color: #333;
	text-decoration: none;
}
table tr td {
	background: #fff;
	border-right: 1px solid #ccc;
	padding: 4px;
	text-align: center;
	vertical-align: top;
}
table tr.altrow td {
	background: #f4f4f4;
}
td.actions {
	text-align: center;
	white-space: nowrap;
}
td.actions a {
	margin: 0px 6px;
}
.cake-sql-log table {
	background: #f4f4f4;
}
.cake-sql-log td {
	padding: 4px 8px;
	text-align: left;
}
/* Paging */
div.paging {
	background:#fff;
	color: #ccc;
	margin-bottom: 2em;
}
div.paging div.disabled {
	color: #ddd;
	display: inline;
}
div.paging span {
}
div.paging span.current {
	color: #000;
}
div.paging span a {
}

/* Scaffold View */
dl {
	line-height: 2em;
	margin: 0em 0em;
	width: 60%;
}
dl .altrow {
	background: #f4f4f4;
}
dt {
	font-weight: bold;
	padding-left: 4px;
	vertical-align: top;
}
dd {
	margin-left: 10em;
	margin-top: -2em;
	vertical-align: top;
}

/* Forms */
form {
	clear: both;
	margin-right: 20px;
	padding: 0;
	width: 80%;
}
fieldset {
	border: 1px solid #ccc;
	margin-top: 30px;
	padding: 16px 20px;
}
fieldset legend {
	background:#fff;
	color: #00628b;
	font-size: 160%;
	font-weight: bold;
}
fieldset fieldset {
	margin-top: 0px;
	margin-bottom: 20px;
	padding: 16px 10px;
}
fieldset fieldset legend {
	font-size: 120%;
	font-weight: normal;
}
fieldset fieldset div {
	clear: left;
	margin: 0 20px;
}
form div {
	clear: both;
	margin-bottom: 1em;
	padding: .5em;
	vertical-align: text-top;
}
form div.input {
	color: #444;
}
form div.required {
	color: #333;
	font-weight: bold;
}
form div.submit {
	border: 0;
	clear: both;
	margin-top: 10px;
	margin-left: 140px;
}
label {
	display: block;
	font-size: 110%;
	padding-right: 20px;
}
input, textarea {
	clear: both;
	font-size: 140%;
	font-family: "frutiger linotype", "lucida grande", "verdana", sans-serif;
	padding: 2px;
	width: 100%;
}
select {
	clear: both;
	font-size: 120%;
	vertical-align: text-bottom;
}
select[multiple=multiple] {
	width: 100%;
}
option {
	font-size: 120%;
	padding: 0 3px;
}
input[type=checkbox] {
	clear: left;
	float: left;
	margin: 0px 6px 7px 2px;
	width: auto;
}
input[type=radio] {
	float:left;
	width:auto;
	margin: 0 3px 7px 0;
}
div.radio label {
	margin: 0 0 6px 20px;
}
input[type=submit] {
	display: inline;
	font-size: 110%;
	padding: 2px 5px;
	width: auto;
	vertical-align: bottom;
}

#question_list form {
	width: 100%;
}

#question_list label {
	font-size: 100%;
}

#question_list form div {
	padding: 0;
}

#question_list textarea {
	font-size: 100%;
}
