/*
 * 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
   ========================================================================== */

@font-face {
    font-family: 'RobotoCondensed';
    src: url('../fonts/Roboto-Condensed-webfont.eot');
    src: url('../fonts/Roboto-Condensed-webfont.eot?#iefix') format('embedded-opentype'),
         url('../fonts/Roboto-Condensed-webfont.woff') format('woff'),
         url('../fonts/Roboto-Condensed-webfont.ttf') format('truetype'),
         url('../fonts/Roboto-Condensed-webfont.svg#RobotoCondensed') format('svg');
    font-weight: normal;
    font-style: normal;

}

@font-face {
    font-family: 'RobotoCondensed';
    src: url('../fonts/Roboto-CondensedItalic-webfont.eot');
    src: url('../fonts/Roboto-CondensedItalic-webfont.eot?#iefix') format('embedded-opentype'),
         url('../fonts/Roboto-CondensedItalic-webfont.woff') format('woff'),
         url('../fonts/Roboto-CondensedItalic-webfont.ttf') format('truetype'),
         url('../fonts/Roboto-CondensedItalic-webfont.svg#RobotoCondensedItalic') format('svg');
    font-weight: normal;
    font-style: italic;

}

@font-face {
    font-family: 'RobotoCondensed';
    src: url('../fonts/Roboto-BoldCondensed-webfont.eot');
    src: url('../fonts/Roboto-BoldCondensed-webfont.eot?#iefix') format('embedded-opentype'),
         url('../fonts/Roboto-BoldCondensed-webfont.woff') format('woff'),
         url('../fonts/Roboto-BoldCondensed-webfont.ttf') format('truetype'),
         url('../fonts/Roboto-BoldCondensed-webfont.svg#RobotoBoldCondensed') format('svg');
    font-weight: bold;
    font-style:normal;

}

@font-face {
    font-family: 'RobotoCondensed';
    src: url('../fonts/Roboto-BoldCondensedItalic-webfont.eot');
    src: url('../fonts/Roboto-BoldCondensedItalic-webfont.eot?#iefix') format('embedded-opentype'),
         url('../fonts/Roboto-BoldCondensedItalic-webfont.woff') format('woff'),
         url('../fonts/Roboto-BoldCondensedItalic-webfont.ttf') format('truetype'),
         url('../fonts/Roboto-BoldCondensedItalic-webfont.svg#RobotoBoldCondensedItalic') format('svg');
    font-weight: bold;
    font-style: italic;

}



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

body {
    font-size: 1em;
    line-height: 1.4;
	font-family:"RobotoCondensed", sans-serif;
}

/*
 * Remove text-shadow in selection highlight: h5bp.com/i
 * These selection rule sets 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
   ========================================================================== */

body{
	background:#FFF;	
}

#container{
	width: 1147px;
	margin:10px auto;
}

a,a:visited{
	color:#83B719;
	text-decoration:none;	
}

a:hover{
	text-decoration:underline;
}

#main{
	width:1147px;/*100%*/
	
	background: #ffffff; /* Old browsers */
	/* IE9 SVG, needs conditional override of 'filter' to 'none' */
	background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIwJSIgeTI9IjEwMCUiPgogICAgPHN0b3Agb2Zmc2V0PSI1MCUiIHN0b3AtY29sb3I9IiNmZmZmZmYiIHN0b3Atb3BhY2l0eT0iMSIvPgogICAgPHN0b3Agb2Zmc2V0PSI5OSUiIHN0b3AtY29sb3I9IiNlZWVlZWUiIHN0b3Atb3BhY2l0eT0iMSIvPgogIDwvbGluZWFyR3JhZGllbnQ+CiAgPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0idXJsKCNncmFkLXVjZ2ctZ2VuZXJhdGVkKSIgLz4KPC9zdmc+);
	background: -moz-linear-gradient(top,  #ffffff 50%, #eeeeee 99%); /* FF3.6+ */
	background: -webkit-gradient(linear, left top, left bottom, color-stop(50%,#ffffff), color-stop(99%,#eeeeee)); /* Chrome,Safari4+ */
	background: -webkit-linear-gradient(top,  #ffffff 50%,#eeeeee 99%); /* Chrome10+,Safari5.1+ */
	background: -o-linear-gradient(top,  #ffffff 50%,#eeeeee 99%); /* Opera 11.10+ */
	background: -ms-linear-gradient(top,  #ffffff 50%,#eeeeee 99%); /* IE10+ */
	background: linear-gradient(to bottom,  #ffffff 50%,#eeeeee 99%); /* W3C */
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#eeeeee',GradientType=0 ); /* IE6-8 */
	
	padding-top:18px;
	
	font-size:18px;

}

header{
	width: 1147px;
	height:777px;
}

#header-centered{
	width:949px;
	height:777px;
	margin:-52px auto;
	position:relative;
	z-index:100000;
}

.centered{
	width:949px;
	margin:0 auto;
	position:relative;
}


#gallery{
	border-top: 22px solid #454545;
	border-bottom: 98px solid #454545;
	width: 1129px;
	heigth: 543px;
	margin-bottom:-663px;
	
	overflow:hidden;	
	
}

#gallery-wrapper li{
	width: 1129px;
	heigth: 543px;
	float:left;
	display:inline-block;
	list-style:none;
	margin:0;
	padding:0;
}

#gallery-wrapper{
	heigth: 543px;
	margin:0;
	padding:0;
}

#logo{
	width:236px;
	height:150px;
	float:left;
	
}

#search-bar{
	width:100%;
	height:23px;
	background:#83B719;
	text-align:right;
	margin-top:22px;
	
}

#search{
	height:11px;
	
}

#top-nav{
	width:100%;
	height:64px;
	background:#FFF;	
}

#top-nav a{
	height:36px; /* 64px */
	padding:28px 10px 0 10px;
	display:inline-block;
	font-size:	14px;
	font-weight:bold;
	margin:0;
	border:none;
	text-transform:uppercase;
}

#top-nav a:first-child {
	margin-left:73px;
}

#top-nav a,#top-nav a:visited,#top-nav a:hover{
	color:#57585A;
	text-decoration:none;
}

#top-nav a:hover,#top-nav a.active{
	background:#D3E3AF;	
}

#top-nav a .decoration{
	color:#A3C652;
}

#left-nav{
	margin-top:63px;
	width:236px;
	height:334px;
	background:rgba(69, 69, 69, 0.9);
}

.lt-ie9 #left-nav, .lt-ie9 #gallery-caption, .lt-ie9 #page-left nav{
	background:#545352;
}

.lt-ie9 #page-left {
	float:left;
	margin-left:-1px;
	
}

.lt-ie9 #main{
	margin-top:50px;
}

#left-nav ul{
	margin:0;
	padding:24px 0 0 0;
}

#left-nav ul li{
	/*pading:6px 0 6px 0;*/
	margin:0px 16px 0 16px;
	text-align:left;
	list-style:none;
	border-bottom:1px solid #C9C2C1;
}

#left-nav ul li a{
	color:#FFF;
	font-size:14px;
	text-decoration:none;
	font-weight:bold;
	text-transform:uppercase;
}

#left-nav ul li a:visited{
	color:#FFF;
	font-size:14px;
	text-decoration:none;
}

#left-nav ul li a:hover,#left-nav ul li a.active{
	color:#83B719;
	text-decoration:underline;
}

#gallery-caption{
	float:right;
	width:474px;
	height:52px;
	position:relative;	
	font-size:30px;
	text-align:center;
	background:rgba(69, 69, 69, 0.9);
	color:#FFF;
	margin-top:-67px;
	padding:10px 0 0 0;
}

#news-carousel{
	border:1px solid #C5C6C8;
	background:#FFF;
	width:931px;  /* 949px */
	height:247px; /* 265px */
	padding:9px;
	margin-top:-5px;
}

#carousel-items{
	
	position:relative;
	height:247px;
}

#news-carousel .viewport { width:928px;  height:247px; overflow:hidden; position: relative; }
#news-carousel #overview { list-style: none; position: absolute; padding: 0; margin: 0; left: 0; top: 0; }
#news-carousel #overview li{ float: left; height:217px; border: none; width: 202px;}

.carousel-item{
	float:left;
	height:217px;
	width:202px;
	color:#FFF;	
	padding:15px;
	list-style:none;
}

.carousel-item a,.carousel-item a:visited{
	color:#FFF;
	text-decoration:none;
}

.carousel-item a:hover{
	text-decoration:underline;	
}

.carousel-item.first{
	background:#83B719;
}

.carousel-item.second{
	background:#A1C552;
}

.carousel-item.third{
	background:#AECD6A;
}

.carousel-item.fourth{
	background:#BBD481;
}

.carousel-item .number{
	font-size:30px;
	width:100%;
	height:30px;
	margin:-7px 0 3px 0;
}

.carousel-item .title{
	width:100%;
	font-size:15px;
	height:15px;
	font-weight:bold;
	margin:0 0 3px 0;
}

.carousel-item .pic{
	text-align:center;
	border:1px solid #FFF;
	overflow:hidden;
	margin:3px 0 3px 0;
}

.carousel-item .text{
	font-size:12px;
	height:51px;
	overflow:hidden;
	color:#FFF;
}

.carousel-item .read{
	font-size:12px;
	text-align:right;
	width:100%;
	height:12px;
	margin:12px 0 0 0;
}

#news-carousel-shadow{
	width:917px;
	height:48px;
	background:url(../img/ombra.png) no-repeat;
	margin: 1px auto;
}

em{
	color:#83B719;
	text-transform:uppercase;
	font-style:normal;
}

h2{
	color:#83B719;
	font-size:22px;
	text-transform:uppercase;
	margin:-5px 0 -2px 0;
}

#content-left{
	display:inline-block;
	width:448px;
	float:left;	
}

#content-text{
	display:inline-block;
	width:265px;
	float:left;
	font-size:12px;
	padding-right:17px;
	text-align:justify;
	border-right:1px solid #D0D0D0;
}

#page-left{
	text-align:center;	
	float:left;
	width:236px;
	margin:0 0 0 99px;
	font-size:14px;
}

#page-left nav{
	width:236px;
	background:rgba(69, 69, 69, 0.9);
	margin:-27px 0 20px 0;
	text-align:left;
	padding-top:13px;
}


#page-left nav ul{
	margin:0;
	padding:24px 0 24px 0;
}

#page-left nav ul li{
	pading:6px 0 6px 0;
	margin:0px 16px 0 16px;
	text-align:left;
	list-style:none;
	border-bottom:1px solid #C9C2C1;
}

#page-left nav ul li a{
	color:#FFF;
	font-size:14px;
	text-decoration:none;
	font-weight:bold;
	text-transform:uppercase;
}

#page-left nav ul li a:visited{
	color:#FFF;
	font-size:14px;
	text-decoration:none;
}

#page-left nav ul li a:hover,#page-left nav ul li a.active{
	color:#83B719;
	text-decoration:underline;
}


#page-text{
	width:393px;
	padding: 0 18px 10px 9px;
	float:left;
	font-size:15px;
	text-align:justify;
	border-right:1px solid #D0D0D0;
}

#page-text.tot{
	width:668px;	
	border:none;
}

#nav-sub{
	width:236px;
	height:5px;
	background:#FFF;
	
	text-align:left;	
}

#news-list{
	display:inline-block;
	width:275px;
	float:left;
	padding-left:15px;	
}

#news-list ul{
	padding:15px 0 0 0;
	margin:0;
	width:275px;
}

#news-list ul li{
	list-style:none;
	font-size:12px;
	padding-bottom:5px;
}

#news-list ul li span{
	font-weight:bold;
	text-transform:capitalize;
	color:#83B719;
}

footer{
	height:62px;
	background:#454545;
	border-top:	22px solid #83B719;
	width:100%;
	float:left;
}

footer div{
	margin-left:99px;
	float:left;
	color:#FFF;
	font-size:15px;
	padding-top:20px;
	line-height:120%;
}

footer nav{
	width:405px;
	float:right;
	margin: 25px 78px 0 0;
}

footer nav a,footer nav a:visited{
	border-right:1px solid #FFF;
	text-decoration:none;
	color:#FFF;
	font-size:11px;
	padding:0 18px 0 18px;
}

footer nav a:first-child{
	border-left:1px solid #FFF;
}

footer nav a:hover{
	text-decoration:underline;		
}

.pagination,.pagination:hover,.pagination:visited{
	font-size:14px;
	padding:5px;
	border:1px solid #CCCCCC;
	width:20px;
	height:20px;
	display:inline-block;	
	color:#000;
	text-decoration:none;
	margin: 0 5px 5px 0;
}


.pagination.active,.pagination:hover{
	color:#FFF;
	background:#A1C552;
	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: 150%;
}

/*
 * 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.
   These 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 print,
       (-o-min-device-pixel-ratio: 5/4),
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 120dpi) {
    /* 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: 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;
    }
}
