@import url(https://fonts.googleapis.com/css?family=Varela+Round);

@media screen and (min-width: 992px) {        
   
.slides {
    padding: 0;
    width: 100%;
    height: 560px;
    display: block;
    margin: 0 auto;
    position: relative;
}
  
.slide {
    top: 0;
    opacity: 0;
    width: 100%;
    height: 560px;
    display: block;
    position: absolute;

    transform: scale(0);

    transition: all .7s ease-in-out;
}  

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nav-dots {
	width: 100%;
	bottom: 9px;
	height: 11px;
	display: block;
	position: absolute;
	z-index: 12;
	text-align: center;
	pointer-events: none;
}

.nav-dots .nav-dot {
	top: -5px;
	width: 11px;
	height: 11px;
	margin: 0 4px;
	position: relative;
	border-radius: 100%;
	display: inline-block;
	pointer-events: auto;
	background-color: rgba(0, 0, 0, 0.6);
}

}

@media screen and (max-width: 991px) {

.slides {
    padding: 0;
    width: 100%;
    height: 480px;
    display: block;
    margin: 0 auto;
    position: relative;
}

.slide {
    top: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    display: block;
    position: absolute;

    transform: scale(0);

    transition: all .7s ease-in-out;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nav-dots {
	width: 100%;
	bottom: 12px;
	height: 11px;
	display: block;
	position: absolute;
	z-index: 12;
	text-align: center;
	pointer-events: none;
}

.nav-dots .nav-dot {
	top: -5px;
	width: 10px;
	height: 10px;
	margin: 0 5px;
	position: relative;
	border-radius: 100%;
	display: inline-block;
	pointer-events: auto;
	background-color: rgba(0, 0, 0, 0.6);
}

}

@media screen and (max-width: 700px) {

.slides {
    padding: 0;
    width: 100%;
    height: 380px;
    display: block;
    margin: 0 auto;
    position: relative;
}

.slide {
    top: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    display: block;
    position: absolute;

    transform: scale(0);

    transition: all .7s ease-in-out;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

}

.slides * {
    user-select: none;
    -ms-user-select: none;
    -moz-user-select: none;
    -khtml-user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}

.slides input { display: none; }

.slide-container {
	display: block;
	pointer-events: none;
}

/* Solo lo slide attivo riceve click (zoom + frecce) */
input:checked + .slide-container {
	pointer-events: auto;
}

input:checked + .slide-container .slide {
    opacity: 1;
    z-index: 1;
    transform: scale(1);
    transition: opacity 1s ease-in-out;
}

/*
 * Frecce sopra il link Fancybox: senza z-index il trigger
 * intercetta i click e apre lo zoom invece di cambiare immagine.
 */
.slides .nav {
	position: absolute;
	inset: 0;
	z-index: 10;
	pointer-events: none;
}

.nav label {
	display: none;
	align-items: center;
	justify-content: center;
	position: absolute;
	top: 50%;
	width: 48px;
	height: 48px;
	margin: 0;
	transform: translateY(-50%);
	opacity: 0.85;
	z-index: 11;
	cursor: pointer;
	pointer-events: auto;
	color: #fff;
	font-size: 22px;
	line-height: 1;
	text-align: center;
	font-family: "Varela Round", sans-serif;
	border-radius: 50%;
	background-color: rgba(28, 40, 51, 0.55);
	text-shadow: none;
	transition: opacity .2s, background-color .2s;
	-webkit-tap-highlight-color: transparent;
}

.nav .prev { left: 8px; }
.nav .next { right: 8px; }

input:checked + .slide-container .nav label {
	display: flex;
}

.nav label:hover,
.nav label:focus-visible {
	opacity: 1;
	background-color: rgba(184, 115, 51, 0.85);
}

.nav label:active {
	opacity: 1;
	background-color: rgba(184, 115, 51, 0.85);
}

.nav-dots .nav-dot:hover {
	cursor: pointer;
	background-color: rgba(0, 0, 0, 0.8);
}

input#img-1:checked ~ .nav-dots label#img-dot-1,
input#img-2:checked ~ .nav-dots label#img-dot-2,
input#img-3:checked ~ .nav-dots label#img-dot-3,
input#img-4:checked ~ .nav-dots label#img-dot-4,
input#img-5:checked ~ .nav-dots label#img-dot-5,
input#img-6:checked ~ .nav-dots label#img-dot-6,
input#img-7:checked ~ .nav-dots label#img-dot-7,
input#img-8:checked ~ .nav-dots label#img-dot-8,
input#img-9:checked ~ .nav-dots label#img-dot-9,
input#img-10:checked ~ .nav-dots label#img-dot-10,
input#img-11:checked ~ .nav-dots label#img-dot-11,
input#img-12:checked ~ .nav-dots label#img-dot-12 {
	background: rgba(0, 0, 0, 0.8);
}

@media (max-width: 479px) {
	.slides {
		height: 320px !important;
	}

	.nav label {
		width: 40px;
		height: 40px;
		font-size: 18px;
	}
}