@font-face {
  font-family: "Google Sans Flex";
  src: url("/fonts/GoogleSansFlex.woff2") format("woff2");
  font-weight: 300 1000;
  font-stretch: 75% 125%;
  font-display: swap;
}

/* Palette from the Carico brand sheet (Logo-Monogramma, page 6) */
:root {
  --black: #000;
  --white: #fff;
  --paper: #faf8f3;
  --red: #ff083c;
  --red-deep: #ba0010;
  --lime: #f0ff82;
  --taupe: #9c856b;
  --sand: #b6a993;
  --slate: #43515a;
  --blue: #21458c;
  --line: #2a2a2a;
  --ink: #0e0e0e;
  --surface: #161616;
  --text: #f2efe8;
  --muted: #a8a197;

  --font: "Google Sans Flex", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --header-h: 64px;
  --ease-out: cubic-bezier(.2, .8, .2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 64px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  font-variation-settings: "ROND" 0;
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--lime); color: var(--black); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: fixed; left: 12px; top: -60px; z-index: 200;
  background: var(--lime); padding: 10px 14px; font-weight: 700;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 26px;
  font-weight: 800; font-stretch: 115%;
  font-size: 14px; letter-spacing: .12em; text-transform: uppercase;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: background-color .2s, color .2s, transform .2s var(--ease-out), font-stretch .3s var(--ease-out);
}
.btn:hover { font-stretch: 125%; }
.btn:active { transform: translateY(1px); }
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: var(--black); }
.btn-black { background: var(--black); color: var(--white); }
.btn-black:hover { background: var(--white); color: var(--black); }
.btn-ghost { border-color: var(--white); color: var(--white); }
.btn-ghost:hover { background: var(--white); color: var(--black); }
.btn-link { color: var(--white); border: 0; text-decoration: underline; text-underline-offset: 6px; }
.btn-link:hover { color: var(--lime); }
.btn-small { min-height: 40px; padding: 0 16px; font-size: 13px; }
.btn-large { min-height: 60px; padding: 0 36px; font-size: 16px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center; gap: 24px;
  padding: 0 var(--gutter);
  padding-top: env(safe-area-inset-top);
  color: var(--white);
  transition: background-color .3s, box-shadow .3s;
}
.site-header.is-solid { background: var(--black); }

.header-mark { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.c-tile {
  width: 40px; height: 40px; display: grid; place-items: center;
  background: var(--black); border: 1.5px solid var(--white);
}
.c-spin { width: 24px; height: 24px; color: var(--white); will-change: transform; }
.header-word {
  font-weight: 950; font-stretch: 125%; font-size: 20px;
  text-transform: uppercase; letter-spacing: .02em;
  opacity: 0; transform: translateX(-8px);
  transition: opacity .3s, transform .3s var(--ease-out);
}
.site-header.is-solid .header-word { opacity: 1; transform: none; }

.header-nav { display: flex; gap: 28px; margin-left: auto; }
.header-nav a {
  text-decoration: none; font-weight: 600; font-size: 14px;
  letter-spacing: .1em; text-transform: uppercase;
  transition: color .2s, font-stretch .3s var(--ease-out);
}
.header-nav a:hover { color: var(--lime); font-stretch: 125%; }

.header-actions { display: flex; align-items: center; gap: 16px; }
.lang-switch { display: flex; border: 1.5px solid currentColor; }
.lang-switch button {
  background: none; border: 0; cursor: pointer;
  min-width: 40px; min-height: 36px;
  font-weight: 700; font-size: 13px; letter-spacing: .08em;
}
.lang-switch button[aria-pressed="true"] { background: var(--white); color: var(--black); }

.header-menu-link { display: none; }
@media (max-width: 820px) {
  .header-nav { display: none; }
  .header-menu-link {
    display: block; margin-left: auto; text-decoration: none;
    font-weight: 700; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; padding: 10px 4px;
  }
  .header-actions { gap: 10px; }
  .header-word { font-size: 17px; }
}
@media (max-width: 400px) {
  .header-word { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: grid; place-items: center;
  overflow: hidden; background: var(--black); color: var(--white);
  padding: calc(var(--header-h) + 24px) var(--gutter) 96px;
}
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .75; }
.hero-shade {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(0,0,0,.15) 0%, rgba(0,0,0,.55) 70%),
              linear-gradient(to bottom, rgba(0,0,0,.35), rgba(0,0,0,0) 30%, rgba(0,0,0,.6));
}
.hero-inner { position: relative; width: min(1100px, 100%); text-align: center; }

/* Logo: black bar + knocked-out letters. The under-strip is white so MILANO reads on video. */
.hero-logo { margin: 0 auto; }
.logo { width: 100%; height: auto; overflow: visible; }
.logo .logo-bar { fill: var(--black); transform-origin: 0 50%; transform-box: fill-box; }
.logo .logo-under { fill: var(--white); transform-origin: 100% 50%; transform-box: fill-box; }
.logo .l, .logo .s { transform-box: fill-box; transform-origin: 50% 100%; }
.logo .l { transform: translate(var(--mx, 0px), var(--my, 0px)); }

.js .logo .logo-bar { animation: bar-in .7s var(--ease-out) both; }
.js .logo .logo-under { animation: bar-in .6s .35s var(--ease-out) both; }
.js .logo .l { animation: letter-in .75s calc(.25s + var(--i) * .07s) var(--ease-out) both; }
.js .logo .s { animation: fade-up .5s calc(.8s + var(--i) * .05s) var(--ease-out) both; }

@keyframes bar-in { from { transform: scaleX(0); } }
@keyframes letter-in { from { translate: 0 110%; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(40%); } }

.hero-tagline {
  margin-top: 26px; font-size: clamp(15px, 1.8vw, 20px);
  font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
}
.hero-ctas { margin-top: 34px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.hero-ctas .btn-ghost { min-width: 240px; }
.js .hero-tagline, .js .hero-ctas { animation: fade-up .7s 1s var(--ease-out) both; }


/* ---------- Marquee ---------- */
.marquee { background: var(--lime); overflow: hidden; border-block: 2px solid var(--black); }
.marquee-track {
  display: flex; width: max-content; will-change: transform;
  padding: 14px 0;
}
.marquee-item {
  display: flex; align-items: center; gap: 28px; padding-right: 28px;
  font-weight: 950; font-stretch: 125%; font-size: clamp(20px, 3vw, 34px);
  text-transform: uppercase; white-space: nowrap; line-height: 1;
}
.marquee-item svg { width: .9em; height: .9em; flex: none; }

/* ---------- About ---------- */
.about {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 96px);
  align-items: center;
  max-width: 1280px; margin: 0 auto;
  padding: clamp(72px, 12vw, 160px) var(--gutter);
}
.eyebrow {
  font-weight: 700; font-size: 14px; letter-spacing: .16em; text-transform: uppercase; color: var(--red);
}
.display {
  font-weight: 950; font-stretch: 125%; line-height: .95;
  font-size: clamp(44px, 7vw, 104px); letter-spacing: -.02em;
  margin: 8px 0 28px; white-space: nowrap;
}
.lead { font-size: clamp(20px, 2.2vw, 26px); font-weight: 600; line-height: 1.3; margin-bottom: 20px; }
.about-text p + p { margin-top: 14px; }
.about-text p:not(.lead):not(.eyebrow):not(.hashtag) { color: var(--muted); max-width: 56ch; }
.hashtag { margin-top: 28px !important; font-weight: 800; font-stretch: 125%; color: var(--red); }

.about-figure { position: relative; }
.about-figure::before {
  content: ""; position: absolute; inset: 24px -24px -24px 24px; background: var(--red);
  transform: translate(calc(var(--shift, 0) * 1px), calc(var(--shift, 0) * -1px));
}
.about-figure img { position: relative; width: 100%; height: auto; }

@media (max-width: 820px) {
  .about { grid-template-columns: 1fr; }
  .about-figure { margin-right: 24px; }
}

/* ---------- Menu ---------- */
.menu-section {
  background: var(--ink); padding-top: clamp(64px, 10vw, 128px);
  /* /menu deep links: land with the title just under the header, not after the section padding */
  scroll-margin-top: calc(-48px - clamp(64px, 10vw, 128px));
}
.menu-head { text-align: center; padding: 0 var(--gutter); }
.bar-title {
  display: inline-block; background: var(--white); color: var(--black);
  font-weight: 950; font-stretch: 125%; text-transform: uppercase;
  font-size: clamp(40px, 8vw, 96px); line-height: 1; padding: .12em .35em .1em;
}
.menu-sub { margin: 18px auto 0; color: var(--muted); max-width: 48ch; }

.menu-nav-wrap {
  position: sticky; top: var(--header-h); z-index: 50;
  margin-top: clamp(40px, 6vw, 64px);
  display: flex; align-items: stretch; gap: 0;
  background: var(--ink); border-block: 1px solid #3a3a3a;
}
.menu-nav {
  flex: 1; display: flex; overflow-x: auto; scrollbar-width: none;
  scroll-snap-type: x proximity;
}
.menu-nav::-webkit-scrollbar { display: none; }
.menu-nav a {
  flex: none; display: flex; align-items: center;
  padding: 14px 20px; min-height: 52px;
  font-weight: 750; font-size: 14px; letter-spacing: .1em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap; scroll-snap-align: start;
  border-right: 1px solid var(--line);
  transition: background-color .2s, font-stretch .3s var(--ease-out);
}
.menu-nav a:hover { font-stretch: 120%; }
.menu-nav a[aria-current="true"] { background: var(--lime); color: var(--black); }

.menu-search { display: flex; max-width: 420px; margin: 28px auto 0; border: 1px solid #3a3a3a; }
.menu-search input {
  width: 100%; border: 0; background: transparent; padding: 0 16px;
  font: inherit; font-size: 16px; min-height: 48px; color: inherit;
}
.menu-search input::placeholder { color: var(--muted); }
.menu-search input:focus { outline: none; background: var(--surface); box-shadow: inset 0 -3px 0 var(--lime); }
@media (max-width: 700px) {
  .menu-nav a { padding: 0 16px; min-height: 48px; font-size: 13px; }
}

.menu-root { max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }
.menu-loading, .menu-empty { text-align: center; padding: 64px var(--gutter); color: var(--muted); }

.cat { padding-top: clamp(56px, 8vw, 96px); scroll-margin-top: calc(12px - clamp(56px, 8vw, 96px)); }
.cat-head { display: flex; flex-wrap: wrap; align-items: end; gap: 12px 24px; margin-bottom: 8px; }
.cat-title {
  background: var(--white); color: var(--black);
  font-weight: 950; font-stretch: 125%; text-transform: uppercase; line-height: 1;
  font-size: clamp(34px, 6vw, 68px); padding: .14em .3em .1em;
}
.cat-note { color: var(--muted); font-size: 15px; max-width: 60ch; padding-bottom: 6px; }

.sub { margin-top: 40px; }
.sub-title {
  display: flex; align-items: center; gap: 14px;
  font-weight: 850; font-stretch: 120%; text-transform: uppercase;
  font-size: 18px; letter-spacing: .08em; color: var(--red);
  margin-bottom: 8px;
}
.sub-title::after { content: ""; flex: 1; height: 1px; background: #3a3a3a; }
.sub-note { color: var(--muted); font-size: 15px; margin-bottom: 8px; }

.items { list-style: none; padding: 0; display: grid; column-gap: 56px; }
.items.two-col { grid-template-columns: 1fr 1fr; }
@media (max-width: 760px) { .items.two-col { grid-template-columns: 1fr; } }

.item { padding: 16px 0; border-bottom: 1px solid var(--line); }
.item-line { display: flex; align-items: baseline; gap: 10px; }
.item-name { font-weight: 700; font-size: 18px; line-height: 1.3; }
.item-lead { flex: 1; min-width: 16px; border-bottom: 2px dotted #4a4640; transform: translateY(-4px); }
.item-price {
  font-weight: 800; font-size: 18px; white-space: nowrap; font-variant-numeric: tabular-nums;
}
.item-desc { color: var(--muted); font-size: 15px; margin-top: 4px; max-width: 62ch; }
.item-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tag {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; font-weight: 700; letter-spacing: .06em; line-height: 1;
  padding: 5px 7px; border: 1.5px solid currentColor; color: var(--muted);
}
.tag-abv { color: var(--sand); }
button.tag { background: none; cursor: pointer; font-family: inherit; min-height: 28px; }
button.tag[aria-expanded="true"] { color: var(--text); }
.tag-soldout { background: var(--red); border-color: var(--red); color: var(--white); text-transform: uppercase; }
.item.is-soldout .item-name, .item.is-soldout .item-price { text-decoration: line-through; text-decoration-thickness: 2px; color: #6f6b66; }
.item.is-soldout .item-desc { color: #6f6b66; }
.item mark { background: var(--lime); color: var(--black); }

.js .cat { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
.js .cat.is-in { opacity: 1; transform: none; }

.allergens {
  max-width: 1180px; margin: clamp(64px, 10vw, 112px) auto 0; padding: 32px var(--gutter) clamp(64px, 10vw, 112px);
  border-top: 1px solid #3a3a3a;
}
.allergens h3 { font-weight: 900; font-stretch: 120%; text-transform: uppercase; font-size: 22px; margin-bottom: 8px; }
.allergens > p { color: var(--muted); font-size: 15px; max-width: 70ch; }
.allergen-list {
  list-style: none; padding: 0; margin: 20px 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px 24px;
  font-size: 15px;
}
.allergen-list b { display: inline-block; min-width: 28px; font-weight: 800; }
.small { font-size: 13px !important; }

/* ---------- Booking ---------- */
.book {
  position: relative; overflow: hidden;
  background: var(--red); color: var(--white);
  padding: clamp(80px, 14vw, 180px) var(--gutter);
}
.book-c {
  position: absolute; right: -6vw; top: 50%;
  width: min(60vw, 620px); color: var(--black); opacity: .9;
  transform: translateY(-50%) rotate(calc(var(--turn, 0) * 1deg));
}
.book-inner { position: relative; max-width: 1180px; margin: 0 auto; }
.book-title {
  font-weight: 1000; font-stretch: 125%; text-transform: uppercase;
  font-size: clamp(64px, 16vw, 220px); line-height: .85; letter-spacing: -.02em;
}
.book-lead { font-size: clamp(18px, 2vw, 24px); font-weight: 600; max-width: 32ch; margin: 24px 0 32px; }
.book-alt { margin-top: 20px; font-size: 15px; }
.book-alt a { font-weight: 700; }

/* ---------- Tiles (image grid, after lubnamilano.com / moebiusmilano.it) ---------- */
.tiles { display: grid; grid-template-columns: 1fr 1fr; }
.tile {
  position: relative; display: grid; place-items: center; overflow: hidden;
  aspect-ratio: 4 / 3; background: var(--black); color: var(--white); text-decoration: none;
}
.tile img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: brightness(.62); transition: transform 1.2s var(--ease-out), filter .6s;
}
.tile:hover img { transform: scale(1.05); filter: brightness(.8); }
.tile-label {
  position: relative; text-align: center; padding: 0 16px;
  font-weight: 800; font-stretch: 115%; text-transform: uppercase;
  font-size: clamp(22px, 3.2vw, 40px); letter-spacing: .14em; line-height: 1.1;
  transition: letter-spacing .5s var(--ease-out), font-stretch .5s var(--ease-out);
}
.tile:hover .tile-label { letter-spacing: .2em; font-stretch: 125%; }
.tile-red { background: var(--red); }
.tile-c {
  position: absolute; width: 38%; color: var(--black);
  /* --roll (0 -> 1) is set from scroll: the C rolls across the tile like a wheel */
  transform: translateX(calc((var(--roll, .5) - .5) * 110%)) rotate(calc(var(--roll, .5) * 540deg - 270deg));
  will-change: transform;
}
.tile-red .tile-label { mix-blend-mode: normal; }
@media (max-width: 640px) {
  .tile { aspect-ratio: 1; }
  .tile-label { font-size: 15px; letter-spacing: .1em; }
  .tile:hover .tile-label { letter-spacing: .1em; }
}

/* ---------- Footer (centred, contacts + hours) ---------- */
.site-footer {
  background: #1d1d1d; color: var(--text); text-align: center;
  padding: clamp(64px, 10vw, 112px) var(--gutter) calc(96px + env(safe-area-inset-bottom));
}
.footer-logo { width: min(300px, 80%); height: auto; margin: 0 auto; }
.footer-address { margin-top: 28px; font-size: 17px; }
.footer-social { margin-top: 10px; display: flex; gap: 20px; justify-content: center; font-size: 15px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--lime); }
.footer-cols {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
  max-width: 720px; margin: 56px auto 0; font-size: 15px;
}
.footer-cols h2 { font-size: 15px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 16px; }
.footer-cols p { line-height: 1.7; }
.footer-cols p:nth-of-type(odd) { color: var(--muted); }
.footer-cols div:first-child p { color: var(--text); }
.footer-cols .u { text-decoration: underline; text-underline-offset: 4px; font-weight: 700; }
.footer-legal { margin-top: 56px; font-size: 12px; color: #8c8780; }
.footer-legal p + p { margin-top: 4px; }
@media (max-width: 560px) { .footer-cols { grid-template-columns: 1fr; } }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .cat { opacity: 1; transform: none; }
  .hero-video { display: none; }
  .hero { background: #000 url("/images/hero-poster.webp") center / cover; }
}

@media (max-width: 700px) { html { scroll-padding-top: calc(var(--header-h) + 56px); } }
