@charset "UTF-8";

/* Impostare stili per tutti i controlli page, ossia form, body, ecc. */ 
.page_generic {
}

.page_body {
	/*padding: 1px;		Tutti i margini sono decisi dal div "content"
	margin: 5px;*/
	float: none;
	clear: left;
	/*width: 100%;*/
	width: 95%;
	padding-bottom: 3em;
	/*border: 1px dotted red;*/
}
.page_form {
	width: 100%;
	/*border: 1px dotted blue;*/
}
@media (max-width: 1023px) {
	.page_form {
		width: 99%;
	}
}
@media (max-width: 400px) {
	.page_form {
		width: 98%;
	}
}
	
.page_section {
	padding: 1px;
	margin: 5px;
	/*float: none;
	clear: left;*/
	float: left;
	clear: none;
	border: 1px solid transparent;
}

.page_section_detail {
	margin: 10px;
	margin-top: 5px;
}

.page_section_title {
	font-family: "dejavu_sansoblique";
	font-weight: normal;
	font-style: italic;
	font-size: 85%;
	font-variant: small-caps;
	letter-spacing: 2px;
	padding-left: 10px;
	padding-right: 10px;
	padding-top: 1px;
	padding-bottom: 1px;
	color: white;
	background-color: darkgray;
	margin-left: 1px;
	margin-right: 1px;
	cursor: default;
	
	/* Gradiente */
	background: -moz-linear-gradient(left,  rgba(153,153,153,1) 0%, rgba(229,229,229,0) 100%); /* FF3.6+ */
	background: -webkit-gradient(linear, left top, right top, color-stop(0%,rgba(153,153,153,1)), color-stop(100%,rgba(229,229,229,0))); /* Chrome,Safari4+ */
	background: -webkit-linear-gradient(left,  rgba(153,153,153,1) 0%,rgba(229,229,229,0) 100%); /* Chrome10+,Safari5.1+ */
	background: -o-linear-gradient(left,  rgba(153,153,153,1) 0%,rgba(229,229,229,0) 100%); /* Opera 11.10+ */
	background: -ms-linear-gradient(left,  rgba(153,153,153,1) 0%,rgba(229,229,229,0) 100%); /* IE10+ */
	background: linear-gradient(to right,  rgba(153,153,153,1) 0%,rgba(229,229,229,0) 100%); /* W3C */
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#999999', endColorstr='#00e5e5e5',GradientType=1 ); /* IE6 - 9 */
}
.page_section:hover > .page_section_title {
	/* Gradiente */
	/* Gradiente http://colorzilla.com/gradient-editor/#1e5799+0,7db9e8+100&1+0,0+100 */
	background: -moz-linear-gradient(left,  rgba(30,87,153,1) 0%, rgba(125,185,232,0) 100%); /* FF3.6+ */
	background: -webkit-gradient(linear, left top, right top, color-stop(0%,rgba(30,87,153,1)), color-stop(100%,rgba(125,185,232,0))); /* Chrome,Safari4+ */
	background: -webkit-linear-gradient(left,  rgba(30,87,153,1) 0%,rgba(125,185,232,0) 100%); /* Chrome10+,Safari5.1+ */
	background: -o-linear-gradient(left,  rgba(30,87,153,1) 0%,rgba(125,185,232,0) 100%); /* Opera 11.10+ */
	background: -ms-linear-gradient(left,  rgba(30,87,153,1) 0%,rgba(125,185,232,0) 100%); /* IE10+ */
	background: linear-gradient(to right,  rgba(30,87,153,1) 0%,rgba(125,185,232,0) 100%); /* W3C */
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#1e5799', endColorstr='#007db9e8',GradientType=1 ); /* IE6 - 9 */
}
.page_section:hover {
	border: 1px solid darkgray;
	border-radius: 0px 5px 5px 5px; 
}




/* POPUP */
.page_popup {
	position: fixed;
	background-color: #dedede;
	/*max-height: 15em;*/
	max-width: 800px;
	max-height: 90%;
	height: auto;
	list-style: none outside none;
	padding: 1em;
	padding-top: 2em;
	white-space: normal;
	margin: 10px;
	margin-left: 22px;
	z-index: 221;
	border-radius: 5px;
	border: 1px solid gray;
	-webkit-box-shadow: 0px 0px 15px #555;
	   -moz-box-shadow: 0px 0px 15px #555;
	    -ms-box-shadow: 0px 0px 15px #555;
	     -o-box-shadow: 0px 0px 15px #555;
	        box-shadow: 0px 0px 15px #555;
	display: none;
}
.page_popup[data-modal='1'], .page_popup:hover {
	border: 1px solid gray;
	-webkit-box-shadow: 0px 0px 15px black;
	   -moz-box-shadow: 0px 0px 15px black;
	    -ms-box-shadow: 0px 0px 15px black;
	     -o-box-shadow: 0px 0px 15px black;
	        box-shadow: 0px 0px 15px black;
}
.page_popup_title {
	position: absolute;
	margin-left: 0.5em;
	margin-top: -2.6em;
	margin-right: 30px;
	font-variant: small-caps;
	font-weight: bold;
	color: white;
	font-family: "Audiowide Regular";
	font-size: 110%;
	padding: 2px;
	padding-left: 15px;
	padding-right: 15px;
	background-color: blue;
	border-radius: 0px;
	cursor: move;
	-webkit-box-shadow: 0px 0px 15px black;
	   -moz-box-shadow: 0px 0px 15px black;
	    -ms-box-shadow: 0px 0px 15px black;
	     -o-box-shadow: 0px 0px 15px black;
	        box-shadow: 0px 0px 15px black;
}
.page_popup_detail {
	overflow: auto;
	overflow-x: hidden;
	overflow-y: auto;
	max-height: 80vh;
}
.page_popup_overlay {
	position: fixed;
	width: 100%;
	height: 100%;
	left: 0px;
	top: 0px;
	border: none;
	z-index: 220;
	background: url("images/page_popup_background.png") repeat scroll 0 0 rgba(0, 0, 0, 0);
	-khtml-opacity: 0.60;
	  -moz-opacity: 0.60;
	    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=60)";
	       opacity: 0.60;
	        filter: alpha(opacity=60);
}
.page_popup_close {
	background-image: url("icons/page_popup_close.png");
	background-position: center center;
	position: absolute;
	right: -16px;
	top: -16px;
	width: 40px;
	height: 40px;
	cursor: pointer;
}
.page_popup_close:hover {
	background-image: url("icons/page_popup_close_hover.png");
}
@media (max-width: 1023px) {
	.page_popup[data-modal='1'] {
		position: fixed !important;
		top: 0px !important;
		left: 0px !important;
		right: 0px !important;
		bottom: 0px !important;
		width: auto !important;
		height: auto !important;
		max-width: unset !important;
		max-height: unset !important;
		margin: 0px !important;
		border-radius: 0px !important;
	}
	.page_popup_title {
		position: fixed !important;
		top: 0px !important;
		left: 0px !important;
		right: 0px !important;
		bottom: auto !important;
		width: auto !important;
		height: 40px !important;
		max-width: unset !important;
		max-height: unset !important;
		margin: 0px !important;
		border-radius: 0px !important;
		z-index: 15;
	}
	.page_popup_close {
		position: fixed !important;
		top: 0px !important;
		left: auto !important;
		right: 0px !important;
		bottom: auto !important;
		padding-top: 5px !important;
		width: 45px !important;
		height: 45px !important;
		max-width: unset !important;
		max-height: unset !important;
		margin: 0px !important;
		border-radius: 0px !important;
		z-index: 16;
		overflow: hidden;
	}
	.page_popup_detail {
		position: fixed !important;
		top: 46px !important;
		left: 0px !important;
		right: 0px !important;
		bottom: 0px !important;
		padding-top: 5px !important;
		width: auto !important;
		height: auto !important;
		max-width: unset !important;
		max-height: unset !important;
		margin: 0px !important;
		border-radius: 0px !important;
		overflow: auto;
		overflow-x: hidden;
		overflow-y: auto;
		z-index: 16;
	}
}
	
/*@media (max-width: 1023px) {
	.page_popup {
		margin: 0px;
		margin-right: 12px;
	}
	.page_popup_detail {
		max-height: 500px;
		max-width: 600px;
	}
}
/*@media (max-width: 600px) {
	.page_popup_detail {
		max-height: 400px;
		max-width: 400px;
	}
}
@media (max-width: 400px) {
	.page_popup_detail {
		max-height: 300px;
		max-width: 220px;
	}
}*/


div.page_tab {
/*	border: 1px solid red;*/
	position: relative;
	float: left;
}
ul.page_tab {
	float: left;	
	position: relative;
	z-index: 1;
	padding-right: 30px;
}
.page_tab_detail {
}
ul.page_tab > li {
	list-style-type: none;
	float: left;
	font-variant: small-caps;
	padding: 5px;
	padding-left: 10px;
	padding-right: 10px;
	border: 1px solid gray;
	background-color: gainsboro;
	margin-top: 5px;
	/*border-right: 1px inset gray;
	border-top: 1px inset gray;*/
	font-style: italic;
	/*font-size: 90%;*/
	font-family: arial;
	font-size: 100%;
}
ul.page_tab > li:first-child {
	border-top-left-radius: 5px;
}
ul.page_tab > li:last-child {
	border-top-right-radius: 5px;
}
ul.page_tab > li:hover {
	/*font-weight: bold;*/
	background-color: white;
	cursor: pointer;
	border-left: 1px solid black;
	color: black;
}
ul.page_tab > li.selected {
	font-weight: bold;
	color: black;
	background-color: #e2edf4;
	border: 1px solid gray;
	border-bottom: 1px solid #e2edf4;
	cursor: default;	
	padding-bottom: 8px;
	padding-top: 7px;
	margin-top: 1px;
	border-right: 2px solid gray;
	border-top-right-radius: 5px;
	border-top-left-radius: 5px;
}

ul.page_tab_panel {
	float: left;
	clear: both;
	border: 1px solid gray;
	border-radius: 5px;
	border-top-left-radius: 0px;
/*	border-bottom-left-radius: 5px;
	border-bottom-right-radius: 5px;
	border-top-right-radius: 5px;*/
	padding: 10px;
	min-width: 20em;
	margin-top: -1px;
	position: relative;
	z-index: 0;
	background-color: #e2edf4;
}
@media (max-width: 1023px) {
	ul.page_tab_panel {
		min-width: 5em;
		padding-left: 2px;
		padding-right: 2px;
		width: 99%;
	}
	/*ul.page_tab {
		text-align: center;
		font-size: 120%;
		background: yellow;
		display: inline-block;
		margin: 0px;
		width: auto;
		border: 1px solid red;
		border-top-width: 2px;
		border-bottom-width: 2px;
		max-height: 100px;
		overflow: hidden;
		overflow-x: hidden;
		overflow-y: auto;
	}*/
	ul.page_tab > li {
		padding-top: 10px;
		padding-bottom: 10px;
		/*width: 100%; TODO - TAB A SCHERMO INTERO */
	}
	ul.page_tab > li.selected {
		padding-top: 13px;
		padding-bottom: 12px;
	}
}

.page_tab_panel > li.selected {
	visibility: visible;
	display: block;
}
ul.page_tab_panel > li {
	visibility: collapse;
	display: none;
	list-style-type: none;
}




.page_generic.progress {
	cursor: wait !important;
}
div.page_tab.progress > ul.page_tab {
	background-image: url("icons/page_loading.gif");
	background-position: 99% 6px;
	background-repeat: no-repeat;
}
