@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@600;700&family=Work+Sans:wght@300;400;500;600&display=swap");

:root {
  --bg: #f7f0e6;
  --bg-accent: #f1e1cf;
  --ink: #1a1612;
  --muted: #5e5348;
  --accent: #b1442a;
  --accent-soft: #f0c29a;
  --card: #fffaf4;
  --section-bg: #fffaf4;
  --shadow: rgba(26, 22, 18, 0.16);
  --line: #e7d2bb;
  --card-bg: #fff7ef;
  --font-title: "Cormorant Garamond";
  --font-body: "Work Sans";
  --logo-color: #b1442a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-body), "Segoe UI", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top, #fff7e8 0%, var(--bg) 55%, #efe5d7 100%);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.4) 12px, rgba(255, 255, 255, 0) 12px, rgba(255, 255, 255, 0) 24px);
  opacity: 0.18;
  pointer-events: none;
  z-index: -1;
}

.hero {
  text-align: center;
  padding: 3.5rem 1.5rem 2.5rem;
  background: linear-gradient(135deg, var(--bg-accent), #f9f1e4 55%, #f3dac2 100%);
  border-bottom: 3px solid var(--line);
  position: relative;
}

.lang-switcher {
  position: absolute;
  top: 1.1rem;
  right: 1.2rem;
  display: flex;
  gap: 0.35rem;
  padding: 0.35rem;
  background: rgba(255, 250, 244, 0.85);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 12px 24px -18px var(--shadow);
}

.lang-switcher__btn {
  border: none;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 0.72rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.lang-switcher__btn.is-active {
  background: var(--accent);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 14px -10px rgba(0, 0, 0, 0.35);
}

.lang-switcher__btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (max-width: 720px) {
  .lang-switcher {
    top: 0.8rem;
    right: 0.8rem;
    gap: 0.25rem;
    padding: 0.25rem;
  }

  .lang-switcher__btn {
    width: 28px;
    height: 28px;
    font-size: 0.68rem;
  }
}

.hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.35rem;
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0 0 0.5rem;
}

.hero__title {
  font-family: var(--font-title), "Times New Roman", serif;
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  margin: 0 0 0.5rem;
}

.hero__logo-text {
  display: inline-block;
  margin: 0.75rem auto 0.75rem;
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: clamp(2.8rem, 6vw, 4.2rem);
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--logo-color, var(--accent));
  text-shadow: 0 10px 18px rgba(26, 22, 18, 0.18);
}

.hero__subtitle {
  color: var(--muted);
  margin: 0;
  font-size: 1rem;
}

.menu {
  max-width: 1180px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
  display: grid;
  gap: 2.75rem;
}

.menu__notice {
  background: #fff5e6;
  border: 1px solid var(--line);
  padding: 1rem 1.4rem;
  border-radius: 16px;
  color: var(--muted);
  font-size: 0.95rem;
}

.menu__sections {
  display: grid;
  gap: 2.75rem;
}

.menu-supplements {
  background: var(--section-bg);
  border-radius: 26px;
  padding: 2rem 2.1rem 2.2rem;
  box-shadow: 0 24px 50px -36px var(--shadow);
  border: 1px solid var(--line);
  display: grid;
  gap: 1.2rem;
}

.menu-supplements h2 {
  font-family: var(--font-title), "Times New Roman", serif;
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.1rem);
  color: var(--accent);
  letter-spacing: 0.03em;
}

.menu-supplements__list {
  display: grid;
  gap: 1rem;
}

.menu-supplements__row {
  display: grid;
  grid-template-columns: minmax(90px, 110px) 1fr;
  gap: 1rem;
  align-items: start;
}

.menu-supplements__price {
  font-weight: 700;
  color: var(--accent);
  font-size: 1rem;
  white-space: nowrap;
}

.menu-supplements__items {
  display: grid;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.menu-supplements__items p {
  margin: 0;
}

.menu-allergens {
  background: var(--section-bg);
  border-radius: 26px;
  padding: 2rem 2.1rem 2.2rem;
  box-shadow: 0 24px 50px -36px var(--shadow);
  border: 1px solid var(--line);
  display: grid;
  gap: 1rem;
}

.menu-allergens h2 {
  font-family: var(--font-title), "Times New Roman", serif;
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.1rem);
  color: var(--accent);
  letter-spacing: 0.03em;
}

.menu-allergens p {
  margin: 0;
  color: var(--muted);
}

.menu-allergens__image {
  width: 100%;
  height: auto;
  border-radius: 18px;
  border: 1px solid var(--line);
  box-shadow: 0 18px 36px -28px var(--shadow);
}

.menu-section {
  background: var(--section-bg);
  border-radius: 26px;
  padding: 2rem 2.1rem 2.2rem;
  box-shadow: 0 24px 50px -36px var(--shadow);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  animation: reveal 0.6s ease both;
  z-index: 0;
}

.menu-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(240, 194, 154, 0.25), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.menu-section[data-section="sapori-di-mare"]::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("Immagini/sapori-di-mare.png");
  background-size: 260px auto;
  background-repeat: repeat;
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
}

.menu-section[data-section="le-gourmet"]::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("Immagini/gourmet.png");
  background-size: 240px auto;
  background-repeat: repeat;
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
}

.menu-section[data-section="le-classiche"]::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("Immagini/classiche.png");
  background-size: 260px auto;
  background-repeat: repeat;
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
}

.menu-section[data-section="bevande"]::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("Immagini/bevande.png");
  background-size: 240px auto;
  background-repeat: repeat;
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
}

.menu-section__header,
.menu-grid {
  position: relative;
  z-index: 1;
}

.menu-section__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.menu-section h2 {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.1rem);
  color: var(--accent);
  letter-spacing: 0.03em;
}

.menu-section__header::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--line), transparent);
  margin-left: 1.5rem;
}

.menu-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.menu-card {
  padding: 1.2rem 3.4rem 1.2rem 1.25rem;
  border-radius: 20px;
  background: var(--card-bg);
  border: 1px solid #f1decb;
  display: grid;
  gap: 0.4rem;
  position: relative;
  animation: rise 0.5s ease both;
}

.menu-card__title {
  font-weight: 600;
  font-size: 1.1rem;
  margin: 0;
}

.menu-card__title-row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.menu-card__allergens {
  display: inline-flex;
  font-size: 0.85rem;
  color: var(--ink);
  opacity: 0.5;
  letter-spacing: 0.04em;
}

.menu-card__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.2rem 0.55rem;
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: #c7332b;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: absolute;
  right: 0.7rem;
  bottom: 0.85rem;
  z-index: 1;
  clip-path: polygon(50% 0%, 60% 12%, 75% 6%, 78% 22%, 95% 20%, 88% 35%, 100% 50%, 88% 65%, 95% 80%, 78% 78%, 75% 94%, 60% 88%, 50% 100%, 40% 88%, 25% 94%, 22% 78%, 5% 80%, 12% 65%, 0 50%, 12% 35%, 5% 20%, 22% 22%, 25% 6%, 40% 12%);
}

.menu-card__desc {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
  margin: 0;
}

.menu-card__prices {
  display: grid;
  gap: 0.35rem;
  justify-items: end;
}

.menu-card__price-row {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.menu-card__price-label {
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.menu-card__price {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
  background: #fff2e5;
  border: 1px solid #f1d3b6;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
}

.menu-card__meta {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: grid;
  gap: 0.35rem;
  justify-items: end;
}

.menu-card__gallery {
  border: none;
  background: #fff6ec;
  border: 1px solid #f1d3b6;
  border-radius: 10px;
  padding: 0.18rem 0.4rem;
  cursor: pointer;
  line-height: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.menu-card__price,
.menu-card__gallery {
  transform: translateY(-1px);
}

.site-footer {
  text-align: center;
  padding: 1.5rem 1.5rem 2.5rem;
  color: var(--muted);
  font-size: 0.95rem;
  border-top: 1px solid var(--line);
  background: rgba(255, 250, 244, 0.6);
}

.site-footer p {
  margin: 0.35rem 0;
}

.site-footer a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.menu-card__gallery-icon {
  width: 18px;
  height: 18px;
  fill: var(--accent);
}

.menu-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 20;
}

.menu-modal.is-open {
  display: flex;
}

.menu-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.menu-modal__content {
  position: relative;
  background: #fffaf4;
  border-radius: 18px;
  padding: 1.25rem;
  max-width: min(720px, 92vw);
  max-height: 85vh;
  overflow: auto;
  display: grid;
  gap: 1rem;
  z-index: 1;
}

.menu-modal__images {
  display: grid;
  gap: 0.9rem;
}

.menu-modal__images img {
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.menu-modal__close {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  border: none;
  background: #f1d3b6;
  color: #1a1612;
  border-radius: 999px;
  width: 32px;
  height: 32px;
  font-size: 1.2rem;
  cursor: pointer;
}

.menu-error {
  margin: 0;
  color: var(--muted);
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .menu-section,
  .menu-card {
    animation: none;
  }
}

.menu-notes {
  font-size: 0.96rem;
  color: var(--muted);
  line-height: 1.6;
  display: grid;
  gap: 0.75rem;
}

.menu-notes strong {
  color: var(--ink);
}

@media (max-width: 680px) {
  .menu-section {
    padding: 1.5rem;
  }

  .menu {
    padding: 2rem 1rem 3rem;
  }

  .menu-card {
    padding-right: 1.25rem;
  }

  .menu-card__price {
    position: static;
    justify-self: flex-start;
  }

  .menu-card__gallery {
    position: static;
    justify-self: flex-start;
    margin-top: 0;
  }

  .menu-card__meta {
    position: static;
    justify-self: flex-start;
    margin-top: 0.4rem;
    align-items: center;
    justify-items: flex-start;
  }

  .menu-card__prices {
    justify-items: flex-start;
  }


  .menu-card__price,
  .menu-card__gallery {
    transform: translateY(-1px);
  }
}

@media (max-width: 480px) {
  .hero__logo {
    width: min(180px, 75vw);
    margin: 0.5rem auto 0.6rem;
  }
}
