/* =========================================================
   CAFFÈ CENTRALE
   STYLE.CSS
========================================================= */


/* =========================================================
   VARIABILI
========================================================= */

:root {
  --green: #173f35;
  --green-dark: #0d2b24;
  --green-soft: #285d4f;

  --orange: #d9653b;
  --orange-dark: #b94d2b;

  --cream: #f3ead8;
  --cream-light: #faf6ee;

  --ink: #1c211e;
  --ink-soft: #5d625e;

  --white: #ffffff;

  --line-dark: rgba(28, 33, 30, 0.16);
  --line-light: rgba(243, 234, 216, 0.22);

  --header-height: 82px;

  --page-x: clamp(1.5rem, 6vw, 6.5rem);
  --section-y: clamp(5rem, 9vw, 8.5rem);
}


/* =========================================================
   RESET / BASE
========================================================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;

  background: var(--cream-light);
  color: var(--ink);

  font-family:
    Arial,
    Helvetica,
    sans-serif;

  font-size: 16px;
  line-height: 1.6;
}

body,
button {
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;

  max-width: 100%;
}

a {
  color: inherit;

  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

section[id] {
  scroll-margin-top: var(--header-height);
}


/* =========================================================
   DEMO BAR
========================================================= */

.demo-bar {
  display: flex;

  align-items: center;
  justify-content: center;

  min-height: 32px;

  padding: 0.4rem 1rem;

  background: var(--ink);

  color: rgba(255, 255, 255, 0.68);

  font-size: 0.68rem;
  font-weight: 700;

  letter-spacing: 0.13em;

  text-align: center;
  text-transform: uppercase;
}


/* =========================================================
   HEADER
========================================================= */

.site-header {
  position: sticky;

  top: 0;

  z-index: 100;

  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(243, 234, 216, 0.15);

  background:
    rgba(23, 63, 53, 0.97);

  color: var(--cream);

  backdrop-filter: blur(14px);
}


/* =========================================================
   BRAND
========================================================= */

.brand {
  display: inline-flex;

  align-items: baseline;

  justify-self: start;

  gap: 0.45rem;

  white-space: nowrap;
}

.brand-main {
  font-family:
    Georgia,
    'Times New Roman',
    serif;

  font-size: 1.55rem;

  font-style: italic;

  line-height: 1;
}

.brand-secondary {
  color: var(--orange);

  font-size: 0.72rem;
  font-weight: 800;

  letter-spacing: 0.14em;

  text-transform: uppercase;
}


/* =========================================================
   NAV
========================================================= */

nav {
  display: flex;

  align-items: center;

  justify-content: center;

  gap: 0;
}

nav a {
  position: relative;

  padding:
    0.75rem
    clamp(0.75rem, 1.4vw, 1.3rem);

  color: rgba(243, 234, 216, 0.85);

  font-size: 0.82rem;
  font-weight: 700;

  letter-spacing: 0.04em;
}

nav a + a {
  border-left:
    1px solid
    rgba(243, 234, 216, 0.12);
}

nav a::after {
  position: absolute;

  right: 1rem;
  bottom: 0.35rem;
  left: 1rem;

  height: 2px;

  background: var(--orange);

  content: '';

  transform: scaleX(0);

  transform-origin: left;

  transition:
    transform 0.22s ease;
}

nav a:hover::after,
nav a:focus-visible::after {
  transform: scaleX(1);
}


/* =========================================================
   HEADER CTA
========================================================= */

.header-cta {
  justify-self: end;

  padding:
    0.65rem
    0.9rem;

  border:
    1px solid
    rgba(243, 234, 216, 0.55);

  color: var(--cream);

  font-size: 0.68rem;
  font-weight: 800;

  letter-spacing: 0.1em;

  text-transform: uppercase;

  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.header-cta:hover,
.header-cta:focus-visible {
  background: var(--cream);

  color: var(--green);
}


/* =========================================================
   MENU MOBILE BUTTON
========================================================= */

.menu-button {
  display: none;

  width: 44px;
  height: 44px;

  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 ease;
}


/* =========================================================
   HERO
========================================================= */

.hero {
  position: relative;

  height:
    calc(
      100vh
      - 32px
      - var(--header-height)
    );

  height:
    calc(
      100svh
      - 32px
      - var(--header-height)
    );

  min-height: 620px;

  overflow: hidden;

  background: var(--green-dark);

  color: var(--white);
}


/* =========================================================
   HERO IMAGE
========================================================= */

.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 OVERLAY
========================================================= */

.hero-overlay {
  position: absolute;

  inset: 0;

  background:
    linear-gradient(
      90deg,
      rgba(8, 25, 20, 0.91) 0%,
      rgba(8, 25, 20, 0.73) 32%,
      rgba(8, 25, 20, 0.25) 67%,
      rgba(8, 25, 20, 0.08) 100%
    ),
    linear-gradient(
      0deg,
      rgba(7, 20, 17, 0.5),
      transparent 45%
    );
}


/* =========================================================
   HERO CONTENT
========================================================= */

.hero-content {
  position: absolute;

  top: 50%;
  left: var(--page-x);

  z-index: 2;

  width: min(760px, 72vw);

  transform: translateY(-50%);
}

.hero-kicker {
  margin:
    0
    0
    1.5rem;

  color: #f1a082;

  font-size: 0.72rem;
  font-weight: 800;

  letter-spacing: 0.2em;

  text-transform: uppercase;
}

.hero h1 {
  max-width: 850px;

  margin: 0;

  font-family:
    Georgia,
    'Times New Roman',
    serif;

  font-size:
    clamp(
      4rem,
      7.5vw,
      7.6rem
    );

  font-weight: 400;

  letter-spacing: -0.055em;

  line-height: 0.88;
}

.hero-description {
  max-width: 500px;

  margin:
    2rem
    0
    0;

  color:
    rgba(255, 255, 255, 0.78);

  font-family:
    Georgia,
    'Times New Roman',
    serif;

  font-size:
    clamp(
      1rem,
      1.4vw,
      1.22rem
    );

  line-height: 1.6;
}


/* =========================================================
   HERO BUTTONS
========================================================= */

.hero-actions {
  display: flex;

  flex-wrap: wrap;

  gap: 0.8rem;

  margin-top: 2rem;
}

.button {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  min-height: 46px;

  padding:
    0.8rem
    1.2rem;

  border: 1px solid transparent;

  font-size: 0.72rem;
  font-weight: 800;

  letter-spacing: 0.09em;

  text-transform: uppercase;

  transition:
    background 0.22s ease,
    color 0.22s ease,
    border-color 0.22s ease;
}

.button-primary {
  background: var(--orange);

  color: var(--white);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--orange-dark);
}

.button-secondary {
  border-color:
    rgba(255, 255, 255, 0.55);

  color: var(--white);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: var(--cream);

  color: var(--green);
}


/* =========================================================
   HERO INFO
========================================================= */

.hero-info {
  position: absolute;

  right: var(--page-x);
  bottom: 2.2rem;

  z-index: 2;

  display: flex;

  gap: clamp(2rem, 4vw, 4rem);
}

.hero-info > div {
  min-width: 125px;
}

.hero-info-label {
  display: block;

  margin-bottom: 0.25rem;

  color:
    rgba(255, 255, 255, 0.52);

  font-size: 0.62rem;
  font-weight: 700;

  letter-spacing: 0.12em;

  text-transform: uppercase;
}

.hero-info strong {
  color: var(--white);

  font-family:
    Georgia,
    'Times New Roman',
    serif;

  font-size: 0.95rem;

  font-weight: 400;
}


/* =========================================================
   SERVICE STRIP
========================================================= */

.service-strip {
  display: flex;

  align-items: center;
  justify-content: center;

  gap:
    clamp(
      1rem,
      3vw,
      3.5rem
    );

  min-height: 82px;

  padding:
    1rem
    var(--page-x);

  overflow: hidden;

  background: var(--orange);

  color: var(--cream-light);

  font-family:
    Georgia,
    'Times New Roman',
    serif;

  font-size:
    clamp(
      1rem,
      1.7vw,
      1.4rem
    );

  white-space: nowrap;
}

.service-symbol {
  font-family:
    Arial,
    Helvetica,
    sans-serif;

  font-size: 0.75rem;
}


/* =========================================================
   GENERIC SECTION LABEL
========================================================= */

.section-label {
  margin:
    0
    0
    1.2rem;

  color: var(--orange);

  font-size: 0.68rem;
  font-weight: 800;

  letter-spacing: 0.19em;

  text-transform: uppercase;
}

.section-label-light {
  color: #f3a384;
}


/* =========================================================
   ABOUT
========================================================= */

.about-section {
  display: grid;

  grid-template-columns:
    minmax(0, 1.05fr)
    minmax(280px, 0.75fr);

  grid-template-areas:
    'heading figure'
    'copy figure';

  column-gap:
    clamp(
      4rem,
      8vw,
      9rem
    );

  row-gap: 3rem;

  align-items: center;

  padding:
    var(--section-y)
    var(--page-x);

  background: var(--cream-light);
}


/* =========================================================
   ABOUT HEADING
========================================================= */

.about-heading {
  grid-area: heading;

  align-self: end;
}

.about-heading h2,
.moments-heading h2,
.menu-heading h2,
.aperitivo-content h2,
.contact-heading h2 {
  margin: 0;

  font-family:
    Georgia,
    'Times New Roman',
    serif;

  font-size:
    clamp(
      3rem,
      5vw,
      5.5rem
    );

  font-weight: 400;

  letter-spacing: -0.05em;

  line-height: 0.94;
}


/* =========================================================
   ABOUT COPY
========================================================= */

.about-copy {
  grid-area: copy;

  max-width: 610px;

  align-self: start;
}

.about-copy p {
  color: var(--ink-soft);
}

.about-copy p:last-child {
  margin-bottom: 0;
}

.about-lead {
  margin-top: 0;

  color: var(--ink) !important;

  font-family:
    Georgia,
    'Times New Roman',
    serif;

  font-size:
    clamp(
      1.25rem,
      2vw,
      1.7rem
    );

  line-height: 1.45;
}


/* =========================================================
   ABOUT IMAGE
========================================================= */

.about-figure {
  grid-area: figure;

  width: 100%;

  margin: 0;
}

.about-image-wrapper {
  position: relative;

  aspect-ratio: 4 / 5;

  overflow: hidden;

  background: var(--cream);
}

.about-image {
  width: 100%;
  height: 100%;

  object-fit: cover;

  transition:
    transform 0.7s ease;
}

.about-figure:hover .about-image {
  transform: scale(1.025);
}

.about-figure figcaption {
  max-width: 330px;

  margin-top: 1rem;

  color: var(--ink-soft);

  font-size: 0.76rem;

  line-height: 1.5;
}


/* =========================================================
   MOMENTS SECTION
========================================================= */

.moments-section {
  padding:
    var(--section-y)
    var(--page-x);

  background: var(--green);

  color: var(--cream);
}

.moments-heading {
  display: flex;

  align-items: end;
  justify-content: space-between;

  margin-bottom:
    clamp(
      4rem,
      7vw,
      6rem
    );
}

.moments-heading .section-label {
  color: #f2a185;
}

.moments-heading h2 {
  max-width: 720px;

  color: var(--cream);
}


/* =========================================================
   MOMENTS GRID
========================================================= */

.moments-grid {
  display: grid;

  grid-template-columns:
    repeat(
      4,
      minmax(0, 1fr)
    );

  border-top:
    1px solid
    var(--line-light);
}

.moment-card {
  position: relative;

  min-height: 330px;

  padding:
    2rem
    clamp(1.25rem, 2vw, 2rem)
    2.5rem;

  border-right:
    1px solid
    var(--line-light);
}

.moment-card:first-child {
  padding-left: 0;
}

.moment-card:last-child {
  border-right: 0;
}

.moment-time {
  margin:
    0
    0
    3.2rem;

  color: #f1a082;

  font-size: 0.66rem;
  font-weight: 800;

  letter-spacing: 0.13em;
}

.moment-card h3 {
  margin:
    0
    0
    1rem;

  color: var(--cream);

  font-family:
    Georgia,
    'Times New Roman',
    serif;

  font-size:
    clamp(
      1.8rem,
      2.5vw,
      2.6rem
    );

  font-weight: 400;
}

.moment-card > p:last-of-type {
  max-width: 260px;

  margin: 0;

  color:
    rgba(243, 234, 216, 0.65);

  font-size: 0.88rem;

  line-height: 1.65;
}

.moment-line {
  position: absolute;

  right: 2rem;
  bottom: 0;

  left: 2rem;

  height: 4px;

  background: var(--orange);

  transform: scaleX(0);

  transform-origin: left;

  transition:
    transform 0.35s ease;
}

.moment-card:hover .moment-line {
  transform: scaleX(1);
}


/* =========================================================
   MENU SECTION
========================================================= */

.menu-section {
  padding:
    var(--section-y)
    var(--page-x);

  background: var(--cream);

  color: var(--ink);
}


/* =========================================================
   MENU HEADING
========================================================= */

.menu-heading {
  display: grid;

  grid-template-columns:
    1fr
    minmax(280px, 0.65fr);

  column-gap:
    clamp(
      3rem,
      8vw,
      8rem
    );

  align-items: end;

  max-width: 1260px;

  margin:
    0
    auto
    clamp(
      4rem,
      8vw,
      7rem
    );
}

.menu-heading .section-label,
.menu-heading h2 {
  grid-column: 1;
}

.menu-heading > p:last-child {
  grid-column: 2;
  grid-row: 1 / span 2;

  max-width: 390px;

  margin: 0;

  color: var(--ink-soft);

  font-family:
    Georgia,
    'Times New Roman',
    serif;

  font-size: 1.18rem;

  line-height: 1.6;
}


/* =========================================================
   MENU LIST
========================================================= */

.menu-list {
  display: grid;

  grid-template-columns:
    repeat(
      2,
      minmax(0, 1fr)
    );

  column-gap:
    clamp(
      4rem,
      8vw,
      8rem
    );

  row-gap:
    clamp(
      4rem,
      7vw,
      6rem
    );

  max-width: 1260px;

  margin: 0 auto;
}


/* =========================================================
   MENU CATEGORY
========================================================= */

.menu-category {
  min-width: 0;
}

.menu-category-title {
  margin: 0;

  padding-bottom: 0.9rem;

  border-bottom:
    2px solid
    var(--green);

  color: var(--green);

  font-size: 0.7rem;
  font-weight: 800;

  letter-spacing: 0.19em;

  text-transform: uppercase;
}


/* =========================================================
   MENU ITEM
========================================================= */

.menu-item {
  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    auto;

  align-items: start;

  gap: 1.5rem;

  padding: 1.45rem 0;

  border-bottom:
    1px solid
    var(--line-dark);
}

.menu-item h4 {
  margin:
    0
    0
    0.25rem;

  color: var(--ink);

  font-family:
    Georgia,
    'Times New Roman',
    serif;

  font-size: 1.3rem;

  font-weight: 400;

  line-height: 1.25;
}

.menu-item p {
  max-width: 420px;

  margin: 0;

  color: var(--ink-soft);

  font-size: 0.8rem;

  line-height: 1.5;
}

.menu-item strong {
  color: var(--green);

  font-family:
    Georgia,
    'Times New Roman',
    serif;

  font-size: 1.05rem;

  font-weight: 400;

  white-space: nowrap;
}


/* =========================================================
   MENU NOTE
========================================================= */

.menu-note {
  max-width: 1260px;

  margin:
    clamp(
      4rem,
      7vw,
      6rem
    )
    auto
    0;

  padding-top: 1.2rem;

  border-top:
    1px solid
    var(--line-dark);

  color: var(--ink-soft);

  font-size: 0.65rem;
  font-weight: 700;

  letter-spacing: 0.09em;

  text-transform: uppercase;
}


/* =========================================================
   APERITIVO
========================================================= */

.aperitivo-section {
  display: grid;

  grid-template-columns:
    minmax(0, 1.1fr)
    minmax(380px, 0.9fr);

  min-height: 760px;

  background: var(--orange);

  color: var(--cream-light);
}


/* =========================================================
   APERITIVO IMAGE
========================================================= */

.aperitivo-media {
  min-height: 680px;

  overflow: hidden;

  background: var(--orange-dark);
}

.aperitivo-media img {
  width: 100%;
  height: 100%;

  object-fit: cover;
}


/* =========================================================
   APERITIVO CONTENT
========================================================= */

.aperitivo-content {
  display: flex;

  flex-direction: column;

  justify-content: center;

  padding:
    clamp(
      4rem,
      8vw,
      8rem
    )
    clamp(
      2.5rem,
      6vw,
      6rem
    );
}

.aperitivo-content .section-label {
  color: var(--green-dark);
}

.aperitivo-content h2 {
  color: var(--cream-light);
}

.aperitivo-content > p:not(.section-label) {
  max-width: 500px;
}

.aperitivo-lead {
  margin:
    2rem
    0
    1rem;

  color: var(--green-dark);

  font-family:
    Georgia,
    'Times New Roman',
    serif;

  font-size:
    clamp(
      1.3rem,
      2vw,
      1.7rem
    );

  line-height: 1.45;
}


/* =========================================================
   APERITIVO DETAILS
========================================================= */

.aperitivo-details {
  display: grid;

  grid-template-columns:
    repeat(
      2,
      minmax(0, 1fr)
    );

  gap: 1.5rem;

  margin:
    2.5rem
    0;
}

.aperitivo-details > div {
  padding-top: 1rem;

  border-top:
    1px solid
    rgba(13, 43, 36, 0.35);
}

.aperitivo-details span {
  display: block;

  margin-bottom: 0.45rem;

  color: var(--green-dark);

  font-size: 0.63rem;
  font-weight: 800;

  letter-spacing: 0.12em;

  text-transform: uppercase;
}

.aperitivo-details strong {
  color: var(--cream-light);

  font-family:
    Georgia,
    'Times New Roman',
    serif;

  font-size: 1rem;

  font-weight: 400;
}


/* =========================================================
   TEXT LINK
========================================================= */

.text-link {
  display: inline-flex;

  align-self: flex-start;

  margin-top: 0.5rem;

  padding-bottom: 0.4rem;

  border-bottom:
    1px solid
    currentColor;

  font-size: 0.7rem;
  font-weight: 800;

  letter-spacing: 0.1em;

  text-transform: uppercase;
}


/* =========================================================
   PHOTO BREAK
========================================================= */

.photo-break {
  position: relative;

  height: min(78vh, 820px);

  min-height: 540px;

  overflow: hidden;

  background: var(--green-dark);
}

.photo-break > img {
  width: 100%;
  height: 100%;

  object-fit: cover;

  object-position: center;
}

.photo-break-overlay {
  position: absolute;

  inset: 0;

  background:
    linear-gradient(
      0deg,
      rgba(7, 25, 20, 0.65),
      rgba(7, 25, 20, 0.05) 65%
    );
}

.photo-break blockquote {
  position: absolute;

  right: var(--page-x);
  bottom: clamp(3rem, 7vw, 6rem);
  left: var(--page-x);

  margin: 0;

  color: var(--cream-light);

  font-family:
    Georgia,
    'Times New Roman',
    serif;

  font-size:
    clamp(
      3.5rem,
      7vw,
      7rem
    );

  font-style: italic;

  letter-spacing: -0.05em;

  line-height: 0.95;
}


/* =========================================================
   CONTACT
========================================================= */

.contact-section {
  padding:
    var(--section-y)
    var(--page-x);

  background: var(--green-dark);

  color: var(--cream);
}


/* =========================================================
   CONTACT HEADING
========================================================= */

.contact-heading {
  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    minmax(280px, 0.55fr);

  gap:
    clamp(
      3rem,
      8vw,
      8rem
    );

  align-items: end;

  margin-bottom:
    clamp(
      4rem,
      8vw,
      7rem
    );
}

.contact-heading .section-label {
  color: #f1a082;
}

.contact-heading h2 {
  color: var(--cream);
}

.contact-heading > p:last-child {
  grid-column: 2;
  grid-row: 1 / span 2;

  max-width: 360px;

  margin: 0;

  color:
    rgba(243, 234, 216, 0.62);

  font-family:
    Georgia,
    'Times New Roman',
    serif;

  font-size: 1.1rem;
}


/* =========================================================
   CONTACT GRID
========================================================= */

.contact-grid {
  display: grid;

  grid-template-columns:
    repeat(
      4,
      minmax(0, 1fr)
    );

  border-top:
    1px solid
    var(--line-light);

  border-bottom:
    1px solid
    var(--line-light);
}

.contact-item {
  min-height: 170px;

  padding:
    1.8rem
    clamp(
      1.2rem,
      2.5vw,
      2.2rem
    );

  border-right:
    1px solid
    var(--line-light);
}

.contact-item:first-child {
  padding-left: 0;
}

.contact-item:last-child {
  border-right: 0;
}

.contact-label {
  margin:
    0
    0
    1.6rem;

  color: #f1a082 !important;

  font-size: 0.62rem;
  font-weight: 800;

  letter-spacing: 0.14em;

  text-transform: uppercase;
}

.contact-item p {
  margin: 0;

  color:
    rgba(243, 234, 216, 0.72);

  font-size: 0.9rem;

  line-height: 1.7;
}

.contact-item a:hover,
.contact-item a:focus-visible {
  color: var(--white);
}


/* =========================================================
   CONTACT ACTIONS
========================================================= */

.contact-actions {
  display: flex;

  flex-wrap: wrap;

  gap: 0.8rem;

  margin-top: 2.5rem;
}

.button-light {
  background: var(--cream);

  color: var(--green-dark);
}

.button-light:hover,
.button-light:focus-visible {
  background: var(--orange);

  color: var(--white);
}

.button-outline-light {
  border-color:
    rgba(243, 234, 216, 0.45);

  color: var(--cream);
}

.button-outline-light:hover,
.button-outline-light:focus-visible {
  background: var(--cream);

  color: var(--green-dark);
}


/* =========================================================
   FOOTER
========================================================= */

.site-footer {
  display: grid;

  grid-template-columns:
    1fr
    auto
    auto
    auto;

  align-items: center;

  gap: clamp(1.5rem, 4vw, 4rem);

  padding:
    2rem
    var(--page-x);

  background: #081b17;

  color:
    rgba(243, 234, 216, 0.45);

  font-size: 0.62rem;
  font-weight: 700;

  letter-spacing: 0.07em;

  text-transform: uppercase;
}

.footer-brand {
  display: inline-flex;

  align-items: baseline;

  gap: 0.4rem;

  color: var(--cream);

  text-transform: none;
}

.footer-brand span {
  font-family:
    Georgia,
    'Times New Roman',
    serif;

  font-size: 1.2rem;

  font-style: italic;
}

.footer-brand strong {
  color: var(--orange);

  font-size: 0.58rem;

  letter-spacing: 0.12em;

  text-transform: uppercase;
}

.site-footer p {
  margin: 0;
}


/* =========================================================
   NOTEBOOK / SCHERMI MEDI
   1100px - 1300px
========================================================= */

@media (max-width: 1300px) {

  .hero h1 {
    font-size:
      clamp(
        3.8rem,
        7vw,
        6.5rem
      );
  }

  .moments-grid {
    grid-template-columns:
      repeat(
        2,
        minmax(0, 1fr)
      );
  }

  .moment-card {
    border-bottom:
      1px solid
      var(--line-light);
  }

  .moment-card:nth-child(2) {
    border-right: 0;
  }

  .moment-card:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .moment-card:nth-child(3) {
    padding-left: 0;
  }

  .site-footer {
    grid-template-columns:
      1fr
      auto;

    row-gap: 1.2rem;
  }
}


/* =========================================================
   TABLET / IPAD LANDSCAPE
   FINO A 1000px
========================================================= */

@media (max-width: 1000px) {

  :root {
    --header-height: 74px;

    --page-x:
      clamp(
        1.5rem,
        5vw,
        3.5rem
      );

    --section-y:
      clamp(
        4.5rem,
        8vw,
        6rem
      );
  }


  /* HEADER */

  .site-header {
    grid-template-columns:
      1fr
      auto
      auto;

    gap: 0.8rem;

    height: var(--header-height);
  }

  nav {
    position: absolute;

    top: 100%;
    right: 0;
    left: 0;

    display: none;

    flex-direction: column;

    align-items: stretch;

    padding:
      0.6rem
      var(--page-x)
      1rem;

    border-bottom:
      1px solid
      rgba(243, 234, 216, 0.15);

    background: var(--green);

    box-shadow:
      0
      18px
      28px
      rgba(0, 0, 0, 0.18);
  }

  nav.is-open {
    display: flex;
  }

  nav a {
    padding:
      1rem
      0;

    border-bottom:
      1px solid
      rgba(243, 234, 216, 0.12);

    font-size: 1rem;
  }

  nav a + a {
    border-left: 0;
  }

  nav a:last-child {
    border-bottom: 0;
  }

  nav a::after {
    display: none;
  }


  /* 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);
  }


  /* CTA */

  .header-cta {
    grid-column: 2;

    padding:
      0.55rem
      0.7rem;

    font-size: 0.62rem;
  }


  /* HERO */

  .hero {
    height:
      calc(
        100vh
        - 32px
        - var(--header-height)
      );

    height:
      calc(
        100svh
        - 32px
        - var(--header-height)
      );

    min-height: 620px;
  }

  .hero-content {
    width: min(650px, 78vw);
  }

  .hero h1 {
    font-size:
      clamp(
        3.7rem,
        8vw,
        6rem
      );
  }

  .hero-info {
    display: none;
  }


  /* ABOUT */

  .about-section {
    grid-template-columns:
      minmax(0, 1fr)
      minmax(280px, 0.8fr);

    column-gap: 3rem;
  }


  /* MENU */

  .menu-heading {
    grid-template-columns: 1fr;
  }

  .menu-heading .section-label,
  .menu-heading h2,
  .menu-heading > p:last-child {
    grid-column: 1;
    grid-row: auto;
  }

  .menu-heading > p:last-child {
    max-width: 500px;

    margin-top: 1.5rem;
  }

  .menu-list {
    column-gap: 3rem;
  }


  /* APERITIVO */

  .aperitivo-section {
    grid-template-columns:
      1fr
      1fr;

    min-height: 680px;
  }

  .aperitivo-content {
    padding:
      4rem
      3rem;
  }


  /* CONTACT */

  .contact-grid {
    grid-template-columns:
      repeat(
        2,
        minmax(0, 1fr)
      );
  }

  .contact-item:nth-child(2) {
    border-right: 0;
  }

  .contact-item:nth-child(-n + 2) {
    border-bottom:
      1px solid
      var(--line-light);
  }

  .contact-item:nth-child(3) {
    padding-left: 0;
  }
}


/* =========================================================
   IPAD / TABLET PORTRAIT
   FINO A 800px
========================================================= */

@media (max-width: 800px) {

  .hero-overlay {
    background:
      linear-gradient(
        90deg,
        rgba(8, 25, 20, 0.85),
        rgba(8, 25, 20, 0.5) 72%,
        rgba(8, 25, 20, 0.2)
      ),
      linear-gradient(
        0deg,
        rgba(8, 25, 20, 0.35),
        transparent
      );
  }

  .hero-content {
    top: 45%;

    width: min(600px, 86vw);
  }

  .hero-description {
    max-width: 440px;
  }


  /* SERVICE STRIP */

  .service-strip {
    justify-content: flex-start;

    overflow-x: auto;

    padding:
      1rem
      var(--page-x);

    scrollbar-width: none;
  }

  .service-strip::-webkit-scrollbar {
    display: none;
  }


  /* ABOUT */

  .about-section {
    grid-template-columns: 1fr;

    grid-template-areas:
      'heading'
      'copy'
      'figure';

    gap: 2.5rem;
  }

  .about-copy {
    max-width: 650px;
  }

  .about-figure {
    width: min(100%, 600px);
  }

  .about-image-wrapper {
    aspect-ratio: 4 / 3;
  }


  /* MOMENTS */

  .moments-heading {
    display: block;
  }

  .moments-heading h2 {
    margin-top: 0;
  }


  /* MENU */

  .menu-list {
    grid-template-columns: 1fr;

    max-width: 700px;

    margin:
      0
      auto;
  }

  .menu-heading {
    max-width: 700px;

    margin-right: auto;
    margin-left: auto;
  }


  /* APERITIVO */

  .aperitivo-section {
    grid-template-columns: 1fr;

    min-height: 0;
  }

  .aperitivo-media {
    min-height: 0;

    aspect-ratio: 16 / 10;
  }

  .aperitivo-content {
    padding:
      var(--section-y)
      var(--page-x);
  }


  /* PHOTO */

  .photo-break {
    height: 65vh;

    min-height: 500px;
  }


  /* CONTACT */

  .contact-heading {
    grid-template-columns: 1fr;

    gap: 1.5rem;
  }

  .contact-heading > p:last-child {
    grid-column: 1;
    grid-row: auto;

    max-width: 500px;
  }
}


/* =========================================================
   SMARTPHONE
   FINO A 600px
========================================================= */

@media (max-width: 600px) {

  :root {
    --page-x: 1.2rem;

    --section-y: 4rem;

    --header-height: 70px;
  }


  /* DEMO BAR */

  .demo-bar {
    min-height: 31px;

    padding:
      0.45rem
      0.6rem;

    font-size: 0.53rem;

    letter-spacing: 0.1em;

    line-height: 1.25;
  }


  /* HEADER */

  .site-header {
    grid-template-columns:
      1fr
      auto;

    gap: 0.4rem;

    height: var(--header-height);

    padding:
      0
      1rem;
  }

  .brand {
    gap: 0.35rem;
  }

  .brand-main {
    font-size: 1.3rem;
  }

  .brand-secondary {
    font-size: 0.55rem;
  }

  .header-cta {
    display: none;
  }

  .menu-button {
    grid-column: 2;
  }


  /* HERO */

  .hero {
    height:
      calc(
        100vh
        - 31px
        - var(--header-height)
      );

    height:
      calc(
        100svh
        - 31px
        - var(--header-height)
      );

    min-height: 560px;
  }

  .hero-overlay {
    background:
      linear-gradient(
        90deg,
        rgba(7, 25, 20, 0.83),
        rgba(7, 25, 20, 0.48) 78%,
        rgba(7, 25, 20, 0.3)
      ),
      linear-gradient(
        0deg,
        rgba(7, 25, 20, 0.42),
        transparent 60%
      );
  }

  .hero-content {
    top: 43%;

    right: var(--page-x);
    left: var(--page-x);

    width: auto;

    transform: translateY(-50%);
  }

  .hero-kicker {
    margin-bottom: 1rem;

    font-size: 0.6rem;

    letter-spacing: 0.15em;
  }

  .hero h1 {
    font-size:
      clamp(
        3rem,
        14vw,
        4.5rem
      );

    line-height: 0.9;
  }

  .hero-description {
    max-width: 350px;

    margin-top: 1.5rem;

    font-size: 0.98rem;

    line-height: 1.5;
  }

  .hero-actions {
    gap: 0.6rem;

    margin-top: 1.5rem;
  }

  .button {
    min-height: 44px;

    padding:
      0.75rem
      0.9rem;

    font-size: 0.65rem;
  }


  /* SERVICE STRIP */

  .service-strip {
    min-height: 68px;

    gap: 1.25rem;

    font-size: 1rem;
  }


  /* TITOLI */

  .about-heading h2,
  .moments-heading h2,
  .menu-heading h2,
  .aperitivo-content h2,
  .contact-heading h2 {
    font-size:
      clamp(
        2.65rem,
        12vw,
        3.8rem
      );

    line-height: 0.96;
  }


  /* ABOUT */

  .about-section {
    gap: 2rem;
  }

  .about-lead {
    font-size: 1.2rem;
  }

  .about-image-wrapper {
    aspect-ratio: 4 / 5;
  }


  /* MOMENTS */

  .moments-heading {
    margin-bottom: 3rem;
  }

  .moments-grid {
    grid-template-columns: 1fr;

    border-top:
      1px solid
      var(--line-light);
  }

  .moment-card {
    min-height: 0;

    padding:
      2rem
      0;

    border-right: 0;

    border-bottom:
      1px solid
      var(--line-light);
  }

  .moment-card:first-child,
  .moment-card:nth-child(3) {
    padding-left: 0;
  }

  .moment-card:last-child {
    border-bottom: 0;
  }

  .moment-time {
    margin-bottom: 1.5rem;
  }

  .moment-card h3 {
    font-size: 2rem;
  }

  .moment-card > p:last-of-type {
    max-width: 400px;
  }

  .moment-line {
    display: none;
  }


  /* MENU */

  .menu-heading {
    margin-bottom: 3.5rem;
  }

  .menu-heading > p:last-child {
    font-size: 1rem;
  }

  .menu-list {
    gap: 3.5rem;
  }

  .menu-item {
    gap: 1rem;

    padding:
      1.25rem
      0;
  }

  .menu-item h4 {
    font-size: 1.2rem;
  }

  .menu-item p {
    font-size: 0.78rem;
  }

  .menu-item strong {
    font-size: 1rem;
  }

  .menu-note {
    margin-top: 3.5rem;

    font-size: 0.6rem;
  }


  /* APERITIVO */

  .aperitivo-media {
    aspect-ratio: 4 / 3;
  }

  .aperitivo-content {
    padding:
      4rem
      var(--page-x);
  }

  .aperitivo-lead {
    margin-top: 1.5rem;

    font-size: 1.2rem;
  }

  .aperitivo-details {
    grid-template-columns: 1fr;

    gap: 1.5rem;
  }


  /* PHOTO BREAK */

  .photo-break {
    height: 70svh;

    min-height: 500px;
  }

  .photo-break blockquote {
    bottom: 3rem;

    font-size:
      clamp(
        3.2rem,
        14vw,
        5rem
      );
  }


  /* CONTACT */

  .contact-heading {
    margin-bottom: 3.5rem;
  }

  .contact-heading > p:last-child {
    font-size: 1rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-item {
    min-height: auto;

    padding:
      1.5rem
      0;

    border-right: 0;

    border-bottom:
      1px solid
      var(--line-light);
  }

  .contact-item:nth-child(-n + 2) {
    border-bottom:
      1px solid
      var(--line-light);
  }

  .contact-item:nth-child(3) {
    padding-left: 0;
  }

  .contact-item:last-child {
    border-bottom: 0;
  }

  .contact-label {
    margin-bottom: 0.8rem;
  }

  .contact-actions {
    margin-top: 2rem;
  }


  /* FOOTER */

  .site-footer {
    grid-template-columns: 1fr;

    gap: 1rem;

    padding:
      2rem
      var(--page-x);
  }
}


/* =========================================================
   SMARTPHONE PICCOLI
   FINO A 390px
========================================================= */

@media (max-width: 390px) {

  :root {
    --page-x: 1rem;
  }

  .brand-main {
    font-size: 1.2rem;
  }

  .brand-secondary {
    font-size: 0.5rem;
  }

  .hero h1 {
    font-size:
      clamp(
        2.7rem,
        14vw,
        3.6rem
      );
  }

  .hero-description {
    font-size: 0.9rem;
  }

  .hero-actions {
    align-items: stretch;

    flex-direction: column;

    max-width: 220px;
  }

  .button {
    width: 100%;
  }

  .service-strip {
    gap: 1rem;

    font-size: 0.92rem;
  }

  .menu-item h4 {
    font-size: 1.1rem;
  }
}


/* =========================================================
   SCHERMI MOLTO BASSI
========================================================= */

@media (max-height: 650px) and (max-width: 1000px) {

  .hero {
    min-height: 500px;
  }

  .hero-content {
    top: 48%;
  }

  .hero h1 {
    font-size:
      clamp(
        2.8rem,
        9vw,
        4.4rem
      );
  }

  .hero-description {
    margin-top: 1rem;

    font-size: 0.9rem;
  }

  .hero-actions {
    margin-top: 1rem;
  }
}


/* =========================================================
   HOVER SOLO DOVE DISPONIBILE
========================================================= */

@media (hover: hover) {

  .menu-item h4 {
    transition:
      color 0.2s ease;
  }

  .menu-item:hover h4 {
    color: var(--orange);
  }

  .text-link {
    transition:
      opacity 0.2s ease;
  }

  .text-link:hover {
    opacity: 0.65;
  }
}


/* =========================================================
   ACCESSIBILITÀ
========================================================= */

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;

    animation: none !important;
  }
}

/* =========================================================
   LAYOUT RESPONSIVE — foto contenute e spazi proporzionati.
   Queste regole completano gli stili sopra senza cambiare la palette.
========================================================= */
:root {
  --page-x: max(24px, calc((100% - 1280px) / 2));
  --section-y: clamp(48px, 6vw, 88px);
}
section, section > div, article { min-width: 0; }
a:focus-visible, button:focus-visible { outline: 3px solid #f1a082; outline-offset: 4px; }
.site-header { gap: 16px; padding-inline: var(--page-x); background: var(--green); }
nav a { font: 1.05rem Georgia, serif; letter-spacing: 0; }
.brand-secondary { color: #f1a082; }

/* Il testo della prima sezione segue il flusso della pagina:
   può crescere senza uscire dalla foto quando aumenta lo zoom. */
.hero {
  display: flex; flex-direction: column; justify-content: center;
  height: auto; min-height: min(760px, calc(100svh - 114px));
  padding: clamp(60px, 8vw, 110px) var(--page-x) 110px;
}
.hero-content { position: relative; inset: auto; width: min(750px, 100%); transform: none; }
.hero h1 { font-size: clamp(3.4rem, 6.6vw, 6.5rem); line-height: 1; }
.hero-info { right: var(--page-x); }
.service-strip { min-height: 0; flex-wrap: wrap; padding: 18px 20px; gap: clamp(12px, 3vw, 40px); color: var(--green-dark); }
.button-primary { color: var(--green-dark); }
.button-primary:hover { color: white; }

.about-section { column-gap: clamp(28px, 5vw, 72px); row-gap: 24px; }
.about-image-wrapper { aspect-ratio: 5 / 4; }
.about-heading h2, .menu-heading h2, .contact-heading h2 {
  font-size: clamp(2.5rem, 4.3vw, 4.4rem); line-height: 1.06;
}
.about-lead { font-size: 1.3rem; }
.about-copy { font-size: .95rem; }
.section-label { color: var(--orange-dark); }
.section-label-light { color: var(--orange-dark); }

/* I quattro momenti diventano una fascia compatta. */
.moments-section { padding-block: 40px; }
.moments-heading { align-items: center; gap: 24px; margin-bottom: 24px; }
.moments-heading .section-label { margin: 0; }
.moments-heading h2 { font-size: clamp(1.7rem, 2.5vw, 2.3rem); line-height: 1.1; }
.moments-heading h2 br { display: none; }
.moments-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; border: 0; }
.moment-card, .moment-card:first-child, .moment-card:nth-child(3) {
  min-height: 0; padding: 20px 0 0; border: 0; border-top: 1px solid var(--line-light);
}
.moment-time { margin-bottom: 10px; }
.moment-card h3 { font-size: 1.65rem; margin-bottom: 10px; }
.moment-card > p:last-of-type { color: #d2d6c7; max-width: none; }
.moment-line { display: none; }

/* Ogni categoria occupa una riga, con i propri piatti affiancati. */
.menu-heading, .contact-heading { gap: 28px; margin-bottom: 36px; }
.menu-heading > p:last-child, .contact-heading > p:last-child { grid-row: auto; }
.menu-list { grid-template-columns: 1fr; gap: 32px; max-width: none; }
.menu-category { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(28px, 5vw, 72px); }
.menu-category-title { grid-column: 1 / -1; }
.menu-item { padding: 18px 0; gap: 16px; }
.menu-item p { font-size: .85rem; }
.menu-note { margin-top: 28px; padding-top: 16px; font-size: .73rem; }

/* Una scheda separata dal resto: la foto non determina più
   l'altezza della riga tramite le sue dimensioni originali. */
.aperitivo-section {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 0; margin: var(--section-y) var(--page-x);
  color: var(--green-dark);
}
.aperitivo-media { position: relative; min-height: 360px; aspect-ratio: auto; }
.aperitivo-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.aperitivo-content { padding: clamp(28px, 4vw, 54px); }
.aperitivo-content h2 { font-size: clamp(2.4rem, 3.6vw, 3.6rem); color: var(--green-dark); line-height: 1.05; }
.aperitivo-lead { margin: 22px 0 14px; font-size: 1.3rem; }
.aperitivo-content > p:not(.section-label) { margin-bottom: 14px; }
.aperitivo-details { margin: 10px 0 24px; }
.aperitivo-details strong { color: var(--green-dark); }
.text-link { min-height: 44px; align-items: center; }

/* Tre informazioni utili, senza celle lasciate vuote. */
.contact-section { padding-block: clamp(44px, 5vw, 64px); }
.contact-heading h2 { font-size: clamp(2.5rem, 4vw, 3.7rem); }
.contact-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; border-bottom: 0; }
.contact-item, .contact-item:first-child, .contact-item:nth-child(3) {
  min-height: 0; padding: 24px 0 0; border: 0;
}
.contact-item:nth-child(-n + 2) { border-bottom: 0; }
.contact-item .contact-label { margin-bottom: 12px; font-size: .7rem; }
.contact-item p { color: #d2d6c7; font-size: .95rem; }
.contact-item a { overflow-wrap: anywhere; }
.contact-actions { margin-top: 28px; }
.site-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px 28px; padding-block: 24px; color: #c4c8b9; }

@media (max-width: 1000px) {
  .brand { grid-row: 1; grid-column: 1; }
  .header-cta { grid-row: 1; grid-column: 2; }
  .menu-button { grid-row: 1; grid-column: 3; }
  nav { padding: 0 var(--page-x); max-height: calc(100dvh - var(--header-height)); overflow-y: auto; }
  nav a { padding: 18px 0; font-size: 1.25rem; }
  .hero { justify-content: flex-start; padding-top: 64px; min-height: min(780px, calc(100svh - 106px)); }
  .hero h1 { font-size: clamp(3.6rem, 8vw, 5.5rem); }
  .moments-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-image-wrapper { aspect-ratio: 3 / 4; }
}
@media (max-width: 800px) {
  .about-figure { width: 100%; }
  .about-image-wrapper { aspect-ratio: 4 / 3; }
  .moments-heading .section-label { margin-bottom: 12px; }
  .menu-heading { max-width: none; }
}
@media (max-width: 700px) {
  :root { --page-x: 20px; --section-y: 48px; }
  .site-header { grid-template-columns: minmax(0, 1fr) auto; }
  .header-cta { display: none; }
  .menu-button { grid-column: 2; }
  .hero { min-height: min(720px, calc(100svh - 106px)); padding: 48px var(--page-x) 36px; }
  .hero-content { inset: auto; width: 100%; transform: none; }
  .hero h1 { font-size: clamp(2.9rem, 10.5vw, 4.4rem); line-height: 1.02; }
  .hero-description { font-size: 1.06rem; margin-top: 22px; }
  .hero-actions { flex-direction: row; max-width: none; }
  .hero-actions .button { width: auto; }
  .service-strip { justify-content: center; gap: 12px; font-size: 1rem; }
  .moments-grid { gap: 24px 20px; }
  .moment-card h3 { font-size: 1.45rem; }
  .moment-card:last-child { border-top: 1px solid var(--line-light); }
  .menu-category { grid-template-columns: 1fr; }
  .menu-item h4 { font-size: 1.2rem; }
  .menu-item { padding-block: 16px; }
  .aperitivo-section { grid-template-columns: 1fr; }
  .aperitivo-media { min-height: 0; aspect-ratio: 4 / 3; }
  .aperitivo-content { padding: 28px 24px; }
  .aperitivo-content h2 { font-size: clamp(2.3rem, 8vw, 3.3rem); }
  .aperitivo-details { grid-template-columns: 1fr 1fr; gap: 16px; }
  .contact-grid { grid-template-columns: 1fr; gap: 0; }
  .contact-item, .contact-item:first-child, .contact-item:nth-child(3) { padding: 20px 0; border-bottom: 1px solid var(--line-light); }
  .contact-item:nth-child(-n + 2) { border-bottom: 1px solid var(--line-light); }
  .contact-item:last-child { border-bottom: 0; padding-bottom: 0; }
  .site-footer { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 360px) {
  :root { --page-x: 16px; }
  .service-strip { padding-inline: 12px; gap: 10px; font-size: .94rem; }
  .moments-grid, .aperitivo-details { grid-template-columns: 1fr; }
  .aperitivo-content { padding: 24px 18px; }
}
