/* self-hosted webfonts */
@font-face{
  font-family:'Cormorant Garamond';
  font-style:normal;
  font-weight:300;
  font-display:swap;
  src:url('cormorant-300.woff2') format('woff2');
}
@font-face{
  font-family:'Cormorant Garamond';
  font-style:normal;
  font-weight:400;
  font-display:swap;
  src:url('cormorant-400.woff2') format('woff2');
}
@font-face{
  font-family:'Cormorant Garamond';
  font-style:normal;
  font-weight:500;
  font-display:swap;
  src:url('cormorant-500.woff2') format('woff2');
}
@font-face{
  font-family:'Inter';
  font-style:normal;
  font-weight:400;
  font-display:swap;
  src:url('inter-400.woff2') format('woff2');
}
@font-face{
  font-family:'Inter';
  font-style:normal;
  font-weight:500;
  font-display:swap;
  src:url('inter-500.woff2') format('woff2');
}
@font-face{
  font-family:'Inter';
  font-style:normal;
  font-weight:600;
  font-display:swap;
  src:url('inter-600.woff2') format('woff2');
}

/* ==========================================================================
   Casa D'Italia — original design system
   Type-led editorial layout. The photo library is small (4 usable frames) and
   tonally near-identical, so typography, hairline rules and negative space do
   the work; each photograph appears once, large and deliberate.
   ========================================================================== */

:root {
  --ink: #1c1714;
  --ink-soft: #453a33;
  --muted: #7d6f65;
  --paper: #faf7f2;
  --cream: #f1e8da;
  --wine: #6f1515;
  --wine-deep: #4d0f0f;
  --gold: #b3924f;
  --line: rgba(28, 23, 20, 0.14);
  --line-light: rgba(255, 255, 255, 0.28);

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;

  --pad: clamp(1.25rem, 5vw, 4rem);
  --gutter: clamp(2rem, 6vw, 6rem);
  --rule: clamp(3.5rem, 9vw, 7rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

/* ---------- shared primitives ---------- */

.shell {
  width: min(1240px, 100% - var(--pad) * 2);
  margin-inline: auto;
}

.shell--narrow {
  width: min(760px, 100% - var(--pad) * 2);
}

/* small letterspaced label — used above most section headings */
.eyebrow {
  margin: 0 0 1.25rem;
  color: var(--gold);
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.display {
  margin: 0;
  font-family: var(--serif);
  font-weight: 300;
  line-height: 1.04;
  letter-spacing: 0.01em;
}

.display--xl {
  font-size: clamp(3rem, 9vw, 6.5rem);
}

.display--lg {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
}

.lede {
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.8;
}

.prose p {
  color: var(--ink-soft);
  margin: 0 0 1.15rem;
}

/* hairline flourish */
.flourish {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.flourish::before,
.flourish::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}

.flourish span {
  width: 5px;
  height: 5px;
  transform: rotate(45deg);
  background: var(--gold);
}

.flourish--center::before,
.flourish--center::after {
  max-width: 120px;
}

.flourish--start::before {
  display: none;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  padding: 0.95rem 1.9rem;
  border: 1px solid currentColor;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  background: transparent;
  transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}

.btn--solid {
  background: var(--wine);
  border-color: var(--wine);
  color: #fff;
}

.btn--solid:hover {
  background: var(--wine-deep);
  border-color: var(--wine-deep);
}

.btn--ghost-light {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
}

.btn--ghost-light:hover {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
}

.btn--ink:hover {
  background: var(--ink);
  color: var(--paper);
}

/* ---------- navigation ---------- */

.nav {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem var(--pad);
  background: transparent;
  transition: background-color 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(12, 9, 8, 0.55), rgba(12, 9, 8, 0));
  opacity: 1;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.nav__brand {
  position: relative;
  z-index: 1;
  display: block;
  flex-shrink: 0;
}

.nav__brand img {
  width: 96px;
  height: auto;
  transition: width 0.4s ease;
}

.nav__links {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1rem, 2.5vw, 2.25rem);
  align-items: center;
}

.nav__links a {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  padding-block: 0.35rem;
  border-bottom: 1px solid transparent;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.nav__links a:hover,
.nav__links a[aria-current="page"] {
  border-bottom-color: var(--gold);
}

/* condensed state, toggled on scroll */
.nav.is-stuck {
  background: var(--paper);
  box-shadow: 0 1px 0 var(--line);
  padding-block: 0.6rem;
}

.nav.is-stuck::before {
  opacity: 0;
}

.nav.is-stuck .nav__brand img {
  width: 68px;
}

.nav.is-stuck .nav__links a {
  color: var(--ink);
}

/* Interior pages have no hero behind the bar, so it starts solid rather than
   transparent-over-photo. */
.nav.is-solid {
  background: var(--paper);
  box-shadow: 0 1px 0 var(--line);
}

.nav.is-solid::before {
  opacity: 0;
}

.nav.is-solid .nav__links a {
  color: var(--ink);
}

/* ---------- interior page banner ---------- */

.page-head {
  padding: clamp(7.5rem, 13vw, 10.5rem) var(--pad) clamp(2rem, 4vw, 3rem);
  text-align: center;
  background: var(--paper);
}

.page-head .flourish {
  max-width: 320px;
  margin-inline: auto;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: min(94vh, 900px);
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #171310;
  text-align: center;
  color: #fff;
  padding: 8rem var(--pad) 5rem;
}

.hero__media {
  position: absolute;
  inset: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 58%;
  /* slow drift keeps the single hero frame from feeling static */
  animation: drift 26s ease-in-out infinite alternate;
}

@keyframes drift {
  from {
    transform: scale(1.04);
  }
  to {
    transform: scale(1.12);
  }
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(14, 10, 8, 0.5), rgba(14, 10, 8, 0.3) 45%, rgba(14, 10, 8, 0.72));
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 46rem;
}

.hero__eyebrow {
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 1.5rem;
}

.hero__title {
  color: #fff;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.45);
}

.hero__tagline {
  margin: 1.5rem auto 2.5rem;
  max-width: 34rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  line-height: 1.75;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: center;
}

.hero__flourish::before,
.hero__flourish::after {
  background: var(--line-light);
  max-width: 90px;
}

.hero__scroll {
  position: absolute;
  bottom: 1.75rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.6rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

/* ---------- section rhythm ---------- */

.section {
  padding-block: var(--rule);
}

.section--cream {
  background: var(--cream);
}

.section--ink {
  background: var(--ink);
  color: var(--paper);
}

.section__head {
  max-width: 44rem;
  margin-inline: auto;
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

/* ---------- welcome: asymmetric editorial split ---------- */

.welcome {
  display: grid;
  gap: var(--gutter);
  align-items: center;
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .welcome {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

.welcome__figure {
  position: relative;
}

.welcome__figure img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

/* thin offset frame — a cheap way to add craft without more photography */
.welcome__figure::after {
  content: "";
  position: absolute;
  inset: 1rem -1rem -1rem 1rem;
  border: 1px solid var(--gold);
  z-index: -1;
}

.welcome__body .display {
  margin-bottom: 0.5rem;
}

.signature {
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  columns: 2;
  gap: 1.5rem;
}

.signature li {
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--line);
  break-inside: avoid;
}

/* ---------- menu preview: typographic, no imagery ---------- */

.menu-list {
  display: grid;
  gap: 2.75rem;
  grid-template-columns: 1fr;
}

@media (min-width: 820px) {
  .menu-list {
    grid-template-columns: 1fr 1fr;
    gap: 2.75rem var(--gutter);
  }
}

.menu-group__name {
  margin: 0 0 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.dish {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0 1rem;
  padding: 0.85rem 0;
}

.dish__name {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.dish__price {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--wine);
  white-space: nowrap;
}

.dish__desc {
  grid-column: 1 / -1;
  margin: 0.15rem 0 0;
  max-width: 46ch;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ---------- three offer panels ---------- */

.panels {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.25rem);
  grid-template-columns: 1fr;
}

@media (min-width: 760px) {
  .panels {
    grid-template-columns: repeat(3, 1fr);
  }
}

.panel {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  overflow: hidden;
}

.panel__media {
  overflow: hidden;
}

.panel__media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.panel:hover .panel__media img {
  transform: scale(1.05);
}

.panel__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 2rem 1.75rem 1.75rem;
  text-align: center;
}

.panel__title {
  margin: 0 0 0.6rem;
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.panel__text {
  margin: 0 0 1.75rem;
  flex: 1;
  color: var(--muted);
  font-size: 0.92rem;
}

/* ---------- visit / location ---------- */

.visit {
  display: grid;
  gap: var(--gutter);
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .visit {
    grid-template-columns: 0.85fr 1.15fr;
  }
}

.facts {
  margin: 0;
}

.facts dt {
  margin-top: 1.75rem;
  color: var(--gold);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.facts dt:first-child {
  margin-top: 0;
}

.facts dd {
  margin: 0.4rem 0 0;
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.5;
}

.facts dd a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.facts dd a:hover {
  border-bottom-color: var(--gold);
}

.visit__map {
  min-height: 420px;
  border: 1px solid var(--line);
  filter: grayscale(1) contrast(0.92);
  transition: filter 0.6s ease;
}

.visit__map:hover {
  filter: grayscale(0);
}

.visit__map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
}

/* ---------- footer ---------- */

.footer {
  background: var(--ink);
  color: rgba(250, 247, 242, 0.72);
  padding-block: clamp(3rem, 6vw, 5rem) 2rem;
  font-size: 0.9rem;
}

.footer a {
  color: inherit;
  text-decoration: none;
}

.footer a:hover {
  color: #fff;
}

.footer__grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
  text-align: center;
}

@media (min-width: 760px) {
  .footer__grid {
    grid-template-columns: 1fr auto 1fr;
    text-align: left;
    align-items: center;
  }
  .footer__col:last-child {
    text-align: right;
  }
}

.footer__brand img {
  width: 104px;
  margin-inline: auto;
}

.footer__title {
  margin: 0 0 0.75rem;
  color: var(--gold);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.footer__col p {
  margin: 0 0 0.35rem;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 3rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(250, 247, 242, 0.14);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.footer__legal {
  margin-top: 1.5rem;
  text-align: center;
  color: rgba(250, 247, 242, 0.45);
  font-size: 0.75rem;
}

/* ---------- scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
