.reels-section {
  width: 100%;
  padding: 2rem 0;
  background: #614288;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.reels-wrapper {
  position: relative;
  max-width: 1200px;
  width: 100%;
  overflow: hidden;
}

.reel-video-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}/*aggiunta nuova*/

.reels-container {
  display: flex;
  gap: 1rem;
  transition: transform 0.5s ease;
}

/*.reel {
  flex: 0 0 calc(33.333% - 1rem);
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  0 2px 0px rgba(0, 0, 0, 0.4);
  animation: float 6s ease-in-out infinite;
}*/

.reel {
  flex: 0 0 calc(33.333% - 1rem);
  position: relative;
  display: inline-block;
  max-width: 1200px;
  width: 100%; 
  border-radius: 12px;
  background: #000;
  overflow: hidden;
  animation: float 6s ease-in-out infinite;
}

/*.reel video {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}*/

.reel img,
.reel video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Effetto “galleggiante” */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-6px); }
}

/* Bottoni frecce */
.reels-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #ffed00;
  font-size: 2rem;
  padding: 0.5rem;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  transition: background 0.3s ease;
}
.reels-nav:hover {
  background: rgba(255, 255, 255, 0.4);
}
.reels-nav.prev { left: 10px; }
.reels-nav.next { right: 10px; }

/* Indicatori */
.reels-indicators {
  margin-top: 1rem;
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}
.reels-indicators span {
  width: 10px;
  height: 10px;
  background: #fff;
  border-radius: 50%;
  display: inline-block;
  transition: background 0.3s ease;
}
.reels-indicators span.active {
  background: #ffed00;
}


.video-wrapper {
  position: relative;
}

.video-wrapper video {
  display: block;
  width: 100%;
}


.reel-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2rem;
  background: #ffed00;
  color: #614288;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  border-radius: 50%;
}

.close-btn {
  position: absolute;
  top: 40px;
  right: 10px;
  background: #ffed00;
  color: #614288;
  border: none;
  padding: 5px 10px;
  font-size: 16px;
  cursor: pointer;
  border-radius: 50%;
  display: none; /* nascosta fino a riproduzione */
}

.reel-stop {
  position: absolute;
  top: 40px;
  right: 10px;
  background: #ffed00;
  color: #614288;
  font-size: 1.2rem;
  border: none;
  padding: 5px 10px;
  cursor: pointer;
  border-radius: 50%;
}



/* --- Responsive --- */
@media (max-width: 768px) {
  .reel {
    flex: 0 0 100%;
    overflow: hidden;
  }
  .reels-container {
    gap: 0;
    
  }
}
