/*! 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
   ========================================================================== */

#wrapper-breadcrumb {
	margin:0 auto;
	padding: 1em 0 1em 0;
	height: auto;	
}

#breadcrumb-container li {
	display: inline-block;
}

	#breadcrumb-container li {
		font-size:13.2px;
		color:#9f9f9f;
	}

		#breadcrumb-container li a {
			color:#9f9f9f;
		}

		#breadcrumb-container li a:hover {
			color:#0e5090;
		}

.cta {
	position: fixed;
	right:1em;
	bottom:1em;
	z-index:900;
}

	.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;
	}

#green {
    font-size:13px;
    font-family: 'Poppins', sans-serif;
    margin: 0 1.8em 0 1.8em;
    background: #00963b;
    text-align:left;
    padding:1em;
    color:#fff;
} 

#header {
    background:#fff;
    z-index:2;
    position:fixed;
    width:100%;
    padding-bottom:0.5em;
    border-bottom: 1px solid #ddd
}
#titolo {
            margin:0 auto;
            text-align:center;
        }

        #wrapper-titolo {
            position: relative;
            top:-0.85em;
        }

        #titolo p {
            clear: both;
            font-size:15px;
            padding: 0.35em 0 0.35em 0;
            background:#e3e3e3;
            color:#00963b;
            margin-bottom:3px;
        }

        #titolo p a {
            background:#e3e3e3;
            color:#00963b;
            text-decoration: none;
			-webkit-transition: all 0.15s ease-in-out;
			-moz-transition: all 0.15s ease-in-out;
			-o-transition: all 0.15s ease-in-out;
			transition: all 0.15s ease-in-out;
            cursor: pointer;
        }

            #titolo p strong {
                text-transform: uppercase;
                font-size:18px;
                padding: 0.5em 0 0.5em 0;
                color:#fff;
                margin-bottom:5px;
            }

            #titolo h3 a {
                
                font-family: 'Poppins', sans-serif;
                color:#00963b;
                font-size:25px;
                font-weight: 700;
                padding: 0.5em 0 0.5em 0;
                margin-bottom:5px;
            }

            #titolo h4 {
                
                font-family: 'Poppins', sans-serif;
                color:#333;
                font-size:20px;
                font-weight: 500;
                padding: 0em 0 0.5em 0;
                margin-bottom:5px;
            }

#wrapper-form {
	background:#f2f2f2;
}

#wrapper2 {
	margin-top:70px;
	text-align:center;
	padding:2em 0 2em 0;
	background-color: #f2f2f2;
}

#credits ul {
		margin-right:2.5em;
}		
	#credits li {
		padding-left:0.3em;
		padding-right:0.3em;
		display: inline-block;
}

#auguri {
	background-color:#ff0000;
	height:auto;
	color:#ffffff;
	text-align:center;
	padding: 0.18em 0 0.15em 0;
}
#auguri p {
	color:#ffffff;
}

#demo {
	padding: 20px;
	margin: 50px auto;
}

html {
    color: #222;
    font-size: 1em;
    line-height: 1.4;
}

h1 {
	margin:0;
	padding:0;
	letter-spacing: 1px;
	font-weight: 600;
	font-family: 'Poppins', sans-serif;
	letter-spacing:0.4px;
	color:#00a954;
}

h2 {
	margin:0;
	padding:0;
	letter-spacing: 1px;
	font-weight:600;
	font-family: 'Poppins', sans-serif;
	color:#00a954;
}

h3 {
	margin:0;
	padding:8px 0 8px 0;
	letter-spacing: 1px;
	font-weight:400;
	font-family: 'Poppins', sans-serif;
	letter-spacing:0.4px;
	color:#00a954;
}

p {
	margin: 0;
	padding: 0;
	font-family: 'Poppins', sans-serif;
	font-size:15px;
	color: #333333;
	line-height: 28px;
	text-decoration:none;
}

	p strong {
		font-family: 'Poppins', sans-serif;
		color:#333;
	}
	
	p a {
		font-family: 'Poppins', sans-serif;
		color:#00a954;
		-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: 'Poppins', sans-serif;
		color:#000;
		-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;
	}

/* 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 */

/* YELLOW BUTTON */	
.myButton {
	background-color:#00a955;
	display:inline-block;
	cursor:pointer;
	color:#ffffff;
	font-family: 'Poppins', sans-serif;
	font-size:14px;
	padding:12px 36px;
	text-decoration:none;
}
.myButton:hover {
	background-color:#006b50;
	-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;
}
.myButton:active {
	position:relative;
	top:1px;
}
/* YELLOW BUTTON */

/* WHITE BUTTON */	
.myButton2 {
	background-color: #e8a800;
	display: inline-block;
	cursor: pointer;
	color: #ffffff;
	font-family: 'Poppins', sans-serif;
	margin: 0.15em 0 0.15em 0;
	padding: 8px 14px;
	text-decoration: none;
	border-radius: 39px;
	border: 2px solid #ffffff;
	height:20px;
}
.myButton2:hover {
	background-color:#00a954;
	-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;
}
.myButton2:active {
	position:relative;
	top:1px;
}
.mail-button-landing {
	float:right;
}
/* WHITE BUTTON */	

header {
	margin:0 auto;
}

#social {
	position: absolute;
	z-index: 1;
}
	
	#social ul {
	}	

	#social li {
		text-align:center;
		display: inline-block;
		width:35px;
	}	
		
		#social 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 li a:hover img {
			opacity: 0.6;
			-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;
		}
#wrapper {
    position:sticky;
    background: #fff;
	width:100%;
	padding:0.8em 0 0em 0;
	margin:0 auto;
	text-align:center;
}
#wrapper3 {
    background: #f2f2f2;
	width:100%;
	padding:2.5em 0 0.5em 0;
	margin:0 auto;
	text-align:center;
    margin-bottom:3em;
}

#logo {
	height:auto;
	padding: 0 12px 0px 0px;
}
	
	/* Style the navbar */
	#navbar {
		background-color: #FFF;
		padding: 0 0em 1.1em 0;
		background-repeat:repeat-x;
		z-index: 6;
		border-bottom-width: 1px;
		border-bottom-style: solid;
		border-bottom-color: #fff;
		border-bottom-width: 1px;
		border-bottom-style: solid;
		border-bottom-color: #f3f3f3;
		box-shadow: 0px 4px 6px #eee;
	}

	/* 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 {
	  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 {
	}

#logo2 {
	height:auto;
	padding-bottom:0.75em;
}
	
	#logo2 img {
		max-width: 100%;
		display: block;
	}

nav {
	margin: 0 auto;
	padding:1.2em 0 0.4em 0;
	height: auto;
	}

#presentazione {
	margin: 0em auto 0 auto;
	text-align: left;
}

.agenzia-button {
	border: 2px solid #00a954;
	font-family: 'Poppins', sans-serif;
	letter-spacing: 2px;
	background: #00a954;
	color: #fff;
	font-weight: 600;
	padding: 0.7em;
	text-align: center;
	text-transform: uppercase;
	text-decoration: none;
	font-style: normal;
}
 
.agenzia-button:hover {
	border: 2px solid #00a954;
    background-color: #fff;
	color:#00a954;
	-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;
}

#box-agenzia {
	text-align:left;    
}

	#box-agenzia li {
	text-align:left;   
		display: inline-block;
	}
#box-superbonus {
	text-align:center;    
}

	#box-superbonus li {
	text-align:center;   
		display: inline-block;
	}
#box-superbonus2 {
	text-align:center;    
}

	#box-superbonus2 li {
	text-align:center;   
		display: inline-block;
	}

#box {
	margin:0 auto;
	text-align:center;
}

	#box li {
		text-align:center;
		display: inline-block;
	}

#scatola-mappa {
	clear:both;
	background:#e4e4e4;
	padding: 3em 0 4em 0;
	text-align:center;
	margin:0 auto;
}
	#scatola-mappa h1 {
		margin:0;
		paddin:0;
		font-weight:300;
		color: #333333;
	}

.bordo-mappa {
	border-top-width: 4px;
	border-bottom-width: 4px;
	border-top-style: solid;
	border-bottom-style: solid;
	border-top-color: #FFF;
	border-bottom-color: #FFF;	
}

#cta {
	background:#00a954;
	height:auto;
	padding:0.4em  0.5em 0.4em 0;
	position:fixed;
	width:100%;
	text-align:right;
	top:0;
	right:0;
}

	#cta img {
		width:50px;
	}



/*
 * 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 */
	 

	#wrapper-breadcrumb {
		width:97%;
	}
    
	h1 {
		font-size:24px;
	}
	
	h2 {
		font-size:16px;
	}
		
	#logo img {
		margin: 0;
		width:190px;
	}
	
	#social {
		display:none;
	}
	
	#presentazione {
		width:80%;
		padding: 1.7em 0 1em 0;
	}
	
	#immagine img {
		margin:2em 0 0 0;
		width:100%;
	}
	
	#box-agenzia { 
        text-align: center;
		margin-top:2.5em;
	}
	
	#box-agenzia li {
		width:70%;
        margin-bottom:2.5em;
        }
    
        #box-agenzia li p {
        }

            #box-agenzia li p strong {
                color:#00a954;
            }

            #box-agenzia li p em {
                color:#bbb;
                font-weight: 600;
                text-transform: uppercase
            }
	
	
    
    .slider {
        padding-top:6em;
    }
	#box-agenzia li p {
		text-align: left;
	}
	
	
	#box-superbonus li p {
		text-align: center;
	}
	
	#box-superbonus { 
        text-align: center;
		margin-top:2.5em;
	}
	
	#box-superbonus li {
		width:70%;
        margin-bottom:2.5em;
        }
    
        #box-superbonus li p {
        }

            #box-superbonus li p strong {
                color:#00a954;
            }

            #box-superbonus li p em {
                color:#bbb;
                font-weight: 600;
                text-transform: uppercase
            }
    
    #box-superbonus2 li p {
		text-align: center;
	}
	
	#box-superbonus2 { 
        text-align: center;
		margin-top:2.5em;
	}
	
	#box-superbonus2 li {
		width:70%;
        margin-bottom:2.5em;
        }
    
        #box-superbonus2 li p {
        }

            #box-superbonus2 li p strong {
                color:#00a954;
            }

            #box-superbonus2 li p em {
                color:#bbb;
                font-weight: 600;
                text-transform: uppercase
            }
	
	#box {
		margin-top:1em;
	}
	
	#box li img {
		width:95%;
	}
	
	#scatola-mappa {
		width:100%;
	}
	
	#scatola-mappa h1 {
		font-size:19px;
	}
	
	.mail-button-landing {
		display:none;
	}
	
	#footer1 {
		display: none;
	}
	
	#logo {
		margin: 0 auto;
	}

	#wrapper {
		width:97%;
	}
	
	#logo2 {
		padding: 4.3em 12px 0px 18px;
	}
	
	#rec {
		display:none;
	}
	
@media only screen and (min-width: 400px) {
    /* Style adjustments for viewports that meet the condition */
	
	h1 {
		font-size:28px;
	}
	
	h2 {
		font-size:19px;
	}
		
	#logo img {
		width:270px;
	}
	
	#presentazione {
		padding: 2.8em 0 2.2em 0;
	}
	
	#box {
		margin-top:3.6em;
	}
		
	#box li {
		width:230px;
		margin: 0 0.1em 0 0.1em;
	}
	
	#box li img {
		width:230px;
	}
}

@media only screen and (min-width: 760px) {
    /* Style adjustments for viewports that meet the condition */
	
	

	#wrapper-breadcrumb {
		width:95%;
	}
    #social {
		display: block;
		top:1.15em;
		right:1.2em;
	}
	
	#wrapper {
		width:95%;
	}
	
	#presentazione {
		padding: 0em 0 2.2em 0;
	}
}

@media only screen and (min-width: 1024px) {
    /* Style adjustments for viewports that meet the condition */
	
	#wrapper {
		width: 990px;
	}
    
	#wrapper-breadcrumb {
		width: 920px;
	}
	
#wrapper-form {
	background:#f2f2f2;
	padding:1.5em 0 8em 0; 
}	
		
	#logo {
		float:left;
	}
    
    .slider {
        padding-top:4.6em;
    }	
		
	#logo img {
		margin-top: 0em;
		width:260px;
	}
	
	#rec {
		display: block;
	}
	
	#testo {
		width:45%;
		float:left;
	}
	
	#immagine  {
		text-align: right;
	}
	
	#immagine img {
		margin:0;
		text-align: right;
		width:50%;
	}
	
	#logo2 {
		padding: 18px 12px 0px 18px;
	}
	
	#cta {
		display:none;
	}
	
	#footer1 {
		display:block;
	}
	
	#footer2 {
		display: none;
	}
	
	h1 {
		font-size:32px;
	}
	
	h2 {
		font-size:21px;
	}
	
	#presentazione {
		padding: 3em 0 2.2em 0;
		width:85%;
	}
    
    #box-agenzia { 
        text-align: left;
	}
    
    #box-agenzia li {
        margin-left:1em;
        vertical-align: text-top;
        width: 250px;
    }
    
        #box-agenzia li p {
            vertical-align: text-top;
        }
    
    #box-superbonus { 
        text-align: left;
	}
    
    #box-superbonus li {
        margin-left:1em;
        vertical-align: text-top;
        width: 170px;
    }
    
        #box-superbonus li p {
            font-size:13px;
            vertical-align: text-top;
        }
    
    #box-superbonus2 { 
        text-align: left;
	}
    
    #box-superbonus2 li {
        margin-left:1em;
        vertical-align: text-top;
        width: 302px;
    }
    
        #box-superbonus li p {
            font-size:13px;
            vertical-align: text-top;
        }
		
	#box li {
		width: 290px;
		margin: 0 0.4em 0.6em 0.4em;
	}
	
		#box li img {
		}
		
	#scatola-mappa h1 {
		font-size:26px;
	}
	
	.myButton2 {
		font-size: 14px;
		height:20px;
	}
}

@media only screen and (min-width: 1265px) {
    /* Style adjustments for viewports that meet the condition */
	
	h1 {
		font-size:36px;
	}

	#wrapper-breadcrumb {
		width: 97%;
	}
	
	h2 {
		font-size:35px;
	}
	
	h3 {
		font-size:27px;
	}	
		
	#logo img {
		margin-top: 0em;
		width:260px;
	}
	
	#wrapper {
		width:1200px;
	}
	
	#social {
		right:2.5em;
	}
	
	#presentazione {
		padding: 3em 0 2.2em 0;
		width:60%;
	}
	
	#box li {
		width: 312px;
		margin: 0 0.9em 1em 0.9em;
	}
	
		#box li img {
			width: 312px;
		}		
		
	#scatola-mappa h1 {
		font-size:28px;
		font-weight:200;
	}
	
	.mail-button-landing {
		display: block;
	}
	
	.myButton2 {
		font-size: 16px;
		height:22px;
	}
}

@media only screen and (min-width: 1400px) {
    /* Style adjustments for viewports that meet the condition */
	
	header {
		width:1440px;
	}
	
	#wrapper {
		width:1350px;
	}

	nav {
		border-right-width: thin;
		border-left-width: thin;
		border-right-color: #e4e4e4;
		border-left-color: #e4e4e4;
	}
	
	#presentazione {
		padding: 4em 0 2.2em 0;
		width:70%;
	}
}

@media only screen and (min-width: 1645px) {
    /* Style adjustments for viewports that meet the condition */
	
	
	#wrapper {
		width:1350px;
	}
	
	#social {
		right:9em;
	}
	
	#presentazione {
		padding: 4em 0 2.2em 0;
		width:64%;
	}
	
	#testo {
		width:50%;
		float:left;
	}
	
	#immagine  {
		text-align: right;
	}
	
	#immagine img {
		text-align: right;
		width:45%;
	}
}

@media only screen and (min-width: 1920px) {
    /* Style adjustments for viewports that meet the condition */
	
	#box {
		width:1500px;
	}
	
	#social {
		right:15.5em;
	}
	
	#presentazione {
		padding: 4em 0 2.2em 0;
		width:64%;
	}
	
	#testo {
		width:55%;
		float:left;
	}
	
	#immagine  {
		text-align: right;
	}
	
	#immagine img {
		text-align: right;
		width:40%;
	}	
}

@media only screen and (min-width: 2550px) {
    /* Style adjustments for viewports that meet the condition */
	
	#social {
		right:35.5em;
	}	
}

@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;
    }
}
