/* Shared colors/fonts/ease/mx come from /tokens.css. Only this
   page's own overrides live here. */
:root {
  --sp: clamp(64px, 12vw, 160px);
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  background: var(--ombra);
  color: var(--luce);
  font-family: var(--text);
  padding-top: 92px;
  -webkit-font-smoothing: antialiased;
}
@media (max-width: 900px) {
  body {
    padding-top: 76px;
  }
}
.wrap {
  max-width: 2200px;
  margin: 0 auto;
  padding: 0 var(--mx);
  width: 100%;
}
.eyebrow {
  font-family: var(--mono);
  font-size: 15px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--oro);
}
.h1 {
  font-family: var(--display-xl);
  text-transform: uppercase;
  overflow-wrap: anywhere;
  hyphens: auto;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.05;
}

/* ── PRODUCT TOP NAV (replaces the site header on this page) ── */
/* Single fixed row: chooser pills centered as a group, Home pinned
   to the far right. Same Liquid-Glass recipe as the main header's
   pills (subtle blur, dark tint, thin top specular highlight, fully
   rounded) on every item, just reused here instead of new styles. */
.product-topnav {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 20px var(--mx);
}
.product-topnav .chooser {
  grid-column: 2;
  justify-self: center;
}
.product-topnav .topnav-actions {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 14px;
}
.home-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 28px;
  border-radius: 9999px;
  font-family: var(--text);
  font-size: 16px;
  font-weight: 500;
  color: var(--luce);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(10px) saturate(150%) brightness(1.08);
  -webkit-backdrop-filter: blur(10px) saturate(150%) brightness(1.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    0 8px 30px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  will-change: backdrop-filter;
}
.home-pill::before {
  content: "";
  position: absolute;
  inset: 0 14px auto 14px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.5) 45%,
    rgba(255, 255, 255, 0.5) 55%,
    transparent
  );
  pointer-events: none;
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .home-pill {
    background: rgba(32, 32, 36, 0.9);
  }
}

/* ── CHOOSER (3 floating glass pills) ── */
.chooser {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}
.chooser-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 52px;
  padding: 0 28px;
  border-radius: 9999px;
  color: var(--cenere);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(10px) saturate(150%) brightness(1.08);
  -webkit-backdrop-filter: blur(10px) saturate(150%) brightness(1.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    0 8px 30px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  will-change: backdrop-filter;
  transition:
    border-color 200ms var(--ease),
    color 200ms var(--ease),
    background 200ms var(--ease);
}
.chooser-card::before {
  content: "";
  position: absolute;
  inset: 0 14px auto 14px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.5) 45%,
    rgba(255, 255, 255, 0.5) 55%,
    transparent
  );
  pointer-events: none;
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .chooser-card {
    background: rgba(32, 32, 36, 0.9);
  }
}
@media (hover: hover) {
  .chooser-card:hover {
    border-color: var(--nebbia);
  }
}
.chooser-card.active {
  background: var(--luce);
  color: var(--ombra);
  border-color: var(--luce);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.chooser-card.active::before {
  opacity: 0;
}

/* ── PANELS (crossfade) ── */
.product-panel {
  display: none;
  opacity: 0;
  transition: opacity 260ms var(--ease);
}
.product-panel.active {
  display: block;
  opacity: 1;
}

/* ── CUSTOM PRODUCTS placeholders ── */
.custom-placeholders {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: var(--sp) var(--mx);
}
@media (max-width: 700px) {
  .custom-placeholders {
    grid-template-columns: 1fr;
  }
}
.custom-placeholder-box {
  aspect-ratio: 4/3;
  background: var(--grafite);
  border-radius: 12px;
}

/* ── BESPOKE products (Lumio Cube, ...) ── */
.bespoke-product {
  max-width: 1600px;
  margin: 0 auto;
  padding: var(--sp) var(--mx) 0;
  display: grid;
  gap: clamp(32px, 4vw, 64px);
}
.bespoke-title {
  font-family: var(--display-xl);
  text-transform: uppercase;
  overflow-wrap: anywhere;
  hyphens: auto;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.05;
  font-size: clamp(21.6px, 3vw, 43.2px);
  margin-top: 10px;
  color: var(--luce);
}
.bespoke-hero,
.bespoke-figure {
  margin: 0;
}
.bespoke-hero img,
.bespoke-figure img,
.bespoke-modules img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}
.bespoke-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
}
.bespoke-text p {
  color: var(--cenere);
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.75;
}
.bespoke-text p + p {
  margin-top: 1.2em;
}
.bespoke-text .bespoke-label {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--oro);
  margin-bottom: 1em;
}
/* Light row reads text-right, drawings-left, so the page alternates. */
.bespoke-row--light .bespoke-text {
  order: 2;
}
.bespoke-modules {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(10px, 1.4vw, 18px);
}
@media (max-width: 900px) {
  .bespoke-row {
    grid-template-columns: 1fr;
  }
  .bespoke-row--light .bespoke-text {
    order: 0;
  }
}

/* ── DESIGNERS panel (moved from ombre1.html #bespoke) ── */
.studio-divisions {
  padding: var(--sp) 0;
  border-top: 1px solid var(--grafite);
}
.studio-divisions .wrap {
  display: flex;
  flex-direction: column;
  gap: clamp(36px, 4.5vw, 64px);
}
@media (min-width: 768px) {
  #panel-designers.studio-divisions {
    padding: clamp(56px, 5vw, 96px) 0;
  }
  #panel-designers.studio-divisions .wrap {
    gap: clamp(24px, 3vw, 40px);
  }
}
.division-head {
  max-width: 780px;
}
.division-tag {
  display: inline-block;
  margin-top: 14px;
  padding: 6px 12px;
  border: 1px solid var(--grafite);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cenere);
}
.division-intro {
  color: var(--cenere);
  margin-top: 22px;
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.7;
  font-family: var(--text);
}

/* ── Designers grid ──
   Column count, gap, breakpoints and the name/meta type scale are the
   projects page's, copied rather than shared: the two grids should read
   as one family, but /projects.html must stay free to change without
   dragging this panel with it. The frame is 4:5 because it holds a
   person, and projects' 2:1 crops a portrait badly. */
.designers-head {
  max-width: 780px;
}
.designers-heading {
  font-family: var(--display-xl);
  text-transform: uppercase;
  overflow-wrap: anywhere;
  hyphens: auto;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.05;
  font-size: clamp(16.8px, 1.8vw, 24px);
  margin-top: 8px;
}
.designers-intro {
  color: var(--cenere);
  margin-top: 18px;
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.7;
}
.designers-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: clamp(20px, 2.6vw, 32px);
}
@media (max-width: 900px) {
  .designers-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 560px) {
  .designers-grid {
    grid-template-columns: 1fr;
  }
}
.designer-card {
  display: block;
  text-align: center;
  text-decoration: none;
  color: inherit;
}
.designer-frame {
  width: 100%;
  aspect-ratio: 4/5;
  overflow: hidden;
  border: 1px solid var(--grafite);
  background: var(--notte);
  border-radius: 2px;
  transition: border-color 0.22s var(--ease);
}
@media (hover: hover) {
  .designer-card:hover .designer-frame {
    border-color: var(--cenere);
  }
}
.designer-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.designer-placeholder {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grafite);
}
.designer-name {
  font-family: var(--text);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.2;
  color: var(--luce);
  margin-top: 32px;
}
.designer-product {
  font-family: var(--mono);
  font-size: 15px;
  letter-spacing: 0.02em;
  color: var(--cenere);
  margin-top: 10px;
}

.partners-strip {
  margin-top: clamp(20px, 3vw, 32px);
  padding: 14px 0;
  border-top: 1px solid var(--grafite);
  border-bottom: 1px solid var(--grafite);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  align-items: center;
}
.partners-label {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cenere);
  margin-right: 8px;
}
.partners-strip a {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--luce);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}
@media (hover: hover) {
  .partners-strip a:hover {
    border-color: var(--luce);
  }
}

@media (max-width: 600px) {
  /* The section wrap's flex gap (clamp 36-64px) is too generous on a
     phone, where it reads as a dead band above the grid rather than as
     breathing room. */
  #panel-designers.studio-divisions .wrap {
    gap: 20px;
  }
}

@media (hover: hover) {
  .how-it-works-box:hover .division-intro {
    color: var(--nebbia);
  }
}

/* ── .reveal fallback (no scroll IntersectionObserver on this page) ── */
.reveal {
  opacity: 1;
  transform: none;
}

/* ── Our Products: catalog grid ── */
/* Flex rather than grid so a short last row (7 catalogs) sits centred. */
.cat-grid {
  /* 3 per row (2026-11-11); narrower box keeps the cards a sensible size */
  --cols: 3;
  --gap: clamp(14px, 2vw, 24px);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--gap);
  max-width: 1000px;
  margin: 0 auto;
  padding-inline: var(--mx);
}
@media (max-width: 1000px) {
  .cat-grid {
    --cols: 3;
  }
}
@media (max-width: 700px) {
  .cat-grid {
    --cols: 2;
  }
}
/* Cards take the shape of the catalog's A4 cover. */
.cat-card {
  position: relative;
  width: calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols));
  aspect-ratio: 1000 / 1414;
  border-radius: 18px;
  overflow: hidden;
  background: #111;
  box-shadow:
    0 0 0 1.5px rgba(255, 255, 255, 0.5),
    0 0 28px rgba(255, 255, 255, 0.22) inset;
  transition: box-shadow 0.25s ease;
}
@media (hover: hover) {
  .cat-card:hover {
    box-shadow:
      0 0 0 1.5px rgba(255, 255, 255, 0.7),
      0 0 32px rgba(255, 255, 255, 0.3) inset;
  }
}
.cat-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #111;
  display: block;
}
.cat-panel {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cat-panel-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.cat-name {
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cat-year {
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.1em;
  flex-shrink: 0;
}
.cat-dl {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  color: #fff;
  background: transparent;
  border: 0.5px solid rgba(255, 255, 255, 0.6);
  border-radius: 6px;
  padding: 9px 14px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
}
@media (hover: hover) {
  .cat-dl:hover {
    background: rgba(255, 255, 255, 0.12);
  }
}
.cat-dl[disabled] {
  opacity: 0.5;
  cursor: wait;
}
.cat-lock-icon {
  position: absolute;
  top: 38%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 26px;
  color: #fff;
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.7));
  pointer-events: none;
}
.cat-panel.locked {
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: background 0.2s;
}
/* The cover is the whole A4 page, so the name/download bar sits under it
   rather than on top of the cover's own title. */
.cat-card {
  aspect-ratio: auto;
  display: flex;
  flex-direction: column;
}
.cat-cover {
  position: relative;
  inset: auto;
  height: auto;
  aspect-ratio: 1000 / 1414;
}
.cat-panel {
  position: static;
  margin: 10px;
}
.cat-lock-icon {
  top: 42%;
}

@media (hover: hover) {
  .cat-panel.locked:hover {
    background: rgba(255, 255, 255, 0.16);
  }
}
.cat-panel.locked span {
  font-size: 13px;
  font-family: var(--mono);
  letter-spacing: 0.08em;
  color: #fff;
}
/* ── MOBILE TOP ROW ────────────────────────────────────────────────
   Desktop is one fixed row: chooser centred, Home right. On a phone
   the three chooser pills wrap to three lines and the Home pill is
   pushed past the right edge, giving a 224px fixed bar over a body
   that only reserves 76px, the bar covers the panel it switches.

   Mobile splits it into an actions row and a scrollable pill strip,
   and stops pinning it: a 130px bar is too much of a phone screen to
   spend on a three-item switcher. */
@media (max-width: 900px) {
  body {
    padding-top: 0;
  }
  .product-topnav {
    position: static;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    padding: 14px var(--mx) 4px;
  }
  .product-topnav .topnav-actions {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    gap: 10px;
  }
  .product-topnav .chooser {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: stretch;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 10px;
    /* full-bleed strip, first/last pill still on the page gutter */
    margin-inline: calc(var(--mx) * -1);
    padding: 4px var(--mx);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .product-topnav .chooser::-webkit-scrollbar {
    display: none;
  }
  .chooser-card {
    flex: 0 0 auto;
    height: 44px;
    padding: 0 18px;
    font-size: 11px;
  }
  .home-pill {
    height: 44px;
    padding: 0 20px;
    font-size: 15px;
  }
  .partners-strip a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  footer {
    padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 600px) {
  /* two narrow columns: a tighter panel so name and button still fit */
  .cat-panel {
    margin: 6px;
    padding: 8px;
    gap: 6px;
    border-radius: 12px;
  }
  .cat-name {
    font-size: 13px;
  }
  .cat-year {
    display: none;
  }
  .cat-panel.locked span {
    font-size: 10px;
    letter-spacing: 0.04em;
    white-space: nowrap;
  }
  .cat-dl {
    padding: 7px 6px;
    font-size: 10px;
    letter-spacing: 0.06em;
  }
}

@media (hover: none) {
  a,
  button {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }
  .chooser-card:hover {
    border-color: rgba(255, 255, 255, 0.16);
  }
  .chooser-card:active {
    border-color: var(--nebbia);
  }
  .chooser-card.active:hover {
    border-color: var(--luce);
  }
  .partners-strip a:hover {
    border-color: transparent;
  }
  .partners-strip a:active {
    border-color: var(--luce);
  }
  .cat-panel.locked:hover {
    background: rgba(255, 255, 255, 0.1);
  }
  .cat-panel.locked:active {
    background: rgba(255, 255, 255, 0.16);
  }
  .how-it-works-box:hover .division-intro {
    color: var(--cenere);
  }
}
/* S1: present to screen readers and to the heading outline, absent
   from the visual design. clip-path rather than display:none, which
   would remove it from the accessibility tree entirely. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/*
 * Legibility floor: nothing below 12px on a small screen.
 *
 * These labels are set at 10-11px mono, which reads as a quiet register on a
 * desktop and as unreadable on a phone. 12px is the smallest mono size the
 * site already uses elsewhere, so this borrows a value rather than inventing
 * one. Gated on width rather than pointer: it is a typographic scale, and
 * above 900px a tablet shows the desktop composition and keeps its type.
 */
@media (max-width: 900px) {
  .chooser-card {
    font-size: 12px;
  }
  .designer-placeholder {
    font-size: 12px;
  }
}

/* Big titles are wide capitals: on phones keep them to ~8% of the
   screen width so long words (MONTERIGGIONI, COLLABORAZIONI) still fit. */
@media (max-width: 600px) {
  .bespoke-title {
    font-size: min(21.6px, 4.8vw);
  }
  .designers-heading {
    font-size: min(16.8px, 4.8vw);
  }
}

/* bespoke products added in /admin */
#bespokeExtra .bespoke-product {
  margin-top: clamp(60px, 9vw, 140px);
}
.bespoke-row--text {
  grid-template-columns: 1fr;
}
.bespoke-row--text .bespoke-text {
  max-width: 760px;
}
@media (min-width: 821px) {
  .bespoke-row--flip .bespoke-figure {
    order: -1;
  }
}

/* bespoke products: a card grid like Designers (2026-10-28) */
.bespoke-wrap {
  padding-top: var(--sp);
  padding-bottom: var(--sp);
}
.bespoke-wrap .designers-head {
  margin-bottom: clamp(28px, 4vw, 48px);
}
.bespoke-card .designer-frame {
  aspect-ratio: 4 / 3;
}
.bespoke-card .designer-product {
  text-transform: none;
}

/* 2026-10-29: the main site header sits on top; this page's own row (tabs,
   back link, filters) is a normal row under it */
body {
  padding-top: 80px !important;
}
.product-topnav {
  position: relative !important;
  inset: auto !important;
  top: auto !important;
  z-index: 2;
}

/* 2026-10-29: designers in black and white; on hover their product photo
   fades in, in colour (no product photo: the portrait turns to colour) */
.designer-card:not(.bespoke-card) .designer-frame {
  position: relative;
  border: 0;
}
.designer-card:not(.bespoke-card) .designer-frame img {
  filter: grayscale(1);
  transition: filter 0.6s ease, opacity 0.6s ease, transform 0.8s ease;
}
.designer-card .designer-frame .designer-hover {
  position: absolute;
  inset: 0;
  opacity: 0;
  filter: none;
}
@media (hover: hover) {
  .designer-card:not(.bespoke-card):hover .designer-frame img {
    filter: grayscale(0);
  }
  .designer-card.has-hover:hover .designer-frame .designer-hover {
    opacity: 1;
    transform: scale(1.03);
  }
}
.designer-card:not(.bespoke-card):focus-visible .designer-frame img {
  filter: grayscale(0);
}
.designer-card.has-hover:focus-visible .designer-frame .designer-hover {
  opacity: 1;
}
