@media only screen and (min-width: 1381px ) {
	.container, .navbar-static-top .container, .navbar-fixed-top .container, .navbar-fixed-bottom .container { width: 1220px; }
}
@media only screen and (min-width: 1201px) and (max-width: 1380px ) {
	.container, .navbar-static-top .container, .navbar-fixed-top .container, .navbar-fixed-bottom .container { width: 1170px; }
	.container {  padding: 0 30px; }
	.boxedWrapper { width: 1230px; }
}

/* Ipad orizzontale */
@media only screen and (max-width: 1200px ) {
	.boxedWrapper,
	.boxedBottomBar.credits { width: 1000px; }
	.wide-background { background-position: center !important; }
	h3 { font-size: 22px; line-height: 26px; }
	
	#h1200 { display: none; }
	
	iframe#gmap { height: 465px; }
	iframe#ytvideo { height: 395px; }
}

/* Ipad verticale */
@media only screen and (max-width: 979px ) { 
	body, li { font-size: 12px; line-height: 16px; }
	.container { padding: 0 20px; }
	.boxedWrapper,
	.boxedBottomBar.credits { width: 784px; }
	.content-wrap .row-fluid, .shadow,
	.wide-background.bg-home .row-fluid { margin-bottom: 25px; }
	.wide-background .row-fluid, .wide-shadow { margin-bottom: 0; }
	p { margin: 0 0 8px; }
	h1, h2, h3, h4, h5, h6 { margin: 8px 0; }
	h3 { font-size: 18px; line-height: 22px; }

	footer p { text-align: center !important; }	
	footer table { margin: 0 auto !important; float: none !important; }
	footer img#footer { display: none !important; }
	
	#h979 { display: none; }
	
	iframe#gmap { height: 357px; }
	iframe#ytvideo { height: 305px; }
	
	.sidebar #searchform input[type="text"] { height: 36px; padding: 0 3px; font-size: 12px; }
	.sidebar #searchform button.searchsubmit { top: 13px; right: 13px; }
}

/* Mobile orizzontale */
@media only screen and (max-width: 767px ) {
	.container { padding: 0 10px; }
	.container.main { padding-top: 25px; }
	.boxedWrapper,
	.boxedBottomBar.credits { width: 100%; margin: 0; border: 0; }
	
	header img#logo { max-width: 300px; min-width: 0; width: 100%; margin: 0 auto; display: block; }
	
	header nav.menu ul.std-menu { display: none !important; }
	header nav.menu ul.ul-mobile-menu { display: block !important; }
	
	.page-title { padding: 15px 0; }
	.page-title h1 { text-align: center; font-size: 24px; line-height: 26px; }
	
	.single-archive-post img { margin-bottom: 10px; }
	
	.sidebar,
	prefooter { display: none; }
	
	#h1200, #h979 { display: block; }
	#h767 { display: none; }
	
	iframe#gmap { height: 270px; }
	iframe#ytvideo { max-width: 100%; height: 320px; display: block; margin: 25px auto 0; }
}

/* Mobile verticale */
@media only screen and (max-width: 480px ) {
	
	#h480 { display: none; }
	
	iframe#gmap { height: 180px; }
	iframe#ytvideo { max-width: 100%; height: 200px; }
	
	.visual-form-builder li.vfb-left-half, .visual-form-builder li.vfb-right-half,
	.visual-form-builder li.vfb-left-third, .visual-form-builder li.vfb-middle-third, 
	.visual-form-builder li.vfb-right-third,
	.visual-form-builder li.vfb-three-column div span { width: 100% !important; margin: 0 !important; }
}

/* CUSTOM */



@media only screen and (max-width: 1380px ) {	
	.wide-background.shadow.quote-shadow,
	.wide-background.section-settori:before { background-position: top center !important; background-size: 1170px auto; }
	.wide-background.section-settori:after { background-position: bottom center !important; background-size: 1170px auto; }
	
	.tp-dottedoverlay.twoxtwo:after { background-size: 1170px 100%; }
}

@media only screen and (max-width: 1200px ) {
	header nav.menu.main-menu { margin-top: 20px; }
	
	.wide-background.shadow.quote-shadow,
	.wide-background.section-settori:before { background-position: top center !important; background-size: 940px auto; }
	.wide-background.section-settori:after { background-position: bottom center !important; background-size: 940px auto; }
	
	.tp-dottedoverlay.twoxtwo:after { background-size: 940px 100%; }
	
	.wide-background.bg-home { background-position: top center !important; }
	
	p#pN2, p#pN4 { display: none; }
	.serviceBox.style1 .textContainer h3 { font-size: 22px; line-height: 26px; }
	.serviceBox.style1 .textContainer { padding: 15px 8px; }
	
	.wide-background.section-settori .quote h1 { color: #F2942F; font-size: 34px; line-height: 36px; }
	.wide-background.section-settori .quote h2 { font-size: 20px; line-height: 22px; }
	
	.serviceBox.style2 h3 { font-size: 20px; line-height: 22px; }
	.serviceBox.style2 h4 { font-size: 16px; line-height: 18px; }
	
	prefooter iframe { height: 91px; }
}

@media only screen and (max-width: 979px ) {
	header img#logo { margin-top: 15px; }
	
	.wide-background.bg-home .row-fluid.section-servizi { margin-bottom: 0; }
	
	.wide-background.shadow.quote-shadow,
	.wide-background.section-settori:before { background-position: top center !important; background-size: 724px auto; }
	.wide-background.section-settori:after { background-position: bottom center !important; background-size: 724px auto; }
	
	.tp-dottedoverlay.twoxtwo:after { background-size: 724px 100%; }
	
	.intro-container h1 { font-size: 28px; line-height: 30px; }
	.serviceBox.style1:before { margin-left: -24px; border: 24px solid transparent; border-top-width: 24px; border-top-color: #F2942F; }
	.serviceBox.style1 .textContainer { padding: 15px; }
	.serviceBox.style1 .textContainer h3 { font-size: 16px; line-height: 20px; }
	
	.recentPost .recentPost-single h3 { font-size: 16px; line-height: 18px; }
	.recentPost .recentPost-single .data { font-size: 11px; }
	
	prefooter iframe { height: 70px; }
}

@media only screen and (max-width: 767px ) {
	header { padding: 15px 0 10px; }
	header img#logo { margin-top: 0; }
	header .rightContainer { display: table; margin: 10px auto; }
	header nav.menu.main-menu { margin-top: 0; }
	.dl-menuwrapper li a { padding: 8px 10px; font-weight: 400; }
	
	.wide-background.shadow.quote-shadow,
	.wide-background.section-settori:before { background-position: top center !important; background-size: 500px auto; }
	.wide-background.section-settori:after { background-position: bottom center !important; background-size: 500px auto; }
	
	.tp-dottedoverlay.twoxtwo:after { background-size: 500px 100%; }
	
	.quote p, .quote p a { font-size: 16px; line-height: 20px; }
	
	.wide-background.bg-home .row-fluid { margin-bottom: 0; }
	.intro-container.servizi { margin-top: 25px; }
	p#pN2, p#pN4 { display: block; }
	
	.serviceBox.style1 { margin-top: 25px; }	
	.serviceBox.style1:hover, .serviceBox.style1:focus, .serviceBox.style1:active { -webkit-animation: none; animation: none; }
	.serviceBox.style1 .textContainer h3 { font-size: 22px; line-height: 24px; }
	
	.section-settori .span3,
	.pg-settori .span3 { width: 48%; margin: 0 1% 1%; float: left; }
	
	.wide-background.section-settori { background-size: cover; }
	
	.serviceBox.style2 { margin-bottom: 20px; }
	
	.recentPost-single { margin-bottom: 15px; }
}

@media only screen and (max-width: 480px ) {
	header { padding: 25px 0 15px; }
	header nav.menu.main-menu { margin-top: 15px; }
	header .rightContainer { display: none; }
	
	.wide-background.shadow.quote-shadow { height: 20px; }
	
	.wide-background.shadow.quote-shadow,
	.wide-background.section-settori:before { background-position: top center !important; background-size: 280px auto; }
	.wide-background.section-settori:after { background-position: bottom center !important; background-size: 280px auto; }
	
	.tp-dottedoverlay.twoxtwo:after { background-size: 280px 100%; }
	
	.quote h1 { font-size: 24px; line-height: 26px; }
	.quote h2 { font-size: 14px; line-height: 18px; }
	.quote p { font-size: 10px; line-height: 14px; }
	
	.wide-background.section-settori .quote h1 { font-size: 22px; line-height: 24px; }
	.wide-background.section-settori .quote h2 { font-size: 18px; line-height: 20px; }
	
	.section-settori .span3,
	.pg-settori .span3 { width: 100%; margin: 0; float: none; }
	
	img.alignleft { width: 100%; margin: 0 0 15px; float: none; }
	
	.blog-container article.single-post img { margin-bottom: 10px; }
}