.imageslider-container {
  min-height: 400px;
  contain: strict;
}

.slides-container {
  isolation: isolate;
}

.slide {
  z-index: 1;
}

.slide:first-child {
  z-index: 2;
}

.transitioning .slide {
  transition: opacity 1s cubic-bezier(0.4, 0.0, 0.2, 1) !important;
}

.imageslider-prev, .imageslider-next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  padding: 16px;
  color: white;
  font-weight: bold;
  font-size: 20px;
  transition: 0.3s;
  user-select: none;
  background-color: rgba(0,0,0,0.5);
  z-index: 3;
}

.imageslider-prev { left: 0; }
.imageslider-next { right: 0; }

.imageslider-timer {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: rgba(0,0,0,0.2);
  z-index: 4;
}

imageslider {
  visibility: visible; /* Sovrascritto da JavaScript durante il caricamento */
}