/* Panificio Metelli — site styles.
   Palette and type are the brand's: brown #684f40, gold #fdb822, white,
   Montserrat for display, Open Sans for text. Everything else derives from them. */

:root {
  --brown: #684f40;
  --brown-ink: #3b2c23;
  --night: #241a14;
  --night-2: #2e221b;
  --gold: #fdb822;
  --gold-soft: #fed06a;
  --cream: #f4efe4; /* matches the studio photo backdrop */
  --cream-2: #ebe3d3;
  --white: #fff;
  --line: rgba(104, 79, 64, 0.16);
  --line-night: rgba(253, 184, 34, 0.18);
  --text: #4a3a30;
  --muted: #8a7466;

  --title: "Big Noodle Titling", "Montserrat", system-ui, sans-serif;
  --display: "Montserrat", system-ui, sans-serif;
  --body: "Open Sans", system-ui, sans-serif;

  --wrap: 1320px;
  --gutter: clamp(20px, 4vw, 48px);
  --radius-lg: 28px;
  --radius: 16px;
  --radius-sm: 8px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --shadow: 0 30px 60px -30px rgba(59, 44, 35, 0.45);

  --z-header: 50;
  --z-skip: 70;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font: 400 17px/1.7 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--display);
  color: var(--brown-ink);
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

::selection {
  background: var(--gold);
  color: var(--night);
}

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

main {
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: var(--z-skip);
  padding: 10px 16px;
  background: var(--gold);
  color: var(--night);
  font: 700 14px var(--display);
  border-radius: var(--radius-sm);
  transform: translateY(-200%);
  transition: transform 0.2s var(--ease);
}
.skip-link:focus {
  transform: none;
}

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

/* ---------- Type helpers ---------- */

.eyebrow {
  font: 600 15px/1.4 var(--display);
  color: var(--gold);
}

/* Big Noodle Titling: the brand display face (logo, catalogue). Caps only,
   one weight, so it is kept to titles and big numbers. */
@font-face {
  font-family: "Big Noodle Titling";
  src: url("../fonts/BigNoodleTitling.ttf") format("truetype");
  font-display: swap;
}
/* Montserrat and Open Sans, self-hosted variable fonts (latin + latin-ext). */
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 500 900;
  font-display: swap;
  src: url("../fonts/Montserrat-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 500 900;
  font-display: swap;
  src: url("../fonts/Montserrat-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: "Open Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/OpenSans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/OpenSans-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: "Open Sans";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/OpenSans-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Open Sans";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/OpenSans-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;
}
/* Brand face for heroes and main section titles only; the rest stays Montserrat. */
.title-xl,
.title-l {
  font-family: var(--title);
  font-weight: 400;
  font-synthesis: none;
  letter-spacing: 0.01em;
  line-height: 0.9;
}
.title-xl {
  font-size: clamp(58px, 10vw, 156px);
}
.title-l {
  font-size: clamp(46px, 6.6vw, 100px);
}
.title-m {
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 700;
}

.lead {
  max-width: 58ch;
  font-size: clamp(18px, 1.5vw, 21px);
  line-height: 1.6;
}

.gold {
  color: var(--gold);
}

.night {
  background: var(--night);
  color: rgba(255, 255, 255, 0.78);
}
.night h1,
.night h2,
.night h3 {
  color: var(--white);
}

/* ---------- Buttons ---------- */

.btn {
  --bg: var(--gold);
  --fg: var(--night);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 17px 26px 17px 28px;
  border: 0;
  border-radius: 999px;
  background: var(--bg);
  color: var(--fg);
  font: 700 15px/1 var(--display);
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.35s var(--spring), background-color 0.25s;
}
.btn svg {
  width: 18px;
  height: 18px;
  transition: transform 0.35s var(--spring);
}
.btn:hover {
  transform: translateY(-2px);
  background: var(--gold-soft);
}
.btn:hover svg {
  transform: translateX(4px);
}
.btn:active {
  transform: translateY(1px) scale(0.98);
}
.btn--dark {
  --bg: var(--brown-ink);
  --fg: var(--white);
}
.btn--dark:hover {
  background: var(--brown);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 700 15px var(--display);
  color: inherit;
  text-decoration: none;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 4px;
  transition: border-color 0.2s;
}
.link-arrow:hover {
  border-color: currentColor;
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: var(--z-header);
  padding-block: 18px;
  transition: background-color 0.4s var(--ease), padding 0.4s var(--ease), box-shadow 0.4s;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 32px;
}
.site-header.is-solid {
  padding-block: 10px;
  background: rgba(36, 26, 20, 0.86);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: inset 0 -1px 0 var(--line-night);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  margin-right: auto;
}
.brand__word {
  width: 112px;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav a {
  position: relative;
  padding: 10px 14px;
  font: 600 15px var(--display);
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
  border-radius: 999px;
  transition: color 0.2s, background-color 0.2s;
}
.nav a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}
.nav a[aria-current="page"] {
  color: var(--gold);
}
.nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 5px;
  height: 5px;
  margin-left: -2.5px;
  border-radius: 50%;
  background: var(--gold);
}
.nav__info {
  display: none;
}
.nav .nav__call {
  margin-left: 10px;
  padding: 11px 18px;
  background: var(--gold);
  color: var(--night);
}
.nav .nav__call:hover {
  background: var(--gold-soft);
  color: var(--night);
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: var(--gold);
  cursor: pointer;
  position: relative;
}
.nav-toggle span,
.nav-toggle span::before {
  position: absolute;
  left: 15px;
  width: 18px;
  height: 2px;
  background: var(--night);
  transition: transform 0.3s var(--ease);
}
.nav-toggle span {
  top: 20px;
}
.nav-toggle span::before {
  content: "";
  left: 0;
  top: 7px;
}
.nav-toggle[aria-expanded="true"] span {
  transform: translateY(3.5px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span::before {
  transform: translateY(-7px) rotate(-90deg);
}

@media (max-width: 860px) {
  .brand__word {
    display: none;
  }
  .nav-toggle {
    display: block;
  }
  /* Full-screen sheet: brand-face links as a ruled list, visit info at the bottom. */
  .nav {
    position: fixed;
    inset: 0;
    z-index: -1;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 104px var(--gutter) max(28px, env(safe-area-inset-bottom));
    overflow-y: auto;
    background: var(--night);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s var(--ease), visibility 0.35s;
  }
  .nav > a:not(.nav__call) {
    padding: 14px 0 10px;
    border-bottom: 1px solid var(--line-night);
    border-radius: 0;
    font: 400 clamp(44px, 13vw, 64px)/1 var(--title);
    letter-spacing: 0.01em;
  }
  .nav > a:not(.nav__call):hover {
    background: none;
  }
  .nav a[aria-current="page"]::after {
    content: none;
  }
  .nav__info {
    display: grid;
    gap: 12px;
    justify-items: start;
    margin-top: auto;
    padding-top: 32px;
    font: 600 15px/1.5 var(--display);
    color: rgba(255, 255, 255, 0.7);
  }
  .nav__info p {
    margin: 0;
  }
  .nav .nav__info a {
    padding: 0;
    font: inherit;
    color: inherit;
  }
  .nav__info .status {
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
  }
  .nav .nav__call {
    align-self: start;
    margin: 20px 0 0;
    font-size: 17px;
    padding: 15px 24px;
  }
  .nav.is-open {
    opacity: 1;
    visibility: visible;
  }
  /* backdrop-filter makes the header the containing block of the fixed nav,
     clipping the open menu to the header bar. */
  .site-header:has(.nav.is-open) {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100dvh;
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
  padding: 140px 0 clamp(48px, 8vh, 96px);
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: hero-cycle 16s infinite;
}
.hero__media img:nth-child(2) {
  animation-delay: 8s;
}
@keyframes hero-cycle {
  0% { opacity: 0; transform: scale(1.14) translateX(-1%); }
  8% { opacity: 1; }
  50% { opacity: 1; }
  60% { opacity: 0; transform: scale(1.02) translateX(1%); }
  100% { opacity: 0; }
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(120% 80% at 85% 10%, rgba(253, 184, 34, 0.16), transparent 55%),
    linear-gradient(180deg, rgba(36, 26, 20, 0.62) 0%, rgba(36, 26, 20, 0.5) 35%, rgba(36, 26, 20, 0.96) 88%);
}
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 48px;
  align-items: end;
}
.hero__title {
  margin: 26px 0 30px;
  color: var(--white);
}
.hero__title .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.06em;
}
.hero__title .line > span {
  display: inline-block;
  animation: rise 1.1s var(--ease) both;
}
.hero__title .line:nth-child(2) > span {
  animation-delay: 0.12s;
}
.hero__title .line:nth-child(3) > span {
  animation-delay: 0.24s;
}
@keyframes rise {
  from { transform: translateY(105%); }
}
.hero .lead {
  color: rgba(255, 255, 255, 0.8);
  animation: fade-up 1s 0.5s var(--ease) both;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 28px;
  margin-top: 38px;
  animation: fade-up 1s 0.65s var(--ease) both;
}
.hero__actions .link-arrow {
  color: var(--white);
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
}

.hero__seal {
  position: relative;
  width: clamp(150px, 16vw, 230px);
  aspect-ratio: 1;
  animation: fade-up 1.2s 0.8s var(--ease) both;
}
.hero__seal img {
  width: 100%;
  border-radius: 50%;
  background: var(--white);
  padding: 6px;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8);
}
.hero__seal::before {
  content: "";
  position: absolute;
  inset: -18px;
  border-radius: 50%;
  border: 1px dashed rgba(253, 184, 34, 0.55);
}

@media (max-width: 760px) {
  .hero__inner {
    grid-template-columns: 1fr;
  }
  .hero__seal {
    display: none;
  }
}

/* ---------- Panettone (seasonal, home) ---------- */

/* The scroll holds on IL PANETTONE ARTIGIANALE, dives through its T and lands
   on the product card. Below, the flavours run outlined and fill solid as
   they cross the middle of the screen. */
.panettone {
  padding: clamp(80px, 11vw, 160px) 0;
  overflow: clip;
  background: var(--cream);
}
.panettone__pin {
  position: relative;
}
.panettone__mask {
  display: none;
}
.panettone__card {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #d3ceba;
  box-shadow: var(--shadow);
  color: var(--brown-ink);
}
.panettone__text {
  padding: clamp(32px, 4.5vw, 64px);
}
.panettone__text .lead {
  margin: 0 0 26px;
  color: inherit;
}
.panettone__card > img {
  align-self: end;
  width: 100%;
}
.panettone__gusti {
  list-style: none;
  margin: 0 0 30px;
  padding: 0;
  border-top: 1px solid rgba(59, 44, 35, 0.18);
}
.panettone__gusti li {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  column-gap: 14px;
  align-items: baseline;
  padding: 7px 0;
  border-bottom: 1px solid rgba(59, 44, 35, 0.18);
}
.panettone__gusti li::before {
  content: "";
  grid-row: span 2;
  align-self: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 0 1px rgba(59, 44, 35, 0.3);
}
.panettone__gusti b {
  font: 400 22px / 1.1 var(--title);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.panettone__gusti span {
  font-size: 14px;
  line-height: 1.4;
  color: rgba(59, 44, 35, 0.72);
}
.panettone__rows {
  margin-top: clamp(56px, 7vw, 100px);
  border-top: 1px solid var(--line);
}
.panettone__row {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.panettone__track {
  display: flex;
  align-items: center;
  width: max-content;
  font: 400 clamp(64px, 10vw, 150px) / 1.04 var(--title);
  text-transform: uppercase;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(59, 44, 35, 0.45);
  animation: pan-run 40s linear infinite;
  transition: color 0.5s var(--ease), -webkit-text-stroke-color 0.5s var(--ease);
}
.panettone__row:nth-child(even) .panettone__track {
  animation-direction: reverse;
}
.panettone__track i {
  width: 0.2em;
  height: 0.2em;
  margin: 0 0.4em;
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 0 1px rgba(59, 44, 35, 0.3);
}
.panettone__row.is-on .panettone__track,
.panettone__row:hover .panettone__track {
  color: var(--brown-ink);
  -webkit-text-stroke-color: var(--brown-ink);
}
@keyframes pan-run {
  to { transform: translateX(-50%); }
}
/* Live mode: only when JS runs and motion is welcome. */
.panettone--live .panettone__pin {
  height: 320vh;
}
.panettone--live .panettone__sticky {
  position: sticky;
  top: 0;
  height: 100dvh;
  overflow: hidden;
}
/* The card rides up over the last screen of the pin. */
.panettone--live .panettone__pin + .wrap {
  position: relative;
  z-index: 3;
  margin-top: -100dvh;
}
.panettone--live .panettone__mask {
  display: grid;
  place-items: center;
  position: absolute;
  inset: 0;
  z-index: 2;
  background: var(--cream);
  pointer-events: none;
}
.panettone__word {
  font: 400 25vw / 0.8 var(--title);
  text-align: center;
  white-space: nowrap;
  color: var(--brown-ink);
}
.panettone__word small {
  display: block;
  margin-top: 0.12em;
  font-size: 0.42em;
  letter-spacing: 0.02em;
}
.panettone__word small:first-child {
  margin: 0 0 0.12em;
}
@media (prefers-reduced-motion: reduce) {
  .panettone__track {
    animation: none;
  }
}
@media (max-width: 860px) {
  .panettone__card {
    grid-template-columns: 1fr;
  }
  .panettone__card > img {
    order: -1;
  }
}

/* Inner page hero */
.page-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(150px, 20vw, 210px) 0 clamp(56px, 8vw, 96px);
}
.page-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.32;
  filter: saturate(0.8);
  transform: scale(1.1);
  animation: settle 2.4s var(--ease) both;
}
@keyframes settle {
  from { transform: scale(1.25); opacity: 0; }
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(90% 120% at 100% 0%, rgba(253, 184, 34, 0.14), transparent 50%),
    linear-gradient(180deg, rgba(36, 26, 20, 0.4), var(--night));
}
.page-hero h1 {
  margin-top: 20px;
  animation: fade-up 1s 0.1s var(--ease) both;
}
.page-hero .lead {
  margin-top: 22px;
  animation: fade-up 1s 0.25s var(--ease) both;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font: 600 13px var(--display);
  color: rgba(255, 255, 255, 0.6);
}
.crumbs li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--gold);
}
.crumbs a {
  text-decoration: none;
}
.crumbs a:hover {
  color: var(--white);
}

/* ---------- Sections ---------- */

.section {
  padding: clamp(80px, 11vw, 160px) 0 clamp(90px, 12vw, 176px);
}
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 48px;
  align-items: end;
  margin-bottom: clamp(40px, 5vw, 72px);
}
.section-head h2 {
  grid-column: 1;
  margin: 0 0 12px;
}
.section-head .lead {
  grid-column: 1;
  grid-row: 2;
  max-width: 44ch;
  margin: 0;
}

/* Stats band */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line-night);
}
.stat {
  padding: 36px 24px 44px 0;
}
.stat + .stat {
  padding-left: 28px;
  border-left: 1px solid var(--line-night);
}
.stat__num {
  display: block;
  font: 900 clamp(48px, 6vw, 88px) / 1 var(--display);
  letter-spacing: -0.05em;
  color: var(--white);
  font-variant-numeric: tabular-nums;
}
.stat__num sup {
  font-size: 0.45em;
  color: var(--gold);
  vertical-align: top;
  position: relative;
  top: 0.15em;
}
.stat__label {
  display: block;
  margin-top: 12px;
  max-width: 22ch;
  font-size: 15px;
  line-height: 1.5;
}
@media (max-width: 760px) {
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stat:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }
  .stat:nth-child(n + 3) {
    border-top: 1px solid var(--line-night);
  }
}

/* ---------- Product cards ---------- */

.card {
  display: block;
  text-decoration: none;
  color: inherit;
}
.card__media {
  position: relative;
  margin: 0;
  aspect-ratio: 3 / 2;
  border-radius: var(--radius-lg);
  background: var(--cream);
  overflow: hidden;
  transition: background-color 0.4s var(--ease);
}
.card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px var(--line);
}
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: multiply;
  transition: transform 0.7s var(--spring);
}
.card:hover .card__media {
  background: var(--white);
}
.card:hover .card__media img {
  transform: scale(1.08) rotate(-2deg) translateY(-4px);
}
.card__body {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 6px 0;
}
.card__body h3 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  transition: color 0.2s;
}
.card:hover .card__body h3 {
  color: var(--brown);
}
.card__weight {
  flex-shrink: 0;
  font: 600 14px var(--display);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.card__section {
  display: block;
  padding: 4px 6px 0;
  font-size: 14px;
  color: var(--muted);
}

/* Horizontal rail */
.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(250px, 27vw, 380px);
  gap: clamp(18px, 2vw, 30px);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  padding: 4px max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))) 24px;
  scrollbar-width: none;
}
.rail::-webkit-scrollbar {
  display: none;
}
.rail > * {
  scroll-snap-align: start;
}
.rail-controls {
  grid-column: 2;
  grid-row: 1 / 3;
  display: flex;
  gap: 10px;
}
.rail-btn {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--brown-ink);
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, transform 0.3s var(--spring);
}
.rail-btn svg {
  width: 20px;
  height: 20px;
}
.rail-btn:hover {
  background: var(--brown-ink);
  color: var(--white);
}
.rail-btn:active {
  transform: scale(0.94);
}
.rail-btn:disabled {
  opacity: 0.3;
  pointer-events: none;
}
.rail-more {
  display: none;
}
/* Phones: the rail becomes a 2-column grid of the first six. */
@media (max-width: 560px) {
  .rail {
    grid-auto-flow: row;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 14px;
    overflow: visible;
    padding: 4px var(--gutter) 0;
  }
  .rail > :nth-child(n + 7),
  .rail-controls {
    display: none;
  }
  .rail .card__body {
    flex-direction: column;
    gap: 2px;
    padding: 10px 2px 0;
  }
  .rail .card__body h3 {
    font-size: 15px;
  }
  .rail .card__weight,
  .rail .card__section {
    font-size: 12px;
  }
  .rail .card__section {
    padding: 2px 2px 0;
  }
  .rail-more {
    display: block;
    margin-top: 28px;
  }
}

/* Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 48px clamp(18px, 2vw, 30px);
}

/* ---------- Story / split ---------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(40px, 7vw, 110px);
  align-items: center;
}
.split__media {
  position: relative;
}
.split__media img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.split__badge {
  position: absolute;
  right: -28px;
  bottom: -36px;
  display: grid;
  place-items: center;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--night);
  text-align: center;
  font: 800 15px/1.15 var(--display);
  box-shadow: 0 20px 40px -18px rgba(104, 79, 64, 0.8);
  transform: rotate(-10deg);
}
.split__badge strong {
  display: block;
  font-size: 40px;
  font-weight: 900;
  letter-spacing: -0.04em;
}
.split__body h2 {
  margin: 18px 0 26px;
}
.split__body p + p {
  margin-top: 18px;
}
.split__body .link-arrow {
  margin-top: 34px;
}
@media (max-width: 860px) {
  .split {
    grid-template-columns: 1fr;
  }
  .split__badge {
    right: 12px;
    width: 120px;
    height: 120px;
  }
}

/* ---------- Visit / contact ---------- */

.visit {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 18px;
}
.visit__card {
  padding: clamp(28px, 4vw, 52px);
  border-radius: var(--radius-lg);
  background: var(--white);
}
.visit__card h2 {
  margin: 18px 0 30px;
}
.info-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.info-list li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  align-items: start;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.info-list .ico {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--cream);
  color: var(--brown);
}
.info-list .ico svg {
  width: 20px;
  height: 20px;
}
.info-list small {
  display: block;
  font: 600 12px var(--display);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.info-list a,
.info-list span {
  font: 600 17px/1.5 var(--display);
  color: var(--brown-ink);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.info-list a:hover {
  color: var(--brown);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 4px;
}
.map {
  position: relative;
  display: block;
  min-height: 420px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.map img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(0.35) saturate(0.9);
  transition: transform 1s var(--ease);
}
.map:hover img {
  transform: scale(1.05);
}
.map__pin {
  position: absolute;
  left: 24px;
  bottom: 24px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: 999px;
  background: var(--night);
  color: var(--white);
  font: 700 14px var(--display);
}
.map__pin::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
}
.map__credit {
  position: absolute;
  right: 0;
  bottom: 0;
  padding: 2px 8px;
  background: rgba(255, 255, 255, 0.75);
  color: #444;
  font: 400 11px/1.4 var(--body);
}
@media (max-width: 860px) {
  .visit {
    grid-template-columns: 1fr;
  }
}

/* Open-now status */
.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--cream);
  font: 700 13px var(--display);
  color: var(--brown-ink);
}
.status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted);
}
.status.is-open::before {
  background: #3f9d5a;
  box-shadow: 0 0 0 4px rgba(63, 157, 90, 0.18);
}

/* ---------- Form ---------- */

.form {
  display: grid;
  gap: 18px;
}
.form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
@media (max-width: 600px) {
  .form__row {
    grid-template-columns: 1fr;
  }
}
.field label {
  display: block;
  margin-bottom: 8px;
  font: 700 14px var(--display);
  color: var(--brown-ink);
}
.field input,
.field textarea {
  width: 100%;
  padding: 16px 18px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: var(--cream);
  color: var(--brown-ink);
  font: 400 16px/1.5 var(--body);
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}
.field textarea {
  min-height: 170px;
  resize: vertical;
}
.field input:hover,
.field textarea:hover {
  border-color: rgba(104, 79, 64, 0.35);
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brown);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(253, 184, 34, 0.35);
}
.field[data-invalid] input,
.field[data-invalid] textarea {
  border-color: #b4472f;
}
.field__error {
  display: none;
  margin-top: 6px;
  font-size: 14px;
  color: #b4472f;
}
.field[data-invalid] .field__error {
  display: block;
}
.form__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.form__note {
  max-width: 40ch;
  font-size: 14px;
  color: var(--muted);
}
.form__status {
  min-height: 1.7em;
  font: 600 15px var(--display);
}
.form__status[data-state="ok"] {
  color: #2f7a45;
}
.form__status[data-state="error"] {
  color: #b4472f;
}
.btn[aria-busy="true"] {
  opacity: 0.7;
  pointer-events: none;
}

/* ---------- Catalogue ---------- */

.filters {
  position: sticky;
  top: 70px;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
  padding: 16px 0;
  margin-bottom: 40px;
  background: rgba(244, 239, 228, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
}
.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  flex: 1 1 520px;
  -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent);
  mask-image: linear-gradient(90deg, #000 92%, transparent);
}
.chips::-webkit-scrollbar {
  display: none;
}
.chip {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--brown-ink);
  font: 600 14px var(--display);
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.3s var(--spring);
}
.chip small {
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.chip:hover {
  border-color: var(--brown);
}
.chip:active {
  transform: scale(0.96);
}
.chip[aria-pressed="true"] {
  background: var(--brown-ink);
  border-color: var(--brown-ink);
  color: var(--white);
}
.chip[aria-pressed="true"] small {
  color: var(--gold);
}
.search {
  position: relative;
  flex: 0 1 280px;
}
.search svg {
  position: absolute;
  left: 16px;
  top: 50%;
  width: 18px;
  height: 18px;
  margin-top: -9px;
  color: var(--muted);
}
.search input {
  width: 100%;
  padding: 12px 16px 12px 44px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  font: 400 15px var(--body);
  color: var(--brown-ink);
}
.search input:focus {
  outline: none;
  border-color: var(--brown);
  box-shadow: 0 0 0 4px rgba(253, 184, 34, 0.35);
}
.family {
  scroll-margin-top: 150px;
}
.family + .family {
  margin-top: clamp(72px, 9vw, 120px);
}
.family__head {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: 36px;
  padding-bottom: 18px;
  border-bottom: 2px solid var(--brown-ink);
}
.family__head span {
  font: 700 15px var(--display);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.empty {
  display: none;
  padding: 80px 0;
  text-align: center;
}
.empty.is-visible {
  display: block;
}
.empty h2 {
  margin-bottom: 14px;
}
.empty button {
  margin-top: 26px;
}

/* ---------- Product page ---------- */

.product {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.product__media {
  position: sticky;
  top: 110px;
  margin: 0;
}
/* Fade only the outer edge of studio shots, so a backdrop slightly darker
   than the page never shows as a rectangle; the product itself stays intact. */
.product__media img {
  --edge: linear-gradient(90deg, transparent, #000 var(--fade, 7%), #000 calc(100% - var(--fade, 7%)), transparent),
    linear-gradient(180deg, transparent, #000 var(--fade, 7%), #000 calc(100% - var(--fade, 7%)), transparent);
  -webkit-mask-image: var(--edge);
  -webkit-mask-composite: source-in;
  mask-image: var(--edge);
  mask-composite: intersect;
}
.product__media img {
  width: 100%;
  mix-blend-mode: multiply;
  animation: fade-up 1.1s var(--ease) both;
}
.product__title {
  /* Sized to the half column: one-word names like "Tartarughina" must fit. */
  font-size: clamp(60px, 8vw, 128px);
  hyphens: auto;
  overflow-wrap: break-word;
}
.product__code {
  display: inline-block;
  margin-top: 20px;
  padding: 6px 12px;
  border-radius: 6px;
  background: var(--cream-2);
  font: 700 13px var(--display);
  letter-spacing: 0.06em;
  color: var(--brown);
}
.product h1 {
  margin-top: 20px;
}
.product__legal {
  margin-top: 14px;
  font-style: italic;
  color: var(--muted);
}
.specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 40px 0 0;
  border-top: 1px solid var(--line);
}
.specs div {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.specs div:nth-child(even) {
  padding-left: 24px;
  border-left: 1px solid var(--line);
}
.specs dt {
  font: 600 12px var(--display);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.specs dd {
  margin: 6px 0 0;
  font: 700 22px var(--display);
  letter-spacing: -0.02em;
  color: var(--brown-ink);
  font-variant-numeric: tabular-nums;
}

.scale {
  margin-top: 40px;
}
.scale__label {
  display: flex;
  justify-content: space-between;
  font: 600 12px var(--display);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.scale__bar {
  position: relative;
  height: 64px;
  margin-top: 12px;
}
.scale__bar::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 12px);
}
.scale__dot {
  position: absolute;
  top: 50%;
  left: var(--at);
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 10px 24px -8px rgba(104, 79, 64, 0.6), inset 0 -4px 0 rgba(104, 79, 64, 0.18);
  transform: translate(-50%, -50%) scale(0);
  transition: transform 1s var(--spring) 0.3s;
}
.is-in .scale__dot {
  transform: translate(-50%, -50%) scale(1);
}
.scale__ticks {
  position: relative;
  height: 1.4em;
  margin-top: 6px;
  font: 600 12px var(--display);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.scale__ticks span {
  position: absolute;
  left: var(--at);
  transform: translateX(-50%);
  white-space: nowrap;
}
.scale__ticks span:first-child {
  transform: none;
}
.scale__ticks span:last-child {
  transform: translateX(-100%);
}

.block {
  margin-top: 44px;
}
.block h2 {
  margin-bottom: 14px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.block p {
  font-size: 16px;
}
.block strong {
  font-weight: 700;
  color: var(--brown-ink);
  background: linear-gradient(transparent 62%, rgba(253, 184, 34, 0.45) 62%);
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.tags li {
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--brown-ink);
  color: var(--white);
  font: 700 13px var(--display);
}
.tags + p {
  margin-top: 14px;
  font-size: 14px;
  color: var(--muted);
}

.pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 56px;
}
.pager a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px 22px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color 0.2s, background-color 0.2s, transform 0.3s var(--spring);
}
.pager a:hover {
  border-color: var(--brown);
  background: var(--white);
  transform: translateY(-2px);
}
.pager small {
  font: 600 12px var(--display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.pager span {
  font: 700 17px var(--display);
  color: var(--brown-ink);
}
.pager a:last-child {
  text-align: right;
}
@media (max-width: 860px) {
  .product {
    grid-template-columns: 1fr;
  }
  .product__media {
    position: static;
  }
}

/* ---------- Footer ---------- */

.site-footer {
  position: relative;
  overflow: hidden;
  padding: clamp(80px, 10vw, 130px) 0 36px;
}
.footer-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: clamp(56px, 7vw, 90px);
  border-bottom: 1px solid var(--line-night);
}
.footer-cta h2 {
  max-width: 20ch;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, minmax(0, 1fr));
  gap: 40px;
  padding: 56px 0;
}
.footer-grid h3 {
  margin-bottom: 18px;
  font: 600 12px var(--display);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}
.footer-grid ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-grid li + li {
  margin-top: 8px;
}
.footer-grid a {
  text-decoration: none;
  transition: color 0.2s;
}
.footer-grid a:hover {
  color: var(--white);
}
.footer-brand img {
  width: 96px;
  border-radius: 50%;
  background: var(--white);
  padding: 3px;
}
.footer-brand p {
  margin-top: 20px;
  max-width: 30ch;
  font-size: 15px;
}
.hours {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 16px;
  margin: 0;
  font-size: 15px;
}
.hours dd {
  margin: 0;
  color: var(--white);
  font-variant-numeric: tabular-nums;
}
.socials {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}
.socials a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line-night);
  transition: background-color 0.2s, color 0.2s, transform 0.3s var(--spring);
}
.socials a:hover {
  background: var(--gold);
  color: var(--night);
  transform: translateY(-3px);
}
.socials svg {
  width: 18px;
  height: 18px;
}
.footer-word {
  width: min(100%, 760px);
  margin-top: 20px;
  opacity: 0.08;
  filter: brightness(0) invert(1);
  user-select: none;
}
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}
@media (max-width: 960px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Reveal on scroll ---------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  transition-delay: calc(var(--i, 0) * 80ms);
}
.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .hero__media img:first-child {
    opacity: 1;
  }
}

/* Pages without a dark hero keep the header solid from the start. */
.plain .site-header {
  background: rgba(36, 26, 20, 0.86);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
}
.product .crumbs {
  color: var(--muted);
}
.product .crumbs a:hover {
  color: var(--brown-ink);
}

/* About: story timeline. A rail on the left fills with gold as you scroll
   (--p, set by site.js) and each year fills in once the reader reaches it. */
.story {
  --p: 1;
  position: relative;
  list-style: none;
  margin: clamp(32px, 4vw, 56px) 0 0;
  padding: 0 0 0 clamp(40px, 6vw, 88px);
}
.story::before,
.story::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: var(--line);
}
.story::after {
  background: var(--gold);
  transform-origin: top;
  transform: scaleY(var(--p));
}
.story li {
  position: relative;
  display: grid;
  grid-template-columns: minmax(110px, 260px) minmax(0, 62ch);
  gap: 8px clamp(24px, 4vw, 64px);
  padding-block: clamp(28px, 4vw, 56px);
}
.story li::before {
  content: "";
  position: absolute;
  left: calc(-1 * clamp(40px, 6vw, 88px));
  top: calc(clamp(28px, 4vw, 56px) + 0.35em);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--cream);
  border: 2px solid var(--line);
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), transform 0.5s var(--spring);
}
.story p {
  grid-column: 2;
  margin: 0;
}
.story p + p {
  margin-top: 1em;
}
.story__year {
  grid-row: 1 / span 2;
  font: clamp(64px, 9vw, 128px)/0.8 var(--title);
  color: var(--brown);
  transition: color 0.5s var(--ease), -webkit-text-stroke-color 0.5s var(--ease);
}
.js .story li:not(.is-active) .story__year {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--brown);
  opacity: 0.55;
}
.js .story li.is-active::before,
html:not(.js) .story li::before {
  background: var(--gold);
  border-color: var(--gold);
  transform: scale(1.25);
}
.story li:last-child .story__year {
  color: var(--gold);
}
@media (max-width: 560px) {
  .story li {
    grid-template-columns: minmax(0, 1fr);
  }
  .story p,
  .story__year {
    grid-column: 1;
    grid-row: auto;
  }
  .story__year {
    margin-bottom: 12px;
  }
}

/* Privacy page: long-form text. */
.legal {
  max-width: 76ch;
}
.legal h2 {
  margin: 2.2em 0 0.6em;
}
.legal h2:first-child {
  margin-top: 0;
}
.legal ul {
  padding-left: 1.2em;
}
.legal li + li {
  margin-top: 0.6em;
}
.legal a {
  text-decoration: underline;
}
.legal__date {
  margin-top: 3em;
  color: var(--muted);
  font-size: 14px;
}
