/* Stile base per tutto il sito */
body {
  margin: 0;
  font-family: "Georgia", serif;
  background-color: #0d1b2a; /* Blu scuro */
  color: #ffffff; /* Testo bianco */
  line-height: 1.6;
}

/* Header e footer */
header, footer {
  text-align: center;
  padding: 1.5rem;
  background-color: #1b263b;
  color: #ffffff;
}

h1, h2 {
  color: #e0e1dd;
}

/* Contenuto principale */
main {
  padding: 2rem;
  max-width: 960px;
  margin: auto;
}

/* Sezioni delle opere */
.opera {
  margin-bottom: 2rem;
  background-color: #1b263b;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

/* Immagini responsive */
.opera img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 5px;
  margin-bottom: 1rem;
  border: 2px solid #415a77;
}

/* Link (se presenti) */
a {
  color: #ffcc00;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}
.foto-opera {
  max-width: 100%;
  height: auto;
  border: 2px solid white;
  margin-bottom: 10px;
}

button {
  background-color: #ffffff;
  color: #001f3f;
  border: none;
  padding: 10px 15px;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 5px;
}

button:hover {
  background-color: #cccccc;
}

.descrizione {
  font-size: 1.1rem;
  margin-top: 10px;
  line-height: 1.5;
}
.foto-opera {
  cursor: pointer;
  transition: transform 0.2s ease;
}

.foto-opera:hover {
  transform: scale(1.02);
}

/* Modal (immagine ingrandita) */
.modal {
  display: none;
  position: fixed;
  z-index: 100;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.9);
}

.modal-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 90%;
  border: 4px solid white;
  box-shadow: 0 0 20px black;
}

.modal:hover {
  cursor: zoom-out;
}

.close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}
/* Lente zoom */
.lente {
  position: absolute;
  border: 2px solid #fff;
  width: 150px;
  height: 150px;
  overflow: hidden;
  border-radius: 50%;
  pointer-events: none;
  box-shadow: 0 0 10px black;
  display: none;
  z-index: 1000;
}

body {
  font-family: "Georgia", serif;
  color: #e0e1dd;
  background-color: #0d1b2a;
  text-align: justify;
  padding: 14px;
}

.side-menu {
  position: fixed;
  top: 120px;
  left: 20px;
  background-color: #0a1a2f;
  padding: 15px;
  border-radius: 8px;
  z-index: 999;
}
.side-menu ul {
  list-style: none;
  padding: 0;
}
.side-menu li {
  margin-bottom: 10px;
}
.side-menu a {
  color: #ffcc00;
  text-decoration: none;
  font-weight: bold;
}
.side-menu a:hover {
  text-decoration: underline;
}
.presentazione {
  background-color: #0c1f33;
  color: white;
  padding: 1.5rem;
  border-radius: 10px;
  margin: 1rem auto;
  max-width: 800px;
}

.toggle-btn {
  background-color: #1f4e79;
  color: #ffcc00;
  border: none;
  padding: 0.6rem 1rem;
  cursor: pointer;
  border-radius: 5px;
  font-size: 1rem;
}

.toggle-btn:hover {
  background-color: #617aaa;
}
.arrow {
  display: inline-block;
  transition: transform 0.3s ease;
  margin-right: 8px;
}

/* Ruota la freccia verso il basso quando la presentazione è nascosta */
.arrow.rotate {
  transform: rotate(90deg);
}
.main-nav ul {
  display: flex;
  justify-content: center;
  background-color: #122;
  padding: 0.5rem;
  margin: 0;
  list-style: none;
}

.main-nav li {
  margin: 0 1rem;
}

.main-nav a {
  color: #d3bc28;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.main-nav a:hover {
  color: #ffcc00;
}
/* Lightbox Modale */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  padding-top: 50px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.9);
}

.modal-content {
  display: block;
  margin: auto;
  max-width: 90%;
  max-height: 90%;
  animation: zoom 0.3s ease;
  border: 4px solid white;
  border-radius: 10px;
}

@keyframes zoom {
  from { transform: scale(0.5); }
  to { transform: scale(1); }
}

.close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #ffffff;
  font-size: 30px;
  font-weight: bold;
  cursor: pointer;
}

.bottone-link {
  display: inline-block;
  background-color: #004080;
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.bottone-link:hover {
  background-color: #0066cc;
}
