/* Migliarese Manufatti design system. Generated by bin/build-design-system.py from tokens.json: do not edit. */
@font-face { font-family: "Saira Extra Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("/wp-content/uploads/mm-fonts/SairaExtraCondensed-700-latin.woff2") format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-style: normal; font-weight: 400; font-display: swap; src: url("/wp-content/uploads/mm-fonts/BarlowSemiCondensed-400-latin.woff2") format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-style: normal; font-weight: 500; font-display: swap; src: url("/wp-content/uploads/mm-fonts/BarlowSemiCondensed-500-latin.woff2") format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("/wp-content/uploads/mm-fonts/BarlowSemiCondensed-600-latin.woff2") format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("/wp-content/uploads/mm-fonts/BarlowSemiCondensed-700-latin.woff2") format("woff2"); }

:root {
  --mm-paper: #f6f6ea;
  --mm-white: #ffffff;
  --mm-ink: #0a1f2a;
  --mm-teal: #095874;
  --mm-teal-deep: #13556d;
  --mm-teal-line: #2d6e85;
  --mm-slate: #486371;
  --mm-muted: #59646a;
  --mm-error: #9b2c1c;
  --mm-rule: #b4b9b8;
  --mm-logo-teal: #01647d;
  --mm-logo-teal-light: #2fa0b9;
  --mm-drawing-ink: #15191c;
  --mm-drawing-dim: #3d4448;
  --mm-drawing-fill: #fbfbf8;
  --mm-font-display: "Saira Extra Condensed", "Arial Narrow", sans-serif;
  --mm-font-body: "Barlow Semi Condensed", "Arial Narrow", sans-serif;
  --mm-t-h1: clamp(2.5rem, 4.1vw, 4rem);
  --mm-t-h2: clamp(1.9rem, 2.85vw, 2.75rem);
  --mm-t-num: clamp(1.75rem, 2.05vw, 2rem);
  --mm-t-cat: clamp(1.5rem, 1.85vw, 1.8rem);
  --mm-t-lede: clamp(1.2rem, 1.8vw, 1.75rem);
  --mm-t-btn: clamp(1.05rem, 1.45vw, 1.4rem);
  --mm-t-nav: clamp(1rem, 1.36vw, 1.3rem);
  --mm-t-link: clamp(1rem, 1.17vw, 1.125rem);
  --mm-t-btn-small: clamp(.95rem, 1.17vw, 1.125rem);
  --mm-t-body: 1.0625rem;
  --mm-t-small: clamp(.85rem, .98vw, .95rem);
  --mm-header-h: clamp(56px, 4.7vw, 72px);
  --mm-logo-w: clamp(208px, 23.53vw, 361px);
  --mm-title-col: 38.9%;
  --mm-rail-w: clamp(64px, 5.3vw, 84px);
  --mm-measure: 65ch;
  --mm-control-min: 44px;
  --mm-hairline: 1px;
  --mm-gutter: clamp(16px, 2.75vw, 42px);
  --mm-space-2xs: clamp(6px, .6vw, 9px);
  --mm-space-xs: clamp(10px, 1.1vw, 14px);
  --mm-space-s: clamp(12px, 1.2vw, 18px);
  --mm-space-m: clamp(16px, 1.75vw, 27px);
  --mm-space-l: clamp(20px, 2vw, 30px);
  --mm-space-xl: clamp(32px, 3vw, 46px);
  --mm-space-2xl: clamp(48px, 5vw, 80px);
  --mm-radius-none: 0;
  --mm-radius-control: 5px;
  --mm-ease-out: cubic-bezier(.16, 1, .3, 1);
  --mm-dur-fast: .2s;
  --mm-dur-plot: .9s;
}

.mm-t-h1 { font: 700 var(--mm-t-h1)/0.94 var(--mm-font-display); letter-spacing: -0.005em; }
.mm-t-h2 { font: 700 var(--mm-t-h2)/1 var(--mm-font-display); }
.mm-t-num { font: 700 var(--mm-t-num)/1 var(--mm-font-display); }
.mm-t-cat { font: 700 var(--mm-t-cat)/1.1 var(--mm-font-display); }
.mm-t-lede { font: 400 var(--mm-t-lede)/1.3 var(--mm-font-body); }
.mm-t-btn { font: 600 var(--mm-t-btn)/1 var(--mm-font-body); }
.mm-t-nav { font: 500 var(--mm-t-nav)/1 var(--mm-font-body); }
.mm-t-link { font: 400 var(--mm-t-link)/1.3 var(--mm-font-body); letter-spacing: -0.012em; }
.mm-t-btn-small { font: 500 var(--mm-t-btn-small)/1 var(--mm-font-body); }
.mm-t-body { font: 400 var(--mm-t-body)/1.5 var(--mm-font-body); }
.mm-t-small { font: 400 var(--mm-t-small)/1.2 var(--mm-font-body); }

/* Migliarese Manufatti — components. The printed technical catalogue, on screen.
   Every value comes from a token in tokens.json, except the measurements a component owns
   (paddings and gaps measured on the approved home comp). Class prefix mm- so nothing
   collides with Oxygen's or a plugin's classes. Breakpoints: 1100, 860, 640 px. */

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--mm-paper);
  color: var(--mm-ink);
  font: 400 var(--mm-t-body)/1.5 var(--mm-font-body);
  font-variant-numeric: tabular-nums;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--mm-teal); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--mm-ink); }
/* No sideways pan on phones, whatever a browser measures a pixel wider than Chromium (Giode saw it on a phone,
   2026-11-10, with nothing past the edge in Chromium at 360 to 414). clip, unlike hidden, keeps sticky working. */
html, body { overflow-x: clip; }
:focus-visible { outline: 2px solid var(--mm-teal); outline-offset: 3px; }
/* A heading the script focuses after an in-place change (catalogue-nav.js) is a landmark for screen readers,
   not a control: no ring, or a tap on a category tab leaves a box around the new title. */
[tabindex="-1"]:focus, [tabindex="-1"]:focus-visible { outline: none; }
::selection { background: var(--mm-teal); color: var(--mm-white); }

.mm-skip, a.oxy-skip-link { position: absolute; left: -9999px; }
/* WordPress prints labels for screen readers with this class (the lightbox's "Enlarged image" line): the theme must hide them. */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); border: 0; white-space: nowrap; }
.mm-skip:focus, a.oxy-skip-link:focus { left: var(--mm-gutter); top: 8px; background: var(--mm-white); color: var(--mm-ink); padding: 8px 12px; z-index: 10; }

/* ---------- Masthead: a ruled header ---------- */
.mm-masthead {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  column-gap: var(--mm-space-s);
  height: var(--mm-header-h);
  padding-inline: var(--mm-gutter);
  border-bottom: var(--mm-hairline) solid var(--mm-rule);
}
.mm-masthead__logo { display: inline-flex; align-items: center; min-height: 32px; }
.mm-masthead__logo img { width: var(--mm-logo-w); height: auto; aspect-ratio: 756 / 78; }
.mm-masthead__nav ul { display: flex; gap: clamp(20px, 3vw, 46px); margin: 0 0 0 clamp(0px, 4vw, 70px); padding: 0; list-style: none; }
.mm-masthead__nav a { color: var(--mm-ink); text-decoration: none; font: 500 var(--mm-t-nav)/1 var(--mm-font-body); }
.mm-masthead__nav a:hover,
.mm-masthead__nav a[aria-current="page"],
.mm-masthead__nav a.is-active,
.mm-catalogo .mm-masthead__nav a[href$="/prodotti/"] { color: var(--mm-teal); text-decoration: underline; }
.mm-masthead__phone {
  display: inline-flex; align-items: center; gap: 10px; min-height: var(--mm-control-min);
  padding-left: clamp(12px, 1.3vw, 20px);
  border-left: var(--mm-hairline) solid var(--mm-rule);
  font: 600 var(--mm-t-nav)/1 var(--mm-font-body);
  color: var(--mm-ink); text-decoration: none; white-space: nowrap;
}
/* .mm-icon is on the <svg> in plain HTML; Oxygen moves it to the svg's wrapper div and fills the svg
   with currentColor, so an icon is sized on .mm-icon and coloured through color, never fill alone. */
.mm-icon { flex: none; width: 1em; height: 1em; fill: currentColor; }
.mm-icon > svg { width: 100%; height: 100%; }
.mm-masthead__phone .mm-icon { width: 1.05em; height: 1.05em; color: var(--mm-teal); }
/* Write to us: under 860 px only, beside the phone (on desktop the header's quote button does that job). It opens
   the Contatti form; it becomes a mailto link once the client confirms an address. */
.mm-masthead__mail { display: none; align-items: center; gap: 8px; min-height: var(--mm-control-min); color: var(--mm-ink); text-decoration: none; font: 600 var(--mm-t-nav)/1 var(--mm-font-body); white-space: nowrap; }
.mm-masthead__mail .mm-icon { width: 1.1em; height: 1.1em; color: var(--mm-teal); }

/* ---------- Buttons ---------- */
.mm-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: var(--mm-control-min);
  padding: .55em 1.5em;
  border: 1.5px solid var(--mm-teal);
  border-radius: var(--mm-radius-control);
  font: 600 var(--mm-t-btn)/1 var(--mm-font-body);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--mm-dur-fast) var(--mm-ease-out), color var(--mm-dur-fast) var(--mm-ease-out), transform .1s var(--mm-ease-out);
}
.mm-btn:active { transform: translateY(1px); }
.mm-btn--solid { background: var(--mm-teal); color: var(--mm-white); }
.mm-btn--solid:hover { background: var(--mm-ink); border-color: var(--mm-ink); color: var(--mm-white); }
.mm-btn--line { background: transparent; color: var(--mm-teal-deep); border: 2px solid var(--mm-teal-line); }
.mm-btn--line:hover { background: var(--mm-teal); color: var(--mm-white); }
.mm-btn--line .mm-icon { width: 1.15em; height: 1.15em; margin-right: .25em; }
.mm-btn--small { --mm-t-btn: var(--mm-t-btn-small); min-height: 40px; padding-inline: 1.15em; font-weight: 500; }

/* ---------- Figure: photo with a "Fig." caption ending in a rule ---------- */
.mm-figure { margin: 0; }
.mm-figure img { width: 100%; object-fit: cover; }
.mm-figure figcaption {
  display: flex; align-items: center; gap: 16px;
  padding-top: 7px;
  font: 400 var(--mm-t-small)/1.2 var(--mm-font-body);
  color: var(--mm-ink);
}
.mm-figure figcaption b { font-weight: 700; }
.mm-figure figcaption::after { content: ""; flex: 1; height: var(--mm-hairline); background: var(--mm-rule); }

/* ---------- Spread: the page opener, title block left and photo bleeding right ---------- */
.mm-spread {
  display: grid;
  grid-template-columns: minmax(0, var(--mm-title-col)) minmax(0, 1fr);
  padding-top: clamp(8px, .6vw, 10px);
  border-bottom: var(--mm-hairline) solid var(--mm-rule);
}
.mm-spread__title { padding: var(--mm-space-l) clamp(16px, 1.9vw, 29px) var(--mm-space-xl) var(--mm-gutter); }
.mm-spread h1 {
  margin: 0;
  font: 700 var(--mm-t-h1)/0.94 var(--mm-font-display);
  letter-spacing: -0.005em;
  text-wrap: balance;
}
.mm-spread__lede { margin: clamp(12px, 1.1vw, 17px) 0 0; font: 400 var(--mm-t-lede)/1.3 var(--mm-font-body); max-width: 30ch; }
.mm-spread__actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: clamp(14px, 1.3vw, 20px); }
.mm-spread__actions .mm-btn { min-height: clamp(48px, 3.5vw, 54px); padding-inline: clamp(18px, 1.9vw, 29px); }
.mm-spread__actions .mm-btn.mm-btn--line { padding-inline: clamp(14px, 1.3vw, 19px); }
.mm-spread__figure { padding-bottom: var(--mm-space-m); }
.mm-spread__figure img { aspect-ratio: 938 / 358; }
.mm-spread__figure figcaption { padding-right: var(--mm-gutter); }

/* ---------- Audience links: one line, dot separated ---------- */
.mm-audiences { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin: clamp(22px, 1.75vw, 27px) 0 0; padding: 0; list-style: none; }
/* The audience links and the name/count spans are inline boxes so the whitespace Oxygen writes inside each
   text element (<a>\nPer i comuni\n</a>) collapses at the box edge instead of rendering as a space. */
.mm-audiences li + li::before { content: "·"; color: var(--mm-muted); margin-right: 18px; }
.mm-audiences a { display: inline-block; padding-block: 3px; font: 500 calc(var(--mm-t-btn) * .92)/1.2 var(--mm-font-body); color: var(--mm-slate); text-decoration: none; }
.mm-audiences a:hover { text-decoration: underline; }

/* ---------- Catalogue index: ruled columns, photo, cross-section, families ---------- */
.mm-index {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  padding: clamp(12px, 1.4vw, 21px) calc(var(--mm-gutter) - var(--mm-space-xs)) clamp(24px, 3vw, 48px);
}
.mm-index__col { min-width: 0; padding-inline: var(--mm-space-xs); border-left: var(--mm-hairline) solid var(--mm-rule); }
.mm-index__col:first-child { border-left: 0; }
.mm-index__photo { width: 100%; aspect-ratio: 222 / 173; object-fit: cover; }
.mm-index__drawing { width: 100%; height: clamp(84px, 7.15vw, 110px); object-fit: contain; margin-top: var(--mm-space-2xs); transform: scale(1.2); }
@supports (object-view-box: inset(0)) {
  .mm-index__drawing { transform: none; object-view-box: inset(8.33%); }
}
/* The category name is the column's heading (h2) for whoever moves through the page by headings. */
.mm-index__title { margin: 0; font: inherit; }
.mm-index__head { display: block; margin: 2px 0 0; color: inherit; text-decoration: none; padding-bottom: 6px; border-bottom: var(--mm-hairline) solid var(--mm-rule); }
.mm-index__name { display: inline-flex; font: 700 var(--mm-t-cat)/1.1 var(--mm-font-display); color: var(--mm-ink); }
.mm-index__count { display: inline-flex; margin-left: .4em; font: 400 var(--mm-t-link)/1 var(--mm-font-body); color: var(--mm-muted); }
.mm-index__head:hover .mm-index__name { color: var(--mm-teal); }
.mm-index__list { margin: 8px 0 0; padding: 0; list-style: none; }
.mm-index__more a { color: var(--mm-slate); }
.mm-index__list a { display: inline-block; padding-block: 2px; font: 400 var(--mm-t-link)/1.3 var(--mm-font-body); letter-spacing: -0.012em; }

/* Signature: the cross-section re-plots left to right, like a plotter pen. */
@keyframes mm-plot { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.mm-index__col:hover .mm-index__drawing,
.mm-index__col:focus-within .mm-index__drawing { animation: mm-plot var(--mm-dur-plot) var(--mm-ease-out) both; }

/* ---------- Catalogue pages: thumb-index rail, category opener, product rows, product sheet ---------- */
.mm-actions { display: flex; flex-wrap: wrap; gap: 13px; }
.mm-actions .mm-btn { min-height: clamp(48px, 3.5vw, 54px); padding-inline: clamp(18px, 1.9vw, 29px); }
.mm-actions .mm-btn.mm-btn--line { padding-inline: clamp(14px, 1.3vw, 19px); }
/* The quote and the two numbers as one balanced block (client, 2026-11-10): the quote across the top, landline and
   mobile side by side at equal width under it; where the column holding them has room for all three (600 px, a
   container query), one row. */
.mm-spread__title, .mm-sheet__head { container-type: inline-size; }
.mm-actions:has(> :nth-child(3)), .mm-spread__actions:has(> :nth-child(3)) { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mm-actions:has(> :nth-child(3)) > :first-child, .mm-spread__actions:has(> :nth-child(3)) > :first-child { grid-column: 1 / -1; }
.mm-actions:has(> :nth-child(3)) > .mm-btn, .mm-spread__actions:has(> :nth-child(3)) > .mm-btn { justify-content: center; min-width: 0; padding-inline: 10px; }
@container (min-width: 600px) {
  .mm-actions:has(> :nth-child(3)), .mm-spread__actions:has(> :nth-child(3)) { grid-template-columns: repeat(3, max-content); justify-content: start; }
  .mm-actions:has(> :nth-child(3)) > :first-child, .mm-spread__actions:has(> :nth-child(3)) > :first-child { grid-column: auto; }
  .mm-actions:has(> :nth-child(3)) > .mm-btn, .mm-spread__actions:has(> :nth-child(3)) > .mm-btn { padding-inline: clamp(14px, 1.3vw, 19px); }
}

.mm-catalogue { display: grid; grid-template-columns: minmax(0, 1fr) var(--mm-rail-w); }
/* While the next category is on its way (catalogue-nav.js): the old list dims, only if the wait is noticeable. */
.mm-catalogue__main { transition: opacity var(--mm-dur-fast) var(--mm-ease-out); }
.mm-switching .mm-catalogue__main { opacity: .45; transition-delay: 120ms; }
.mm-catalogue__main { grid-column: 1; grid-row: 1; min-width: 0; padding: 0 var(--mm-gutter) var(--mm-space-2xl); }
.mm-catalogue__rail { grid-column: 2; grid-row: 1; min-width: 0; border-left: var(--mm-hairline) solid var(--mm-rule); }

/* The six categories as the tabs cut into a printed catalogue's edge; the open one is pulled out. */
.mm-tabs { display: flex; flex-direction: column; }
/* The rail follows the scroll only where all six tabs fit in the window (six tabs measure about 740 px). */
@media (min-height: 820px) { .mm-tabs { position: sticky; top: var(--wp-admin--admin-bar--height, 0px); } }
.mm-tabs__tab {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 10px 0;
  border-bottom: var(--mm-hairline) solid var(--mm-rule);
  color: var(--mm-ink); text-decoration: none;
  transition: background-color var(--mm-dur-fast) var(--mm-ease-out), transform var(--mm-dur-fast) var(--mm-ease-out);
}
.mm-tabs__name { writing-mode: vertical-rl; transform: rotate(180deg); font: 500 .8125rem/1 var(--mm-font-body); white-space: nowrap; }
.mm-tabs__tab:hover, .mm-tabs__tab:focus-visible { background: var(--mm-white); transform: translateX(-4px); }
.mm-tabs__tab:hover .mm-tabs__name { color: var(--mm-teal); }
/* Current tab: aria-current in plain HTML, is-active from Oxygen on the category's own page, and the
   body class mm-cat-<slug> (set by the catalogue plugin) on that category's product pages. */
.mm-tabs__tab[aria-current="page"], .mm-tabs__tab.is-active,
.mm-cat-canalizzazioni .mm-tabs__tab--canalizzazioni, .mm-cat-cordoli .mm-tabs__tab--cordoli,
.mm-cat-pavimentazioni .mm-tabs__tab--pavimentazioni, .mm-cat-costruzioni .mm-tabs__tab--costruzioni,
.mm-cat-arredo-giardino .mm-tabs__tab--arredo-giardino, .mm-cat-arredo-urbano .mm-tabs__tab--arredo-urbano {
  background: var(--mm-teal); color: var(--mm-white); transform: translateX(-10px);
  border-radius: var(--mm-radius-control) 0 0 var(--mm-radius-control);
}
.mm-tabs__tab[aria-current="page"] .mm-tabs__name, .mm-tabs__tab.is-active .mm-tabs__name,
.mm-cat-canalizzazioni .mm-tabs__tab--canalizzazioni .mm-tabs__name, .mm-cat-cordoli .mm-tabs__tab--cordoli .mm-tabs__name,
.mm-cat-pavimentazioni .mm-tabs__tab--pavimentazioni .mm-tabs__name, .mm-cat-costruzioni .mm-tabs__tab--costruzioni .mm-tabs__name,
.mm-cat-arredo-giardino .mm-tabs__tab--arredo-giardino .mm-tabs__name, .mm-cat-arredo-urbano .mm-tabs__tab--arredo-urbano .mm-tabs__name { color: var(--mm-white); }

.mm-crumb { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; margin: 0; padding: var(--mm-space-s) 0 0; list-style: none; font: 400 var(--mm-t-small)/1.3 var(--mm-font-body); color: var(--mm-muted); }
.mm-crumb li + li::before { content: "/"; margin-right: 6px; color: var(--mm-rule); }
.mm-crumb a { display: inline-block; padding-block: 4px; color: var(--mm-slate); }

.mm-opener {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); gap: var(--mm-space-xl); align-items: end;
  padding: var(--mm-space-m) 0 var(--mm-space-l); border-bottom: var(--mm-hairline) solid var(--mm-rule);
}
.mm-opener__title { margin: 0; font: 700 var(--mm-t-h1)/.94 var(--mm-font-display); letter-spacing: -0.005em; text-wrap: balance; }
.mm-opener__lede { margin: var(--mm-space-s) 0 0; font: 400 var(--mm-t-lede)/1.3 var(--mm-font-body); max-width: 32ch; }
.mm-opener__meta { margin: var(--mm-space-xs) 0 0; font: 400 var(--mm-t-small)/1.2 var(--mm-font-body); color: var(--mm-muted); }
.mm-opener__drawing { width: 100%; height: clamp(150px, 16vw, 240px); object-fit: contain; object-view-box: inset(8.33%); }

/* Families as jump links, dot separated like the audience links. */
.mm-jump { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: var(--mm-space-s) 0 0; padding: 0; list-style: none; }
.mm-jump li + li::before { content: "·"; margin-right: 16px; color: var(--mm-muted); }
.mm-jump a { display: inline-block; padding-block: 3px; font: 500 var(--mm-t-link)/1.3 var(--mm-font-body); color: var(--mm-slate); text-decoration: none; }
.mm-jump a:hover { color: var(--mm-teal); text-decoration: underline; }
.mm-jump__count { display: inline-flex; margin-left: .3em; color: var(--mm-muted); font-weight: 400; }

.mm-group { margin-top: var(--mm-space-xl); scroll-margin-top: var(--mm-space-xl); }
.mm-group__head { display: flex; align-items: baseline; gap: .45em; margin: 0; padding-bottom: 6px; border-bottom: var(--mm-hairline) solid var(--mm-ink); font: 700 var(--mm-t-cat)/1.1 var(--mm-font-display); }
.mm-group__count { display: inline-flex; font: 400 var(--mm-t-small)/1 var(--mm-font-body); color: var(--mm-muted); }
.mm-group__rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--mm-space-xl); }

/* A product as one ruled row: small photo on white, name, articles, arrow. */
.mm-row {
  display: grid; grid-template-columns: 88px minmax(0, 1fr) auto 20px; gap: var(--mm-space-s); align-items: center;
  min-height: 76px; padding: 8px 0; border-bottom: var(--mm-hairline) solid var(--mm-rule);
  color: var(--mm-ink); text-decoration: none;
}
.mm-row__photo { width: 88px; aspect-ratio: 4 / 3; object-fit: contain; background: var(--mm-white); }
.mm-row__name { display: flex; font: 500 var(--mm-t-link)/1.25 var(--mm-font-body); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.mm-row__meta { display: flex; font: 400 var(--mm-t-small)/1 var(--mm-font-body); color: var(--mm-muted); white-space: nowrap; }
.mm-row .mm-icon { width: 20px; height: 20px; color: var(--mm-teal); transition: transform var(--mm-dur-fast) var(--mm-ease-out); }
.mm-row:hover .mm-row__name { color: var(--mm-teal); text-decoration: underline; }
.mm-row:hover .mm-icon { transform: translateX(3px); }

/* Product sheet: the photo as a figure plate on the left, name, actions and the editor's content on the right. */
.mm-sheet {
  display: grid; grid-template-columns: minmax(0, var(--mm-title-col)) minmax(0, 1fr);
  /* The drawing stays beside the text and the tables, whose legend refers to its letters. */
  grid-template-areas: "plate head" "plate body"; grid-template-rows: auto 1fr;
  gap: var(--mm-space-l) var(--mm-space-2xl); align-items: start; padding: var(--mm-space-m) 0 var(--mm-space-xl);
}
.mm-sheet__head { grid-area: head; }
.mm-sheet__body { grid-area: body; min-width: 0; }
.mm-sheet .mm-plate { grid-area: plate; position: sticky; top: var(--mm-space-m); }
.mm-sheet__title { margin: 0; font: 700 var(--mm-t-h2)/.98 var(--mm-font-display); text-wrap: balance; }
.mm-sheet__meta { margin: var(--mm-space-xs) 0 0; font: 400 var(--mm-t-link)/1.3 var(--mm-font-body); color: var(--mm-slate); }
.mm-sheet__meta a { color: var(--mm-slate); }
.mm-sheet .mm-actions { margin-top: var(--mm-space-m); }

/* Photos are shown at the size they hold: never stretched past 1.5x their own width. */
.mm-plate { margin: 0; }
.mm-plate__frame { display: grid; place-items: center; min-height: clamp(180px, 16vw, 260px); padding: var(--mm-space-l); background: var(--mm-white); border: var(--mm-hairline) solid var(--mm-rule); }
.mm-plate img { width: auto; min-width: min(180px, 100%); max-width: 100%; height: auto; object-fit: contain; }

/* The editor's content: prose and the articles table, whatever columns the client writes. */
.mm-prose p, .mm-prose ul { max-width: var(--mm-measure); }
.mm-prose > :first-child { margin-top: 0; }
.mm-prose p { margin: 0 0 1em; }
.mm-prose h2 { display: flex; align-items: baseline; gap: .45em; margin: var(--mm-space-l) 0 0; padding-bottom: 6px; border-bottom: var(--mm-hairline) solid var(--mm-ink); font: 700 var(--mm-t-cat)/1.1 var(--mm-font-display); }
.mm-prose figure { margin: 0; }
.mm-specs { overflow-x: auto; }
/* WordPress inlines the table block's own CSS (full borders, a 3px head rule): reset it, the sheet draws its own rules. */
.mm-specs thead { border: 0; }
.mm-specs :is(th, td) { border: 0; word-break: normal; }
/* As wide as its columns, not the page: stretched, a few short columns drift apart (the code far from its name). */
.mm-specs table { width: auto; table-layout: auto; border-collapse: collapse; font: 400 var(--mm-t-link)/1.3 var(--mm-font-body); font-variant-numeric: tabular-nums; }
.mm-specs th { padding: 12px 18px 8px 0; text-align: left; font: 600 var(--mm-t-small)/1.1 var(--mm-font-body); letter-spacing: .04em; color: var(--mm-slate); white-space: nowrap; }
/* Column titles are labels over the table, not a ruled row of it (the client read a ruled head as part of the
   table): no rule of their own, and clear of the section heading's rule when the table follows it directly. */
.mm-prose h2 + .mm-specs { margin-top: var(--mm-space-s); }
.mm-specs td { padding: 9px 18px 9px 0; border-bottom: var(--mm-hairline) solid var(--mm-rule); vertical-align: top; }
.mm-specs td:first-child { font-weight: 600; white-space: nowrap; }
.mm-specs td:empty::after { content: "–"; color: var(--mm-muted); }
.mm-specs tr:hover td { background: var(--mm-white); }

.mm-related { margin-top: var(--mm-space-l); }

/* A catalogue page without the rail (the index, /prodotti/): its head keeps the page gutter. */
.mm-page__head { padding-inline: var(--mm-gutter); }
.mm-page__head .mm-opener { border-bottom: 0; padding-bottom: 0; }

/* Photos the client adds under the table: each at its own size on white, captioned like a figure. */
.mm-prose .mm-gallery { display: flex; flex-wrap: wrap; gap: var(--mm-space-m); margin-top: var(--mm-space-s); }
.mm-prose .wp-block-image { margin: 0; max-width: min(100%, 320px); }
.mm-prose .wp-block-image img { display: block; width: auto; max-width: 100%; height: auto; padding: var(--mm-space-xs); background: var(--mm-white); border: var(--mm-hairline) solid var(--mm-rule); }
.mm-prose .wp-block-image figcaption { margin-top: 6px; font: 400 var(--mm-t-small)/1.25 var(--mm-font-body); color: var(--mm-ink); }

/* ---------- Inner pages: the page head, then the editor's content in the page gutter ---------- */
.mm-page__body { padding: var(--mm-space-xl) var(--mm-gutter) var(--mm-space-2xl); }
.mm-prose h2 { scroll-margin-top: var(--mm-space-xl); }
.mm-page__body > h2:not(.mm-works__head) { max-width: 36rem; }
.mm-prose h3 { margin: var(--mm-space-m) 0 8px; font: 600 var(--mm-t-small)/1.2 var(--mm-font-body); letter-spacing: .04em; color: var(--mm-slate); }
.mm-prose ol { max-width: var(--mm-measure); margin: 0 0 1em; padding-left: 1.3em; }
.mm-prose ul { margin: 0 0 1em; padding-left: 1.1em; }
.mm-prose li { margin: .3em 0; }
.mm-prose li::marker { color: var(--mm-teal); }
/* A legend or a list of sizes the client writes line by line: read as one block. */
.mm-prose .mm-legend li { margin: .15em 0; }
/* A note under a table: a step clear of its last rule. */
.mm-prose .mm-specs + p { margin-top: var(--mm-space-xs); }
.mm-prose .mm-actions + .mm-note { margin-top: var(--mm-space-m); }
.mm-prose .mm-note { font: 400 var(--mm-t-small)/1.3 var(--mm-font-body); color: var(--mm-muted); }


/* Two columns from the columns block. WordPress lays them out with flex and its own gap: a grid replaces both. */
.mm-prose .mm-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--mm-space-l) var(--mm-space-2xl); margin: var(--mm-space-l) 0; }
.mm-prose .mm-split--aside { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
.mm-prose .mm-split--form { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); }
.mm-prose .mm-split > .wp-block-column { min-width: 0; }
.mm-prose .mm-split > .wp-block-column > :first-child { margin-top: 0; }
.mm-prose .mm-contact__big { font: 600 var(--mm-t-lede)/1.25 var(--mm-font-body); }
.mm-prose .mm-contact__big a { display: inline-flex; align-items: center; min-height: var(--mm-control-min); color: var(--mm-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.mm-prose .mm-contact__big a:hover { color: var(--mm-teal); }

/* Figures in a page's text: any image block with a caption, as the client inserts it in the editor. The photo
   at full column width, captioned and numbered as a figure, in page order. Galleries (no caption) stay tiles. */
.mm-page__body { counter-reset: mm-fig; }
.mm-page__body figure.wp-block-image:has(> figcaption) { max-width: none; margin: 0 0 var(--mm-space-m); }
.mm-page__body figure.wp-block-image:has(> figcaption) img { width: 100%; height: auto; padding: 0; border: 0; background: none; }
.mm-page__body figure.wp-block-image > figcaption {
  display: flex; align-items: center; gap: 0 16px; margin: 7px 0 0; text-align: left;
  font: 400 var(--mm-t-small)/1.2 var(--mm-font-body); color: var(--mm-ink);
}
.mm-page__body figure.wp-block-image > figcaption::before { counter-increment: mm-fig; content: "Fig. " counter(mm-fig) " —"; flex: none; margin-right: -10px; font-weight: 700; }
.mm-page__body figure.wp-block-image > figcaption::after { content: ""; flex: 1; min-width: 24px; height: var(--mm-hairline); background: var(--mm-rule); }

/* A section beside its figure: text on one side, photo on the other, alternating down the page. */
.mm-prose .mm-split--figure { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: start; margin-top: 0; margin-bottom: var(--mm-space-xl); }
.mm-prose .mm-split--figure-first { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
/* Beside a section the photo takes one shape, 3:2, so text and figure hold together whatever the source's proportions. */
.mm-prose .mm-split--figure figure.wp-block-image img { aspect-ratio: 3 / 2; object-fit: cover; }

/* The six categories as a strip of photos (Azienda), each a way into the catalogue. */
.mm-prose .mm-cats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--mm-space-m) var(--mm-space-s); max-width: none; margin: var(--mm-space-l) 0 var(--mm-space-xl); padding: 0; list-style: none; }
.mm-prose .mm-cats li { margin: 0; }
.mm-cats__item { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px .35em; color: var(--mm-ink); text-decoration: none; }
.mm-cats__photo { flex: 1 1 100%; width: 100%; aspect-ratio: 222 / 173; object-fit: cover; margin-bottom: 4px; }
.mm-cats__name { font: 600 var(--mm-t-link)/1.2 var(--mm-font-body); text-underline-offset: 3px; }
.mm-cats__item:hover .mm-cats__name { color: var(--mm-teal); text-decoration: underline; }

/* The buttons block, drawn as the site's buttons. */
.mm-prose .mm-cta { display: flex; flex-wrap: wrap; gap: 13px; margin-top: var(--mm-space-l); }
.mm-prose .mm-cta .wp-block-button__link,
.mm-prose .mm-download .wp-block-file__button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: var(--mm-control-min); padding: .55em 1.5em;
  border: 1.5px solid var(--mm-teal); border-radius: var(--mm-radius-control);
  background: var(--mm-teal); color: var(--mm-white);
  font: 600 var(--mm-t-btn)/1 var(--mm-font-body); text-decoration: none; white-space: nowrap;
  transition: background-color var(--mm-dur-fast) var(--mm-ease-out), color var(--mm-dur-fast) var(--mm-ease-out);
}
.mm-prose .mm-cta .wp-block-button__link:hover,
.mm-prose .mm-download .wp-block-file__button:hover { background: var(--mm-ink); border-color: var(--mm-ink); color: var(--mm-white); }
.mm-prose .mm-cta .is-style-outline .wp-block-button__link { background: transparent; color: var(--mm-teal-deep); border: 2px solid var(--mm-teal-line); }
.mm-prose .mm-cta .is-style-outline .wp-block-button__link:hover { background: var(--mm-teal); color: var(--mm-white); }

/* The catalogue PDF: one ruled row, name and size, then the button. */
.mm-prose .mm-download { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--mm-space-s) var(--mm-space-l); max-width: 52rem; margin: var(--mm-space-l) 0; padding: var(--mm-space-m) 0; border-block: var(--mm-hairline) solid var(--mm-ink); }
.mm-prose .mm-download > a:not(.wp-block-file__button) { font: 700 var(--mm-t-cat)/1.1 var(--mm-font-display); color: var(--mm-ink); text-decoration: none; }
.mm-prose .mm-download .wp-block-file__button { margin-left: 0; }

/* Realizzazioni: one ruled section per product, each photo whole on a white 4:3 tile, like a contact sheet. The
   images open in WordPress's own lightbox. WordPress sizes gallery figures with an id selector, so the width
   needs !important. */
.mm-prose .mm-jump { max-width: none; margin: 0 0 var(--mm-space-l); padding: 0; }
.mm-prose .mm-jump li { margin: 0; }
.mm-prose .mm-works__link { margin: 8px 0 0; font: 400 var(--mm-t-small)/1.3 var(--mm-font-body); color: var(--mm-muted); }
.mm-prose .mm-works__link a { color: var(--mm-slate); }
.mm-prose .mm-works__gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: var(--mm-space-s); margin: var(--mm-space-s) 0 var(--mm-space-xl); }
.mm-prose .mm-works__gallery .wp-block-image { width: auto !important; max-width: none; margin: 0; }
/* WordPress's enlarge button is 20 px: make it a comfortable touch target. */
.mm-prose .mm-works__gallery .lightbox-trigger { width: 32px; height: 32px; }
/* The lightbox wraps an image in a flex column that stretches it to the column: a small photo then shows blurred. */
.mm-prose .wp-lightbox-container { align-items: flex-start; }
.mm-prose .mm-works__gallery .wp-block-image img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain; padding: var(--mm-space-2xs); border: var(--mm-hairline) solid var(--mm-rule); background: var(--mm-white); }

/* ---------- Forms (Exopla Forms, xf__ classes) ---------- */
.xf__fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--mm-space-m) var(--mm-space-l); }
.xf__field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.xf__field--wide, .xf__field--textarea, .xf__field--consent { grid-column: 1 / -1; }
.xf__label { font: 600 var(--mm-t-link)/1.2 var(--mm-font-body); color: var(--mm-ink); }
.xf__optional { font-weight: 400; color: var(--mm-muted); }
.mm-prose .xf__hint, .xf__hint { max-width: var(--mm-measure); margin: 0; font: 400 var(--mm-t-small)/1.3 var(--mm-font-body); color: var(--mm-muted); }
.xf__input {
  width: 100%; min-height: var(--mm-control-min); padding: 9px 12px;
  border: 1px solid var(--mm-slate); border-radius: var(--mm-radius-control);
  background: var(--mm-white); color: var(--mm-ink); font: 400 var(--mm-t-body)/1.4 var(--mm-font-body);
}
textarea.xf__input { min-height: 9em; resize: vertical; }
select.xf__input {
  appearance: none; padding-right: 40px;
  background: var(--mm-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23486371' stroke-width='1.6'/%3E%3C/svg%3E") right 14px center / 12px 8px no-repeat;
}
input[type="file"].xf__input { padding: 7px; background: transparent; border-style: dashed; cursor: pointer; }
input[type="file"].xf__input::file-selector-button { margin-right: 12px; padding: 6px 14px; border: 2px solid var(--mm-teal-line); border-radius: var(--mm-radius-control); background: transparent; color: var(--mm-teal-deep); font: 600 var(--mm-t-small)/1 var(--mm-font-body); cursor: pointer; }
/* Attachments: the plugin's own button and file line (the browser's would speak English on an English browser). */
.xf__file { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 7px; background: transparent; border-style: dashed; }
.xf__file-button, .xf__file-clear { min-height: 36px; padding: 6px 14px; border: 2px solid var(--mm-teal-line); border-radius: var(--mm-radius-control); background: transparent; color: var(--mm-teal-deep); font: 600 var(--mm-t-small)/1 var(--mm-font-body); cursor: pointer; }
.xf__file-button:hover { background: var(--mm-teal-deep); border-color: var(--mm-teal-deep); color: var(--mm-white); }
.xf__file-clear { margin-left: auto; padding-inline: 10px; border-color: transparent; text-decoration: underline; text-underline-offset: 3px; }
.xf__file-clear:hover { border-color: var(--mm-teal-line); text-decoration: none; }
.xf__file-button:focus-visible, .xf__file-clear:focus-visible { outline: 2px solid var(--mm-teal); outline-offset: 2px; }
.xf__file-names { flex: 1 1 12em; min-width: 0; overflow-wrap: anywhere; font: 400 var(--mm-t-small)/1.3 var(--mm-font-body); color: var(--mm-muted); }
.has-files .xf__file-names { color: var(--mm-ink); font-weight: 500; }
/* Product: a field that filters the catalogue as you type, its list drawn under it. */
.xf__combo { position: relative; }
.xf__combo-input {
  padding-right: 40px;
  background: var(--mm-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23486371' stroke-width='1.6'/%3E%3C/svg%3E") right 14px center / 12px 8px no-repeat;
}
.xf__combo-input::placeholder { color: var(--mm-muted); opacity: 1; }
.xf__combo.is-open .xf__combo-input { border-color: var(--mm-teal); border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.xf__combo-list, .xf__combo-none {
  position: absolute; z-index: 20; top: 100%; left: 0; right: 0;
  border: 1px solid var(--mm-teal); border-top: 0; border-radius: 0 0 var(--mm-radius-control) var(--mm-radius-control);
  background: var(--mm-white); box-shadow: 0 10px 24px -12px rgb(10 31 42 / .35);
}
.xf__combo-list { max-height: min(22rem, 55vh); overflow-y: auto; overscroll-behavior: contain; padding: 4px 0 8px; }
.mm-prose .xf__combo-none, .xf__combo-none { margin: 0; padding: 12px; font: 400 var(--mm-t-small)/1.35 var(--mm-font-body); color: var(--mm-muted); }
.xf__combo-group-label { position: sticky; z-index: 1; top: -4px; padding: 10px 12px 4px; background: var(--mm-white); font: 600 var(--mm-t-small)/1.1 var(--mm-font-body); letter-spacing: .04em; text-transform: uppercase; color: var(--mm-slate); }
.xf__combo-option { scroll-margin-top: 32px; padding: 8px 12px; font: 400 var(--mm-t-body)/1.3 var(--mm-font-body); color: var(--mm-ink); cursor: pointer; }
.xf__combo-option:hover { background: var(--mm-paper); }
.xf__combo-option.is-active { background: var(--mm-teal-deep); color: var(--mm-white); }
.xf__combo-option[aria-selected="true"] { font-weight: 600; }
.xf__combo-option mark { background: none; color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.xf__input:hover { border-color: var(--mm-ink); }
.xf__input:focus-visible { border-color: var(--mm-teal); outline: 2px solid var(--mm-teal); outline-offset: 1px; }
.xf__field.is-invalid .xf__input { border-color: var(--mm-error); box-shadow: inset 0 0 0 1px var(--mm-error); }
.mm-prose .xf__error, .xf__error { margin: 0; font: 500 var(--mm-t-small)/1.3 var(--mm-font-body); color: var(--mm-error); }
.xf__error:empty { display: none; }
.xf__check { display: flex; align-items: flex-start; gap: 10px; max-width: var(--mm-measure); font: 400 var(--mm-t-body)/1.4 var(--mm-font-body); cursor: pointer; }
.xf__check input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--mm-teal); }
.xf__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--mm-space-s) var(--mm-space-m); margin-top: var(--mm-space-l); }
.xf__submit { cursor: pointer; }
.xf__submit[disabled] { opacity: .65; cursor: progress; }
.mm-prose .xf__status, .xf__status { margin: 0; font: 500 var(--mm-t-small)/1.3 var(--mm-font-body); color: var(--mm-slate); }
.xf__status.is-error { color: var(--mm-error); }
.xf__done { padding-top: var(--mm-space-m); border-top: var(--mm-hairline) solid var(--mm-ink); }
.xf__done:focus { outline: none; }
.mm-prose .xf__done-title, .xf__done-title { margin: 0 0 8px; font: 700 var(--mm-t-h2)/1 var(--mm-font-display); color: var(--mm-teal); }

@media (max-width: 860px) {
  .mm-prose .mm-split, .mm-prose .mm-split--aside, .mm-prose .mm-split--form, .mm-prose .mm-split--figure, .mm-prose .mm-split--figure-first { grid-template-columns: minmax(0, 1fr); }
  .mm-prose .mm-split--figure-first > .wp-block-column:first-child { order: 2; }
  .mm-prose .mm-cats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .xf__fields { grid-template-columns: minmax(0, 1fr); }
  .xf__submit { flex: 1 1 100%; }
  .mm-prose .mm-download .wp-block-file__button { flex: 1 1 100%; }
}

/* ---------- The home's photo sequence ([mm_slides]) ----------
   The photos share one frame; the next is plotted over the current (mm-plot, as the index drawings). Under the
   caption's rule, one short bar per photo: the open one fills while it is shown, and the next comes when it is full. */
.oxy-shortcode:has(> .mm-slides) { display: contents; }
.mm-slides__frame { display: grid; overflow: hidden; }
.mm-slides__img { grid-area: 1 / 1; visibility: hidden; }
.mm-slides__img.is-current, .mm-slides__img.is-leaving { visibility: visible; }
.mm-slides__img.is-current { position: relative; z-index: 1; }
.mm-slides__img.is-plotting { animation: mm-plot var(--mm-dur-plot) var(--mm-ease-out) both; }
.mm-slides figcaption { padding-top: 2px; }
.mm-slides figcaption::after { order: 1; }
.mm-slides__nav { order: 2; display: flex; align-items: center; margin-right: -6px; }
.mm-slides__nav[hidden] { display: none; }
.mm-slides__dot { position: relative; width: 34px; height: 32px; padding: 0; border: 0; background: none; cursor: pointer; }
.mm-slides__dot::before, .mm-slides__dot::after { content: ""; position: absolute; left: 5px; right: 5px; top: 15px; height: 2px; background: var(--mm-rule); }
.mm-slides__dot::after { background: var(--mm-teal); transform: scaleX(0); transform-origin: left; }
.mm-slides__dot[aria-current="true"]::after { transform: scaleX(1); animation: mm-slide-time 4.5s linear both paused; }
.mm-slides.is-running .mm-slides__dot[aria-current="true"]::after { animation-play-state: running; }
.mm-slides__dot:hover::before { background: var(--mm-slate); }
.mm-slides__dot:focus-visible, .mm-slides__pause:focus-visible { outline-offset: -2px; }
@keyframes mm-slide-time { from { transform: scaleX(0); } }
.mm-slides__pause { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; background: none; color: var(--mm-slate); cursor: pointer; }
.mm-slides__pause:hover { color: var(--mm-teal); }
.mm-slides__pause svg { width: 13px; height: 13px; fill: currentColor; }
.mm-slides__icon-play, .mm-slides.is-stopped .mm-slides__icon-pause { display: none; }
.mm-slides.is-stopped .mm-slides__icon-play { display: inline; }
@media (max-width: 640px) {
  .mm-slides figcaption { flex-wrap: wrap; row-gap: 0; }
  .mm-slides figcaption::after { display: none; }
  .mm-slides__caption { flex: 1 1 100%; }
  .mm-slides__nav { margin-left: -5px; }
  .mm-prose .mm-works__gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .mm-prose .mm-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Page reveal ----------
   On load the page's first things rise into place once, in reading order, all within about a second: title block,
   then what follows it. Only the top of each page; the rest is simply there. The product photo is left out: it
   is the shared element that grows from the row when the visitor comes from a category. */
@keyframes mm-rise { from { opacity: 0; transform: translateY(10px); } }
.mm-crumb, .mm-opener__title, .mm-opener__lede, .mm-opener__meta, .mm-opener__drawing, .mm-jump,
.mm-sheet__head, .mm-page__body > :nth-child(-n+3), .mm-catalogue__main .mm-group:first-of-type,
.mm-spread__title > *, .mm-spread__figure, .mm-index__col {
  animation: mm-rise .55s var(--mm-ease-out) backwards;
  animation-delay: var(--mm-d, 0ms);
}
.mm-opener__title, .mm-spread__title > :nth-child(1), .mm-sheet__head { --mm-d: 40ms; }
.mm-opener__lede, .mm-opener__drawing, .mm-spread__title > :nth-child(2), .mm-spread__figure { --mm-d: 100ms; }
.mm-opener__meta, .mm-spread__title > :nth-child(3), .mm-page__body > :nth-child(1) { --mm-d: 150ms; }
.mm-jump, .mm-spread__title > :nth-child(4), .mm-page__body > :nth-child(2) { --mm-d: 200ms; }
.mm-catalogue__main .mm-group:first-of-type, .mm-page__body > :nth-child(3) { --mm-d: 250ms; }
.mm-index__col { --mm-d: 220ms; }
.mm-index__col:nth-child(2) { --mm-d: 260ms; }
.mm-index__col:nth-child(3) { --mm-d: 300ms; }
.mm-index__col:nth-child(4) { --mm-d: 340ms; }
.mm-index__col:nth-child(5) { --mm-d: 380ms; }
.mm-index__col:nth-child(6) { --mm-d: 420ms; }

/* ---------- Motion: the plotter ----------
   One idea, from the home's index: a drawing is plotted from left to right (mm-plot). The same reveal fills the
   logo while the next page loads, draws the rule under the section a jump link lands on, and prints a sent form's
   reply. Navigation keeps the masthead and the thumb-index rail still while the page changes under them; the open
   tab slides to the next category; a product's photo grows from its row into the sheet. Every effect ends in the
   page's normal state, so content never waits on a script. */
@view-transition { navigation: auto; }
.mm-masthead { view-transition-name: mm-masthead; }
.mm-catalogue__rail { view-transition-name: mm-rail; }
.mm-tabs__tab[aria-current="page"], .mm-tabs__tab.is-active,
.mm-cat-canalizzazioni .mm-tabs__tab--canalizzazioni, .mm-cat-cordoli .mm-tabs__tab--cordoli,
.mm-cat-pavimentazioni .mm-tabs__tab--pavimentazioni, .mm-cat-costruzioni .mm-tabs__tab--costruzioni,
.mm-cat-arredo-giardino .mm-tabs__tab--arredo-giardino, .mm-cat-arredo-urbano .mm-tabs__tab--arredo-urbano { view-transition-name: mm-tab-open; }
.mm-sheet .mm-plate img { view-transition-name: mm-photo; }
::view-transition-old(root) { animation: mm-page-out .14s cubic-bezier(.4, 0, 1, 1) both; }
::view-transition-new(root) { animation: mm-page-in .24s var(--mm-ease-out) both; }
::view-transition-group(mm-photo) { animation-duration: .4s; animation-timing-function: var(--mm-ease-out); }
/* The open tab travels the rail: long enough to follow from 01 to 06. */
::view-transition-group(mm-tab-open) { animation-duration: .5s; animation-timing-function: cubic-bezier(.65, 0, .35, 1); }
::view-transition-old(mm-photo), ::view-transition-new(mm-photo) { height: 100%; object-fit: contain; }
@keyframes mm-page-out { to { opacity: 0; } }
@keyframes mm-page-in { from { opacity: 0; } }

/* The logo as the loading meter: when the next page takes more than a moment (the script adds mm-loading), the
   wordmark drops to a pale print and fills again from the left, quickly at first, then slowly, never quite full.
   The next page arrives with the full logo, and the masthead's cross-fade completes it. */
@property --mm-fill { syntax: "<percentage>"; inherits: false; initial-value: 0%; }
.mm-loading .mm-masthead__logo img {
  -webkit-mask-image: linear-gradient(90deg, #000 calc(var(--mm-fill) - 3%), rgb(0 0 0 / .2) calc(var(--mm-fill) + 3%));
  mask-image: linear-gradient(90deg, #000 calc(var(--mm-fill) - 3%), rgb(0 0 0 / .2) calc(var(--mm-fill) + 3%));
  animation: mm-logo-fill 3.2s var(--mm-ease-out) forwards;
}
@keyframes mm-logo-fill { from { --mm-fill: 0%; } to { --mm-fill: 94%; } }

/* A jump link lands: the section's rule is drawn in teal over the ink one. */
html { scroll-behavior: smooth; }
.mm-group:target .mm-group__head, .mm-prose h2:target {
  background: linear-gradient(var(--mm-teal), var(--mm-teal)) left bottom / 100% 2px no-repeat;
  animation: mm-rule var(--mm-dur-plot) var(--mm-ease-out) both;
}
@keyframes mm-rule { from { background-size: 0 2px; } }

/* Forms: an error eases in under its field, the button fills while the message goes, the reply is printed. */
.xf__error { transition: opacity var(--mm-dur-fast) var(--mm-ease-out), transform var(--mm-dur-fast) var(--mm-ease-out); }
@starting-style { .xf__error { opacity: 0; transform: translateY(-3px); } }
.xf[aria-busy="true"] .xf__submit {
  opacity: 1; border-color: var(--mm-ink);
  background: linear-gradient(90deg, var(--mm-ink) 50%, var(--mm-teal) 50%) right / 200% 100% no-repeat;
  animation: mm-btn-fill 3.2s var(--mm-ease-out) forwards;
}
@keyframes mm-btn-fill { to { background-position: 6% 50%; } }
.xf__done:not([hidden]) { animation: mm-plot .6s var(--mm-ease-out) both; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  /* Pages still cross-fade, without moving; the open tab and the photo jump to their place. */
  ::view-transition-new(root) { animation-name: mm-page-fade; }
  ::view-transition-group(*) { animation-duration: 0s !important; }
  @keyframes mm-page-fade { from { opacity: 0; } }
  /* Loading still shows, as a still pale logo instead of a moving fill. */
  .mm-loading .mm-masthead__logo img { -webkit-mask-image: none; mask-image: none; opacity: .4; }
  .mm-tabs__tab:hover, .mm-tabs__tab:focus-visible { transform: none; }
  .mm-slides__pause { display: none; }
}

/* ---------- Footer: the catalogue's colophon ---------- */
.mm-footer {
  display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: var(--mm-space-xl);
  padding: var(--mm-space-xl) var(--mm-gutter) var(--mm-space-m);
  border-top: var(--mm-hairline) solid var(--mm-ink);
  font: 400 var(--mm-t-small)/1.45 var(--mm-font-body); color: var(--mm-ink);
}
.mm-footer__logo { width: clamp(170px, 15.12vw, 227px); height: auto; aspect-ratio: 756 / 78; }
.mm-footer .mm-footer__addr { margin-top: var(--mm-space-xs); }
.mm-footer__head { margin: 0 0 6px; font: 600 var(--mm-t-small)/1.2 var(--mm-font-body); letter-spacing: .04em; color: var(--mm-slate); }
.mm-footer p { margin: 0; }
.mm-footer ul { margin: 0; padding: 0; list-style: none; }
.mm-footer a { color: var(--mm-ink); }
.mm-footer a:hover { color: var(--mm-teal); }
.mm-footer__tel { display: inline-block; padding-block: 3px; font: 600 var(--mm-t-link)/1.3 var(--mm-font-body); }
.mm-footer__legal { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: var(--mm-space-s); border-top: var(--mm-hairline) solid var(--mm-rule); color: var(--mm-muted); }
.mm-footer__legal a { display: inline-block; padding-block: 3px; color: var(--mm-muted); }

@media (max-width: 1100px) {
  .mm-group__rows { grid-template-columns: 1fr; }
  .mm-footer { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .mm-catalogue { grid-template-columns: minmax(0, 1fr); }
  .mm-catalogue__main { grid-row: 2; }
  .mm-catalogue__rail { grid-column: 1; grid-row: 1; border-left: 0; border-bottom: var(--mm-hairline) solid var(--mm-rule); background: var(--mm-paper); }
  /* Phones: the six categories as a fixed 3 x 2 grid. A sideways strip made the page feel loose under the thumb. */
  .mm-tabs { position: static; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); min-width: 0; }
  .mm-tabs__tab { justify-content: center; height: auto; min-height: var(--mm-control-min); padding: 8px 6px; border-bottom: var(--mm-hairline) solid var(--mm-rule); border-right: var(--mm-hairline) solid var(--mm-rule); text-align: center; }
  .mm-tabs__tab:nth-child(3n) { border-right: 0; }
  .mm-tabs__tab:nth-last-child(-n+3) { border-bottom: 0; }
  .mm-tabs__tab:hover, .mm-tabs__tab:focus-visible { transform: none; }
  .mm-tabs__name { writing-mode: horizontal-tb; transform: none; font-size: var(--mm-t-small); white-space: normal; }
  .mm-tabs__tab[aria-current="page"], .mm-tabs__tab.is-active,
  .mm-cat-canalizzazioni .mm-tabs__tab--canalizzazioni, .mm-cat-cordoli .mm-tabs__tab--cordoli,
  .mm-cat-pavimentazioni .mm-tabs__tab--pavimentazioni, .mm-cat-costruzioni .mm-tabs__tab--costruzioni,
  .mm-cat-arredo-giardino .mm-tabs__tab--arredo-giardino, .mm-cat-arredo-urbano .mm-tabs__tab--arredo-urbano { transform: none; border-radius: 0; }
  .mm-opener { grid-template-columns: 1fr; gap: var(--mm-space-s); }
  .mm-opener__drawing { order: -1; height: 150px; }
  .mm-sheet { grid-template-columns: 1fr; grid-template-areas: "head" "plate" "body"; row-gap: var(--mm-space-m); }
  .mm-sheet .mm-plate { position: static; }
  .mm-plate__frame { min-height: 180px; }
}
@media (max-width: 640px) {
  .mm-row { grid-template-columns: 72px minmax(0, 1fr) 20px; }
  .mm-row__photo { width: 72px; }
  .mm-row__meta { grid-column: 2; grid-row: 2; margin-top: -4px; }
  .mm-row .mm-icon { grid-column: 3; grid-row: 1 / span 2; }
  .mm-row__photo { grid-row: 1 / span 2; }
  .mm-actions .mm-btn { flex: 1 1 100%; }
  .mm-jump { gap: 8px 26px; }
  .mm-jump li + li::before { content: none; }
  .mm-jump__count { margin-left: .2em; font-size: .85em; }
  .mm-specs {
    background:
      linear-gradient(to left, var(--mm-paper) 40%, transparent) right / 32px 100% no-repeat local,
      linear-gradient(to left, color-mix(in srgb, var(--mm-ink) 16%, transparent), transparent) right / 14px 100% no-repeat scroll;
  }
  /* Phones (catalogue.js decides per table): a table that nearly fits fits the screen, a few words wrapping;
     a wider one scrolls in its own box, every value on one line and the code column pinned. */
  .mm-specs table { width: 100%; font-size: .9375rem; }
  .mm-specs th, .mm-specs td, .mm-specs td:first-child { white-space: normal; padding-right: 10px; }
  .mm-specs th:last-child, .mm-specs td:last-child { padding-right: 0; }
  .mm-specs--measure table, .mm-specs--scroll table { width: max-content; min-width: 100%; font-size: var(--mm-t-link); }
  .mm-specs--measure :is(th, td), .mm-specs--scroll :is(th, td), .mm-specs--scroll td:first-child { white-space: nowrap; padding-right: 16px; }
  .mm-specs--scroll :is(td, th):first-child { position: sticky; left: 0; z-index: 1; background: var(--mm-paper); box-shadow: inset -1px 0 0 var(--mm-rule); }
  .mm-specs--scroll tr:hover td:first-child { background: var(--mm-white); }
  .mm-specs__hint { margin: var(--mm-space-xs) 0 0; font: 500 var(--mm-t-small)/1.3 var(--mm-font-body); color: var(--mm-slate); }
  .mm-specs__hint + .mm-specs { margin-top: 4px; }
  .mm-footer { grid-template-columns: 1fr; }
}

/* ---------- Touch screens: every link or control that stands on its own is a 44 px target ----------
   Links inside running text keep their line height (WCAG 2.5.8 exempts them). */
@media (pointer: coarse) {
  .mm-masthead__logo { min-height: var(--mm-control-min); }
  .mm-crumb a, .mm-jump a, .mm-index__list a, .mm-footer a, .mm-prose .mm-download > a:not(.wp-block-file__button) {
    display: inline-flex; align-items: center; min-height: var(--mm-control-min); padding-block: 0;
  }
  .mm-index__head { padding-top: 9px; }
  .mm-slides__pause { width: var(--mm-control-min); height: var(--mm-control-min); }
  .xf__file-button, .xf__file-clear { min-height: var(--mm-control-min); }
  .xf__combo-option { padding-block: 12px; }
  .mm-prose .lightbox-trigger, .mm-prose .mm-works__gallery .lightbox-trigger { width: var(--mm-control-min); height: var(--mm-control-min); }
  .xf input[type="checkbox"] { width: 24px; height: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Narrower screens ---------- */
@media (max-width: 1100px) {
  .mm-masthead__nav ul { margin-left: 0; }
  .mm-index { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 32px; }
  .mm-index__col:nth-child(4) { border-left: 0; }
}
@media (max-width: 860px) {
  .mm-masthead { grid-template-columns: auto 1fr auto auto; height: auto; padding-block: 4px 0; row-gap: 0; }
  /* Touch screens: every menu link and slide control is a 44 px target. */
  .mm-masthead__nav a { display: inline-flex; align-items: center; min-height: var(--mm-control-min); }
  .mm-slides__dot { height: var(--mm-control-min); }
  .mm-slides__dot::before, .mm-slides__dot::after { top: calc(50% - 1px); }
  .mm-masthead__phone { grid-column: 3; }
  .mm-masthead__mail { display: inline-flex; grid-column: 4; padding-left: clamp(12px, 2vw, 20px); }
  .mm-masthead__nav { grid-column: 1 / -1; grid-row: 2; overflow-x: auto; }
  .mm-masthead__cta { display: none; }
  .mm-spread { grid-template-columns: 1fr; }
  .mm-spread__figure { order: -1; }
  .mm-spread__figure img { aspect-ratio: 16 / 10; }
  .mm-spread__figure figcaption { padding-left: var(--mm-gutter); }
  .mm-spread__title { padding-right: var(--mm-gutter); }
}
@media (max-width: 640px) {
  .mm-masthead__phone span, .mm-masthead__mail span { position: absolute; left: -9999px; }
  /* Phones: two icons at the right edge, each a 44 px target. */
  .mm-masthead__phone, .mm-masthead__mail { justify-content: center; min-width: var(--mm-control-min); }
  .mm-masthead__mail { padding-left: 0; }
  .mm-masthead__phone .mm-icon, .mm-masthead__mail .mm-icon { width: 22px; height: 22px; }
  .mm-index { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-inline: var(--mm-gutter); }
  .mm-index__col:nth-child(n) { border-left: 0; padding-inline: 0; }
  .mm-index__col:nth-child(odd) { padding-right: 10px; }
  .mm-index__col:nth-child(even) { padding-left: 10px; border-left: var(--mm-hairline) solid var(--mm-rule); }
  .mm-spread__actions .mm-btn { flex: 1 1 100%; }
}
