
/*
 * HTML5 Boilerplate
 *
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html,
button,
input,
select,
textarea {
    color: #222;
}

html,body {
    font-size: 1em;
    line-height: 1.4;
	height: 100%;
}

/*
 * Remove text-shadow in selection highlight: h5bp.com/i
 * These selection declarations have to be separate.
 * Customize the background color to match your design.
 */

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

/*
 * Remove the gap between images and the bottom of their containers: h5bp.com/i/440
 */

img {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Chrome Frame prompt
   ========================================================================== */

.chromeframe {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */


#wrappertext section article ul {
	list-style: none;
	display: block;
	float: left;
	font: 200 16px/22px 'Source Sans Pro',"Helvetica Neue", Arial, Helvetica, Geneva, sans-serif;
	margin: 0;
	padding: 0;
}


#wrappertext section article ul li a {
	color: white;
	text-decoration: none;
}


#wrappertext section article ul li a:hover {
	color: white;
	text-decoration: none;
	font-weight: bold;
}


#mynews section article ul {
	list-style: none;
	display: block;
	float: left;
	font: 200 16px/22px 'Source Sans Pro',"Helvetica Neue", Arial, Helvetica, Geneva, sans-serif;
	margin: 0;
	padding: 0;
}


#mynews section article ul li a {
	color: white;
	text-decoration: none;
}


#mynews section article ul li a:hover {
	color: white;
	text-decoration: none;
	font-weight: bold;
}








/* ==========================================================================
   Helper classes
   ========================================================================== */
   

   
/*
 * Image replacement
 */

.ir {
    background-color: transparent;
    border: 0;
    overflow: hidden;
    /* IE 6/7 fallback */
    *text-indent: -9999px;
}

.ir:before {
    content: "";
    display: block;
    width: 0;
    height: 100%;
}

/*
 * Hide from both screenreaders and browsers: h5bp.com/u
 */

.hidden {
    display: none !important;
    visibility: hidden;
}

/*
 * Hide only visually, but have it available for screenreaders: h5bp.com/v
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/*
 * Extends the .visuallyhidden class to allow the element to be focusable
 * when navigated to via the keyboard: h5bp.com/p
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

/*
 * Hide visually and from screenreaders, but maintain layout
 */

.invisible {
    visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}

/*
 * For IE 6/7 only
 * Include this rule to trigger hasLayout and contain floats.
 */

.clearfix {
    *zoom: 1;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   Theses examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
    /* Style adjustments for viewports that meet the condition */
}

@media only screen and (-webkit-min-device-pixel-ratio: 1.5),
       only screen and (min-resolution: 144dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid required HTTP connection: h5bp.com/r
   ========================================================================== */

@media print {
    * {
        background: transparent !important;
        color: #000 !important; /* Black prints faster: h5bp.com/s */
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: none;
		color: black;
	}
	
	a:hover {
		text-decoration: underline;
	}

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links for images, or javascript/internal links
     */

    .ir a:after,
    a[href^="javascript:"]:after,
    a[href^="#"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    thead {
        display: table-header-group; /* h5bp.com/t */
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    @page {
        margin: 0.5cm;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}


/* ==========================================================================
   Custom styles.
  
     ========================================================================== */


header {
	width: 950px;
	height: 60px;
	background-color: black;
	margin-right: auto;
	margin-left: auto;
	padding-right: 45px;
	padding-left: 45px;
}

#logo a span.luca {
	float: left;
	margin-top: 8px;
}

div#logo {
	position: relative;
	left: 490px;
	width: 0;
	height: 0;
	top: 45px;
	z-index: 999;
	display: block;
	float: left;
}

nav {
	float: left;
	width: 0px;
	height: 0px;
	position: relative;
	top: 60px;
	left: 245px;
	display: block;
}

#abbassamento {
	width: 200px;
	height: 245px;
	background: url(../images/alpha_40.png) 0 -53px;
	padding-left: 10px;
	padding-right: 10px;

}

nav ul li {
	float: left;
	margin-right: 15px;
}

nav ul {
	background-color: white;
	height: 0;
	padding-left: 0;
	margin: 0;
	width: 500px;
}

nav ul li a{
	color: white;
	text-decoration: none;
	text-transform: uppercase;
	padding-bottom: 2px;
	font: 300 14px 'Source Sans Pro',"Helvetica Neue", Arial, Helvetica, Geneva, sans-serif;
}



#wrapper {
	width: 950px;
	margin-right: auto;
	margin-left: auto;
	height: 489px;
	padding: 40px 45px 0; 
	box-shadow: inset 0 3px 10px -4px #000, inset 0 -3px 10px -4px #000;
	background: url('../images/background_marrone.png') repeat-x 0 178px black;
	z-index: -9;
	display: block;

}

#sidepanel {
	background: url('../images/background_menu.jpg') no-repeat 0 0;
	display: block;
	position: relative;
	left: 0;
	float: left;
	z-index: 2;
}

div#contatti {
	display: block;
	color: white;
	text-decoration: none;
	text-transform: uppercase;
	padding-bottom: 2px;
	font: 300 14px 'Source Sans Pro',"Helvetica Neue", Arial, Helvetica, Geneva, sans-serif;
	position: relative;
	top: 60px;
	float: right;
	text-align: right;
	left: 0;
	width: 250px;
}

#contatti a img {
	position: relative;
	top: -8px;
	padding-left: 5px;
	padding-right: 0;

}

#right p.level a {
	color: white;
	text-decoration: none;
}

div#veronesi {
	width: 0px;
	height: 0px;
	position: relative;
	display: block;
}

div#contatti a {
	color: white;
	text-decoration: none;
	padding-right: 0;
	padding-left: 13px;
}


#mynews section article h1.palazzo {
	font-size: 23px;
	margin-bottom: 5px;
}

#mynews section article h1.level {
	float: left;
	margin-top: 20px;
}

#mynews {
	width: 950px;
	margin-right: auto;
	margin-left: auto;
	background-color: #e94d33;
	padding: 0 45px;
	display: block;
	z-index: 1;
	float: left;
}

#mynews section article p.level.high {
	position: relative;
	top: -58px;
}


#wrappertext section article h1.palazzo {
	font-size: 23px;
	margin-bottom: 5px;
}

#wrappertext section article h1.level {
	float: left;
	margin-top: 20px;
}

#wrappertext {
	width: 950px;
	margin-right: auto;
	margin-left: auto;
	background-color: #e94d33;
	position: relative;
	top: 0px;
	padding: 0 45px;
	display: block;
	height: 250px;
	z-index: 1;
}

#wrappertext section article p.level.high {
	position: relative;
	top: -58px;
}

div#mainwrapper {
	height: 100%;
	margin-right: auto;
	margin-left: auto;
	background-color: #e94d33;
	width: 1040px;
}

#wrappertext section {
	float: left;
	display: block;
	height: 0;
	
}

#mynews h1 {
	width: 240px;
	display: block;
	margin: 0;
	position: relative;
	color: white;
	font: 300 30px/30px 'Source Sans Pro',"Helvetica Neue", Arial, Helvetica, Geneva, sans-serif;
	float: left;
	padding-top: 24px;
	clear: left;
}

#mynews h2 {
	color: white;
	width: 239px;
	display: block;
	margin: 0;
	font: 200 18px/21px 'Source Sans Pro',"Helvetica Neue", Arial, Helvetica, Geneva, sans-serif;
	float: left;
	clear: left;
}

div#left {
	float: left;
	display: block;
}

#mynews p {
color: white;
width: 705px;
float: right;
display: block;
text-align: justify;
font: 200 16px/22px 'Source Sans Pro',"Helvetica Neue", Arial, Helvetica, Geneva, sans-serif;
margin: 0;
z-index: 1;
}

#posizione_lingua {
	width: 0;
	height: 0;
	position: relative;
	display: block;
	left: 885px;
	top: 6px;
}



#lingua {

	width: 70px;
	text-align: right;
	color: white;
	font: 300 14px 'Source Sans Pro',"Helvetica Neue", Arial, Helvetica, Geneva, sans-serif;
	margin-right: 5px;
	
}

#lingua a {
	text-decoration: none;
	color: white;
		font: 300 14px 'Source Sans Pro',"Helvetica Neue", Arial, Helvetica, Geneva, sans-serif;
		margin-right: 5px;
	}

div#right {
	display: block;
	float: right;
	padding-top: 50px;
	color: white;
}

#wrappertext h1 {
	width: 243px;
	float: left;
	display: block;
	margin: 0;
	position: relative;
	top: 24px;
	color: white;
	font: 300 30px/30px 'Source Sans Pro',"Helvetica Neue", Arial, Helvetica, Geneva, sans-serif;
}

#wrappertext h2 {
	color: white;
	width: 243px;
	float: left;
	display: block;
	margin: 0;
	position: relative;
	top: 25px;
	font: 200 18px/21px 'Source Sans Pro',"Helvetica Neue", Arial, Helvetica, Geneva, sans-serif;
	clear: left;
}

#wrappertext p {
color: white;
width: 705px;
float: left;
display: block;
text-align: justify;
font: 200 16px/22px 'Source Sans Pro',"Helvetica Neue", Arial, Helvetica, Geneva, sans-serif;
margin: 0;
position: relative;
top: -8px;
z-index: 1;

}

#wrapper aside {
	width: 200px;
	float: left;
	box-shadow: 0 0 10px -5px #000;
	visibility: visible;
	background: url('../images/background_menu.jpg') no-repeat 0 0;
	display: block;
	background-color: black;
	height: 489px;
}

#wrapper section {
	z-index: 0;

}

#wrapper aside ul {
	list-style: none;
	list-style-type: none;
	padding: 0;
	margin: 0;
	width: 0;
	height: 0;
	overflow: visible;
	z-index: 9999;
	top: -1px;
	position: relative;
}

#wrapper aside ul li {
	float: left;
	display: block;
	width: 200px;
	height: 98px;
	z-index: 15;
}

#wrapper aside ul li a {
	background-color: white;
	display: block;
	color: #313131;
	text-decoration: none;
	text-align: right;
	font: 300 14px "Source Sans Pro", "Helvetica Neue", Arial, Helvetica, Geneva, sans-serif;
	
	margin-top: 80px;
	padding-right: 9px;
}

#sidepanel ul li ul li a.title {
	font-size: 14px;
}

#wrapper aside ul li ul {
	/* nascondi menu*/
	display: none;
	margin-top: 1px;
}

#wrapper aside ul li:hover ul {
	display: block;
}

#wrapper aside ul li ul li  {
	display: block;
	height: 18px;
	background-color: #ea4e33;
	margin-bottom: 0;
	margin-left: 200px;
	margin-right: 0;
	position: relative;
	top: -18px;
	width: 148px;
}



#sidepanel ul li ul li.biscotti {
	display: none;
}

#wrapper aside ul li ul li a {
	margin-top: 0;
	height: 20px;
	text-align: left;
	margin-left: 0;
	padding-left: 10px;
	background-color: #ea4e33;
	color: white;
	font-weight: 400;
}

#wrapper aside ul li ul li a:hover {
	font-weight:600;
}

footer {
	margin-right: auto;
	margin-left: auto;
	width: 710px;
	background-color: #ea4e33;
	color: white;

	padding: 10px 45px 10px 285px;
	font: 200 12px/22px 'Source Sans Pro',"Helvetica Neue", Arial, Helvetica, Geneva, sans-serif;
	text-align: justify;

	z-index: 0;
}

#mainwrapper footer div.lineup {
	border-top: 1px solid #ec8a79;
	padding-top: 5px;
}

#wrappertext section article h2 a {
	color: white;
	text-decoration: none;
}

#wrappertext section article h2 a:hover {
	color: white;
	text-decoration: none;
	font-weight: 600;
}

#breadcrumb {
	font: 200 13px/22px 'Source Sans Pro',"Helvetica Neue", Arial, Helvetica, Geneva, sans-serif;
	width: 0;
	height: 0;
	position: relative;
	top: 23px;
}


#breadcrumb a {
	color: white;
	text-decoration: none;
	width: 200px;
	display: block;
}

#breadcrumb a:hover {
	font-weight:400;
} 

#wrappertext section article p.level {
	top: -27px;
	position: relative;
}

#wrappertext section article ul.level {
	top: -27px;
	position: relative;
}

#wrappertext section article p.level a {
	color: white;
	text-decoration: none;
}

#wrappertext section article p strong a {
	color: white;
	text-decoration: none;
	font-weight: 400;
}

#space{
	margin-top: 94px;
}



#mainwrapper footer a {
	color: white;
	text-decoration: none;
}

