/* RESET & BASE */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #ffffff;
  color: #0a2a43;
  font-size: 16px;
  line-height: 1.6;
}

/* HEADER */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 1rem 2rem;
  background-color: #0a2a43;
}

.logo {
  background-color: #ffffff;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  border: 1px solid #ddd;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100px;

}

.logo img {
  max-height: 80px;
  width: auto;
 margin-top: 23px;
}

/* MENU */
.menu {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

.menu a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.menu a:hover {
  color: #aad4f2;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

/* MAIN CONTENT */
main {
  padding: 2rem;
}

/* TITOLO PAGINA */
.titolo {
  text-align: center;
  margin-bottom: 2rem;
}

.titolo h1 {
  font-size: 2rem;
  color: #0a2a43;
}

.titolo p {
  font-size: 1rem;
  color: #333;
}

/* CATEGORIE */
.categoria {
  margin-bottom: 3rem;
  text-align: center;
}

.categoria h2 a {
  color: #0a2a43;
  text-decoration: none;
  border-bottom: 2px solid #aad4f2;
  font-size: 1.4rem;
}

.categoria h2 a:hover {
  color: #0469a2;
}

.galleria {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.galleria figure {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.galleria img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border: 1px solid #ccc;
  border-radius: 8px;
}

.galleria figcaption {
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

.lista-semplice,
.lista-ostriche {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
  list-style: none;
  padding: 0;
}

.lista-ostriche li,
.lista-semplice li {
  background: #f4f4f4;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  font-size: 0.95rem;
}

/* FOOTER */
footer {
  background-color: #f1f1f1;
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  margin-top: 2rem;
}

footer a {
  color: #0a2a43;
  text-decoration: underline;
  font-weight: 500;
}

/* RESPONSIVE MENU */
@media (max-width: 768px) {
  .menu {
    flex-direction: column;
    width: 100%;
    background-color: #0a2a43;
    margin-top: 1rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    border-top: 1px solid #aad4f2;
  }

  .menu.show {
    max-height: 400px;
  }

  .menu-toggle {
    display: block;
  }

  .menu a {
    padding: 0.5rem 1rem;
  }

  .logo img {
    max-height: 60px;
  }

  .galleria {
    flex-direction: column;
    align-items: center;
  }
}

/* MODALE AJAX */
.modale-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(10, 42, 67, 0.85);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modale-box {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

.modale-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.5rem;
  background: none;
  border: none;
  color: #0a2a43;
  cursor: pointer;
}

.modale-contenuto {
  font-size: 0.95rem;
  color: #0a2a43;
}
.elenco-prodotti {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-start;
}

.elenco-prodotti li {
  background-color: #f2f7fa;
  border: 1px solid #c5ddeb;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  font-size: 0.95rem;
  color: #0a2a43;
}
.elenco-verticale {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
  width: 100%;
}

.elenco-verticale li {
  padding: 0.5rem 1rem;
  border-bottom: 1px solid #e2e8f0;
  font-size: 1rem;
  color: #0a2a43;
}

.elenco-verticale li:last-child {
  border-bottom: none;
}