/* RESET BASE */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: "Segoe UI", Roboto, sans-serif;
  background: #f8f9fa;
  color: #222;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
}

/* HEADER */
header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem;
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  color: #333;
  font-size: 1.2rem;
}
header img {
  height: 60px;
  width: auto;
}

/* MENU GRID */
nav {
  display: grid;
  gap: 1.5rem;
  padding: 2rem;
  width: 100%;
  max-width: 960px;
}

.menu-item {
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.menu-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.15);
}

.menu-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: inherit;
}

.menu-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}

.menu-link {
  padding: 1rem;
  text-align: center;
}

.menu-link a {
  text-decoration: none;
  color: #0078d4;
  font-weight: 600;
  font-size: 1.1rem;
}

.menu-link a:hover {
  text-decoration: underline;
}

#menu-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));  /* Imposta le colonne in base al numero massimo */
  gap: 10px;  /* Distanza tra le voci */
  padding: 20px;
}

.menu-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px;
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 5px;
}

.menu-item img {
  width: 100%;  /* Immagini responsivi */
  height: auto;
  max-width: 100%;
  object-fit: cover;
}

.menu-item a {
  text-decoration: none;
  color: #333;
}

.menu-item a:hover {
  color: #007BFF;
}
