:root {
  --ink: #1f211c;
  --green: #31482f;
  --leaf: #5b7f4b;
  --cream: #fff1cf;
  --paper: #fffaf0;
  --sand: #ead39e;
  --red: #b7432d;
  --tomato: #d9573b;
  --gold: #f4bd4f;
  --blue: #2f6f8f;
  --line: rgba(17, 32, 24, .16);
  --shadow: 0 24px 70px rgba(17, 32, 24, .16);
  --radius: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Nunito Sans", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.55;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 1000;
  background: var(--gold);
  color: var(--ink);
  padding: 12px 16px;
  border-radius: var(--radius);
}
.skip-link:focus { top: 16px; }

.site-header {
  position: fixed;
  inset: 16px 16px auto;
  z-index: 100;
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 10px 12px;
  background: rgba(255, 250, 240, .9);
  border: 1px solid rgba(255, 255, 255, .54);
  box-shadow: 0 12px 34px rgba(17, 32, 24, .14);
  backdrop-filter: blur(16px);
  border-radius: var(--radius);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}
.brand-logo {
  width: 132px;
  height: 46px;
  object-fit: contain;
  border-radius: 6px;
}
.brand strong, .brand small { display: block; }
.brand strong {
  font-family: "Manrope", system-ui, sans-serif;
  line-height: 1;
  font-size: .98rem;
  font-weight: 900;
}
.brand small { font-size: .78rem; color: rgba(17, 32, 24, .68); }
.desktop-nav {
  display: flex;
  justify-content: center;
  gap: 4px;
  flex: 1;
}
.desktop-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: var(--radius);
  font-weight: 700;
  color: rgba(17, 32, 24, .78);
}
.desktop-nav a:hover, .desktop-nav a:focus-visible { background: rgba(31, 107, 77, .1); color: var(--green); }
.nav-cta, .menu-toggle, .button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: var(--radius);
  border: 0;
  cursor: pointer;
  font-weight: 800;
}
.nav-cta {
  padding: 0 16px;
  background: var(--tomato);
  color: white;
}
.social-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.social-links a {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(17, 32, 24, .13);
  border-radius: var(--radius);
  color: var(--green);
  background: rgba(255,255,255,.62);
}
.social-links svg,
.contact-socials svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.social-links svg path,
.contact-socials svg path {
  fill: currentColor;
  stroke: none;
}
.social-links a:hover {
  background: var(--green);
  color: var(--cream);
}
.menu-toggle {
  display: none;
  width: 48px;
  color: var(--cream);
  background: var(--green);
}
.mobile-nav {
  position: fixed;
  z-index: 90;
  top: 96px;
  left: 16px;
  right: 16px;
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 12px;
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.mobile-nav.open { display: grid; }
.mobile-nav a {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 800;
}
.lucide { width: 19px; height: 19px; stroke-width: 2.2; }

.hero {
  position: relative;
  min-height: 96dvh;
  display: grid;
  align-items: end;
  padding: 132px clamp(18px, 5vw, 72px) 40px;
  overflow: hidden;
  color: white;
}
.hero-bg, .hero-scrim {
  position: absolute;
  inset: 0;
}
.hero-bg {
  background-image: url("https://media-cdn.tripadvisor.com/media/photo-o/2e/34/95/7f/mentre-vieni-da-via-medina.jpg");
  background-size: cover;
  background-position: center;
  transform: scale(1.03);
}
.hero-scrim {
  background:
    linear-gradient(90deg, rgba(31, 33, 28, .88), rgba(49, 72, 47, .66) 48%, rgba(183, 67, 45, .22)),
    linear-gradient(0deg, rgba(31, 33, 28, .74), transparent 44%);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 920px;
}
.eyebrow {
  margin: 0 0 14px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
  color: var(--gold);
}
.eyebrow.dark { color: var(--red); }
h1, h2, h3 {
  margin: 0;
  line-height: .98;
}
h1, h2 {
  font-family: "Manrope", system-ui, sans-serif;
  letter-spacing: 0;
}
h1 {
  font-size: clamp(4.2rem, 12vw, 10.5rem);
  line-height: 1.02;
  font-weight: 900;
  text-wrap: balance;
  max-width: 980px;
}
h2 {
  font-size: clamp(2.2rem, 5vw, 5.15rem);
  line-height: 1.03;
  font-weight: 900;
  text-wrap: balance;
}
h3 {
  font-size: 1.15rem;
}
.hero-copy {
  max-width: 690px;
  margin: 20px 0 26px;
  font-size: clamp(1.1rem, 2vw, 1.42rem);
  color: rgba(255, 255, 255, .9);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.button {
  padding: 0 20px;
  transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button.primary {
  background: var(--gold);
  color: var(--ink);
  box-shadow: 0 16px 34px rgba(242, 184, 75, .25);
}
.button.ghost {
  color: white;
  border: 1px solid rgba(255,255,255,.48);
  background: rgba(255,255,255,.12);
}
.button.light {
  color: var(--ink);
  background: var(--cream);
}
.hero-panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 980px;
  margin-top: 48px;
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(12px);
  border-radius: var(--radius);
}
.hero-panel > div {
  padding: 18px;
  border-right: 1px solid rgba(255,255,255,.22);
}
.hero-panel > div:last-child { border-right: 0; }
.panel-kicker, .hero-panel small {
  display: block;
  color: rgba(255,255,255,.72);
}
.hero-panel strong {
  display: block;
  margin: 4px 0;
  font-size: 1.08rem;
}

.intro-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--gold);
  color: var(--ink);
}

.section-divider {
  min-height: 58px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--green);
  color: var(--cream);
  border-top: 1px solid rgba(255,255,255,.12);
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.section-divider span {
  min-width: 100%;
  display: block;
  font-family: "Manrope", system-ui, sans-serif;
  font-size: clamp(1.25rem, 3vw, 2.7rem);
  font-weight: 900;
  text-align: center;
  opacity: .9;
}
.soft-separator {
  height: 18px;
  background:
    radial-gradient(circle at 18px 9px, rgba(183, 67, 45, .28) 0 4px, transparent 5px) 0 0/48px 18px,
    var(--paper);
}
.intro-band a {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px;
  border-right: 1px solid rgba(17, 32, 24, .18);
  font-weight: 900;
  text-align: center;
}
.intro-band a:hover { background: #ffd070; }

.section {
  padding: clamp(70px, 10vw, 138px) clamp(18px, 5vw, 72px);
  position: relative;
  overflow: hidden;
}
.decorated::before {
  content: "";
  position: absolute;
  right: clamp(18px, 6vw, 88px);
  top: clamp(34px, 5vw, 72px);
  width: 126px;
  height: 126px;
  opacity: .16;
  background:
    linear-gradient(90deg, var(--red) 2px, transparent 2px) 0 0/18px 18px,
    linear-gradient(0deg, var(--red) 2px, transparent 2px) 0 0/18px 18px;
  transform: rotate(8deg);
}
.decorated > * { position: relative; z-index: 1; }
.section-heading {
  max-width: 980px;
  margin-bottom: 36px;
}
.section-heading.split {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, .55fr);
  align-items: end;
  gap: 32px;
}
.section-heading p:last-child {
  margin: 0;
  font-size: 1.08rem;
  color: rgba(17, 32, 24, .72);
}
.about { background: var(--cream); }
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(260px, 420px);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.about-copy {
  max-width: 760px;
  font-size: 1.12rem;
}
.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 32px;
}
.facts div {
  padding: 18px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.facts strong {
  display: block;
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 1.9rem;
  color: var(--red);
}
.facts span {
  display: block;
  color: rgba(17, 32, 24, .7);
  line-height: 1.25;
}
.about-photo {
  margin: 0;
  position: relative;
}
.about-photo img {
  width: 100%;
  aspect-ratio: 16/11;
  object-fit: cover;
  object-position: center 58%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.about-photo figcaption {
  position: absolute;
  left: 18px;
  bottom: 18px;
  padding: 9px 12px;
  background: var(--gold);
  border-radius: var(--radius);
  font-weight: 900;
}

.menu-section {
  background:
    linear-gradient(135deg, rgba(242,184,75,.18), transparent 36%),
    var(--paper);
}
.menu-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 18px;
  margin: -8px 0 10px;
  scrollbar-width: none;
}
.menu-tabs::-webkit-scrollbar { display: none; }
.menu-tab {
  min-height: 46px;
  flex: 0 0 auto;
  padding: 0 18px;
  border: 1px solid rgba(17, 32, 24, .14);
  border-radius: 999px;
  background: rgba(255,255,255,.78);
  color: rgba(31,33,28,.72);
  cursor: pointer;
  font-weight: 900;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.menu-tab:hover,
.menu-tab:focus-visible {
  color: var(--green);
  border-color: rgba(49,72,47,.38);
}
.menu-tab.active {
  background: var(--green);
  color: var(--cream);
  border-color: var(--green);
  box-shadow: 0 12px 28px rgba(49,72,47,.16);
}
.menu-layout {
  display: block;
  gap: 16px;
}
.menu-category {
  display: none;
  padding: 22px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 36px rgba(17,32,24,.06);
}
.menu-category.active {
  display: block;
  animation: menuIn .24s ease;
}
@keyframes menuIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.menu-category.featured {
  background:
    linear-gradient(135deg, rgba(244,189,79,.12), transparent 36%),
    var(--green);
  color: white;
}
.menu-category h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--red);
}
.menu-category.featured h3 { color: var(--gold); }
.menu-category ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.menu-category li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: baseline;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.menu-category.featured li { border-color: rgba(255,255,255,.18); }
.menu-category li span { color: rgba(17, 32, 24, .82); }
.menu-category.featured li span { color: rgba(255,255,255,.86); }
.menu-category li strong {
  color: var(--blue);
  font-variant-numeric: tabular-nums;
}
.menu-category.featured li strong { color: var(--gold); }
.menu-category li strong::after { content: " €"; }

.gallery { background: var(--cream); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 250px;
  gap: 12px;
}
.gallery figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--green);
}
.gallery .wide { grid-column: span 2; }
.gallery .tall { grid-row: span 2; }
.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.gallery figure:hover img { transform: scale(1.05); }
.gallery figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 7px 10px;
  border-radius: var(--radius);
  background: rgba(15, 44, 34, .86);
  color: white;
  font-weight: 900;
}

.reservation {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(320px, .7fr);
  gap: clamp(24px, 5vw, 70px);
  padding: clamp(70px, 10vw, 138px) clamp(18px, 5vw, 72px);
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 10% 10%, rgba(244,189,79,.32), transparent 28%),
    linear-gradient(135deg, #31482f, #b7432d 78%);
  color: white;
}
.decorated-dark::after {
  content: "";
  position: absolute;
  inset: auto -40px 22px auto;
  width: 340px;
  height: 86px;
  opacity: .17;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.92) 0 2px, transparent 2px 16px);
  transform: rotate(-7deg);
}
.reservation > * { position: relative; z-index: 1; }
.reservation-copy h2 { max-width: 760px; }
.reservation-copy p:not(.eyebrow) {
  max-width: 560px;
  color: rgba(255,255,255,.82);
  font-size: 1.08rem;
}
.booking-form {
  display: grid;
  gap: 16px;
  padding: 22px;
  background: rgba(255, 250, 240, .96);
  color: var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,.4);
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.field label {
  display: block;
  margin-bottom: 7px;
  font-weight: 900;
}
.field input, .field textarea, .field select {
  width: 100%;
  min-height: 48px;
  padding: 12px;
  border-radius: var(--radius);
  border: 1px solid rgba(17,32,24,.22);
  background: white;
  color: var(--ink);
}
.field textarea { resize: vertical; min-height: 112px; }
.field input:focus, .field textarea:focus, .field select:focus, .button:focus-visible, a:focus-visible, button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}
.button.submit {
  width: 100%;
  background: linear-gradient(135deg, var(--green), #476c3c);
  color: white;
}
.form-status {
  min-height: 24px;
  margin: 0;
  font-weight: 800;
  color: var(--leaf);
}

.contacts { background: var(--paper); }
.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 18px;
}
.contact-card {
  padding: 22px;
  border: 1px solid var(--line);
  background: white;
  border-radius: var(--radius);
}
.contact-card > .lucide { color: var(--red); width: 24px; height: 24px; }
.contact-card h3 { margin: 12px 0 10px; }
.contact-card p { margin: 0 0 10px; color: rgba(17,32,24,.72); }
.contact-card a { color: var(--blue); font-weight: 900; }
.contact-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.contact-socials a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border-radius: var(--radius);
  background: rgba(49,72,47,.09);
  color: var(--green);
}
.map-wrap {
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  min-height: 360px;
}
.modern-map {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .55fr);
  background: #f8ecd0;
  box-shadow: 0 18px 50px rgba(17,32,24,.09);
}
.map-visual {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(49,72,47,.16), transparent 42%),
    linear-gradient(45deg, rgba(183,67,45,.16), transparent 48%),
    #fff7e5;
}
.map-visual::before {
  content: "";
  position: absolute;
  inset: 24px;
  border: 1px dashed rgba(49,72,47,.2);
  border-radius: var(--radius);
}
.map-road {
  position: absolute;
  left: -10%;
  right: -10%;
  height: 24px;
  border-radius: 999px;
  background: rgba(49,72,47,.16);
}
.road-one { top: 32%; transform: rotate(-12deg); }
.road-two { top: 54%; transform: rotate(18deg); background: rgba(183,67,45,.14); }
.road-three { top: 72%; transform: rotate(-4deg); }
.map-pin {
  position: absolute;
  left: 48%;
  top: 42%;
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--red);
  box-shadow: 0 18px 42px rgba(183,67,45,.28);
  transform: translate(-50%, -50%);
  z-index: 2;
}
.map-pin .lucide {
  width: 28px;
  height: 28px;
}
.map-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: clamp(24px, 4vw, 44px);
  background: white;
}
.map-content h3 {
  font-family: "Manrope", system-ui, sans-serif;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.05;
}
.map-content p:not(.eyebrow) {
  margin: 0;
  color: rgba(17,32,24,.68);
}
.map-button {
  align-self: flex-start;
  margin-top: 10px;
  background: var(--green);
  color: white;
}
.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 28px clamp(18px, 5vw, 72px);
  background: var(--green);
  color: white;
}
.footer-logo {
  width: 168px;
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}
.site-footer p { margin: 4px 0 0; color: rgba(255,255,255,.7); }
.site-footer a {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: var(--gold);
  color: var(--ink);
}

@media (max-width: 980px) {
  .desktop-nav, .nav-cta, .social-links { display: none; }
  .menu-toggle { display: inline-flex; margin-left: auto; }
  .hero-panel, .intro-band, .about-grid, .section-heading.split, .reservation, .contact-grid {
    grid-template-columns: 1fr;
  }
  .hero-panel > div { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.22); }
  .hero-panel > div:last-child { border-bottom: 0; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .modern-map { grid-template-columns: 1fr; }
  .map-visual { min-height: 260px; }
}

@media (max-width: 620px) {
  .site-header { inset: 10px 10px auto; min-height: 62px; }
  .brand small { display: none; }
  .brand-logo { width: 118px; height: 42px; }
  .brand strong { display: none; }
  .hero { min-height: 92dvh; padding: 112px 16px 28px; }
  h1 { font-size: clamp(3.7rem, 21vw, 5.8rem); }
  .hero-actions .button { width: 100%; }
  .intro-band a { min-height: 76px; }
  .section, .reservation { padding-left: 16px; padding-right: 16px; }
  .facts, .field-row, .gallery-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-auto-rows: 250px; }
  .gallery .wide, .gallery .tall { grid-column: auto; grid-row: auto; }
  .mobile-nav { grid-template-columns: 1fr; top: 84px; left: 10px; right: 10px; }
  .site-footer { align-items: flex-start; }
  .menu-tabs {
    margin-left: -16px;
    margin-right: -16px;
    padding-left: 16px;
    padding-right: 16px;
  }
  .menu-category { padding: 18px; }
  .map-content { padding: 22px; }
}

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