@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; }
}

@media only screen and (max-width: 1380px ) {	.clearfix-1380 { clear: both; } }

/* Ipad orizzontale */
@media only screen and (max-width: 1200px ) {
	.boxedWrapper,
	.boxedBottomBar.credits { width: 1000px; }
	.parallax { background-position: center !important; background-attachment: scroll !important; }
	h3 { font-size: 22px; line-height: 26px; }

	iframe#gmap { height: 465px; }

	.clearfix-1200 { clear: both; }
}

/* 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; }
	h4 { font-size: 16px; line-height: 20px; }

	.tparrows { display: none !important; }

	footer p { text-align: center !important; }
	footer table { margin: 0 auto !important; float: none !important; }
	footer img#footer { display: none !important; }

	iframe#gmap { height: 357px; }

	.sidebar #searchform input[type="text"] { height: 36px; padding: 0 3px; font-size: 12px; }
	.sidebar #searchform button.searchsubmit { top: 3px; right: 3px; }

	/*
	.sidebar h3.sidebar-widgettitle { padding: 8px; font-size: 14px; line-height: 18px; }
	.sidebar li.widget div.sidebar-textwidget-box, .sidebar li.widget form { padding: 8px; }
	.sidebar #searchform button.searchsubmit { top: 11px; right: 11px; }
	*/

	.clearfix-979 { clear: both; }

	.vfbp-form label { font-size: 12px; }
}

/* 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; }
	h3 { font-size: 16px; line-height: 20px; }
	h4 { font-size: 14px; line-height: 18px; }

	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; }

	iframe#gmap { height: 270px; }

	.vfbp-form label { font-size: 12px; }

	#back-top { display: none !important; }

	.clearfix-767 { clear: both; }
}

/* Mobile verticale */
@media only screen and (max-width: 480px ) {

	.tp-caption { display: none !important; }

	iframe#gmap { height: 180px; }

	img.alignleft,
	img.alignright,
	.onehalf-width,
	.onethird-width,
	.twothird-width,
	.onefourth-width { width: 100% !important; margin: 0 auto 10px !important; float: none !important; }

	.ul-sitemap li a { font-size: 14px; line-height: 20px; }
}

/* CUSTOM */
@media only screen and (max-width: 1380px ) {
	body .serviceBox.style2 h3 { font-size: 18px; line-height: 22px; }
	body .serviceBox.style2 p { font-size: 13px; line-height: 20px; }

	body .serviceBox.style9 p { font-size: 12px; line-height: 16px; }
}

@media only screen and (max-width: 1200px ) {
	header nav.menu li a { padding: 15px; }

	body .serviceBox.style2 .textContainer { padding: 10px 15px; }
	body .serviceBox.style2 h3 { font-size: 14px; line-height: 18px; }

	body .serviceBox.style9 { padding: 0 10px; }

	p#pN4, p#pN6 { display: none; }

	.section-contatti iframe#gmap { height: 400px; }

	.sidebar li.widget div.sidebar-textwidget-box, .sidebar li.widget form { padding: 8px; }
	.sidebar h3.sidebar-widgettitle { padding: 8px; font-size: 14px; line-height: 18px; }
	.sidebar #searchform button.searchsubmit { top: 13px; right: 13px; }

	table.cataloghi td img { width: 100px; }
	table.cataloghi td.pdf-col img { width: 28px; margin-right: 5px; }

	body .gridContent .gridContent-col5:nth-child(5n+1) { clear: none; margin-left: 0.5%; }
	body .gridContent .gridContent-col5:nth-child(5n) { margin-right: 0.5%; }
	body .gridContent .gridContent-col5 { width: 24.2%; }
	body .gridContent .gridContent-col5:nth-child(4n+1) { clear: both; margin-left: 0; }
	body .gridContent .gridContent-col5:nth-child(4n) { margin-right: 0; }
	
	body .gridContent,
	body .gridCategories {
    	grid-gap: 20px;
	}
}

@media only screen and (max-width: 979px ) {

	header nav.menu { margin-bottom: -23px; height: 46px; }
	header nav.menu li#menu-item-27 { display: none; }
	header nav.menu li a { padding: 15px 10px; }
	header nav.menu li#menu-item-28 a { padding: 15px 20px 15px 15px; }
	header nav.menu li#menu-item-28 a:before { left: -46px; border-width: 23px; border-right-width: 23px; }
	header nav.menu .children { top: 40px; padding: 5px 0; }

	.tp-caption.rev-btn { padding: 10px 20px !important; }

	.d_text h1 { margin-bottom: 15px; font-size: 30px; line-height: 34px; }
	.d_text p strong { font-size: 12px; line-height: 16px; }
	.d_text .readmore { margin-top: 15px; }
	.d_text .readmore:before { right: -46px; border-width: 23px; border-left-width: 23px; }

	p#pN1 { display: none; }

	body .serviceBox.style2 .textContainer { padding: 10px; }
	body .serviceBox.style2 h3 { font-size: 18px; line-height: 22px; }
	body .serviceBox.style2 p { font-size: 12px; line-height: 16px; }

	body .serviceBox.style9 { padding: 0; }
	body .serviceBox.style9 p { display: none; }

	body .serviceBox.style7 .textContainer,
	body .serviceBox.style8 .textContainer { padding: 0 15px; }
	body .serviceBox.style7 .textContainer h3,
	body .serviceBox.style8 .textContainer h3 { font-size: 24px; line-height: 28px; }

	p#pN3 { display: none; }
	p#pN4 { display: block; }

	.section-contatti iframe#gmap { height: 350px; }

	.sidebar #searchform button.searchsubmit { top: 11px; right: 11px; }
	.sidebar .readmore { padding: 8px 10px; }

	table.cataloghi td img { width: 80px; }

	body .gridContent .gridContent-col5:nth-child(4n+1) { clear: none; margin-left: 0.5%; }
	body .gridContent .gridContent-col5:nth-child(4n) { margin-right: 0.5%; }
	body .gridContent .gridContent-col5 { width: 32.6%; }
	body .gridContent .gridContent-col5:nth-child(3n+1) { clear: both; margin-left: 0; }
	body .gridContent .gridContent-col5:nth-child(3n) { margin-right: 0; }
	
	body .gridContent,
	body .gridCategories {
;
    	grid-template-columns: repeat(3, 1fr);
	}
}

@media only screen and (max-width: 767px ) {
	.topHeader { text-align: center; }
	header { padding: 10px 0; }
	header img#logo { max-width: 250px; }
	header .rightContainer { margin: 20px auto; display: table; }
	header .adressInfo .inline-element { margin-right: 50px; }
	header nav.menu { margin-bottom: 0; height: auto; }
	header nav.menu li a { text-align: center; font-weight: bold; text-transform: uppercase; padding: 8px 10px; font-size: 14px; }

	.tp-caption { display: none !important; }

	.quote h1 { font-size: 22px; }
	.quote p { font-size: 14px; line-height: 21px; }

	p#pN1 { display: block; }

	body .serviceBox.style2 { margin: 25px 0; }

	body .serviceBox.style9 { margin: 25px 0; }
	body .serviceBox.style9 p { display: block; font-size: 12px; line-height: 16px; }

	body .serviceBox.style7 .imageContainer,
	body .serviceBox.style8 .imageContainer { width: 40%; }
	body .serviceBox.style7 .textContainer,
	body .serviceBox.style8 .textContainer { width: 60%; }
	body .serviceBox.style7 .textContainer h3,
	body .serviceBox.style8 .textContainer h3 { font-size: 14px; line-height: 18px; }
	body .serviceBox.style7 .textContainer p,
	body .serviceBox.style8 .textContainer p { display: none !important; }

	table.cataloghi td img { width: 60px; margin-right: 5px; }
	table.cataloghi td.pdf-col img { width: 20px; margin-right: 3px; }

	.marchi-container img { width: 160px; }

	body .gridContent .gridContent-col5:nth-child(3n+1) { clear: none; margin-left: 0.5%; }
	body .gridContent .gridContent-col5:nth-child(3n) { margin-right: 0.5%; }
	body .gridContent .gridContent-col5 { width: 48%; margin: 0 1% 2%; }
	body .gridContent .gridContent-col5:nth-child(2n+1) { clear: both; margin-left: 0; }
	body .gridContent .gridContent-col5:nth-child(2n) { margin-right: 0; }
	body .gridContent .gridContent-single .imageContainer img { width: 48%; }
	
	body .gridContent,
	body .gridCategories,
	body .gridCategories.cols-3 {
;
    	grid-template-columns: repeat(2, 1fr);
	}

}

@media only screen and (max-width: 480px ) {
	.section-quote.wide .quote { padding: 20px; }
	.section-quote.wide .quote:before,
	.section-quote.wide .quote:after { width: 82px; height: 82px; }
	.quote h2 { font-size: 20px; line-height: 24px; margin-bottom: 8px; }
	.quote p { font-size: 13px; line-height: 18px; }

	table.cataloghi td { width: 100%; display: block; text-align: center; }
	table.cataloghi td.pdf-col { padding-top: 0; text-align: center; }

	table.cataloghi td img {margin: 0 5px; }
	table.cataloghi td.pdf-col img { margin: 0 3px; }

	body .gridContent .gridContent-col5 { width: 100%; margin: 0 0 15px; float: none; }
	body .gridContent .gridContent-single .imageContainer img { width: 34%; }
	
	body .gridContent,
	body .gridCategories,
	body .gridCategories.cols-3 {
;
    	grid-template-columns: repeat(1, 1fr);
	}
}

@media only screen and (max-width: 400px ) {
	body .gridContent .gridContent-single .imageContainer img { width: 40%; }
}
