:root {
  --ink: #16110f;
  --ink-soft: #3a322e;
  --paper: #f8f6f2;
  --paper-deep: #ebe6de;
  --tomato: #c1121f;
  --tomato-deep: #9a0f19;
  --basil: #1f4d38;
  --cream-line: rgba(255, 255, 255, 0.18);
  --shadow: 0 24px 60px rgba(22, 17, 15, 0.18);
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 4.5rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(248, 246, 242, 0.92), rgba(248, 246, 242, 0.96)),
    url("images/i-love-italy-fond.jpg") center top / 900px auto repeat;
  background-attachment: fixed;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--tomato);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 0.6rem;
}

p {
  margin: 0 0 1rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 1000;
  background: var(--ink);
  color: #fff;
  padding: 0.75rem 1rem;
}

.skip-link:focus {
  top: 1rem;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--tomato);
  margin-bottom: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.75rem 1.5rem;
  border: 1.5px solid transparent;
  background: var(--tomato);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.25s var(--ease),
    color 0.25s var(--ease),
    border-color 0.25s var(--ease),
    transform 0.25s var(--ease);
}

.btn:hover {
  background: var(--tomato-deep);
  color: #fff;
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.7);
  color: #fff;
}

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

.btn--ghost-dark {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}

.btn--ghost-dark:hover {
  background: var(--ink);
  color: #fff;
}

.btn--small {
  min-height: 2.5rem;
  padding: 0.55rem 1.1rem;
  font-size: 0.875rem;
}

.text-link {
  font-weight: 700;
  color: var(--tomato);
  text-decoration: none;
  border-bottom: 1.5px solid currentColor;
}

.text-link:hover {
  color: var(--tomato-deep);
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  transition:
    background 0.35s var(--ease),
    backdrop-filter 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(22, 17, 15, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.site-header__inner {
  max-width: 1200px;
  height: 100%;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-header__brand img {
  width: 120px;
  height: auto;
  opacity: 0.95;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav a {
  color: #fff;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
}

.nav a:not(.btn):hover {
  color: #ffd0d4;
}

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  background: transparent;
  padding: 0.7rem;
  cursor: pointer;
}

.nav-toggle__bar {
  display: block;
  width: 100%;
  height: 2px;
  background: #fff;
  transition: transform 0.3s var(--ease);
}

.nav-toggle__bar + .nav-toggle__bar {
  margin-top: 0.45rem;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:first-child {
  transform: translateY(4.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:last-of-type {
  transform: translateY(-4.5px) rotate(-45deg);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  color: #fff;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  transform: scale(1.06);
  animation: hero-zoom 18s var(--ease) forwards;
}

@keyframes hero-zoom {
  to {
    transform: scale(1);
  }
}

.hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(22, 17, 15, 0.55) 0%, rgba(22, 17, 15, 0.35) 40%, rgba(22, 17, 15, 0.78) 100%),
    radial-gradient(ellipse at 30% 40%, rgba(193, 18, 31, 0.18), transparent 55%);
}

.hero__content {
  position: relative;
  z-index: 1;
  width: min(720px, calc(100% - 2.5rem));
  text-align: center;
  padding: calc(var(--header-h) + 2rem) 0 5rem;
}

.hero__logo {
  width: min(280px, 70vw);
  margin: 0 auto 1.75rem;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.35));
  animation: rise 1s var(--ease) both;
}

.hero__title {
  font-size: clamp(1.85rem, 4.5vw, 3.15rem);
  font-weight: 800;
  margin-bottom: 0.85rem;
  text-wrap: balance;
  animation: rise 1s var(--ease) 0.12s both;
}

.hero__lead {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.9);
  max-width: 34rem;
  margin: 0 auto 1.75rem;
  animation: rise 1s var(--ease) 0.22s both;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  animation: rise 1s var(--ease) 0.32s both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  width: 1.5rem;
  height: 2.4rem;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  display: grid;
  place-items: start center;
  padding-top: 0.4rem;
}

.hero__scroll span {
  width: 0.3rem;
  height: 0.3rem;
  border-radius: 50%;
  background: #fff;
  animation: scroll-dot 1.6s ease-in-out infinite;
}

@keyframes scroll-dot {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  100% {
    transform: translateY(1.1rem);
    opacity: 0;
  }
}

/* Sections shared */
.section-intro {
  max-width: 38rem;
  margin: 0 auto 2.75rem;
  text-align: center;
}

.section-intro h2 {
  font-size: clamp(2rem, 4vw, 2.85rem);
}

.section-intro p:last-child {
  color: var(--ink-soft);
  margin-bottom: 0;
}

/* Menu */
.menu-section {
  padding: clamp(4rem, 8vw, 6.5rem) 1.25rem;
  max-width: 1200px;
  margin: 0 auto;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.menu-item {
  position: relative;
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  color: #fff;
  isolation: isolate;
}

.menu-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.menu-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(22, 17, 15, 0.88) 100%);
  z-index: 1;
}

.menu-item__copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 1.25rem 1.15rem;
}

.menu-item h3 {
  font-size: 1.45rem;
  margin-bottom: 0.2rem;
}

.menu-item p {
  margin: 0;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.82);
}

.carte {
  margin-top: 3.5rem;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(22, 17, 15, 0.08);
}

.carte__toolbar {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.4rem;
  overflow-x: auto;
  padding-bottom: 0.75rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(22, 17, 15, 0.1);
  scrollbar-width: thin;
}

.carte__tab {
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.65rem 0.9rem;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition:
    color 0.2s var(--ease),
    border-color 0.2s var(--ease);
}

.carte__tab:hover,
.carte__tab.is-active {
  color: var(--tomato);
  border-bottom-color: var(--tomato);
}

.carte__heading {
  margin-bottom: 1.25rem;
}

.carte__heading h3 {
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  margin-bottom: 0.35rem;
}

.carte__heading p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.carte__panel[hidden] {
  display: none;
}

.dish-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.dish {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid rgba(22, 17, 15, 0.08);
}

.dish__main {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.dish__name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.dish__desc {
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.4;
}

.dish__price {
  flex: 0 0 auto;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--ink);
}

.dish-list--dense .dish {
  padding: 0.75rem 0;
}

.carte__note {
  margin: 1.5rem 0 0;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.menu-cta {
  margin-top: 2.5rem;
  text-align: center;
}

/* House */
.house {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem clamp(4rem, 8vw, 6.5rem);
}

.house__media {
  overflow: hidden;
  min-height: 28rem;
}

.house__media img {
  width: 100%;
  height: 100%;
  min-height: 28rem;
  object-fit: cover;
  object-position: 60% 30%;
}

.house__copy h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 1rem;
}

.house__copy p {
  color: var(--ink-soft);
  max-width: 32rem;
}

/* Gallery */
.gallery {
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(4rem, 8vw, 6.5rem);
  background: var(--ink);
  color: #fff;
}

.gallery .section-intro {
  padding: 0 1.25rem;
}

.gallery .eyebrow {
  color: #ff8a93;
}

.gallery .section-intro h2 {
  color: #fff;
}

.gallery__rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 18vw);
  gap: 0.85rem;
  overflow-x: auto;
  padding: 0 1.25rem 0.5rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}

.gallery__item {
  margin: 0;
  scroll-snap-align: start;
  overflow: hidden;
  aspect-ratio: 1;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.gallery__item:hover img {
  transform: scale(1.05);
}

/* Infos */
.infos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 6.5rem) 1.25rem;
}

.infos__panel {
  padding: clamp(1.75rem, 4vw, 2.5rem);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(22, 17, 15, 0.08);
}

.infos__panel h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin-bottom: 1.25rem;
}

.hours {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hours li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(22, 17, 15, 0.1);
  font-size: 0.98rem;
}

.hours li span:first-child {
  font-weight: 700;
}

.hours li span:last-child {
  color: var(--ink-soft);
  text-align: right;
}

.infos__address {
  font-size: 1.15rem;
  color: var(--ink-soft);
}

.infos__contact {
  margin: 1.25rem 0 1.5rem;
}

.infos__contact a {
  font-weight: 700;
  text-decoration: none;
}

.infos__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.78);
  padding: 3.5rem 1.25rem 2.5rem;
  text-align: center;
}

.site-footer__inner {
  max-width: 40rem;
  margin: 0 auto;
}

.site-footer img {
  width: 160px;
  margin: 0 auto 1.25rem;
}

.site-footer__social {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
  margin: 1.25rem 0 2rem;
}

.site-footer__social a {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.site-footer__social a:hover {
  border-bottom-color: #fff;
  color: #fff;
}

.site-footer__copy {
  margin: 0;
  font-size: 0.85rem;
  opacity: 0.55;
}

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

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 900px) {
  .menu-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .house__media,
  .house__media img {
    min-height: 22rem;
  }

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

@media (max-width: 720px) {
  .nav-toggle {
    display: block;
  }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1.25rem 1.25rem;
    background: rgba(22, 17, 15, 0.96);
    backdrop-filter: blur(12px);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--cream-line);
  }

  .nav .btn {
    margin-top: 0.75rem;
    width: 100%;
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .menu-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .menu-item__copy {
    padding: 0.9rem;
  }

  .menu-item h3 {
    font-size: 1.15rem;
  }

  .menu-item p {
    font-size: 0.8rem;
  }

  .gallery__rail {
    grid-auto-columns: 70vw;
  }

  .hours li {
    flex-direction: column;
    gap: 0.2rem;
  }

  .hours li span:last-child {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero__media img,
  .hero__logo,
  .hero__title,
  .hero__lead,
  .hero__actions,
  .hero__scroll span,
  .reveal {
    animation: none !important;
    transition: none !important;
    opacity: 1;
    transform: none;
  }
}
