@charset "UTF-8";
body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  background-color: #000;
  color: #fff;
}

header {
  background-color: #111;
  text-align: center;
  padding: 10px 0;
  border-bottom: 3px solid #0040ff;
}

header img {
  max-width: 400px;
  height: auto;
}

nav {
  background-color: #222;
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 12px 0;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  letter-spacing: 1px;
  transition: color 0.3s;
}

nav a:hover {
  color: #00aaff;
}

main {
  max-width: 900px;
  margin: 40px auto;
  padding: 20px;
}

footer {
  text-align: center;
  background: #111;
  padding: 15px 0;
  color: #888;
  font-size: 0.9em;
  border-top: 2px solid #0040ff;
}

.link-calendario {
  display: inline-block;
  background-color: #0040ff;
  color: #fff;
  padding: 10px 18px;
  border-radius: 5px;
  text-decoration: none;
  margin-top: 15px;
}

.link-calendario:hover {
  background-color: #0077ff;
}/* CSS Document */
/* --- Banner Cookie --- */
.cookie-banner {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(20, 20, 20, 0.95);
  color: white;
  font-size: 0.9em;
  justify-content: space-between;
  align-items: center;
  padding: 15px 25px;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.5);
  z-index: 999;
  flex-wrap: wrap;
}

.cookie-banner p {
  margin: 0;
  flex: 1;
}

.cookie-banner a {
  color: #00aaff;
  text-decoration: underline;
}

.cookie-banner button {
  background: #0040ff;
  color: white;
  border: none;
  padding: 8px 16px;
  margin-top: 10px;
  border-radius: 5px;
  cursor: pointer;
}

.cookie-banner button:hover {
  background: #0077ff;
}/* Layout Responsive */
@media (max-width: 768px) {
  nav {
    flex-direction: column;
    align-items: center;
  }
  header img {
    max-width: 280px;
  }
  main {
    padding: 10px;
  }
}body {
  background: url("ssets/bga-musicale.png") no-repeat center top;
  background-size: cover;
  background-attachment: fixed;
}/* --- ICONS SOCIAL --- */
.social-icons {
  display: flex;
  justify-content: center;
  gap: 15px;
  padding: 15px 0;
}

.social-icons a img {
  width: 32px;
  height: 32px;
  filter: brightness(0) invert(1);  /* icone bianche su sfondo scuro */
  transition: transform 0.3s, filter 0.3s;
}

.social-icons a img:hover {
  transform: scale(1.2);
  filter: drop-shadow(0 0 5px #00aaff);
}/* --- Sezione Orari Sala Prove --- */
.orari-sala {
  text-align: center;
  margin-top: 40px;
}

.orari-sala h2 {
  color: #00aaff;
  margin-bottom: 10px;
}

.tabella-container {
  overflow-x: auto; /* scorrimento orizzontale su mobile */
  margin-top: 10px;
}

.tabella-orari {
  width: 100%;
  border-collapse: collapse;
  background-color: rgba(20, 20, 20, 0.9);
  color: white;
  border-radius: 8px;
  overflow: hidden;
}

.tabella-orari th, .tabella-orari td {
  padding: 10px 15px;
  border: 1px solid #333;
  text-align: center;
}

.tabella-orari th {
  background-color: #0040ff;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tabella-orari tr:nth-child(even) {
  background-color: rgba(0, 0, 0, 0.6);
}

.tabella-orari tr:hover {
  background-color: rgba(0, 64, 255, 0.2);
  transition: background-color 0.3s;
}nav a.active {
  color: #00aaff;
  border-bottom: 2px solid #00aaff;
}#bg-wave {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000;
  z-index: -1;
}/* Impedisce selezione e interazione con immagini */
img.protetta {
  user-select: none;
  -webkit-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  pointer-events: none;
}/* --- LIGHTBOX Avanzata --- */
.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  justify-content: center;
  align-items: center;
  flex-direction: column;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.lightbox-content {
  max-width: 90%;
  max-height: 80vh;
  border: 3px solid #00aaff;
  border-radius: 6px;
  box-shadow: 0 0 25px #0040ff;
}

.lightbox .close {
  position: absolute;
  top: 20px;
  right: 40px;
  color: #fff;
  font-size: 45px;
  cursor: pointer;
  transition: color 0.3s;
  user-select: none;
}

.lightbox .close:hover {
  color: #00aaff;
}

/* Frecce di navigazione */
.lightbox .nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 50px;
  color: #00aaff;
  cursor: pointer;
  user-select: none;
  transition: color 0.3s, transform 0.3s;
}

.lightbox .nav:hover {
  color: #fff;
  transform: translateY(-50%) scale(1.2);
}

.lightbox .prev { left: 30px; }
.lightbox .next { right: 30px; }

#caption {
  color: #00aaff;
  font-size: 1rem;
  margin-top: 15px;
  text-align: center;
}/* --- LIGHTBOX Avanzata con animazione --- */
.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  justify-content: center;
  align-items: center;
  flex-direction: column;
  animation: fadeIn 0.4s ease forwards;
}

/* animazione di comparsa del layer */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* effetto zoom sul contenuto dell’immagine */
.lightbox-content {
  max-width: 90%;
  max-height: 80vh;
  border: 3px solid #00aaff;
  border-radius: 6px;
  box-shadow: 0 0 25px #0040ff;
  transform: scale(0.8);
  opacity: 0;
  animation: zoomIn 0.4s ease forwards;
}

/* Definizione dell’animazione di zoom-in */
@keyframes zoomIn {
  0% {
    transform: scale(0.7);
    opacity: 0;
    box-shadow: 0 0 5px #001133;
  }
  60% {
    transform: scale(1.05);
    opacity: 1;
    box-shadow: 0 0 20px #0077ff;
  }
  100% {
    transform: scale(1);
    opacity: 1;
    box-shadow: 0 0 25px #0040ff;
  }
}

/* Pulsante chiusura */
.lightbox .close {
  position: absolute;
  top: 20px;
  right: 40px;
  color: #fff;
  font-size: 45px;
  cursor: pointer;
  transition: color 0.3s;
  user-select: none;
}
.lightbox .close:hover {
  color: #00aaff;
}

/* Frecce navigazione */
.lightbox .nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 50px;
  color: #00aaff;
  cursor: pointer;
  user-select: none;
  transition: color 0.3s, transform 0.3s;
}
.lightbox .nav:hover {
  color: #fff;
  transform: translateY(-50%) scale(1.2);
}
.lightbox .prev { left: 30px; }
.lightbox .next { right: 30px; }

/* Didascalia */
#caption {
  color: #00aaff;
  font-size: 1rem;
  margin-top: 15px;
  text-align: center;
}/* --- Galleria Fotografica animata --- */
.galleria {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-top: 30px;
  animation: fadeGallery 1.5s ease both;
}

@keyframes fadeGallery {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.foto {
  position: relative;
  background-color: rgba(0, 0, 0, 0.6);
  border: 2px solid #0040ff;
  border-radius: 8px;
  overflow: hidden;
  transform: scale(0.9);
  opacity: 0;
  animation: photoAppear 1s ease forwards;
}

/* effetto di accensione graduale delle foto */
@keyframes photoAppear {
  0% {
    opacity: 0;
    transform: scale(0.85);
    box-shadow: 0 0 0px #000;
  }
  60% {
    opacity: 1;
    transform: scale(1.02);
    box-shadow: 0 0 20px #0040ff;
  }
  100% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 10px #0020aa;
  }
}

/* ritardo di apparizione per un effetto "a sequenza" */
.foto:nth-child(1) { animation-delay: 0.2s; }
.foto:nth-child(2) { animation-delay: 0.4s; }
.foto:nth-child(3) { animation-delay: 0.6s; }
.foto:nth-child(4) { animation-delay: 0.8s; }
.foto:nth-child(5) { animation-delay: 1s; }

/* effetto hover come prima */
.foto:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px #00aaff;
}

.foto img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.foto img:hover {
  opacity: 1;
}

.foto p {
  font-size: 0.95rem;
  color: #00aaff;
  background-color: rgba(0, 0, 0, 0.7);
  padding: 5px 0;
  margin: 0;
}.banner-fisso {
	position: fixed;
	top: auto;
	left: auto;
	width: 10px;
	background-color: #000; /* colore di sfondo o sostituibile con "transparent" */
	z-index: 9999;
	border-bottom: 2px solid #00aaff;
	text-align: center;
	right: auto;
	bottom: auto;
}

.banner-fisso img {
	width: 100%;
	height: auto;
	max-height: 150px; /* opzionale */
	display: block;
}

/* Per evitare che il contenuto vada sotto al banner */
main {
  margin-top: 160px; /* uguale o maggiore della max-height del banner */
}/* --- Layout di base --- */
body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden; /* blocca lo scorrimento globale */
  font-family: "Poppins", sans-serif;
  background-color: #000;
  color: #fff;
}

/* --- Banner fisso --- */
.banner-fisso {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #000;
  text-align: center;
  z-index: 100;
  border-bottom: 2px solid #00aaff;
}

.banner-fisso img {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  display: block;
}

/* --- Contenuto centrale che scorre --- */
.contenuto-scrollabile {
  position: absolute;
  top: 180px; /* altezza del banner */
  bottom: 60px; /* altezza del footer */
  left: 0;
  right: 0;
  overflow-y: auto; /* solo il main scorre */
  padding: 20px;
  box-sizing: border-box;
  background-color: #000;
  scroll-behavior: smooth;
}

/* --- Footer --- */
footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #111;
  text-align: center;
  border-top: 2px solid #00aaff;
  padding: 10px;
  color: #888;
  z-index: 100;
}
