/* Box sizing */
	div#content {min-height: calc(var(--true-viewport-h) - var(--header-main-h) - var(--footer-main-h) - var(--cavalleretti-pagine_interne-rowgap));}
	.elementor-section-wrap, [data-elementor-type]:not([data-elementor-type="section"]) {
		display: flex;
		flex-direction: column;
		/* row-gap: var(--cavalleretti-pagine_interne-rowgap); */
	}
	[data-editable-elementor-document]:after, [data-editable-elementor-document]:before{content: none !important;}
	.elementor-location-single > .e-con-boxed,
	[data-elementor-type="wp-page"] > .e-con-boxed,
	.elementor-section-wrap > .e-con-boxed,
	.e-con > .e-con-inner {
		max-width: var(--cavalleretti-content-max-width);
		width: var(--content-width, var(--wp--custom--ast-container-width));
		margin: auto;
	}
	@media screen and (max-width: 1024px) {[tablet-fullw], [tablet-fullw] > .e-con-inner {max-width: 100vw !important;}}
	@media screen and (max-width: 767px) {[mobile-fullw], [mobile-fullw] > .e-con-inner {max-width: 100vw !important;}}

	@media screen and (min-width: 2561px) {
		[no-ultrawide] {max-width: 2560px !important;}
	}
/* END Box sizing */

/* E-flex-grid conversion to custom-flexbox */
	.elementor-element.e-con-full.e-grid.e-con.e-child {
		--vgap: var(--column-gap) !important;
		--hgap: var(--row-gap) !important;
		--columns: var(--e-con-grid-template-columns);
		gap: var(--hgap) var(--vgap) !important;
		flex-wrap: wrap;
		display: flex !important;
	}
	.elementor-element.e-con-full.e-grid.e-con.e-child > .elementor-element  {
		--gap-width-spare: calc(calc(calc(100% + calc(var(--vgap) * calc(var(--columns) - 1))) / var(--columns)) - calc(100% / var(--columns)));
		--column-width: calc(100% / var(--columns) - var(--gap-width-spare)) !important;
		width: var(--column-width);
	}
/* END E-flex-grid conversion to custom-flexbox */

/* box un-terzo */
	@media screen and (min-width: 1270px) {
		.box-un-terzo:not(:has( > .e-con-inner)), .box-un-terzo > .e-con-inner {
			--unterzo-gap: 60px;
			--unterzo-width: 30%;
			--unterzo-minmax-width: 60vw;
			gap: var(--unterzo-gap);
			display: flex;
			flex-direction: row;
			/* align-items: flex-start; */
		}
		.box-terzo {
			width: var(--cavalleretti-secondary-container-width);
			max-width: var(--unterzo-minmax-width);
		}
		.box-un {
			width: calc(100% - var(--cavalleretti-secondary-container-width) - var(--unterzo-gap));
			min-width: calc(100% - var(--unterzo-minmax-width) - var(--unterzo-gap));
		}
		.section-alternate-unterzo > .e-con-inner > .box-un-terzo:nth-child(even), .section-alternate-unterzo > .box-un-terzo:nth-child(even) {flex-direction: row-reverse;}
	}
	@media screen and (max-width: 1269px) {
		.box-un-terzo:not(:has( > .e-con-inner)), .box-un-terzo > .e-con-inner {
			--unterzo-gap: 60px;
			--unterzo-width: 30%;
			gap: 20px var(--unterzo-gap);
			flex-direction: column !important;
		}
	}
/* END box un-terzo */

/* Intro style 1 */
	div.sezione-intro {
		background-image: var(--image);
		background-repeat: no-repeat;
		background-size: cover;
		background-position: center;
	}
	.sezione-intro path {
		fill: white !important;
	}
/* END Intro style 1 */

/* Intro style 2 */
	.intro-style-2 {
		--box-style-padding: 75px;
		display: flex;
		justify-content: space-between;
	}
	.intro-style-2 > .box-un-terzo {padding: var(--box-style-padding) 0px;}
	.intro-style-2 > .box-un-terzo, .intro-style-2 .box-terzo  {min-height: calc(100vh - var(--header-main-h) - var(--cavalleretti-sep-height) - calc(var(--box-style-padding) * 2));}
	.intro-style-2 .box-un-terzo > .e-con-inner {
		display: flex;
		flex-direction: row !important;
		align-items: flex-end !important;
		height: max-content !important;
		justify-content: space-between !important;
	}
	.intro-style-2 .box-un {
		display: flex;
		align-items: flex-start;
	}
	.intro-style-2 .box-terzo > .elementor-widget-image {position: absolute;}
	.intro-style-2 .box-terzo > .elementor-widget-image img {
		border-radius: var(--cavalleretti-radius-medium);
		object-fit: cover;
	}
	.intro-style-2 .box-terzo > .intro-img-front {
		left: 0 !important;
		bottom: 0;
		top: unset !important;
		overflow: hidden;
		z-index: 1;
	}
	.intro-style-2 .box-terzo > .intro-img-front img {
		/* height: 55%; */
		width: 620px;
	}
	.intro-style-2 .box-terzo > .intro-img-back {
		right: 0 !important;
		overflow: hidden;
		bottom: 60px;
	}
	.intro-style-2 .box-terzo > .intro-img-back img {
		height: 50%;
		width: 450px;
	}
	@media screen and (min-width:1270px) and (max-width:1470px) {
	    .intro-style-2 .box-terzo > .intro-img-front img {
	        width: 460px;
	        height: 300px;
	    }
	    .intro-style-2 .box-terzo > .intro-img-back img {width: 60%;}
	    .intro-style-2 .box-terzo > .intro-img-back {text-align: right;}
	}
	@media screen and (max-width: 767px) {
		.intro-style-2 .box-un, .intro-style-2 .box-terzo {width: 100%;}
	}
/* END Intro style 2 */

/* Intro style 3 */
	.intro-style-3 {
		--box-style-padding: 75px;
		display: flex;
		justify-content: space-between;
	}
	.intro-style-3 > .box-un-terzo {padding: var(--box-style-padding) 0px;}
	.intro-style-3 .box-un-terzo > .e-con-inner {
		display: flex;
		flex-direction: row !important;
		align-items: flex-end !important;
		height: max-content !important;
		justify-content: space-between !important;
	}
	.intro-style-3 .box-terzo {
		border-radius: var(--cavalleretti-radius-medium);
		overflow: hidden;
		min-height: 350px !important;
	}
	@media screen and (min-width: 768px) {
		.intro-style-3 > .box-un-terzo, .intro-style-3 .box-terzo  {min-height: calc(100vh - var(--header-main-h) - var(--cavalleretti-sep-height) - calc(var(--box-style-padding) * 2)) !important;}
		.intro-style-3:not(:has( .cavalleretti-divisore)) > .box-un-terzo, .intro-style-3:not(:has( .cavalleretti-divisore)) .box-terzo {
			--cavalleretti-sep-height: 0px;
		}
		.intro-style-3 .box-un {
			width: var(--unterzo-width);
			display: flex;
			align-items: flex-start;
		}
		.intro-style-3 .box-terzo  {width: calc(100% - var(--unterzo-width) - var(--unterzo-gap));}
	}
/* END Intro style 3 */

/* Intro style 4 */
	@media screen and (min-width: 768px) {
		.intro-style-4 {
			--box-style-padding: 75px;
			display: flex;
			justify-content: space-between;
		}
		.intro-style-4 > .box-un-terzo {padding: var(--box-style-padding) 0px;}
		.intro-style-4 > .box-un-terzo, .intro-style-4 .box-terzo  {
			min-height: calc(100vh - var(--header-main-h) - var(--cavalleretti-sep-height) - calc(var(--box-style-padding) * 2));
		}
	}
/* END Intro style 4 */

/* Loop carousel */
	@media screen and (min-width: 768px) {
		.box-prodotti-carousel {
			--box-prodotti-carousel-gap: 30px;
			--box-prodotti-carousel-title-w: 20%;
			justify-content: flex-end;
			padding-left: var(--cavalleretti-padding-to-inside-box);
		}
		.box-custom-carousel {
			width: calc(100% - var(--box-prodotti-carousel-title-w) - var(--box-prodotti-carousel-gap));
			gap: var(--box-prodotti-carousel-gap);
		}
		.carousel-title {width: var(--box-prodotti-carousel-title-w) !important;}
	}
	@media screen and (max-width: 767px) {
		.box-prodotti-carousel {
			flex-direction: column;
			gap: 40px;
		}
		.carousel-title {padding-left: var(--cavalleretti-padding-to-inside-box);}
	}
	.elementor-image-carousel-wrapper.swiper.swiper-initialized.swiper-horizontal.swiper-pointer-events {
	    width: calc(100% - 160px) !important;
	}
	.elementor-image-carousel-wrapper.swiper.swiper-initialized.swiper-horizontal.swiper-pointer-events:has( [aria-disabled="true"]) {
	    width: 100% !important;
	}
	.elementor-widget-loop-carousel {padding-bottom: 40px;}
	.elementor-swiper-button-prev, .elementor-swiper-button-next {
		bottom: 0;
		height: fit-content;
		top: 50% !important;
		/* transform: translate(0px) !important; */
	}
	.elementor-swiper-button-prev {
		rotate: 180deg;
		transform: translateY(50%) !important;
	}
	footer.elementor-slideshow__footer {display: none;}
	.swiper-button-disabled .freccia-cerchiata path {fill: transparent;}
/* END Loop carousel */