/* ============================================================
   TERRA MOSSA — sito ristorante / pizzeria — Alberobello
   ============================================================ */

:root {
  /* Palette: Notte (default) */
  --bg:        #14100C;
  --bg-soft:   #1C1612;
  --bg-elev:   #251D17;
  --line:      #2E241B;
  --text:      #F2E8DA;
  --text-dim:  #B8A88F;
  --text-mut:  #7D6E59;
  --sand:      #D4B996;   /* logo */
  --ember:     #C8895A;   /* warm copper */
  --burn:      #8B3A1F;   /* fuoco */
  --terra:     #B85A3C;   /* rosso terra — terracotta accent */

  /* Type */
  --f-display: "Italiana", "Cormorant Garamond", "Playfair Display", serif;
  --f-head:    "Cormorant Garamond", "Playfair Display", serif;
  --f-body:    "Manrope", system-ui, sans-serif;
  --f-mono:    "JetBrains Mono", ui-monospace, monospace;

  /* Spacing */
  --pad-x: clamp(20px, 5vw, 80px);
  --maxw: 1440px;
}

/* Palette variants */
[data-palette="brace"] {
  --bg: #1A1009; --bg-soft: #22150D; --bg-elev: #2C1B11;
  --line: #3A2415; --text: #F5E4CE; --text-dim: #C5A789; --text-mut: #8A6A4C;
  --sand: #E5B889; --ember: #E08A4C; --burn: #A23717;
  --terra: #CB6240;
}
[data-palette="cenere"] {
  --bg: #0F0F0E; --bg-soft: #161614; --bg-elev: #1E1D1B;
  --line: #2A2926; --text: #ECEAE4; --text-dim: #ADA89A; --text-mut: #6F6A5C;
  --sand: #C9B79A; --ember: #B89472; --burn: #6E3B22;
  --terra: #9F5236;
}

/* ============================================================
   Reset + base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-weight: 400;
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { width: 100%;
  height: 100%;
  object-fit: fill; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

::selection { background: var(--ember); color: var(--bg); }

/* Subtle film grain */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 200;
  opacity: .06;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='1'/></svg>");
}

/* ============================================================
   Typography
   ============================================================ */
h1, h2, h3, h4 {
  font-family: var(--f-head);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.05;
  margin: 0;
  text-wrap: balance;
}
.display { font-family: var(--f-display); font-weight: 400; letter-spacing: 0.005em; }

.eyebrow {
  font-family: var(--f-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--sand);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: var(--sand);
  display: inline-block;
  position: relative;
}
.eyebrow::after {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--terra);
  display: inline-block;
  margin-left: -8px;
  box-shadow: 0 0 8px rgba(184, 90, 60, 0.5);
}
.eyebrow.center::after {
  content: "";
  width: 28px; height: 1px;
  background: var(--sand);
  display: inline-block;
  margin-left: 0;
  border-radius: 0;
  box-shadow: none;
}

p { margin: 0; text-wrap: pretty; }

/* ============================================================
   Layout container
   ============================================================ */
.shell {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}
section { position: relative; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background .4s ease, border-color .4s ease, backdrop-filter .4s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(20, 16, 12, 0.78);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--pad-x);
  gap: 24px;
}
.nav__logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--f-display);
  font-size: 22px;
  letter-spacing: 0.04em;
  color: var(--sand);
}
.nav__logo svg { width: 28px; height: 28px; }
.nav__links {
  display: flex; align-items: center;
  gap: 34px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.nav__links a {
  position: relative;
  color: var(--text-dim);
  transition: color .25s;
  padding: 6px 0;
}
.nav__links a:hover { color: var(--text); }
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--sand);
  transition: right .35s cubic-bezier(.6,.05,.2,1);
}
.nav__links a:hover::after { right: 0; }

.nav__right {
  display: flex; align-items: center; gap: 18px;
}
.lang {
  display: flex; align-items: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--text-mut);
}
.lang button {
  padding: 6px 8px;
  color: var(--text-mut);
  transition: color .25s;
}
.lang button.is-active { color: var(--sand); }
.lang button:hover { color: var(--text); }
.lang__sep { opacity: .4; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 22px;
  border-radius: 999px;
  font-family: var(--f-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: all .3s cubic-bezier(.6,.05,.2,1);
  white-space: nowrap;
  cursor: pointer;
}
.btn--primary {
  background: var(--sand);
  color: #1A1208;
}
.btn--primary:hover {
  background: var(--ember);
  color: var(--bg);
  transform: translateY(-1px);
}
.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}
.btn--ghost:hover {
  border-color: var(--sand);
  color: var(--sand);
}
.btn--accent {
  background: var(--terra);
  color: #fff;
  border: 1px solid var(--terra);
  box-shadow: 0 0 0 0 rgba(184, 90, 60, 0);
}
.btn--accent:hover {
  background: transparent;
  color: var(--terra);
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(184, 90, 60, 0.35);
}
.btn .arrow {
  width: 14px; height: 14px;
  transition: transform .3s;
}
.btn:hover .arrow { transform: translateX(3px); }

.mobile-toggle {
  display: none;
  width: 40px; height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: border-color .25s;
}
.mobile-toggle span {
  display: block;
  width: 18px; height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.mobile-toggle:hover { border-color: var(--sand); }
.nav.is-open .mobile-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav.is-open .mobile-toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .mobile-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding-bottom: clamp(60px, 10vh, 120px);
  padding-top: 120px;
  overflow: hidden;
  isolation: isolate;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 45%;
  transform: scale(1.08);
  will-change: transform;
  filter: contrast(1.05) saturate(0.85) brightness(0.78);
}
.hero__bg::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(20,16,12,0.55) 0%, rgba(20,16,12,0.15) 30%, rgba(20,16,12,0.85) 90%, var(--bg) 100%),
    radial-gradient(80% 60% at 20% 100%, rgba(184, 90, 60, 0.16), transparent 70%);
}

.hero__inner {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  align-items: end;
}
.hero__claim {
  max-width: 920px;
}
.hero h1 {
  font-family: var(--f-display);
  font-size: clamp(56px, 11vw, 180px);
  line-height: 0.92;
  letter-spacing: -0.015em;
  margin-top: 22px;
  color: var(--text);
}
.hero h1 .accent {
  font-style: italic;
  color: var(--sand);
  font-family: var(--f-head);
  font-weight: 400;
}
.hero__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 18px;
  text-align: right;
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.hero__meta .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--terra);
  display: inline-block;
  margin-right: 8px;
  box-shadow: 0 0 12px var(--terra);
  animation: pulse 2.6s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.hero__scroll {
  position: absolute;
  left: var(--pad-x);
  bottom: 32px;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-mut);
  display: flex; align-items: center; gap: 10px;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}
.hero__scroll::after {
  content: "";
  width: 1px; height: 60px;
  background: linear-gradient(180deg, var(--sand), transparent);
  animation: scrollLine 2s infinite;
}
@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* Marquee badges in hero */
.hero__badges {
  position: absolute;
  bottom: 14px; right: var(--pad-x);
  display: flex; gap: 24px;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-mut);
}
.hero__badges span { display: flex; align-items: center; gap: 8px; }
.hero__badges span::before {
  content: "✶"; color: var(--terra); font-size: 8px;
}

/* ============================================================
   MARQUEE strip
   ============================================================ */
.marquee {
  border-block: 1px solid var(--line);
  background: var(--bg-soft);
  padding: 22px 0;
  overflow: hidden;
  white-space: nowrap;
}
.marquee__track {
  display: inline-flex;
  animation: marquee 38s linear infinite;
  font-family: var(--f-display);
  font-size: clamp(22px, 2.8vw, 38px);
  color: var(--text-dim);
}
.marquee__track > span {
  display: inline-flex; align-items: center;
}
.marquee__track > span::after {
  content: "✶";
  color: var(--terra);
  font-size: 18px;
  margin-left: 60px;
  margin-right: 60px;
}
.marquee__track .em { color: var(--sand); font-style: italic; margin-left: 0.2em;}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   FILOSOFIA — big claim section
   ============================================================ */
.philo {
  padding: clamp(80px, 14vh, 180px) 0;
  position: relative;
}
.philo__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}
.philo__label {
  position: sticky;
  top: 120px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.philo__num {
  font-family: var(--f-display);
  font-size: 14px;
  color: var(--terra);
  letter-spacing: 0.3em;
}
.philo__title {
  font-family: var(--f-display);
  font-size: clamp(40px, 5.5vw, 80px);
  line-height: 1;
  color: var(--text);
}
.philo__title em {
  color: var(--sand);
  font-family: var(--f-head);
  font-weight: 400;
}
.philo__body {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.philo__lead {
  font-family: var(--f-head);
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 400;
  line-height: 1.35;
  color: var(--text);
  letter-spacing: -0.005em;
}
.philo__lead .ember { color: var(--ember); font-style: italic; }
.philo__text {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-dim);
  max-width: 56ch;
}
.philo__pillars {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.pillar__num {
  font-family: var(--f-display);
  font-size: 36px;
  color: var(--terra);
  line-height: 1;
}
.pillar__lbl {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-dim);
  margin-top: 8px;
}
.pillar__txt {
  font-size: 13px;
  color: var(--text-mut);
  margin-top: 6px;
  line-height: 1.5;
}

/* ============================================================
   MENU
   ============================================================ */
.menu {
  /* Light cream scope — flips palette tokens just for this section */
  --bg-soft: #EFE3CE;
  --text:    #1F1810;
  --text-dim:#5C4A30;
  --text-mut:#8E7651;
  --line:    #DDC9A8;
  --sand:    #8B6A3A;

  padding: clamp(80px, 14vh, 160px) 0;
  background: var(--bg-soft);
  border-block: 1px solid var(--line);
  color: var(--text);
}
.menu .dish__price,
.menu .menu__title em { color: var(--sand); }
.menu .menu__note { color: var(--text-mut); }
.menu .menu__tab.is-active { color: var(--terra); }
.menu .menu__tab.is-active::after { background: var(--terra); }
.menu__head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 40px;
  margin-bottom: 64px;
  flex-wrap: wrap;
}
.menu__title {
  font-family: var(--f-display);
  font-size: clamp(48px, 7vw, 110px);
  line-height: 0.95;
}
.menu__title em {
  color: var(--sand);
  font-family: var(--f-head);
  font-weight: 400;
}
.menu__sub {
  max-width: 36ch;
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.6;
}

.menu__tabs {
  display: flex;
  gap: 2px;
  margin-bottom: 48px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}
.menu__tabs::-webkit-scrollbar { display: none; }
.menu__tab {
  padding: 18px 24px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-mut);
  position: relative;
  transition: color .3s;
  white-space: nowrap;
}
.menu__tab:hover { color: var(--text-dim); }
.menu__tab.is-active { color: var(--sand); }
.menu__tab.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0px;
  height: 1px;
  background: var(--sand);
}
.menu__tab .count {
  font-family: var(--f-display);
  font-size: 10px;
  color: var(--terra);
  margin-left: 4px;
  vertical-align: super;
}

.menu__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
}
.dish {
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px 32px;
  align-items: start;
  cursor: default;
  /*transition: padding .35s;*/
}
.dish:nth-child(2n) { padding-left: clamp(0px, 4vw, 48px); }
.dish:nth-child(2n-1) { padding-right: clamp(0px, 4vw, 48px); border-right: 1px solid var(--line); }
/*.dish:hover {
  padding-left: clamp(8px, 4.5vw, 56px);
}
.dish:nth-child(2n):hover { padding-left: clamp(8px, 4.5vw, 56px); }
.dish:nth-child(2n-1):hover { padding-left: clamp(8px, 4.5vw, 56px); padding-right: clamp(0px, 4vw, 48px); }*/

.dish__name {
  font-family: var(--f-head);
  font-size: 22px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.005em;
}
.dish__desc {
  font-size: 13px;
  color: var(--text-mut);
  margin-top: 6px;
  line-height: 1.5;
  max-width: 42ch;
}
.dish__price {
  font-family: var(--f-display);
  font-size: 20px;
  color: var(--sand);
  white-space: nowrap;
}
.dish__tags {
  margin-top: 10px;
  display: flex; gap: 10px;
}
.dish__tag {
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  border: 1px solid var(--line);
  padding: 4px 8px;
  border-radius: 999px;
}
.dish__tag:first-child {
  /* highlight the leading tag (e.g. Signature) with a terra stamp */
  background: var(--terra);
  color: #1A0A05;
  border-color: var(--terra);
  font-weight: 600;
}

.menu__foot {
  margin-top: 48px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 20px; flex-wrap: wrap;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.menu__note {
  font-size: 13px;
  color: var(--text-mut);
  font-style: italic;
}

/* ============================================================
   GALLERIA — asymmetric grid with arched frames
   ============================================================ */
.gallery {
  padding: clamp(80px, 14vh, 180px) 0;
}
.gallery__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 60px;
}
.gallery__title {
  font-family: var(--f-display);
  font-size: clamp(48px, 7vw, 110px);
  line-height: 0.95;
}
.gallery__title em { color: var(--sand); font-family: var(--f-head); }

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 80px;
  gap: 16px;
}
.tile {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
}
.tile img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(.2,.7,.2,1), filter .6s;
  filter: brightness(0.88) saturate(0.95);
}
.tile:hover img { transform: scale(1.06); filter: brightness(1) saturate(1.05); }

.tile__cap {
  position: absolute;
  left: 18px; bottom: 16px;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text);
  text-shadow: 0 2px 12px rgba(0,0,0,0.7);
  z-index: 2;
}
.tile__cap .num {
  font-family: var(--f-display);
  font-size: 24px;
  color: var(--terra);
  letter-spacing: 0;
  margin-right: 10px;
  vertical-align: -3px;
}
.tile::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(20,16,12,0.85));
  z-index: 1;
  pointer-events: none;
}

/* arched tile (the trulli/door echo) */
.tile.arched {
  border-radius: 50% 50% 6px 6px / 30% 30% 6px 6px;
}

.tile.t-1 { grid-column: 1 / 6; grid-row: 1 / 6; }
.tile.t-2 { grid-column: 6 / 10; grid-row: 1 / 4; }
.tile.t-3 { grid-column: 10 / 13; grid-row: 1 / 5; }
.tile.t-4 { grid-column: 6 / 10; grid-row: 4 / 6; }
.tile.t-5 { grid-column: 10 / 13; grid-row: 5 / 8; }
.tile.t-6 { grid-column: 1 / 5; grid-row: 6 / 9; }
.tile.t-7 { grid-column: 5 / 10; grid-row: 6 / 9; }

/* food placeholder card */
.tile--food {
  background:
    radial-gradient(120% 80% at 30% 30%, rgba(200, 137, 90, 0.22), transparent 60%),
    radial-gradient(80% 60% at 80% 80%, rgba(184, 90, 60, 0.42), transparent 70%),
    linear-gradient(135deg, #2C1612, #14100C);
  display: flex;
  align-items: center;
  justify-content: center;
  
}
.tile--food .food-mark {
  font-family: var(--f-display);
  font-size: 14px;
  color: var(--sand);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-align: center;
  opacity: 0.85;
}
.tile--food .food-mark span {
  display: block;
  font-size: 38px;
  letter-spacing: 0.02em;
  color: var(--text);
  text-transform: none;
  margin-top: 6px;
  font-style: italic;
}
.tile--food .food-mark::before {
  content: "✶";
  display: block;
  color: var(--terra);
  margin-bottom: 14px;
  font-size: 18px;
}

/* ============================================================
   RECENSIONI
   ============================================================ */
.reviews {
  padding: clamp(80px, 14vh, 160px) 0;
  background: var(--bg-soft);
  border-block: 1px solid var(--line);
  overflow: hidden;
}
.reviews__head {
  display: flex; flex-direction: column; align-items: center; gap: 20px;
  text-align: center;
  margin-bottom: 60px;
}
.reviews__title {
  font-family: var(--f-display);
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1.05;
}
.reviews__title em { color: var(--sand); font-family: var(--f-head); }
.reviews__stars {
  display: flex; gap: 6px;
  color: var(--terra);
  font-size: 18px;
}
.reviews__sub {
  color: var(--text-dim);
  font-size: 14px;
  letter-spacing: 0.04em;
}

.reviews__viewport {
  position: relative;
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.reviews__row {
  display: flex;
  width: max-content;
  animation: reviewScroll 60s linear infinite;
}
.reviews__track {
  display: flex;
  gap: 20px;
  padding-right: 20px; /* keeps gap between tracks consistent with inter-card gap */
  flex: 0 0 auto;
}
.reviews:hover .reviews__row { animation-play-state: paused; }
@keyframes reviewScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.review {
  flex: 0 0 380px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color .3s, transform .3s;
}
.review:hover { border-color: var(--sand); transform: translateY(-4px); }
.review__quote {
  font-family: var(--f-display);
  font-size: 48px;
  color: var(--terra);
  line-height: 0.6;
  height: 18px;
}
.review__text {
  font-family: var(--f-head);
  font-size: 18px;
  line-height: 1.5;
  color: var(--text);
  font-weight: 400;
  min-height: 200px;
}
.review__by {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}
.review__name {
  color: var(--sand);
  font-weight: 500;
  letter-spacing: 0.04em;
}
.review__source {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-mut);
}

/* ============================================================
   CONTATTI
   ============================================================ */
.contact {
  padding: clamp(80px, 14vh, 180px) 0;
}
.contact__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}
.contact__left h2 {
  font-family: var(--f-display);
  font-size: clamp(48px, 7vw, 110px);
  line-height: 0.95;
}
.contact__left h2 em { color: var(--sand); font-family: var(--f-head); }
.contact__lead {
  margin-top: 28px;
  font-family: var(--f-head);
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.4;
  color: var(--text);
  max-width: 22ch;
}
.contact__lead .ember { color: var(--ember); font-style: italic; }

.contact__ctas {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  align-items: stretch;
}
.contact__ctas .btn {
  flex: 1 1 0;
  min-width: 240px;
  justify-content: center;
  padding: 18px 28px;
}

.contact__card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: clamp(28px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.info {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 12px 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.info:last-child { border-bottom: 0; padding-bottom: 0; }
.info__lbl {
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-mut);
}
.info__val {
  font-family: var(--f-head);
  font-size: 18px;
  color: var(--text);
  line-height: 1.4;
}
.info__val a { color: var(--text); border-bottom: 1px solid var(--line); transition: color .25s, border-color .25s; }
.info__val a:hover { color: var(--sand); border-color: var(--sand); }
.info__val .day {
  display: flex; justify-content: space-between;
  font-family: var(--f-body);
  font-size: 14px;
  padding: 4px 0;
  color: var(--text-dim);
}
.info__val .day.is-closed { color: var(--text-mut); }
.info__val .day.is-today { color: var(--sand); }
.info__val .day.is-today::before {
  content: "● ";
  color: var(--terra);
}

/* ============================================================
   FOOTER
   ============================================================ */
.foot {
  background: #0C0907;
  border-top: 1px solid var(--line);
  padding: 60px 0 32px;
}
.foot__main {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line);
}
.foot__brand {
  font-family: var(--f-display);
  font-size: 36px;
  color: var(--sand);
  letter-spacing: 0.04em;
}
.foot__tag {
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-mut);
  margin-top: 8px;
}
.foot h4 {
  font-family: var(--f-body);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--sand);
  font-weight: 600;
  margin-bottom: 16px;
}
.foot ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.foot ul a {
  color: var(--text-dim);
  font-size: 14px;
  transition: color .25s;
}
.foot ul a:hover { color: var(--sand); }
.foot__bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 28px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-mut);
}

/* ============================================================
   MODAL + FORM
   ============================================================ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal.is-open { display: flex; animation: modalFadeIn .3s ease; }
@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(8, 6, 4, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.modal__panel {
  position: relative;
  width: 100%;
  max-width: 600px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: clamp(28px, 4vw, 48px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  animation: modalSlideIn .4s cubic-bezier(.2,.7,.2,1);
}
@keyframes modalSlideIn {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.modal__close {
  position: absolute;
  top: 18px; right: 18px;
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text-dim);
  transition: color .25s, border-color .25s, transform .25s;
  z-index: 2;
}
.modal__close:hover {
  color: var(--terra);
  border-color: var(--terra);
  transform: rotate(90deg);
}

.modal__head {
  margin-bottom: 28px;
  padding-right: 40px;
}
.modal__head h3 {
  font-family: var(--f-display);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.05;
  margin-top: 14px;
  color: var(--text);
}
.modal__head h3 em {
  color: var(--sand);
  font-family: var(--f-head);
  font-weight: 400;
}
.modal__sub {
  margin-top: 14px;
  font-size: 14px;
  color: var(--text-mut);
  line-height: 1.55;
}

/* Form */
.form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form__row { display: block; }
.form__row--two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}
.field__lbl {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-mut);
  font-weight: 600;
}
.field__lbl em {
  color: var(--terra);
  font-style: normal;
  margin-left: 2px;
}
.field input,
.field select,
.field textarea {
  font: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px 14px;
  font-size: 15px;
  transition: border-color .2s, background .2s;
  width: 100%;
  font-family: var(--f-body);
}
.field textarea { resize: vertical; min-height: 110px; font-family: var(--f-body); }
.field select { appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M3 6 L 8 11 L 13 6' stroke='%23B8A88F' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--text-mut); opacity: .7; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--sand);
  background: var(--bg-elev);
}
.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea {
  border-color: var(--terra);
}
.field__err {
  font-size: 12px;
  color: var(--terra);
  min-height: 0;
  line-height: 1.3;
  display: none;
}
.field.is-invalid .field__err { display: block; }

.field--check {
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--text-dim);
  flex-wrap: wrap;
}
.field--check input {
  width: 16px; height: 16px;
  margin-top: 2px;
  accent-color: var(--terra);
  flex: 0 0 16px;
}
.field--check a {
  color: var(--sand);
  border-bottom: 1px solid var(--line);
}
.field--check a:hover { border-color: var(--sand); }
.field--check em { color: var(--terra); font-style: normal; }
.field--check .field__err { width: 100%; margin-left: 26px; }

.form__honey {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  opacity: 0;
}

.form__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 4px;
  flex-wrap: wrap;
}
.form__note {
  font-size: 11px;
  color: var(--text-mut);
  letter-spacing: 0.04em;
}
.form__note em { color: var(--terra); font-style: normal; }

#formSubmit { position: relative; }
.form__spinner {
  position: absolute;
  left: 50%; top: 50%;
  width: 16px; height: 16px;
  margin: -8px 0 0 -8px;
  border: 1.5px solid rgba(0,0,0,0.2);
  border-top-color: #1A1208;
  border-radius: 50%;
  opacity: 0;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
#formSubmit.is-loading .form__label,
#formSubmit.is-loading .arrow { opacity: 0; }
#formSubmit.is-loading .form__spinner { opacity: 1; }
#formSubmit:disabled { cursor: wait; }

.form__error {
  display: none;
  padding: 12px 14px;
  background: rgba(184, 90, 60, 0.1);
  border: 1px solid var(--terra);
  border-radius: 6px;
  font-size: 13px;
  color: var(--terra);
}
.form__error.is-visible { display: block; }

/* Success state */
.form__success {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  padding: 20px 0;
}
.modal.is-success .form { display: none; }
.modal.is-success .form__success { display: flex; }
.modal.is-success .modal__head { display: none; }

.form__success-mark { color: var(--sand); }
.form__success-mark .form__check-path {
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  animation: drawCheck .6s .15s cubic-bezier(.4,0,.2,1) forwards;
}
@keyframes drawCheck {
  to { stroke-dashoffset: 0; }
}
.form__success h4 {
  font-family: var(--f-display);
  font-size: 32px;
  color: var(--sand);
}
.form__success p {
  color: var(--text-dim);
  font-size: 15px;
  max-width: 38ch;
}
.form__success .btn { margin-top: 8px; }

/* Lock scroll when modal open */
body.is-modal-open { overflow: hidden; }

@media (max-width: 560px) {
  .modal { padding: 12px; }
  .modal__panel { padding: 24px 20px; max-height: calc(100vh - 24px); }
  .form__row--two { grid-template-columns: 1fr; }
  .modal__head h3 { font-size: 28px; }
}
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 960px) {
  .nav__inner { padding: 14px var(--pad-x); }
  .nav__logo { font-size: 18px; }
  .nav__logo svg { width: 24px; height: 24px; }
  .nav__links {
    position: fixed;
    top: 70px; left: 0; right: 0;
    background: var(--bg);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    gap: 0;
    padding: 8px 0;
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: transform .35s cubic-bezier(.6,.05,.2,1), opacity .25s;
    z-index: 99;
  }
  .nav__links a {
    padding: 18px var(--pad-x);
    font-size: 14px;
    letter-spacing: 0.18em;
    color: var(--text);
    border-bottom: 1px solid var(--line);
    width: 100%;
  }
  .nav__links a:last-child { border-bottom: 0; }
  .nav__links a::after { display: none; }
  .nav.is-open .nav__links {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav__right .btn { display: none; }
  .mobile-toggle { display: flex; }
  .nav__right { gap: 12px; }

  .philo__grid { grid-template-columns: 1fr; }
  .philo__label { position: static; }
  .philo__pillars { grid-template-columns: 1fr; gap: 18px; }
  .menu__grid { grid-template-columns: 1fr; }
  .dish:nth-child(n) { padding-left: 0; padding-right: 0; border-right: 0; }
  .dish:nth-child(n):hover { padding-left: 12px; padding-right: 0; }
  .contact__grid { grid-template-columns: 1fr; }
  .foot__main { grid-template-columns: 1fr 1fr; gap: 32px; }
  .gallery__grid {
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: 70px;
  }
  .tile.t-1 { grid-column: 1 / 7; grid-row: 1 / 5; }
  .tile.t-2 { grid-column: 1 / 4; grid-row: 5 / 8; }
  .tile.t-3 { grid-column: 4 / 7; grid-row: 5 / 8; }
  .tile.t-4 { grid-column: 1 / 7; grid-row: 8 / 11; }
  .tile.t-5 { grid-column: 1 / 4; grid-row: 11 / 14; }
  .tile.t-6 { grid-column: 4 / 7; grid-row: 11 / 14; }
  .tile.t-7 { grid-column: 1 / 7; grid-row: 14 / 17; }
  .hero__scroll { display: none; }
  .hero__badges { display: none; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__meta { align-items: flex-start; text-align: left; }
  .hero h1 { font-size: clamp(48px, 13vw, 96px); }

  .menu__head, .gallery__head { flex-direction: column; align-items: flex-start; }
  .reviews__head { padding-inline: var(--pad-x); }
  .review { flex: 0 0 280px; padding: 22px; }
  .review__text { font-size: 16px; min-height: 250px; }
}
@media (max-width: 560px) {
  .foot__main { grid-template-columns: 1fr; }
  .foot__bottom { flex-direction: column; gap: 12px; align-items: flex-start; }
}

.not_found{
  height: 90vh;
  background-color: var(--bg-elev);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: var(--sand);
}

.not_found h2{
  font-size: 80px !important;
  margin: 30px;
  text-align: center;
}

/* ============================================================
   LIGHTBOX — galleria (immagini cliccabili)
   ============================================================ */
.tile.is-zoomable { cursor: zoom-in; }
.tile.is-zoomable:focus-visible {
  outline: 2px solid var(--terra);
  outline-offset: 3px;
}
/* subtle "expand" affordance on hover of a clickable photo tile */
.tile.is-zoomable::before {
  content: "";
  position: absolute;
  top: 16px; right: 16px;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(20, 16, 12, 0.5) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F2E8DA' stroke-width='1.6' stroke-linecap='round'><path d='M4 9 V4 H9 M20 9 V4 H15 M4 15 V20 H9 M20 15 V20 H15'/></svg>") center / 16px no-repeat;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transform: scale(0.8);
  transition: opacity .25s, transform .25s;
  z-index: 3;
  pointer-events: none;
}
.tile.is-zoomable:hover::before,
.tile.is-zoomable:focus-visible::before { opacity: 1; transform: scale(1); }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 56px);
}
.lightbox.is-open { display: flex; animation: modalFadeIn .3s ease; }
.lightbox__backdrop {
  position: absolute; inset: 0;
  background: rgba(8, 6, 4, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.lightbox__figure {
  position: relative;
  z-index: 1;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  max-width: min(1100px, 92vw);
  animation: modalSlideIn .4s cubic-bezier(.2,.7,.2,1);
}
.lightbox__img {
  display: block;
  max-width: 100%;
  max-height: 76vh;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
  background: var(--bg-soft);
}
.lightbox__cap {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-family: var(--f-display);
  color: var(--text-dim);
}
.lightbox__num { color: var(--terra); font-size: 20px; }
.lightbox__label { font-size: 22px; letter-spacing: 0.02em; }
.lightbox__count {
  font-family: var(--f-body);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-mut);
  align-self: center;
}
.lightbox__close,
.lightbox__nav {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(242, 232, 218, 0.28);
  border-radius: 50%;
  color: var(--text);
  background: rgba(20, 16, 12, 0.45);
  transition: transform .25s, border-color .25s, background .25s, color .25s;
}
.lightbox__close svg, .lightbox__nav svg { width: 22px; height: 22px; }
.lightbox__close {
  top: clamp(14px, 3vw, 28px);
  right: clamp(14px, 3vw, 28px);
  width: 48px; height: 48px;
}
.lightbox__close:hover {
  transform: rotate(90deg);
  border-color: var(--terra);
  background: var(--terra);
  color: #fff;
}
.lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
  width: 56px; height: 56px;
}
.lightbox__nav:hover {
  border-color: var(--terra);
  background: var(--terra);
  color: #fff;
}
.lightbox__nav--prev { left: clamp(10px, 3vw, 36px); }
.lightbox__nav--next { right: clamp(10px, 3vw, 36px); }
@media (max-width: 600px) {
  .lightbox__nav { width: 44px; height: 44px; }
  .lightbox__nav--prev { left: 8px; }
  .lightbox__nav--next { right: 8px; }
  .lightbox__label { font-size: 18px; }
}
