:root {
  --ink: #201815;
  --wine: #5c171c;
  --wine-dark: #3c0d11;
  --cream: #f4eddf;
  --paper: #fbf8f1;
  --gold: #c79c56;
  --line: rgba(32, 24, 21, 0.18);

  --header-height: 84px;

  --page-x: clamp(1.5rem, 7vw, 7rem);
  --section-y: clamp(4.5rem, 8vh, 7rem);
}


/* =========================
   RESET / BASE
========================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

section[id] {
  scroll-margin-top: var(--header-height);
}

body {
  margin: 0;

  background: var(--paper);
  color: var(--ink);

  font-family: Arial, Helvetica, sans-serif;

  font-size: 16px;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}


/* =========================
   DEMO BAR
========================= */

.demo-bar {
  min-height: 32px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0.42rem 1rem;

  background: var(--ink);

  color: rgba(255, 255, 255, 0.72);

  font-size: 0.72rem;

  letter-spacing: 0.11em;

  text-align: center;
  text-transform: uppercase;
}


/* =========================
   HEADER
========================= */

.site-header {
  position: sticky;

  top: 0;

  z-index: 20;

  display: grid;

  grid-template-columns: 1fr auto 1fr;

  align-items: center;

  height: var(--header-height);

  padding: 0 clamp(1.25rem, 5vw, 5rem);

  border-bottom: 1px solid rgba(244, 237, 223, 0.2);

  background: rgba(92, 23, 28, 0.97);

  color: var(--cream);

  backdrop-filter: blur(12px);
}


/* =========================
   BRAND
========================= */

.brand {
  display: flex;

  align-items: center;

  gap: 0.75rem;

  font-family: Georgia, serif;

  font-size: 1.08rem;
}

.brand-mark {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  width: 38px;
  height: 38px;

  border-radius: 50%;

  background: var(--wine);

  color: var(--cream);

  font-size: 1.2rem;
}

.brand-mark img {
  display: block;

  width: 72%;
  height: 72%;

  object-fit: contain;
}

.site-header .brand-mark {
  background: var(--cream);

  color: var(--wine);
}


/* =========================
   NAVIGATION
========================= */

nav {
  display: flex;

  align-items: center;

  gap: 0;

  padding: 0.25rem 0.4rem;

  background: transparent;

  box-shadow: none;
}

nav a {
  position: relative;

  padding:
    0.55rem
    clamp(0.7rem, 1.25vw, 1.15rem)
    0.65rem;

  color: var(--cream);

  font-family: Georgia, 'Times New Roman', serif;

  font-size: 0.88rem;

  letter-spacing: 0.025em;

  transition: color 0.2s;
}

nav a + a {
  border-left: 1px solid rgba(244, 237, 223, 0.14);
}

nav a::after {
  position: absolute;

  bottom: 0.35rem;

  left: clamp(0.7rem, 1.25vw, 1.15rem);
  right: clamp(0.7rem, 1.25vw, 1.15rem);

  height: 1px;

  background: var(--gold);

  content: '';

  transform: scaleX(0);

  transform-origin: left;

  transition: transform 0.25s;
}

nav a:hover::after,
nav a:focus-visible::after {
  transform: scaleX(1);
}

nav a:hover,
nav a:focus-visible {
  color: #e4c996;
}


/* =========================
   HEADER CTA
========================= */

.header-cta {
  justify-self: end;

  padding: 0.35rem 0;

  border-bottom: 1px solid var(--cream);

  color: var(--cream);

  font-size: 0.78rem;

  letter-spacing: 0.08em;

  text-transform: uppercase;
}

.cta-short {
  display: none;
}


/* =========================
   MENU BUTTON
========================= */

.menu-button {
  display: none;

  width: 42px;
  height: 42px;

  padding: 0;

  border: 0;

  background: transparent;

  cursor: pointer;
}

.menu-button span {
  display: block;

  width: 24px;
  height: 1px;

  margin: 6px auto;

  background: var(--cream);

  transition: transform 0.25s;
}


/* =========================
   HERO
========================= */

.hero {
  position: relative;

  height: calc(100vh - 32px - var(--header-height));
  height: calc(100svh - 32px - var(--header-height));

  min-height: 560px;

  overflow: hidden;

  color: white;
}

.hero-media,
.hero-image {
  position: absolute;

  inset: 0;

  width: 100%;
  height: 100%;
}

.hero-media {
  overflow: hidden;
}

.hero-image {
  object-fit: cover;
  object-position: center;
}

.hero-shade {
  position: absolute;

  inset: 0;

  background:
    linear-gradient(
      90deg,
      rgba(19, 10, 8, 0.9),
      rgba(25, 12, 9, 0.58) 38%,
      rgba(22, 11, 8, 0.12) 72%
    ),
    linear-gradient(
      0deg,
      rgba(18, 8, 7, 0.5),
      transparent 45%
    );
}


/* =========================
   HERO CONTENT
========================= */

.hero-copy {
  position: absolute;

  top: 50%;

  left: clamp(1.5rem, 8vw, 8rem);

  max-width: 760px;

  transform: translateY(-50%);
}

.eyebrow,
.section-label {
  margin: 0 0 1.4rem;

  font-size: 0.72rem;

  font-weight: 700;

  letter-spacing: 0.2em;

  text-transform: uppercase;
}

.eyebrow {
  color: #e4c996;
}


/* =========================
   TITOLI
========================= */

h1,
h2,
h3 {
  font-family: Georgia, 'Times New Roman', serif;

  font-weight: 400;
}

h1 {
  margin: 0;

  font-size: clamp(3.5rem, 7.8vw, 7.4rem);

  letter-spacing: -0.055em;

  line-height: 0.9;
}


/* =========================
   HERO INTRO
========================= */

.hero-intro {
  max-width: 490px;

  margin: 2rem 0;

  color: rgba(255, 255, 255, 0.82);

  font-family: Georgia, serif;

  font-size: clamp(1rem, 1.45vw, 1.25rem);

  line-height: 1.55;
}


/* =========================
   PRIMARY CTA
========================= */

.primary-cta {
  display: inline-flex;

  align-items: center;

  gap: 1.5rem;

  min-height: 44px;

  padding: 0.9rem 1.2rem;

  border: 1px solid rgba(255, 255, 255, 0.5);

  font-size: 0.75rem;

  letter-spacing: 0.1em;

  text-transform: uppercase;

  transition:
    background 0.25s,
    color 0.25s;
}

.primary-cta:hover,
.primary-cta:focus-visible {
  background: var(--cream);

  color: var(--ink);
}


/* =========================
   HERO NOTE
========================= */

.hero-note {
  position: absolute;

  right: clamp(1.5rem, 5vw, 5rem);

  bottom: 2.5rem;

  margin: 0;

  font-size: 0.68rem;

  letter-spacing: 0.12em;

  text-align: right;

  text-transform: uppercase;
}


/* =========================
   INTRO SECTION
========================= */

.intro-section {
  display: grid;

  grid-template-columns: 1.25fr 0.75fr;

  gap: 4rem;

  align-items: center;

  min-height: clamp(600px, 78svh, 760px);

  padding: var(--section-y) var(--page-x);
}

.section-label {
  color: var(--wine);
}

.intro-section h2,
.story-copy h2,
.contact-title h2 {
  margin: 0;

  font-size: clamp(2.8rem, 5.5vw, 5.5rem);

  letter-spacing: -0.05em;

  line-height: 0.95;
}

.intro-copy {
  align-self: end;

  max-width: 510px;
}

.intro-copy > p {
  color: #5e524c;

  font-family: Georgia, serif;

  font-size: 1.22rem;
}


/* =========================
   TEXT LINK
========================= */

.text-link {
  display: inline-flex;

  gap: 2rem;

  margin-top: 1.5rem;

  padding-bottom: 0.4rem;

  border-bottom: 1px solid var(--ink);

  font-size: 0.75rem;

  letter-spacing: 0.12em;

  text-transform: uppercase;
}


/* =========================================================
   MENU SECTION
========================================================= */

.menu-section {
  padding: var(--section-y) var(--page-x);

  background: var(--wine);

  color: var(--cream);
}

.section-label.light {
  color: #dcbf89;
}


/* =========================
   MENU HEADING
========================= */

.menu-heading {
  max-width: 760px;

  margin:
    0
    auto
    clamp(4rem, 7vw, 6.5rem);

  text-align: center;
}

.menu-heading .section-label {
  margin-bottom: 1.2rem;
}

.menu-heading h2 {
  margin: 0;

  font-size: clamp(3.5rem, 6vw, 6rem);

  letter-spacing: -0.05em;

  line-height: 0.95;
}

.menu-heading > p:last-child {
  max-width: 460px;

  margin: 1.5rem auto 0;

  color: rgba(244, 237, 223, 0.67);

  font-family: Georgia, 'Times New Roman', serif;

  font-size: 1.05rem;

  line-height: 1.6;
}


/* =========================
   DISH LIST
========================= */

.dish-list {
  display: grid;

  grid-template-columns: 1fr;

  gap: clamp(3.5rem, 6vw, 5.5rem);

  width: 100%;

  max-width: 1120px;

  margin: 0 auto;
}


/* =========================
   MENU CATEGORY
========================= */

.menu-category {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  column-gap: clamp(3rem, 6vw, 6rem);

  row-gap: 0;

  align-content: start;
}

.menu-category-title {
  grid-column: 1 / -1;

  margin: 0;

  padding-bottom: 0.9rem;

  border-bottom:
    1px solid rgba(244, 237, 223, 0.28);

  color: #dcbf89;

  font-family: Arial, Helvetica, sans-serif;

  font-size: 0.72rem;

  font-weight: 700;

  letter-spacing: 0.2em;

  text-transform: uppercase;
}


/* =========================
   DISH
========================= */

.dish {
  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    auto;

  align-items: start;

  gap: 1.5rem;

  padding: 2rem 0;

  border-bottom:
    1px solid rgba(244, 237, 223, 0.18);
}

.dish h3 {
  margin: 0 0 0.35rem;

  font-size: clamp(1.4rem, 2vw, 1.85rem);

  line-height: 1.2;
}

.dish p {
  max-width: 370px;

  margin: 0;

  color: rgba(244, 237, 223, 0.62);

  font-size: 0.88rem;

  line-height: 1.55;
}

.dish strong {
  padding-top: 0.1rem;

  font-family: Georgia, 'Times New Roman', serif;

  font-size: 1.1rem;

  font-weight: 400;

  white-space: nowrap;
}


/* =========================
   MENU NOTE
========================= */

.menu-note {
  margin: 0;

  padding-top: 1.5rem;

  border-top:
    1px solid rgba(244, 237, 223, 0.25);

  color: rgba(244, 237, 223, 0.5);

  font-size: 0.7rem;

  letter-spacing: 0.08em;

  text-align: center;

  text-transform: uppercase;
}


/* =========================
   STORY SECTION
========================= */

.story-section {
  display: grid;

  grid-template-columns: 0.45fr 1fr 0.55fr;

  align-items: center;

  gap: clamp(2rem, 6vw, 6rem);

  min-height: clamp(620px, 82svh, 780px);

  padding: var(--section-y) var(--page-x);
}

.story-number {
  margin: 0;

  color: var(--wine);

  font-family: Georgia, serif;

  font-size: clamp(2.3rem, 3.8vw, 4.5rem);

  letter-spacing: -0.04em;

  line-height: 1;

  white-space: nowrap;
}

.story-copy > p:last-child {
  max-width: 560px;

  margin: 2.5rem 0 0;

  color: #645650;
}

.story-quote {
  margin: 0;

  padding-left: 2rem;

  border-left: 1px solid var(--gold);

  color: var(--wine);

  font-family: Georgia, serif;

  font-size: 1.3rem;

  font-style: italic;
}

.story-quote::before {
  display: block;

  content: '“';

  font-size: 3rem;

  line-height: 1;
}


/* =========================
   CONTACT SECTION
========================= */

.contact-section {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 8vw;

  align-items: center;

  min-height: clamp(590px, 74svh, 720px);

  padding: var(--section-y) var(--page-x);

  background: var(--wine-dark);

  color: var(--cream);
}

.contact-title .primary-cta {
  margin-top: 2.5rem;
}

.primary-cta.cream {
  background: var(--cream);

  color: var(--ink);
}

.primary-cta.cream:hover,
.primary-cta.cream:focus-visible {
  background: var(--gold);
}


/* =========================
   CONTACT DETAILS
========================= */

.contact-details {
  align-self: center;
}

.contact-details > div {
  display: grid;

  grid-template-columns: 1.5rem 1fr;

  gap: 1.2rem;

  padding: 1.4rem 0;

  border-top:
    1px solid rgba(244, 237, 223, 0.22);
}

.contact-marker {
  position: relative;

  width: 12px;
  height: 12px;

  margin-top: 0.35rem;

  border: 1px solid var(--gold);

  transform: rotate(45deg);
}

.contact-marker::after {
  position: absolute;

  inset: 3px;

  background: var(--gold);

  content: '';
}

.contact-details p {
  margin: 0;

  color: rgba(244, 237, 223, 0.7);

  font-size: 0.9rem;
}

.contact-details strong {
  color: var(--cream);

  font-size: 0.72rem;

  letter-spacing: 0.12em;

  text-transform: uppercase;
}


/* =========================
   FOOTER
========================= */

footer {
  display: grid;

  grid-template-columns: 1fr auto 1fr;

  align-items: center;

  padding:
    2.2rem
    clamp(1.5rem, 5vw, 5rem);

  background: #180b0c;

  color: rgba(244, 237, 223, 0.5);

  font-size: 0.68rem;

  letter-spacing: 0.08em;

  text-transform: uppercase;
}

.footer-brand {
  color: var(--cream);

  font-size: 0.9rem;

  letter-spacing: 0;

  text-transform: none;
}

.footer-brand .brand-mark {
  width: 30px;
  height: 30px;

  background: var(--cream);
}

footer p:last-child {
  justify-self: end;
}


/* =========================================================
   NOTEBOOK / TABLET ORIZZONTALI
========================================================= */

@media (min-width: 851px) and (max-width: 1100px) {

  .menu-heading {
    margin-bottom: 4rem;
  }

  .dish-list {
    max-width: 960px;
  }

  .menu-category {
    column-gap: 3rem;
  }
}


/* =========================================================
   IPAD PRO VERTICALE
========================================================= */

@media (min-width: 851px) and (max-width: 1100px) and (orientation: portrait) {

  .hero-copy {
    top: 36%;
  }

  .hero-note {
    display: none;
  }
}


/* =========================================================
   TABLET / SCHERMI FINO A 850px
========================================================= */

@media (max-width: 850px) {

  :root {
    --header-height: 72px;

    --page-x: clamp(1.25rem, 5vw, 3rem);

    --section-y: clamp(4rem, 8vw, 5.5rem);
  }


  /* HEADER */

  .site-header {
    grid-template-columns: 1fr auto auto;

    gap: 1rem;

    height: 72px;
  }


  /* HAMBURGER */

  .menu-button {
    display: block;

    grid-column: 3;
  }

  .menu-button.is-open span:first-child {
    transform:
      translateY(3.5px)
      rotate(45deg);
  }

  .menu-button.is-open span:last-child {
    transform:
      translateY(-3.5px)
      rotate(-45deg);
  }


  /* NAV MOBILE */

  nav {
    position: absolute;

    top: 100%;

    right: 0;
    left: 0;

    display: none;

    flex-direction: column;

    align-items: stretch;

    gap: 0;

    padding:
      0.55rem
      1.25rem
      0.45rem;

    border-bottom:
      1px solid rgba(244, 237, 223, 0.2);

    background:
      linear-gradient(
        135deg,
        rgba(92, 23, 28, 0.98),
        rgba(60, 13, 17, 0.99)
      );

    box-shadow:
      0
      22px
      38px
      rgba(32, 24, 21, 0.24);
  }

  nav.is-open {
    display: flex;
  }

  nav a {
    display: block;

    min-height: 58px;

    padding: 0.8rem 0.25rem;

    border-bottom:
      1px solid rgba(244, 237, 223, 0.18);

    color: var(--cream);

    font-size: 1.08rem;

    letter-spacing: 0.015em;

    transition:
      color 0.2s,
      padding-left 0.2s;
  }

  nav a + a {
    border-left: 0;
  }

  nav a:last-child {
    border-bottom: 0;
  }

  nav a:hover,
  nav a:focus-visible {
    padding-left: 0.4rem;

    color: #e4c996;
  }

  nav a::after {
    display: none;
  }

  .header-cta {
    grid-column: 2;

    grid-row: 1;
  }


  /* HERO TABLET */

  .hero {
    height: calc(100vh - 32px - var(--header-height));
    height: calc(100svh - 32px - var(--header-height));

    min-height: 540px;
  }

  .hero-image {
    object-position: center;
  }

  .hero-copy {
    top: 38%;

    bottom: auto;

    transform: translateY(-50%);
  }

  .hero-note {
    display: none;
  }


  /* SEZIONI GENERALI */

  .intro-section,
  .contact-section {
    grid-template-columns: 1fr;

    min-height: auto;

    padding:
      var(--section-y)
      var(--page-x);
  }

  .intro-section {
    gap: 2.5rem;
  }


  /* MENU TABLET / MOBILE */

  .menu-section {
    padding:
      var(--section-y)
      var(--page-x);
  }

  .menu-heading {
    max-width: none;

    margin:
      0
      0
      3.5rem;

    text-align: left;
  }

  .menu-heading > p:last-child {
    max-width: 420px;

    margin:
      1.25rem
      0
      0;
  }

  .dish-list {
    max-width: none;

    gap: 2.5rem;
  }

  .menu-category {
    grid-template-columns: 1fr;

    column-gap: 0;
  }


  /* STORY */

  .story-section {
    grid-template-columns: 1fr;

    gap: 2.5rem;

    min-height: auto;

    padding:
      var(--section-y)
      var(--page-x);
  }

  .story-number {
    justify-self: start;

    margin-bottom: -1.15rem;

    padding-left: 0.75rem;

    border-left: 2px solid var(--gold);

    font-family:
      Arial,
      Helvetica,
      sans-serif;

    font-size: 0.72rem;

    font-weight: 700;

    letter-spacing: 0.15em;

    line-height: 1.4;

    text-transform: uppercase;
  }

  .story-quote {
    max-width: 320px;
  }


  /* FOOTER */

  footer {
    grid-template-columns: 1fr;

    gap: 1.5rem;
  }

  footer p,
  footer p:last-child {
    justify-self: start;

    margin: 0;
  }
}


/* =========================================================
   SMARTPHONE FINO A 560px
========================================================= */

@media (max-width: 560px) {

  :root {
    --page-x: 1.25rem;

    --section-y: 3.75rem;
  }


  /* DEMO BAR */

  .demo-bar {
    min-height: 32px;

    padding: 0.45rem 0.6rem;

    font-size: 0.56rem;

    line-height: 1.2;
  }


  /* HEADER */

  .site-header {
    grid-template-columns:
      1fr
      auto
      auto;

    gap: 0.65rem;

    height: 72px;

    padding: 0 1rem;
  }

  .brand {
    font-size: 1rem;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .header-cta {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    grid-column: 2;

    min-height: 36px;

    padding: 0.45rem 0.7rem;

    border:
      1px solid
      rgba(244, 237, 223, 0.72);

    color: var(--cream);

    font-size: 0.62rem;

    font-weight: 700;
  }

  .cta-full {
    display: none;
  }

  .cta-short {
    display: inline;
  }

  .menu-button {
    grid-column: 3;
  }


  /* HERO MOBILE */

  .hero {
    height: calc(100vh - 32px - var(--header-height));
    height: calc(100svh - 32px - var(--header-height));

    min-height: 520px;
  }

  .hero-image {
    object-position: center;

    transform: none;
  }

  .hero-shade {
    background:
      linear-gradient(
        90deg,
        rgba(19, 10, 8, 0.8),
        rgba(25, 12, 9, 0.52) 68%,
        rgba(22, 11, 8, 0.16) 100%
      ),
      linear-gradient(
        0deg,
        rgba(18, 8, 7, 0.28),
        transparent 60%
      );
  }

  .hero-copy {
    top: 37%;

    right: 1.25rem;

    bottom: auto;

    left: 1.25rem;

    max-width: 360px;

    transform: translateY(-50%);

    text-shadow:
      0
      3px
      24px
      rgba(12, 5, 4, 0.42);
  }

  .eyebrow {
    margin-bottom: 1rem;

    font-size: 0.64rem;
  }

  h1 {
    font-size:
      clamp(
        2.75rem,
        13vw,
        4rem
      );

    line-height: 0.91;
  }

  .hero-intro {
    max-width: 330px;

    margin:
      1.25rem
      0
      1.5rem;

    font-size: 1rem;

    line-height: 1.45;
  }

  .primary-cta {
    gap: 1rem;

    padding: 0.85rem 1rem;
  }


  /* RITMO SEZIONI */

  .intro-section,
  .menu-section,
  .story-section,
  .contact-section {
    gap: 2.5rem;

    padding:
      var(--section-y)
      var(--page-x);
  }

  .section-label {
    margin-bottom: 0.9rem;
  }

  .intro-section h2,
  .story-copy h2,
  .contact-title h2,
  .menu-heading h2 {
    font-size:
      clamp(
        2.5rem,
        11vw,
        3.4rem
      );

    line-height: 0.98;
  }

  .intro-copy > p {
    margin-top: 0;

    font-size: 1.05rem;
  }

  .text-link {
    margin-top: 1rem;
  }


  /* MENU MOBILE */

  .menu-heading {
    margin-bottom: 3rem;
  }

  .menu-heading h2 {
    margin-bottom: 0;
  }

  .menu-heading > p:last-child {
    margin-bottom: 0;
  }

  .dish-list {
    gap: 2.75rem;
  }

  .menu-category {
    grid-template-columns: 1fr;

    gap: 0;
  }

  .menu-category-title {
    padding-bottom: 0.75rem;
  }

  .dish {
    grid-template-columns:
      minmax(0, 1fr)
      auto;

    gap: 1rem;

    padding: 1.35rem 0;
  }

  .dish h3 {
    font-size: 1.25rem;
  }

  .dish p {
    font-size: 0.8rem;
  }

  .menu-note {
    text-align: left;
  }


  /* STORY */

  .story-copy > p:last-child {
    margin-top: 1.75rem;
  }

  .story-quote {
    padding-left: 1.25rem;
  }


  /* CONTACT */

  .contact-title .primary-cta {
    margin-top: 1.75rem;
  }

  .contact-details > div {
    padding: 1.15rem 0;
  }
}


/* =========================================================
   SMARTPHONE ALTI
========================================================= */

@media (max-width: 560px) and (min-height: 780px) {

  .hero-copy {
    top: 34%;
  }
}


/* =========================================================
   SMARTPHONE PICCOLI
========================================================= */

@media (max-width: 390px) {

  .hero-copy {
    right: 1rem;

    left: 1rem;
  }

  h1 {
    font-size:
      clamp(
        2.55rem,
        13vw,
        3.35rem
      );
  }

  .hero-intro {
    margin: 1.25rem 0;

    font-size: 0.92rem;
  }

  .primary-cta {
    padding:
      0.75rem
      0.9rem;

    font-size: 0.68rem;
  }
}


/* =========================================================
   SCHERMI MOLTO BASSI
========================================================= */

@media (max-height: 650px) and (max-width: 560px) {

  .hero {
    min-height: 480px;
  }

  .hero-copy {
    top: 46%;
  }

  .eyebrow {
    margin-bottom: 0.7rem;
  }

  h1 {
    font-size:
      clamp(
        2.45rem,
        11vw,
        3.2rem
      );
  }

  .hero-intro {
    margin: 1rem 0;

    font-size: 0.9rem;
  }
}


/* =========================================================
   ACCESSIBILITÀ
========================================================= */

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }
}