#carosello {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 40px auto;
  max-width: 1200px;
  position: relative;
}

#immagini {
  height: 500px;
  width: 800px;
  border-radius: 15px;
  margin: 0 auto;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  position: relative;
  transition: transform 0.3s ease;
}

#immagini:hover {
  transform: scale(1.02);
}

#prev, #next {
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  font-size: 24px;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
}

#prev {
  left: 20px;
}

#next {
  right: 20px;
}

#prev:hover, #next:hover {
  background-color: rgba(0, 0, 0, 0.9);
  transform: translateY(-50%) scale(1.1);
}

.slide-indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

#immagini {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #f0f0f0;
}

.slide-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.slide-indicator.active {
  background-color: white;
  transform: scale(1.2);
}

@keyframes fadeIn {
  from { opacity: 0.6; }
  to { opacity: 1; }
}

#immagini {
  animation: fadeIn 0.5s ease-in-out;
}

#didascalia {
  position: absolute;
  bottom: 40px;
  left: 0;
  right: 0;
  text-align: center;
  color: white;
  background-color: rgba(0, 0, 0, 0.7);
  padding: 10px 20px;
  font-size: 18px;
}

.slide-indicators {
  bottom: 80px !important;
}
