:root { --header: 78px; --nav-h: 188px; --gutter: 18px; }

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  min-height: var(--header);
  padding: calc(22px + env(safe-area-inset-top)) var(--gutter) 0;
  color: #fff;
  background: transparent;
}
.head-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 100%;
  margin-inline: auto;
  box-sizing: border-box;
  gap: 12px;
  padding: 0;
  transition:
    max-width 0.5s cubic-bezier(0.65, 0.05, 0, 1),
    padding 0.5s cubic-bezier(0.65, 0.05, 0, 1),
    gap 0.5s cubic-bezier(0.65, 0.05, 0, 1);
}
.head-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(243, 238, 228, 0.96);
  clip-path: inset(0% 0% 100% 0% round 0px);
  pointer-events: none;
  transition: clip-path 0.5s cubic-bezier(0.65, 0.05, 0, 1);
}
.head-actions { position: relative; z-index: 1; display: flex; align-items: center; gap: 8px; }
.site-header.is-solid { background: transparent; }
.site-header.is-solid .head-bar {
  max-width: 19.5rem;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 6px 6px 18px;
  color: #241f1a;
  transition-duration: 1s;
}
.site-header.is-solid .head-bg {
  clip-path: inset(0% 0% 0% 0% round 999px);
  transition-duration: 1s;
}
.brand {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  transition: color 0.5s cubic-bezier(0.65, 0.05, 0, 1);
}
.site-header.is-solid .brand { gap: 0; transition-duration: 1s; }
.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  mix-blend-mode: screen;
  transition: filter 0.5s cubic-bezier(0.65, 0.05, 0, 1), width 0.5s cubic-bezier(0.65, 0.05, 0, 1), opacity 0.5s cubic-bezier(0.65, 0.05, 0, 1);
}
.site-header.is-solid .brand img { transition-duration: 1s; }
.brand .brand-word { width: auto; height: 34px; max-width: none; }
.site-header.is-solid .brand .brand-word { height: 26px; }
.site-header.is-solid .brand-face { width: 0; opacity: 0; margin: 0; }
.brand span {
  display: none;
  font-family: var(--display);
  letter-spacing: 0.04em;
  font-size: 1.05rem;
}
.nav-toggle,
.nav-dots {
  border: 0;
  cursor: pointer;
  font-family: var(--sans);
  font-weight: 500;
  transition:
    background-color 0.5s cubic-bezier(0.65, 0.05, 0, 1),
    color 0.5s cubic-bezier(0.65, 0.05, 0, 1);
}
.site-header.is-solid .nav-toggle,
.site-header.is-solid .nav-dots { transition-duration: 1s; }
.nav-dots img {
  width: 26px;
  height: 26px;
  transition: filter 0.5s cubic-bezier(0.65, 0.05, 0, 1);
}
.site-header.is-solid .nav-dots img { filter: invert(1); transition-duration: 1s; }
.nav-toggle {
  border-radius: 999px;
  background: #f4efe6;
  color: #241f1a;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  padding: 0.65em 1.15em;
}
.nav-dots {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #f4efe6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  text-decoration: none;
}
.site-header.is-solid .brand { color: #241f1a; }
.site-header.is-solid .brand img { filter: invert(1); mix-blend-mode: multiply; }
.site-header.is-solid .nav-toggle,
.site-header.is-solid .nav-dots { background: #2c2823; color: #f4efe6; }
.nav-panel {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--header) + 12px) var(--gutter) 28px;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.nav-panel.is-open { visibility: visible; opacity: 1; pointer-events: auto; }
.nav-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 40%, rgba(90, 42, 24, 0.45), transparent 42%),
    #100e0c;
}
.nav-aside { display: none; }
.nav-panel nav { position: relative; z-index: 1; }
.nav-panel ol { list-style: none; margin: 0; padding: 0; width: fit-content; }
.nav-panel li { position: relative; }
.nav-panel a {
  position: relative;
  display: block;
  color: #f4efe6;
  opacity: 0.34;
  text-decoration: none;
  font-family: var(--narrow);
  font-weight: 400;
  font-size: clamp(3.15rem, 10vw, 6.4rem);
  line-height: 0.92;
  letter-spacing: 0.02em;
}
.nav-panel a .label { display: inline-block; text-transform: uppercase; transition: transform 0.45s cubic-bezier(0.215, 0.61, 0.355, 1); }
.nav-panel a .idx {
  position: absolute;
  left: 0;
  top: 0.55em;
  font-family: var(--display);
  font-size: 0.22em;
  letter-spacing: 0.04em;
  color: var(--red);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.nav-panel a[aria-current="page"],
.nav-panel a:hover,
.nav-panel a:focus-visible { opacity: 1; }
.nav-panel a[aria-current="page"] .label,
.nav-panel a:hover .label,
.nav-panel a:focus-visible .label { transform: translateX(4.6rem); }
.nav-panel a[aria-current="page"] .idx,
.nav-panel a:hover .idx,
.nav-panel a:focus-visible .idx { opacity: 1; }
.nav-panel a:hover .label,
.nav-panel a:focus-visible .label {
  font-family: var(--sans);
  font-style: italic;
  font-weight: 300;
  text-transform: none;
  letter-spacing: 0;
}
.nav-extra {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35em;
  margin: 22px 0 0;
  color: rgba(244, 239, 230, 0.72);
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(0.82rem, 1.35vw, 1.35rem);
  letter-spacing: 0.04em;
  line-height: 1.2;
}
.nav-panel .nav-extra a {
  display: inline;
  color: inherit;
  opacity: 1;
  font-family: inherit;
  font-weight: inherit;
  font-size: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  text-transform: none;
}
.nav-panel .nav-extra a:hover,
.nav-panel .nav-extra a:focus-visible {
  color: #fff;
  font-style: normal;
  font-weight: 400;
}
.nav-foot {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
  color: rgba(244, 239, 230, 0.55);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
body.nav-open { overflow: hidden; }
body.nav-open .site-header,
body.nav-open .site-header.is-solid { background: transparent; color: #f4efe6; }
body.nav-open .site-header .head-bar,
body.nav-open .site-header.is-solid .head-bar {
  max-width: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
  color: #f4efe6;
  justify-content: space-between;
  transition-duration: 0.7s;
}
body.nav-open .head-bg,
body.nav-open .site-header.is-solid .head-bg {
  clip-path: inset(0% 0% 100% 0% round 0px);
  transition-duration: 0.45s;
}
body.nav-open .site-header .brand,
body.nav-open .site-header.is-solid .brand { color: #f4efe6; gap: 10px; }
body.nav-open .site-header .brand-face,
body.nav-open .site-header.is-solid .brand-face { width: 42px; opacity: 1; }
body.nav-open .brand img,
body.nav-open .site-header.is-solid .brand img { filter: none; mix-blend-mode: screen; }
body.nav-open .site-header .nav-toggle,
body.nav-open .site-header .nav-dots,
body.nav-open .site-header.is-solid .nav-toggle,
body.nav-open .site-header.is-solid .nav-dots { background: #f4efe6; color: #241f1a; }
body.nav-open .site-header .nav-dots img,
body.nav-open .site-header.is-solid .nav-dots img { filter: none; }

.hero {
  justify-content: flex-end;
  padding-top: calc(var(--header) + 12px);
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.cats {
  top: var(--header);
  z-index: 60;
  background: #f6f3ec;
}
.cats-scroll { padding-top: 4px; padding-bottom: 6px; }
.sec { scroll-margin-top: calc(var(--header) + 96px); }
#footer { display: none; }

body[data-page="home"] .site-header.is-solid { background: #f6f3ec; }
body[data-page="home"].nav-open .site-header,
body[data-page="home"].nav-open .site-header.is-solid { background: transparent; }

body.page-lunch .mode-nav,
body.page-studenti .mode-nav,
body.page-ottobre .mode-nav { margin-top: var(--header); }
body.page-lunch .site-header,
body.page-studenti .site-header,
body.page-ottobre .site-header { background: #f6f3ec; }
body.page-lunch.nav-open .site-header,
body.page-studenti.nav-open .site-header,
body.page-ottobre.nav-open .site-header,
body.page-lunch.nav-open .site-header.is-solid,
body.page-studenti.nav-open .site-header.is-solid,
body.page-ottobre.nav-open .site-header.is-solid { background: transparent; }
body.page-lunch:not(.nav-open) .site-header:not(.is-solid) .brand img.brand-word,
body.page-studenti:not(.nav-open) .site-header:not(.is-solid) .brand img.brand-word,
body.page-ottobre:not(.nav-open) .site-header:not(.is-solid) .brand img.brand-word {
  filter: invert(1);
  mix-blend-mode: multiply;
}
body.page-lunch:not(.nav-open) .site-header:not(.is-solid) .brand img.brand-face,
body.page-studenti:not(.nav-open) .site-header:not(.is-solid) .brand img.brand-face,
body.page-ottobre:not(.nav-open) .site-header:not(.is-solid) .brand img.brand-face {
  filter: none;
  mix-blend-mode: multiply;
}
body.page-lunch .lunch,
body.page-studenti .stu,
body.page-ottobre .stu { padding-top: 28px; }
.cats a[aria-current="page"] { color: var(--red); font-weight: 700; }

@media (max-width: 899px) {
  .brand .brand-word { max-width: 140px; height: auto; }
}
@media (min-width: 900px) {
  :root { --header: 78px; --nav-h: 196px; --gutter: 56px; }
  .hero-title { font-size: clamp(5.2rem, 9.4vw, 9.2rem); }
  .site-footer { margin-top: 96px; }
}
@media (min-width: 1100px) {
  .brand span { display: inline; }
}

.brand span { display: inline; font-family: var(--narrow); font-size: 1.45rem; letter-spacing: 0.01em; text-transform: lowercase; line-height: 1; }

.site-footer {
  background: #f3eee4;
  color: #241f1a;
  margin-top: 72px;
  padding: 48px var(--gutter) 0;
  overflow: hidden;
  text-align: left;
  border-top: 1px solid rgba(36, 31, 26, 0.22);
}
.footer-top { display: grid; gap: 28px 32px; align-items: start; }
.footer-photo { position: relative; width: 100%; }
.footer-photo > img { width: 100%; height: 220px; object-fit: cover; }
.footer-cta {
  position: absolute;
  left: 50%;
  top: 62%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 6px 0 16px;
  border-radius: 999px;
  background: #f0c84a;
  color: #241f1a;
  text-decoration: none;
  font-family: var(--sans);
  font-weight: 500;
  white-space: nowrap;
}
.footer-cta span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e2b42e;
}
.footer-cta img { width: 18px; height: 18px; }
.site-footer .city {
  margin: 0;
  font-family: var(--narrow);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.82rem;
  color: var(--red);
}
.footer-places { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 28px; }
.footer-places article { display: grid; gap: 6px; align-content: start; }
.footer-places h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.25rem;
  line-height: 1.15;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #241f1a;
}
.footer-places .name-short { display: none; }
.footer-places p { margin: 0; color: #241f1a; }
.footer-places a { color: var(--red); }
.footer-socials { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.footer-socials a {
  color: inherit;
  text-decoration: none;
  font-family: var(--narrow);
  font-size: clamp(1.55rem, 2.4vw, 2.05rem);
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
}
.footer-socials a:hover { color: var(--red); }
.footer-deliveroo {
  margin: 2px 0 0;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  line-height: 1.3;
  text-transform: none;
}
.footer-places .footer-deliveroo a {
  color: #241f1a;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  line-height: 1.3;
  text-transform: none;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
.footer-places .footer-deliveroo a:hover { color: var(--red); }
.footer-mark { position: relative; margin-top: 28px; }
.footer-word {
  display: block;
  width: 100vw;
  max-width: none;
  height: auto;
  margin: 0 0 -8.35vw calc(50% - 50vw);
  clip-path: inset(0 0 40% 0);
  opacity: 0.2;
  filter: invert(1);
  mix-blend-mode: multiply;
  pointer-events: none;
}
.footer-end {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 18px;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  box-sizing: border-box;
  padding: 16px var(--gutter) calc(16px + env(safe-area-inset-bottom));
  background: #f3eee4;
  border-top: 1px solid rgba(36, 31, 26, 0.16);
  font-size: 0.82rem;
  color: #241f1a;
}
.footer-end a { color: inherit; }
@media (max-width: 899px) {
  .footer-places article:last-child { text-align: right; }
  .footer-socials { justify-content: center; width: 100%; }
  .footer-end span:last-child { flex-basis: 100%; text-align: center; }
  .footer-places .name-long { display: none; }
  .footer-places .name-short { display: inline; }
  .nav-panel a { font-size: 5rem; }
}
@media (max-height: 699px) {
  .nav-panel a { font-size: calc(clamp(3.15rem, 10vw, 6.4rem) - 30px); }
}
@media (max-width: 899px) and (max-height: 699px) {
  .nav-panel a { font-size: calc(5rem - 30px); }
}
@media (min-width: 900px) {
  .site-footer { margin-top: 96px; padding: 72px var(--gutter) 0; }
  .footer-top { grid-template-columns: minmax(340px, 460px) 1fr auto; gap: 40px 56px; }
  .footer-photo > img { height: 250px; }
  .footer-socials { flex-direction: column; gap: 14px; }
  .footer-end { padding-left: calc(var(--gutter) + 10px); padding-right: calc(var(--gutter) + 10px); }
}
