/* CSS Document */
nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  gap: 1rem;
  background: #4d2432;
  padding: 0.8rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

nav a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  padding: 0.3rem 0.6rem;
  border-radius: 5px;
  transition: background 0.2s;
}

nav a:hover {
  background: rgba(255, 255, 255, 0.2);
}



/* ==============================
   HEADER OVERLAY E TESTO
   ============================== */
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 1rem;
}

.overlay h1 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.overlay p {
  font-size: 1.2rem;
  max-width: 600px;
}

/* RESPONSIVO TESTO HEADER */
@media (max-width: 900px) {
  .overlay h1 {
    font-size: 2rem;
  }
  .overlay p {
    font-size: 1rem;
    max-width: 90%;
  }
}

@media (max-width: 600px) {
  .overlay h1 {
    font-size: 1.5rem;
  }
  .overlay p {
    font-size: 0.9rem;
  }
}

/* ==============================
   MENU STICKY
   ============================== */
nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap; /* consente al menu di andare a capo */
  gap: 0.5rem;
  background: #4d2432;
  padding: 0.8rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

nav img {
  margin-bottom: 0.3rem; /* evita sovrapposizione col testo */
}

nav a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  padding: 0.3rem 0.6rem;
  border-radius: 5px;
  transition: background 0.2s;
  font-size: 1rem;
}

nav a:hover {
  background: rgba(255,255,255,0.2);
}



/* ==============================
   FRECCE x SLIDER
   ============================== */
.slider .prev,
.slider .next {
  font-size: 2rem;
  padding: 0.5rem 1rem;
  background: rgba(0,0,0,0.3);
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  top: 50%;
  transform: translateY(-50%);
  position: absolute;
  color: #fff;
}

.slider .prev { left: 10px; }
.slider .next { right: 10px; }

/* RESPONSIV FRECCE SLIDER */
@media (max-width: 600px) {
  .slider .prev,
  .slider .next {
    font-size: 1.5rem;
    padding: 0.3rem 0.6rem;
  }
}
/* Hamburger nascosto su desktop */
.menu-toggle {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
}

/* Nav links inline su desktop */
.nav-links {
  display: flex;
  gap: 1rem;
  align-items: center;
}

/* Responsivo: hamburger visibile e nav-links nascosto */
@media (max-width: 900px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    background: #4d2432;
    position: absolute;
    top: 100%;
    left: 0;
    text-align: center;
    padding: 0.5rem 0;
  }

  .nav-links.show {
    display: flex;
  }

  .nav-links a {
    padding: 0.5rem 0;
    font-size: 0.9rem;
  }
}

