/* FEMA Solar & Picchio Luce e Gas (distributori ufficiali Midea) — shared components (Shopify: assets/base.css). Tokens in tokens.css.
   B2B catalogue + quotation (brief/b2b-installatori.md §4): quotation list, tech panel, cards without prices. */

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-height) + 16px); }
body {
  font: var(--font-weight-regular) var(--font-size-body)/var(--line-height-body) var(--font-body--family);
  color: var(--color-foreground);
  background: var(--color-background);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-variant-numeric: tabular-nums;
}
img, svg, video, picture { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
:where(ul[role="list"], ol[role="list"]) { list-style: none; padding: 0; }
h1, h2, h3, h4 { font-weight: var(--font-weight-medium); line-height: var(--line-height-heading); text-wrap: balance; }
p { text-wrap: pretty; }
main { overflow-x: clip; }
[hidden] { display: none !important; }
.icon { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.icon--sm { width: 16px; height: 16px; }

/* ---------- focus ---------- */
:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 3px; border-radius: var(--radius-xs); }
.button:focus-visible, .chip:focus-visible, .icon-button:focus-visible { border-radius: var(--radius-pill); }

/* ---------- a11y helpers ---------- */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: 8px; z-index: var(--z-toast); transform: translateY(-160%); background: var(--color-deep); color: #fff; padding: 10px 18px; border-radius: var(--radius-pill); font-weight: var(--font-weight-semibold); transition: transform var(--duration-base) var(--ease-out); }
.skip-link:focus { transform: none; }

/* ---------- layout ---------- */
.page-width { width: 100%; max-width: calc(var(--page-width) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.page-width--narrow { max-width: calc(var(--page-width-narrow) + 2 * var(--gutter)); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--grid-gap); }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: var(--grid-gap); list-style: none; padding: 0; }
.section { padding-block: var(--space-section); }
.section--surface { background: var(--color-surface); }
.section--deep { background: var(--color-deep); color: #fff; }
.stack > * + * { margin-top: var(--stack, var(--space-4)); }
@media (max-width: 768px) { :root { --grid-gap: 12px; } }

/* ---------- typography ---------- */
.h-display { font-size: var(--font-size-display); line-height: var(--line-height-tight); letter-spacing: var(--letter-spacing-display); font-weight: var(--font-weight-medium); }
.h1 { font-size: var(--font-size-h1); line-height: 1.1; letter-spacing: var(--letter-spacing-heading); font-weight: var(--font-weight-medium); }
.h2 { font-size: var(--font-size-h2); line-height: 1.15; letter-spacing: var(--letter-spacing-heading); font-weight: var(--font-weight-medium); }
.h3 { font-size: var(--font-size-h3); line-height: 1.25; letter-spacing: -0.01em; font-weight: var(--font-weight-medium); }
.eyebrow { font-size: 13px; line-height: 1.3; font-weight: var(--font-weight-semibold); letter-spacing: var(--letter-spacing-caps); text-transform: uppercase; color: var(--color-link); }
.lead { font-size: var(--font-size-lg); line-height: 1.6; color: var(--color-muted); max-width: 52ch; }
.text-muted { color: var(--color-muted); }
.text-small { font-size: var(--font-size-sm); line-height: 1.5; }
.text-caption { font-size: var(--font-size-xs); line-height: 1.5; letter-spacing: 0.02em; color: var(--color-muted); }
.rte { max-width: var(--page-width-text); }
.rte > * + * { margin-top: 1em; }

/* ---------- links ---------- */
.link { display: inline-flex; align-items: center; gap: 8px; font-weight: var(--font-weight-semibold); font-size: 15px; color: var(--color-link); }
.link .icon { width: 16px; height: 16px; transition: transform var(--duration-base) var(--ease-out); }
.link:hover .icon { transform: translateX(4px); }
.link--underline, .rte a { color: var(--color-link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.link--underline:hover, .rte a:hover { text-decoration-thickness: 2px; }

/* ---------- buttons (pill, as midea.com) ---------- */
.button {
  --button-bg: var(--color-primary); --button-fg: #fff; --button-border: transparent;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--control-height); padding: 0 28px; border-radius: var(--radius-pill);
  border: 1.5px solid var(--button-border); background: var(--button-bg); color: var(--button-fg);
  font-size: 19px; font-weight: var(--font-weight-semibold); line-height: 1; letter-spacing: 0.005em; white-space: nowrap;
  transition: background-color var(--duration-base), color var(--duration-base), border-color var(--duration-base), transform var(--duration-base) var(--ease-out);
}
.button:hover { --button-bg: var(--color-primary-hover); }
/* white on Midea Blue is AA only as large bold text (≥ 18.66 px and 700): primary labels are 19 px bold;
   wherever a page makes a primary label smaller, it switches the background to --color-deep */
.button:where(:not(.button--secondary, .button--dark, .button--ghost, .button--on-blue)) { font-weight: 700; }
.button:active { transform: translateY(1px); --button-bg: var(--color-primary-active); }
/* secondary: Deep Blue outline → filled on hover (small text safe) */
.button--secondary { --button-bg: transparent; --button-fg: var(--color-deep); --button-border: var(--color-deep); font-size: 15px; }
.button--secondary:hover, .button--secondary:active { --button-bg: var(--color-deep); --button-fg: #fff; }
/* dark: Deep Blue fill — for small-text CTAs (white on Midea Blue fails under 18.66px bold) */
.button--dark { --button-bg: var(--color-deep); font-size: 15px; }
.button--dark:hover { --button-bg: var(--color-deep-hover); }
.button--dark:active { --button-bg: var(--color-deep); }
/* ghost: on images / deep sections */
.button--ghost { --button-bg: transparent; --button-fg: #fff; --button-border: rgb(255 255 255 / 0.9); }
.button--ghost:hover, .button--ghost:active { --button-bg: #fff; --button-fg: var(--color-deep); }
/* on-blue: white button for Midea Blue / gradient backgrounds */
.button--on-blue { --button-bg: #fff; --button-fg: var(--color-deep); }
.button--on-blue:hover, .button--on-blue:active { --button-bg: var(--color-gradient-start); }
.button--sm { min-height: var(--control-height-sm); padding: 0 20px; font-size: 15px; }
.button--lg { min-height: var(--control-height-lg); padding: 0 34px; }
.button--block { width: 100%; }
.button[disabled], .button[aria-disabled="true"] { --button-bg: var(--color-border); --button-fg: var(--color-muted); --button-border: transparent; cursor: not-allowed; transform: none; }
.button[aria-busy="true"] { color: transparent; pointer-events: none; }
.button[aria-busy="true"]::after { content: ""; position: absolute; inset: 0; margin: auto; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--button-fg); border-right-color: transparent; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.icon-button { position: relative; display: grid; place-items: center; width: var(--touch-target); height: var(--touch-target); border-radius: 50%; color: var(--color-foreground); transition: background-color var(--duration-fast); }
.icon-button:hover { background: var(--color-surface); }
.icon-button:active { background: var(--color-border); }
.icon-button[disabled] { color: var(--color-border-strong); background: none; cursor: not-allowed; }

/* ---------- form controls ---------- */
.field { display: grid; gap: 6px; }
.field__label { font-size: var(--font-size-sm); font-weight: var(--font-weight-medium); color: var(--color-foreground-2); }
.field__hint { font-size: var(--font-size-xs); color: var(--color-muted); }
.field-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; } /* anti-spam field: people never see it, bots fill it */
.field__error { display: flex; gap: 6px; align-items: center; font-size: var(--font-size-sm); color: var(--color-error); font-weight: var(--font-weight-medium); }
.input, .select, .textarea {
  width: 100%; min-height: var(--control-height); padding: 0 16px; border: 1px solid var(--color-border-strong); border-radius: var(--radius-md);
  background: #fff; color: var(--color-foreground); font-size: 16px; transition: border-color var(--duration-fast), box-shadow var(--duration-fast);
}
.textarea { padding: 12px 16px; min-height: 112px; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: var(--color-muted); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--color-muted); }
.input:focus-visible, .select:focus-visible, .textarea:focus-visible { outline: none; border-color: var(--color-primary); box-shadow: var(--shadow-focus); }
.input[aria-invalid="true"] { border-color: var(--color-error); }
.input:disabled { background: var(--color-surface); color: var(--color-muted); cursor: not-allowed; }
.select { appearance: none; padding-right: 44px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23222' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 18px; }
.check { display: inline-flex; align-items: flex-start; gap: 12px; min-height: var(--touch-target); padding-block: 11px; cursor: pointer; font-size: 15px; line-height: 1.45; }
.check input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--color-deep); cursor: pointer; }
.search-field { display: flex; align-items: center; gap: 10px; min-height: var(--control-height); padding: 0 6px 0 16px; border: 1px solid var(--color-border-strong); border-radius: var(--radius-pill); background: #fff; }
.search-field:focus-within { border-color: var(--color-primary); box-shadow: var(--shadow-focus); }
.search-field input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font-size: 16px; }

/* quantity stepper */
.quantity { display: inline-flex; align-items: center; height: var(--control-height-sm); border: 1px solid var(--color-border-strong); border-radius: var(--radius-pill); background: #fff; }
.quantity button { display: grid; place-items: center; width: 40px; height: 100%; border-radius: var(--radius-pill); color: var(--color-foreground); transition: background-color var(--duration-fast); }
.quantity button:hover:not([disabled]) { background: var(--color-surface); }
.quantity button[disabled] { color: var(--color-border-strong); cursor: not-allowed; }
.quantity button .icon { width: 16px; height: 16px; }
.quantity input { width: 36px; height: 100%; border: 0; background: none; text-align: center; font-weight: var(--font-weight-semibold); font-size: 15px; -moz-appearance: textfield; }
.quantity input::-webkit-inner-spin-button, .quantity input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.quantity:focus-within { border-color: var(--color-primary); box-shadow: var(--shadow-focus); }
.quantity input:focus-visible { outline: none; }

/* option pills (variant picker) */
.option-group { border: 0; padding: 0; min-width: 0; }
.option-group legend { font-size: var(--font-size-sm); font-weight: var(--font-weight-medium); margin-bottom: 10px; color: var(--color-foreground-2); }
.option-group legend b { font-weight: var(--font-weight-semibold); color: var(--color-foreground); }
.option-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.option-pill { position: relative; }
.option-pill input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.option-pill span { display: inline-flex; align-items: center; min-height: var(--touch-target); padding: 0 18px; border: 1px solid var(--color-border-strong); border-radius: var(--radius-pill); font-size: 14px; font-weight: var(--font-weight-medium); background: #fff; transition: border-color var(--duration-fast), background-color var(--duration-fast), color var(--duration-fast); }
.option-pill:hover span { border-color: var(--color-foreground); }
.option-pill input:checked + span { background: var(--color-deep); border-color: var(--color-deep); color: #fff; }
.option-pill input:focus-visible + span { outline: 2px solid var(--color-primary); outline-offset: 3px; }
.option-pill input[data-unavailable] + span { color: var(--color-muted); background: linear-gradient(to top right, transparent calc(50% - .5px), var(--color-border-strong) 50%, transparent calc(50% + .5px)) #fff; }
.option-pill input[data-unavailable]:checked + span { background: var(--color-surface); color: var(--color-foreground-2); border-color: var(--color-foreground-2); }

/* ---------- chips ---------- */
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: var(--touch-target); padding: 0 14px; border: 1px solid var(--color-border-strong); border-radius: var(--radius-pill); background: #fff; font-size: 14px; font-weight: var(--font-weight-medium); color: var(--color-foreground); white-space: nowrap; transition: border-color var(--duration-fast), background-color var(--duration-fast), color var(--duration-fast); }
.chip:hover { border-color: var(--color-foreground); }
.chip[aria-pressed="true"], .chip[aria-current="true"], .chip.is-active { background: var(--color-deep); border-color: var(--color-deep); color: #fff; }
.chip--removable { background: var(--color-tint); border-color: transparent; color: var(--color-deep); padding-right: 6px; }
.chip--removable:hover { background: oklch(0.9 0.04 240); }
.chip--removable .icon { width: 14px; height: 14px; }
.chip--removable .chip__x { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; }
.chip-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; }

/* ---------- badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: var(--radius-pill); font-size: 12px; font-weight: var(--font-weight-semibold); letter-spacing: 0.02em; background: #fff; color: var(--color-deep); white-space: nowrap; }
.badge--new { background: var(--color-deep); color: #fff; }
.badge--tint { background: var(--color-tint); }
.badge--outline { box-shadow: inset 0 0 0 1px var(--color-border-strong); }
.stock { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: var(--font-weight-medium); }
.stock::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.stock--in { color: var(--color-success); }
.stock--low { color: var(--color-warning); }
.stock--out { color: var(--color-muted); }
.stock--request { color: var(--color-deep); }

/* energy class (spec §6): arrow, official colour, white 600 text (dark on light green / yellow) */
energy-badge {
  --energy-bg: var(--color-energy-1); --energy-fg: var(--color-energy-ink-light);
  display: inline-flex; align-items: center; height: 22px; padding: 0 14px 0 8px;
  background: var(--energy-bg); color: var(--energy-fg);
  font: var(--font-weight-semibold) 13px/1 var(--font-body--family); letter-spacing: 0.01em; white-space: nowrap;
  clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 50%, calc(100% - 9px) 100%, 0 100%);
  border-radius: 2px 0 0 2px; vertical-align: middle;
}
energy-badge[data-step="2"] { --energy-bg: var(--color-energy-2); }
energy-badge[data-step="3"] { --energy-bg: var(--color-energy-3); --energy-fg: var(--color-energy-ink-dark); }
energy-badge[data-step="4"] { --energy-bg: var(--color-energy-4); --energy-fg: var(--color-energy-ink-dark); }
energy-badge[data-step="5"] { --energy-bg: var(--color-energy-5); --energy-fg: var(--color-energy-ink-dark); }
energy-badge[data-step="6"] { --energy-bg: var(--color-energy-6); }
energy-badge[data-step="7"] { --energy-bg: var(--color-energy-7); }
energy-badge[data-size="lg"] { height: 28px; font-size: 16px; padding: 0 18px 0 10px; clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%); }
.energy-row { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--color-foreground-2); }

/* ---------- price ---------- */
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-variant-numeric: tabular-nums; }
.price__current { white-space: nowrap; font-size: 22px; font-weight: var(--font-weight-medium); letter-spacing: -0.015em; color: var(--color-foreground); }
.price__current--request { font-size: 16px !important; font-weight: var(--font-weight-medium); color: var(--color-foreground-2); }
.price__compare { font-size: 15px; color: var(--color-muted); text-decoration: line-through; }
.price__from { font-size: 13px; color: var(--color-muted); }
.price__note { flex-basis: 100%; font-size: 12px; color: var(--color-muted); letter-spacing: 0.01em; }
.price--lg .price__current { font-size: 32px; letter-spacing: -0.02em; }
.price--sale .price__current { color: var(--color-deep); }

/* ---------- product card ---------- */
product-card { display: block; }
.card { position: relative; display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-card); overflow: hidden; transition: translate var(--duration-slow) var(--ease-out), box-shadow var(--duration-slow) var(--ease-out); }
.card:hover { translate: 0 -4px; box-shadow: var(--shadow-md); }
/* product photos always on white, never blended on grey (client rule, fix-home §3) */
.card__media { position: relative; aspect-ratio: 1; background: #fff; border-bottom: 1px solid var(--color-border); overflow: hidden; }
.card__media picture { display: contents; }
.card__media img { width: 100%; height: 100%; object-fit: contain; padding: 12%; transition: transform 0.7s var(--ease-out); }
.card:hover .card__media img { transform: scale(1.06); }
.card__badges { position: absolute; inset: 14px 14px auto; display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; pointer-events: none; }
.card__body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.card__type { font-size: 12px; line-height: 1.3; font-weight: var(--font-weight-semibold); letter-spacing: var(--letter-spacing-caps); text-transform: uppercase; color: var(--color-muted); }
.card__title { margin: 6px 0 6px; font-size: 19px; line-height: 1.25; letter-spacing: -0.01em; font-weight: var(--font-weight-medium); }
.card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card__title a:focus-visible { outline: none; }
.card:has(.card__title a:focus-visible) { outline: 2px solid var(--color-primary); outline-offset: 3px; }
.card__summary { font-size: 14px; line-height: 1.5; color: var(--color-foreground-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* data line (Theme.keyData): the card's proof, never a price */
.card__data { margin-top: 2px; font-size: 15px; line-height: 1.45; font-weight: var(--font-weight-medium); color: var(--color-deep); font-variant-numeric: tabular-nums; }
.card__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-top: auto; padding-top: 18px; }
.card__foot quick-add .button { padding: 0 18px; }
.card quick-add, .card__sheet { position: relative; z-index: 2; }
.card__sheet { display: inline-flex; align-items: center; gap: 6px; min-height: var(--touch-target); font-size: 14px; font-weight: var(--font-weight-semibold); color: var(--color-link); text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; transition: text-decoration-color var(--duration-fast); }
.card__sheet:hover { text-decoration-color: currentColor; }
.card--sold-out .card__media img { opacity: 0.55; }
/* product without photos: neutral figure (Theme.placeholderHTML) — card, quick add, search, cart */
.media-ph { display: grid; place-content: center; justify-items: center; gap: 12px; width: 100%; height: 100%; background: linear-gradient(180deg, var(--color-surface), #fff 75%); }
.media-ph__mark { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 18px; background: #fff; box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--color-border); color: var(--color-deep); }
.media-ph__mark .icon { width: 44px; height: 44px; }
.media-ph__t { font-size: 12px; color: var(--color-muted); }
.media-ph--sm .media-ph__mark { width: auto; height: auto; background: none; box-shadow: none; }
.media-ph--sm .media-ph__mark .icon { width: 28px; height: 28px; }

/* ---------- header (section: header) ---------- */
/* Scroll-shrink without reflow: site-header keeps a FIXED layout box (--header-height) for its whole life, so the page
   never moves and scroll anchoring can't bounce the state. The compact look is drawn with transforms only (GPU):
   the white panel (::before) slides up by the height difference, the bar content follows by half of it and the logos
   scale down. The strip the panel uncovers lets clicks through (pointer-events). State: theme.js, rAF + hysteresis. */
site-header { display: block; position: sticky; top: 0; z-index: var(--z-header); height: var(--header-height); pointer-events: none;
  --header-shift: calc(var(--header-height-compact) - var(--header-height)); }
site-header::before { content: ""; position: absolute; inset: 0; background: #fff; border-bottom: 1px solid transparent; box-shadow: 0 6px 24px -18px rgb(0 40 76 / 0); transition: transform var(--duration-base) var(--ease-out), border-color var(--duration-base), box-shadow var(--duration-base), opacity var(--duration-base); will-change: transform; }
site-header.is-compact::before { transform: translateY(var(--header-shift)); border-color: var(--color-border); box-shadow: 0 6px 24px -18px rgb(0 40 76 / 0.35); }
.header__inner { position: relative; display: flex; align-items: center; gap: var(--space-4); height: var(--header-height); transition: transform var(--duration-base) var(--ease-out); }
.header__inner > *, site-header dialog { pointer-events: auto; }
site-header.is-compact .header__inner { transform: translateY(calc(var(--header-shift) / 2)); }
/* site logos = the two official co-distributors, side by side at the same optical weight (FEMA is lighter and squarer,
   so it runs ~10% taller than the denser Picchio wordmark). The padding (offset by the negative margin) keeps the focus
   ring clear of the logos. */
.header__logos { flex: none; display: flex; align-items: center; gap: 14px; margin-left: -10px; padding: 6px 10px; border-radius: 14px; transform-origin: left center; transition: transform var(--duration-base) var(--ease-out); }
site-header.is-compact .header__inner .header__logos { transform: scale(0.86); }
.header__logos-rule { flex: none; width: 1px; height: 28px; background: var(--color-midgrey); }
.header__logo { flex: none; display: block; line-height: 0; border-radius: 4px; }
.header__logo-img { width: auto; height: 42px; }
.header__logo--picchio .header__logo-img { height: 38px; }
.header__logos--drawer { margin-left: -10px; }
/* co-brand lock-up (Midea brand book, brand collaboration): official brandmark, untouched, ≥ 27.5 px ·
   thin Mid-Grey divider with 1X spacing · «Distributore ufficiale». Midea reads as the brand distributed, never the owner. */
.cobrand { display: inline-flex; align-items: center; gap: 10px; margin: 0; font-size: 12px; line-height: 1.25; font-weight: var(--font-weight-semibold); letter-spacing: 0.02em; color: var(--color-foreground-2); white-space: nowrap; }
.cobrand img { width: auto; height: 28px; flex: none; }
.cobrand__rule { width: 1px; height: 24px; background: var(--color-midgrey); flex: none; }
.cobrand--header { margin-right: 6px; }
.cobrand--drawer { margin-top: 28px; }
.cobrand--footer { font-size: 13px; gap: 12px; }
.cobrand--footer img { height: 32px; }
.cobrand--footer .cobrand__rule { height: 28px; }
@media (max-width: 1279px) { .cobrand--header { display: none; } }
.header__nav { flex: 1; display: flex; justify-content: center; }
.header__menu { display: flex; gap: clamp(14px, 1.2vw, 18px); list-style: none; padding: 0; }
.header__menu a { position: relative; display: flex; align-items: center; height: var(--touch-target); font-size: 15px; font-weight: var(--font-weight-medium); white-space: nowrap; }
.header__menu a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 2px; background: var(--color-primary); transform: scaleX(0); transform-origin: left; transition: transform var(--duration-base) var(--ease-out); }
.header__menu a:hover::after, .header__menu a[aria-current="page"]::after { transform: scaleX(1); }
.header__tools { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.header__tools > * { flex: none; }
.header__menu-toggle { display: none; }
quote-count { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--color-deep); color: #fff; font: var(--font-weight-semibold) 11px/18px var(--font-body--family); text-align: center; transition: transform var(--duration-base) var(--ease-spring), opacity var(--duration-fast); }
quote-count[data-count="0"] { opacity: 0; transform: scale(0.5); }
quote-count.is-bumped { transform: scale(1.3); }
@media (max-width: 1100px) {
  :root { --header-height: 60px; }
  .header__nav { display: none; }
  .header__menu-toggle { display: grid; }
  .header__logos { gap: 12px; }
  .header__logo--fema .header__logo-img { height: 34px; }
  .header__logo--picchio .header__logo-img { height: 31px; }
  site-header.is-compact .header__inner .header__logos { transform: none; } /* 60 px bar on mobile: nothing to shrink */
  .header__logos-rule { height: 24px; }
}

/* ---------- dialogs: shared ---------- */
dialog { padding: 0; border: 0; color: inherit; max-width: none; max-height: none; }
dialog::backdrop { background: var(--color-overlay); }
.dialog {
  width: min(560px, calc(100vw - 32px)); max-height: min(88vh, 820px); margin: auto; border-radius: var(--radius-card); background: #fff; box-shadow: var(--shadow-lg);
  opacity: 0; transform: translateY(12px) scale(0.98);
  transition: opacity var(--duration-base) var(--ease-out), transform var(--duration-base) var(--ease-out), overlay var(--duration-base) allow-discrete, display var(--duration-base) allow-discrete;
}
.dialog[open] { display: flex; flex-direction: column; opacity: 1; transform: none; }
@starting-style { .dialog[open] { opacity: 0; transform: translateY(12px) scale(0.98); } }
dialog::backdrop { opacity: 0; transition: opacity var(--duration-base), overlay var(--duration-base) allow-discrete, display var(--duration-base) allow-discrete; }
dialog[open]::backdrop { opacity: 1; }
@starting-style { dialog[open]::backdrop { opacity: 0; } }
.dialog__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 18px 18px 28px; border-bottom: 1px solid var(--color-border); }
.dialog__title { font-size: 20px; font-weight: var(--font-weight-medium); letter-spacing: -0.01em; }
.dialog__body { flex: 1; min-height: 0; padding: 24px 28px 28px; overflow: auto; overscroll-behavior: contain; }
@media (max-width: 560px) { .dialog { width: 100vw; max-height: 92dvh; margin: auto 0 0; border-radius: var(--radius-card) var(--radius-card) 0 0; } .dialog__head { padding-left: 20px; } .dialog__body { padding: 20px 20px max(24px, env(safe-area-inset-bottom)); } }
html:has(dialog[open]:modal) { overflow: hidden; }

/* drawer (cart, mobile menu) */
.drawer {
  position: fixed; inset: 0 0 0 auto; width: min(var(--drawer-width), 100vw); height: 100dvh; margin: 0;
  display: flex; flex-direction: column; background: #fff; box-shadow: var(--shadow-drawer);
  transform: translateX(100%);
  transition: transform var(--duration-base) var(--ease-out), overlay var(--duration-base) allow-discrete, display var(--duration-base) allow-discrete;
}
.drawer:not([open]) { display: none; }
.drawer[open] { transform: none; }
@starting-style { .drawer[open] { transform: translateX(100%); } }
.drawer--left { inset: 0 auto 0 0; transform: translateX(-100%); box-shadow: 24px 0 64px -32px rgb(0 40 76 / 0.4); }
@starting-style { .drawer--left[open] { transform: translateX(-100%); } }
.drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 68px; padding: 0 12px 0 24px; border-bottom: 1px solid var(--color-border); }
.drawer__title { font-size: 20px; font-weight: var(--font-weight-medium); letter-spacing: -0.01em; }
.drawer__title small { margin-left: 6px; font-size: 14px; font-weight: var(--font-weight-regular); color: var(--color-muted); }
.drawer__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 0 24px; }
.drawer__foot { padding: 20px 24px max(24px, env(safe-area-inset-bottom)); border-top: 1px solid var(--color-border); background: #fff; }

/* mobile menu */
.menu-drawer__list { list-style: none; padding: 8px 0; }
.menu-drawer__list a { display: flex; justify-content: space-between; align-items: center; min-height: 60px; border-bottom: 1px solid var(--color-border); font-size: 20px; font-weight: var(--font-weight-medium); letter-spacing: -0.01em; }
.menu-drawer__list a .icon { width: 18px; height: 18px; color: var(--color-muted); }
.menu-drawer__list button { width: 100%; }
.menu-drawer__tech { margin-top: 24px; }
.menu-drawer__tech .icon { width: 20px; height: 20px; }

/* ---------- quotation list (quote-drawer: list → form → confirmation) ---------- */
.quote-drawer__back { margin-left: -12px; margin-right: -4px; }
.quote-drawer .drawer__head { justify-content: flex-start; }
.quote-drawer .drawer__head [data-close] { margin-left: auto; }
.quote-drawer .drawer__title:focus-visible { outline-offset: 4px; }
.quote-step { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.quote-step:not([hidden]) { display: flex; }
.quote-foot__note { margin-bottom: 14px; font-size: 13px; line-height: 1.5; color: var(--color-foreground-2); }
.quote-foot__demo { margin-top: 10px; font-size: 12px; line-height: 1.5; color: var(--color-muted); text-align: center; }
.quote-form { display: grid; align-content: start; gap: 18px; padding-block: 20px 28px; }
.quote-form__lines { font-size: 14px; font-weight: var(--font-weight-medium); color: var(--color-foreground-2); }
.quote-form__summary { display: flex; gap: 8px; align-items: center; padding: 12px 14px; border-radius: var(--radius-md); background: var(--color-error-tint); color: var(--color-error); font-size: 14px; font-weight: var(--font-weight-semibold); }
.quote-form__summary .icon, .field__error .icon { width: 18px; height: 18px; }
.quote-form__activity .option-pills { gap: 8px; }
.quote-form__activity .field__error { margin-top: 8px; }
.quote-form .check { padding-block: 4px; }
.quote-form .check a { color: var(--color-link); }
.select[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--color-error); }
.option-group.has-error .option-pill span { border-color: var(--color-error); }
.check:has(input[aria-invalid="true"]) input { outline: 2px solid var(--color-error); outline-offset: 2px; }
.quote-done { padding-block: 32px; }
.quote-done__inner { display: grid; gap: 14px; }
.quote-done__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--color-tint); color: var(--color-deep); }
.quote-done__icon .icon { width: 28px; height: 28px; stroke-width: 2; }
.quote-done .h3:focus-visible { outline-offset: 4px; }
.quote-done p { color: var(--color-foreground-2); overflow-wrap: anywhere; }
.quote-done strong { color: var(--color-foreground); font-weight: var(--font-weight-semibold); }
.quote-done__lines { margin: 6px 0 4px; padding: 0; list-style: none; border-top: 1px solid var(--color-border); }
.quote-done__lines li { display: grid; grid-template-columns: 56px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--color-border); font-size: 14px; line-height: 1.45; }
.quote-done__lines b { font-weight: var(--font-weight-medium); }
.quote-done__lines small { display: block; font-size: 13px; color: var(--color-muted); }
.quote-done__qty { font-weight: var(--font-weight-semibold); font-variant-numeric: tabular-nums; }
.quote-done__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.cart-lines { list-style: none; padding: 0; }
.cart-line { display: grid; grid-template-columns: 88px 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--color-border); transition: opacity var(--duration-base); }
.cart-line:last-child { border-bottom: 0; }
.cart-line[aria-busy="true"] { opacity: 0.5; pointer-events: none; }
.cart-line__media { display: block; width: 88px; aspect-ratio: 1; border-radius: var(--radius-md); background: #fff; border: 1px solid var(--color-border); overflow: hidden; }
.cart-line__media img { width: 100%; height: 100%; object-fit: contain; padding: 10%; }
.cart-line__title { font-size: 15px; font-weight: var(--font-weight-medium); line-height: 1.35; }
.cart-line__title a:hover { color: var(--color-link); }
.cart-line__meta { margin-top: 2px; font-size: 13px; color: var(--color-muted); }
.cart-line__media picture { display: contents; }
.cart-line__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.cart-line__remove { padding: 0 4px; font-size: 13px; color: var(--color-foreground-2); text-decoration: underline; text-underline-offset: 3px; min-height: var(--touch-target); }
.cart-line__remove:hover { color: var(--color-error); }
.cart-empty { display: grid; justify-items: center; align-content: center; gap: 16px; min-height: 100%; padding: 48px 8px; text-align: center; }
.cart-empty__icon { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--color-surface); color: var(--color-muted); }
.cart-empty__icon .icon { width: 30px; height: 30px; }
.cart-empty p { color: var(--color-muted); max-width: 30ch; }
.cart-empty__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 8px; }

/* tech panel (dialog «Parla con un tecnico») */
.tech-panel { width: min(640px, calc(100vw - 32px)); }
.tech-panel__intro { color: var(--color-foreground-2); max-width: 52ch; }
.tech-panel__context { margin-top: 14px; padding: 10px 14px; border-radius: var(--radius-md); background: var(--color-tint); color: var(--color-deep); font-size: 14px; font-weight: var(--font-weight-semibold); line-height: 1.45; overflow-wrap: anywhere; }
.tech-panel__contacts { margin-top: 20px; }
.tech-panel__links { display: flex; flex-wrap: wrap; gap: 4px 28px; margin: 22px 0 0; padding: 18px 0 0; list-style: none; border-top: 1px solid var(--color-border); }
.tech-panel__links .link { min-height: var(--touch-target); }
.distributors.distributors--tech { --logo-h: 34px; }
.distributor--tech { display: flex; flex-direction: column; gap: 14px; padding: 20px; border: 1px solid var(--color-border); border-radius: var(--radius-tile); background: #fff; }
.distributor__actions { display: grid; gap: 6px; justify-items: start; margin-top: auto; }
.distributor__call { padding: 0 16px; font-variant-numeric: tabular-nums; }
.distributor__call .icon, .distributor__mail .icon, .distributor__wa .icon { width: 16px; height: 16px; }
.distributor__mail, .distributor__wa { display: inline-flex; align-items: center; gap: 8px; min-height: var(--touch-target); font-size: 14px; color: var(--color-link); overflow-wrap: anywhere; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; transition: text-decoration-color var(--duration-fast); }
.distributor__mail:hover, .distributor__wa:hover { text-decoration-color: currentColor; }
@media (max-width: 480px) { .distributors.distributors--tech { grid-template-columns: minmax(0, 1fr); gap: 10px; } }
.dialog__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; margin-top: 24px; }

/* quick add */
.quick-add__grid { display: grid; grid-template-columns: 160px 1fr; gap: 24px; }
.quick-add__media { aspect-ratio: 1; border-radius: var(--radius-tile); background: #fff; border: 1px solid var(--color-border); overflow: hidden; }
.quick-add__media img { width: 100%; height: 100%; object-fit: contain; padding: 10%; }
.quick-add__form { display: grid; gap: 20px; }
.quick-add__foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.quick-add__foot .button { flex: 1; }
.quick-add__media picture { display: contents; }
.quick-add__data { font-size: 15px; font-weight: var(--font-weight-medium); color: var(--color-deep); }
.quick-add__code { min-height: 1.5em; font-size: 14px; color: var(--color-foreground-2); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
@media (max-width: 560px) { .quick-add__grid { grid-template-columns: 88px 1fr; gap: 16px; } .quick-add__form { display: contents; } .quick-add__form > :first-child { align-self: center; } .quick-add__form > :not(:first-child) { grid-column: 1 / -1; } }

/* ---------- predictive search overlay ---------- */
.search-overlay {
  position: fixed; inset: 0 0 auto 0; width: 100%; margin: 0; background: #fff; box-shadow: var(--shadow-lg); border-radius: 0 0 var(--radius-card) var(--radius-card);
  max-height: 100dvh; display: flex; flex-direction: column;
  transform: translateY(-16px); opacity: 0;
  transition: transform var(--duration-base) var(--ease-out), opacity var(--duration-base), overlay var(--duration-base) allow-discrete, display var(--duration-base) allow-discrete;
}
.search-overlay:not([open]) { display: none; }
.search-overlay[open] { transform: none; opacity: 1; }
@starting-style { .search-overlay[open] { transform: translateY(-16px); opacity: 0; } }
.search-overlay__bar { display: flex; align-items: center; gap: 12px; padding-block: 16px; }
.search-overlay__bar .search-field { flex: 1; min-height: 56px; font-size: 18px; }
.search-overlay__results { overflow-y: auto; overscroll-behavior: contain; padding-bottom: 28px; min-height: 120px; }
.search-group + .search-group { margin-top: 24px; }
.search-group__title { margin-bottom: 8px; font-size: 12px; font-weight: var(--font-weight-semibold); letter-spacing: var(--letter-spacing-caps); text-transform: uppercase; color: var(--color-muted); }
.search-results { list-style: none; padding: 0; display: grid; gap: 2px; }
.search-result { display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 16px; padding: 8px 12px 8px 8px; border-radius: var(--radius-md); cursor: pointer; transition: background-color var(--duration-fast); }
.search-result:hover, .search-result[aria-selected="true"] { background: var(--color-surface); }
.search-result[aria-selected="true"] { box-shadow: inset 0 0 0 1.5px var(--color-primary); }
.search-result__media { width: 56px; height: 56px; border-radius: var(--radius-sm); background: #fff; border: 1px solid var(--color-border); overflow: hidden; }
.search-result__media img { width: 100%; height: 100%; object-fit: contain; padding: 8%; }
.search-result__title { font-size: 15px; font-weight: var(--font-weight-medium); line-height: 1.3; }
.search-result__title mark { background: none; color: inherit; font-weight: var(--font-weight-semibold); text-decoration: underline; text-decoration-color: var(--color-primary); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.search-result__meta { display: flex; gap: 10px; align-items: center; margin-top: 2px; font-size: 13px; color: var(--color-muted); }
.search-result__media picture { display: contents; }
.search-result__go { color: var(--color-muted); }
.search-result--collection { grid-template-columns: 56px 1fr auto; }
.search-result--collection .search-result__media { display: grid; place-items: center; color: var(--color-deep); background: var(--color-tint); border-color: transparent; }
.search-state { padding: 20px 4px; color: var(--color-muted); font-size: 15px; }
.search-state strong { color: var(--color-foreground); font-weight: var(--font-weight-semibold); }
.search-hints { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.search-overlay__kbd { display: flex; gap: 16px; margin-top: 20px; font-size: 12px; color: var(--color-muted); }
kbd { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border: 1px solid var(--color-border-strong); border-bottom-width: 2px; border-radius: 5px; font: var(--font-weight-semibold) 11px/1 var(--font-body--family); color: var(--color-foreground-2); background: #fff; }
@media (max-width: 768px) { .search-overlay { border-radius: 0; height: 100dvh; } .search-overlay__kbd { display: none; } .search-result { grid-template-columns: 48px 1fr auto; } .search-result__media { width: 48px; height: 48px; } }

/* ---------- accordion (<details>) ---------- */
.accordion { border-top: 1px solid var(--color-border); }
.accordion details { border-bottom: 1px solid var(--color-border); }
.accordion summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 12px 0; cursor: pointer; list-style: none; font-size: 17px; font-weight: var(--font-weight-medium); }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary .icon { transition: transform var(--duration-base) var(--ease-out); }
.accordion details[open] summary .icon { transform: rotate(45deg); }
.accordion summary:hover { color: var(--color-link); }
.accordion__content { padding: 0 0 24px; color: var(--color-foreground-2); max-width: var(--page-width-text); }
.accordion details::details-content { block-size: 0; overflow: clip; transition: block-size var(--duration-base) var(--ease-out), content-visibility var(--duration-base) allow-discrete; }
.accordion details[open]::details-content { block-size: auto; }
@supports (interpolate-size: allow-keywords) { :root { interpolate-size: allow-keywords; } }

/* ---------- tabs ---------- */
.tabs__list { display: inline-flex; gap: 4px; padding: 5px; background: var(--color-surface); border-radius: var(--radius-pill); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.tabs__tab { min-height: var(--touch-target); padding: 0 22px; border-radius: var(--radius-pill); font-size: 15px; font-weight: var(--font-weight-medium); color: var(--color-foreground-2); white-space: nowrap; transition: background-color var(--duration-base), color var(--duration-base); }
.tabs__tab:hover { background: #fff; color: var(--color-foreground); }
.tabs__tab[aria-selected="true"] { background: var(--color-deep); color: #fff; }
.tabs__panel { padding-top: 28px; }
.tabs__panel:not([hidden]) { animation: fade-up var(--duration-slow) var(--ease-out); }
@keyframes fade-up { from { opacity: 0; transform: translateY(8px); } }

/* ---------- toasts ---------- */
.toasts { position: fixed; z-index: var(--z-toast); left: 50%; bottom: calc(24px + var(--toast-offset, 0px)); transform: translateX(-50%); display: grid; gap: 8px; width: min(440px, calc(100vw - 32px)); pointer-events: none; }
.toast { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: var(--radius-md); background: var(--color-deep); color: #fff; font-size: 14px; line-height: 1.45; box-shadow: var(--shadow-lg); pointer-events: auto; animation: toast-in var(--duration-base) var(--ease-out); }
.toast--error { background: #fff; color: var(--color-foreground); box-shadow: inset 0 0 0 1px var(--color-border), var(--shadow-lg); }
.toast--error .icon { color: var(--color-error); }
.toast .icon { width: 20px; height: 20px; margin-top: 1px; }
.toast p { flex: 1; }
.toast__action { flex: none; align-self: center; min-height: 36px; margin: -6px -4px -6px 4px; padding: 0 14px; border-radius: var(--radius-pill); background: #fff; color: var(--color-deep); font-size: 13px; font-weight: var(--font-weight-semibold); white-space: nowrap; transition: background-color var(--duration-fast); }
.toast__action:hover { background: var(--color-gradient-start); }
.toast__action:focus-visible { outline-color: #fff; }
.toast.is-leaving { opacity: 0; transform: translateY(8px); transition: opacity var(--duration-base), transform var(--duration-base); }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } }

/* ---------- skeletons ---------- */
.skeleton { display: block; border-radius: var(--radius-sm); background: linear-gradient(90deg, var(--color-surface) 0%, var(--color-border) 50%, var(--color-surface) 100%) 0 0 / 200% 100%; animation: shimmer 1.4s linear infinite; }
.skeleton--text { height: 14px; }
.skeleton--title { height: 20px; width: 70%; }
.skeleton--media { aspect-ratio: 1; border-radius: var(--radius-md); }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- distributor contact blocks (theme.js distributorsHTML) ----------
   Always two, side by side and identical in structure: neither distributor leads.
   Logos: fixed-height box, image sized by HEIGHT only (width auto + object-fit: contain) → never stretched.
   Equal optical weight: Picchio's dense wordmark runs at 90% of FEMA's height (same ratio as the header). */
.distributors { --logo-h: 38px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.distributor { min-width: 0; }
.distributor__mark { display: flex; align-items: flex-end; height: var(--logo-h); }
.distributor__logo { display: block; width: auto; height: var(--logo-h); max-width: 100%; object-fit: contain; object-position: left bottom; }
.distributor__logo--picchio-luce-gas { height: calc(var(--logo-h) * 0.9); }
.distributor__tel { display: inline-block; font-weight: var(--font-weight-medium); line-height: 1.2; letter-spacing: -0.01em; color: var(--color-deep); font-variant-numeric: tabular-nums; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; transition: text-decoration-color var(--duration-fast); }
.distributor__links { display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: 14px; }
.distributor__links a { display: inline-flex; align-items: center; gap: 4px; color: var(--color-link); text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; transition: text-decoration-color var(--duration-fast); overflow-wrap: anywhere; }
.distributor__links a:hover, .distributor__tel:hover { text-decoration-color: currentColor; }
.distributor__ext { width: 14px; height: 14px; transform: rotate(-45deg); }
.distributor__name { font-weight: var(--font-weight-semibold); line-height: 1.35; color: var(--color-foreground); }
.distributor__name small { display: block; font-size: 13px; font-weight: var(--font-weight-regular); color: var(--color-muted); }
/* compact contact card (homes, product, collection CTA, mobile menu) */
.distributor--card { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: 20px; border: 1px solid var(--color-border); border-radius: var(--radius-tile); background: #fff; }
.distributor--card .distributor__body { align-self: stretch; }
.distributor--card .distributor__tel { margin-top: 8px; font-size: 18px; }
.distributor--card .distributor__links { flex-direction: column; margin-top: 4px; }
@media (max-width: 480px) {
  .distributors--card { --logo-h: 32px; grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .distributor--card { flex-direction: row; align-items: center; gap: 16px; padding: 14px 16px; }
  .distributor--card .distributor__mark { flex: none; width: 64px; }
  .distributor--card .distributor__tel { font-size: 16px; }
}

/* ---------- footer (section: footer) ----------
   1 · Distributor band: the two official distributors as identical white cards on the light surface.
   2 · Production footer layout: company block (site holder) + four link columns on a 12-column grid, a hairline,
   then the small legal row. Light surface throughout, so page CSS bottom padding (sticky buy bar) stays seamless. */
.footer { font-size: 14px; background: var(--color-surface); }
.footer__top { padding: clamp(64px, 7vw, 112px) 0 clamp(56px, 6vw, 96px); }
.footer__top-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 40px clamp(40px, 5vw, 96px); align-items: start; }
.footer__title { margin-top: 32px; max-width: 13ch; font-size: clamp(28px, 2.6vw, 40px); font-weight: var(--font-weight-medium); line-height: 1.12; letter-spacing: -0.02em; color: var(--color-deep); text-wrap: balance; }
.footer__lead { margin-top: 18px; max-width: 42ch; font-size: 15px; line-height: 1.6; color: var(--color-foreground-2); text-wrap: pretty; }
.distributors--footer { --logo-h: 56px; gap: 16px; }
.footer__lead a { color: var(--color-link); }
.footer__private { margin-top: 16px; font-size: 13px; line-height: 1.5; color: var(--color-foreground-2); }
.distributor--footer { display: flex; flex-direction: column; padding: clamp(28px, 2.8vw, 40px); border-radius: var(--radius-card); background: #fff; box-shadow: inset 0 0 0 1px var(--color-border); }
.distributor--footer .distributor__name { margin-top: 32px; font-size: 17px; }
.distributor__addr { margin-top: 6px; font-style: normal; line-height: 1.6; color: var(--color-foreground-2); }
.distributor__ids { margin: 14px 0 28px; padding: 0; list-style: none; font-size: 13px; line-height: 1.75; color: var(--color-muted); font-variant-numeric: tabular-nums; }
.distributor__contact { margin-top: auto; padding-top: 22px; border-top: 1px solid var(--color-border); } /* bottom-aligned in both cards */
.distributor--footer .distributor__tel { font-size: 22px; }
.distributor--footer .distributor__links { margin-top: 10px; }

.footer__main { padding: 72px 0 max(96px, env(safe-area-inset-bottom)); border-top: 1px solid var(--color-border); }
.footer__brand { grid-column: 1 / 5; }
.footer__brand img { display: block; width: auto; height: 52px; } /* FEMA logo 551 × 343, real ratio */
.footer__brand address { margin-top: 24px; font-style: normal; line-height: 1.7; color: var(--color-foreground-2); }
.footer__brand strong { display: block; font-weight: var(--font-weight-semibold); }
.footer__brand address a { color: inherit; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; transition: text-decoration-color var(--duration-fast); }
.footer__tel { display: inline-block; margin-top: 14px; font-size: 22px; font-weight: var(--font-weight-medium); line-height: 1.2; color: var(--color-deep); font-variant-numeric: tabular-nums; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; transition: text-decoration-color var(--duration-fast); }
.footer__col { grid-column: span 2; }
.footer__col:first-of-type { grid-column: 5 / 7; }
.footer__col h2 { margin-bottom: 14px; font-size: 13px; line-height: 1.3; font-weight: var(--font-weight-semibold); letter-spacing: var(--letter-spacing-caps); text-transform: uppercase; color: var(--color-foreground); }
.footer__col ul { padding: 0; list-style: none; }
.footer__col a { display: inline-block; padding: 6px 0; color: var(--color-foreground-2); text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; transition: color var(--duration-fast), text-decoration-color var(--duration-fast); }
.footer__col a:hover { color: var(--color-link); text-decoration-color: currentColor; }
.footer__brand address a:hover, .footer__tel:hover, .footer__legal a:hover { text-decoration-color: currentColor; }
.footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; margin-top: 56px; padding-top: 28px; border-top: 1px solid color-mix(in oklch, var(--color-foreground-2) 35%, transparent); color: var(--color-muted); font-size: 12px; line-height: 1.6; }
.footer__legal-links { white-space: nowrap; } /* keep «Privacy · Cookie · Note legali» together */
.footer__legal a { color: inherit; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; transition: text-decoration-color var(--duration-fast); }
@media (max-width: 1100px) {
  .footer__top-grid { grid-template-columns: minmax(0, 1fr); }
  .footer__title { max-width: 20ch; }
  .footer__brand { grid-column: 1 / -1; margin-bottom: 24px; }
  .footer__col, .footer__col:first-of-type { grid-column: span 3; }
}
@media (max-width: 768px) {
  .distributors--footer { --logo-h: 48px; grid-template-columns: minmax(0, 1fr); }
  .footer__main { padding: 56px 0 max(56px, env(safe-area-inset-bottom)); }
  .footer__col, .footer__col:first-of-type { grid-column: span 6; }
  .footer__brand img { height: 48px; }
}

/* ---------- text pages: note legali, privacy, cookie, accessibilità (Shopify: page.liquid) ---------- */
.page-text { padding-block: clamp(48px, 7vw, 96px) var(--space-section); }
.page-text .h1 { margin: 12px 0 16px; }
.page-text .rte h2 { margin-top: 2.2em; font-size: var(--font-size-h3); line-height: 1.25; letter-spacing: -0.01em; font-weight: var(--font-weight-medium); }
.facts { display: grid; grid-template-columns: minmax(0, 15em) minmax(0, 1fr); border-top: 1px solid var(--color-border); }
.facts dt, .facts dd { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--color-border); }
.facts dt { padding-right: 20px; color: var(--color-foreground-2); }
.facts dd { font-weight: var(--font-weight-medium); overflow-wrap: anywhere; }
@media (max-width: 560px) { .facts { grid-template-columns: minmax(0, 1fr); } .facts dt { padding-bottom: 0; border-bottom: 0; } .facts dd { padding-top: 2px; } }

/* ---------- not found: 404.html and the product page without a product ---------- */
.pd-404 { padding-block: clamp(64px, 10vw, 140px); max-width: calc(760px + 2 * var(--gutter)); }
.pd-404 .h1 { margin: 12px 0 16px; }
.pd-404__links { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 36px; list-style: none; padding: 0; }

/* touch screens: 44 px targets (WCAG 2.5.5) for compact buttons and footer links */
@media (pointer: coarse) {
  .button--sm { min-height: var(--touch-target); }
  .footer__col a { padding-block: 10px; }
}

/* ---------- motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(24px); transition: opacity var(--duration-reveal) var(--ease-out), transform var(--duration-reveal) var(--ease-out); transition-delay: calc(var(--i, 0) * 90ms); }
  .js .reveal.is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  /* no movement; short crossfades stay (opacity/colour ≤ 200 ms) so carousels and tabs still change smoothly */
  *, *::before, *::after { transition-property: opacity, visibility, color, background-color, border-color, box-shadow !important; transition-duration: 0.2s !important; transition-delay: 0s !important; animation-duration: 1ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}
