/* ================= SLIDER / CAROUSEL ================= */

/* @group SLIDERS */
#slidecont1, .slidetop, #slidecont3{
	margin: 0 auto 1rem auto;
	position: relative;
	width: 100%;
	max-width: 100% !important;
	overflow: hidden;	 /* Silvia: NON RIMUOVERE OVERFLOW!!!!!! */
}
.pages-slidecont{
	margin-bottom: var(--margin-bottom-base);
	margin-top: var(--margin-bottom-base);
}

#cover{
	height: 100%;
	flex-direction: column;
	justify-content: center;
	display: flex;
}
.img-parallax{
   background-size: cover;
   background-position: center center;
   background-attachment: fixed !important;
   background-repeat: no-repeat;
   overflow: hidden;
   width: 100%;
   min-height: 300px;
   height: 35vh;
}

.loading{
	position: relative;
}
.loading .loader{
   color: var(--bg-light);
   position: absolute;
   left: 0;
   top: 50%;
   width: 100%;
   z-index: -10;
}
.loading .load-bar.animated{
   animation: animLoadBar 1s 1;
   animation-direction: alternate;
}
.loading .load-bar{
   background-color: var(--theme-color1-bg);
   height: 2px;
   width: 0;
}
.loading .load-bar.animated{
	animation: animLoadBar 1s 1;
	animation-direction: alternate;
}
@keyframes animLoadBar{
	0%{
  		width: 0;
	}
	100%{
  		width: 200px;
	}
}
/* @end */

.owl-theme .owl-nav {
  width: 100%;
  z-index: 10;
  position: absolute;
  top: 50%;
  margin-top: -1rem;
}

/* @group MARCHE */
#marche-cont{
	margin-bottom: var(--margin-bottom-base);
}
#marche-cont .owl-carousel .item{
	display: flex;
	justify-content: center;	/* serve per la centratura verticale */
	flex-direction: column;
	text-align: center;
	font-weight: bold;
	text-transform: uppercase;
	padding: var(--padding-base);
}
#marche-cont img{
	filter: grayscale(0%) brightness(100%);
	width: auto;
}
#marche-cont img:hover{
	filter: grayscale(100%) brightness(110%);
}
.boxmarche{
	display: flex;
	justify-content: center;
	flex-direction: column;
	width: 100px;
	min-height: 60px;
	font-size: .8rem;
	text-transform: uppercase;
	line-height: 1.1;
	text-align: center;
	line-break: loose;
}
#boxmarche a{
	justify-content: center;	/* serve per la centratura verticale */
	flex-direction: column;
}
 /* @end */

/* @group DIDASCALIA - TITOLO-SOTTOTITOLO-TESTO */
.ms-stile1 .didascalia,
.ms-stile2 .didascalia,
.ms-stile3 .didascalia{
   position: absolute;
   top: 0;
   width: 100%;
   height: 100%;
   display: flex;
   flex-direction: column;
   justify-content: center;
   /*background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.25));*/
}
.slide-top .didascalia{
   justify-content: flex-start;
   padding-top: 2rem;
   /* background: linear-gradient(to bottom, rgba(0, 0, 0, 0.15), transparent); */
}
.slide-bottom .didascalia{
   justify-content: flex-end;
   padding-bottom: 2rem;
   /* background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.15)); */
}
/*.slide-left .didascalia{
	background: linear-gradient(0.25turn, rgba(0,0,0,0.25), rgba(0,0,0,.15), transparent);
}
.slide-right .didascalia{
	background: linear-gradient(0.25turn, transparent, rgba(0,0,0,.15), rgba(0,0,0,0.25));
}*/
.slide-center .bg-testo{
	text-align: center;
	width: 100%;
}
.didascalia .btn{
	text-decoration: none;
	cursor: pointer;
	order:4;
	margin-top: 1rem;
	white-space: nowrap;
}
.didascalia a.btn{
   text-align: center;
   padding: .3rem 2.6rem;
}
.didascalia .bg-testo{
   margin: 0 auto;
   z-index: 1;
   display: flex;
   flex-direction: column;
   position: relative;
   padding: 1% 4%;
}
.didascalia-sm{
	font-size: smaller;
}

/****************** DIMENSIONI FONT ******************/
.master-slider h3{		/* RIGA 1 */
	margin-bottom: .5rem;
	text-shadow: 0 0 8px rgba(0,0,0,0.8), 0 0 10px rgba(0,0,0,0.6), 0 0 20px rgba(0,0,0,0.4);
}
.master-slider h3 span{
	font-weight: bolder;
}
.master-slider h4{   /* RIGA 2 */
	margin-bottom: .5rem;
	text-shadow: 0 0 8px rgba(0,0,0,0.8), 0 0 10px rgba(0,0,0,0.6), 0 0 20px rgba(0,0,0,0.4);
}
.master-slider h4::after{
	display: none;
}
.master-slider p{		/*RIGA 3*/
	font-size: .9vw;
	text-shadow: 0 0 8px rgba(0,0,0,0.8), 0 0 10px rgba(0,0,0,0.6), 0 0 20px rgba(0,0,0,0.4);
}
.ms-stile1 h3,
.ms-stile1 h4,
.ms-stile1 p,
.didascalia .btn{
	width: fit-content;
}
.slide-center h3,
.slide-center h4,
.slide-center p,
.slide-center .btn{
	margin-left: auto !important;
	margin-right: auto !important;
}
@media (min-width: 768px){
	.slide-right .bg-testo{
		margin: 0 0 0 40%;
	}
	.slide-left .bg-testo{
		margin: 0 40% 0 0;
	}
}

/****************** stile1 ******************/
/*.ms-stile1 .bg-testo{
}*/
.slidetop .ms-stile1::after{
	/*background: rgba(0,0,0,.35);
	background: linear-gradient(rgba(0,0,0,.35), transparent);*/
	content: " ";
	display: block;
	height: 100%;
	left: 0;
	position: absolute;
	top: 0;
	width: 100%;
}
.ms-stile1 h3{		/* TITOLO GRANDE */
	font-size: clamp(40px, 4.5vw, 80px);
	line-height: 1;
	text-shadow: 1px 1px 2px rgba(0,0,0,0.55);
	color: var(--theme-color2-txt);
	order:2;
}
.ms-stile1 h4{   /* SOTTOTITOLO - OCCHIELLO */
	font-size: clamp(15px, 1.1vw, 20px);
	color: var(--theme-color2-txt);
	order:1;
}
.ms-stile1 h4 span{
	background-color: var(--theme-color2-bg);
	padding: .8rem;
	line-height: 1.8;
	box-decoration-break: clone;
}
.ms-stile1 p{   /* TESTO */
	font-size: clamp(12px, .9vw, 16px);
	color: var(--theme-color2-txt);
	text-shadow: 1px 1px 4px rgba(0,0,0,0.55);
	order:3;
}

/****************** stile2 ******************/
/*.ms-stile2 .bg-testo{
   background-color: rgba(0,0,0,.5);
}*/
.ms-stile2 h3,
.ms-stile2 h4,
.ms-stile2 p{
	text-shadow: 1px 1px 4px #333333;
}
.ms-stile2 h3{	 /* TITOLO GRANDE */
	color: var(--theme-color2-txt);
    font-size: clamp(40px, 3.6vw, 70px);
    line-height: 1;
    letter-spacing: .1rem;
	font-weight: 500;
	order:1;
}
.ms-stile2 h4{   /* SOTTOTITOLO - OCCHIELLO */
	border-bottom: none;
	font-size: clamp(20px, 2vw, 50px);
	font-weight: 500;
	order:2;
	color: var(--theme-color2-txt);
}
.ms-stile2 p{	/* TESTO */
	color: var(--theme-color2-txt);
	margin-bottom: 1rem;
	font-size: clamp(15px, 1.2vw, 18px);
	order:3;
}

/****************** stile3 ******************/
/*.ms-stile3 .bg-testo{
   background-color: rgba(255,255,255,.6);
}*/
.ms-stile3 h3{		/* TITOLO GRANDE */
	color: var(--body-color);
   font-size: clamp(20px, 2vw, 50px);
	font-weight: 600;
}
.ms-stile3 h4{  /* SOTTOTITOLO - OCCHIELLO */
	border-bottom: none;
   font-size: clamp(40px, 3.6vw, 70px);
	color: var(--body-color);
	font-weight: 500;
}
.ms-stile3 p{	 /* TESTO */
   color: var(--body-color);
   font-size: clamp(18px, 1.6vw, 25px);
	font-weight: 400;
}
/**********************************************/

/* @group testo-hover */
.gallery-cont .loadmore:nth-child(n + 9){
	display: none;
  /* SERVE PER LOAD MORE */
}
.gallery-img{
   position: relative;
   height: 100%;
}
.gallery-img a{
   height: 100%;
   display: flex;
   flex-direction: column;
   justify-content: space-between;
   align-content: space-between;
}
.testo-hover .didascalia{
   left: 0;
   right: 0;
   bottom: 0;
   padding: 1rem;
   background: linear-gradient(transparent, rgba(0,0,0,.25));
   color: white;
   position: absolute;
   margin: 0;
   height: 100%;
   font-size: smaller;
   text-align: center;
   display: flex;
   justify-content: flex-end;
   flex-direction: column;
}
.testo-hover .didascalia h3,
.testo-hover .didascalia h4,
.testo-hover .didascalia p{
   color: white !important;
   text-align: center;
   text-shadow: 3px 3px 10px rgba(0,0,0,.2);
}
.testo-hover .didascalia .btn{
   margin: auto;
}
.gallery-img .didascalia h4,
.testo-hover .didascalia h4{
	font-size: 1rem;
}
.gallery-cont .titologrande{
   font-size: 1.2rem;
}
/*.testo-hover .didascalia{
   visibility: hidden;
}*/
.testo-hover .gallery-img:hover .didascalia{
	visibility: visible;
}
.testo-hover .gallery-img .didascalia{
	visibility: hidden;
}
.testo-semplice .bg-testo,
.owl-carousel-std .bg-testo{
  margin: 0;
  padding: .5rem;
}
.testo-semplice h3.titologrande,
.testo-semplice h4.titolopiccolo,
.testo-semplice p{
	color: black;
}
.owl-carousel-std h3.titologrande,
.testo-semplice h3.titologrande{
	font-size: 1.1rem;
	margin-bottom: 0;
}
.owl-carousel-std h4.titolopiccolo,
.testo-semplice h4.titolopiccolo{
	font-size: 1rem;
	margin-bottom: 0;
}
.owl-carousel-std p,
.testo-semplice p{
	font-size: .9rem;
	margin-bottom: 0;
}
.owl-carousel-std .didascalia{
	position: absolute;
   bottom: 0;
   width: 100%;
   /*background: linear-gradient(to top, rgba(0, 0, 0, 0.22) 0%, rgba(0, 0, 0, 0.08) 35%, rgba(0, 0, 0, 0) 100%);
   background-color: rgba(0,0,0,0.25);*/
   color: white;
}
.owl-carousel-std a .didascalia{
	color:white !important;
}
/*.foto-rect .didascalia .titolopiccolo,
.foto-rect .didascalia p,
.foto-rect .didascalia .btn{
	display: none;
}*/
/* @end */

/* zoom */
.zoom-overlay{
	position: absolute;
	inset: auto 0 0 auto;
	cursor: pointer;
	z-index: 120;
}
.slidecont,
.carouselcont{
	position: relative;
    width: 100%;
}
.slideimg img{
	display: block;
	margin-inline: auto;
}
.slide .zoom{
	margin-left: auto; /* sostituisce float */
	width: 3.75rem;
	height: 2.5rem;
	text-align: right;
}
.slidestage,
.slideico-cont{
	text-align: center;
}
.slideico-cont{
	margin-block: 1rem;
}
.slideico img{
	display: block;
    margin-inline: auto;
    border: 1px solid #fff;
    border-bottom: 0;
}
.icostage{
	display: none;
	width: 5.6rem;
	background: #fff;
}
.icostagesticky{
    display: none;
	position: sticky;
    top: 0;
}
.icostagefixed{
	position: fixed;
	top: 14rem;
	right: 0;
}
.carousel-control{
	display: flex;
    justify-content: center;
}
.carousel-cont{
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: .5rem;
	text-align: center;
}
.ico-cont img{
	transition: opacity .2s ease;
}
.ico-cont img:hover{
	opacity: .6;
}
/* @end */

:target, .anchor{
	scroll-margin-top: var(--header-height);
}

/* @group /* SLICK SLIDER */ */
/* =======================
   GALLERIA PRODOTTO
   ======================= */
.product-gallery{
	align-items: flex-start;
}
/* --- Slider principale --- */
.slider-for > div:nth-child(1n+2),
.slider-nav > div:nth-child(1n+2){
	display: none;	  /* evita la visualizzazione delle immagini fuori dalla cornice al caricamento */
}
.slider-for.slick-initialized > div:nth-child(1n+2),
.slider-nav.slick-initialized > div:nth-child(1n+2){
	display: block;
}
.slider-for .slick-slide{
	/* centra l'immagine nella slide senza forzare height enorme */
	display: flex !important;
   	align-items: center;
    justify-content: center;
}
.slider-for img{
	object-fit: contain;
}
/* --- Thumbnails --- */
/*.slider-nav .slick-list {
  limita l'altezza complessiva della colonna thumb se serve
  max-height: 360px;
}*/
.slider-nav .slick-slide{
	padding: 2px;
   cursor: pointer;
   opacity: .5;
}
.slider-nav .slick-current{
	opacity: 1;
}
.slider-nav img{
	display: block;
   width: 100%;
   max-width: 80px;
   max-height: 80px;
   height: auto;
   object-fit: cover;
   border: 1px solid var(--border-color, #dddddd);
}
/* --- Frecce Slick --- */
.slick-prev, .slick-next{
   z-index: 2;
   width: 30px;
}
.slick-prev::before,
.slick-next::before{
   background-color: transparent;
   color: white;
   text-shadow: 0 0 3px rgba(0,0,0,.5);
   font-size: 32px !important;
   font-family: var(--icon-font-family, "bootstrap-icons");
   content: "\f053" !important;
}
.slick-next::before{
   content: "\f054" !important;
}
/* ----- SLICK VERTICAL ----- */
.slider-nav.slick-vertical{
	display: flex;
	justify-content: flex-start;
	flex-direction: column;
}
/*.slick-vertical .slick-prev,
.slick-vertical .slick-next{
	right: calc(50% - 20px) !important;
	left: calc(50% - 20px) !important;
	width: 40px;
}*/
.slick-vertical .slick-prev::before{
	content: "\f106" !important;
	color: black;
}
.slick-vertical .slick-prev{
	top: 0 !important;
	left: 15px;
}
.slick-vertical .slick-next::before{
	content: "\f107" !important;
	color: black;
}
.slick-vertical .slick-next{
	bottom: -40px !important;
	top: auto !important;
	left: 15px;
}
/* --- Responsive: sotto md thumb orizzontali --- */
@media (max-width: 767.98px){
  .product-gallery{
    flex-direction: column;
  }
  .slider-nav .slick-list{
    max-height: none;
  }
  .slider-nav img{
    max-width: 64px;
    max-height: 64px;
  }
}
#store-slidecont1 .didascalia{
	position: absolute;
	bottom: 0;
	width: 100%;
	background-color:rgba(255,255,255,.6);
	text-align: center;
}
#store-slidecont1 .didascalia .bg-testo{
	padding: .8rem;
}
#store-slidecont1 .didascalia h3{
	font-size: .9rem;
}
/* @end */

/* @group OWL CAROUSEL */
.owl-carousel{
	position: relative;
}
/*.owl-carousel .owl-stage-outer{
 le istruzioni sgg servono per non tagliare i bordi di item ed evidenze
	padding: 1rem;
	margin: 0 -0.5rem;
}*/
.owl-carousel .item{
	/* evita la visualizzazione delle immagini fuori dalla cornice al caricamento - 1/2 */
	opacity: 0;
	transition: all .5s ease-in-out;
}
.owl-carousel.owl-loaded .item{
	/* evita la visualizzazione delle immagini fuori dalla cornice al caricamento - 2/ */
	opacity:1;
	transition: all .5s ease-in-out;
}
.owl-carousel .owl-stage{
	display: flex;
	justify-content: center;
	align-items: stretch; 	/* box altezza uguale */
}
.owl-carousel .item,
.owl-carousel .item article{
	height: 100%;
	/*text-align: center;*/
}
.owl-theme .owl-nav{
   width: 100%;
   z-index: 10;
   position: absolute;
   top: 50%;
   margin-top: -2rem;
}
.owl-prev, .owl-next{
	position: absolute;
}
.owl-prev{
	left: -2.5rem;
}
.owl-next{
	right: -2.5rem;
}
.owl-prev.disabled{
	display: none;
}
.owl-dots{
	margin-top: 1rem;
}
.owl-theme .owl-nav [class*="owl-"]{
  	padding: 0;
  	height: 34px;
	width: 34px;
	 background: transparent; 
	/*border-radius: 50%;*/
	color: rgba(0,0,0,0.8);
	display: flex;
    align-items: center;
    justify-content: center;
}
.owl-theme .owl-nav [class*="owl-"]:hover{
	color: rgba(0,0,0,1);
	background: rgba(0,0,0,.075);
}
.owl-carousel:not(.owl-loaded){
    opacity: 0;
}
.owl-theme .owl-dots .owl-dot.active span,
.owl-theme .owl-dots .owl-dot:hover span{
	background: var(--theme-color3-bg);
}
.owl-carousel-autowidth .owl-item img{
	width: auto;
}
/* @end */


@media (min-width: 1200px){
	.no-home #slidecont1 img,
	.no-home .slidetop img{
		object-fit: cover;
		width: 100%;
	}
	.home #slidecont1 .arrow-down{
		background-image: url(../Sfondi/icon_bounce.png);
		background-repeat: no-repeat;
		position: absolute;
		bottom: 5px;
		left: 0;
		right: 0;
		height: 60px;
		width: 60px;
		margin-left: auto;
		margin-right: auto;
		opacity: .7;
		content: " ";
	}
	#slidecont1 .arrow-down{
		display: none;
	}
}

@media (min-width: 992px) and (max-width: 1199.98px){
	.bg-testo .btn{
		margin-top: 1rem;
		font-size: .8rem;
	}
}

@media (max-width: 991.98px){
	.no-home #slidecont1,
	.no-home #slidecont3,
	.slidetop{
		position: relative;
	}
	.titolohover{
		position: absolute !important;
		width: 100%;
		bottom: 1rem;
		left: 0;
		z-index: 150;
	}
	#titolopagina h1{
		padding: 0 .5rem .5rem;
	}
	.titolohover .sottotitolo{
		display: none;
	}
	.no-home #slidecont1::before,
	.slidetop::before{
		height: 99%;
	}

	.bg-testo .btn{
		font-size: 1.6vw;
	}
	.testo-hover .didascalia .bg-testo{
		padding: 0;
	}
}

@media (max-width: 767.98px){
	.owl-theme .owl-nav [class*="owl-"]{
		background: #eeeeee;
	}
	.owl-next{
  		right: 0;
	}
	.owl-prev{
		left: 0;
	}
	.bg-testo .btn{
		font-size: 3vw;
	}
}

/* Owl autoWidth: una foto a larghezza piena su smartphone. */
@media (max-width: 575.98px) {
	.owl-carousel-autowidth .item,
	.owl-carousel-autowidth .item > a,
	.owl-carousel-autowidth .item > a > div:not(.didascalia),
	.owl-carousel-autowidth .item > div:not(.didascalia) {
		width: 100%;
	}
	.owl-carousel-autowidth .owl-item img {
		width: 100%;
		max-width: 100%;
		height: auto;
	}
}
