/* Radiatori d'Arredo — landing. Fedele a "Landing Termo Arredo v2" (Claude Design).
   Breakpoint unico a 720px (mobile <720). I blocchi "pin" (cataloghi su mobile,
   colore ovunque) si attivano solo con viewport alto almeno 600px. */

:root {
  --cream: #f1ece4;
  --ink: #1f1915;
  --dark: #2b211c;
  --gold: #856638;          /* l'oro del design (#8a6a3a) scurito di un soffio: AA sul crema */
  --gold-text: #7a5e33;     /* etichette piccole: AA anche sul sabbia dei cataloghi */
  --gold-light: #c9a46c;
  --muted: #5e544b;
  --line: #ddd4c6;
  --sand: #e8e1d6;
  --ph: #e3dbcf;
  --paper: #fbf8f3;
  --dark-line: #5a4a3f;
  --dark-muted: #cbbfb0;
  --wa: #4fd37f;

  --serif: 'Bodoni Moda', 'Didot', 'Bodoni 72', serif;
  --sans: 'Manrope', system-ui, sans-serif;
  --pad-x: clamp(20px, 4vw, 56px);
  --pad-y: clamp(80px, 10vw, 160px);
  --max: 1440px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  caret-color: var(--gold);
}
a { color: inherit; text-decoration: none; }
a:hover { opacity: .85; }
img { display: block; max-width: 100%; }
input, select, textarea, button { font: inherit; }
h1, h2, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--dark); color: var(--cream); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.on-dark :focus-visible, .mbar :focus-visible, .fab :focus-visible { outline-color: var(--gold-light); }
em { font-style: italic; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 10px 18px; background: var(--ink); color: var(--cream); border-radius: 999px;
  font-size: 13px; letter-spacing: .1em; text-transform: uppercase;
}
.skip:focus { top: 12px; }

@keyframes leafSway { 0% { transform: translate(0, 0) rotate(0deg); } 50% { transform: translate(18px, 10px) rotate(3deg); } 100% { transform: translate(0, 0) rotate(0deg); } }
@keyframes badgeSpin { to { transform: rotate(360deg); } }

/* ---------- elementi ricorrenti ---------- */
.wrap { max-width: var(--max); margin: 0 auto; }
.eyebrow { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-text); }
.on-dark .eyebrow { color: var(--gold-light); }
.h2 { font-family: var(--serif); font-weight: 400; line-height: .95; letter-spacing: -.02em; }
.h2--xl { font-size: clamp(48px, 6vw, 96px); }
.h2--l { font-size: clamp(44px, 5vw, 80px); line-height: .98; }
.ph { position: relative; overflow: hidden; border-radius: 2px; background: var(--ph); }
.ph > img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.r45 { aspect-ratio: 4 / 5; }
.r34 { aspect-ratio: 3 / 4; }

.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  white-space: nowrap; border-radius: 999px; text-transform: uppercase; cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.pill--ink { background: var(--ink); color: var(--cream); border: 0; }
.pill--line { border: 1px solid var(--ink); background: transparent; color: var(--ink); }
.pill--line.inv:hover { background: var(--ink); color: var(--cream); opacity: 1; }
.pill--sm { padding: 12px 18px; font-size: 12px; letter-spacing: .1em; }
.pill--md { padding: 12px 22px; font-size: 13px; letter-spacing: .1em; }
.link-under {
  white-space: nowrap; font-size: 13px; letter-spacing: .1em; text-transform: uppercase;
  border-bottom: 1px solid var(--ink); padding-bottom: 2px;
}

/* ---------- foglie in controluce (sfondo fisso) ---------- */
.leaves { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; opacity: .09; }
.leaves__cluster { position: absolute; width: 520px; height: 520px; transform-origin: 0 0; animation: leafSway 11s ease-in-out infinite; }
.leaves__cluster--a { right: -120px; top: -60px; }
.leaves__cluster--b { left: -140px; bottom: -80px; animation-duration: 13s; animation-delay: -4s; }
.leaves__cluster i { position: absolute; border-radius: 100% 0; background: #3b2a1c; filter: blur(14px); }

/* ---------- header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(241, 236, 228, .92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header__bar {
  max-width: var(--max); margin: 0 auto; padding: 18px var(--pad-x);
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.logo { white-space: nowrap; flex-shrink: 0; font-family: var(--serif); font-size: 24px; letter-spacing: .02em; }
.logo em { color: var(--gold); }
.nav { display: flex; gap: clamp(16px, 2.4vw, 36px); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; flex-wrap: wrap; }
.header__cta { flex-shrink: 0; padding: 11px 22px; font-size: 13px; letter-spacing: .1em; }
.menu-btn { display: none; min-height: 44px; padding: 10px 20px; font-size: 13px; letter-spacing: .12em; }
.mmenu { display: none; }
.mmenu a.mmenu__link { padding: 14px 0; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: clamp(22px, 2.2vw, 28px); }
.mmenu__actions { display: flex; gap: 10px; padding-top: 20px; }
.mmenu__actions .pill { flex: 1; padding: 15px 12px; font-size: 13px; letter-spacing: .1em; }

/* ---------- hero ---------- */
.hero {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(32px, 4vw, 56px) var(--pad-x) 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
  gap: clamp(32px, 5vw, 80px); align-items: end;
}
.hero__copy { display: flex; flex-direction: column; gap: 36px; padding-bottom: clamp(8px, 3vw, 48px); }
.hero__kicker { display: flex; align-items: center; gap: 14px; }
.hero__kicker::before { content: ""; width: 40px; height: 1px; background: currentColor; }
.hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 5.8vw, 112px); line-height: .92; letter-spacing: -.025em; }
.hero h1 .nw { white-space: nowrap; }
.hero h1 em { font-weight: 700; color: var(--gold); }
.hero__lead { max-width: 27em; font-size: 19px; color: var(--muted); text-wrap: pretty; }
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero__ctas .pill { flex: 1 1 auto; padding: 18px 32px; font-size: 14px; letter-spacing: .1em; }
.hero__ctas .pill--ink:hover { background: var(--gold); opacity: 1; }
.hero__stats { display: flex; gap: 20px 36px; flex-wrap: wrap; padding-top: 28px; border-top: 1px solid var(--line); }
.stat__v { font-family: var(--serif); font-size: clamp(24px, 2.4vw, 30px); line-height: 1; }
.stat__l { font-size: 13px; color: var(--muted); margin-top: 6px; }
.hero__media { position: relative; }
.badge {
  position: absolute; top: 20px; right: 20px; width: clamp(96px, 11vw, 132px); aspect-ratio: 1 / 1;
  border-radius: 50%; background: var(--cream); display: grid; place-items: center;
  box-shadow: 0 10px 30px rgba(31, 25, 21, .18);
}
.badge svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: badgeSpin 22s linear infinite; }
.badge text { font-family: var(--sans); font-size: 9.6px; letter-spacing: 2.1px; fill: var(--ink); }
.badge__it { font-family: var(--serif); font-style: italic; font-size: clamp(18px, 2vw, 24px); color: var(--gold-text); }
.hero__tag { position: absolute; left: 20px; bottom: 20px; padding: 14px 18px; background: var(--cream); display: flex; flex-direction: column; gap: 2px; min-width: 220px; }
.hero__tag-l { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-text); }
.hero__tag-t { font-family: var(--serif); font-size: 20px; }

/* ---------- manifesto ---------- */
.manifesto { background: var(--dark); color: var(--cream); margin-top: clamp(64px, 8vw, 120px); }
.manifesto__in {
  padding: var(--pad-y) var(--pad-x);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: clamp(40px, 5vw, 80px);
}
.span2 { grid-column: span 2; min-width: 0; }
.manifesto__body { display: flex; flex-direction: column; gap: clamp(36px, 5vw, 56px); }
.manifesto__quote { font-family: var(--serif); font-size: clamp(28px, 3.8vw, 58px); line-height: 1.15; letter-spacing: -.01em; text-wrap: pretty; }
.manifesto__quote em { color: var(--gold-light); }
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; }
.pillar { border-top: 1px solid var(--dark-line); padding-top: 20px; }
.pillar__t { font-family: var(--serif); font-size: 24px; }
.pillar__d { color: var(--dark-muted); font-size: 15px; margin-top: 6px; }

/* ---------- collezione ---------- */
.coll { padding: var(--pad-y) var(--pad-x); display: flex; flex-direction: column; gap: 48px; }
.split-head { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 32px; align-items: end; }
.split-head__t { display: flex; flex-direction: column; gap: 18px; }
.coll__intro { display: flex; flex-direction: column; gap: 20px; }
.coll__intro p, .cat__intro { color: var(--muted); max-width: 30em; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tab { padding: 10px 18px; font-size: 13px; letter-spacing: .08em; }
.tab[aria-pressed="true"] { background: var(--ink); color: var(--cream); }
.coll__body { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: clamp(32px, 5vw, 72px); align-items: start; }
.preview { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 16px; }
.preview__meta { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.preview__fam { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-text); }
.preview__name { font-family: var(--serif); font-size: clamp(22px, 2.2vw, 28px); }
.pieces { display: flex; flex-direction: column; border-top: 1px solid var(--ink); }
.piece { padding: 14px 8px; border-bottom: 1px solid var(--line); transition: background-color .2s ease; }
.piece:hover, .piece.is-active { background: var(--sand); }
.piece[hidden] { display: none; }
.piece__row {
  width: 100%; padding: 0; border: 0; background: none; color: inherit; text-align: left; cursor: pointer;
  display: grid; grid-template-columns: 60px minmax(0, 1fr) auto; gap: 16px; align-items: center;
}
.piece__thumb { width: 60px; aspect-ratio: 4 / 5; border-radius: 2px; overflow: hidden; background: var(--ph); outline: 1px solid transparent; outline-offset: 2px; }
.piece.is-active .piece__thumb { outline-color: var(--gold); }
.piece__thumb img { width: 100%; height: 100%; object-fit: cover; }
.piece__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.piece__name { font-family: var(--serif); font-size: clamp(22px, 2.6vw, 38px); line-height: 1.1; }
.piece__fam { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.piece__price { white-space: nowrap; font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--muted); }
.piece__inline { display: none; flex-direction: column; gap: 12px; padding-top: 10px; }
.piece__inline .link-under { align-self: flex-start; padding: 8px 0; }

/* ---------- cataloghi ---------- */
.cat { background: var(--sand); }
.cat__in {
  max-width: var(--max); margin: 0 auto; padding: var(--pad-y) var(--pad-x);
  display: flex; flex-direction: column; justify-content: safe center; gap: 56px;
}
.cat__track {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: clamp(16px, 2.4vw, 36px); scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}
.catcard { display: flex; flex-direction: column; gap: 18px; scroll-snap-align: start; min-width: 0; }
.catcard__sheet { display: flex; flex-direction: column; box-shadow: 0 1px 0 #cfc5b6, 0 24px 48px -24px rgba(31, 25, 21, .35); }
.catcard__head { padding: 16px 18px; background: var(--cream); display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.catcard__title { font-family: var(--serif); font-size: 20px; }
.catcard__n { font-size: 11px; letter-spacing: .16em; color: var(--gold-text); }
.catcard__img { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: var(--cream); }
.catcard__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.catcard__desc { font-size: 15px; color: var(--muted); min-height: 3em; }
.catcard__actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- colore ---------- */
.colore-track { position: relative; height: 400vh; }
.colore {
  --col-bg: #ece6dc; --col-fg: #1f1915;
  position: sticky; top: 0; height: 100vh; height: 100svh;
  display: flex; align-items: safe center; overflow: hidden;
  background: var(--col-bg); color: var(--col-fg);
  transition: background-color .6s ease, color .6s ease;
}
.colore__in {
  width: 100%; max-width: var(--max); margin: 0 auto; padding: 100px var(--pad-x) 32px;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(40px, 5vw, 80px); align-items: center;
}
.colore__text { display: flex; flex-direction: column; gap: clamp(12px, 2.4svh, 26px); min-width: 0; }
.colore__label { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; }
.colore__h2 { font-size: min(clamp(48px, 6vw, 96px), 10svh); }
.colore__block { display: flex; flex-direction: column; gap: 6px; padding: clamp(8px, 2svh, 22px) 0; border-top: 1px solid currentColor; border-bottom: 1px solid currentColor; }
.colore__name { font-family: var(--serif); font-style: italic; font-size: clamp(28px, 3.4vw, 48px); line-height: 1.1; }
.colore__mood { font-size: 16px; max-width: 28em; }
.swatches { display: flex; gap: 12px; flex-wrap: wrap; }
.swatch {
  width: 48px; height: 48px; padding: 0; border-radius: 50%; cursor: pointer;
  background: var(--sw); border: 2px solid transparent; outline: 1px solid rgba(0, 0, 0, .15); outline-offset: 3px;
}
.swatch[aria-pressed="true"] { border-color: var(--col-fg); }
.swatch:focus-visible { outline: 2px solid var(--col-fg); }
.colore__prog { display: flex; align-items: center; gap: 14px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.colore__step { white-space: nowrap; font-variant-numeric: tabular-nums; }
.prog { position: relative; flex: 1; max-width: 240px; height: 2px; }
.prog::before { content: ""; position: absolute; inset: 0; background: currentColor; opacity: .22; }
.prog__fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: currentColor; }
.colore__hint { white-space: nowrap; }
.colore__note { font-size: 14px; }
.colore__media {
  height: calc(100vh - 150px); height: calc(100svh - 150px); aspect-ratio: 4 / 5; max-width: 100%;
  justify-self: center; overflow: hidden; border-radius: 2px; background: rgba(0, 0, 0, .08);
}
.colore__stack { position: relative; width: 100%; height: 100%; }
.colore__stack img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; z-index: 0; }
.colore__stack img.is-prev { opacity: 1; z-index: 1; }
.colore__stack img.is-on { opacity: 1; z-index: 2; transition: opacity 250ms ease; }

/* ---------- come funziona ---------- */
.come {
  padding: var(--pad-y) var(--pad-x);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: clamp(40px, 5vw, 80px); align-items: center;
}
.come__pics { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.come__pics .ph:last-child { margin-top: 64px; }
.come__text { display: flex; flex-direction: column; gap: 32px; }
.steps { display: flex; flex-direction: column; }
.step { display: grid; grid-template-columns: 64px 1fr; gap: 16px; padding: 22px 0; border-top: 1px solid var(--line); }
.step:last-child { border-bottom: 1px solid var(--line); }
.step__n { font-family: var(--serif); font-style: italic; font-size: 32px; line-height: 1; color: var(--gold); }
.step__t { font-weight: 600; }
.step__d { color: var(--muted); font-size: 16px; }

/* ---------- info + faq ---------- */
.info { background: var(--dark); color: var(--cream); }
.info__in { padding: var(--pad-y) var(--pad-x); display: flex; flex-direction: column; gap: clamp(56px, 7vw, 96px); }
.perks { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 32px 20px; }
.perk { border-top: 1px solid var(--gold-light); padding-top: 20px; }
.perk__t { font-family: var(--serif); font-size: clamp(22px, 2.2vw, 28px); }
.perk__d { color: var(--dark-muted); font-size: 15px; margin-top: 4px; }
.faq { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 48px; }
.faq__head { display: flex; flex-direction: column; gap: 18px; }
.faq__list { display: flex; flex-direction: column; border-top: 1px solid var(--dark-line); }
.faq__item { border-bottom: 1px solid var(--dark-line); }
.faq__item summary {
  list-style: none; cursor: pointer; padding: 24px 0;
  display: flex; justify-content: space-between; gap: 24px;
  font-family: var(--serif); font-size: clamp(21px, 2vw, 27px); line-height: 1.25; color: var(--cream);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__sign { position: relative; flex: 0 0 12px; height: 12px; margin-top: .5em; color: var(--gold-light); }
.faq__sign::before, .faq__sign::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; margin-top: -.75px; background: currentColor; transition: transform .3s var(--ease); }
.faq__sign::after { transform: rotate(90deg); }
.faq__item[open] .faq__sign::after { transform: rotate(0deg); }
.faq__item p { margin: 0 0 24px; max-width: 42em; color: var(--dark-muted); }

/* ---------- social ---------- */
.social { padding: clamp(80px, 10vw, 140px) var(--pad-x) 0; display: flex; flex-direction: column; gap: 32px; }
.social__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.social__t { display: flex; flex-direction: column; gap: 12px; }
.social__h2 { font-size: clamp(36px, 4vw, 60px); line-height: 1; }
.social__links { display: flex; gap: 10px; }
.social__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.social__grid a { display: block; aspect-ratio: 1 / 1; }

/* ---------- showroom + form ---------- */
.showroom {
  padding: var(--pad-y) var(--pad-x);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: clamp(40px, 5vw, 80px);
}
.showroom__info { display: flex; flex-direction: column; gap: 28px; }
.showroom__info > p { color: var(--muted); max-width: 28em; }
.contacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; padding: 28px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.contacts__l { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-text); }
.contacts__l + .contacts__l, .contacts a + .contacts__l { margin-top: 16px; }
.contacts__v { display: block; font-family: var(--serif); font-size: 21px; line-height: 1.3; margin-top: 6px; font-style: normal; }
a.contacts__v { line-height: 1.6; }
.contacts__mail { display: block; font-size: 16px; margin-top: 6px; word-break: break-all; }
.showroom__pic { aspect-ratio: 16 / 9; }
.formbox { background: var(--paper); padding: clamp(28px, 3.4vw, 52px); border-radius: 2px; align-self: start; }
.form { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 22px; }
.form[hidden], .sent[hidden] { display: none; }
.full { grid-column: 1 / -1; }
.form__head { display: flex; flex-direction: column; gap: 6px; }
.form__title { font-family: var(--serif); font-size: 34px; line-height: 1.1; }
.form__sub { color: var(--muted); font-size: 15px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
  padding: 12px 0; border: 0; border-bottom: 1px solid var(--ink); border-radius: 0; background: transparent;
  font-size: 17px; color: var(--ink); outline: none; letter-spacing: 0; text-transform: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field select { -webkit-appearance: none; appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%231f1915' stroke-width='1.4'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 2px center; padding-right: 24px; }
.field textarea { resize: vertical; }
.field ::placeholder { color: #8a8076; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { border-bottom-color: var(--gold); box-shadow: 0 1px 0 var(--gold); }
.form__submit { padding: 18px; font-size: 14px; letter-spacing: .12em; }
.form__submit:hover { background: var(--gold); }
.sent { display: flex; flex-direction: column; gap: 16px; padding: 16px 0; }
.sent__t { font-family: var(--serif); font-size: 40px; line-height: 1.05; }
.sent p { color: var(--muted); }
.sent .pill { align-self: flex-start; }

/* ---------- mappa + footer ---------- */
.map { width: 100%; height: clamp(320px, 42vw, 520px); background: var(--ph); }
.map iframe { width: 100%; height: 100%; display: block; border: 0; filter: grayscale(1) sepia(.25) contrast(.95); }
.footer { background: var(--dark); color: var(--dark-muted); }
.footer__in { padding: clamp(56px, 6vw, 96px) var(--pad-x) 96px; display: flex; flex-direction: column; gap: 48px; }
.footer__mark { font-family: var(--serif); font-size: clamp(48px, 9vw, 150px); line-height: .9; letter-spacing: -.03em; color: var(--cream); }
.footer__mark em { color: var(--gold-light); }
.footer__bar { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; font-size: 13px; padding-top: 24px; border-top: 1px solid var(--dark-line); }
.footer__links { display: flex; gap: 22px; flex-wrap: wrap; }

/* ---------- pulsanti fissi ---------- */
.fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  display: flex; align-items: center; gap: 10px; white-space: nowrap; padding: 13px 20px;
  background: var(--dark); color: var(--cream); border-radius: 999px;
  font-size: 14px; font-weight: 500; letter-spacing: .02em; box-shadow: 0 10px 30px rgba(31, 25, 21, .3);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--wa); flex-shrink: 0; }
.totop {
  position: fixed; left: 20px; bottom: 20px; z-index: 60; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--ink); background: var(--cream); color: var(--ink); cursor: pointer;
  display: grid; place-items: center; box-shadow: 0 8px 24px rgba(31, 25, 21, .18);
  transition: background-color .2s ease, color .2s ease, opacity .3s ease, transform .3s var(--ease);
}
.totop:hover { background: var(--ink); color: var(--cream); }
.totop[hidden] { display: grid; opacity: 0; transform: translateY(12px); pointer-events: none; visibility: hidden; }
.mbar {
  display: none; position: fixed; left: 14px; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 58;
  grid-template-columns: 1fr 1.2fr 1.2fr; gap: 4px; padding: 5px;
  background: var(--dark); color: var(--cream); border-radius: 999px; box-shadow: 0 14px 34px rgba(31, 25, 21, .35);
}
.mbar a { min-height: 46px; display: flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.mbar a.mbar__mid { border-left: 1px solid rgba(241, 236, 228, .16); border-right: 1px solid rgba(241, 236, 228, .16); }
.mbar a.mbar__main { background: var(--cream); color: var(--ink); }
.mbar .dot { width: 7px; height: 7px; }

/* ---------- mobile (<720px) ---------- */
@media (max-width: 719px) {
  .nav, .header__cta, .fab, .preview, .cat__intro, .catcard__desc, .colore__hint { display: none; }
  .menu-btn { display: inline-flex; min-width: 94px; }   /* stessa larghezza con "Menu" e "Chiudi" */
  .header__bar { flex-wrap: nowrap; gap: 16px; }          /* il pulsante non va mai a capo */
  /* Menu a tendina sopra la pagina: non sposta il contenuto. L'header e' sticky
     (quindi riferimento per absolute) e occupa il resto dello schermo. */
  .mmenu {
    position: absolute; top: 100%; left: 0; right: 0;
    display: flex; flex-direction: column; padding: 0 20px 28px;
    height: calc(100vh - var(--hdr, 81px)); height: calc(100dvh - var(--hdr, 81px)); overflow-y: auto; overscroll-behavior: contain;
    background: var(--cream); border-top: 1px solid var(--line);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .25s ease, transform .35s var(--ease), visibility 0s linear .35s;
  }
  .mmenu.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  html.menu-open { overflow: hidden; }
  html.menu-open .mbar, html.menu-open .totop { visibility: hidden; }
  /* Filtri della collezione su una riga, scorrevoli di lato fino al bordo dello schermo */
  .tabs {
    flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(-1 * var(--pad-x)); padding: 0 var(--pad-x); scroll-padding-inline: var(--pad-x);
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 16px, #000 calc(100% - 24px), transparent);
    mask-image: linear-gradient(to right, transparent, #000 16px, #000 calc(100% - 24px), transparent);
  }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { flex-shrink: 0; }
  .mbar { display: grid; }
  .totop { bottom: 92px; }
  .hero h1 { font-size: clamp(40px, 12vw, 88px); }
  .hero__media { order: -1; }
  .span2 { grid-column: auto; }
  .piece__row { grid-template-columns: 48px minmax(0, 1fr) auto; gap: 10px; }
  .piece__thumb { width: 48px; }
  .piece.is-active .piece__inline { display: flex; padding-top: 20px; }
  .colore__media { order: -1; }
  .social__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .footer__in { padding-bottom: 160px; }
}

@media (max-width: 359px) {
  .logo { font-size: 21px; }
}

/* cataloghi: su mobile alto la sezione si blocca e le copertine scorrono di lato */
@media (max-width: 719px) and (min-height: 600px) {
  .cat { height: 360vh; }
  .cat__in { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; padding: 76px 20px 88px; gap: 20px; }
  .cat .h2--xl { font-size: clamp(34px, 9vw, 44px); }
  .cat__track {
    grid-template-columns: none; grid-auto-flow: column; overflow: visible; will-change: transform;
    grid-auto-columns: max(110px, min(72vw, calc((100vh - 410px) * .75)));
    grid-auto-columns: max(110px, min(72vw, calc((100svh - 410px) * .75)));
  }
  .colore__in { padding: 76px 20px 88px; grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .colore__text { gap: 14px; }
  .colore__h2 { font-size: clamp(32px, 9vw, 44px); }
  .colore__block { padding: 12px 0; }
  .colore__media { height: min(36svh, calc(100svh - 470px)); }
  .colore__label, .colore__note { display: none; }
}

/* viewport basso (<600px): niente blocchi in sticky, tutto scorre normale */
@media (max-height: 599px) {
  .colore-track { height: auto; }
  .colore { position: relative; height: auto; }
  .colore__in { padding: 96px var(--pad-x) 72px; }
  .colore__media { height: min(80vh, 640px); }
  .colore__prog, .colore__label, .colore__note { display: none; }
}
@media (max-width: 719px) and (max-height: 599px) {
  .cat__track { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 72%; overflow-x: auto; padding-bottom: 12px; }
  .cat__in { padding: 64px 20px 56px; gap: 20px; }
  .cat .h2--xl { font-size: clamp(34px, 9vw, 44px); }
  .colore__in { padding: 72px 20px 56px; grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .colore__text { gap: 14px; }
  .colore__h2 { font-size: clamp(32px, 9vw, 44px); }
  .colore__block { padding: 12px 0; }
  .colore__media { height: auto; width: 100%; }
}
/* desktop con viewport fra 600 e 759px: si tolgono etichetta e nota del colore */
@media (min-width: 720px) and (max-height: 759px) {
  .colore__label, .colore__note { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .leaves__cluster, .badge svg { animation: none; }
  .mmenu { transform: none; }
  .colore { transition-duration: .01ms; }
}
