:root {
  --ink: #33261a;
  --ink-soft: rgba(51,38,26,.64);
  --ink-faint: rgba(51,38,26,.42);
  --cream: #f7f1e6;
  --cream-deep: #efe4d2;
  --sand: #cbb191;
  --sand-deep: #a9834f;
  --line: rgba(51,38,26,.14);
  --display: 'Cormorant Garamond', serif;
  --body: 'Poppins', sans-serif;
  --radius: 20px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-weight: 300;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; letter-spacing: .01em; margin: 0; }
p { margin: 0; line-height: 1.7; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.sr-only:focus {
  position: fixed; top: 1rem; left: 1rem; width: auto; height: auto;
  padding: .8rem 1.2rem; background: var(--ink); color: #fff; z-index: 999; border-radius: 8px;
}

.eyebrow {
  display: inline-block;
  font-size: .72rem;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--sand-deep);
  font-weight: 500;
  margin-bottom: .9rem;
}

.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .9rem 1.7rem;
  border-radius: 999px;
  font-family: var(--body);
  font-size: .88rem;
  font-weight: 500;
  letter-spacing: .02em;
  transition: transform .25s ease, background .25s ease, color .25s ease, box-shadow .25s ease;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-accent { background: var(--sand-deep); color: #fff; box-shadow: 0 12px 26px -12px rgba(169,131,79,.6); }
.btn-accent:hover { transform: translateY(-2px); background: var(--ink); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn-sm { padding: .55rem 1.2rem; font-size: .78rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 6vw;
  background: transparent;
}
.site-header::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: rgba(247,241,230,.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transition: opacity .3s ease;
}
.site-header.is-scrolled::before { opacity: 1; }
.site-header__brand { display: flex; align-items: center; gap: .7rem; }
.site-header__brand img { height: 44px; width: 44px; object-fit: contain; }
.site-header__brand span { font-family: var(--display); font-size: 1.2rem; letter-spacing: .02em; }
.site-header__nav { display: flex; align-items: center; gap: 2rem; }
.site-header__nav a:not(.btn) {
  font-size: .9rem; color: var(--ink-soft); position: relative;
  transition: color .2s ease;
}
.site-header__nav a:not(.btn):hover { color: var(--ink); }

.menu-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  align-items: center; gap: .6rem; font-family: var(--body); font-size: .85rem; color: var(--ink);
}
.menu-toggle__icon { width: 22px; height: 15px; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }

@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; }
  .site-header__nav {
    position: fixed; inset: 4.2rem 0 0; top: 4.2rem;
    flex-direction: column; justify-content: flex-start; align-items: stretch;
    gap: 0; background: var(--cream);
    padding: 1rem 6vw 2rem;
    transform: translateY(-12px);
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .3s ease, transform .3s ease, visibility 0s linear .3s;
    border-top: 1px solid var(--line);
  }
  .site-header__nav a { padding: 1rem 0; border-bottom: 1px solid var(--line); }
  .site-header__nav .btn { margin-top: 1.2rem; justify-content: center; }
  body.nav-open .site-header__nav {
    transform: translateY(0); opacity: 1; visibility: visible; pointer-events: auto;
    transition: opacity .3s ease, transform .3s ease, visibility 0s linear 0s;
  }
}

/* Hero */
.hero {
  position: relative; min-height: 100svh; min-height: 100dvh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; text-align: center;
  background: radial-gradient(120% 100% at 50% 0%, var(--cream-deep) 0%, var(--cream) 55%, var(--sand) 140%);
}
.hero-linework {
  position: absolute; inset: 0; z-index: 0; opacity: .5;
  display: flex; align-items: center; justify-content: center;
}
.hero-linework svg { width: min(90vw, 720px); height: auto; }
.hero-inner { position: relative; z-index: 2; padding: 0 6vw; max-width: 720px; }
.hero-inner .eyebrow { color: var(--sand-deep); }
.hero-mark { height: 92px; width: 92px; object-fit: contain; margin: 0 auto 1.6rem; }
.hero-inner h1 { font-size: clamp(2.6rem, 7vw, 5rem); color: var(--ink); margin-bottom: 1.2rem; }
.hero-inner h1 em { font-style: italic; color: var(--sand-deep); }
.hero-lead { font-size: 1.1rem; color: var(--ink-soft); max-width: 34rem; margin: 0 auto 2.2rem; }
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }
.hero-scroll {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  font-size: .74rem; letter-spacing: 3px; text-transform: uppercase; color: var(--ink-faint);
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
}
.hero-scroll::after {
  content: ''; width: 1px; height: 34px; background: var(--ink-faint);
  animation: scrollLine 1.8s ease-in-out infinite;
}
@keyframes scrollLine { 0%,100% { transform: scaleY(1); opacity: .5; } 50% { transform: scaleY(.4); opacity: 1; } }

.hero-entrance { opacity: 0; transform: translateY(24px); animation: heroIn .9s cubic-bezier(.2,.8,.2,1) forwards; }
.hero-entrance:nth-child(1) { animation-delay: .05s; }
.hero-entrance:nth-child(2) { animation-delay: .18s; }
.hero-entrance:nth-child(3) { animation-delay: .32s; }
.hero-entrance:nth-child(4) { animation-delay: .46s; }
.hero-entrance:nth-child(5) { animation-delay: .58s; }
@keyframes heroIn { to { opacity: 1; transform: translateY(0); } }

/* Sections */
.section { padding: 7rem 0; }
.section-inner { max-width: 1180px; margin: 0 auto; padding: 0 6vw; }
.section--sand { background: var(--cream-deep); }
.section--ink { background: var(--ink); color: rgba(255,255,255,.92); }
.section--ink .eyebrow { color: var(--sand); }
.section--ink h2 { color: #fff; }

.sec-head { max-width: 640px; margin-bottom: 3.5rem; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-lead { color: var(--ink-soft); margin-top: 1rem; font-size: 1.02rem; }
.section--ink .sec-lead { color: rgba(255,255,255,.7); }
.sec-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }

[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* Photo mosaic */
.photo-mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 190px;
  gap: 1rem;
}
.pm-item { position: relative; overflow: hidden; border-radius: var(--radius); grid-row: span 1; margin: 0; }
.pm-item.pm-tall { grid-row: span 2; }
.pm-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.pm-item:hover img { transform: scale(1.08); }
.pm-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.6rem .9rem .8rem;
  background: linear-gradient(0deg, rgba(30,22,14,.7), transparent);
  color: #fff; font-size: .8rem; letter-spacing: .02em;
  opacity: 0; transform: translateY(6px);
  transition: opacity .3s ease, transform .3s ease;
}
.pm-item:hover figcaption { opacity: 1; transform: translateY(0); }

@media (max-width: 900px) {
  .photo-mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 210px; }
}

/* Split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.split-photo { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/5; }
.split-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.split-photo:hover img { transform: scale(1.06); }
.split-copy h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); margin: .3rem 0 1.2rem; }
.split-copy p { color: var(--ink-soft); font-size: 1.05rem; max-width: 30rem; }
.split-copy p + p { margin-top: 1rem; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 2rem; } }
.split.reverse .split-photo { order: 2; }
@media (max-width: 860px) { .split.reverse .split-photo { order: 0; } }

/* Servizi teaser cards */
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.service-card {
  padding: 2.2rem 1.6rem; border-radius: var(--radius);
  background: var(--cream); border: 1px solid var(--line);
  transition: transform .3s ease, box-shadow .3s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px -24px rgba(51,38,26,.35); }
.service-card i { font-size: 1.4rem; color: var(--sand-deep); margin-bottom: 1rem; display: block; }
.service-card h3 { font-size: 1.25rem; margin-bottom: .5rem; }
.service-card p { font-size: .9rem; color: var(--ink-soft); }
@media (max-width: 900px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .service-grid { grid-template-columns: 1fr; } }

/* Reviews */
.review-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 2.4rem; align-items: center; }
.review-photo { border-radius: var(--radius); overflow: hidden; }
.review-card {
  margin: 0; padding: 2.4rem 2rem; border-radius: var(--radius);
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
}
.review-card__stars { color: var(--sand); font-size: .85rem; margin-bottom: 1.1rem; letter-spacing: .2em; }
.review-card p { font-size: 1.05rem; color: rgba(255,255,255,.88); margin-bottom: 1.2rem; font-style: italic; }
.review-card cite { font-style: normal; font-size: .82rem; color: rgba(255,255,255,.5); letter-spacing: .02em; }
@media (max-width: 860px) { .review-grid { grid-template-columns: 1fr; } }

/* Dove siamo */
.dove-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.dove-grid h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); margin: .3rem 0 1.4rem; }
.dove-addr { display: flex; align-items: center; gap: .7rem; margin-bottom: .9rem; color: var(--ink-soft); font-size: 1.02rem; }
.dove-addr i { color: var(--sand-deep); }
.dove-addr a { text-decoration: underline; text-underline-offset: 3px; }
.dove-grid .hero-btns { margin-top: 1.8rem; justify-content: flex-start; }
.map-frame { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; border: 1px solid var(--line); }
.map-frame iframe { width: 100%; height: 100%; border: 0; }
@media (max-width: 860px) { .dove-grid { grid-template-columns: 1fr; gap: 2rem; } .dove-grid .hero-btns { justify-content: center; } }

/* Menu link band */
.menu-band {
  background: var(--sand-deep); color: #fff; text-align: center;
  padding: 5rem 6vw;
}
.menu-band h2 { color: #fff; font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-bottom: 1rem; }
.menu-band p { color: rgba(255,255,255,.85); max-width: 34rem; margin: 0 auto 2rem; }
.menu-band .btn-ghost { border-color: rgba(255,255,255,.5); color: #fff; }
.menu-band .btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.1); }

/* Footer */
.site-footer {
  background: var(--ink); color: rgba(255,255,255,.7);
  padding: 4rem 6vw 2.4rem; text-align: center;
}
.footer-logo { margin: 0 auto 1.4rem; height: 64px; width: 64px; object-fit: contain; }
.site-footer__social { display: flex; justify-content: center; gap: 1.6rem; margin-bottom: 1.4rem; font-size: .92rem; flex-wrap: wrap; }
.site-footer__social a:hover { color: #fff; }
.addr { font-size: .85rem; color: rgba(255,255,255,.45); margin-bottom: 1.4rem; }
.credit { font-size: .8rem; color: rgba(255,255,255,.35); }
.credit a { text-decoration: underline; text-underline-offset: 2px; }

/* Mobile book bar */
.mobile-book {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  background: var(--sand-deep); color: #fff;
  text-align: center; padding: 1rem; font-family: var(--body); font-weight: 500;
  letter-spacing: .02em;
}
@media (max-width: 640px) { .mobile-book { display: block; } .section { padding: 4.5rem 0; } }

body.page-leaving { animation: pageOut .35s ease forwards; }
@keyframes pageOut { to { opacity: 0; } }

/* ===== Menu / Servizi e Prezzi page ===== */
.page-header {
  padding: 9.5rem 6vw 3rem; text-align: center;
  background: var(--cream-deep);
}
.page-header .eyebrow { color: var(--sand-deep); }
.page-header h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin: .4rem 0 .8rem; }
.page-header p { color: var(--ink-soft); max-width: 34rem; margin: 0 auto; }

.menu-categories { display: flex; flex-direction: column; gap: 3.6rem; }
.menu-category__head { display: flex; align-items: center; gap: 1rem; margin-bottom: .4rem; flex-wrap: wrap; }
.menu-category__head i { color: var(--sand-deep); font-size: 1.1rem; }
.menu-category__head h2 { font-size: 1.7rem; }
.menu-category__line { flex: 1; height: 1px; background: var(--line); min-width: 2rem; }
@media (max-width: 480px) {
  .menu-category__head h2 { font-size: 1.35rem; }
  .menu-dish { flex-wrap: wrap; }
  .menu-dish__price { margin-left: auto; }
}
.menu-category__note { color: var(--ink-soft); font-size: .92rem; margin: .3rem 0 1.4rem; }

.menu-dish-list { display: grid; gap: .1rem; }
.menu-dish {
  display: flex; align-items: baseline; gap: 1rem;
  padding: 1.1rem 0; border-bottom: 1px solid var(--line);
}
.menu-dish__info { flex: 1; }
.menu-dish__info h4 { font-family: var(--body); font-weight: 500; font-size: 1.02rem; margin: 0 0 .2rem; }
.menu-dish__info p { font-size: .86rem; color: var(--ink-soft); }
.menu-dish__allergens { font-size: .76rem !important; color: var(--ink-faint) !important; margin-top: .2rem; }
.menu-dish__price { font-family: var(--display); font-size: 1.15rem; color: var(--sand-deep); white-space: nowrap; }

.menu-extra-info { display: flex; gap: 2rem; margin-top: 3rem; flex-wrap: wrap; color: var(--ink-soft); font-size: .9rem; }
.menu-review-links { margin-top: 1.2rem; font-size: .88rem; color: var(--ink-faint); }
.menu-review-links a { text-decoration: underline; text-underline-offset: 2px; color: var(--sand-deep); }

.book-band {
  text-align: center; padding: 6rem 6vw; background: var(--ink); color: #fff;
}
.book-band h2 { color: #fff; font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-bottom: .8rem; }
.book-band p { color: rgba(255,255,255,.7); margin-bottom: 2rem; }
.book-band .btn-ghost { border-color: rgba(255,255,255,.4); color: #fff; }
.book-band .btn-ghost:hover { border-color: #fff; }
