:root {
  --swiper-pagination-bullet-size: 16px; /* Cambia la dimensione */
  --swiper-pagination-color: #fff;
}

.swiper {
  width: 100%;
  height: 100%;
}
.swiper-slide {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  aspect-ratio: 1/1.2;
  /* usa la var per lo sfondo “normale” */
}
.swiper p:empty {
  display: none;
}

.swiper-slide.coming .slide-image {
  filter: blur(16px);
  z-index: 0;
}

.swiper-v {
  background: #eee;
}
/* Box overlay centrato con titolo e abstract */
.swiper-slide .slide-overlay {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  padding: 20px;
  color: #fff;
  text-align: center;
  border-radius: 40px 40px 0 0;
  width: 100%;
  user-drag: none; /* Safari, non standard */
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  opacity: 0;

  /* Transizione per fade */
  transition: opacity 1s ease;


}
@keyframes fadeInOut {
  0%, 20% {
    opacity: 0;
  }
  30%, 70% {
    opacity: 1;
  }
  80%, 100% {
    opacity: 0;
  }
}
.swiper.nested .swiper-slide-active .swiper-slide-active .slide-overlay {
    /* Animazione che fa comparire e scomparire ogni 5 secondi */
    animation: fadeInOut 20s infinite ease-in-out;
}
.swiper.nonested .swiper-slide-active .slide-overlay {
    /* Animazione che fa comparire e scomparire ogni 5 secondi */
    animation: fadeInOut 20s infinite ease-in-out;
}

@media only screen and (min-width: 992px) {
  .swiper-slide .slide-overlay {
    max-width: 80%;
  }
}

.swiper-slide .feat_badge {
  position: absolute;
  top: 0;
  left: 0;
}
.swiper-slide .slide-overlay a {
  color: inherit;
}
.swiper-slide .cat {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background: #ffffff50;
}

.swiper-button-prev:hover,
.swiper-button-next:hover,
.swiper-button-up:hover,
.swiper-button-down:hover {
  background: rgba(0, 0, 0, 0.8);
}

.swiper .glow {
  display: none;
  position: absolute;
  right: 0;
  bottom: 0;

  font-size: 24px;
  animation: blink 0.5s infinite alternate;
  /* Permalink - use to edit and share this gradient: https://colorzilla.com/gradient-editor/#c53b33+1,c53b33+93,ffffff+100&0+1,1+100 */
  background: linear-gradient(
    to right,
    rgba(197, 59, 51, 0) 1%,
    rgba(197, 59, 51, 0.93) 93%,
    rgba(255, 255, 255, 1) 100%
  ); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
  z-index: 2;
  mix-blend-mode: color-burn;
  user-drag: none; /* Safari, non standard */
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  pointer-events: none;
}

.swiper.orizzontale .glow {
  height: 100%;
  width: 6vw;
}
.swiper.orizzontale > .glow .icon {
  position: absolute;
  right: -50px;
  top: 50%;
  transform: translateY(-50%);
}
.swiper.verticale .glow {
  height: 6vh;
  width: 100%;
  /* Permalink - use to edit and share this gradient: https://colorzilla.com/gradient-editor/#c53b33+1,c53b33+93,ffffff+100&0+1,1+100 */
  background: linear-gradient(
    to bottom,
    rgba(197, 59, 51, 0) 1%,
    rgba(197, 59, 51, 0.93) 93%,
    rgba(255, 255, 255, 1) 100%
  ); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
}
.swiper.verticale > .glow .icon {
  position: absolute;
  bottom: -50px;
  left: 50%;
  transform: translateX(-50%) rotate(90deg);
}
.swiper.has-overflow > .glow {
  display: block;
}

@keyframes blink {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0.3;
  }
}
.slide-image {
  object-fit: cover;
  object-position: center;
  width: 100%;
  height: 100%;
}
