@media only screen and (min-width: 1381px ) {
	.container, .navbar-static-top .container, .navbar-fixed-top .container, .navbar-fixed-bottom .container { width: 1280px; }
	.boxedWrapper,
	.boxedBottomBar.credits { width: 1340px; }
}
@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,
	.boxedBottomBar.credits { 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 { 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 { float: none !important; margin: 0 auto 20px; display: block; }
	
	#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: 1380px ) {
	#pN2, #pN3, #pN4 { display: none; }
	
}

@media only screen and (max-width: 1200px ) {
	header { padding: 10px 0 10px; }
	header nav.menu.main-menu li { margin-left: 5px; }
	header nav.menu.main-menu li a { background: none; background-image: none !important; padding: 6px; }
	.serviceBox.style6 .imageContainer:after { background-size: 80px; }
	.serviceBox.style6 h3 { font-size: 16px; line-height: 18px; }
	
	#pN1, #ulN1 { display: none; }
	
	.blog-container article.single-post .post-date { margin-bottom: 5px; }
	.blog-container article.single-post h3 { margin-top: 0; margin-bottom: 5px; }

	body footer.align_left img#footer { height: 28px; }
}

@media only screen and (max-width: 979px ) {
	header nav.menu.main-menu { margin-top: 15px; }
	
	.home .container.main, .container.main { padding-top: 25px; }
	.serviceBox.style6 .imageContainer:after { background-size: 90px; }
	.serviceBox.style6 h3 { font-size: 14px; line-height: 16px; }
	
	.sidebar h3.sidebar-widgettitle { font-size: 14px; line-height: 16px; }
	
	.readmore { padding: 8px 12px; }
	
	.page-title { padding: 20px 0; }
	.page-title h1 { font-size: 26px; line-height: 26px; }
}

@media only screen and (max-width: 767px ) {
	.serviceBox.style6 { margin-bottom: 15px; }
	.serviceBox.style6 h3 { font-size: 18px; line-height: 22px; }
	.serviceBox.style6 .imageContainer:after { background-size: 80px; }
	
	#pN1, #ulN1 { display: block; }
	#pN2, #pN3, #pN4 { display: inline; }
	
	.section-benvenuto h3 { margin-top: 15px !important; }
	
	.page-title { margin: 0 10px; }
	
	.blog-container article.single-post .post-date { margin-top: 10px; }
	.blog-container article.single-post h3 { margin-top: 10px; margin-bottom: 5px; }

	body footer.align_left img#footer { max-width: 100%; height: auto; max-height: 28px; }
}

@media only screen and (max-width: 480px ) {
	
	img.alignleft { width: 100%; margin: 0 0 10px 0; float: none; }
}