/* Overlay sfocato */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4); /* solo un velo */
  display: none;
  z-index: 1000;

  /* animazione */
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Attivo */
.menu-overlay.active {
  display: block;
  opacity: 1;
}


/* Wrapper del pannello */
.menu-panel {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  background: #6a0631;
  color: #fff;
  padding: 30px;
  overflow-y: auto;

  /* dimensioni */
  width: 350px;                /* desktop */
  max-width: 90%;              /* non supera la dimensione schermo */

  /* animazione slide */
  transform: translateX(100%);
  transition: transform 0.35s ease;
}

/* Quando attivo: entra in slide */
.menu-overlay.active .menu-panel {
  transform: translateX(0);
}

/* MOBILE → pannello pieno schermo */
@media (max-width: 768px) {
  .menu-panel {
    width: 100%;
    max-width: 100%;
  }
}

/* Icona hamburger */
.menu-open {
  position: fixed;
  top: 0px;
  right: 20px;
  z-index: 1100;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;

  transition: opacity 0.2s ease, transform 0.2s ease;
}

.menu-open.hidden {
  opacity: 0;
  pointer-events: none;
}

/* Icona X */
.menu-close {
  position: absolute;
  top: 0px;
  right: 20px;
  font-size: 2rem;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  z-index: 1200;
}

/* Hover */
.menu-open:hover {
  color: #ffae00;
  transform: scale(1.1);
}

.news-ticker {
  width: 100%;
  overflow: hidden;
  white-space: nowrap !important;
  border-top: 1px solid #444;
  border-bottom: 1px solid #444;
  padding: 10px 0;
  position: relative;
}

/* La traccia deve essere un'unica linea */
.news-ticker-track {
  display: inline-block;
  white-space: nowrap !important;
  animation: ticker 25s linear infinite;
}

/* Ogni item è inline-block e non può andare a capo */
.news-item, .sep {
  display: inline-block;
  white-space: nowrap !important;
  color: #fff;
  font-size: 1rem;
  text-decoration: none;
}

.news-item {
  margin: 0 10px;
}

.news-item:hover {
  color: #ffae00;
}

.sep {
  margin: 0 10px;
  color: #bbb;
}

/* Animazione */
@keyframes ticker {
  0%   { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

