/* 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 { margin-bottom: 25px; }
	.wide-background .row-fluid, .wide-shadow { margin-bottom: 0; }
	p { margin: 0 0 5px; }
	h1, h2, h3, h4, h5, h6 { margin: 5px 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: 3px; right: 3px; }
}

/* 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 { width: 100% !important; margin: 0 !important; }
}

/* CUSTOM */
@media only screen and (max-width: 1200px ) {
	header nav.menu.main-menu { margin-top: 8px; }
	header nav.menu.main-menu li a { padding: 8px 10px; }
	
	p#pN2, p#pN4, p#pN7, p#pN9, p#pN11 { display: none; }
}

@media only screen and (max-width: 979px ) {
	header nav.menu.main-menu { margin-top: 5px; }
	header nav.menu.main-menu li#menu-item-20 { display: none; }
	
	.quote h1, .quote h1 a { font-size: 34px; line-height: 40px; }
	
	p#pN5 { display: none; }
	
	.serviceBox.style7 .textContainer { padding-top: 5px; }
	
	.sidebar h2.widgettitle, .sidebar h3.srp-widget-title { font-size: 16px; line-height: 20px; }
}

@media only screen and (max-width: 767px ) {
	header  { padding: 20px 0; }
	header nav.menu.main-menu { margin-top: 15px; }
	header nav.menu.main-menu li#menu-item-20 { display: block; }
	
	.quote h1, .quote h1 a { font-size: 28px; line-height: 32px; }
	.quote h2, .quote h2 a { font-size: 20px; line-height: 22px; }
	
	.serviceBox.style6 { margin-bottom: 15px; }
	.serviceBox.style6 .imageContainer { width: 35%; }
	.serviceBox.style6 .textContainer { width: 62%; }
	
	.wide-background.section-benvenuto .cycloneslider { margin-top: 15px; }
	
	p#pN2, p#pN4, p#pN5, p#pN7, p#pN9, p#pN11 { display: block; }
	
	.serviceBox.style7 .textContainer { padding-top: 15px; }
}

@media only screen and (max-width: 480px ) {
	.quote h1, .quote h1 a { font-size: 30px; line-height: 32px; }
	.quote h2, .quote h2 a { font-size: 20px; line-height: 22px; }
	
	.serviceBox.style6 .imageContainer,
	.serviceBox.style6 .textContainer,
	.serviceBox.style7 .imageContainer,
	.serviceBox.style7 .textContainer { width: 100%; float: none; margin: 0; }
	
	.serviceBox.style6 .imageContainer img,
	.serviceBox.style7 .imageContainer img { max-width: 70%; margin: 0 auto 15px; display: block; }
	
	.serviceBox.style6 .textContainer,
	.serviceBox.style7 .textContainer { padding-top: 0; }
	
	.serviceBox.style6 .textContainer h3,
	.serviceBox.style7 .textContainer h3 { text-align: center; }