/* CSS per il blocco Horizontal Scroll */

/* Contenitore principale */
.horizontal-wrapper {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  width: 100vw;
  height: 100vh;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
}

/* Pannelli individuali */
.panel {
  flex: 0 0 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  position: relative;
  scroll-snap-align: start;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Contenuto del pannello */
.panel-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px;
  box-sizing: border-box;
}

/* Overlay per migliorare la leggibilità del testo */
.panel-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
  pointer-events: none;
}

/* Titolo del pannello */
.panel-title {
  color: white;
  font-size: 3rem;
  font-weight: bold;
  margin: 0;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
  z-index: 3;
  position: relative;
  transition: transform 0.3s ease;
}

/* Link del pannello */
.panel-link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease;
}

.panel-link:hover {
  transform: scale(1.05);
}

.panel-link:hover .panel-title {
  transform: translateY(-10px);
}

.panel-link:hover .panel-overlay {
  background: rgba(0, 0, 0, 0.5);
}

/* Indicatore di link */
.panel-link::after {
  content: "🔗";
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 1.5rem;
  z-index: 4;
  opacity: 0.8;
}

/* Scrollbar personalizzata */
.horizontal-wrapper::-webkit-scrollbar {
  height: 8px;
}

.horizontal-wrapper::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
}

.horizontal-wrapper::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.5);
  border-radius: 4px;
}

.horizontal-wrapper::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.8);
}

/* Responsive Design */
@media (max-width: 768px) {
  .panel-title {
    font-size: 2rem;
  }
  
  .panel-content {
    padding: 20px;
  }
  
  .panel-link::after {
    font-size: 1.2rem;
    top: 15px;
    right: 15px;
  }
}

@media (max-width: 480px) {
  .panel-title {
    font-size: 1.5rem;
  }
  
  .panel-content {
    padding: 15px;
  }
}

/* Indicatori di navigazione */
.horizontal-nav-dots {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.5);
  padding: 10px 15px;
  border-radius: 25px;
}

.nav-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid white;
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}

.nav-dot:hover,
.nav-dot.active {
  background: white;
  transform: scale(1.2);
}

/* Cursor personalizzato per il dragging */
.horizontal-wrapper.grabbing {
  cursor: grabbing;
}

.horizontal-wrapper {
  cursor: grab;
}

/* Stili per l'editor */
.horizontal-wrapper-editor {
  border: 2px dashed #ddd;
  border-radius: 8px;
  margin: 20px 0;
}