/*! HTML5 Boilerplate v5.3.0 | MIT License | https://html5boilerplate.com/ */

/*
 * 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
   ========================================================================== */
#credits ul {
		margin-right:2.5em;
}		
	#credits li {
		list-style: none;
		padding-left:0.3em;
		padding-right:0.3em;
		display: inline-block;
}

#anteprime {
	margin-top:0;
	background-color:#e8e8e7;
	padding: 1em 0 0em 0;
	text-align: center;
}
	
	#anteprime ul {
	margin-right:2.5em;
	}	

	#anteprime li {
	  display: inline-block;
	}	

	#anteprime li img {
	  width:300px;
	}

html {
    color: #222;
    font-size: 1em;
    line-height: 1.4;
}

#contatti {
	margin:0 auto;
	padding:3em 0 3em 0;
	background-color:#ededed;
	font-family: 'Raleway', sans-serif;
}

#contatti a {
	color:#5b7160;
	font-family: 'Raleway', sans-serif;
	text-decoration:none;
	-webkit-transition: all 0.2s ease-in-out;
	-moz-transition: all 0.2s ease-in-out;
	-o-transition: all 0.2s ease-in-out;
	transition: all 0.2s ease-in-out;
}

#contatti a:hover {
	color:#000;
	font-family: 'Raleway', sans-serif;
	text-decoration:none;
	-webkit-transition: all 0.2s ease-in-out;
	-moz-transition: all 0.2s ease-in-out;
	-o-transition: all 0.2s ease-in-out;
	transition: all 0.2s ease-in-out;
}


h1 {
	font-family: 'Raleway', sans-serif;
	-webkit-transition: all 0.2s ease-in-out;
	-moz-transition: all 0.2s ease-in-out;
	-o-transition: all 0.2s ease-in-out;
	transition: all 0.2s ease-in-out;
}
	h1 a {
		font-family: 'Raleway', sans-serif;
		-webkit-transition: all 0.2s ease-in-out;
		-moz-transition: all 0.2s ease-in-out;
		-o-transition: all 0.2s ease-in-out;
		transition: all 0.2s ease-in-out;
		text-decoration:none;
	}
	
	h1 a:hover {
		font-family: 'Raleway', sans-serif;
		-webkit-transition: all 0.2s ease-in-out;
		-moz-transition: all 0.2s ease-in-out;
		-o-transition: all 0.2s ease-in-out;
		transition: all 0.2s ease-in-out;
		text-decoration:none;
	}

h2 {
	font-family: 'Raleway', sans-serif;
	-webkit-transition: all 0.2s ease-in-out;
	-moz-transition: all 0.2s ease-in-out;
	-o-transition: all 0.2s ease-in-out;
	transition: all 0.2s ease-in-out;
}
	h2 a {
		font-family: 'Raleway', sans-serif;
		-webkit-transition: all 0.2s ease-in-out;
		-moz-transition: all 0.2s ease-in-out;
		-o-transition: all 0.2s ease-in-out;
		transition: all 0.2s ease-in-out;
		text-decoration:none;
	}
	
	h2 a:hover {
		font-family: 'Raleway', sans-serif;
		-webkit-transition: all 0.2s ease-in-out;
		-moz-transition: all 0.2s ease-in-out;
		-o-transition: all 0.2s ease-in-out;
		transition: all 0.2s ease-in-out;
		text-decoration:none;
	}

p {
	font-size:15px;
	font-family: 'Raleway', sans-serif;
	-webkit-transition: all 0.2s ease-in-out;
	-moz-transition: all 0.2s ease-in-out;
	-o-transition: all 0.2s ease-in-out;
	transition: all 0.2s ease-in-out;
	line-height: 28.5px;
}
	p a {
		font-family: 'Raleway', sans-serif;
		-webkit-transition: all 0.2s ease-in-out;
		-moz-transition: all 0.2s ease-in-out;
		-o-transition: all 0.2s ease-in-out;
		transition: all 0.2s ease-in-out;
		text-decoration:none;
	}
	
	p a:hover {
		font-family: 'Open Sans', sans-serif;
		-webkit-transition: all 0.2s ease-in-out;
		-moz-transition: all 0.2s ease-in-out;
		-o-transition: all 0.2s ease-in-out;
		transition: all 0.2s ease-in-out;
		text-decoration:none;
	}
	
	p strong {
		font-weight:600;
	}
	
/* Reveal */	
.js-reveal {
  opacity: 1;
  transition: opacity .7s ease-in, margin-top .7s ease-out;
}

.js-reveal--hidden {
  opacity: 0;
  margin-top: 3em;
}
/* Fine Reveal */

#cta {
	position: fixed;
	right:1em;
	bottom:1em;
		z-index:2;
}

	#cta a {
		opacity:1;
		-webkit-transition: all 0.2s ease-in-out;
		-moz-transition: all 0.2s ease-in-out;
		-o-transition: all 0.2s ease-in-out;
		transition: all 0.2s ease-in-out;
	}

	#cta a:hover {
		opacity:0.8;
		-webkit-transition: all 0.2s ease-in-out;
		-moz-transition: all 0.2s ease-in-out;
		-o-transition: all 0.2s ease-in-out;
		transition: all 0.2s ease-in-out;
	}

#scatola {
	margin:0 auto;
}

#scatola2 {
	margin:0 auto;
}

#logo {
	height:auto;
	padding: 0 12px 0px 0px;
	margin-bottom:0.8em;
}
	
	#logo img {
		max-width: 100%;
		display: block;
		margin: 0 auto;
	}

nav {
	margin:0 auto;
	text-align:center;
}

#barra {
	background: #231f20;
	height:auto;
	padding:0.1em 0 0.1em 0;
	margin-bottom:0.4em;
}

.button-tel {
	font-family: 'Raleway', sans-serif;
	font-weight:500;
	color:#fff;
	letter-spacing: 0.5px;
	text-align: center;
	text-decoration: none;
	font-style: normal;
}
 
.button-tel:hover {
	color:#ffd8a3;
	-webkit-transition: all 0.2s ease-in-out;
	-moz-transition: all 0.2s ease-in-out;
	-o-transition: all 0.2s ease-in-out;
	transition: all 0.2s ease-in-out;
}

#social {
	font-size:13px;
	text-align:center;
	color:#fff;
	color:#231f20;
    margin:0 auto;
	padding-right:2.9em;
}	

	#social li {
		color:#fff;
	  	display: inline-block;
		margin:0;
		padding:0.1em 0.8em 0.1em 0.8em;
	}

	#social li strong {
		float:right;
		padding-left:5px;
		font-weight:500;
	}

	#social li a {
		maring:0;
		padding:0;
		color:#ffffff;
		text-decoration:none;
		-webkit-transition: all 0.2s ease-in-out;
		-moz-transition: all 0.2s ease-in-out;
		-o-transition: all 0.2s ease-in-out;
		transition: all 0.2s ease-in-out;
	}

	#social li a:hover {
		color:#b6cbb7;
		text-decoration:none;
		-webkit-transition: all 0.2s ease-in-out;
		-moz-transition: all 0.2s ease-in-out;
		-o-transition: all 0.2s ease-in-out;
		transition: all 0.2s ease-in-out;
	}
		
		#social li a:hover img {
			width:29px;
			opacity: 0.7;
			-webkit-transition: all 0.2s ease-in-out;
			-moz-transition: all 0.2s ease-in-out;
			-o-transition: all 0.2s ease-in-out;
			transition: all 0.2s ease-in-out;
		}

#social-footer {
    margin:0 auto;
}
	
	#social-footer ul {
	}	

	#social-footer li {
	  	display: inline-block;
		width:0;
		margin-left:9px;
		padding:0;
	  	border: 0px;
	}
		
		#social-footer li a img {
			opacity: 1;
			-webkit-transition: all 0.2s ease-in-out;
			-moz-transition: all 0.2s ease-in-out;
			-o-transition: all 0.2s ease-in-out;
			transition: all 0.2s ease-in-out;
		}
		
		#social-footer li a:hover img {
			width:29px;
			opacity: 0.7;
			-webkit-transition: all 0.2s ease-in-out;
			-moz-transition: all 0.2s ease-in-out;
			-o-transition: all 0.2s ease-in-out;
			transition: all 0.2s ease-in-out;
		}

/* Style the navbar */
#navbar {
	background-color: #FFF;
	z-index: 6;
}

/* Navbar links */
#navbar a {
  display: block;
}

/* Page content */
.content {
}

/* The sticky class is added to the navbar with JS when it reaches its scroll position */
.sticky {
  position: fixed;
  top: 0;
  width: 100%;
}

/* Add some top padding to the page content to prevent sudden quick movement (as the navigation bar gets a new position at the top of the page (position:fixed and top:0) */
.sticky + .content {
}

#presentazione {
	margin:4em 0 2.3em 0;
	text-align: justify;
}
	#presentazione p {
		color:#303030;
	}
	
		#presentazione p a {
			color:#de0000;
		}
	
		#presentazione p a:hover {
			color:#303030;
		}
	
		#presentazione p strong {
			color:#000;
		}
		
#marchi-home {
	text-align:center;
}
	
	#marchi-home ul {
	}	

	#marchi-home li {
	  	display: inline-block;
		margin: 0.5em 0.35em 0.5em 0.35em;
	}
		
		#marchi-home li a img {
			opacity: 1;
			-webkit-transition: all 0.1s ease-in-out;
			-moz-transition: all 0.1s ease-in-out;
			-o-transition: all 0.1s ease-in-out;
			transition: all 0.1s ease-in-out;
		}
		
		#marchi-home li a:hover img {
			opacity: 0.7;
			-webkit-transition: all 0.1s ease-in-out;
			-moz-transition: all 0.1s ease-in-out;
			-o-transition: all 0.1s ease-in-out;
			transition: all 0.1s ease-in-out;
		}
		
#brand-link {
	font-size:110px;
	font-weight:700;
	color: #de0000;
}

	#brand-link a {
		opacity:1;
		color: #de0000;
	}

	#brand-link a:hover {
		opacity:0.6;
		color: #de0000;
	}

#ambienti {
	padding-top:2.5em;
	height:auto;
  	background-image: url(../img/ambienti.jpg);
  	background-repeat: no-repeat;
}
	
	#ambienti p {
		margin:0 auto;
		color:#fff;
	}
	
	#ambienti p a {
		color:#de0000;
	}
	
	#ambienti p a:hover {
		color:#fff;
	}

#breadcrumb {
	margin:0;
	padding:0;
	background:#de0000;
	height:auto;
	color:#fff;
}

	#breadcrumb p {
		color:#fff;
		font-size:14px;
		margin:0;
		padding:12px 0 12px 0;
		text-transform:uppercase;
	}
	
		#breadcrumb p a {
			color:#fff;
		}
	
		#breadcrumb p a:hover {
			color:#fff;
			text-decoration:underline;
		}
	
		#breadcrumb p strong {
			font-weight:normal;
			text-decoration:underline;
		}

#banner {
	margin:0;
	padding: 5em 0 5em 0;
	text-align:center;
}
	
	#banner h1 {
		margin:0;
		padding:0;
		color:#fff;
		font-weight:300;
	}
	
	#banner h2 {
		margin:0;
		padding:0;
		color:#fff;
		font-weight:400;
	}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * 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 audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Browser Upgrade Prompt
   ========================================================================== */

.browserupgrade {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden {
    display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * http://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 */

.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:
 * https://www.drupal.org/node/897638
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

/*
 * Hide visually and from screen readers, 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;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 20px) {
    /* Style adjustments for viewports that meet the condition */
	
	#scatola {
		width:97%;
	}
	#scatola2 {
		width:97%;
	}
	
	#social li strong {
		display:none;
	}
	#social {
	}
	#marchi-home li {
		width:270px;
	}	

	#marchi-home li img {
	  	width:270px;
	}
	
	#ambienti {
		background-size: cover;
	}
		#ambienti p {
			padding:1em; 
			font-size: inherit;
		}
}

@media only screen and (min-width: 480px) {
    /* Style adjustments for viewports that meet the condition */
}

@media only screen and (min-width: 760px) {
    /* Style adjustments for viewports that meet the condition */
	
	#scatola {
		width:95%;
	}
	#scatola2 {
		width:95%;
	}
	
	#social li strong {
		display: block;
	}
}

@media only screen and (min-width: 1023px) {
    /* Style adjustments for viewports that meet the condition */
	#navbar {
		border-bottom-width: 4px;
		border-bottom-style: solid;
		border-bottom-color: #de0000;
	}

	#scatola {
		width:800px;
	}	

	#scatola2 {
		width:650px;
	}	
	
	#marchi-home li {
		width:210px;
	}	

	#marchi-home li img {
	  	width:210px;
	}
		
		#marchi-home li a:hover img {
			width:205px;
		}
	
	#ambienti {
		background-size:128%;
	}
		#ambienti p {
			font-size:22px;
			width:58%;
			padding:4em; 
		}
	
	#banner h1 {
		font-size:50px;
	}
	
	#banner h2 {
		font-size:16px;
	}

}

@media only screen and (min-width: 1150px) {
    /* Style adjustments for viewports that meet the condition */

	#scatola {
		width:1000px;
	}
	
	#marchi-home li {
		width:270px;
	}		

	#marchi-home li img {
	  	width:270px;
	}
		
		#marchi-home li a:hover img {
			width:263px;
		}
}

@media print,
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 1.25dppx),
       (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   http://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
    *,
    *:before,
    *:after,
    *:first-letter,
    *:first-line {
        background: transparent !important;
        color: #000 !important; /* Black prints faster:
                                   http://www.sanbeiji.com/archives/953 */
        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 that are fragment identifiers,
     * or use the `javascript:` pseudo protocol
     */

    a[href^="#"]:after,
    a[href^="javascript:"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    /*
     * Printing Tables:
     * http://css-discuss.incutio.com/wiki/Printing_Tables
     */

    thead {
        display: table-header-group;
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}
