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

:root {
  --bg: #1b2127;
  --bg-2: #242c33;
  --bg-3: #2d3740;
  --paper: #eee6d8;
  --text: #f4efe6;
  --muted: #c3bbb0;
  --muted-2: #9ca4ad;
  --line: rgba(238, 230, 216, 0.14);
  --line-soft: rgba(238, 230, 216, 0.07);
  --line-strong: rgba(238, 230, 216, 0.24);
  --accent: #c89a5a;
  --wa: #25d366;
  --trip: #34e0a1;
  --raisin: #8b5e3c;
  --max: 1180px;
  --nav-h: 84px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  scroll-behavior: smooth;
   scroll-padding-top: calc(var(--nav-h) + 24px);
}

body {
  font-family: "Manrope", sans-serif;
  padding-top: var(--nav-h);
  background:
    radial-gradient(circle at 14% 18%, rgba(111, 135, 151, 0.18), transparent 24%),
    radial-gradient(circle at 86% 16%, rgba(200, 161, 100, 0.08), transparent 18%),
    radial-gradient(circle at 70% 78%, rgba(74, 92, 108, 0.12), transparent 20%),
    linear-gradient(180deg, #1d232b 0%, #171a1f 38%, #1b2027 100%);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.page-aura {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(circle at 18% 22%, rgba(111, 135, 151, 0.12), transparent 22%),
    radial-gradient(circle at 76% 14%, rgba(200, 161, 100, 0.05), transparent 16%),
    radial-gradient(circle at 72% 78%, rgba(84, 102, 118, 0.08), transparent 18%);
  filter: blur(14px);
}

a {
  text-decoration: none;
  color: inherit;
}

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

button {
  font: inherit;
}

[id] {
  scroll-margin-top: calc(var(--nav-h) + 24px);
}

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.serif {
  font-family: "Cormorant Garamond", serif;
}

.eyebrow {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
}

.section {
  padding: 104px 0;
  position: relative;
}

.section + .section {
  border-top: 1px solid var(--line-soft);
}

.section-heading {
  max-width: 880px;
  margin: 0 auto 28px;
}

.centered-heading {
  text-align: center;
}

.section-title {
  margin-top: 14px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  font-weight: 600;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.reveal.show {
  opacity: 1;
  transform: none;
}

/* ===== Topbar ===== */

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 9999;
  background: rgba(27, 33, 39, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition:
    background 0.35s var(--ease),
    border-color 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}

.topbar.scrolled {
  background: rgba(27, 33, 39, 0.92);
  border-bottom-color: var(--line);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.18);
}

.topbar-inner {
  min-height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--accent);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.15rem;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.02);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.03;
}

.brand-text strong {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand-text span {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.top-actions-left,
.top-actions-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.nav-cta,
.menu-link,
.btn-main {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #182028;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  transition:
    transform 0.24s var(--ease),
    border-color 0.24s var(--ease),
    background 0.24s var(--ease),
    color 0.24s var(--ease),
    box-shadow 0.24s var(--ease),
    filter 0.24s var(--ease);
}

.nav-cta:hover,
.menu-link:hover,
.btn-main:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
}

.nav-cta-ghost,
.secondary {
  background: transparent;
  color: var(--paper);
  border-color: var(--line);
}

.nav-cta-ghost:hover,
.secondary:hover {
  border-color: var(--accent);
  color: var(--text);
}

/* ===== Icon links ===== */

.icon-link {
  width: 46px;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.025);
  color: var(--text);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition:
    transform 0.24s var(--ease),
    border-color 0.24s var(--ease),
    background 0.24s var(--ease),
    color 0.24s var(--ease),
    box-shadow 0.24s var(--ease);
}

.icon-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Se un'icona è un'immagine (es. raisin-icon.png) invece di un SVG */
.icon-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.icon-link.raisin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon-link.raisin img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}
.icon-link:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.icon-link.whatsapp:hover {
  background: var(--wa);
  color: #fff;
  border-color: var(--wa);
}

.icon-link.tripadvisor:hover {
  background: var(--trip);
  color: #103529;
  border-color: var(--trip);
}

.icon-link.instagram:hover {
  background: linear-gradient(135deg, #f9ce34, #ee2a7b, #6228d7);
  color: #fff;
  border-color: transparent;
}

.icon-link.raisin:hover {
  border-color: var(--raisin);
}

.social-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
}

/* ===== Hero ===== */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 152px 0 72px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(23, 26, 31, 0.9) 0%, rgba(23, 26, 31, 0.72) 38%, rgba(23, 26, 31, 0.28) 70%, rgba(23, 26, 31, 0.12) 100%);
  pointer-events: none;
}

.hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.78fr);
  align-items: center;
  gap: 64px;
}

.hero-copy {
  max-width: 600px;
}

.hero h1 {
  margin-top: 12px;
  font-size: clamp(3rem, 6.4vw, 5.6rem);
  line-height: 0.87;
  letter-spacing: -0.045em;
  font-weight: 600;
  text-wrap: balance;
}

.hero p {
  margin-top: 14px;
  max-width: 34ch;
  font-size: 1rem;
  color: var(--muted);
}

.hero-side {
  justify-self: end;
  width: min(100%, 460px);
  aspect-ratio: 4 / 5.2;
  overflow: hidden;
  border-radius: 220px 220px 18px 18px;
  position: relative;
}

.hero-side::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 34%;
  background: linear-gradient(to top, rgba(23, 26, 31, 0.18), transparent);
  pointer-events: none;
}

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

/* ===== Intro / atmosfera (home) ===== */

.intro-layout,
.atmosphere-layout,
.contact-wrap {
  max-width: 900px;
  margin: 0 auto;
}

.intro-copy-centered {
  text-align: center;
}

.lead {
  font-size: 1.02rem;
  color: var(--paper);
  max-width: 36ch;
  margin: 0 auto 16px;
}

.intro-copy p {
  color: var(--muted);
  margin-bottom: 16px;
  max-width: 62ch;
  margin-left: auto;
  margin-right: auto;
}

.simple-lines {
  max-width: 760px;
  margin: 0 auto;
}

.line-item {
  padding: 18px 0;
  border-top: 1px solid var(--line-soft);
  text-align: center;
}

.line-item:last-child {
  border-bottom: 1px solid var(--line-soft);
}

.line-item h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.85rem;
  line-height: 1;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--paper);
}

.line-item p {
  color: var(--muted);
  max-width: 46ch;
  font-size: 0.95rem;
  margin: 0 auto;
}

/* ===== Liste pulite (percorsi / pranzi) ===== */

.clean-list {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  gap: 0;
}

.clean-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: start;
  padding: 24px 0;
  border-top: 1px solid var(--line-soft);
}

.clean-row:last-child {
  border-bottom: 1px solid var(--line-soft);
}

.clean-row-main .tag {
  display: inline-block;
  font-size: 0.66rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.clean-row-main h3 {
  font-size: 2rem;
  line-height: 0.98;
  font-weight: 600;
  color: var(--paper);
}

.clean-row-main p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 58ch;
}

.clean-row-side {
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  line-height: 1;
  color: var(--paper);
  white-space: nowrap;
  padding-top: 22px;
}

.menus-cta {
  flex-direction: row;
  align-items: center;
  margin-top: 14px;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* ===== Contatti ===== */

.contacts-simple {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: 0;
}

.contact-line {
  padding: 22px 0;
  border-top: 1px solid var(--line-soft);
  text-align: center;
}

.contact-line:last-child {
  border-bottom: none;
}

.contact-kicker {
  display: inline-block;
  font-size: 0.66rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.contact-line p,
.contact-line a {
  color: var(--paper);
  font-size: 1rem;
}

.contact-line p + p {
  margin-top: 8px;
}

.contact-line a:hover {
  color: var(--accent);
}

.contact-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.hours-inline {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.hours-inline p {
  color: var(--muted);
}

.hours-inline strong {
  color: var(--paper);
}

/* ===== Prenotazioni ===== */

.booking-line .contact-kicker {
  display: block;
  text-align: center;
  margin-bottom: 12px;
}

.booking-box {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: nowrap;
}

.booking-call {
  height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--paper);
  transition:
    transform 0.24s var(--ease),
    border-color 0.24s var(--ease),
    background 0.24s var(--ease);
}

.booking-call:hover {
  transform: translateY(-2px);
  border-color: rgba(202, 161, 95, 0.42);
  background: rgba(255, 255, 255, 0.05);
}

.booking-call-label {
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper);
  line-height: 1;
}

.booking-box .icon-link.whatsapp {
  width: 46px;
  height: 46px;
  min-height: 46px;
  flex: 0 0 46px;
}

/* ===== Mappa (in pausa) ===== */

.map-section {
  padding-top: 90px;
}

.map-shell {
  width: min(100%, 980px);
  margin: 0 auto;
  aspect-ratio: 16 / 8.8;
  overflow: hidden;
  border-radius: 22px;
  background: var(--bg-3);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.16);
}

.map-shell iframe {
  width: 100%;
  height: 100%;
  display: block;
}

/* ===== Footer ===== */

.footer {
  background: var(--bg-2);
  padding: 30px 0 38px;
  border-top: 1px solid var(--line-soft);
  text-align: center;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  color: var(--muted-2);
  font-size: 0.76rem;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links a:hover {
  color: var(--paper);
}

.footer-simple {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.footer-simple p {
  color: var(--muted-2);
  font-size: 0.85rem;
}

/* ===== Mobile dock ===== */

.mobile-dock {
  display: none;
}

/* ===== Lightbox (ingrandimento foto galleria) ===== */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(10, 12, 15, 0.94);
  padding: 30px;
  cursor: zoom-out;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 6px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(238, 230, 216, 0.3);
  background: rgba(255, 255, 255, 0.06);
  color: var(--paper);
  font-size: 1.4rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid rgba(202, 161, 95, 0.8);
  outline-offset: 3px;
  border-radius: 8px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-h) + 16px);
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  .page-aura {
    display: none;
  }
}

@media (max-width: 1080px) {
  .hero-layout {
    grid-template-columns: 1fr;
  }

  .hero-side {
    justify-self: center;
    width: min(100%, 440px);
  }
}

@media (max-width: 900px) {
  .topbar-inner {
    justify-content: center;
  }
}

/* Sopra i 900px il nome deve stare esattamente al centro della barra,
   non solo "tra" i due gruppi laterali (che hanno larghezze diverse:
   3 pulsanti a sinistra, 3 icone a destra) — per questo qui la barra
   passa a 3 colonne fisse invece che allo spazio elastico di flexbox. */
@media (min-width: 901px) {
  .topbar-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
  }

  .top-actions-left {
    justify-self: start;
    flex-wrap: nowrap;
  }

  .brand {
    justify-self: center;
  }

  .top-actions-right {
    justify-self: end;
  }
}

/* ===== MENU PAGE (menu.html) ===== */

.intro {
  padding: 118px 0 34px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
  text-align: center;
}

.intro .eyebrow {
  font-size: 1.05rem;
  letter-spacing: 0.32em;
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 28px;
}

.intro-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.intro .lead {
  font-size: 1.08rem;
  color: var(--paper);
  max-width: 42ch;
  margin-top: 18px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* Sub-nav ancorata sotto la barra principale: pulsanti categoria + Apri PDF
   restano sempre raggiungibili mentre si scorre il menù */
.menu-subnav {
  position: sticky;
  top: var(--nav-h);
  z-index: 40;
  background: rgba(27, 33, 39, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}

.menu-subnav-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.jump {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.jump a {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.jump a:hover {
  border-color: var(--accent);
  color: var(--text);
}

.legend {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.legend h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.85rem;
  font-weight: 500;
  margin-bottom: 14px;
  text-align: center;
}

.legend-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 16px;
  font-size: 0.88rem;
  color: var(--paper);
  text-align: center;
}

.legend-grid span {
  display: flex;
  gap: 8px;
  align-items: baseline;
  justify-content: center;
}

.legend-grid b {
  color: var(--accent);
  min-width: 20px;
  display: inline-block;
}

.menu-block {
  padding: 56px 0;
  border-top: 1px solid var(--line);
}

.menu-block[id] {
  scroll-margin-top: calc(var(--nav-h-mobile, 210px) + var(--subnav-h, 130px) + 16px);
}

.menu-head .eyebrow,
.section-head .eyebrow {
  display: block;
  width: 100%;
  text-align: center;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.menu-head,
.section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 22px;
  text-align: center;
}

.menu-head p,
.section-head p {
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 42ch;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.grid-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}

.card {
  background: none;
  border: none;
  box-shadow: none;
  padding: 0;
  text-align: center;
}

.dish {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.dish:last-child {
  border-bottom: none;
}

.dish-name {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.02rem;
  line-height: 1.3;
  text-align: center;
}

.dish-desc {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.dish-price {
  flex-shrink: 0;
  font-family: "Cormorant Garamond", serif;
  color: var(--accent);
  font-size: 1.02rem;
  white-space: nowrap;
  text-align: center;
  align-self: center;
}

.dish-flavor {
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-family: "Cormorant Garamond", serif;
  font-size: 0.98rem;
  text-align: center;
}

.dish-flavor:last-of-type {
  border-bottom: none;
}

.category-note {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.84rem;
  font-style: italic;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.single-card {
  grid-column: 1 / -1;
}

.pdf-box {
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.pdf-box p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 14px;
}

.pdf-box .btn-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 980px) {
  .grid-two {
    grid-template-columns: 1fr;
  }
}

/* ===== Sezione Galleria (home) ===== */

.gallery-section {
  overflow: hidden;
}

.gallery-stage {
  position: relative;
  min-height: 1080px;
  margin-top: 16px;
}

.gallery-big-title {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 5;
  font-size: clamp(3.8rem, 9vw, 8rem);
  line-height: 0.82;
  letter-spacing: -0.05em;
  color: var(--paper);
  max-width: 8ch;
}

.gallery-photo {
  position: absolute;
  margin: 0;
  border: 10px solid #f2eee6;
  background: #f2eee6;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

.gallery-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
  transition: transform 0.4s var(--ease);
}

.gallery-photo:hover img {
  transform: scale(1.04);
}

/* posizioni desktop */
.photo-1 {
  top: 140px;
  left: 0;
  width: 20%;
  aspect-ratio: 0.72 / 1.08;
  z-index: 3;
}

.photo-2 {
  top: 245px;
  left: 18%;
  width: 58%;
  aspect-ratio: 1 / 1.05;
  z-index: 1;
}

.photo-3 {
  top: 115px;
  left: 45%;
  width: 22%;
  aspect-ratio: 1 / 1.08;
  z-index: 4;
}

.photo-4 {
  top: 215px;
  left: 75%;
  width: 22%;
  aspect-ratio: 1.5 / 1.5;
  z-index: 3;
}

.photo-5 {
  top: 650px;
  left: 0;
  width: 24%;
  aspect-ratio: 0.95 / 0.72;
  z-index: 2;
}

.photo-6 {
  top: 760px;
  left: 65%;
  width: 32%;
  aspect-ratio: 0.95 / 0.72;
  z-index: 2;
}

@media (max-width: 1100px) {
  .gallery-stage {
    min-height: 860px;
  }

  .photo-1 {
    top: 120px;
    width: 22%;
  }

  .photo-2 {
    top: 230px;
    left: 16%;
    width: 42%;
  }

  .photo-3 {
    top: 110px;
    left: 53%;
    width: 24%;
  }

  .photo-4 {
    top: 240px;
    width: 20%;
  }

  .photo-5 {
    top: 575px;
    width: 26%;
  }

  .photo-6 {
    top: 650px;
    width: 24%;
  }
}

@media (max-width: 720px) {
  .gallery-stage {
    min-height: 500px;
  }

  .gallery-big-title {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    max-width: none;
    font-size: clamp(3rem, 14vw, 4.6rem);
    width: 100%;
  }

  .gallery-photo {
    border-width: 8px;
  }

  /* posizioni telefono */
  .photo-1 {
    top: 95px;
    left: 6%;
    width: 23%;
    aspect-ratio: 1.08 / 1.08;
    z-index: 3;
  }

  .photo-2 {
    top: 150px;
    left: 18%;
    width: 66%;
    aspect-ratio: 1 / 0.72;
    z-index: 2;
  }

  .photo-3 {
    top: 105px;
    left: 45%;
    width: 22%;
    aspect-ratio: 1 / 0.92;
    z-index: 2;
  }

  .photo-4 {
    top: 122px;
    left: 78%;
    width: 22%;
    aspect-ratio: 1 / 1.5;
    z-index: 2;
  }

  .photo-5 {
    top: 300px;
    left: 6%;
    width: 36%;
    aspect-ratio: 1 / 0.72;
    z-index: 2;
  }

  .photo-6 {
    top: 310px;
    left: 65%;
    width: 28%;
    aspect-ratio: 1 / 0.72;
    z-index: 2;
  }
}

/* Desktop */
.pdf-mobile-fixed {
  display: none;
}

/* Mobile */
@media (max-width: 720px) {
  .pdf-desktop {
    display: none !important;
  }

  .pdf-mobile-fixed {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 14px;
    z-index: 999;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 999px;
    background: #1f2730;
    color: #f3ecdf;
    border: 1px solid rgba(243, 236, 223, 0.18);
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(0,0,0,.22);
  }
}

/* =====================================================
   TUTTO IL MOBILE IN UN UNICO BLOCCO
   ===================================================== */

@media (max-width: 720px) {
  .wrap {
    width: min(var(--max), calc(100% - 28px));
  }

  /* Altezza reale dell'header su mobile: logo + bottoni impilati
     è più alta di --nav-h (84px), quindi qui riserviamo lo spazio
     corretto e allineiamo gli scroll agli anchor di conseguenza */
  body {
    padding-top: var(--nav-h-mobile, 210px);
  }

  html {
    scroll-padding-top: calc(var(--nav-h-mobile, 210px) + 0px);
  }

  /* Mancava questa: senza di questa regola, gli anchor generici
     (#prenotazioni, #percorsi, #galleria, #contatti...) usavano ancora
     il valore fisso pensato per l'header desktop (108px), fermando lo
     scroll troppo presto su mobile e lasciando la sezione coperta
     dall'header fisso. Ora usa la stessa altezza misurata dal JS. */
  [id] {
    scroll-margin-top: calc(var(--nav-h-mobile, 210px) + 16px);
  }

  .section {
    padding: 82px 0;
  }

  /* --- Nav mobile: logo sopra, pulsanti sotto, icone nascoste --- */
  .topbar {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .topbar-inner {
    min-height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 0;
  }

  .brand {
    order: 1;
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .brand-text {
    align-items: center;
    text-align: center;
  }

  .brand-text strong {
    font-size: 1.05rem;
  }

  .brand-text span {
    font-size: 0.72rem;
    letter-spacing: 0.18em;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
    font-size: 1.2rem;
  }

  .top-actions,
  .top-actions-left,
  .top-actions-right {
    order: 2;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  /* Su mobile teniamo solo "Scopri i percorsi" e il link Raisin:
     la riga con le icone social (vuota, perché nascoste) va tolta
     per non lasciare uno spazio vuoto nella nav */
  .top-actions-right {
    display: none;
  }

  .raisin-home {
    margin-top: 0;
  }

  .raisin-link {
    top: 0;
  }

  .nav-cta-ghost {
    display: none;
  }

  .top-actions .icon-link,
  .top-actions-left .icon-link,
  .top-actions-right .icon-link {
    display: none;
  }

  /* --- Hero: subito visibile, niente spazio vuoto sopra --- */
  .hero {
    min-height: auto;
    padding: 20px 0 44px;
  }

  .hero h1 {
    font-size: clamp(2.75rem, 14vw, 4.4rem);
  }

  .hero-copy {
    text-align: center;
    margin: 0 auto;
  }

  .hero p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-side {
    width: 100%;
    border-radius: 180px 180px 16px 16px;
  }

  /* --- Percorsi / pranzi --- */
  .clean-row {
    grid-template-columns: 1fr;
    gap: 10px;
    text-align: center;
  }

  .clean-row-main p {
    margin-left: auto;
    margin-right: auto;
  }

  .clean-row-side {
    padding-top: 0;
  }

  /* --- Prenotazioni --- */
  .booking-box {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
  }

  .booking-call {
    height: 44px;
    padding: 0 16px;
  }

  .booking-call-label {
    font-size: 0.78rem;
  }

  .booking-box .icon-link.whatsapp {
    width: 44px;
    height: 44px;
    min-height: 44px;
    flex-basis: 44px;
  }

  /* --- Mappa --- */
  .map-shell {
    aspect-ratio: 16 / 11;
  }

  /* --- Footer home --- */
  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  /* --- Pagina men\u00f9 --- */
  .intro {
    padding-top: 152px;
  }

  .menu-subnav {
    top: var(--nav-h-mobile, 210px);
  }

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

  .menu-head .eyebrow,
  .section-head .eyebrow {
    font-size: 1.4rem;
  }

  /* --- Dock fisso in basso (solo mobile) --- */
  .mobile-dock {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 9999;
    display: flex;
    gap: 10px;
  }

  .mobile-dock-link {
    flex: 1;
    min-height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border-radius: 9999px;
    border: 1px solid rgba(238, 230, 216, 0.12);
    background: rgba(19, 23, 30, 0.96);
    color: var(--paper);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.8rem;
    font-weight: 800;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition:
      transform 0.24s var(--ease),
      background 0.24s var(--ease),
      border-color 0.24s var(--ease),
      box-shadow 0.24s var(--ease);
  }

  .mobile-dock-link:active,
  .mobile-dock-link:hover {
    transform: translateY(-1px);
    background: rgba(28, 34, 43, 0.98);
    border-color: rgba(202, 161, 95, 0.2);
  }

  .mobile-dock-link:last-child {
    background: #8d6a3b;
    border-color: #8d6a3b;
    color: #f8f2e8;
  }

  .mobile-dock-link:last-child:active,
  .mobile-dock-link:last-child:hover {
    background: #a37842;
    border-color: #a37842;
  }

  body {
    padding-bottom: 92px;
  }

}

@media (max-width: 480px) {
  .map-shell {
    aspect-ratio: 4 / 5;
    border-radius: 14px;
  }
}

.raisin-home {
  margin-top: 0;
  text-align: center;
  display: flex;
  align-items: center;
}

.raisin-link {
  margin-top: 0;
  min-height: 46px;
  position: relative;
  top: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0px 22px;
  line-height: 1;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--paper);
  transition:
    transform 0.24s var(--ease),
    border-color 0.24s var(--ease),
    background 0.24s var(--ease),
    box-shadow 0.24s var(--ease);
}

.raisin-link:hover {
  transform: translateY(-2px);
  border-color: var(--raisin);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
}

.raisin-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  overflow: hidden;
  flex: 0 0 34px;
  background: #f2eee6;
}

.raisin-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.raisin-text {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
/* ===== MENU PAGE - DESKTOP NAVBAR FIX ===== */
@media (min-width: 901px) {
  .menu-topbar .topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 20px;
  }

  .menu-topbar .brand {
    flex: 0 0 auto;
    justify-self: auto;
  }

  .menu-topbar .top-actions {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 10px;
    min-width: 0;
  }

  .menu-topbar .jump {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 10px;
    min-width: 0;
  }

  .menu-topbar .jump a,
  .menu-topbar .menu-link {
    flex: 0 0 auto;
    white-space: nowrap;
  }
}