/* ============================================================
   Da Pasqualino & Cinzia — stylesheet
   Editorial dark · paper · brass — restaurant elegance
   ============================================================ */

:root {
  /* palette — warm dark + paper + brass */
  --bg:        #0E0D0A;
  --bg-2:      #15130E;
  --bg-soft:   #1B1812;
  --paper:     #F2ECDD;
  --paper-2:   #ECE2C9;
  --paper-mute: rgba(242, 236, 221, 0.62);
  --paper-faint: rgba(242, 236, 221, 0.32);
  --line:      rgba(242, 236, 221, 0.14);
  --line-2:    rgba(242, 236, 221, 0.26);

  --gold:      #C9A35E;
  --gold-hi:   #E0B976;
  --gold-d:    #8B6E2C;
  --wine:      #5F1F1A;

  /* on paper */
  --ink:       #181612;
  --ink-soft:  #3E382C;
  --ink-mute:  #6B6450;
  --line-on-paper: rgba(24, 22, 18, 0.14);

  /* type */
  --serif: 'Cormorant Garamond', 'Fraunces', Georgia, serif;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

  /* layout */
  --max:     1320px;
  --pad-x:   clamp(1.25rem, 4vw, 3.5rem);
  --pad-y:   clamp(5rem, 9vw, 9rem);
  --radius:  4px;

  /* type scale */
  --t-eyebrow: 0.74rem;
  --t-body:    1.05rem;
  --t-lede:    clamp(1.1rem, .9vw + .9rem, 1.45rem);
  --t-h2:      clamp(2.6rem, 5.5vw + .5rem, 5.6rem);
  --t-brand:   clamp(3.6rem, 11vw, 11.5rem);

  /* motion */
  --ease:    cubic-bezier(.2, .7, .2, 1);
  --ease-in: cubic-bezier(.55, 0, 1, .45);
}

/* RESET ======================================================== */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--bg);
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: var(--t-body);
  line-height: 1.62;
  color: var(--paper);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "ss02", "kern";
  overflow-x: clip;
}
img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
::selection { background: var(--gold); color: var(--bg); }

.skip {
  position: absolute; left: -9999px;
  background: var(--paper); color: var(--bg);
  padding: .5rem .75rem; z-index: 100;
}
.skip:focus { left: 1rem; top: 1rem; }


/* TYPE PRIMITIVES ============================================= */
.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: var(--t-eyebrow);
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--paper-mute);
  margin: 0 0 1.5rem;
}
.eyebrow--gold { color: var(--gold); }
.section--paper .eyebrow { color: var(--ink-mute); }

.display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--t-h2);
  line-height: 0.96;
  letter-spacing: -0.018em;
  margin: 0 0 1.5rem;
}
.display--lg { font-size: clamp(3rem, 6vw + .5rem, 6.5rem); }
.display em {
  font-style: italic;
  font-weight: 300;
  color: var(--gold);
}

.lead {
  font-family: var(--serif);
  font-size: var(--t-lede);
  line-height: 1.45;
  font-weight: 400;
  letter-spacing: -0.005em;
}

.prose p { margin: 0 0 1.1em; max-width: 38em; }
.prose p:last-of-type { margin-bottom: 0; }
.prose strong { font-weight: 500; }
.prose em { font-style: italic; color: var(--gold-d); }


/* ORNAMENT ==================================================== */
.ornament {
  display: flex;
  align-items: center;
  gap: .85rem;
  color: var(--gold);
  margin: 1.75rem 0;
  width: 100%;
  max-width: 240px;
}
.ornament--center {
  margin-inline: auto;
  justify-content: center;
}
.ornament--left { margin-left: 0; }
.ornament__rule {
  flex: 1;
  height: 1px;
  background: currentColor;
  opacity: .55;
}
.ornament__diamond {
  width: 6px; height: 6px;
  background: currentColor;
  transform: rotate(45deg);
  flex-shrink: 0;
}


/* BUTTONS ===================================================== */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .9rem 1.55rem;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  line-height: 1;
  border: 1px solid transparent;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
  white-space: nowrap;
}
.btn--sm { padding: .65rem 1.1rem; font-size: .72rem; }
.btn--lg { padding: 1.1rem 1.85rem; font-size: .82rem; }
.btn--solid { background: var(--paper); color: var(--bg); }
.btn--solid:hover { background: var(--gold); transform: translateY(-1px); }

.btn--gold {
  background: var(--gold);
  color: var(--bg);
}
.btn--gold:hover { background: var(--gold-hi); transform: translateY(-1px); }

.btn--ghost {
  border-color: currentColor;
  color: var(--ink);
}
.btn--ghost:hover { background: var(--ink); color: var(--paper); }

.btn--ghost-light { color: var(--paper); border-color: rgba(242,236,221,.4); }
.btn--ghost-light:hover { background: var(--paper); color: var(--bg); border-color: var(--paper); }


/* NAV ========================================================= */
.nav {
  position: fixed;
  top: 0;
  left: 0; right: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 1.5rem;
  padding: 1.05rem var(--pad-x);
  color: var(--paper);
  transition: background .4s var(--ease), backdrop-filter .4s var(--ease), padding .35s var(--ease), border-color .35s var(--ease), top .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: rgba(14, 13, 10, 0.86);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border-bottom-color: var(--line);
  padding-block: .85rem;
}

.nav__brand {
  display: inline-flex; align-items: center; gap: .75rem;
}
.nav__mark { color: var(--gold); }
.nav__name {
  font-family: var(--serif);
  font-size: 1.15rem;
  letter-spacing: -0.005em;
  font-weight: 400;
  white-space: nowrap;
}
.nav__name em { font-style: italic; color: var(--gold); margin: 0 .12em; font-weight: 300; }

.nav__menu {
  display: flex; gap: 1.85rem;
  justify-content: center;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.nav__menu a {
  position: relative;
  padding: .25rem 0;
}
.nav__menu a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px;
  height: 1px; background: var(--gold);
  transition: right .4s var(--ease);
}
.nav__menu a:hover::after { right: 0; }

.nav__cta { display: flex; align-items: center; gap: 1.25rem; }
.nav__phone {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .05em;
  color: var(--paper);
  transition: color .25s var(--ease);
}
.nav__phone:hover { color: var(--gold); }
@media (max-width: 1100px) {
  .nav__phone-num { display: none; }
}
@media (max-width: 860px) {
  .nav__phone { display: none; }
}
.nav .btn--solid {
  background: transparent;
  color: var(--paper);
  border-color: rgba(242,236,221,.45);
}
.nav .btn--solid:hover { background: var(--gold); color: var(--bg); border-color: var(--gold); }
.nav.is-stuck .btn--solid { background: var(--gold); color: var(--bg); border-color: var(--gold); }
.nav.is-stuck .btn--solid:hover { background: var(--gold-hi); border-color: var(--gold-hi); }

.nav__toggle {
  display: none;
  width: 38px; height: 38px;
  position: relative;
}
.nav__toggle span {
  position: absolute; left: 8px; right: 8px; height: 1px;
  background: currentColor;
  transition: transform .35s var(--ease), opacity .25s var(--ease), top .35s var(--ease);
}
.nav__toggle span:nth-child(1) { top: 13px; }
.nav__toggle span:nth-child(2) { top: 19px; }
.nav__toggle span:nth-child(3) { top: 25px; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { top: 19px; transform: rotate(-45deg); }


/* HERO ======================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: clamp(8rem, 16vh, 12rem) var(--pad-x) clamp(4rem, 7vw, 6rem);
  color: var(--paper);
  overflow: hidden;
  isolation: isolate;
}
.hero__media {
  position: absolute; inset: 0; z-index: -1;
  will-change: transform;
}
.hero__media img {
  width: 100%; height: 110%;
  object-fit: cover;
  object-position: center 40%;
  filter: saturate(.78) brightness(.65) contrast(1.05);
}
.hero__veil {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at center, rgba(14,13,10,0.35) 0%, rgba(14,13,10,0.78) 70%, rgba(14,13,10,0.94) 100%),
    linear-gradient(180deg, rgba(14,13,10,0.45) 0%, rgba(14,13,10,0.1) 30%, rgba(14,13,10,0.55) 65%, rgba(14,13,10,0.95) 100%);
}
.hero__noise {
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: .045;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.9' numOctaves='2' seed='3'/%3E%3CfeColorMatrix values='0 0 0 0 0.95  0 0 0 0 0.92  0 0 0 0 0.86  0 0 0 .85 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero__content {
  max-width: 1080px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ribbon {
  display: inline-flex; align-items: center; gap: .9rem;
  margin: 0 0 2.5rem;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--gold);
}
.ribbon__line {
  width: 36px; height: 1px; background: currentColor; opacity: .55;
}

.hero__brand {
  font-family: var(--serif);
  font-weight: 300;
  font-size: var(--t-brand);
  line-height: .9;
  letter-spacing: -0.045em;
  margin: 0;
  color: var(--paper);
}
.brand-line {
  display: block;
  overflow: hidden;
  padding: 0.06em 0.04em;
  margin: -0.06em -0.04em;
}
.brand-word {
  display: inline-block;
  font-style: italic;
  font-weight: 300;
}
.brand-line:nth-child(2) .brand-word { color: var(--paper); }
.amp {
  font-style: italic;
  color: var(--gold);
  font-weight: 300;
  margin-right: .08em;
}

.hero__brand .ornament,
.hero .ornament { color: var(--gold); }

.hero__content > .ornament {
  margin: 2rem auto 1.75rem;
  max-width: 220px;
}

.hero__claim {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1vw + .9rem, 1.55rem);
  font-style: italic;
  font-weight: 300;
  line-height: 1.45;
  letter-spacing: -0.005em;
  max-width: 30em;
  margin: 0 0 2.5rem;
  color: var(--paper);
}
.hero__claim em { color: var(--gold); }

.hero__cta {
  display: flex; flex-wrap: wrap; gap: .85rem;
  justify-content: center;
}
.hero__cta .btn--ghost { color: var(--paper); border-color: rgba(242,236,221,.42); }
.hero__cta .btn--ghost:hover { background: var(--paper); color: var(--bg); border-color: var(--paper); }

.hero__scroll {
  position: absolute;
  left: 50%; transform: translateX(-50%);
  bottom: 1.75rem;
  display: inline-flex; flex-direction: column; align-items: center;
  gap: .65rem;
  font-size: .68rem; font-weight: 500;
  letter-spacing: .26em; text-transform: uppercase;
  color: var(--paper-mute);
}
.hero__scroll-line {
  width: 1px; height: 30px;
  background: linear-gradient(180deg, transparent, var(--gold) 40%, var(--gold));
  position: relative;
  overflow: hidden;
}
.hero__scroll-line::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  height: 30%;
  background: var(--paper);
  animation: scrollHint 2.4s var(--ease) infinite;
}
@keyframes scrollHint {
  0%   { top: -30%; opacity: 0; }
  20%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}


/* SECTION SHELLS ============================================= */
.section { padding: var(--pad-y) var(--pad-x); }
.section--dark { background: var(--bg); color: var(--paper); }
.section--paper { background: var(--paper); color: var(--ink); }
.section--paper a { color: var(--ink); }


/* STORIA ====================================================== */
.storia__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.storia__photo {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg);
}
.storia__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 1.6s var(--ease), filter 1.2s var(--ease);
  filter: saturate(.9) contrast(1.02);
}
.storia__photo:hover img { transform: scale(1.08); filter: saturate(1) contrast(1.03); }
.storia__photo figcaption {
  position: absolute;
  left: 1.25rem; bottom: 1.25rem;
  padding: .5rem .85rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: .92rem;
  background: rgba(14, 13, 10, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--paper);
  border-radius: 2px;
  border: 1px solid rgba(242, 236, 221, 0.1);
}

.storia__text { max-width: 38em; }
.storia__text .display { margin-bottom: 1.25rem; }
.storia__text .display em { color: var(--gold-d); }
.storia__text .ornament__rule { background: var(--ink); opacity: .35; }
.storia__text .ornament__diamond { background: var(--gold-d); }
.storia__text .ornament { color: var(--ink); margin-block: .5rem 2.25rem; max-width: 140px; }

.storia__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  list-style: none;
  padding: 2.25rem 0 0;
  margin: 2.5rem 0 0;
  border-top: 1px solid var(--line-on-paper);
}
.storia__stats li {
  display: flex; flex-direction: column;
  gap: .15rem;
}
.storia__stats strong {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 3vw + .5rem, 3.2rem);
  font-weight: 400;
  font-style: italic;
  color: var(--gold-d);
  line-height: 1;
}
.storia__stats sup {
  font-size: .55em;
  font-weight: 400;
  vertical-align: super;
  margin-left: .04em;
}
.storia__stats span {
  font-size: .78rem;
  letter-spacing: .04em;
  color: var(--ink-mute);
  line-height: 1.3;
}


/* PIATTI ====================================================== */
.piatti__head {
  max-width: 880px;
  margin: 0 auto 4rem;
  text-align: center;
}
.piatti__head .display { margin: 0; }
.piatti__head .ornament { margin: 2rem auto 2rem; max-width: 220px; }
.piatti__intro {
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--t-lede);
  line-height: 1.5;
  color: var(--paper-mute);
  max-width: 36em;
  margin: 0 auto;
}

.piatti__grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 240px;
  gap: 12px;
}

.dish {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 2px;
  background: var(--bg-soft);
  isolation: isolate;
  cursor: pointer;
  grid-row: span 2;
  border: 1px solid rgba(242, 236, 221, 0.06);
}
.dish--tall { grid-row: span 3; }
.dish--wide { grid-column: span 2; grid-row: span 2; }

.dish img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease), filter .8s var(--ease);
  filter: saturate(.82) brightness(.86);
}
.dish::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14,13,10,0) 40%, rgba(14,13,10,0.85) 100%);
  transition: opacity .5s var(--ease);
}
.dish:hover img { transform: scale(1.06); filter: saturate(1.05) brightness(1); }
.dish:hover::after { opacity: 1; }

.dish figcaption {
  position: absolute; left: 1.15rem; bottom: 1.05rem; right: 1.15rem;
  z-index: 2;
  color: var(--paper);
  display: grid;
  gap: .15rem;
}
.dish__name {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 400;
  font-style: italic;
  line-height: 1.05;
  letter-spacing: -0.005em;
}
.dish__sub {
  font-size: .76rem;
  font-family: var(--sans);
  color: rgba(242,236,221,.78);
  letter-spacing: .04em;
}

.piatti__cta {
  max-width: var(--max);
  margin: 4rem auto 0;
  text-align: center;
}


/* SERVIZI ===================================================== */
.servizi__head {
  max-width: var(--max);
  margin: 0 auto 3.5rem;
}
.servizi__head .display em { color: var(--gold-d); }

.servizi__grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.card {
  display: flex; flex-direction: column;
  gap: .65rem;
  padding: 2.25rem 1.75rem 1.6rem;
  border: 1px solid var(--line-on-paper);
  border-radius: 2px;
  min-height: 280px;
  position: relative;
  background: transparent;
  transition: background .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute; left: 0; top: 0;
  width: 100%; height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .55s var(--ease);
}
.card:hover {
  background: rgba(24, 22, 18, 0.04);
  border-color: rgba(24, 22, 18, 0.28);
  transform: translateY(-2px);
}
.card:hover::before { transform: scaleX(1); }
.card h3 {
  font-family: var(--serif);
  font-size: 1.65rem;
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.01em;
  margin: 0;
  line-height: 1.1;
  color: var(--ink);
}
.card p {
  margin: 0;
  font-size: .94rem;
  color: var(--ink-mute);
  line-height: 1.55;
}
.card__cta {
  margin-top: auto;
  padding-top: 1.5rem;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-d);
}


/* QUOTE ======================================================= */
.quote { padding: clamp(5rem, 10vw, 9rem) var(--pad-x); }
.quote__inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}
.quote__mark {
  font-family: var(--serif);
  font-style: italic;
  font-size: 5.5rem;
  line-height: 0.5;
  color: var(--gold);
  display: block;
  margin: 0 0 1.25rem;
}
.quote blockquote {
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(1.85rem, 3.5vw + .5rem, 3rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 2.5rem;
  color: var(--paper);
}
.quote blockquote em { color: var(--gold); font-style: italic; }
.quote .ornament { margin-inline: auto; max-width: 220px; }


/* VISITA ====================================================== */
.visita__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: stretch;
}

.visita__city {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--ink-mute);
  margin: -.5rem 0 2.5rem;
}

.visita__panel {
  border-block: 1px solid var(--line-on-paper);
  padding: 2rem 0;
  margin-bottom: 2.25rem;
  display: grid;
  gap: 1.75rem;
}

.visita__hours {
  margin: 0;
}
.visita__hours div {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 1rem;
  padding: .25rem 0;
}
.visita__hours dt {
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink);
  align-self: center;
}
.visita__hours dd {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.1rem;
}
.visita__hours .closed dd { color: var(--gold-d); font-style: italic; }

.visita__contacts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}
.visita__contacts li {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 1rem;
  align-items: baseline;
}
.visita__label {
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.visita__contacts a {
  display: block;
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.55;
  position: relative;
  transition: color .25s var(--ease);
}
.visita__contacts a:hover { color: var(--gold-d); }

.visita__ctas { display: flex; flex-wrap: wrap; gap: .75rem; }

.visita__map {
  border-radius: 2px;
  overflow: hidden;
  background: var(--bg-soft);
  min-height: 480px;
  position: relative;
  border: 1px solid var(--line-on-paper);
}
.visita__map iframe {
  width: 100%; height: 100%;
  border: 0;
  position: absolute; inset: 0;
  filter: grayscale(.45) contrast(1.05);
  z-index: 2;
}
.visita__map-fallback {
  position: absolute; inset: 0;
  z-index: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: .5rem;
  color: var(--paper-mute);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  background:
    repeating-linear-gradient(45deg, rgba(242,236,221,.02) 0 12px, rgba(242,236,221,.04) 12px 13px);
}
.visita__map-pin { color: var(--gold); font-size: 1.4rem; }


/* FOOTER ====================================================== */
.footer {
  background: var(--bg);
  color: var(--paper-mute);
  padding: clamp(4.5rem, 7vw, 6rem) var(--pad-x) 2rem;
  border-top: 1px solid var(--line);
}
.footer__top {
  max-width: var(--max);
  margin: 0 auto 3rem;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
}
.footer__brand { display: flex; flex-direction: column; gap: 1.25rem; }
.footer__logo {
  display: grid; place-items: center;
  width: 48px; height: 48px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--gold);
}
.footer__claim {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.55rem;
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--paper);
  margin: 0;
  max-width: 18ch;
}
.footer__claim em { color: var(--gold); }

.footer__brand .ornament {
  color: var(--gold); margin: 0; max-width: 80px;
}
.footer__brand .ornament__rule { opacity: .8; }

.footer__nav {
  display: flex; flex-direction: column;
  gap: .65rem;
}
.footer__nav h4 {
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 .85rem;
}
.footer__nav a {
  font-size: .94rem;
  font-family: var(--serif);
  font-style: italic;
  color: var(--paper);
  transition: color .25s var(--ease);
}
.footer__nav a:hover { color: var(--gold); }

.footer__bottom {
  max-width: var(--max);
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: .65rem 2rem;
  justify-content: space-between;
  font-size: .72rem;
  letter-spacing: .04em;
  color: var(--paper-faint);
}
.footer__bottom p { margin: 0; }


/* ============================================================
   MOTION — load + scroll-driven
   ============================================================ */

/* hero brand reveal on load */
.brand-word {
  transform: translateY(110%);
  opacity: 0;
  animation: brandRise 1.1s cubic-bezier(.2, .8, .2, 1) .25s forwards;
}
.brand-line:nth-child(2) .brand-word { animation-delay: .42s; }

@keyframes brandRise {
  to { transform: translateY(0); opacity: 1; }
}

/* hero supporting elements fade-in (sequenced) */
.hero .ribbon,
.hero__content > .ornament,
.hero__claim,
.hero__cta {
  opacity: 0;
  transform: translateY(8px);
  animation: heroFade .9s var(--ease) forwards;
}
.hero .ribbon              { animation-delay: .1s; }
.hero__content > .ornament { animation-delay: .85s; }
.hero__claim               { animation-delay: 1s; }
.hero__cta                 { animation-delay: 1.2s; }

@keyframes heroFade {
  to { opacity: 1; transform: translateY(0); }
}

/* scroll-driven section reveal — gated on @supports for safety */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    [data-reveal] {
      animation: sectionFade linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 35%;
    }
    @keyframes sectionFade {
      from { opacity: 0; transform: translateY(28px); }
      to   { opacity: 1; transform: translateY(0); }
    }

    /* dish stagger */
    .dish {
      animation: dishRise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 25%;
    }
    @keyframes dishRise {
      from { opacity: 0; transform: translateY(22px) scale(.985); }
      to   { opacity: 1; transform: translateY(0) scale(1); }
    }

    /* parallax-ish veil intensification on scroll */
    .hero__media img {
      animation: heroDrift linear both;
      animation-timeline: scroll();
      animation-range: 0vh 100vh;
    }
    @keyframes heroDrift {
      from { transform: translateY(0) scale(1); filter: saturate(.78) brightness(.65) contrast(1.05); }
      to   { transform: translateY(-9%) scale(1.06); filter: saturate(.72) brightness(.5) contrast(1.1); }
    }
  }
}

/* link underline draw on hover (for prose links / nav) — already on .nav__menu */


/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .piatti__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .servizi__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__top { grid-template-columns: 1.2fr 1fr 1fr; }
  .footer__top > :nth-child(4) { grid-column: 2 / -1; }
}

@media (max-width: 860px) {
  .nav__menu { display: none; }
  .nav__toggle { display: block; }

  .nav.is-open .nav__menu {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    padding: 1.5rem var(--pad-x) 2rem;
    gap: .25rem;
    background: var(--bg);
    color: var(--paper);
    border-bottom: 1px solid var(--line);
  }
  .nav.is-open .nav__menu a {
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.85rem;
    line-height: 2;
    letter-spacing: -0.01em;
    text-transform: none;
    border-bottom: 1px solid var(--line);
  }

  .hero { padding-bottom: 5rem; }
  .hero__scroll { display: none; }

  .storia__inner { grid-template-columns: 1fr; }
  .storia__photo { aspect-ratio: 4 / 3.5; }

  .piatti__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 220px;
  }
  .dish--wide { grid-column: span 2; }
  .dish--tall { grid-row: span 3; }

  .visita__inner { grid-template-columns: 1fr; }
  .visita__map { min-height: 360px; aspect-ratio: 4/3; }

  .footer__top { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}

@media (max-width: 520px) {
  .topbar { padding-block: .45rem; gap: .5rem; font-size: .65rem; letter-spacing: .1em; }
  .nav__name { font-size: 1rem; }

  .piatti__grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }
  .dish, .dish--wide, .dish--tall {
    grid-column: auto; grid-row: auto;
    aspect-ratio: 4 / 3;
  }
  .servizi__grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; gap: 2rem; }
  .footer__top > :nth-child(4) { grid-column: auto; }
  .visita__hours div, .visita__contacts li { grid-template-columns: 1fr; gap: .15rem; }
  .storia__stats { grid-template-columns: 1fr; gap: 1.25rem; padding-top: 1.5rem; margin-top: 2rem; }
  .storia__stats strong { font-size: 1.85rem; }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  .brand-word,
  .hero .ribbon,
  .hero__content > .ornament,
  .hero__claim,
  .hero__cta {
    opacity: 1;
    transform: none;
    animation: none;
  }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
