:root {
  --mare: #008080;
  --sabbia: #fef9f0;
  --acqua: #00b4d8;
  --corallo: #ff7b54;
  --testo: #043c44;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
  font-family: 'Quicksand', sans-serif;
  background-color: var(--sabbia);
  color: var(--testo);
}

/* HEADER */
header {
  text-align: center;
  padding: 2rem 1rem 1rem;
  background: linear-gradient(to right, var(--mare), var(--acqua));
  color: white;
}

header img {
  max-width: 140px;
  margin: 0 auto 1rem;
  display: block;
}

header h1 {
  font-family: 'Dancing Script', cursive;
  font-size: 2.4rem;
  margin: 0.2rem 0;
}

header p {
  margin: 0.2rem 0;
  font-size: 1rem;
  font-style: italic;
}

/* MENU */
.menu {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.portata {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;
  border-left: 5px solid var(--mare);
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.piatto {
  max-width: 70%;
}

.portata h2 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--mare);
}

.portata p {
  margin: 0.3rem 0 0;
  color: #444;
  font-size: 0.95rem;
}

.prezzo {
  font-weight: bold;
  font-size: 1.1rem;
  color: var(--corallo);
  text-align: right;
  min-width: 60px;
}

/* TABELLA */
.tabella-scroll {
  overflow-x: auto;
  max-width: 100%;
}

.menu-tabella {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  font-family: 'Quicksand', sans-serif;
  table-layout: fixed;
}

.menu-tabella th,
.menu-tabella td {
  padding: 0.75rem 0.5rem;
  border-bottom: 1px solid #ddd;
  font-size: 1rem;
  text-align: left;
  word-wrap: break-word;
}

.menu-tabella th {
  font-weight: 700;
  background-color: #fff;
}

.menu-tabella td:first-child {
  width: 60%;
}

.menu-tabella td:nth-child(2),
.menu-tabella td:nth-child(3),
.menu-tabella th.prezzo,
.menu-tabella td.prezzo {
  text-align: right;
  font-weight: bold;
  color: #222;
  font-size: 1.1rem;
  width: 20%;
}

/* FOOTER */
footer {
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.9rem;
  background-color: #eaf6f6;
  color: #333;
}

footer a {
  color: var(--mare);
  text-decoration: none;
  font-weight: 500;
}

footer a:hover {
  text-decoration: underline;
  color: var(--corallo);
}

.credits-out {
  text-align: center;
  margin: 1rem 0 2rem;
  font-size: 0.75rem;
  color: #666;
}

.credits-out a {
  color: var(--mare);
  text-decoration: none;
}

.credits-out a:hover {
  text-decoration: underline;
}

/* RESPONSIVE */
@media screen and (max-width: 600px) {
  header h1 {
    font-size: 2rem;
  }

  .portata {
    flex-direction: column;
    align-items: flex-start;
  }

  .piatto {
    max-width: 100%;
  }

  .prezzo {
    margin-top: 0.5rem;
    align-self: flex-end;
  }

  .menu-tabella {
    font-size: 0.95rem;
    min-width: 100%;
  }

  .menu-tabella th,
  .menu-tabella td {
    padding: 0.5rem;
  }
}
