/* ==========================================================================
   Caffè Bonanno: one stylesheet for the whole site.
   Mobile-first: base rules target phones, @media (min-width) adds up.
   Palette from the logo (toasted hazelnut, custard drop, pistachio leaf)
   and the brochure (kraft paper, espresso-brown lettering).
   ========================================================================== */

/* ---------- 0. Fonts ---------- */

/* Self-hosted (OFL licensed): no request to Google, and the first paint isn't held up. */
@font-face {
  font-family: "Bodoni Moda";
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/bodoni-moda-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Bodoni Moda";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/bodoni-moda-normal-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url("../fonts/jost-normal-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- 1. Tokens ---------- */

:root {
  --espresso-950: #1a0f08;
  --espresso-900: #2a190f;
  --espresso-800: #3b2415;
  --espresso-700: #50311d;
  --espresso-600: #653f24;
  --espresso-500: #7d5231;

  --caramel-300: #f0b36a;
  --caramel-400: #e3913a;
  --caramel-500: #c8680a;
  --caramel-600: #a8550a;
  --caramel-700: #86430d;

  --crema-50: #fdf9f1;
  --crema-100: #faf1e0;
  --crema-200: #f3e3c4;

  --natale-500: #a3262a;
  --natale-700: #6e1519;
  --natale-800: #4a0e13;
  /* A warm, saturated gold, like the foil on a panettone box. */
  --oro-300: #f6c453;
  --oro-400: #e9a92c;

  /* The menu's opening: bottle green, like the windows of the old pastry shops. */
  --bottiglia-800: #1a4630;
  --bottiglia-950: #0a2015;

  /* The catering's opening: a party night. */
  --notte-800: #1a2f62;
  --notte-950: #0a1430;

  /* Bodoni: Italian (Parma), the face of classic pastry labels.
     Jost: a Futura revival, the geometric sans of mid-century Italian bar signs;
     its round letters echo the Bonanno logo. */
  --font-display: "Bodoni Moda", "Bodoni 72", Didot, Georgia, serif;
  --font-sans: "Jost", Futura, system-ui, -apple-system, "Segoe UI", sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --gutter: clamp(1.25rem, 5vw, 2.5rem);
  --max: 76rem;
  --header-h: 4.5rem;
  --day-nav-h: 4rem; /* the menu's line of the day */
  --radius: 0.5rem;
  --radius-sm: 4px;
  --section-y: clamp(4.5rem, 10vw, 7.5rem);
  --ribbon-drop: 3.842vw; /* tan(2.2deg) x 100vw: how far a ribbon rises across the page */

  /* Paper grain: grey specks read darker on cream and lighter on espresso. */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .42 0 0 0 0 .34 1.8 0 0 0 -.62'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- 2. Base ---------- */

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

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  overflow-x: clip;
}

body {
  min-height: 100svh;
  overflow-x: clip;
  background: var(--crema-50);
  color: var(--espresso-900);
  font-family: var(--font-sans);
  font-size: 1.075rem;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

::selection {
  background: var(--caramel-300);
  color: var(--espresso-950);
}

:focus-visible {
  outline: 2px solid var(--caramel-400);
  outline-offset: 3px;
  border-radius: 4px;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

[hidden] {
  display: none !important;
}

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

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--caramel-400);
  color: var(--espresso-950);
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

/* ---------- 3. Type & layout helpers ---------- */

.container {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}

.section {
  position: relative;
  padding-block: var(--section-y);
}

.eyebrow {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--caramel-600);
}

.on-dark .eyebrow {
  color: var(--caramel-300);
}

.display-1 {
  font-size: clamp(3rem, 12.5vw, 7.25rem);
  font-weight: 400;
  line-height: 0.98;
}

.display-2 {
  font-size: clamp(2.1rem, 5.4vw, 3.5rem);
}

.display-3 {
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
}

.lead {
  font-size: clamp(1.1rem, 2.2vw, 1.3rem);
  line-height: 1.65;
}

.on-dark {
  color: var(--crema-100);
}

.muted {
  color: var(--espresso-600);
}

.on-dark .muted {
  color: rgb(250 241 224 / 0.72);
}

/* ---------- 4. Textures ---------- */

.grain {
  position: relative;
  isolation: isolate;
}

.grain::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: var(--grain);
  opacity: 0.32;
}

.paper {
  background-color: var(--crema-200);
}

/* Band of Sicilian majolica tiles, redrawn in the brand palette. */
.tiles {
  height: 3.5rem;
  background: url("../img/maiolica.svg") center / 3.5rem repeat-x;
  border-block: 3px solid var(--espresso-800);
}

/* Printed-menu rule between two sections on the same paper: hairlines and the menus' ornament. */
.section-rule {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--caramel-600);
}

.section-rule::before,
.section-rule::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgb(134 67 13 / 0.3);
}

.section-rule svg {
  flex: none;
  width: 4.75rem;
}

/* ---------- 5. Buttons & chips ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3.25rem;
  padding: 0.85rem 1.6rem;
  border: 1.5px solid transparent;
  border-radius: var(--radius-sm);
  background: none;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform 0.2s,
    background-color 0.3s,
    border-color 0.3s,
    color 0.3s;
}

.btn svg {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  transition: transform 0.45s var(--ease);
}

.btn:hover .i-arrow {
  transform: translateX(4px);
}

.btn:active {
  transform: scale(0.98);
}

.btn-lg {
  min-height: 3.6rem;
  padding-inline: 1.9rem;
  font-size: 1.05rem;
}

.btn-sm {
  min-height: 2.6rem;
  padding: 0.5rem 1.15rem;
  font-size: 0.92rem;
}

.btn-caramel {
  background: var(--caramel-400);
  color: var(--espresso-950);
}

/* A touch lighter on hover, but kept saturated: the paler caramel-300 looked washed out on the dark sections. */
.btn-caramel:hover {
  background: #f2a24a;
}

.btn-dark {
  background: var(--espresso-900);
  color: var(--crema-100);
}

.btn-dark:hover {
  background: var(--espresso-700);
}

.btn-outline {
  border-color: var(--espresso-900);
  color: var(--espresso-900);
}

.btn-outline:hover {
  background: var(--espresso-900);
  color: var(--crema-100);
}

.btn-ghost {
  border-color: rgb(250 241 224 / 0.35);
  color: var(--crema-100);
}

.btn-ghost:hover {
  border-color: rgb(250 241 224 / 0.8);
  background: rgb(250 241 224 / 0.08);
}

/* Caramel outline: the hero's menu, plainly visible but second to the red panettoni; it fills in on hover. */
.btn-line {
  border-color: var(--caramel-400);
  color: var(--caramel-300);
}

.btn-line:hover {
  background: var(--caramel-400);
  color: var(--espresso-950);
}

/* Christmas red: the homepage's panettoni action, echoing the red section right below the hero. */
.btn-natale {
  border-color: var(--natale-500);
  background: var(--natale-500);
  color: var(--crema-50);
}

.btn-natale:hover {
  border-color: var(--oro-400);
  background: var(--natale-700);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

@media (max-width: 29.99rem) {
  .actions--stack-sm .btn {
    flex: 1 1 100%;
  }
}

/* ---------- 6. Header & mobile menu ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  color: var(--crema-100);
  transition:
    background-color 0.4s,
    box-shadow 0.4s,
    backdrop-filter 0.4s;
}

.site-header.is-solid,
.site-header.is-scrolled {
  background: rgb(26 15 8 / 0.84);
  box-shadow: 0 1px 0 rgb(240 179 106 / 0.14);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
}

.menu-open .site-header {
  background: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-right: auto;
  text-decoration: none;
}

.brand img {
  width: 2.35rem;
  height: auto;
}

.brand-name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.01em;
}

.brand-tag {
  display: block;
  margin-top: 0.3rem;
  color: var(--caramel-300);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.main-nav {
  display: none;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

.main-nav a {
  position: relative;
  padding-block: 0.4rem;
  font-size: 0.95rem;
  font-weight: 400;
  text-decoration: none;
}

.main-nav a::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: var(--caramel-300);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease);
}

.main-nav a:hover::after,
.main-nav a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* The menu, last on the right: the one filled button in the header (wide screens only). */
.main-nav .nav-menu {
  padding: 0.5rem 1.3rem;
  font-size: 0.92rem;
  font-weight: 500;
}

.main-nav .nav-menu::after {
  content: none;
}

/* The season's label beside Shop: gold, like the Christmas section; it comes off after the holidays. */
.nav-season {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.15rem 0.4rem;
  border: 1px solid var(--oro-400);
  border-radius: 2px;
  color: var(--oro-300);
  font-family: var(--font-sans);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
  vertical-align: 0.25em;
}

.mobile-menu .nav-season {
  font-size: 0.7rem;
  vertical-align: 0.6em;
}

/*
 * The order's bag, at the header's right end (before the menu button on phones), on every page: how
 * many products are in the order, and the way to it.
 */
.cart-link {
  position: relative;
  display: grid;
  place-items: center;
  width: 2.9rem;
  height: 2.9rem;
  margin-right: -0.25rem;
  border-radius: var(--radius-sm);
  transition: color 0.3s;
}

.cart-link:hover {
  color: var(--caramel-300);
}

.cart-link svg {
  width: 1.45rem;
}

.cart-link__count {
  position: absolute;
  top: 0.3rem;
  right: 0.2rem;
  display: grid;
  place-items: center;
  min-width: 1.15rem;
  height: 1.15rem;
  padding-inline: 0.25rem;
  border-radius: 999px;
  background: var(--caramel-400);
  color: var(--espresso-950);
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1;
}

.cart-link__count[hidden] {
  display: none;
}

/* A small hop when something goes into the order. */
.cart-link.is-bumped .cart-link__count {
  animation: cart-bump 0.45s var(--ease);
}

@keyframes cart-bump {
  40% {
    transform: scale(1.35);
  }
}

@media (min-width: 62rem) {
  .cart-link {
    margin-left: 0.75rem;
  }
}

.menu-toggle {
  display: grid;
  place-items: center;
  width: 2.9rem;
  height: 2.9rem;
  border: 1px solid rgb(250 241 224 / 0.3);
  border-radius: var(--radius-sm);
  background: rgb(26 15 8 / 0.25);
  cursor: pointer;
}

.menu-toggle__bars,
.menu-toggle__bars::before {
  display: block;
  width: 1.1rem;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.5s var(--ease);
}

.menu-toggle__bars {
  position: relative;
  transform: translateY(-3px);
}

.menu-toggle__bars::before {
  content: "";
  position: absolute;
  top: 6px;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bars {
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before {
  transform: translateY(-6px) rotate(-90deg);
}

@media (min-width: 62rem) {
  .main-nav {
    display: block;
  }

  .menu-toggle {
    display: none;
  }
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  padding: calc(var(--header-h) + 2rem) var(--gutter) calc(2rem + env(safe-area-inset-bottom));
  overflow-y: auto;
  background: var(--espresso-950);
  color: var(--crema-100);
  clip-path: circle(0% at calc(100% - var(--gutter) - 1.45rem) calc(var(--header-h) / 2));
  visibility: hidden;
  transition:
    clip-path 0.7s var(--ease),
    visibility 0s 0.7s;
}

.mobile-menu.is-open {
  clip-path: circle(150% at calc(100% - var(--gutter) - 1.45rem) calc(var(--header-h) / 2));
  visibility: visible;
  transition: clip-path 0.8s var(--ease);
}

.mobile-menu li {
  opacity: 0;
  transform: translateY(1.25rem);
  transition:
    opacity 0.5s,
    transform 0.6s var(--ease);
}

.mobile-menu.is-open li {
  opacity: 1;
  transform: none;
  transition-delay: calc(0.15s + var(--i, 0) * 0.07s);
}

.mobile-menu nav a {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding-block: 0.55rem;
  border-bottom: 1px solid rgb(240 179 106 / 0.15);
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 11vw, 3.4rem);
  font-weight: 400;
  line-height: 1.1;
  text-decoration: none;
}

.mobile-menu__foot {
  display: grid;
  gap: 1rem;
  font-size: 0.95rem;
  color: rgb(250 241 224 / 0.7);
}

/* ---------- 7. Home hero & the espresso cup ---------- */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100svh;
  padding: calc(var(--header-h) + 0.5rem) 0 4.5rem;
  overflow: hidden;
  background: var(--espresso-950);
  color: var(--crema-100);
}

.hero__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(60% 34% at 50% 24%, rgb(200 104 10 / 0.34), transparent 70%);
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.5rem;
}

.hero__visual {
  position: relative;
  order: -1;
}

.hero__eyebrow {
  animation: rise 1s 0.15s var(--ease) both;
}

.hero__title {
  margin-top: 1.1rem;
  font-size: clamp(3rem, 12.5vw, 6rem);
}

.hero__title .line {
  display: block;
  padding-bottom: 0.1em;
  margin-bottom: -0.1em;
  overflow: hidden;
}

.hero__title .line > span {
  display: block;
  animation: line-up 1.1s var(--ease) both;
}

.hero__title .line:nth-child(1) > span {
  animation-delay: 0.25s;
}

.hero__title .line:nth-child(2) > span {
  animation-delay: 0.38s;
}

.hero__title em {
  color: var(--caramel-300);
}

.hero__lead {
  max-width: 34rem;
  margin-top: 1.4rem;
  animation: rise 1s 0.55s var(--ease) both;
}

.hero .actions {
  margin-top: 2rem;
  animation: rise 1s 0.7s var(--ease) both;
}

.hero__scroll {
  position: absolute;
  bottom: calc(1.9vw + 3.75rem);
  left: 50%;
  z-index: 1;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  color: rgb(250 241 224 / 0.6);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-decoration: none;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.hero__scroll span {
  width: 1px;
  height: 2.75rem;
  background: linear-gradient(var(--caramel-300), transparent);
  transform-origin: top;
  animation: drip 2.4s var(--ease) infinite;
}

@media (min-width: 62rem) {
  .hero {
    padding-bottom: 6rem;
  }

  .hero__glow {
    background: radial-gradient(34% 46% at 74% 45%, rgb(200 104 10 / 0.34), transparent 70%);
  }

  .hero__grid {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 3rem;
  }

  .hero__visual {
    order: 0;
  }

  .hero__scroll {
    display: flex;
  }
}

/* Small laptops: a wider text column, so the two hero buttons still sit side by side;
   the text then reaches the bottom of the screen, where the scroll cue would sit on the buttons. */
@media (min-width: 62rem) and (max-width: 74.99rem) {
  .hero__grid {
    grid-template-columns: 1.3fr 0.7fr;
  }

  .hero__scroll {
    display: none;
  }
}

/* The cup, seen from above: saucer, cup, espresso, slowly turning crema. */
.cup {
  position: relative;
  width: min(80vw, 23rem);
  aspect-ratio: 1;
  margin: 0 auto -0.5rem;
  animation: cup-in 1.6s 0.1s var(--ease) both;
  transform: translate(calc(var(--mx, 0) * 6px), calc(var(--my, 0) * 6px));
}

@media (min-width: 62rem) {
  .cup {
    width: min(100%, 37rem);
    margin: 0 0 0 auto;
  }
}

/*
 * Phones: the cup sits above the text, with room enough that its turning lettering doesn't touch the
 * eyebrow. The buttons come right after the title and the intro text moves below them, so the
 * panettoni and the menu (the header has no button) are on screen without scrolling.
 */
@media (max-width: 61.99rem) {
  .cup {
    margin-bottom: 1.25rem;
  }

  .hero__copy {
    display: flex;
    flex-direction: column;
  }

  .hero .actions {
    order: 1;
    margin-top: 1.5rem;
  }

  .hero__lead {
    order: 2;
  }
}

/* Short phone screens, including TikTok's and Instagram's in-app browsers (their bars eat the height): a smaller cup. */
@media (max-width: 61.99rem) and (max-height: 50rem) {
  .cup {
    width: min(80vw, 23rem, 32svh);
    margin-bottom: 0.75rem;
  }
}

/* The shortest screens (iPhone SE first generation, cramped in-app browsers): a smaller cup still. */
@media (max-width: 61.99rem) and (max-height: 40rem) {
  .cup {
    width: min(80vw, 23svh);
  }

  .hero .actions {
    margin-top: 1.25rem;
  }
}

.cup__ring {
  position: absolute;
  inset: 0;
  overflow: visible;
  color: var(--caramel-300);
  animation: spin 70s linear infinite;
}

.cup__ring text {
  fill: currentColor;
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.cup__saucer {
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: radial-gradient(circle at 36% 30%, #fffdf8 0%, #f6ecdc 42%, #e4d2b4 72%, #cdb28c 100%);
  box-shadow:
    40px 60px 80px -20px rgb(0 0 0 / 0.7),
    inset -10px -16px 30px rgb(120 80 40 / 0.28),
    inset 8px 10px 18px rgb(255 255 255 / 0.75);
}

.cup__saucer::after {
  content: "";
  position: absolute;
  inset: 11%;
  border-radius: 50%;
  box-shadow:
    inset 0 0 0 1.5px rgb(160 120 80 / 0.16),
    inset 8px 12px 22px rgb(120 80 40 / 0.16);
}

.cup__handle {
  position: absolute;
  inset: 0;
  transform: rotate(28deg);
}

.cup__handle::before {
  content: "";
  position: absolute;
  top: 45.5%;
  right: 13%;
  width: 16%;
  height: 9%;
  border-radius: 2rem;
  background: linear-gradient(180deg, #fffdf8, #e9dcc6 60%, #cdb28c);
  box-shadow:
    10px 16px 20px -6px rgb(40 20 5 / 0.5),
    inset 0 -3px 5px rgb(120 80 40 / 0.2);
}

.cup__body {
  position: absolute;
  inset: 26%;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #fff 0%, #f5ecdf 55%, #dcc6a3 100%);
  box-shadow:
    22px 30px 36px -8px rgb(40 20 5 / 0.55),
    inset -6px -10px 16px rgb(120 80 40 / 0.22),
    inset 3px 4px 8px rgb(255 255 255 / 0.9);
}

.cup__coffee {
  position: absolute;
  inset: 8.5%;
  overflow: hidden;
  border-radius: 50%;
  background: #3b1c0a;
  box-shadow:
    inset 0 8px 16px rgb(0 0 0 / 0.55),
    inset 0 0 0 2px rgb(60 30 10 / 0.5);
}

.cup__crema {
  width: 100%;
  height: 100%;
  animation: spin 110s linear infinite reverse;
}

.cup__coffee::after {
  content: "";
  position: absolute;
  top: 12%;
  left: 16%;
  width: 34%;
  height: 16%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(255 240 220 / 0.38), transparent);
  transform: rotate(-32deg);
  animation: glint 6s ease-in-out infinite;
}

/* Resting on the saucer rim below the cup, tangent to it, handle towards the cup's handle. */
.cup__spoon {
  position: absolute;
  top: 80.5%;
  left: 44.6%;
  width: 29%;
  transform: translate(-50%, -50%) rotate(10deg);
  filter: drop-shadow(0 1px 0.5px rgb(40 20 5 / 0.35)) drop-shadow(4px 6px 5px rgb(40 20 5 / 0.3));
}

.steam {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 34%;
  height: 58%;
  pointer-events: none;
  transform: translate(-50%, -92%);
}

.steam span {
  position: absolute;
  bottom: 0;
  left: 25%;
  width: 50%;
  height: 60%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(255 250 240 / 0.55), transparent);
  filter: blur(10px);
  opacity: 0;
  animation: steam 7s ease-in-out infinite;
}

.steam span:nth-child(2) {
  left: 5%;
  animation-delay: 2.3s;
}

.steam span:nth-child(3) {
  left: 45%;
  animation-delay: 4.6s;
}

.bean {
  position: absolute;
  width: var(--s, 2.5rem);
  transform: translate(calc(var(--mx, 0) * var(--depth, 20px)), calc(var(--my, 0) * var(--depth, 20px))) rotate(var(--r, 0deg));
  filter: drop-shadow(6px 10px 8px rgb(0 0 0 / 0.5));
  animation: float 9s ease-in-out infinite;
}

.bean--blur {
  filter: blur(3px);
  opacity: 0.85;
}

/* ---------- 8. Ticker bands ---------- */

/*
 * Each ribbon straddles the join between two sections. The lower section's
 * top edge is cut on the ribbon's angle, so the ribbon hides the join along
 * its whole length, at any screen width. --reverse tilts the other way.
 * --ribbon-drop (in :root) is how far the cut rises across the page.
 */
.ticker-wrap {
  position: relative;
  z-index: 3;
  height: 0;
  pointer-events: none;
}

.ticker-wrap + section {
  margin-top: calc(-1 * var(--ribbon-drop));
  clip-path: polygon(0 var(--ribbon-drop), 100% 0, 100% 100%, 0 100%);
}

.ticker {
  padding-block: 0.8rem;
  background: var(--caramel-400);
  color: var(--espresso-950);
}

.ticker-wrap .ticker {
  position: absolute;
  top: calc(var(--ribbon-drop) / -2);
  left: -5%;
  width: 110%;
  box-shadow: 0 18px 32px -20px rgb(26 15 8 / 0.55);
  transform: translateY(-50%) rotate(-2.2deg);
}

.ticker-wrap--reverse + section {
  clip-path: polygon(0 0, 100% var(--ribbon-drop), 100% 100%, 0 100%);
}

.ticker-wrap--reverse .ticker {
  transform: translateY(-50%) rotate(2.2deg);
}

.ticker__track {
  display: flex;
  width: max-content;
  animation: marquee 144s linear infinite; /* 3 groups per loop, ~48s each */
}

.ticker-wrap--reverse .ticker__track {
  animation-direction: reverse;
  animation-duration: 112s; /* 4 groups per loop, ~28s each */
}

/* The ribbon closing the Christmas sections: on the home, with the one above, it wraps the red section like a gift. */
.ticker--natale .ticker__track {
  animation-duration: 92s; /* 2 groups per loop, ~46s each: same pace as the other ribbons */
}

/*
 * The ribbons closing the menu's and the catering's openings: the caramel of the other ribbons, with a
 * star (the toast's spark) between the words.
 */
.ticker--stelle {
  overflow: hidden; /* the words beyond its ends are cut, so contrast checkers don't read them on the page */
}

.ticker--stelle .ticker__track {
  animation-duration: 100s; /* 2 groups per loop, ~50s each: a longer group, the same pace */
}

.ticker--stelle i {
  flex: none;
  width: 0.8rem;
  aspect-ratio: 1;
  background: currentColor;
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
  opacity: 0.85;
}

.ticker__track span {
  padding-inline: 1.1rem;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 4vw, 2.35rem);
  font-style: italic;
  line-height: 1.2;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.ticker__track i {
  align-self: center;
  font-style: normal;
  font-size: 1.6rem;
  line-height: 1;
  opacity: 0.7;
}

/* ---------- 9. Story ---------- */
/* No heading here: the brochure's own opening line is set large, like a printed lede. */

/* Half the usual bottom space: the rule opening the next section finishes the gap. */
.story {
  padding-bottom: calc(var(--section-y) / 2);
  overflow: hidden;
}

.story__bignum {
  position: absolute;
  top: 1rem;
  right: -3vw;
  z-index: -1;
  color: transparent;
  font-family: var(--font-display);
  font-size: clamp(15rem, 52vw, 36rem);
  font-weight: 400;
  line-height: 0.8;
  letter-spacing: -0.04em;
  -webkit-text-stroke: 1.5px rgb(168 85 10 / 0.26);
  pointer-events: none;
  user-select: none;
}

.story__grid {
  display: grid;
  gap: 2.5rem;
}

.story__lede {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.9vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.story__body {
  max-width: 34rem;
}

.story__sign {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgb(134 67 13 / 0.25);
  color: var(--espresso-800);
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-style: italic;
  line-height: 1.3;
}

.story__sign img {
  width: 3.25rem;
  flex: none;
}

@media (min-width: 62rem) {
  .story__grid {
    grid-template-columns: 1.35fr 1fr;
    column-gap: 5rem;
    align-items: center;
  }

  /* Side by side the section is short: the big 19 hangs from the bottom instead, so it ends
     above the rule and its cut-off top stays hidden under the ribbon. */
  .story__bignum {
    top: auto;
    bottom: 0;
  }

  /* The ribbon above slopes down to the right and the rule below is level: the right
     column sits a little lower, so both stay centred between them. */
  .story__body {
    translate: 0 calc(var(--ribbon-drop) * 0.24);
  }
}

/* ---------- 10. A day at Bonanno: stacking cards ---------- */

/*
 * Straight after the story, on the same paper: the section opens with its rule instead of
 * its top padding. It also tucks 1px under the story, or at a fractional join the lighter
 * page background shows through as a hairline.
 */
.story + .day {
  margin-top: -1px;
  padding-top: 0;
}

.day .section-rule {
  margin-bottom: clamp(3rem, 7vw, 5rem);
}

.day__head {
  max-width: 44rem;
  margin-bottom: 3rem;
}

.day__list {
  display: grid;
}

/* No paper between the cards: each one already overlaps the one before, as it will once they stack. */
.day-card + .day-card {
  margin-top: -0.75rem;
}

/* Low cards: the dish sits beside the text instead of above it, so the stack stays short. */
.day-card {
  position: sticky;
  top: calc(var(--header-h) + 0.75rem + var(--i) * 0.9rem);
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "top   top"
    "title art"
    "text  text"
    "items items";
  align-items: center;
  gap: 0.75rem 1rem;
  padding: 1.5rem 1.5rem 2.25rem;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--fg);
  box-shadow: 0 -18px 50px -30px rgb(42 25 15 / 0.55);
}

.day-card > *,
.day-card__text > * {
  position: relative;
  z-index: 1;
}

.day-card__top {
  grid-area: top;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.day-card__top .eyebrow {
  color: inherit;
  opacity: 0.8;
}

.day-card__num {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-style: italic;
  opacity: 0.7;
}

.day-card__art {
  grid-area: art;
  display: grid;
  place-items: center;
}

/* On phones the text's parts join the card's grid, so the name sits beside the dish. */
.day-card__text {
  grid-area: text;
  display: contents;
}

/* Sized to the phone's width, so the longest name still fits on one line beside the dish. */
.day-card h3 {
  grid-area: title;
  font-size: clamp(2rem, 9vw, 3.75rem);
  font-weight: 400;
}

.day-card p {
  grid-area: text;
  max-width: 30rem;
  opacity: 0.85;
}

.day-card .day-card__items {
  grid-area: items;
  padding-top: 0.9rem;
  border-top: 1px solid currentColor;
  border-color: color-mix(in srgb, currentColor 30%, transparent);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.75;
}

.day-card--mattina {
  --bg: #fcedcb;
  --fg: var(--espresso-900);
}

.day-card--mezzogiorno {
  --bg: #f8d7a0;
  --fg: var(--espresso-900);
}

.day-card--pomeriggio {
  --bg: #efb97e;
  --fg: var(--espresso-950);
}

.day-card--sera {
  --bg: #24150c;
  --fg: var(--crema-100);
}

.stars {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 18%, #fdf3dc, transparent),
    radial-gradient(1px 1px at 28% 8%, #fdf3dc, transparent),
    radial-gradient(1.5px 1.5px at 44% 22%, #fdf3dc, transparent),
    radial-gradient(1px 1px at 58% 6%, #fdf3dc, transparent),
    radial-gradient(1px 1px at 66% 30%, #fdf3dc, transparent),
    radial-gradient(1.5px 1.5px at 92% 36%, #fdf3dc, transparent),
    radial-gradient(1px 1px at 6% 40%, #fdf3dc, transparent);
  opacity: 0.8;
  pointer-events: none;
}

/* The dish is drawn straight on the card, like a menu's illustration. */
.day-card__img {
  width: clamp(4.5rem, 22vw, 6rem);
  transition: transform 1.2s var(--ease);
}

.day-card:hover .day-card__img {
  transform: rotate(-4deg) scale(1.03);
}

@media (min-width: 48rem) {
  .day-card {
    grid-template-columns: 1.1fr 1fr;
    grid-template-areas:
      "top  top"
      "text art";
    gap: 1rem 3rem;
    padding: 2rem 3rem 2.75rem;
  }

  .day-card__text {
    display: block;
  }

  .day-card h3 {
    font-size: clamp(2.2rem, 6vw, 3.75rem);
  }

  .day-card p {
    margin-top: 0.75rem;
  }

  .day-card .day-card__items {
    margin-top: 1.25rem;
  }

  .day-card__img {
    width: min(16vw, 11rem);
  }
}

/* ---------- 11. Catering teaser ---------- */

.dark {
  background: var(--espresso-950);
  color: var(--crema-100);
}

.cat-teaser__grid {
  display: grid;
  gap: 3.5rem;
}

/* "catering" in the title, in the hero's caramel italic. */
.cat-teaser h2 em {
  color: var(--caramel-300);
}

/* The dish under its cloche (styled with the catering page's .serve), on the right on wide screens. */
.cat-teaser .cat-teaser__serve {
  --away: 20%; /* a short path: the cloche stays on screen and clear of the buttons */
  --rise: -8%;
  --tip: 8deg;
  justify-self: center;
  width: min(100%, 14rem);
  margin-top: 1rem;
}

@media (min-width: 62rem) {
  .cat-teaser__grid {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 6rem;
    align-items: center;
  }

  .cat-teaser .cat-teaser__serve {
    width: min(100%, 20rem);
  }
}

/* ---------- 12. Christmas ---------- */

.xmas {
  position: relative;
  overflow: hidden;
  background: var(--natale-800);
  color: var(--crema-100);
}

.xmas .eyebrow {
  color: var(--oro-300);
}

/* Falling gold dust: two tiled layers drifting at different speeds. */
.dust,
.dust::after {
  position: absolute;
  inset: -240px 0 0;
  pointer-events: none;
  background-image:
    radial-gradient(2px 2px at 20px 30px, var(--oro-300), transparent),
    radial-gradient(1.5px 1.5px at 90px 150px, #fff4d6, transparent),
    radial-gradient(2.5px 2.5px at 160px 80px, var(--oro-400), transparent),
    radial-gradient(1.5px 1.5px at 210px 200px, var(--oro-300), transparent),
    radial-gradient(1px 1px at 60px 210px, #fff4d6, transparent);
  background-size: 240px 240px;
  opacity: 0.55;
  animation: dust 16s linear infinite;
}

.dust::after {
  content: "";
  background-position: 110px 40px;
  opacity: 0.6;
  filter: blur(1px);
  animation-duration: 26s;
}

.xmas-teaser__grid {
  position: relative;
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.showpiece {
  position: relative;
  width: min(80vw, 26rem);
  aspect-ratio: 1;
  margin-inline: auto;
}

.showpiece__img {
  position: absolute;
  inset: 8% 10% 4%;
  width: 80%;
  animation: float 7s ease-in-out infinite;
}

@media (min-width: 62rem) {
  .xmas-teaser__grid {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 5rem;
  }
}

/* ---------- 12b. Reviews ---------- */

/*
 * Reviews from Google, set like small printed cards on the paper: who it's about in small capitals,
 * the stars, the words in Bodoni under a large quote mark, and the reviewer below a hairline. The
 * printed-menu rule closes the section, as the visit below is on the same paper.
 */
.reviews {
  padding-bottom: 0;
}

.reviews + .visit {
  margin-top: -1px; /* no hairline of the page's background at a fractional join */
}

.reviews__head {
  max-width: 44rem;
  margin-bottom: 2.5rem;
}

.reviews__head h2 {
  margin-top: 0.75rem;
}

.reviews .eyebrow {
  color: var(--caramel-700);
}

/* The reviews in a row that scrolls sideways; on wide screens two arrows move it a card at a time. */
.reviews__list {
  display: flex;
  gap: 1.5rem;
  margin-inline: calc(-1 * var(--gutter));
  padding: 0.5rem var(--gutter) 1.25rem;
  overflow-x: auto;
  scroll-padding-inline: var(--gutter);
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: rgb(134 67 13 / 0.35) transparent;
}

.reviews__list:focus-visible {
  outline-offset: -2px;
}

.reviews__list > li {
  flex: 0 0 min(88%, 23rem);
  scroll-snap-align: start;
}

/* Wide cards on larger screens: shorter, two at a time and the next one showing. */
@media (min-width: 48rem) {
  .reviews__list > li {
    flex-basis: min(80%, 32rem);
  }

  .review figure {
    padding: 1.6rem 2rem 1.4rem;
  }
}

/* Under the row: the link to Google on the left, the arrows level with it on the right. */
.reviews__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.25rem;
}

.reviews__foot .reviews__more {
  margin-top: 0;
}

.reviews__nav {
  display: none;
  gap: 0.5rem;
}

.reviews__nav button {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1.5px solid var(--espresso-900);
  border-radius: 50%;
  background: transparent;
  color: var(--espresso-900);
  cursor: pointer;
  transition:
    background-color 0.25s,
    color 0.25s,
    opacity 0.25s;
}

.reviews__nav button:hover:not(:disabled) {
  background: var(--espresso-900);
  color: var(--crema-50);
}

.reviews__nav button:disabled {
  opacity: 0.3;
  cursor: default;
}

.reviews__nav svg {
  width: 1.15rem;
}

@media (min-width: 48rem) {
  .js .reviews__nav {
    display: flex;
  }
}

/* The cards are as tall as the longest review: the reviewer always sits at the bottom. */
.review figure {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  margin: 0;
  padding: 1.4rem 1.4rem 1.2rem;
  border-radius: var(--radius);
  background: var(--crema-50);
  box-shadow:
    0 1px 2px rgb(42 25 15 / 0.08),
    0 14px 28px -20px rgb(42 25 15 / 0.35);
}

.review figure::before {
  content: "“";
  position: absolute;
  top: 0.25rem;
  right: 1.25rem;
  color: var(--caramel-300);
  font-family: var(--font-display);
  font-size: 5.5rem;
  line-height: 1;
  pointer-events: none;
}

.review__about {
  padding-right: 3rem;
  color: var(--caramel-700);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.review__stars {
  margin-top: 0.6rem;
  color: var(--caramel-500);
  font-size: 1rem;
  letter-spacing: 0.15em;
}

.review blockquote {
  margin: 0.7rem 0 1rem;
}

.review blockquote p {
  color: var(--espresso-900);
  font-family: var(--font-display);
  font-size: clamp(1.04rem, 1.6vw, 1.12rem);
  line-height: 1.55;
}

.review figcaption {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid rgb(134 67 13 / 0.18);
}

.review__avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--espresso-800);
  color: var(--crema-100);
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.review figcaption strong {
  display: block;
  font-weight: 500;
  line-height: 1.3;
}

.review figcaption small {
  color: var(--espresso-500);
  font-size: 0.82rem;
}

.reviews__more {
  margin-top: 2rem;
}

.reviews__more a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--espresso-900);
  font-weight: 500;
  text-underline-offset: 0.25em;
}

.reviews__more svg {
  width: 1.1em;
  transition: transform 0.45s var(--ease);
}

.reviews__more a:hover svg {
  transform: translateX(4px);
}

/* The rule ends the section; the visit's own top space follows it. Without its bottom margin (which
   would otherwise run out of the section and show the page's background between the two papers). */
.section-rule--gap.reviews__rule {
  margin-bottom: 0;
}

/* ---------- 13. Visit & postcard ---------- */

.visit__grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

.contact-list {
  display: grid;
  gap: 0.25rem;
  margin-top: 2rem;
  border-top: 1px solid rgb(80 49 29 / 0.15);
}

.contact-list a {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-block: 0.8rem;
  border-bottom: 1px solid rgb(80 49 29 / 0.15);
  text-decoration: none;
  transition: color 0.3s;
}

.contact-list a:hover {
  color: var(--caramel-600);
}

.contact-list svg {
  width: 1.25rem;
  flex: none;
  color: var(--caramel-600);
}

.contact-list small {
  display: block;
  color: var(--espresso-500);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* Kept small, so it accompanies the address instead of outweighing the section. */
.postcard {
  position: relative;
  display: grid;
  gap: 1rem;
  max-width: 20rem;
  margin-inline: auto;
  padding: 0.9rem;
  border-radius: 6px;
  background: var(--crema-50);
  box-shadow:
    0 40px 70px -30px rgb(42 25 15 / 0.55),
    0 2px 6px rgb(42 25 15 / 0.08);
  transform: rotate(-2.5deg);
  transition: transform 0.9s var(--ease);
}

.postcard:hover {
  transform: rotate(-1deg) translateY(-6px);
}

.postcard__img {
  position: relative;
  overflow: hidden;
  border-radius: 3px;
}

.postcard__img img {
  width: 100%;
}

.postcard__greeting {
  position: absolute;
  top: 7%;
  left: 6%;
  color: var(--espresso-800);
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 6vw, 2.4rem);
  font-style: italic;
  line-height: 1;
}

.postcard__greeting small {
  display: block;
  margin-bottom: 0.35rem;
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-style: normal;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.postcard__back {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  padding: 0.25rem 0.4rem 0.4rem;
}

.postcard__note {
  padding-right: 1.75rem;
  color: var(--espresso-700);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-style: italic;
  line-height: 1.35;
}

.stamp {
  position: relative;
  width: 5.25rem;
  aspect-ratio: 4 / 5;
  padding: 7px;
  background: radial-gradient(circle, transparent 3.2px, var(--caramel-400) 3.6px) -5px -5px / 10px 10px;
  transform: rotate(4deg);
}

.stamp__inner {
  display: grid;
  place-items: center;
  height: 100%;
  background: var(--caramel-400);
  box-shadow: inset 0 0 0 2px var(--crema-50);
}

.stamp__inner img {
  width: 62%;
}

.postmark {
  position: absolute;
  top: -0.6rem;
  right: 2.4rem;
  width: 5.75rem;
  color: rgb(80 49 29 / 0.55);
  transform: rotate(-14deg);
  pointer-events: none;
}

.postmark text {
  fill: currentColor;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
}

@media (min-width: 62rem) {
  .visit__grid {
    grid-template-columns: 1.25fr 1fr;
    gap: 5rem;
  }

  .postcard {
    max-width: 25rem;
  }
}

/* Wide enough for the email in half a column: the four contacts go two by two. */
@media (min-width: 75rem) {
  .contact-list {
    grid-template-columns: 1fr 1fr;
    column-gap: 2.5rem;
  }
}

/* ---------- 14. Footer & mobile action bar ---------- */

.site-footer {
  background: var(--espresso-950);
  color: rgb(250 241 224 / 0.75);
  font-size: 0.95rem;
}

/*
 * Phones: the brand centred on top as an emblem, then the pages and the contacts side by side in
 * two even columns, aligned left the way lists read best; the closing lines are centred again.
 */
.footer__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.5rem 1.5rem;
  padding-block: 3.5rem 2.5rem;
}

.footer__brand {
  grid-column: 1 / -1;
  text-align: center;
}

/* A fixed width: as a percentage, the grid would size its column from the logo file's 640px. */
.footer__badge {
  display: grid;
  place-items: center;
  width: 15rem;
  max-width: 100%;
  margin-inline: auto;
  padding: 1.75rem 2rem;
  border-radius: 999px;
  background: var(--crema-100);
  box-shadow:
    inset 0 0 0 6px var(--crema-100),
    inset 0 0 0 7px rgb(134 67 13 / 0.3);
}

.footer__brand p {
  margin-top: 1.25rem;
  margin-inline: auto;
  max-width: 20rem;
}

.site-footer h2 {
  margin-bottom: 1rem;
  color: var(--caramel-300);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

/* Opening hours, under the contacts. */
.site-footer .footer__subhead {
  margin-top: 1.75rem;
}

.footer__hours {
  line-height: 1.6;
}

.site-footer li + li {
  margin-top: 0.55rem;
}

.site-footer a {
  text-decoration: none;
  transition: color 0.3s;
}

.site-footer a:hover {
  color: var(--caramel-300);
}

/*
 * Social profiles, in the footer and the phone menu: the logos alone, solid, in the footer's
 * cream. The padding keeps a comfortable tap size; the negative margin keeps the logos
 * themselves in line with the text around them.
 */
.socials {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  margin: -0.6rem;
}

.socials a {
  display: block;
  padding: 0.6rem;
  color: rgb(250 241 224 / 0.8);
  transition: color 0.3s;
}

.socials a:hover {
  color: var(--caramel-300);
}

.socials svg {
  width: 1.45rem;
}

.footer__brand .socials {
  justify-content: center;
  margin-top: 0.9rem;
}

/* The footer spaces the items of its link lists; these sit in a row instead. */
.socials li + li {
  margin-top: 0;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  /* Room for the phone action bar (3.75rem tall, 0.75rem off the edge) and a little air. */
  padding-block: 1.5rem calc(5.75rem + env(safe-area-inset-bottom));
  border-top: 1px solid rgb(240 179 106 / 0.14);
  color: rgb(250 241 224 / 0.55);
  font-size: 0.82rem;
}

/* Privacy, cookies and the conditions of sale: a full row above the credit. */
.footer__legal {
  display: flex;
  flex-basis: 100%;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 0.6rem;
}

.footer__legal a {
  text-underline-offset: 0.2em;
}

.footer__legal a:hover,
.footer__legal a[aria-current] {
  color: var(--crema-100);
}

/*
 * The designer's credit, the footer's last line: on hover or focus the name gives way to the
 * email, and a click copies it. Both texts share one grid cell, so the line never changes width.
 */
.footer__credit {
  flex-basis: 100%;
  text-align: center;
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-wrap: balance;
}

.credit {
  display: inline-grid;
  padding: 0.5rem 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-align: inherit;
  /* Browsers set buttons to text-transform: none, which would drop the line's capitals. */
  text-transform: inherit;
  cursor: pointer;
}

.credit > span {
  grid-area: 1 / 1;
  transition: opacity 0.3s;
}

.credit__email {
  opacity: 0;
}

.credit:hover .credit__name,
.credit:focus-visible .credit__name,
.credit.is-copied .credit__name {
  opacity: 0;
}

.credit:hover .credit__email,
.credit:focus-visible .credit__email,
.credit.is-copied .credit__email {
  opacity: 1;
}

/*
 * Wider screens: the columns are as wide as their content and spread edge to edge, so the
 * links end on the right margin like the line below them. Tablets keep the brand on its own row.
 */
@media (min-width: 48rem) {
  .footer__grid {
    grid-template-columns: auto auto;
    justify-content: space-between;
    gap: 3rem;
    padding-block: 4.5rem 3rem;
  }

  .footer__badge {
    width: 17rem;
  }

  .footer__brand {
    text-align: start;
  }

  .footer__badge,
  .footer__brand p {
    margin-inline: 0;
  }

  .footer__brand .socials {
    justify-content: flex-start;
  }

  .footer__bottom {
    justify-content: space-between;
  }
}

@media (min-width: 62rem) {
  .footer__grid {
    grid-template-columns: auto auto auto;
  }

  .footer__brand {
    grid-column: auto;
  }

  .footer__bottom {
    padding-bottom: 2rem;
  }
}

.action-bar {
  position: fixed;
  right: 0.75rem;
  bottom: calc(0.75rem + env(safe-area-inset-bottom));
  left: 0.75rem;
  z-index: 40;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.25rem;
  padding: 0.35rem;
  border: 1px solid rgb(240 179 106 / 0.22);
  border-radius: 10px;
  background: rgb(26 15 8 / 0.9);
  box-shadow: 0 20px 40px -12px rgb(0 0 0 / 0.55);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transform: translateY(160%);
  transition: transform 0.6s var(--ease);
}

.action-bar.is-visible {
  transform: none;
}

.action-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.9rem;
  border-radius: 7px;
  color: var(--crema-100);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
}

.action-bar svg {
  width: 1.05rem;
}

.action-bar .is-primary {
  background: var(--caramel-400);
  color: var(--espresso-950);
}

@media (min-width: 62rem) {
  .action-bar {
    display: none;
  }
}

/* ---------- 15. Inner pages ---------- */

/*
 * The openings of the inner pages, each in its own colour (green menu, night-blue catering, red
 * panettoni) and closed by a caramel ribbon, like the home's hero.
 */
.page-hero {
  position: relative;
  overflow: hidden;
  background: var(--espresso-950);
  color: var(--crema-100);
}

.page-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2.5rem;
  align-items: center;
  padding-block: calc(var(--header-h) + 2.5rem) 3.5rem;
}

.page-hero__copy > * {
  animation: rise 1s var(--ease) both;
}

.page-hero__copy > :nth-child(2) {
  animation-delay: 0.1s;
}

.page-hero__copy > :nth-child(3) {
  animation-delay: 0.2s;
}

.page-hero__copy > :nth-child(4) {
  animation-delay: 0.3s;
}

.page-hero h1 {
  margin-top: 1rem;
  font-size: clamp(2.6rem, 8vw, 4.5rem);
  font-weight: 400;
  line-height: 1;
}

.page-hero .lead {
  max-width: 36rem;
  margin-top: 1.25rem;
}

.page-hero .actions {
  margin-top: 2rem;
}

@media (min-width: 62rem) {
  .page-hero__grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 4rem;
    padding-block: calc(var(--header-h) + 4rem) 4.5rem;
  }
}

/*
 * The panettoni's and the catering's openings fill the screen like the home's, their content centred,
 * so moving between the pages the opening keeps its size (the menu keeps its own).
 */
.page-hero.xmas,
.page-hero--catering {
  display: flex;
  align-items: center;
  min-height: 100svh;
}

/*
 * Phones: the first screen ends just above the ribbon, which waits right under its edge. The opening
 * is the screen plus how far the ribbon's highest point rises above the opening's foot (its tilt and
 * half its height), plus a small gap. The home keeps its own height.
 */
@media (max-width: 61.99rem) {
  .page-hero.xmas,
  .page-hero--catering,
  .page-hero--menu {
    --ribbon-reach: calc(var(--ribbon-drop) * 1.05 + 0.8rem + clamp(1.45rem, 4vw, 2.35rem) * 0.6);
    display: flex;
    align-items: center;
    min-height: calc(100svh + var(--ribbon-reach) + 0.75rem);
  }
}

/* Heading of a paper section on the inner pages. */
.section-head {
  max-width: 44rem;
  margin-bottom: 3rem;
}

.section-head .lead {
  margin-top: 1rem;
}

/* The printed-menu rule between two blocks of the same paper section. */
.section-rule--gap {
  margin-block: clamp(3.5rem, 8vw, 5.5rem);
}

/* Small capitals over a heading. */
.kicker {
  color: var(--caramel-600);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* ---------- 16. Menu page ---------- */

/*
 * The opening: bottle green, a warm light over a turning majolica plate and icing sugar falling,
 * as the gold dust falls on the panettoni. The plate carries the day's dishes (assets/js/main.js).
 */
.page-hero--menu {
  background:
    radial-gradient(40% 55% at 74% 60%, rgb(240 179 106 / 0.2), transparent 72%),
    radial-gradient(130% 100% at 50% 0%, var(--bottiglia-800), var(--bottiglia-950) 80%);
}

.page-hero--menu h1 {
  font-size: clamp(3.6rem, 13vw, 7rem);
}

.page-hero--menu h1 em {
  color: var(--caramel-300);
}

/* Icing sugar: two tiled layers falling at different speeds. */
.sugar,
.sugar::after {
  position: absolute;
  inset: -240px 0 0;
  pointer-events: none;
  background-image:
    radial-gradient(1.6px 1.6px at 30px 40px, #fffdf6, transparent),
    radial-gradient(1.2px 1.2px at 110px 170px, #fff, transparent),
    radial-gradient(2px 2px at 180px 90px, #fdf3df, transparent),
    radial-gradient(1.2px 1.2px at 220px 220px, #fff, transparent),
    radial-gradient(1px 1px at 70px 200px, #fffdf6, transparent);
  background-size: 240px 240px;
  opacity: 0.5;
  animation: dust 22s linear infinite;
}

.sugar::after {
  content: "";
  inset: -330px 0 0;
  background-size: 330px 330px;
  background-position: 120px 60px;
  opacity: 0.6;
  filter: blur(1.2px);
  animation: sugar 34s linear infinite;
}

@keyframes sugar {
  to {
    transform: translateY(330px);
  }
}

/*
 * The plate, on a stage 640 × 440 of its own units, with its centre at 260. The face, its side, its
 * shadow and the shine on the glaze are squares the width of the stage, flattened by --k because the
 * plate is seen from a little above; only the face turns, by --turn, and --shift follows the pointer.
 * The script stands the dishes on it; the positions in the page are the still plate's.
 */
.turntable {
  --k: 0.4;
  --turn: -36deg;
  --shift: 0px;
  position: relative;
  width: min(100%, 38rem);
  margin-inline: auto;
  animation: rise 1.2s 0.2s var(--ease) both;
}

.turntable__stage {
  position: relative;
  aspect-ratio: 640 / 440;
  cursor: grab;
  touch-action: pan-y; /* a sideways drag turns the plate; an upward one still scrolls the page */
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  container-type: inline-size;
}

.turntable.is-dragging .turntable__stage {
  cursor: grabbing;
}

.turntable__face,
.turntable__side,
.turntable__shadow,
.turntable__sheen {
  position: absolute;
  top: calc(-60 / 440 * 100%);
  left: 0;
  width: 100%;
  aspect-ratio: 1;
  pointer-events: none;
}

.turntable__face {
  height: auto;
  overflow: visible;
  transform: translateX(var(--shift)) scaleY(var(--k)) rotate(var(--turn));
}

/* The plate's edge, seen below the face, and its shadow on the dark. */
.turntable__side,
.turntable__shadow,
.turntable__sheen {
  border-radius: 50%;
}

.turntable__side {
  background: linear-gradient(#e6cc9f, #a8865a 70%, #7d6040);
  transform: translateX(var(--shift)) translateY(calc(16 / 640 * 100%)) scaleY(var(--k)) scale(0.9375); /* the plate's 300 of the square's 320 */
}

.turntable__shadow {
  background: radial-gradient(closest-side, rgb(2 12 6 / 0.75), rgb(2 12 6 / 0.35) 65%, transparent);
  filter: blur(14px);
  transform: translateX(var(--shift)) translateY(calc(58 / 640 * 100%)) scaleY(var(--k)) scale(0.9375);
}

/* The light on the glaze stays where it is while the plate turns under it. */
.turntable__sheen {
  background:
    radial-gradient(30% 20% at 32% 26%, rgb(255 255 255 / 0.6), transparent 72%),
    radial-gradient(60% 40% at 70% 80%, rgb(255 255 255 / 0.12), transparent 70%);
  transform: translateX(var(--shift)) scaleY(var(--k)) scale(0.9375);
}

.turntable__words {
  fill: var(--caramel-600);
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/*
 * A dish: its drawing stands on the plate where its foot is, smaller towards the back. It is placed by
 * its transform alone (the script changes only that), so the turning plate never moves the layout.
 */
.turntable__dish {
  position: absolute;
  top: 0;
  left: 0;
  width: calc(var(--w) * 34%);
  transform-origin: 50% calc((1 - var(--foot)) * 100%);
  transform: translate(calc(var(--px) * 100cqw / 640), calc(var(--py) * 100cqw / 640))
    translate(-50%, calc((var(--foot) - 1) * 100%)) scale(var(--s));
  pointer-events: none; /* the box is larger than the drawing: only its hit area takes the pointer */
  transition: translate 0.4s var(--ease);
}

.turntable__hit {
  position: absolute;
  border-radius: 40%;
  pointer-events: auto;
  cursor: pointer;
}

.turntable__dish:hover {
  translate: 0 -0.4rem;
}

.turntable__dish img {
  position: relative;
  width: 100%;
  height: auto;
  pointer-events: none;
}

.turntable__dish::before {
  content: "";
  position: absolute;
  top: calc((1 - var(--foot)) * 100% - 5%);
  right: 16%;
  left: 16%;
  height: 10%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(110 70 25 / 0.45), transparent);
}

/* The cappuccino steams. */
.turntable__steam {
  position: absolute;
  top: -8%;
  left: 30%;
  z-index: 1;
  width: 40%;
  height: 50%;
  pointer-events: none;
}

.turntable__steam span {
  position: absolute;
  bottom: 0;
  left: 15%;
  width: 70%;
  height: 70%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(255 250 240 / 0.5), transparent);
  filter: blur(6px);
  opacity: 0;
  animation: steam 6s ease-in-out infinite;
}

.turntable__steam span + span {
  left: -5%;
  animation-delay: 3s;
}

.turntable__hint {
  margin-top: -1.5rem;
  color: var(--caramel-300);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-align: center;
  text-transform: uppercase;
  opacity: 0.75;
  transition: opacity 0.6s;
}

.turntable__hint::before,
.turntable__hint::after {
  content: "";
  display: inline-block;
  width: 1.75rem;
  height: 1px;
  margin-inline: 0.75rem;
  background: currentColor;
  opacity: 0.5;
  vertical-align: middle;
}

.turntable.was-turned .turntable__hint {
  opacity: 0;
}

html:not(.js) .turntable__hint {
  display: none;
}

/* The words fit the hand: dragged with a mouse, swiped with a finger. */
.turntable__hint-touch {
  display: none;
}

@media (hover: none) {
  .turntable__hint-mouse {
    display: none;
  }

  .turntable__hint-touch {
    display: inline;
  }
}

/* Phones: the plate above the title, as the cup on the home. */
@media (max-width: 61.99rem) {
  .page-hero--menu .page-hero__grid {
    gap: 1.25rem;
    padding-top: calc(var(--header-h) + 1rem);
  }

  .page-hero--menu .turntable {
    order: -1;
    width: min(100%, 30rem);
  }

  /* Under the plate, clear of its rim. */
  .page-hero--menu .turntable__hint {
    margin-top: 0.25rem;
  }

  /* The buttons right after the title, the words below them, as on the other pages. */
  .page-hero--menu .page-hero__copy {
    display: flex;
    flex-direction: column;
  }

  .page-hero--menu .actions {
    order: 1;
    margin-top: 1.5rem;
  }

  .page-hero--menu .lead {
    order: 2;
  }
}

/* Short phone screens and in-app browsers: a smaller plate, so the buttons come up sooner. */
@media (max-width: 61.99rem) and (max-height: 50rem) {
  .page-hero--menu .turntable {
    width: min(100%, 30rem, 50svh);
  }
}

@media (min-width: 62rem) {
  .page-hero--menu .page-hero__grid {
    grid-template-columns: 0.85fr 1.15fr;
    gap: 2rem;
  }
}

/*
 * The line of the day: four moments, dawn to night. It is drawn up into the foot of the opening, clear
 * on the green, above the ribbon (the opening keeps room for both), and scrolls away with it.
 */
.page-hero--menu {
  padding-bottom: calc(var(--day-nav-h) + var(--ribbon-drop) + 2.75rem);
}

/* The menu starts below the ribbon. */
.ticker-wrap + .menu {
  padding-top: calc(var(--ribbon-drop) + 2.5rem);
}

.day-nav {
  position: relative;
  z-index: 4;
  --ribbon-room: calc(var(--ribbon-drop) + 2.75rem); /* the ribbon's reach above the opening's foot */
  height: var(--day-nav-h);
  margin-top: calc(-1 * (var(--day-nav-h) + var(--ribbon-room)));
  margin-bottom: var(--ribbon-room);
}

.day-nav ol {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 100%;
}

.day-nav ol::before {
  content: "";
  position: absolute;
  top: calc(0.8rem + 0.425rem - 1px);
  right: 12.5%;
  left: 12.5%;
  height: 2px;
  background: linear-gradient(90deg, #f3cf93, #efb97e 62%, rgb(250 241 224 / 0.3)); /* fading into the night */
}

.day-nav a {
  position: relative;
  display: grid;
  align-content: start;
  justify-items: center;
  height: 100%;
  gap: 0.4rem;
  padding: 0.8rem 0.25rem 0.75rem;
  color: rgb(250 241 224 / 0.8);
  font-size: 0.8rem;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: color 0.3s;
}

.day-nav__dot {
  width: 0.85rem;
  height: 0.85rem;
  border: 1.5px solid rgb(250 241 224 / 0.85);
  border-radius: 50%;
  background: var(--dot);
  transition: transform 0.4s var(--ease);
}

.day-nav a::after {
  content: "";
  position: absolute;
  right: 30%;
  bottom: -1px;
  left: 30%;
  height: 2px;
  background: var(--caramel-300);
  transform: scaleX(0);
  transition: transform 0.4s var(--ease);
}

.day-nav a:hover,
.day-nav a[aria-current] {
  color: var(--crema-50);
}

.day-nav a[aria-current] {
  font-weight: 500;
}

.day-nav a[aria-current] .day-nav__dot {
  transform: scale(1.4);
}

.day-nav a[aria-current]::after {
  transform: scaleX(1);
}

@media (min-width: 48rem) {
  .day-nav a {
    font-size: 0.92rem;
  }
}

/*
 * The coffee down the side of the menu: the moka pours above the first panel and, as the page
 * scrolls (main.js sets --poured), the stream runs down the right margin to the cup at the bottom.
 * Without the script, or with reduced motion, it is all poured already.
 */
.menu__body {
  --moka-w: 9.75rem;
  --tip-y: 5.6rem; /* the spout's tip, from the top of the menu */
  --cup-w: 8rem;
  --lane: 0px; /* extra room on the right for the coffee, where the margin is narrow */
  position: relative;
  padding-right: var(--lane);
  padding-bottom: var(--section-y);
}

/* The cup rests on the footer's majolica band, at the very end of the menu (its saucer ends 10%
   above its picture's foot, hence the small overhang). */
.drip {
  --edge: calc(var(--lane) + max(var(--gutter), (100% - var(--lane) - var(--max)) / 2)); /* where the panels end */
  position: absolute;
  top: var(--tip-y);
  bottom: calc(var(--cup-w) * -0.1);
  right: max(var(--cup-w) * 0.36, var(--edge) - clamp(1rem, var(--edge) / 2.5, 1.9rem));
  z-index: 2;
  width: 0;
  pointer-events: none;
}

.drip img {
  max-width: none;
}

/* Mirrored and tilted round the tip of its spout (45, 50.5 in the drawing), which stays on the
   stream: the moka leans in over the panels from the right. */
.drip__moka {
  position: absolute;
  top: calc(var(--moka-w) * -0.2525);
  left: calc(var(--moka-w) * -0.225);
  width: var(--moka-w);
  transform-origin: 22.5% 25.25%;
  /* main.js tips it from upright (--tilt 0) as the menu comes up; upright, it stands a little higher,
     clear of the first panel, and comes down as it tips. */
  translate: 0 calc((1 - var(--tilt, 1)) * var(--moka-w) * -0.52);
  rotate: calc(var(--tilt, 1) * 58deg);
  scale: -1 1;
}

/* The cup's rim sits 54% up from its foot: the stream ends just inside it, on the far side
   from the handle, so the cup stands in the margin. */
.drip__cup {
  position: absolute;
  bottom: 0;
  left: calc(var(--cup-w) * -0.66);
  width: var(--cup-w);
  aspect-ratio: 1;
}

.drip__cup img {
  position: absolute;
  inset: 0;
  width: 100%;
}

.drip__full {
  transition: opacity 0.9s var(--ease);
}

.js .drip:not(.is-full) .drip__full {
  opacity: 0;
}

.drip__steam {
  position: absolute;
  inset: 0;
  overflow: visible;
  fill: none;
  stroke: var(--caramel-400);
  stroke-linecap: round;
  stroke-width: 4;
  transition: opacity 0.9s var(--ease);
}

.drip__steam path {
  opacity: 0;
  animation: wisp 4.5s ease-in-out infinite;
}

.drip__steam path + path {
  stroke-width: 3.2;
  animation-delay: 1.6s;
}

.js .drip:not(.is-full) .drip__steam {
  opacity: 0;
}

/* A tile of wavering coffee, repeated down the page (drawn by tools/draw.py). */
.drip__stream {
  position: absolute;
  top: 0;
  bottom: calc(var(--cup-w) * 0.54 - 0.15rem);
  left: 0;
  width: 1.5rem;
  background: url("../img/caffe-flusso.svg") center top / 1.5rem auto repeat-y;
  translate: -50% 0;
  clip-path: inset(0 0 calc(100% - var(--poured, 100%)) 0);
}

@media (max-width: 47.99rem) {
  .drip__stream {
    width: 1rem;
    background-size: 1rem auto;
  }
}

/* The head of the coffee: a drop that hangs at the spout until the pouring starts. */
.drip__drop {
  position: absolute;
  top: var(--poured, 0px);
  left: 0;
  width: 0.5rem;
  height: 0.62rem;
  border-radius: 50% 50% 50% 50% / 38% 38% 62% 62%;
  background: radial-gradient(circle at 35% 62%, #7a4a26, #2a190f 70%);
  translate: -50% -55%;
}

html:not(.js) .drip__drop,
.drip.is-upright .drip__drop,
.drip.is-full .drip__drop {
  display: none;
}

/*
 * The menu follows the day, like the home's cards: one panel per moment in that moment's light,
 * each laid a little over the one before, and a line of the day in the opening to move between them.
 */

.moments {
  display: grid;
  padding-top: clamp(2.5rem, 6vw, 4.5rem);
}

.menu__body .moments {
  padding-top: 7.9rem; /* room for the moka above the first panel */
}

/* Where the margin is narrow, the panels step in a little so the coffee has its own lane. */
@media (max-width: 87.99rem) {
  .menu__body {
    --lane: 1.8rem; /* wide enough that the wavering stream keeps clear of the panels */
  }
}

/*
 * Phones: a smaller moka and cup, and the panels with the same margin on both sides (--side), the
 * coffee running down the right one: a thinner stream close to the screen's edge, as near as the cup
 * at its foot allows (its saucer reaches a quarter of its width past the stream), and about 0.5rem
 * clear of the panels.
 */
@media (max-width: 47.99rem) {
  .menu__body {
    --moka-w: 6.4rem;
    --tip-y: 4rem;
    --cup-w: 5.75rem;
    --side: max(var(--gutter), 2.5rem);
    --lane: 0px;
    padding-inline: calc(var(--side) - var(--gutter));
  }

  .menu__body .moments {
    padding-top: 5.6rem;
  }

  .drip {
    right: max(var(--cup-w) * 0.26, var(--side) - 1rem);
  }
}

.moment {
  position: relative;
  display: grid;
  gap: 2.25rem;
  padding: 2rem 1.5rem 2.5rem;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--fg);
  box-shadow: 0 -18px 50px -30px rgb(42 25 15 / 0.55);
}

.moment + .moment {
  margin-top: -0.75rem;
}

.moment > :not(.stars, .moment__numeral) {
  position: relative;
  z-index: 1;
}

.moment--mattina {
  --bg: #fcedcb;
  --fg: var(--espresso-900);
}

.moment--mezzogiorno {
  --bg: #f8d7a0;
  --fg: var(--espresso-900);
}

.moment--pomeriggio {
  --bg: #efb97e;
  --fg: var(--espresso-950);
}

.moment--sera {
  --bg: #24150c;
  --fg: var(--crema-100);
}

/* The moment's number: small and italic beside the moment on phones, as on the home's cards. */
.moment__numeral {
  position: absolute;
  top: 1.85rem;
  right: 1.5rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-style: italic;
  line-height: 1;
  opacity: 0.7;
  pointer-events: none;
  user-select: none;
}

.moment__when {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.moment__when > span:first-child {
  opacity: 0.75;
}

.moment__now {
  padding: 0.25rem 0.55rem;
  border-radius: var(--radius-sm);
  background: var(--fg);
  color: var(--bg);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
}

.moment h2 {
  margin-top: 0.7rem;
  font-size: clamp(2.6rem, 7vw, 4.25rem);
  font-weight: 400;
  line-height: 1;
}

.moment__lede {
  max-width: 26rem;
  margin-top: 1rem;
  opacity: 0.85;
}

.moment__art {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin-top: 1.75rem;
}

/* Drawn straight on the panel, like the home cards' dishes. */
.moment__art img {
  width: clamp(7rem, 30vw, 12rem);
  transition: transform 1.2s var(--ease);
}

.moment__art img + img {
  width: clamp(6rem, 25vw, 10rem);
  margin-left: -1.25rem;
}

.moment:hover .moment__art img {
  transform: rotate(-4deg) scale(1.03);
}

.moment__menu {
  display: grid;
  align-content: start;
  gap: 2.25rem;
}

/* A printed menu's list: small capitals over a rule, the dishes set in Bodoni. */
.carte h3 {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.carte h3::after {
  content: "";
  flex: 1;
  height: 1px;
  background: currentColor;
  opacity: 0.3;
}

.carte ul {
  margin-top: 0.75rem;
}

/* A long name wraps above its leaders: the price lines up with the name's last line. */
.carte li {
  display: flex;
  align-items: baseline;
  align-items: last baseline;
  gap: 0.6rem;
  padding-block: 0.4rem;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.6vw, 1.4rem);
  line-height: 1.25;
}

/* With a price, dotted leaders run from the dish to it. */
.carte li:has(.carte__price)::after {
  content: "";
  flex: 1;
  order: 1;
  min-width: 1.5rem;
  border-bottom: 1.5px dotted currentColor;
  opacity: 0.35;
}

.carte__price {
  order: 2;
  font-style: italic;
  white-space: nowrap;
}

/* The list never pushes the panel wider: a name gives way first. */
.moment__menu,
.carte li > span:first-child {
  min-width: 0;
}

.carte li > span:first-child {
  overflow-wrap: break-word;
}

/* The narrowest phones: a touch smaller, with shorter leaders, so name and price share the line. */
@media (max-width: 22.5rem) {
  .carte li {
    gap: 0.45rem;
    font-size: 1.1rem;
  }

  .carte li:has(.carte__price)::after {
    min-width: 0.75rem;
  }
}

/* "Come ordinarle": a small link on its own line, under the dish's name. */
.carte__link {
  display: block;
  margin-top: 0.15rem;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  text-underline-offset: 0.2em;
  white-space: nowrap;
}

@media (min-width: 52rem) {
  /* In the margin, level with the first list's heading, like a page number. */
  .moment__numeral {
    top: 3rem;
    right: clamp(0.9rem, 1.6vw, 1.6rem);
    font-size: 1.3rem;
  }

  .moment {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 2.5rem clamp(3rem, 6vw, 6rem);
    padding: 3rem clamp(2.25rem, 5vw, 4.5rem) 3.5rem;
  }

  /* The dishes sit at the foot of the intro, level with the end of the list. */
  .moment__intro {
    display: flex;
    flex-direction: column;
  }

  .moment__art {
    margin-top: auto;
    padding-top: 1.75rem;
  }

  .moment__art img {
    width: clamp(9rem, 16vw, 13rem);
  }

  .moment__art img + img {
    width: clamp(7.5rem, 13vw, 11rem);
  }
}

/* Closing: cakes made to order. */
.cake {
  display: grid;
  gap: 2rem;
  align-items: center;
  max-width: 54rem;
  margin-inline: auto;
}

.cake__art {
  width: min(46vw, 12rem);
  margin-inline: auto;
}

.cake h2 {
  margin-top: 0.6rem;
  font-size: clamp(2rem, 5vw, 2.9rem);
  font-weight: 400;
  line-height: 1.05;
}

.cake .lead {
  margin-top: 1rem;
}

.cake .actions {
  margin-top: 1.75rem;
}

.menu-allergens {
  margin-top: 3.5rem;
  color: var(--espresso-600);
  font-size: 0.92rem;
  text-align: center;
}

@media (min-width: 48rem) {
  .cake {
    grid-template-columns: auto 1fr;
    gap: 3.5rem;
  }

  .cake__art {
    width: 13rem;
  }
}

/* ---------- 17. Catering page ---------- */

/*
 * The opening: a party night. Lights out of focus, gold dust and a string of bulbs on the deep blue,
 * and two flutes of prosecco that meet in a toast on arrival (and again when clicked).
 */
.page-hero--catering {
  background:
    radial-gradient(34% 48% at 73% 52%, rgb(240 179 106 / 0.24), transparent 72%),
    radial-gradient(130% 100% at 50% 0%, var(--notte-800), var(--notte-950) 80%);
}

.page-hero--catering h1 {
  max-width: 13ch;
  font-size: clamp(2.5rem, 7.2vw, 5rem);
  line-height: 1.02;
}

.page-hero--catering h1 em {
  color: var(--caramel-300);
}

/* Party lights out of focus: discs with a brighter rim, glowing and dimming, a little nearer the pointer. */
.bokeh {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.bokeh span {
  position: absolute;
  top: var(--y);
  left: var(--x);
  width: var(--size);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(var(--c) / 0.3) 0 50%, rgb(var(--c) / 0.55) 62%, rgb(var(--c) / 0) 70%);
  opacity: 0.6;
  translate: calc(-50% + var(--mx, 0) * var(--depth)) calc(-50% + var(--my, 0) * var(--depth));
  animation: twinkle var(--t) ease-in-out var(--d) infinite;
}

.bokeh .is-soft {
  filter: blur(3px);
}

@keyframes twinkle {
  50% {
    opacity: 0.22;
    scale: 0.94;
  }
}

/* A string of bulbs hung over the glasses, wider than them; the bulbs glow in turn. */
.festoon {
  position: absolute;
  top: -9%;
  left: 50%;
  width: 215%;
  max-width: none;
  height: auto;
  overflow: visible;
  pointer-events: none;
  translate: -50% 0;
}

.festoon__bulb {
  animation: bulb 3s ease-in-out var(--d) infinite;
}

@keyframes bulb {
  50% {
    opacity: 0.45;
  }
}

/*
 * The toast. Each flute turns on its pivot (the origin of its group); its prosecco turns the other way
 * so it stays level, lagging behind and sloshing when the glasses touch.
 */
.toast {
  position: relative;
  width: min(100%, 25rem);
  margin-inline: auto;
  cursor: pointer;
  translate: calc(var(--mx, 0) * 18px) calc(var(--my, 0) * 10px);
}

/* The warm light where the glasses meet. */
.toast::before {
  content: "";
  position: absolute;
  inset: -4% 6% 36%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(255 205 120 / 0.3), transparent);
  filter: blur(8px);
}

.toast__glasses {
  position: relative;
  width: 100%;
  height: auto;
  overflow: visible;
  animation: float 7s ease-in-out 2.8s infinite;
}

.flute {
  transform-origin: 0 0;
}

.flute__liquid {
  transform-origin: 0 -95px;
}

.flute--left {
  rotate: 15.6deg;
}

.flute--right {
  rotate: -15.6deg;
}

.flute--left .flute__liquid {
  rotate: -15.6deg;
}

.flute--right .flute__liquid {
  rotate: 15.6deg;
}

/* Bubbles: from the bottom of the glass up to the top of the wine, wandering a little. */
.flute__bubbles circle {
  opacity: 0;
  animation: bubble var(--t) linear var(--d) infinite;
}

@keyframes bubble {
  12%,
  82% {
    opacity: 0.9;
  }
  to {
    opacity: 0;
    translate: var(--dx) -172px;
  }
}

/* The touch: a flash and eight sparks flying out. */
.toast__flash,
.spark {
  opacity: 0;
}

.js .flute--left {
  animation: clink-left 1.8s 0.6s both;
}

.js .flute--right {
  animation: clink-right 1.8s 0.6s both;
}

.js .flute--left .flute__liquid {
  animation: slosh-left 1.8s 0.6s both;
}

.js .flute--right .flute__liquid {
  animation: slosh-right 1.8s 0.6s both;
}

.js .toast__flash {
  animation: flash 0.9s ease-out 1.72s both;
}

.js .spark {
  animation: spark 1.1s var(--ease) 1.72s both;
}

@keyframes clink-left {
  0% {
    translate: -46px 12px;
    rotate: -8deg;
    animation-timing-function: cubic-bezier(0.45, 0, 0.75, 0.6);
  }
  62% {
    translate: 0 0;
    rotate: 16.3deg;
    animation-timing-function: cubic-bezier(0.2, 0.7, 0.4, 1);
  }
  74% {
    translate: -3px 1px;
    rotate: 13.8deg;
    animation-timing-function: ease-in-out;
  }
  87% {
    translate: 0 0;
    rotate: 16.2deg;
    animation-timing-function: ease-in-out;
  }
  to {
    translate: 0 0;
    rotate: 15.6deg;
  }
}

@keyframes clink-right {
  0% {
    translate: 46px 12px;
    rotate: 8deg;
    animation-timing-function: cubic-bezier(0.45, 0, 0.75, 0.6);
  }
  62% {
    translate: 0 0;
    rotate: -16.3deg;
    animation-timing-function: cubic-bezier(0.2, 0.7, 0.4, 1);
  }
  74% {
    translate: 3px 1px;
    rotate: -13.8deg;
    animation-timing-function: ease-in-out;
  }
  87% {
    translate: 0 0;
    rotate: -16.2deg;
    animation-timing-function: ease-in-out;
  }
  to {
    translate: 0 0;
    rotate: -15.6deg;
  }
}

/* The wine against its glass: level at rest, a little behind while it swings, over the other way after the touch. */
@keyframes slosh-left {
  0% {
    rotate: 8deg;
  }
  62% {
    rotate: -10deg;
  }
  75% {
    rotate: -24deg;
  }
  88% {
    rotate: -13deg;
  }
  to {
    rotate: -15.6deg;
  }
}

@keyframes slosh-right {
  0% {
    rotate: -8deg;
  }
  62% {
    rotate: 10deg;
  }
  75% {
    rotate: 24deg;
  }
  88% {
    rotate: 13deg;
  }
  to {
    rotate: 15.6deg;
  }
}

@keyframes flash {
  from {
    opacity: 0;
    scale: 0.3;
  }
  25% {
    opacity: 1;
  }
  to {
    opacity: 0;
    scale: 1.8;
  }
}

@keyframes spark {
  from {
    opacity: 0;
    translate: 0 -6px;
    scale: 0.2;
  }
  10%,
  55% {
    opacity: 1;
  }
  to {
    opacity: 0;
    translate: 0 -44px;
    scale: 1;
  }
}

/* Phones: the toast above the title, smaller; the buttons before the words, as on the home. */
@media (max-width: 61.99rem) {
  .page-hero--catering .page-hero__grid {
    gap: 0.75rem;
    padding-top: calc(var(--header-h) + 1.25rem);
  }

  .page-hero--catering .toast {
    order: -1;
    width: min(62%, 15rem);
  }

  .page-hero--catering .page-hero__copy {
    display: flex;
    flex-direction: column;
  }

  .page-hero--catering .actions {
    order: 1;
    margin-top: 1.5rem;
  }

  .page-hero--catering .lead {
    order: 2;
  }
}

/* Short phone screens and in-app browsers: smaller glasses, so the buttons come up sooner. */
@media (max-width: 61.99rem) and (max-height: 50rem) {
  .page-hero--catering .toast {
    width: min(62%, 15rem, 25svh);
  }
}

/*
 * The catering's content opens with the ribbon. Its own formatting context keeps the menus' pull-up
 * (under the ribbon) inside it: otherwise that margin would pass through the empty ribbon wrapper and
 * lift the whole block, ribbon included, over the opening's buttons.
 */
.catering {
  display: flow-root;
}

/* The first panel keeps clear of the ribbon, which reaches below the join on its low side. */
.ticker-wrap + .catering__menus .moments {
  padding-top: calc(clamp(2.5rem, 6vw, 4.5rem) + var(--ribbon-drop) + 1rem);
}

/* Room above the ribbon for the buttons and the feet of the glasses. */
@media (min-width: 62rem) {
  .page-hero--catering .page-hero__grid {
    padding-bottom: 6rem;
  }
}

/* The menus scroll like the menu page's moments (.moments, .moment). */
.catering__menus {
  padding-bottom: clamp(3.5rem, 8vw, 5.5rem);
}

/* The drinks, included in both formulas: under the panels, on the paper, like the foot of a printed menu. */
.beverage {
  padding-top: clamp(3rem, 7vw, 4.5rem);
  text-align: center;
}

.beverage .eyebrow {
  color: var(--caramel-700);
}

.beverage h2 {
  margin-top: 0.75rem;
  font-size: clamp(2rem, 6vw, 3rem);
}

.beverage h2 em {
  color: var(--caramel-600);
}

/* Two by two on phones; from 52rem, four in a row set apart by hairlines. */
.beverage ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem 1.5rem;
  max-width: 72rem;
  margin: 1.75rem auto 0;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.4vw, 1.35rem);
  line-height: 1.25;
  text-wrap: balance;
}

@media (min-width: 52rem) {
  .beverage ul {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
  }

  .beverage li {
    padding-inline: 1rem;
  }

  .beverage li + li {
    border-left: 1px solid rgb(134 67 13 / 0.25);
  }
}

/*
 * A dish and the steam that rises from it once it comes up the screen (main.js sets --lift, --fade and
 * --steam). On the home, the arancini also arrive under a silver cloche, which lifts off and settles
 * back on the way up. The dish sets the size; the steam and the cloche share its frame, so the
 * cloche's rim sits on the plate's.
 */
.serve {
  position: relative;
  width: clamp(12rem, 58vw, 16rem);
  margin-top: 2.5rem; /* room for the cloche to rise without touching the words above */
}

.serve__steam,
.serve__cloche {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
}

/* Lifted by its knob and drawn away to the right, as a waiter would; it fades as it clears the dish. */
.serve__cloche {
  transform-origin: 88% 77%; /* the right end of its rim */
  transform: translate(calc(var(--lift, 0) * var(--away, 36%)), calc(var(--lift, 0) * var(--rise, -14%)))
    rotate(calc(var(--lift, 0) * var(--tip, 12deg)));
  opacity: calc(1 - var(--fade, 0));
}

.serve__dish {
  display: block;
  width: 100%;
  transform: scale(calc(0.96 + var(--lift, 0) * 0.04));
  transform-origin: 50% 80%;
}

.serve__steam {
  overflow: visible;
  fill: none;
  stroke: var(--caramel-500);
  stroke-linecap: round;
  stroke-width: 3.4;
  opacity: var(--steam, 0);
}

.serve__steam path {
  opacity: 0;
  animation: wisp 4.5s ease-in-out infinite;
}

.serve__steam path + path {
  stroke-width: 2.8;
  animation-delay: 1.6s;
}

/* Without the script, or with reduced motion, the dishes are simply uncovered. */
html:not(.js) .serve__cloche {
  display: none;
}

/*
 * The catering's panels are kept compact: no empty column waiting for the list. On phones the panel
 * reads straight down; from 52rem the title sits beside its dish, with the dishes listed below in
 * columns, so a panel is about as tall as its content.
 */
.catering .moment {
  gap: 1.75rem;
  padding-bottom: 2.25rem;
}

/* The list flows in as many columns as fit (up to three). */
.catering .moment__menu > .carte:only-child ul {
  columns: 17rem 3;
  column-gap: 3rem;
}

.catering .carte li {
  break-inside: avoid;
}

/* Phones: a smaller dish, centred, and closer lines, so a panel stays short. */
@media (max-width: 51.99rem) {
  .catering .serve {
    justify-self: center;
    width: clamp(10.5rem, 46vw, 13rem);
    margin-top: 0.5rem;
  }

  .catering .carte li {
    padding-block: 0.3rem;
    font-size: 1.15rem;
  }
}

/*
 * From 52rem: three columns. The title and its words take the first two, the dish stands in the
 * third, resting on the same line as the last words; the dishes below line up in the same columns.
 */
@media (min-width: 52rem) {
  .catering .moment {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-areas:
      "intro intro serve"
      "menu menu menu";
    align-items: end;
    gap: 2.25rem 3rem;
    padding-block: 2.75rem 3rem;
  }

  .catering .moment__intro {
    grid-area: intro;
    display: block;
  }

  .catering .moment__lede {
    max-width: 30rem;
  }

  /* The dish stands centred in the third column, its plate on the line of the last words. */
  .catering .serve {
    grid-area: serve;
    justify-self: center;
    width: min(100%, 16rem);
    margin: 0 0 -0.25rem;
  }

  .catering .moment__menu {
    grid-area: menu;
  }

  .catering .moment__menu > .carte:only-child ul {
    columns: 3;
  }
}

/*
 * Asking for a quote: on the menus' paper after the printed-menu rule, centred like the drinks above.
 * WhatsApp comes first; a call or an email are beside it.
 */
.preventivo > .section {
  padding-top: 0;
}

.preventivo__rule {
  margin-bottom: clamp(3rem, 7vw, 4.5rem);
}

.preventivo__body {
  max-width: 44rem;
  margin-inline: auto;
  text-align: center;
}

.preventivo .eyebrow {
  color: var(--caramel-700);
}

.preventivo h2 {
  margin-top: 0.75rem;
}

.preventivo h2 em {
  color: var(--caramel-600);
}

.preventivo .lead {
  margin-top: 1.25rem;
}

.preventivo__actions {
  justify-content: center;
  margin-top: 2.25rem;
}

/* Phones: one under the other, the full width. */
@media (max-width: 47.99rem) {
  .preventivo__actions .btn {
    flex: 1 1 100%;
  }
}

.preventivo__fine {
  margin-top: 1.5rem;
  color: var(--espresso-600);
  font-size: 0.92rem;
}

/* ---------- 18. Panettoni page ---------- */

.page-hero.xmas {
  background: var(--natale-800);
}

.page-hero .showpiece {
  width: min(62vw, 20rem);
}

@media (min-width: 62rem) {
  .page-hero .showpiece {
    width: min(100%, 27rem);
  }
}

/* Phones: the panettone above the title, as the cup on the home and the glasses on the catering. */
@media (max-width: 61.99rem) {
  .page-hero.xmas .page-hero__grid {
    gap: 1rem;
    padding-top: calc(var(--header-h) + 1rem);
  }

  .page-hero.xmas .showpiece {
    order: -1;
  }
}

.products {
  display: grid;
  gap: 1.5rem;
}

.product {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--crema-50);
  box-shadow:
    0 1px 2px rgb(42 25 15 / 0.08),
    0 14px 28px -20px rgb(42 25 15 / 0.35);
}

/* Lower on phones, where the cards are stacked one under the other. The picture leads to the product's page. */
.product__art {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  background: var(--art);
}

/*
 * The drawing is 80% of the frame's height, centred. Placed absolutely: Safari doesn't resolve a
 * percentage height inside a box sized by aspect-ratio, and the drawing would grow and stretch the frame.
 */
.product__art img {
  position: absolute;
  inset: 10% 0;
  width: auto;
  max-width: 100%;
  height: 80%;
  margin: auto;
  transition: transform 0.8s var(--ease);
}

.product:hover .product__art img {
  transform: scale(1.04) rotate(-2deg);
}

/* A photo, once there is one, fills the frame. */
.product__art .product__photo {
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  object-fit: cover;
}

.product:hover .product__art .product__photo {
  transform: scale(1.03);
}

/* The frame's place while a product has no photo nor drawing: a small label in the middle. */
.photo-soon {
  position: absolute;
  inset: auto auto 0.75rem 0.75rem;
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-sm);
  background: rgb(26 15 8 / 0.78);
  color: var(--crema-100);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.product__art .photo-soon,
.item__stage .photo-soon {
  inset: 0;
  width: fit-content;
  height: fit-content;
  margin: auto;
}

.product__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.4rem 1.4rem 1.5rem;
}

/* An h4 under the category's name: set like the other headings. */
.product__title {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.product__title a {
  text-decoration: none;
  transition: color 0.3s;
}

.product__title a:hover {
  color: var(--caramel-700);
}

/* The whole card opens the product's page: the title's link covers it, the buttons stay on top. */
.product__title a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.product:hover .product__title a {
  color: var(--caramel-700);
}

.product__foot .qty,
.product__foot .btn {
  position: relative;
  z-index: 2;
}

.product__desc {
  color: var(--espresso-600);
  font-size: 0.98rem;
}

.product__allergens {
  color: var(--espresso-500);
  font-size: 0.8rem;
}

.product__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: auto;
  padding-top: 1rem;
}

.price {
  font-family: var(--font-display);
  font-size: 1.8rem;
  line-height: 1;
}

.price small {
  display: block;
  margin-top: 0.3rem;
  color: var(--espresso-500);
  font-family: var(--font-sans);
  font-size: 0.78rem;
}

/* "da 12,00 €": the lowest of a product's sizes. */
.price__from {
  color: var(--espresso-600);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  vertical-align: 0.35em;
}

@media (min-width: 40rem) {
  .products {
    grid-template-columns: repeat(2, 1fr);
  }

  .product__art {
    aspect-ratio: 5 / 4;
  }
}

@media (min-width: 72rem) {
  .products {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Quantity: "Aggiungi" for the first one, then − n +. */
.stepper {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--espresso-900);
  border-radius: var(--radius-sm);
}

.stepper button {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.6rem;
  border: 0;
  background: none;
  color: var(--espresso-900);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.3s;
}

.stepper button:hover {
  background: rgb(42 25 15 / 0.07);
}

.stepper span {
  min-width: 1.6rem;
  font-weight: 500;
  text-align: center;
}

/* Without the script there is no cart: each panettone is ordered on WhatsApp instead. */
html:not(.js) .qty,
html:not(.js) .order {
  display: none;
}

.js .product__wa {
  display: none;
}

/* The order: what is in the cart, how it gets home, and a note for the bar. */
.order {
  max-width: 46rem;
  margin-inline: auto;
}

/* The order follows its rule closer than a new section would. */
.section-rule--gap:has(+ .order) {
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.order > h2 {
  text-align: center;
}

.order-card {
  margin-top: 2rem;
  padding: 1.5rem 1.25rem 1.75rem;
  border-radius: var(--radius);
  background: var(--crema-50);
  box-shadow:
    0 1px 2px rgb(42 25 15 / 0.08),
    0 20px 40px -24px rgb(42 25 15 / 0.45);
}

.order__empty {
  padding-block: 1rem;
  color: var(--espresso-600);
  text-align: center;
}

.order-line {
  display: grid;
  grid-template-columns: 3.25rem 1fr auto;
  grid-template-areas:
    "art info total"
    "art qty qty";
  align-items: center;
  gap: 0.6rem 1rem;
  padding-block: 1rem;
  border-bottom: 1px solid rgb(134 67 13 / 0.16);
}

.order-line img,
.order-line__img {
  grid-area: art;
  width: 100%;
}

.order-line__img {
  aspect-ratio: 200 / 220;
  border-radius: var(--radius-sm);
  background: var(--crema-200);
}

.order-line__info {
  grid-area: info;
}

.order-line__info strong {
  display: block;
  font-weight: 500;
  line-height: 1.3;
}

.order-line__info small {
  color: var(--espresso-500);
  font-size: 0.85rem;
}

.order-line .stepper {
  grid-area: qty;
  justify-self: start;
}

.order-line__total {
  grid-area: total;
  font-family: var(--font-display);
  font-size: 1.2rem;
  text-align: right;
}

.order fieldset {
  min-width: 0;
  margin: 1.75rem 0 0;
  padding: 0;
  border: 0;
}

.order legend {
  margin-bottom: 0.9rem;
}

.delivery {
  display: grid;
  gap: 0.75rem;
}

.delivery label {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.1rem;
  border: 1.5px solid rgb(80 49 29 / 0.18);
  border-radius: 0.9rem;
  background: var(--crema-100);
  cursor: pointer;
  transition:
    border-color 0.3s,
    background-color 0.3s,
    box-shadow 0.3s;
}

.delivery label:has(input:checked) {
  border-color: var(--caramel-500);
  background: #fff;
  box-shadow: 0 0 0 4px rgb(227 145 58 / 0.15);
}

.delivery input {
  width: 1.15rem;
  height: 1.15rem;
  margin: 0;
  accent-color: var(--caramel-600);
}

.delivery strong {
  display: block;
  font-weight: 500;
  line-height: 1.3;
}

.delivery small {
  display: block;
  color: var(--espresso-500);
  font-size: 0.85rem;
}

.delivery__price {
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.field {
  display: grid;
  gap: 0.4rem;
}

/* Small capitals over the fields and the choices, in the order. */
.field label,
.order legend {
  padding: 0;
  color: var(--espresso-600);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.field input,
.field textarea {
  width: 100%;
  min-height: 3.1rem;
  padding: 0.75rem 1rem;
  border: 1.5px solid rgb(80 49 29 / 0.18);
  border-radius: 0.9rem;
  background: var(--crema-100);
  font-size: 1rem;
  transition:
    border-color 0.3s,
    background-color 0.3s,
    box-shadow 0.3s;
}

.field textarea {
  min-height: 6rem;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--caramel-500);
  background-color: #fff;
  outline: none;
  box-shadow: 0 0 0 4px rgb(227 145 58 / 0.2);
}

.totals {
  margin-top: 1.75rem;
  padding-top: 1rem;
  border-top: 1px solid rgb(134 67 13 / 0.25);
}

.totals div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.3rem;
}

.totals dt {
  color: var(--espresso-600);
}

.totals .totals__sum {
  margin-top: 0.4rem;
  padding-top: 0.75rem;
  border-top: 1px dashed rgb(134 67 13 / 0.3);
  font-family: var(--font-display);
  font-size: 1.5rem;
}

.totals__sum dt {
  color: inherit;
}

.order__submit {
  width: 100%;
  margin-top: 1.5rem;
}

.order__fine {
  margin-top: 1rem;
  color: var(--espresso-500);
  font-size: 0.85rem;
  text-align: center;
}

/* The note for the bar, between the delivery and the totals. */
.order-card .field {
  margin-top: 1.5rem;
}

.order__submit[disabled] {
  cursor: progress;
  opacity: 0.75;
}

/* When the payment can't start: the way to WhatsApp, just below. */
.order__error {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 0.9rem;
  background: rgb(163 38 42 / 0.08);
  color: var(--natale-700);
  font-size: 0.95rem;
  text-align: center;
}

.order__alt {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgb(134 67 13 / 0.18);
  color: var(--espresso-600);
  font-size: 0.92rem;
  text-align: center;
}

.order__alt a {
  color: var(--espresso-900);
  font-weight: 500;
  text-underline-offset: 0.2em;
}

@media (min-width: 40rem) {
  .order-card {
    padding: 2rem 2.25rem 2.25rem;
  }

  .order-line {
    grid-template-columns: 3.5rem 1fr auto 6rem;
    grid-template-areas: "art info qty total";
  }

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

/* While the cart has something in it and the order is off screen: how many, how much, and the way there. */
.order-bar {
  position: fixed;
  right: 0.75rem;
  bottom: calc(0.75rem + env(safe-area-inset-bottom));
  left: 0.75rem;
  z-index: 41;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.35rem 0.35rem 0.35rem 1.1rem;
  border: 1px solid rgb(240 179 106 / 0.22);
  border-radius: 10px;
  background: rgb(26 15 8 / 0.92);
  color: var(--crema-100);
  box-shadow: 0 20px 40px -12px rgb(0 0 0 / 0.55);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  visibility: hidden;
  transform: translateY(160%);
  transition:
    transform 0.6s var(--ease),
    visibility 0s 0.6s;
}

.order-bar.is-visible {
  visibility: visible;
  transform: none;
  transition: transform 0.6s var(--ease);
}

.order-bar p {
  font-size: 0.92rem;
  line-height: 1.3;
}

.order-bar strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
}

/* The bar takes the contacts bar's place on phones. */
.has-order-bar .action-bar.is-visible {
  transform: translateY(160%);
}

/* On the narrowest phones its total wraps and it grows taller, so the footer keeps more room under its last line. */
.has-order-bar .footer__bottom {
  padding-bottom: calc(7rem + env(safe-area-inset-bottom));
}

@media (min-width: 62rem) {
  .order-bar {
    right: auto;
    left: 50%;
    width: 30rem;
    translate: -50% 0;
  }
}

/* ---------- 18b. The shop's catalogue (written by tools/shop.py) ---------- */

.item .eyebrow,
.item-reviews .eyebrow {
  color: var(--caramel-700);
}

/* The play sign on a video's thumbnail. */
.play {
  position: absolute;
  inset: 0;
  width: 3.5rem;
  height: 3.5rem;
  margin: auto;
}

.play circle {
  fill: rgb(250 241 224 / 0.92);
}

.play path {
  fill: var(--espresso-900);
}

/* The products, by category: small capitals over a hairline, like the menu's lists. */
.catalogo {
  display: grid;
  gap: clamp(2.5rem, 6vw, 3.5rem);
}

.catalogo__name {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  color: var(--espresso-700);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.catalogo__name::after {
  content: "";
  flex: 1;
  height: 1px;
  background: currentColor;
  opacity: 0.3;
}

/* ---------- 18c. A product's page (shop/*.html, written by tools/shop.py) ---------- */

/*
 * The photos on the left (above, on phones), the product beside them: price, description, size and
 * flavour, quantity, the button, then ingredients and allergens. Below, the reviews and other products.
 */
.item {
  padding-block: calc(var(--header-h) + 1.5rem) clamp(3.5rem, 8vw, 5.5rem); /* the star rule's room below */
}

.item__back a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding-block: 0.4rem;
  color: var(--espresso-700);
  font-size: 0.92rem;
  text-decoration: none;
}

.item__back a:hover {
  color: var(--espresso-950);
}

.item__back svg {
  width: 1.1em;
}

.item__grid {
  display: grid;
  gap: 2rem;
  margin-top: 1rem;
}

.item__stage {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--art);
}

.item__stage img,
.item__stage video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.item__stage .item__drawing {
  inset: 12% 0;
  width: auto;
  max-width: 100%;
  height: 76%;
  margin: auto;
  object-fit: contain;
}

.item__thumbs {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.75rem;
  overflow-x: auto;
}

.item__thumbs button {
  position: relative;
  flex: none;
  width: 4.5rem;
  aspect-ratio: 1;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  background: var(--art);
  cursor: pointer;
}

.item__thumbs button[aria-current] {
  border-color: var(--espresso-900);
}

/* Placed, not sized by percentage: Safari doesn't resolve a percentage height inside an aspect-ratio box. */
.item__thumbs img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.item__thumbs .play {
  width: 1.75rem;
  height: 1.75rem;
}

.item__title {
  margin-top: 0.6rem;
  font-size: clamp(2.2rem, 4.4vw, 3.25rem);
  line-height: 1.02;
}

.item__price {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-top: 1rem;
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1;
}

.item__price small {
  color: var(--espresso-500);
  font-family: var(--font-sans);
  font-size: 0.9rem;
}

.item__desc {
  display: grid;
  gap: 0.75rem;
  max-width: 34rem;
  margin-top: 1.25rem;
  color: var(--espresso-700);
}

.item__buy {
  position: relative;
  display: grid;
  gap: 1.25rem;
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgb(134 67 13 / 0.2);
}

.item__choice {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.item__choice legend,
.item__qty > span:first-child,
.item__facts dt {
  padding: 0;
  color: var(--espresso-600);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.item__choice legend {
  margin-bottom: 0.6rem;
}

/* Sizes and flavours: square buttons in even columns; the chosen one turns espresso. */
.item__options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 6.5rem), 1fr));
  gap: 0.5rem;
}

.item__options label {
  position: relative;
  cursor: pointer;
}

.item__options input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.item__options span {
  display: grid;
  align-content: center;
  gap: 0.1rem;
  height: 100%;
  padding: 0.65rem 0.6rem;
  border: 1.5px solid rgb(80 49 29 / 0.25);
  border-radius: var(--radius-sm);
  background: var(--crema-50);
  text-align: center;
  transition:
    border-color 0.25s,
    background-color 0.25s,
    color 0.25s;
}

.item__options strong {
  font-weight: 500;
  line-height: 1.3;
  text-wrap: balance;
}

.item__options small {
  color: var(--espresso-500);
  font-size: 0.82rem;
}

.item__options label:hover span {
  border-color: var(--espresso-700);
}

.item__options input:checked + span {
  border-color: var(--espresso-900);
  background: var(--espresso-900);
  color: var(--crema-50);
}

.item__options input:checked + span small {
  color: rgb(250 241 224 / 0.75);
}

.item__options input:focus-visible + span {
  outline: 2px solid var(--caramel-500);
  outline-offset: 2px;
}

.item__qty {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.item__add {
  width: 100%;
}

/* Read out, not shown: the button itself says "Aggiunto" for a moment, so no line is kept for it. */
.item__status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.item__wa {
  width: 100%;
  margin-top: 1.75rem;
}

.item__delivery {
  margin-top: 1rem;
  color: var(--espresso-600);
  font-size: 0.92rem;
}

.item__facts {
  margin-top: 1.75rem;
  border-top: 1px solid rgb(134 67 13 / 0.2);
}

.item__facts div {
  display: grid;
  gap: 0.3rem;
  padding-block: 0.9rem;
  border-bottom: 1px solid rgb(134 67 13 / 0.2);
}

.item__facts dd {
  margin: 0;
  color: var(--espresso-800);
}

/* Without the script: no cart, the product is ordered on WhatsApp. */
html:not(.js) .item__buy {
  display: none;
}

.js .item__wa {
  display: none;
}

/* Side by side from tablets on, so the price and the button aren't below a screen-high photo. */
@media (min-width: 48rem) {
  .item__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: start;
    gap: clamp(2.5rem, 5vw, 4rem);
  }

  .item__gallery {
    position: sticky;
    top: calc(var(--header-h) + 1.5rem);
  }
}

/*
 * Below the product, on the same paper: the reviews, opened by a rule with five stars, then the
 * printed-menu rule and the other products.
 */
.item-reviews {
  --inner: clamp(2.5rem, 5vw, 3.5rem); /* from each rule to the reviews, the same above and below */
  position: relative;
  display: flow-root; /* the closing rule's margin stays inside, on the paper */
  margin-top: -1px; /* no hairline of the page's background at a fractional join */
}

.section-rule--stars {
  margin-bottom: var(--inner);
  color: var(--caramel-500);
}

.section-rule--stars svg {
  width: 6rem;
}

.item-reviews .section-rule--gap {
  margin-block: var(--inner); /* "Altri dolci" follows as close as the reviews */
}

.item-others {
  margin-top: -1px;
  padding-block: 0 clamp(2.5rem, 5vw, 3.5rem); /* as much room below as above its title */
}

.item-reviews__head {
  margin-bottom: 2rem;
}

.item-reviews__head h2 {
  margin-top: 0.6rem;
}

.item-others .products {
  margin-top: 2rem;
}

/* On phones the other products scroll sideways, so the page doesn't end in a long column of cards. */
@media (max-width: 39.99rem) {
  .item-others .products {
    display: flex;
    gap: 1rem;
    margin-inline: calc(-1 * var(--gutter));
    padding: 0.25rem var(--gutter) 1rem;
    overflow-x: auto;
    scroll-padding-inline: var(--gutter);
    scroll-snap-type: x mandatory;
  }

  .item-others .product {
    flex: 0 0 min(80vw, 19rem);
    scroll-snap-align: start;
  }
}

/* ---------- 18d. After paying (grazie.html, written by tools/shop.py) ---------- */

/* A check in a caramel ring, the thanks, and the order as it was paid, on the paper. */
.thanks {
  min-height: 100svh;
  padding-block: calc(var(--header-h) + clamp(2.5rem, 6vw, 4.5rem)) clamp(3.5rem, 8vw, 5.5rem);
}

.thanks__inner {
  max-width: 46rem;
  text-align: center;
}

.thanks__mark {
  width: 4.5rem;
  margin: 0 auto 1.5rem;
  color: var(--caramel-600);
}

.thanks .eyebrow {
  color: var(--caramel-700);
}

.thanks h1 {
  margin-top: 0.75rem;
}

/* The order's number, as on the receipt and in the bar's message. */
.thanks__number {
  margin-top: 0.9rem;
  color: var(--espresso-600);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

.thanks__number strong {
  color: var(--espresso-950);
  font-weight: 600;
  letter-spacing: 0.12em;
}

.thanks .lead {
  max-width: 34rem;
  margin: 1.25rem auto 0;
}

.thanks__summary {
  text-align: left;
}

.thanks__heading {
  color: var(--espresso-600);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* A paid line: quantity in the small print, no stepper, at every width. */
.order-card .order-line--done {
  grid-template-columns: 3.5rem 1fr auto;
  grid-template-areas: "art info total";
}

.thanks__facts {
  margin-top: 1.25rem;
}

.thanks__facts div {
  display: grid;
  grid-template-columns: 6rem 1fr;
  gap: 1rem;
  padding-block: 0.5rem;
  font-size: 0.95rem;
}

.thanks__facts dt {
  color: var(--espresso-600);
}

.thanks__facts dd {
  margin: 0;
}

.thanks__actions {
  justify-content: center;
  margin-top: 2.5rem;
}

/* ---------- 18e. Legal pages (privacy, cookies, conditions of sale; written by tools/shop.py) ---------- */

/* A plain document on the paper: one readable column, headings in Bodoni, lists with bullets. */
.legal {
  padding-block: calc(var(--header-h) + clamp(2.5rem, 6vw, 4rem)) clamp(3.5rem, 8vw, 5.5rem);
}

.legal__inner {
  max-width: 44rem;
  color: var(--espresso-800);
  line-height: 1.7;
}

.legal h1 {
  font-size: clamp(2.2rem, 5vw, 3.25rem);
}

.legal__date {
  margin-top: 0.75rem;
  color: var(--espresso-500);
  font-size: 0.9rem;
}

.legal h2 {
  margin-top: 2.5rem;
  color: var(--espresso-950);
  font-size: clamp(1.4rem, 2.6vw, 1.75rem);
}

.legal p,
.legal ul {
  margin-top: 1rem;
}

.legal ul {
  display: grid;
  gap: 0.6rem;
  padding-left: 1.25rem;
  list-style: disc;
}

.legal li::marker {
  color: var(--caramel-500);
}

.legal a {
  color: var(--espresso-950);
  text-underline-offset: 0.2em;
}

.legal strong {
  color: var(--espresso-950);
  font-weight: 500;
}

.legal code {
  font-size: 0.88em;
}

/* Data still missing (P.IVA, opening hours…): highlighted until the bar sends it. */
.da-completare {
  padding: 0 0.25em;
  border-radius: 2px;
  background: rgb(240 179 106 / 0.45);
  color: inherit;
}

.site-footer .da-completare {
  background: rgb(240 179 106 / 0.22);
  color: var(--crema-100);
}

/* ---------- 18f. Page not found (404.html, written by tools/shop.py) ---------- */

/* The empty cup, a line of apology and the ways back. */
.lost {
  min-height: 100svh;
  padding-block: calc(var(--header-h) + clamp(2.5rem, 6vw, 4rem)) clamp(3.5rem, 8vw, 5.5rem);
}

.lost__inner {
  max-width: 40rem;
  text-align: center;
}

.lost__cup {
  width: clamp(8rem, 22vw, 11rem);
  margin: 0 auto 1rem;
}

.lost .eyebrow {
  color: var(--caramel-700);
}

.lost h1 {
  margin-top: 0.75rem;
}

.lost .lead {
  margin: 1.25rem auto 0;
}

.lost__actions {
  justify-content: center;
  margin-top: 2.25rem;
}

/* ---------- 19. Motion ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(2rem);
  transition:
    opacity 1s var(--ease),
    transform 1.1s var(--ease);
  transition-delay: var(--d, 0s);
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(1.5rem);
  }
}

@keyframes line-up {
  from {
    transform: translateY(105%);
  }
}

@keyframes cup-in {
  from {
    opacity: 0;
    scale: 0.85;
    rotate: -25deg;
  }
}

@keyframes spin {
  to {
    rotate: 360deg;
  }
}

@keyframes float {
  50% {
    translate: 0 -12px;
  }
}

@keyframes steam {
  0% {
    opacity: 0;
    transform: translateY(30%) scale(0.6);
  }
  35% {
    opacity: 0.8;
  }
  100% {
    opacity: 0;
    transform: translateY(-70%) scale(1.5);
  }
}

@keyframes glint {
  50% {
    opacity: 0.55;
  }
}

/* Steam: two wisps rising and fading in turn. */
@keyframes wisp {
  0% {
    opacity: 0;
    transform: translateY(8px);
  }
  30%,
  55% {
    opacity: 0.9;
  }
  100% {
    opacity: 0;
    transform: translateY(-10px);
  }
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

@keyframes dust {
  to {
    transform: translateY(240px);
  }
}

@keyframes drip {
  0% {
    transform: scaleY(0);
    opacity: 1;
  }
  60% {
    transform: scaleY(1);
    opacity: 1;
  }
  100% {
    transform: scaleY(1);
    opacity: 0;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
