:root {
  --bg-color: rgb(0, 0, 0);
  --primary-color: rgb(255, 0, 255);
  --secondary-color: rgb(245, 245, 220);
  --font-sans: 'Lexend', Arial, sans-serif;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background-color: var(--bg-color);
  color: var(--secondary-color);
  scroll-behavior: smooth;
  position: relative;
  overflow-x: hidden;
  
}

.logo-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: url('images/MANI QMS.svg'); /* Assicurati che il file esista */
  background-repeat: no-repeat;
  background-position: center;
  background-size: 170%;
  opacity: 0.09;
  z-index: -1;
}

.hero-section {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
}

.scroll-section {
  padding: 4rem 2rem;
  border-top: 1px solid var(--primary-color);
}

.event-card {
  background-color: rgba(255, 0, 255, 0.1);
  border: 1px solid var(--primary-color);
  padding: 1rem;
  margin: 1rem 0;
  border-radius: 0.5rem;
}

.button {
  border: 2px dashed var(--secondary-color);
  font-family: 'Lexend', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.button:hover {
  background-color: var(--bg-color);
  color: var(--primary-color);
  border-color: var(--primary-color);
}
footer {
  text-align: center;
  padding: 2rem;
  border-top: 1px solid var(--primary-color);
}
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  z-index: 1000;
  font-family: 'Lexend', sans-serif;
}

.logo {
  font-weight: bold;
  color: var(--bg-color);
}

.menu-toggle {
  display: flex; /* sempre visibile */
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1100;
}

.menu-toggle .bar {
  height: 3px;
  width: 100%;
  background-color: #333;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Rimuovi eventuali media queries che nascondono il bottone */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex; /* assicurati che non venga nascosto */
  }
}

/* Menu */
/* Menu nascosto di default */
.menu {
  position: absolute;
  top: 60px;
  right: 1rem;
  background-color: var(--primary-color);
  border-radius: 8px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  padding: 1rem;
  display: none;
  flex-direction: column;
  gap: 1rem;
  z-index: 1000;
  animation: fadeIn 0.3s ease forwards;
}

.menu.show {
  display: flex;
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1100;
}

.menu-toggle .bar {
  height: 3px;
  width: 100%;
  background-color: #333;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Animazione di comparsa */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Stile delle voci */
.menu a {
  position: relative;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #333;
  text-decoration: none;
}

.menu a:hover {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  transform: scale(1.1) rotate(-2deg);
  text-decoration: line-through wavy var(--secondary-color);
  text-decoration-thickness: 2px;
}
/* Animazione hamburger in X */
.menu-toggle.open .bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle.open .bar:nth-child(2) {
  opacity: 0;
}
.menu-toggle.open .bar:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Responsive */
@media (min-width: 30000px) {
  .menu {
    position: static;
    height: auto;
    flex-direction: row;
    background: none;
    box-shadow: none;
    padding: 0;
    gap: 2rem;
    right: 0;
  }

  .menu-toggle {
    display: none;
  }
}
.artist-gallery {
  column-count: 3; /* Numero di colonne */
  column-gap: 20px;
  padding: 20px;
}

.artist-card {
  break-inside: avoid;
  margin-bottom: 20px;
  position: relative;
  width: 100%;
  height: auto;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  cursor: pointer;
}

.artist-card img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.artist-card:hover img {
  transform: scale(1.02);
}

.artista-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.7);
  color: #fff;
  padding: 1rem;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none; /* opzionale, se vuoi evitare interferenze */
}

.artist-card:hover .artista-info {
  opacity: 1;
  transform: translateY(0);
}
@media (max-width: 768px) {
  .artist-gallery {
    column-count: 1;
  }
}


.overlay {
  position: absolute;
  bottom: 0;
  background: rgba(0,0,0,0.7);
  color: #fff;
  width: 100%;
  padding: 10px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.artist-card:hover .overlay {
  transform: translateY(0);
}

.overlay h4 {
  margin: 0 0 5px;
  font-size: 1.1em;
}

.overlay p {
  margin: 0;
  font-size: 0.9em;
}
/* Galleria */
.gallery {
  display: grid;
  position: relative;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 15px;
}

.item {
  position: relative;
  overflow: hidden;
  background: #000;
  border: 1px solid #ff00aa;
  border-radius: 4px;
  transition: transform 0.3s ease;
}

.item img {
  width: 100%;
  height: auto;
  display: block;
  filter: contrast(1.2) brightness(0.9);
}
.item.horizontal {
  grid-column: span 2;
  aspect-ratio: 2 / 1;
}

.item.vertical {
  grid-row: span 2;
  aspect-ratio: 4 / 5;
}

.overlay {
  position: absolute;
  bottom: 10px;
  left: 10px;
  color: white;
  font-weight: bold;
  font-size: 1.2rem;
  background: rgba(0, 0, 0, 0.6);
  padding: 5px 10px;
  mix-blend-mode: difference;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.item:hover .overlay {
  opacity: 1;
}

/* Lightbox base */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 1rem;
  box-sizing: border-box;
  animation: zoomIn 0.3s ease forwards;
}

/* Immagine */
.lightbox img {
  max-width: 100%;
  max-height: 80vh;
  border: 4px solid var(--primary-color);
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(255, 0, 255, 0.5);
  object-fit: contain;
}

/* Pulsante chiusura */
.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--primary-color);
  color: var(--bg-color);
  border: none;
  font-size: 2rem;
  padding: 0.5rem 1rem;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10000;
}

/* Animazioni */
@keyframes zoomIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes zoomOut {
  from {
    transform: scale(1);
    opacity: 1;
  }
  to {
    transform: scale(0.8);
    opacity: 0;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .lightbox img {
    max-height: 60vh;
  }

  .lightbox-close {
    font-size: 1.5rem;
    padding: 0.4rem 0.8rem;
  }
}

.hidden {
  display: none;
}

.hidden {
  display: none;
}
.social-links {
  display: flex;
  gap: 20px;
  margin: 20px 0;
}

.social-links a {
  font-size: 24px;
  color: #333;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: #d63384; /* Colore accentato */
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 500px;
  margin-top: 20px;
}

.contact-form input,
.contact-form textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-family: 'Lexend', sans-serif;
}

.contact-form button {
  padding: 10px 20px;
  background-color: #d63384;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.contact-form button:hover {
  background-color: #b0256b;
}
.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.popup-content {
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  max-width: 400px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.popup-content h3 {
  margin-bottom: 10px;
  color: #d63384;
}

.popup-content button {
  margin-top: 15px;
  padding: 10px 20px;
  background-color: #d63384;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.hidden {
  display: none;
}
.home-section {
  height: 100vh;
  background-color:none;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  font-family: 'Lexend', sans-serif;
  text-align: center;
}

.home-content h1 {
  font-size: 3rem;
  color: #d63384;
  margin-bottom: 20px;
}

.enter-button {
  padding: 10px 20px;
  background-color: #d63384;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.enter-button:hover {
  background-color: #b0256b;
}
@keyframes heartbeat {
  0%, 100% {
    transform: scale(1);
  }
  14% {
    transform: scale(1.3);
  }
  28% {
    transform: scale(1);
  }
  42% {
    transform: scale(1.3);
  }
  70% {
    transform: scale(1);
  }
}

.enter-button {
  padding: 10px 20px;
  background-color: #d63384;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: background-color 0.3s ease;
  animation: heartbeat 2.5s infinite;
  display: inline-block;
}
.event-calendar {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  font-family: 'Lexend', sans-serif;
}

.event-calendar th,
.event-calendar td {
  border: 1px solid var(--primary-color);
  padding: 12px;
  text-align: left;
}

.event-calendar th {
  background-color: var(--primary-color);
  color: var(--bg-color);
}

.event-calendar tr:nth-child(even) {
  background-color: rgba(255, 0, 255, 0.05);
}
.event-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
}

.event-card-visual {
  position: relative;
  width: 300px;
  height: 200px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  cursor: pointer;
}

.event-card-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.event-card-visual:hover img {
  transform: scale(1.05);
}
.event-card {
  background-color: rgba(255, 0, 255, 0.15);
  border: 2px solid var(--primary-color);
  border-radius: 0;
  transform: rotate(-1deg);
  box-shadow: 4px 4px 0 var(--secondary-color);
  font-family: 'Lexend', sans-serif;
}


.event-overlay {
  position: absolute;
  bottom: 0;
  background: rgba(0,0,0,0.6);
  color: #fff;
  width: 100%;
  padding: 10px;
  text-align: center;
  font-family: 'Lexend', sans-serif;
}

.event-overlay h4 {
  margin: 0;
  font-size: 1.1em;
  color: var(--primary-color);
}

.event-overlay p {
  margin: 5px 0 0;
  font-size: 0.9em;
}
.artist-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  font-family: 'Lexend', sans-serif;
}

.artist-modal.hidden {
  display: none;
}

.modal-content {
  background: var(--bg-color);
  color: var(--secondary-color);
  padding: 2rem;
  border-radius: 12px;
  max-width: 600px;
  width: 90%;
  box-shadow: 0 4px 16px rgba(255, 0, 255, 0.3);
  position: relative;
}

.close-button {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--primary-color);
  background: none;
  border: none;
}

.artist-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1rem;
}

.artist-header h3 {
  margin: 0;
  font-size: 1.5rem;
  color: var(--primary-color);
}

.artist-header a {
  font-size: 1.4rem;
  color: var(--primary-color);
  transition: color 0.3s ease;
}

.artist-header a:hover {
  color: var(--secondary-color);
}
.artist-subsection {
  margin-bottom: 4rem;
}

.artist-subsection.alt-bg {
  background-color: rgba(255, 0, 255, 0.05);
  padding: 2rem;
  border-radius: 12px;
}
.modal-gallery {
  column-count: 3;
  column-gap: 1rem;
}

.modal-gallery img {
  width: 100%;
  margin-bottom: 1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.modal-gallery img:hover {
  transform: scale(1.02);
}

/* Mobile optimization */
@media (max-width: 600px) {
  .modal-gallery img {
    width: 90px;
  }
}
.qms-masonry {
  column-count: 3;
  column-gap: 1.2rem;
}

.qms-item {
  break-inside: avoid;
  margin-bottom: 1.2rem;
  background: #000;
  color: #fff;
  padding: 0.5rem;
  border: 1px solid #ff00aa;
  border-radius: 4px;
  transition: transform 0.3s ease;
}

.qms-item:hover {
  transform: scale(1.02);
}

.qms-item img,
.qms-item iframe {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

.qms-item.ig span {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #ff00aa;
}
.video-preview {
  width: 100%;
  padding-top: 56.25%; /* 16:9 ratio */
  background-size: cover;
  background-position: center;
  position: relative;
  border-radius: 4px;
  border: 1px solid #ff00aa;
}

.play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2rem;
  color: #ff00aa;
  background: rgba(0,0,0,0.6);
  padding: 0.5rem 1rem;
  border-radius: 50%;
}
.gallery {
  column-count: 3;
  column-gap: 15px;
}

.item {
  break-inside: avoid;
  margin-bottom: 15px;
  background: #000;
  border: 1px solid #ff00aa;
  border-radius: 4px;
  overflow: hidden;
}

.gallery {
  column-count: 3;
  column-gap: 15px;
}

.item {
  break-inside: avoid;
  margin-bottom: 15px;
  background: #000;
  border: 1px solid #ff00aa;
  border-radius: 4px;
  overflow: hidden;
}

/* Adattamenti proporzionali */
.item.landscape {
  width: 100%;
}

.item.portrait {
  width: 80%;
  margin-left: auto;
  margin-right: auto;
}

.item.square {
  width: 90%;
  margin-left: auto;
  margin-right: auto;
}

.item img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}


.overlay {
  margin-top: 8px;
  color: white;
  font-weight: bold;
  font-size: 1rem;
  background: rgba(0, 0, 0, 0.6);
  padding: 5px 10px;
  mix-blend-mode: difference;
  text-align: center;
}

.item:hover .overlay {
  opacity: 1;
}
@media (max-width: 768px) {
  .gallery {
    column-count: 1;
  }
}
