/* RESET E BASE */
* {
  box-sizing: border-box;
}

html, body {
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.6;
}

/* NAVBAR - GALLERIA E ALTRE PAGINE (BARRA NERA FISSA) */
body:not(.home) .menu {
  background: black !important;
  text-align: center !important;
  padding: 15px 0 !important;
  position: fixed !important;
  top: 0 !important;
  width: 100% !important;
  z-index: 999 !important;
}

/* NAVBAR - SOLO INDEX (TRASPARENTE CENTRATO) */
body.home .menu {
  background: transparent !important;
  text-align: center !important;
  padding: 15px 0 !important;
  position: static !important;
}

/* LINK MENU - TUTTE LE PAGINE */
.menu a {
  color: white !important;
  text-decoration: none !important;
  font-size: 18px !important;
  margin: 0 15px !important;
  display: inline-block !important;
  font-family: 'Playfair Display', serif !important;
}

.menu a:hover {
  color: #ccc !important;
}

/* ZOOM GALLERIA 1 - CON TITOLI */
.galleria img {
  cursor: zoom-in;
}

.modal-content {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 90vw;
  max-height: 85vh;
  background: white;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.8);
  overflow: auto;
  z-index: 10000;
  display: none;
  box-sizing: border-box;
}

.modal-content img {
  width: 100%;
  height: auto;
  border-radius: 12px 12px 0 0;
  display: block;
}

.modal-info {
  padding: clamp(15px, 4vw, 25px);
}

.modal-info h3 {
  margin: 0 0 clamp(8px, 2vw, 15px) 0;
  font-size: clamp(16px, 4.5vw, 22px);
  line-height: 1.2;
  font-family: 'Playfair Display', serif;
}

.modal-info p {
  margin: 0;
  color: #666;
  font-size: clamp(13px, 3.5vw, 16px);
  line-height: 1.4;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.9);
  z-index: 9999;
  display: none;
}

/* LANDSCAPE MOBILE - ANTI SOVRAPPOSIZIONE */
@media screen and (max-width: 900px) and (orientation: landscape) {
  .modal-content {
    max-width: 88vw !important;
    max-height: 85vh !important;
    width: 88vw !important;
    top: 48% !important;
    left: 50% !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
  }
  
  .modal-info {
    padding: 3vw !important;
  }
  
  .modal-info h3 {
    font-size: 4vw !important;
    line-height: 1.1 !important;
  }
  
  .modal-info p {
    font-size: 3.2vw !important;
    line-height: 1.3 !important;
  }
}
@media (max-width: 768px) and (orientation: landscape) {
  .contenuto h1 { font-size: 20px !important; }
  .frase { font-size: 12px !important; bottom: 10px !important; }
}
