:root {
  --ink: #241812;
  --muted: #6c5a4b;
  --paper: #fffaf0;
  --cream: #f4ead8;
  --linen: #efe0c7;
  --wine: #7d1f1b;
  --wine-dark: #55120f;
  --olive: #576230;
  --gold: #c49646;
  --shadow: 0 24px 70px rgba(36, 24, 18, 0.16);
  --radius-xl: 34px;
  --radius-lg: 22px;
  --radius-md: 14px;
  --container: 1160px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Trebuchet MS", Verdana, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.65;
  background:
    radial-gradient(circle at top left, rgba(196, 150, 70, 0.22), transparent 34rem),
    linear-gradient(135deg, #fffdf7 0%, var(--paper) 38%, #ead9bc 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0.34;
  background-image:
    linear-gradient(rgba(36, 24, 18, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(36, 24, 18, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--wine);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--wine-dark);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--serif);
  line-height: 1.08;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.25rem, 7.6vw, 4.55rem);
  letter-spacing: -0.05em;
}

h2 {
  font-size: clamp(1.9rem, 5.4vw, 3.4rem);
  letter-spacing: -0.045em;
}

h3 {
  font-size: clamp(1.35rem, 4vw, 2rem);
  letter-spacing: -0.025em;
}

p {
  margin: 0;
}

p + p,
p + h3,
ul + h3 {
  margin-top: 1.2rem;
}

ul {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
}

li + li {
  margin-top: 0.45rem;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 0.6rem;
  z-index: 100;
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(36, 24, 18, 0.08);
  background: rgba(255, 250, 240, 0.86);
  backdrop-filter: blur(18px);
  transition: box-shadow 180ms ease, background 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(255, 250, 240, 0.96);
  box-shadow: 0 10px 32px rgba(36, 24, 18, 0.1);
}

.navbar {
  width: min(var(--container), calc(100% - 2rem));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  width: 176px;
}

.brand img {
  width: 100%;
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4.2rem;
  border: 1px solid rgba(36, 24, 18, 0.18);
  border-radius: 999px;
  padding: 0.7rem 0.95rem;
  color: var(--ink);
  background: #fff8e9;
  font: inherit;
  cursor: pointer;
}

.nav-links {
  position: fixed;
  top: 76px;
  left: 1rem;
  right: 1rem;
  display: grid;
  gap: 0.25rem;
  margin: 0;
  padding: 1rem;
  list-style: none;
  border: 1px solid rgba(36, 24, 18, 0.12);
  border-radius: 22px;
  background: rgba(255, 250, 240, 0.98);
  box-shadow: var(--shadow);
  transform: translateY(-1rem);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.nav-links.is-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.nav-links a {
  display: block;
  border-radius: 14px;
  padding: 0.75rem 0.85rem;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.nav-links a:hover {
  background: rgba(125, 31, 27, 0.08);
  color: var(--wine);
}

.hero {
  width: min(1460px, calc(100% - 1.2rem));
  min-height: calc(100vh - 76px);
  margin: 0.6rem auto 0;
  display: grid;
  align-items: end;
  overflow: hidden;
  border-radius: 28px;
  background: var(--ink);
  box-shadow: var(--shadow);
}

.hero-media,
.hero-content {
  grid-area: 1 / 1;
}

.hero-media {
  height: 100%;
  min-height: calc(100vh - 88px);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.04) contrast(1.02);
}

.hero-media::after {
  content: "";
  position: absolute;
}

.hero {
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(36, 24, 18, 0.9), rgba(36, 24, 18, 0.58) 48%, rgba(36, 24, 18, 0.1)),
    linear-gradient(0deg, rgba(36, 24, 18, 0.55), transparent 44%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
  padding: clamp(2rem, 8vw, 6rem);
  color: #fffaf0;
}

.hero-content p:not(.eyebrow) {
  max-width: 620px;
  margin-top: 1rem;
  font-size: clamp(1.1rem, 3vw, 1.45rem);
}

.eyebrow {
  margin-bottom: 0.9rem;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero-actions,
.section-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.6rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  border: 1px solid rgba(36, 24, 18, 0.18);
  border-radius: 999px;
  padding: 0.82rem 1.2rem;
  color: var(--ink);
  background: #fffaf0;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(36, 24, 18, 0.12);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(36, 24, 18, 0.2);
}

.button-primary {
  border-color: transparent;
  color: #fffaf0;
  background: linear-gradient(135deg, var(--wine), var(--wine-dark));
}

.button-primary:hover {
  color: #fffaf0;
}

.button-ghost {
  color: #fffaf0;
  border-color: rgba(255, 250, 240, 0.5);
  background: rgba(255, 250, 240, 0.08);
}

.button-ghost:hover {
  color: #fffaf0;
  background: rgba(255, 250, 240, 0.16);
}

.section {
  width: min(var(--container), calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(4rem, 9vw, 7rem) 0;
}

.section-heading {
  max-width: 860px;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.section-heading h2 {
  max-width: 920px;
  font-size: clamp(1.8rem, 4.8vw, 3.05rem);
}

.menu-section .section-heading h2,
.services .section-heading h2,
.gallery-section .section-heading h2,
.ordering h2,
.contacts .section-heading h2 {
  font-size: clamp(1.55rem, 3.2vw, 2.35rem);
  letter-spacing: -0.035em;
  line-height: 1.14;
}

.section-heading > p:not(.eyebrow) {
  margin-top: 1rem;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.split {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.split > div {
  border-radius: var(--radius-xl);
  padding: clamp(1.4rem, 4vw, 2.4rem);
  background: rgba(255, 250, 240, 0.78);
  box-shadow: 0 18px 50px rgba(36, 24, 18, 0.08);
}

figure {
  margin: 0;
}

figure img,
.menu-card img,
.feature-grid article > img,
.gallery-grid img {
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 42px rgba(36, 24, 18, 0.14);
}

figcaption {
  margin-top: 0.8rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.feature-grid,
.card-grid,
.review-grid,
.contact-grid {
  display: grid;
  gap: 1rem;
}

.feature-grid article,
.menu-card,
.review-grid article,
.contact-grid article,
.service-note,
.application-note,
.legal-content {
  border: 1px solid rgba(36, 24, 18, 0.08);
  border-radius: var(--radius-lg);
  padding: clamp(1.2rem, 3vw, 1.8rem);
  background: rgba(255, 250, 240, 0.82);
  box-shadow: 0 14px 40px rgba(36, 24, 18, 0.08);
}

.feature-grid article,
.menu-card,
.review-grid article {
  position: relative;
  overflow: hidden;
}

.feature-grid article::before,
.menu-card::before,
.review-grid article::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--wine), var(--gold), var(--olive));
}

.menu-card img,
.feature-grid article > img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  margin-bottom: 1rem;
}

.menu-card h3,
.feature-grid h3,
.review-grid h3,
.contact-grid h3 {
  margin-bottom: 0.8rem;
}

.menu-card p,
.feature-grid p,
.review-grid p,
.contact-grid p,
.legal-content p,
.jobs-list p {
  color: var(--muted);
}

.menu-section {
  width: min(1280px, calc(100% - 2rem));
}

.menu-section .card-grid {
  grid-template-columns: 1fr;
}

.section-cta {
  align-items: center;
  justify-content: space-between;
  border-radius: var(--radius-xl);
  margin-top: 1.4rem;
  padding: clamp(1.2rem, 4vw, 2rem);
  background: var(--ink);
  color: #fffaf0;
}

.section-cta p {
  max-width: 520px;
}

.order-steps {
  margin: 1rem 0;
  padding-left: 1.25rem;
  color: var(--muted);
}

.order-steps li + li {
  margin-top: 0.55rem;
}

.taste-journey {
  display: grid;
  gap: 1rem;
  margin-top: clamp(1.6rem, 4vw, 2.4rem);
}

.taste-panel {
  display: grid;
  gap: 1rem;
  overflow: hidden;
  border: 1px solid rgba(36, 24, 18, 0.08);
  border-radius: var(--radius-xl);
  padding: clamp(1rem, 3vw, 1.4rem);
  background:
    linear-gradient(135deg, rgba(255, 250, 240, 0.9), rgba(239, 224, 199, 0.72)),
    #fffaf0;
  box-shadow: 0 18px 45px rgba(36, 24, 18, 0.09);
}

.taste-panel h3 {
  margin-bottom: 0.7rem;
  font-size: clamp(1.35rem, 3vw, 1.9rem);
}

.taste-panel p:not(.eyebrow) {
  color: var(--muted);
}

.taste-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.taste-strip img {
  width: 100%;
  height: 100%;
  min-height: 140px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 14px 30px rgba(36, 24, 18, 0.13);
  cursor: zoom-in;
}

.service-note {
  margin-top: 1rem;
  color: #fffaf0;
  background:
    linear-gradient(135deg, rgba(125, 31, 27, 0.94), rgba(87, 98, 48, 0.9)),
    var(--wine);
}

.service-note p {
  color: #fffaf0;
}

.gallery-grid {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: 1fr;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  min-height: 170px;
  object-fit: cover;
  cursor: zoom-in;
  transition: transform 180ms ease, filter 180ms ease;
}

.gallery-grid img:hover {
  filter: saturate(1.08) contrast(1.04);
  transform: translateY(-3px);
}

.gallery-grid img:first-child {
  grid-column: 1 / -1;
}

.reviews {
  width: min(1320px, calc(100% - 2rem));
}

.review-grid article {
  background: #fffdf7;
}

.review-grid article::after {
  content: "5/5";
  position: absolute;
  right: 1rem;
  top: 1rem;
  border-radius: 999px;
  padding: 0.25rem 0.6rem;
  color: #fffaf0;
  background: var(--olive);
  font-size: 0.8rem;
  font-weight: 800;
}

.ordering .split {
  border-radius: var(--radius-xl);
  padding: clamp(0.7rem, 2vw, 1rem);
  background: linear-gradient(135deg, #fff8e9, #ead7b8);
  box-shadow: var(--shadow);
}

.ordering figure img {
  width: 100%;
  max-height: 620px;
  object-fit: contain;
  background: #fff;
}

.contact-list {
  list-style: none;
  padding: 0;
}

.hours-list {
  margin: 0;
}

.hours-list dt {
  margin-top: 1rem;
  color: var(--wine);
  font-weight: 900;
}

.hours-list dt:first-child {
  margin-top: 0;
}

.hours-list dd {
  margin: 0.35rem 0 0;
  color: var(--muted);
}

.map-wrapper {
  overflow: hidden;
  min-height: 360px;
  margin-top: 1rem;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.map-wrapper iframe {
  display: block;
  width: 100%;
  min-height: 360px;
  border: 0;
}

.site-footer {
  width: min(1460px, calc(100% - 1.2rem));
  margin: 0 auto 0.6rem;
  display: grid;
  gap: 1.5rem;
  border-radius: 28px;
  padding: clamp(1.5rem, 4vw, 2.4rem);
  color: #fffaf0;
  background:
    radial-gradient(circle at top right, rgba(196, 150, 70, 0.28), transparent 22rem),
    linear-gradient(135deg, #241812, #3b2418);
}

.site-footer img {
  width: 190px;
  margin-bottom: 1rem;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.2));
}

.site-footer p {
  color: rgba(255, 250, 240, 0.82);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-content: start;
}

.site-footer a {
  border: 1px solid rgba(255, 250, 240, 0.18);
  border-radius: 999px;
  padding: 0.6rem 0.85rem;
  color: #fffaf0;
  text-decoration: none;
}

.page-hero {
  width: min(1160px, calc(100% - 2rem));
  margin: 1.2rem auto 0;
  border-radius: var(--radius-xl);
  padding: clamp(4rem, 10vw, 7rem) clamp(1.4rem, 5vw, 4rem);
  color: #fffaf0;
  background:
    linear-gradient(135deg, rgba(36, 24, 18, 0.86), rgba(85, 18, 15, 0.75)),
    url("images/sala-ricevimenti.jpg") center / cover;
  box-shadow: var(--shadow);
}

.page-hero p:not(.eyebrow) {
  max-width: 680px;
  margin-top: 1rem;
  font-size: clamp(1.05rem, 3vw, 1.3rem);
}

.page-hero h1 {
  max-width: 880px;
  font-size: clamp(1.85rem, 4.8vw, 3rem);
  letter-spacing: -0.045em;
}

.jobs-list {
  display: grid;
  gap: 1rem;
}

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

.menu-options article {
  border: 1px solid rgba(36, 24, 18, 0.08);
  border-radius: var(--radius-lg);
  padding: clamp(1.1rem, 3vw, 1.6rem);
  background: rgba(255, 250, 240, 0.84);
  box-shadow: 0 14px 36px rgba(36, 24, 18, 0.08);
}

.menu-options h3 {
  margin-bottom: 0.8rem;
  color: var(--wine);
}

.jobs-list article {
  border-left: 5px solid var(--wine);
  border-radius: var(--radius-lg);
  padding: clamp(1.2rem, 3vw, 1.8rem);
  background: rgba(255, 250, 240, 0.84);
  box-shadow: 0 14px 36px rgba(36, 24, 18, 0.08);
}

.jobs-list h2 {
  font-size: clamp(1.55rem, 5vw, 2.5rem);
}

.jobs-list h3 {
  margin-top: 1.2rem;
  font-size: 1.15rem;
  font-family: var(--sans);
  letter-spacing: 0;
  color: var(--wine);
}

.legal-content {
  max-width: 920px;
}

.legal-content h2 {
  margin-top: 2rem;
  font-size: clamp(1.45rem, 4vw, 2rem);
}

.legal-content h2:first-child {
  margin-top: 0;
}

.lightbox {
  width: min(980px, calc(100% - 2rem));
  border: 0;
  border-radius: var(--radius-xl);
  padding: clamp(1rem, 3vw, 1.4rem);
  color: var(--ink);
  background: #fffaf0;
  box-shadow: var(--shadow);
}

.lightbox::backdrop {
  background: rgba(36, 24, 18, 0.78);
  backdrop-filter: blur(10px);
}

.lightbox img {
  width: 100%;
  max-height: 76vh;
  border-radius: var(--radius-lg);
  object-fit: contain;
  background: var(--ink);
}

.lightbox p {
  margin-top: 0.8rem;
  color: var(--muted);
}

.lightbox-close {
  display: inline-flex;
  margin-bottom: 0.8rem;
  margin-left: auto;
  border: 1px solid rgba(36, 24, 18, 0.16);
  border-radius: 999px;
  padding: 0.55rem 0.85rem;
  color: #fffaf0;
  background: var(--wine);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

@media (min-width: 720px) {
  .feature-grid,
  .contact-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .menu-section .card-grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .menu-section .menu-card {
    grid-column: span 2;
  }

  .menu-section .menu-card:nth-child(1),
  .menu-section .menu-card:nth-child(2) {
    grid-column: span 3;
  }

  .menu-section .menu-card:last-child {
    grid-column: span 2;
  }

  .review-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .gallery-grid img:first-child {
    grid-column: auto;
    grid-row: auto;
  }

  .taste-panel {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    align-items: center;
  }

  .taste-panel:nth-child(even) > div:first-child {
    order: 2;
  }

  .taste-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .site-footer {
    grid-template-columns: 1.3fr 1fr;
    align-items: end;
  }
}

@media (min-width: 960px) {
  .menu-toggle {
    display: none;
  }

  .nav-links {
    position: static;
    display: flex;
    align-items: center;
    gap: 0.1rem;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    padding: 0.6rem 0.75rem;
    font-size: 0.92rem;
  }

  .split {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  }

  .intro .split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  }

  .menu-section .card-grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .menu-section .menu-card {
    grid-column: span 2;
  }

  .menu-section .menu-card:nth-child(1),
  .menu-section .menu-card:nth-child(2) {
    grid-column: span 3;
  }

  .menu-section .menu-card:last-child {
    grid-column: span 2;
  }

  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .gallery-grid img:first-child {
    grid-column: auto;
    grid-row: auto;
  }

  .taste-strip img:first-child {
    grid-column: span 2;
  }

  .jobs-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .menu-options {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .brand {
    width: 146px;
  }

  .hero {
    min-height: auto;
  }

  .hero-media {
    min-height: 680px;
  }

  .hero-actions .button,
  .section-cta .button {
    width: 100%;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid img:first-child {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
