/* Carimali Italia — shared tokens, type, header, footer, buttons, forms. Page styles live inline in each page. */

@font-face { font-family: "Brother 1816"; src: url("/brand_assets/fonts/brother-1816-300.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Brother 1816"; src: url("/brand_assets/fonts/brother-1816-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Brother 1816"; src: url("/brand_assets/fonts/brother-1816-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Brother 1816"; src: url("/brand_assets/fonts/brother-1816-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --c-navy: #013851; --c-navy-deep: #01293B; --c-ink: #172630; --c-ink-2: #4B5B66;
  --c-teal: #6EAFB4; --c-teal-ink: #2B7079; --c-sage: #3F6E5A; --c-steel: #BDBCBC;
  --c-line: #D7DEE2; --c-mist: #EEF2F4; --c-paper: #F7F9FA; --c-white: #FFFFFF;
  --c-focus: #2B7079;
  --c-control: #788893;  /* edge of fields, selects and chips: 3:1 or more on white, paper and mist */
  --c-ring: var(--c-focus);  /* keyboard focus ring; dark sections switch it to the light teal */

  --font: "Brother 1816", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-display: clamp(2.5rem, 1.9rem + 2.6vw, 4rem);
  --fs-h1: clamp(2.125rem, 1.7rem + 1.6vw, 3rem);
  --fs-h2: clamp(1.75rem, 1.45rem + 1.1vw, 2.25rem);
  --fs-h3: 1.375rem;
  --fs-lead: 1.25rem;
  --fs-body: 1.0625rem;
  --fs-small: 1rem;
  --fs-micro: 0.875rem;
  --measure: 52ch;  /* running text: about 70 characters a line, 74 on a full one */

  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;
  --r-s: 6px; --r-m: 12px; --r-l: 20px;
  --sh-1: 0 1px 2px rgba(1,56,81,.06), 0 2px 8px rgba(1,56,81,.06);
  --sh-2: 0 2px 4px rgba(1,56,81,.06), 0 12px 32px rgba(1,56,81,.10);
  --sh-3: 0 4px 8px rgba(1,56,81,.08), 0 24px 64px rgba(1,56,81,.16);
  --ease: cubic-bezier(.2,.8,.2,1); --t-fast: 160ms; --t: 240ms;
  --container: 1200px; --gutter: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition-duration: 0ms !important; } }
body { margin: 0; font-family: var(--font); font-size: var(--fs-body); line-height: 1.6; color: var(--c-ink); background: var(--c-white); -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--c-teal-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--c-navy); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid var(--c-ring); outline-offset: 2px; border-radius: var(--r-s); }
p { margin: 0 0 var(--s-4); max-width: var(--measure); }
ul, ol { padding-left: 1.2em; }
h1, h2, h3, h4 { margin: 0 0 var(--s-4); color: var(--c-navy); font-weight: 700; line-height: 1.12; letter-spacing: -0.015em; text-wrap: balance; }
h1 { font-size: var(--fs-h1); letter-spacing: -0.02em; line-height: 1.06; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: 1.125rem; font-weight: 500; line-height: 1.25; letter-spacing: 0; }  /* sub-heading; card titles are 1.25rem bold (.tile, .door, .get__col, .pack…) */
.display { font-size: var(--fs-display); line-height: 1.04; letter-spacing: -0.02em; }
.lead { font-size: var(--fs-lead); line-height: 1.5; color: var(--c-ink); max-width: var(--measure); }
.small { font-size: var(--fs-small); }
.muted { color: var(--c-ink-2); }
.kicker { display: block; font-size: var(--fs-small); font-weight: 500; color: var(--c-teal-ink); margin-bottom: var(--s-2); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
@media (max-width: 640px) { :root { --gutter: 16px; } }
.section { padding-block: var(--s-9); }
.section--tight { padding-block: var(--s-8); }
.section--paper { background: var(--c-paper); }
.section--navy { background: linear-gradient(160deg, var(--c-navy) 0%, var(--c-navy-deep) 100%); color: var(--c-white); }
.section--navy h2, .section--navy h3 { color: var(--c-white); }
.section--navy p, .section--navy li { color: rgba(255,255,255,.88); }
.section--navy a { color: var(--c-white); }
.section--navy .btn--light, .section--navy .btn--light:hover { color: var(--c-navy); }
.section-head { max-width: 56ch; margin-bottom: var(--s-7); }
.section-head p { margin-bottom: 0; }
@media (max-width: 640px) { .section { padding-block: var(--s-8); } .section--tight { padding-block: var(--s-7); } .section-head { margin-bottom: var(--s-6); } }

/* Buttons — hover/focus/active on every control, ≥44px targets */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2); white-space: nowrap; min-height: 48px; padding: 0 var(--s-5); border-radius: var(--r-s); border: 1.5px solid transparent; font: inherit; font-weight: 500; font-size: var(--fs-body); line-height: 1; text-decoration: none; cursor: pointer; transition: transform var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn--primary { background: var(--c-navy); color: var(--c-white); box-shadow: var(--sh-1); }
.btn--primary:hover { background: var(--c-navy-deep); color: var(--c-white); box-shadow: var(--sh-2); }
.btn--secondary { background: var(--c-white); color: var(--c-navy); border-color: var(--c-navy); }
.btn--secondary:hover { background: var(--c-mist); color: var(--c-navy); }
.btn--ghost { background: transparent; color: var(--c-navy); border-color: var(--c-line); }
.btn--ghost:hover { border-color: var(--c-navy); background: var(--c-paper); }
.btn--light { background: var(--c-white); color: var(--c-navy); }
.btn--light:hover { background: var(--c-mist); color: var(--c-navy); }
.btn--outline-light { background: transparent; color: var(--c-white); border-color: rgba(255,255,255,.6); }
.btn--outline-light:hover { border-color: var(--c-white); background: rgba(255,255,255,.08); color: var(--c-white); }
.btn--small { min-height: 40px; padding-inline: var(--s-4); font-size: var(--fs-small); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); }

/* Chips (state, not decoration) */
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 2px 10px; border-radius: 999px; font-size: var(--fs-micro); font-weight: 500; line-height: 1.2; background: var(--c-mist); color: var(--c-navy); }
.chip--stock { background: #E6F0EB; color: var(--c-sage); }
.chip--stock::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.chip--new { background: var(--c-navy); color: var(--c-white); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--c-white); border-bottom: 1px solid var(--c-line); }
.site-header__row { display: flex; align-items: center; gap: var(--s-5); min-height: 72px; }
.lockup { display: inline-flex; flex: none; flex-direction: column; align-items: flex-start; gap: 3px; text-decoration: none; color: var(--c-navy); }
.lockup__row { display: inline-flex; align-items: center; gap: var(--s-3); }
/* the line under the logo spans the logo row exactly ("CARIMALI | Italia"): its size gives it that width within a pixel, and the
   justification closes the rest, so both edges line up (owner, 20 Nov 2026) */
.lockup__tag { align-self: stretch; font-size: var(--fs-small); font-weight: 500; color: var(--c-ink-2); letter-spacing: .005em; line-height: 1; text-align: justify; text-align-last: justify; }
.lockup img { height: 26px; width: auto; }
.lockup__sub { font-size: 1.0625rem; font-weight: 500; letter-spacing: .01em; padding-left: var(--s-3); border-left: 1.5px solid var(--c-line); line-height: 1; color: var(--c-navy); }
.site-nav { flex: 1 1 auto; min-width: 0; margin-left: var(--s-2); }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--s-1); }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; border-radius: var(--r-s); color: var(--c-ink); font-weight: 500; font-size: var(--fs-small); white-space: nowrap; text-decoration: none; transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease); }
.site-nav a:hover { background: var(--c-mist); color: var(--c-navy); }
.site-nav a[aria-current="page"] { color: var(--c-navy); box-shadow: inset 0 -2px 0 var(--c-navy); border-radius: 0; }
.site-header__cta { flex: none; margin-left: auto; display: flex; flex-direction: column; align-items: stretch; gap: 6px; padding-block: 8px; }
.site-header__cta .btn { order: 1; }
.site-header__cta .site-header__phone { order: 2; }
.site-header__phone { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 var(--s-4); border: 1.5px solid var(--c-sage); border-radius: var(--r-s); color: var(--c-sage); font-weight: 700; font-size: var(--fs-small); text-decoration: none; white-space: nowrap; transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease); }
.site-header__phone:active { transform: translateY(1px); }
.site-header__phone::before { content: ""; width: 14px; height: 14px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25c1.1.37 2.3.57 3.6.57a1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.57a1 1 0 0 1-.25 1L6.6 10.8z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25c1.1.37 2.3.57 3.6.57a1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.57a1 1 0 0 1-.25 1L6.6 10.8z'/%3E%3C/svg%3E") center / contain no-repeat; }
.site-header__phone:hover { background: var(--c-sage); color: var(--c-white); border-color: var(--c-sage); text-decoration: none; }
.site-header__row { min-height: 102px; }
.menu-btn { display: none; margin-left: auto; min-width: 44px; min-height: 44px; border: 1.5px solid var(--c-line); background: var(--c-white); border-radius: var(--r-s); color: var(--c-navy); font: inherit; font-weight: 500; font-size: var(--fs-small); padding: 0 12px; cursor: pointer; }
.menu-btn:hover { border-color: var(--c-navy); }
@media (max-width: 1023px) {
  .site-nav, .site-header__cta { display: none; }
  .menu-btn { display: inline-flex; align-items: center; gap: 8px; }
  .site-header.is-open .site-nav { display: block; position: absolute; left: 0; right: 0; top: 100%; background: var(--c-white); border-bottom: 1px solid var(--c-line); box-shadow: var(--sh-3); margin: 0; padding: var(--s-3) var(--gutter) var(--s-5); }
  .site-header.is-open .site-nav ul { flex-direction: column; gap: 0; }
  .site-header.is-open .site-nav a { min-height: 48px; font-size: var(--fs-body); }
  .site-header.is-open .site-nav a[aria-current="page"] { box-shadow: none; background: var(--c-mist); border-radius: var(--r-s); }
  .site-header.is-open .site-nav .nav-extra { display: flex; flex-direction: column; gap: var(--s-3); margin-top: var(--s-4); padding-top: var(--s-4); border-top: 1px solid var(--c-line); }
}
.nav-extra { display: none; }

/* Footer */
.site-footer { background: var(--c-navy-deep); color: rgba(255,255,255,.86); padding-block: var(--s-8) var(--s-6); font-size: var(--fs-small); }
.site-footer a { color: var(--c-white); }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--s-6); }
.site-footer__h { color: var(--c-white); font-size: var(--fs-body); font-weight: 500; line-height: 1.4; letter-spacing: 0; margin: 0 0 var(--s-3); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: var(--s-2); }
.site-footer p { max-width: 42ch; }
.site-footer__brands { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-5) var(--s-6); margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid rgba(255,255,255,.16); }
.site-footer__brands img { height: 22px; width: auto; max-width: 150px; object-fit: contain; opacity: .9; }
.site-footer__brands img.wide { height: 16px; max-width: 170px; }
.site-footer__brands img.tall { height: 26px; }
.site-footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-3); margin-top: var(--s-5); font-size: var(--fs-micro); color: rgba(255,255,255,.7); }
.site-footer__legal a { color: rgba(255,255,255,.8); }
.site-footer__links { display: flex; flex-wrap: wrap; gap: var(--s-4); }
@media (max-width: 900px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* Forms */
.form { display: grid; gap: var(--s-5); }
.form__row { display: grid; gap: var(--s-5) var(--s-4); grid-template-columns: 1fr 1fr; align-items: start; }
@media (max-width: 640px) { .form__row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; align-content: start; }
.field[hidden] { display: none; }
.field label { font-weight: 500; font-size: var(--fs-small); color: var(--c-ink); }
.field .hint { font-size: var(--fs-micro); color: var(--c-ink-2); }
.field input, .field select, .field textarea { font: inherit; font-size: var(--fs-body); color: var(--c-ink); height: 48px; padding: 0 14px; border: 1.5px solid var(--c-control); border-radius: var(--r-s); background: var(--c-white); width: 100%; transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease); }
.field textarea { height: auto; min-height: 128px; padding: 12px 14px; resize: vertical; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 42px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 6l4.5 4.5L12.5 6' fill='none' stroke='%23013851' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.field input[type="file"] { padding: 9px 12px; line-height: 1.6; cursor: pointer; }
.field input[type="file"]::file-selector-button { font: inherit; font-size: var(--fs-small); font-weight: 500; color: var(--c-navy); background: var(--c-mist); border: 0; border-radius: var(--r-s); padding: 4px 10px; margin-right: 10px; cursor: pointer; }
.field input[type="date"] { padding-right: 10px; }
.field .hint { margin-top: -2px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--c-ink-2); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--c-navy); box-shadow: 0 0 0 3px rgba(1,56,81,.12); outline: none; }
.field--check { display: flex; align-items: flex-start; gap: var(--s-3); }
.field--check input { width: 20px; height: 20px; min-height: 0; padding: 0; margin-top: 3px; accent-color: var(--c-navy); }
.field--check label { font-weight: 400; }
.form__note { font-size: var(--fs-micro); color: var(--c-ink-2); max-width: 60ch; }
.seg { display: inline-flex; flex-wrap: wrap; gap: var(--s-2); }
.seg a, .seg button { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s-4); border-radius: 999px; border: 1.5px solid var(--c-control); background: var(--c-white); color: var(--c-ink); font: inherit; font-size: var(--fs-small); font-weight: 500; text-decoration: none; cursor: pointer; transition: background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease); }
.seg a:hover, .seg button:hover { border-color: var(--c-navy); color: var(--c-navy); }
.seg a[aria-current="true"], .seg button[aria-pressed="true"] { background: var(--c-navy); border-color: var(--c-navy); color: var(--c-white); }

/* Product panel: cut-out on mist with one soft shadow (Website 2 Studio look) */
.panel { position: relative; background: var(--c-mist); border-radius: var(--r-m); overflow: hidden; }
.panel--photo img { width: 100%; height: 100%; object-fit: cover; }
.cutout { display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 18px 24px rgba(1,56,81,.18)); }

/* Machine card */
.card-machine { display: flex; flex-direction: column; background: var(--c-white); border: 1px solid var(--c-line); border-radius: var(--r-m); overflow: hidden; text-decoration: none; color: inherit; transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), border-color var(--t) var(--ease); }
.card-machine:hover { transform: translateY(-3px); box-shadow: var(--sh-2); border-color: transparent; color: inherit; }
.card-machine:focus-visible { outline-offset: 4px; }
.card-machine__media { position: relative; aspect-ratio: 4 / 3; background: var(--c-mist); overflow: hidden; }
.card-machine__media img { position: absolute; inset: 10%; width: 80%; height: 80%; object-fit: contain; filter: drop-shadow(0 14px 18px rgba(1,56,81,.16)); }
.card-machine__badge { position: absolute; top: 12px; left: 12px; z-index: 1; }
.card-machine__media.is-photo img { inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card-machine__body { flex: 1; padding: var(--s-4) var(--s-5) var(--s-5); display: flex; flex-direction: column; gap: 6px; }
.card-machine__brand { font-size: var(--fs-micro); font-weight: 500; color: var(--c-teal-ink); }
.card-machine__name { font-size: var(--fs-h3); font-weight: 700; color: var(--c-navy); line-height: 1.2; }
.card-machine__line { font-size: var(--fs-small); color: var(--c-ink-2); margin: 0; line-height: 1.45; }
.card-machine__price { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); margin-top: auto; padding-top: var(--s-3); border-top: 1px solid var(--c-line); font-size: var(--fs-small); color: var(--c-ink-2); }
.card-machine__price strong { font-size: var(--fs-body); font-weight: 700; color: var(--c-navy); }
.card-machine__price .grenke-logo { height: 13px; opacity: .7; margin: 0; }
.card-machine__line { margin-bottom: var(--s-2); }
.card-machine__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }

/* Generic grids */
.grid { display: grid; gap: var(--s-5); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1023px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid--4, .grid--3, .grid--2 { grid-template-columns: 1fr; } }

/* Breadcrumb */
.crumbs { font-size: var(--fs-small); color: var(--c-ink-2); margin: var(--s-5) 0 var(--s-4); }
.crumbs a { color: var(--c-ink-2); }
.crumbs a:hover { color: var(--c-navy); }
.crumbs span + span::before { content: "/"; margin: 0 8px; color: var(--c-steel); }

/* Page hero (inner pages) */
.page-hero { padding-block: var(--s-7) var(--s-6); }
.page-hero .lead { margin-top: var(--s-3); }

/* Hairline ledger (lists that are information, not decoration) */
.ledger { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--s-8); }
.ledger li { padding: var(--s-4) 0; border-top: 1px solid var(--c-line); display: grid; align-content: start; gap: 4px; }
.ledger li strong { font-weight: 500; color: var(--c-navy); font-size: var(--fs-body); }
.ledger li span { font-size: var(--fs-small); color: var(--c-ink-2); line-height: 1.5; }
@media (max-width: 800px) { .ledger { grid-template-columns: 1fr; } }

/* Spec table */
.spec { width: 100%; border-collapse: collapse; font-size: var(--fs-small); }
.spec th, .spec td { text-align: left; padding: 10px 0; border-top: 1px solid var(--c-line); vertical-align: top; }
.spec th { font-weight: 500; color: var(--c-ink-2); width: 38%; padding-right: var(--s-4); }
.spec td { color: var(--c-ink); }

/* Notice */
.notice { padding: var(--s-4) var(--s-5); border-radius: var(--r-m); background: var(--c-paper); border: 1px solid var(--c-line); font-size: var(--fs-small); color: var(--c-ink); max-width: calc(var(--measure) + 2 * var(--s-5) + 2px); }  /* the box follows its text, so a note is never half empty */
.notice p { margin: 0; }

/* Entrance: one orchestrated moment on load (hero only), reduced motion → none */
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.rise { animation: rise .6s var(--ease) both; }
.rise--2 { animation-delay: .08s; }
.rise--3 { animation-delay: .16s; }

/* Machine pages (inline-styled clones): keep the spec table left-aligned with the page, and the rate box tidy on phones */
.container.spec-wrap { max-width: var(--container); }
.container.spec-wrap .spec { max-width: 760px; }
@media (max-width: 480px) { .m-hero .m-rate strong { font-size: 1.375rem; } .m-hero .m-rate { padding: var(--s-3) var(--s-4); } }

/* Facts strip: short, sourced facts; no decoration */
.facts-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-5); padding: var(--s-5) 0; border-top: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line); }
.facts-strip div { display: grid; gap: 4px; }
.facts-strip strong { font-size: 1.375rem; font-weight: 700; color: var(--c-navy); line-height: 1.15; letter-spacing: -0.01em; }
.facts-strip span { font-size: var(--fs-small); color: var(--c-ink-2); line-height: 1.4; }
@media (max-width: 900px) { .facts-strip { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .facts-strip { grid-template-columns: 1fr; } }
/* Places band */
.places { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5) var(--s-4); align-items: start; }
.places figure { margin: 0; }
.places .panel { aspect-ratio: 4 / 3; }
.places .panel img { object-position: center 45%; }
.places figcaption { margin-top: var(--s-3); font-size: var(--fs-small); color: var(--c-ink-2); }
.places figcaption strong { display: block; color: var(--c-navy); font-weight: 500; font-size: var(--fs-body); }
@media (max-width: 900px) { .places { grid-template-columns: 1fr 1fr; } .places figure:first-child { grid-column: 1 / -1; } .places figure:first-child .panel { aspect-ratio: 16 / 9; } }
@media (max-width: 560px) { .places { grid-template-columns: 1fr; } }

/* Photographic hero (home) */
.hero2 { position: relative; min-height: 640px; display: flex; align-items: flex-end; background: var(--c-navy-deep); color: var(--c-white); overflow: hidden; }
.hero2__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; }
.hero2__scrim { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(1,41,59,.88) 0%, rgba(1,41,59,.62) 42%, rgba(1,41,59,.12) 100%), linear-gradient(0deg, rgba(1,41,59,.55) 0%, rgba(1,41,59,0) 55%); }
.hero2__content { position: relative; padding-block: var(--s-10) var(--s-8); }
.hero2 h1 { color: var(--c-white); font-size: clamp(2.25rem, 1.5rem + 2.8vw, 3.875rem); line-height: 1.04; max-width: 15ch; margin-bottom: var(--s-4); }
.hero2 p { color: rgba(255,255,255,.92); font-size: var(--fs-lead); line-height: 1.5; max-width: 44ch; margin-bottom: var(--s-6); }
@media (max-width: 800px) { .hero2 { min-height: 560px; } .hero2__media img { object-position: 68% 50%; } .hero2__content { padding-block: var(--s-9) var(--s-7); } .hero2__scrim { background: linear-gradient(0deg, rgba(1,41,59,.92) 0%, rgba(1,41,59,.55) 55%, rgba(1,41,59,.5) 100%); } }
/* Reasons (casa madre) */
.reason { padding: var(--s-5); border-radius: var(--r-m); border-top: 3px solid var(--c-navy); background: var(--c-paper); }
.reason strong { display: block; color: var(--c-navy); font-size: 1.125rem; font-weight: 700; margin-bottom: 6px; line-height: 1.25; }
.reason p { margin: 0; font-size: var(--fs-small); color: var(--c-ink-2); }
/* Callback band (one field) */
.callback { background: var(--c-mist); border-top: 1px solid var(--c-line); }
.callback__row { display: grid; grid-template-columns: 1fr auto; gap: var(--s-6); align-items: center; }
.callback h2 { font-size: 1.5rem; margin-bottom: 4px; }
.callback p { margin: 0; font-size: var(--fs-small); color: var(--c-ink-2); }
.callback__form { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }
.callback__form input { height: 48px; width: 260px; max-width: 100%; padding: 0 14px; border: 1.5px solid var(--c-control); border-radius: var(--r-s); font: inherit; font-size: var(--fs-body); color: var(--c-ink); background: var(--c-white); transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease); }
.callback__form input:hover { border-color: var(--c-ink-2); }
.callback__form input:focus { border-color: var(--c-navy); box-shadow: 0 0 0 3px rgba(1,56,81,.12); outline: none; }
.callback__ok { font-weight: 500; color: var(--c-sage); }
@media (max-width: 800px) { .callback__row { grid-template-columns: 1fr; gap: var(--s-4); } }
/* Compare table */
.compare-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--c-line); border-radius: var(--r-m); }
.compare { width: 100%; min-width: 820px; border-collapse: collapse; table-layout: fixed; font-size: var(--fs-small); background: var(--c-white); }
.compare th, .compare td { padding: 12px 14px; border-top: 1px solid var(--c-line); text-align: left; vertical-align: top; line-height: 1.4; }
.compare thead th { border-top: 0; background: var(--c-paper); color: var(--c-navy); font-weight: 700; font-size: var(--fs-body); }
.compare tbody th, .compare thead th:first-child { font-weight: 500; color: var(--c-ink-2); width: 17%; }
.compare thead th small { display: block; font-size: var(--fs-micro); font-weight: 500; color: var(--c-ink-2); margin-top: 2px; }
.compare td { color: var(--c-ink); }
/* Two-step forms */
.form-steps { display: flex; gap: var(--s-3); margin-bottom: var(--s-5); font-size: var(--fs-small); color: var(--c-ink-2); }
.form-steps span { display: inline-flex; align-items: center; gap: 8px; }
.form-steps span::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--c-line); }
.form-steps span.is-current { color: var(--c-navy); font-weight: 500; }
.form-steps span.is-current::before, .form-steps span.is-done::before { background: var(--c-navy); }
.form-step[hidden] { display: none; }
.form-step { display: grid; gap: var(--s-5); }
.form-step__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }

/* Grenke badge (partner logo instead of the word) */
.grenke-logo { display: inline-block; height: 15px; width: auto; vertical-align: -2px; margin-left: 2px; opacity: .92; }
.m-rate .grenke-logo, .grenke-logo--lg { height: 19px; }
.section--navy .grenke-logo { filter: invert(1) brightness(2); }
/* Hero slideshow */
.hero2--slides .hero2__media { position: absolute; inset: 0; }
.hero2--slides .hero2__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 900ms var(--ease); }
.hero2--slides .hero2__slide.is-active { opacity: 1; }
.hero2--slides .hero2__slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero2__dots { position: absolute; right: calc(var(--gutter) - 12px); bottom: var(--s-4); display: flex; gap: 0; z-index: 2; }
.hero2__dots button { width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; padding: 0; display: grid; place-items: center; }
.hero2__dots button::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.45); transition: transform var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease); }
.hero2__dots button[aria-current="true"]::before { background: var(--c-white); transform: scale(1.25); }
.hero2__dots button:hover::before { background: var(--c-white); }
/* Event strip */
.photo-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); align-items: start; }
.photo-strip .panel { aspect-ratio: 4 / 3; }
.photo-strip figure { margin: 0; }
.photo-strip figcaption { margin-top: var(--s-2); font-size: var(--fs-small); color: var(--c-ink-2); }
@media (max-width: 800px) { .photo-strip { grid-template-columns: 1fr 1fr; } .photo-strip figure:first-child { grid-column: 1 / -1; } }
/* Solution tiles with an image */
.tile__media { margin: calc(-1 * var(--s-5)) calc(-1 * var(--s-5)) var(--s-4); aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--r-m) var(--r-m) 0 0; background: var(--c-mist); }
.tile__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile:has(.tile__media) { border-top: 1px solid var(--c-line); }

/* Range card: closes a machine grid and fills its last row */
.card-range { grid-column: span 2; display: flex; flex-direction: column; justify-content: space-between; gap: var(--s-5); padding: var(--s-6); border-radius: var(--r-m); background: linear-gradient(160deg, var(--c-navy) 0%, var(--c-navy-deep) 100%); color: var(--c-white); }
.card-range h2, .card-range h3 { color: var(--c-white); font-size: 1.25rem; font-weight: 700; margin: 0 0 var(--s-2); }
.card-range p { color: rgba(255,255,255,.86); margin: 0; font-size: var(--fs-small); max-width: 46ch; }
.card-range__brands { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4) var(--s-5); }
.card-range__brands img { height: 18px; width: auto; opacity: .92; }
.card-range__brands img.wide { height: 13px; }
.card-range .btn { align-self: flex-start; }
@media (max-width: 1023px) { .card-range { grid-column: 1 / -1; } }
/* Machine page: highlights next to the spec table */
.detail { display: grid; grid-template-columns: 5fr 7fr; gap: var(--s-8); align-items: start; }
.detail h2 { margin-bottom: var(--s-5); }
.highlights { list-style: none; margin: 0; padding: 0; }
.highlights li { padding: var(--s-4) 0; border-top: 1px solid var(--c-line); }
.highlights li:last-child { border-bottom: 1px solid var(--c-line); }
.highlights strong { display: block; color: var(--c-navy); font-weight: 500; margin-bottom: 4px; }
.highlights span { display: block; font-size: var(--fs-small); color: var(--c-ink-2); line-height: 1.5; }
@media (max-width: 900px) { .detail { grid-template-columns: 1fr; gap: var(--s-7); } }
.get__note { margin: var(--s-6) 0 0; padding-top: var(--s-5); border-top: 1px solid var(--c-line); font-size: var(--fs-small); color: var(--c-ink-2); max-width: var(--measure); }
.get__note a { font-weight: 500; }

/* Solution tiles (home + soluzioni) */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); }
.tile { display: flex; flex-direction: column; gap: 6px; padding: var(--s-5); border-radius: var(--r-m); background: var(--c-white); border: 1px solid var(--c-line); text-decoration: none; color: inherit; overflow: hidden; transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), border-color var(--t) var(--ease); }
.tile:hover { transform: translateY(-3px); box-shadow: var(--sh-2); border-color: transparent; color: inherit; }
.tile h2, .tile h3 { margin: 0; font-size: 1.25rem; font-weight: 700; line-height: 1.25; letter-spacing: 0; color: var(--c-navy); }
.tile p { margin: 0; font-size: var(--fs-small); color: var(--c-ink-2); }
.tile .tile__m { font-size: var(--fs-micro); color: var(--c-ink); margin-top: 4px; }
.tile .tile__go { margin-top: auto; padding-top: var(--s-3); font-weight: 500; font-size: var(--fs-small); color: var(--c-teal-ink); }
@media (max-width: 900px) { .tiles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .tiles { grid-template-columns: 1fr; } }
/* Closing navy band with the one-field callback inside */
.cta-callback { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); margin-top: var(--s-5); padding-top: var(--s-5); border-top: 1px solid rgba(255,255,255,.18); }
.cta-callback label { color: rgba(255,255,255,.86); font-size: var(--fs-small); margin-right: var(--s-2); }
.cta-callback input { height: 48px; width: 240px; max-width: 100%; padding: 0 14px; border: 1.5px solid rgba(255,255,255,.4); border-radius: var(--r-s); background: rgba(255,255,255,.08); color: var(--c-white); font: inherit; font-size: var(--fs-body); }
.cta-callback input::placeholder { color: rgba(255,255,255,.6); }
.cta-callback input:focus { outline: none; border-color: var(--c-white); box-shadow: 0 0 0 3px rgba(255,255,255,.2); }
.cta-callback .callback__ok { color: var(--c-white); }

/* Machine page rate box */
.m-rate { display: grid; gap: 4px; padding: var(--s-4) var(--s-5); border: 1px solid var(--c-line); border-radius: var(--r-m); margin-bottom: var(--s-5); max-width: 480px; background: var(--c-white); }
.m-rate__top { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); font-size: var(--fs-small); color: var(--c-ink-2); }
.m-rate__top .grenke-logo { margin: 0; }
.m-rate__price { margin: 0; font-size: var(--fs-small); color: var(--c-ink-2); }
.m-rate__price strong { font-size: 1.75rem; color: var(--c-navy); line-height: 1.1; margin: 0 2px; }
.m-rate__note { margin: 0; font-size: var(--fs-micro); color: var(--c-ink-2); line-height: 1.45; }

/* Refinement pass 2 */
.ledger--3 { grid-template-columns: repeat(3, 1fr); column-gap: var(--s-6); }
@media (max-width: 1023px) { .ledger--3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .ledger--3 { grid-template-columns: 1fr; } }
.services-title { margin: var(--s-8) 0 var(--s-4); font-size: 1.25rem; font-weight: 700; color: var(--c-navy); }
.grid-note { margin: var(--s-5) 0 0; }
.case-title { margin: 0 0 var(--s-4); font-size: 1.125rem; font-weight: 500; color: var(--c-navy); }
.photo-strip + .packages, .photo-strip { margin-bottom: var(--s-7); }
.form__req { margin: 0; }
.close__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--s-6); align-items: center; }
.close__grid h2 { margin-bottom: var(--s-3); }
.close__grid p { margin: 0; }
.close__grid .btn-row { justify-content: flex-end; }
@media (max-width: 800px) { .close__grid { grid-template-columns: 1fr; } .close__grid .btn-row { justify-content: flex-start; } }

.section--navy.close { background: var(--c-navy); }
.site-footer { border-top: 1px solid rgba(255,255,255,.08); }
.phone-big { display: inline-flex; align-items: center; min-height: 48px; }

/* Phone: home machine grid becomes a swipeable rail */
@media (max-width: 640px) {
  .grid--rail-m { display: flex; gap: var(--s-3); overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(-1 * var(--gutter)); padding: 4px var(--gutter) var(--s-4); scrollbar-width: none; }
  .grid--rail-m::-webkit-scrollbar { display: none; }
  .grid--rail-m > * { flex: 0 0 78%; scroll-snap-align: start; }
  .grid--rail-m > .card-range { flex-basis: 86%; }
  .rail-hint { margin-top: var(--s-2); font-size: var(--fs-micro); color: var(--c-ink-2); }
}
@media (min-width: 641px) { .rail-hint { display: none; } }

/* Equal visual weight in brand rows (lead-brand rule: brands together sit at equal weight) */
.site-footer__brands img.logo-carimali { height: 26px; }
.brands img.logo-carimali { height: 32px; }
.card-range__brands img:first-child { height: 22px; }

/* Callback with GDPR consent */
.callback__form { display: grid; gap: var(--s-2); justify-items: start; }
.callback__fields { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }
.callback__consent { display: flex; align-items: flex-start; gap: 8px; max-width: 420px; font-size: var(--fs-micro); line-height: 1.45; color: var(--c-ink-2); }
.callback__consent input { width: 18px; height: 18px; margin: 1px 0 0; flex: none; accent-color: var(--c-navy); }
.callback__consent a { color: inherit; }
.callback__consent.is-invalid label { color: #9B2C2C; }
.cta-callback { display: grid; gap: var(--s-2); }
.cta-callback .callback__fields label { color: rgba(255,255,255,.86); font-size: var(--fs-small); margin-right: var(--s-2); }
.cta-callback .callback__consent { color: rgba(255,255,255,.78); }
.cta-callback .callback__consent a { color: var(--c-white); }
.cta-callback .callback__consent input { accent-color: var(--c-white); }
.cta-callback .callback__consent.is-invalid label { color: #FFD6D6; }
.callback__form [hidden], .cta-callback [hidden] { display: none !important; }

/* Accessories */
.acc-card { display: flex; flex-direction: column; background: var(--c-white); border: 1px solid var(--c-line); border-radius: var(--r-m); overflow: hidden; }
.acc-card__media { position: relative; aspect-ratio: 1; background: var(--c-mist); }
.acc-card__media img { position: absolute; inset: 12%; width: 76%; height: 76%; object-fit: contain; filter: drop-shadow(0 12px 16px rgba(1,56,81,.14)); }
.acc-card__body { padding: var(--s-4) var(--s-5) var(--s-5); display: flex; flex-direction: column; gap: 6px; flex: 1; }
.acc-card__name { font-size: 1.125rem; font-weight: 700; color: var(--c-navy); line-height: 1.2; }
.acc-card__line { margin: 0; font-size: var(--fs-small); color: var(--c-ink); line-height: 1.5; }
.acc-card__spec { margin: 0; font-size: var(--fs-micro); color: var(--c-ink-2); line-height: 1.5; }
.acc-card__for { margin: auto 0 0; padding-top: var(--s-3); border-top: 1px solid var(--c-line); font-size: var(--fs-micro); color: var(--c-ink); }
.acc-card__for span { color: var(--c-teal-ink); font-weight: 500; margin-right: 4px; }
.acc-card:target { border-color: var(--c-teal); box-shadow: 0 0 0 3px rgba(110,175,180,.35); }
.acc-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-4); margin-bottom: var(--s-5); }
.acc-head h2 { margin: 0; font-size: var(--fs-h3); font-weight: 700; }
.acc-head a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; font-size: var(--fs-small); }
.acc-strip { display: flex; flex-wrap: wrap; gap: var(--s-4); }
.acc-strip > * { flex: 1 1 220px; }
.acc-card--mini { flex-direction: row; align-items: center; text-decoration: none; color: inherit; transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), border-color var(--t) var(--ease); }
.acc-card--mini:hover { transform: translateY(-2px); box-shadow: var(--sh-1); border-color: transparent; color: inherit; }
.acc-card--mini .acc-card__media { flex: 0 0 88px; aspect-ratio: 1; }
.acc-card--mini .acc-card__media img { inset: 10%; width: 80%; height: 80%; }
.acc-card--mini .acc-card__body { padding: var(--s-3) var(--s-4); gap: 2px; }
.acc-card--mini .acc-card__name { font-size: var(--fs-body); }
.acc-card--mini .acc-card__line { font-size: var(--fs-micro); color: var(--c-ink-2); }

/* FAQ (machine pages, accessories, solutions) */
.faq { max-width: 860px; }
.faq h2 { margin-bottom: var(--s-5); }
.faq details { border-top: 1px solid var(--c-line); }
.faq details:last-of-type { border-bottom: 1px solid var(--c-line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); min-height: 56px; padding: var(--s-3) 0; cursor: pointer; list-style: none; font-weight: 500; color: var(--c-navy); font-size: var(--fs-body); line-height: 1.4; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 12px; height: 12px; border-right: 2px solid var(--c-teal-ink); border-bottom: 2px solid var(--c-teal-ink); transform: rotate(45deg) translateY(-3px); transition: transform var(--t-fast) var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq summary:hover { color: var(--c-teal-ink); }
.faq .faq__a { padding: 0 0 var(--s-5); color: var(--c-ink); font-size: var(--fs-small); line-height: 1.65; max-width: var(--measure); }
.faq .faq__a p { margin: 0 0 var(--s-2); }

/* Phone: accessory cards lie flat (photo left, text right) so a group fits a few screens; three-view galleries stay on one row */
@media (max-width: 640px) {
  .acc-card:not(.acc-card--mini) { flex-direction: row; }
  .acc-card:not(.acc-card--mini) .acc-card__media { flex: 0 0 112px; aspect-ratio: auto; min-height: 148px; }
  .acc-card:not(.acc-card--mini) .acc-card__media img { inset: 8%; width: 84%; height: 84%; }
  .acc-card:not(.acc-card--mini) .acc-card__body { padding: var(--s-4); }
}
@media (max-width: 800px) { .gallery.gallery--3 { grid-template-columns: repeat(3, 1fr); gap: var(--s-2); } }

/* Wide tile: one row across the tiles grid, photo left (Soluzioni › Rivenditori) */
.tile--wide { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; padding: 0; }
.tile--wide .tile__media { position: relative; margin: 0; aspect-ratio: auto; min-height: 260px; border-radius: var(--r-m) 0 0 var(--r-m); }
.tile--wide .tile__media img { position: absolute; inset: 0; }
.tile--wide .tile__text { display: flex; flex-direction: column; gap: 6px; padding: var(--s-6); }
@media (max-width: 760px) { .tile--wide { grid-template-columns: 1fr; } .tile--wide .tile__media { aspect-ratio: 16 / 10; min-height: 0; border-radius: var(--r-m) var(--r-m) 0 0; } .tile--wide .tile__text { padding: var(--s-5); } }

/* Catalogue filter bar (Macchine, Accessori) */
/* Filters: a quiet bar, the machines carry the page */
.filterbar { display: grid; gap: var(--s-2); padding-bottom: var(--s-3); margin-bottom: var(--s-5); border-bottom: 1px solid var(--c-line); }
.filterbar__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-2) var(--s-5); }
.filterbar__row--sub { justify-content: flex-start; gap: var(--s-2) var(--s-3); }
.filterbar__row--sub[hidden] { display: none; }
.filterbar__label { font-size: var(--fs-small); color: var(--c-ink-2); }
.filterbar__end { display: flex; align-items: center; gap: var(--s-4); }
.pills { display: flex; flex-wrap: wrap; gap: 4px; }
.pills button, .pills a { min-height: 40px; padding: 0 14px; display: inline-flex; align-items: center; border: 0; border-radius: 999px; background: transparent; font: inherit; font-size: var(--fs-small); color: var(--c-ink-2); text-decoration: none; cursor: pointer; transition: background-color var(--t) var(--ease), color var(--t) var(--ease); }
.pills button:hover, .pills a:hover { color: var(--c-navy); background: var(--c-paper); }
.pills button[aria-pressed="true"], .pills a[aria-current="page"] { background: var(--c-mist); color: var(--c-navy); font-weight: 500; }
.pills .pills__sep { position: relative; margin-left: 13px; }
.pills .pills__sep::before { content: ""; position: absolute; left: -9px; top: 10px; bottom: 10px; width: 1px; background: var(--c-line); }
.pills button:focus-visible, .pills a:focus-visible, .filterbar select:focus-visible { outline: 2px solid var(--c-navy); outline-offset: 2px; }
.filterbar__select { display: flex; align-items: center; gap: var(--s-2); font-size: var(--fs-small); color: var(--c-ink-2); }
.filterbar select { appearance: none; -webkit-appearance: none; height: 44px; padding: 0 40px 0 14px; border: 1.5px solid var(--c-control); border-radius: var(--r-s); background-color: var(--c-white); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 6l4.5 4.5L12.5 6' fill='none' stroke='%23013851' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; font: inherit; font-size: var(--fs-small); color: var(--c-ink); cursor: pointer; transition: border-color var(--t-fast) var(--ease); }
.filterbar select:hover { border-color: var(--c-ink-2); }
.filters__count { font-size: var(--fs-small); color: var(--c-ink-2); margin: 0; white-space: nowrap; }
/* Phones: every filter option stays visible (pills wrap instead of hiding off-screen) and the row can never be wider than the
   viewport: one bounded grid track, children allowed to shrink, the brand/count/compare group wraps (round 9). */
@media (max-width: 640px) {
  .filterbar__row:first-child { display: grid; grid-template-columns: minmax(0, 1fr); }
  .filterbar__row > * { min-width: 0; }
  .filterbar .pills { flex-wrap: wrap; }
  .filterbar__end { flex-wrap: wrap; justify-content: space-between; gap: var(--s-2) var(--s-4); }
  .filterbar__row--sub .filterbar__label { flex-basis: 100%; }
}

/* ---- Enquiry states (assets/js/leads.js) ------------------------------------------------------------------------------- */
:root { --c-error: #9B2C2C; --c-error-bg: #FBEDED; }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--c-error); box-shadow: 0 0 0 3px rgba(155,44,44,.12); }
.field.is-invalid .seg button, .field.is-invalid .choices label { border-color: var(--c-error); }
.field__error { flex-basis: 100%; margin: 6px 0 0; font-size: var(--fs-small); font-weight: 500; line-height: 1.4; color: var(--c-error); }
.field__error::before { content: "! "; content: "! " / ""; font-weight: 700; }  /* visual mark only: not read aloud */
.callback__fields .field__error, .callback__consent .field__error { margin-top: 2px; }
.callback__consent { flex-wrap: wrap; }
.cta-callback .field__error { color: #FFD6D6; }
.form__error { margin: 0 0 var(--s-4); padding: var(--s-3) var(--s-4); border-radius: var(--r-s); background: var(--c-error-bg); color: var(--c-error); font-weight: 500; font-size: var(--fs-small); }
.form__error[hidden] { display: none; }
form[aria-busy="true"] [type="submit"] { cursor: progress; opacity: .75; }
.form__review { flex-basis: 100%; margin: var(--s-2) 0 0; font-size: var(--fs-micro); color: var(--c-ink-2); }
.cta-callback .form__review { color: rgba(255,255,255,.75); }
.form__result { margin-top: var(--s-4); padding: var(--s-5); border-radius: var(--r-m); border: 1px solid var(--c-line); background: var(--c-white); max-width: 760px; }
.form__result[hidden] { display: none; }
.form__result:focus { outline: 3px solid var(--c-ring); outline-offset: 2px; }
.form__result p { margin: 0 0 var(--s-2); font-size: var(--fs-small); color: var(--c-ink); }
.form__result p:last-child { margin-bottom: 0; }
.form__result-title { font-size: var(--fs-body) !important; font-weight: 700; color: var(--c-navy) !important; }
.form__result--ok { border-left: 4px solid var(--c-sage); }
.form__result--test { border-left: 4px solid #B7791F; background: #FFFAF0; }
.form__result--error { border-left: 4px solid var(--c-error); background: var(--c-error-bg); }
.form__result .linkbtn { margin-top: var(--s-2); }
.cta-callback .form__result p, .cta-callback .form__result-title { color: var(--c-ink) !important; }
.form-summary { margin: 0 0 var(--s-5); padding: var(--s-4) var(--s-5); border-radius: var(--r-m); background: var(--c-paper); border: 1px solid var(--c-line); }
.form-summary__head { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); margin-bottom: var(--s-2); }
.form-summary__title { margin: 0; font-weight: 700; color: var(--c-navy); font-size: var(--fs-small); }
.form-summary dl { margin: 0; display: grid; grid-template-columns: minmax(110px, auto) 1fr; gap: 4px var(--s-4); font-size: var(--fs-small); }
.form-summary dt { color: var(--c-ink-2); }
.form-summary dd { margin: 0; color: var(--c-ink); font-weight: 500; overflow-wrap: anywhere; }
.linkbtn { min-height: 40px; padding: 0 4px; border: 0; background: none; font: inherit; font-size: var(--fs-small); font-weight: 500; color: var(--c-teal-ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.linkbtn:hover { color: var(--c-navy); }
.linkbtn:focus-visible { outline: 2px solid var(--c-navy); outline-offset: 2px; border-radius: 4px; }
@media (max-width: 480px) { .form-summary dl { grid-template-columns: 1fr; gap: 0; } .form-summary dd { margin-bottom: 6px; } }

/* Hero rotation control */
.hero2__pause { width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; color: var(--c-white); }
.hero2__pause::before { content: ""; width: 10px; height: 12px; border-left: 3px solid currentColor; border-right: 3px solid currentColor; box-sizing: border-box; }
.hero2__pause[data-state="paused"]::before { width: 0; height: 0; border-style: solid; border-width: 7px 0 7px 11px; border-color: transparent transparent transparent currentColor; }
.hero2__pause:hover { opacity: .85; }

/* Mobile menu actions: `.site-nav a` must not repaint the buttons inside the open menu (was dark text on navy, 1.24:1) */
.site-nav .nav-extra .btn--primary, .site-nav .nav-extra .btn--primary:visited { color: var(--c-white); background: var(--c-navy); }
.site-nav .nav-extra .btn--primary:hover, .site-nav .nav-extra .btn--primary:focus-visible { color: var(--c-white); background: var(--c-navy-deep); }
.site-nav .nav-extra .btn--primary:active { color: var(--c-white); background: var(--c-navy-deep); }
.site-nav .nav-extra .site-header__phone { color: var(--c-sage); }
.site-nav .nav-extra .site-header__phone:hover, .site-nav .nav-extra .site-header__phone:focus-visible { color: var(--c-white); background: var(--c-sage); }

/* Rental display (tools/pricing.py): "Noleggio disponibile" until an approved figure exists, then "Da €X/mese" + conditions */
.card-machine__rent { display: grid; gap: 1px; }
.card-machine__rent strong { font-size: var(--fs-small); font-weight: 700; color: var(--c-navy); }
.card-machine__rent small { font-size: var(--fs-micro); color: var(--c-ink-2); line-height: 1.35; }
.m-rate .m-rate__price { font-size: 1.25rem; font-weight: 700; color: var(--c-navy); line-height: 1.25; }
.m-rate__cta { justify-self: start; margin-top: var(--s-2); }
.m-rate__terms { margin-top: 4px; font-size: var(--fs-micro); color: var(--c-ink-2); }
.m-rate__terms summary { cursor: pointer; min-height: 32px; display: inline-flex; align-items: center; font-weight: 500; color: var(--c-teal-ink); }
.m-rate__terms dl { display: grid; grid-template-columns: auto 1fr; gap: 2px var(--s-3); margin: var(--s-2) 0; }
.m-rate__terms dd { margin: 0; color: var(--c-ink); }

/* Refurbished stock (tools/usato.py) */
.stock-empty { display: grid; gap: var(--s-2); justify-items: start; padding: var(--s-6); border: 1px dashed var(--c-line); border-radius: var(--r-m); background: var(--c-white); margin-bottom: var(--s-7); }
.stock-empty p { margin: 0; color: var(--c-ink-2); max-width: var(--measure); }
.stock-empty .stock-empty__title { color: var(--c-navy); font-weight: 700; font-size: 1.125rem; }
.stock-card__cond { margin: 0; font-size: var(--fs-small); color: var(--c-ink); }
.stock-card__id { margin: var(--s-2) 0 0; font-size: var(--fs-micro); color: var(--c-ink-2); }
.stock-samples { margin: 0 0 var(--s-7); padding: var(--s-5); border: 2px dashed #B7791F; border-radius: var(--r-m); background: #FFFAF0; }
.stock-samples h3 { margin: 0 0 4px; }
.stock-card--sample { position: relative; }
.stock-card__flag { margin: 0; padding: 6px 12px; background: #B7791F; color: var(--c-white); font-size: var(--fs-micro); font-weight: 700; }

/* Home: choose by how you work (two family routes), compact partner band */
.section-head--tight { margin-bottom: var(--s-5); }
.routes { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); }
.route { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: stretch; border: 1px solid var(--c-line); border-radius: var(--r-m); background: var(--c-white); text-decoration: none; color: inherit; overflow: hidden; transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), border-color var(--t) var(--ease); }
.route:hover { transform: translateY(-3px); box-shadow: var(--sh-2); border-color: transparent; color: inherit; }
.route:active { transform: translateY(-1px); }
.route__media { position: relative; background: var(--c-mist); min-height: 220px; }
.route__media img { position: absolute; inset: 10%; width: 80%; height: 80%; object-fit: contain; filter: drop-shadow(0 12px 16px rgba(1,56,81,.14)); }
.route__body { display: flex; flex-direction: column; gap: var(--s-2); padding: var(--s-5); }
.route__name { font-size: 1.5rem; font-weight: 700; color: var(--c-navy); line-height: 1.2; }
.route__lead { font-size: var(--fs-small); color: var(--c-ink); }
.route__list { display: grid; gap: 4px; margin-top: 2px; }
.route__list span { font-size: var(--fs-micro); color: var(--c-ink-2); padding-left: 14px; position: relative; }
.route__list span::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--c-teal); }
.route__go { margin-top: auto; padding-top: var(--s-3); font-weight: 500; font-size: var(--fs-small); color: var(--c-teal-ink); }
@media (max-width: 900px) { .routes { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .route { grid-template-columns: 1fr; } .route__media { min-height: 180px; } }
.partner-band { display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: var(--s-5); align-items: center; padding: var(--s-5) var(--s-6); border: 1px solid var(--c-line); border-radius: var(--r-m); background: var(--c-paper); }
.partner-band h2 { font-size: var(--fs-h3); margin: 0 0 var(--s-2); }
.partner-band p { margin: 0; color: var(--c-ink-2); font-size: var(--fs-small); max-width: var(--measure); }
@media (max-width: 800px) { .partner-band { grid-template-columns: 1fr; } }
.more-link { margin: var(--s-5) 0 0; font-weight: 500; }

/* Door cards (home, category pages): moved from index.html so every page can use them */
.doors { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); }
.door { display: flex; flex-direction: column; gap: var(--s-2); padding: var(--s-5); border-radius: var(--r-m); background: var(--c-white); border: 1px solid var(--c-line); text-decoration: none; color: inherit; min-height: 184px; transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), border-color var(--t) var(--ease); }
.door:hover { transform: translateY(-3px); box-shadow: var(--sh-2); border-color: transparent; color: inherit; }
.door h3 { margin: 0; color: var(--c-navy); font-weight: 700; font-size: 1.25rem; }
.door p { margin: 0; color: var(--c-ink-2); font-size: var(--fs-small); }
.door .door__go { margin-top: auto; padding-top: var(--s-3); font-weight: 500; color: var(--c-teal-ink); font-size: var(--fs-small); }

/* Category pages: how to choose, comparison picker and family tabs */
.guide { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5) var(--s-6); }
.guide__item { padding-top: var(--s-4); border-top: 2px solid var(--c-navy); }
.guide__item h3 { margin: 0 0 var(--s-2); font-size: 1.125rem; color: var(--c-navy); }
.guide__item p { margin: 0; font-size: var(--fs-small); color: var(--c-ink-2); }
.guide__links { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); margin: var(--s-5) 0 0; font-weight: 500; font-size: var(--fs-small); }
@media (max-width: 900px) { .guide { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .guide { grid-template-columns: 1fr; } }
.filterbar__cmp { font-size: var(--fs-small); font-weight: 500; min-height: 40px; display: inline-flex; align-items: center; white-space: nowrap; }
.cmp-pick { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-3); margin: 0 0 var(--s-4); padding: 0; border: 0; }
.cmp-pick legend { width: 100%; margin-bottom: var(--s-2); font-size: var(--fs-small); font-weight: 500; color: var(--c-ink); }
.cmp-pick__item { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border: 1px solid var(--c-control); border-radius: 999px; background: var(--c-white); font-size: var(--fs-small); cursor: pointer; }
.cmp-pick__item:has(input:checked) { border-color: var(--c-navy); color: var(--c-navy); font-weight: 500; }
.cmp-pick__item input { width: 16px; height: 16px; margin: 0; accent-color: var(--c-navy); }
.cmp-pick__item:has(input:focus-visible) { outline: 2px solid var(--c-navy); outline-offset: 2px; }
.cmp .compare { min-width: 0; }
.cmp .compare-wrap { overflow-x: auto; }
.cmp .compare th[data-col] a { color: var(--c-navy); }
.cmp-note { margin: var(--s-3) 0 0; max-width: 75ch; }
.compare-wrap:focus-visible { outline: 3px solid var(--c-ring); outline-offset: 2px; }
.cmp-tabs { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: var(--s-5); border-radius: 999px; background: var(--c-mist); }
.cmp-tabs [role="tab"] { min-height: 40px; padding: 0 18px; border: 0; border-radius: 999px; background: transparent; font: inherit; font-size: var(--fs-small); color: var(--c-ink-2); cursor: pointer; }
.cmp-tabs [role="tab"][aria-selected="true"] { background: var(--c-white); color: var(--c-navy); font-weight: 500; box-shadow: var(--sh-1); }
.cmp-tabs [role="tab"]:focus-visible { outline: 2px solid var(--c-navy); outline-offset: 2px; }
@media (max-width: 640px) { .cmp .compare th, .cmp .compare td { padding: 10px; } .cmp .compare tbody th { width: 30%; } }
@media (max-width: 800px) { .doors { grid-template-columns: 1fr; } .door { min-height: 0; } }
@media (max-width: 640px) {
  .cmp .compare thead th:first-child, .cmp .compare tbody th { width: 34%; }
  .cmp .compare th, .cmp .compare td { overflow-wrap: anywhere; hyphens: auto; }
  /* sideways rails and filter rows: fade the right edge so it reads as "more this way" */
  .grid--rail-m { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent); }
}
.ways { margin: var(--s-5) 0 0; padding-top: var(--s-4); border-top: 1px solid var(--c-line); font-size: var(--fs-small); color: var(--c-ink-2); max-width: var(--measure); }

.guide__links a, .more-link a { min-height: 40px; display: inline-flex; align-items: center; }
@media (max-width: 480px) { .btn { white-space: normal; text-align: center; max-width: 100%; } }

/* ---- Round 9: consent errors under the row; step targets clear the sticky header ------------------------------------------ */
.field--check { flex-wrap: wrap; }
.field--check input + label { flex: 1 1 0; min-width: 0; }
.field--check .field__error { flex: 0 0 100%; margin-left: calc(20px + var(--s-3)); }
.callback__consent label { flex: 1 1 0; min-width: 0; }
.callback__consent .field__error { flex: 0 0 100%; margin-left: 26px; }
.form__review--files { margin-top: 6px; }
.price-approved[hidden], .price-fallback[hidden] { display: none !important; }
.cmp-tabs { max-width: 100%; flex-wrap: wrap; } .cmp-tabs [role="tab"] { white-space: normal; text-align: center; }  /* 200% text on phones (round 9) */
/* ---- Round 9: text enlarged to 200% on a phone (browser font-size setting) must not push the page sideways ----------------- */
h1, h2, h3, h4, p, li, dd, dt, td, th, figcaption, label, legend, summary, .btn { overflow-wrap: break-word; }
.crumbs, .spec th, .spec td, .acc-head a, .door h3, .route__name { overflow-wrap: anywhere; }
.detail > *, .doors > *, .routes > *, .route > *, .grid > *, .svc > *, .packs > *, .photo-strip > *, .form__row > *, .contact > *, .addresses > * { min-width: 0; }
.spec { table-layout: fixed; }
.acc-head { flex-wrap: wrap; }
.menu-btn { flex: none; white-space: nowrap; }
.site-header__row { min-width: 0; } .site-header__row > :first-child { min-width: 0; flex-shrink: 1; }
@media (max-width: 480px) {
  /* long Italian words ("Ricondizionato", "superautomatiche") at enlarged text: break inside the word rather than widen the page */
  h1, h2, h3, h4, p, li, dd, dt, td, th, strong, span, a, label, legend, summary, figcaption, .btn { overflow-wrap: anywhere; }
  .get > *, .how > *, .ways, .config > *, .page-hero > *, .hero-split > *, .m-hero > * { min-width: 0; }
  input, select, textarea { max-width: 100%; min-width: 0; }
  .filterbar__select { flex-wrap: wrap; min-width: 0; }
}

/* ---- Round 10 (team review, 30 Oct 2026) ------------------------------------------------------------------------- */
/* Header: more air between logo and tagline, a small break before the nav, quote and phone side by side */
.site-header__row { min-height: 88px; gap: var(--s-4); }
.site-header__row > .lockup { flex-shrink: 0; }
.lockup { gap: 7px; }
.lockup__tag { white-space: nowrap; }
.site-nav { margin-left: var(--s-6); }
.site-nav ul { gap: 2px; }
.site-nav a { padding: 0 9px; }
.site-header__cta { flex-direction: row; align-items: center; gap: var(--s-2); padding-block: 0; }
.site-header__cta .site-header__phone { order: 1; }
.site-header__cta .btn { order: 2; }
:root { --header-h: 89px; }  /* the sticky header, measured; site.js keeps it exact */
/* below 1280 px the number no longer fits beside the button: the phone keeps its icon and its accessible name */
@media (min-width: 1024px) and (max-width: 1279px) {
  .site-header__cta .site-header__phone { width: 44px; padding: 0; font-size: 0; gap: 0; }
  .site-header__cta .site-header__phone::before { width: 16px; height: 16px; }
  .site-nav { margin-left: var(--s-3); }
  .site-nav a { padding: 0 6px; }
}
/* Footer: the VEA Group mark closes the brand row on the right */
.site-footer__brands img:last-child { margin-left: auto; }
/* Home facts: headings and texts aligned across the four columns, more room between columns */
.facts-strip { gap: var(--s-2) var(--s-7); grid-template-rows: auto auto; padding: var(--s-6) 0; }
.facts-strip div { grid-row: span 2; grid-template-rows: subgrid; gap: var(--s-2); align-content: start; }
.facts-strip strong { font-size: 1.25rem; }
@media (max-width: 900px) { .facts-strip { grid-template-rows: none; row-gap: var(--s-5); column-gap: var(--s-6); } .facts-strip div { grid-row: auto; grid-template-rows: none; } }
/* Hero: the pause control reads as a button (ring), set apart from the slide dots */
.hero2__pause { position: relative; margin-right: var(--s-2); }
.hero2__pause::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.75); transition: border-color var(--t-fast) var(--ease); }
.hero2__pause:hover::after, .hero2__pause:focus-visible::after { border-color: var(--c-white); }
/* the dot rule (.hero2__dots button::before) also matched the pause button and painted its icon as a grey dot: the "broken first dot" */
.hero2__dots .hero2__pause::before, .hero2__dots .hero2__pause:hover::before { background: none; border-radius: 0; transform: none; }
.hero2__dots .hero2__pause:not([data-state="paused"])::before { width: 12px; height: 13px; border-left-width: 4px; border-right-width: 4px; }
.hero2__dots .hero2__pause[data-state="paused"]::before { margin-left: 3px; }
/* Soluzioni: dealer tile benefits as a list */
.tile__list { list-style: none; margin: 4px 0 8px; padding: 0; display: grid; gap: 4px; }
.tile__list li { position: relative; padding-left: 14px; font-size: var(--fs-small); color: var(--c-ink-2); }
.tile__list li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--c-teal); }
.facts-strip span { text-wrap: pretty; }
/* Accessory sheets (/accessori/): the whole card opens its technical sheet in a dialog */
.acc-card:not(.acc-card--mini) { position: relative; transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), border-color var(--t) var(--ease); }
.acc-card__open { align-self: flex-start; display: inline-flex; align-items: center; min-height: 44px; margin-top: var(--s-1); padding: 0; border: 0; background: none; font: inherit; font-weight: 500; font-size: var(--fs-small); color: var(--c-teal-ink); cursor: pointer; }
.acc-card__open::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-m); }
.acc-card:has(.acc-card__open:hover) { transform: translateY(-2px); box-shadow: var(--sh-2); border-color: transparent; }
.acc-card:has(.acc-card__open:active) { transform: translateY(-1px); }
.acc-card__open:hover { text-decoration: underline; text-underline-offset: 3px; }
.acc-card__open:focus-visible { outline: none; }
.acc-card__open:focus-visible::after { outline: 2px solid var(--c-navy); outline-offset: 2px; }
.acc-sheet { width: min(880px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: var(--r-l); background: var(--c-white); color: var(--c-ink); box-shadow: var(--sh-3); overflow: auto; overscroll-behavior: contain; }
.acc-sheet::backdrop { background: rgba(0, 28, 41, .55); }
.acc-sheet[open] { animation: acc-sheet-in var(--t) var(--ease); }
@keyframes acc-sheet-in { from { opacity: 0; transform: translateY(12px) scale(.985); } }
html:has(.acc-sheet[open]) { overflow: hidden; }
.acc-sheet__inner { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.acc-sheet__media { position: relative; min-height: 360px; background: var(--c-mist); }
.acc-sheet__media img { position: absolute; inset: 12%; width: 76%; height: 76%; object-fit: contain; filter: drop-shadow(0 16px 24px rgba(1,56,81,.16)); }
.acc-sheet__body { display: flex; flex-direction: column; gap: var(--s-3); padding: var(--s-7) var(--s-6) var(--s-6); }
.acc-sheet__body h2 { margin: 0; padding-right: var(--s-7); font-size: var(--fs-h3); line-height: 1.2; color: var(--c-navy); }
.acc-sheet__line { margin: 0; font-size: var(--fs-small); line-height: 1.55; }
.acc-sheet .spec { margin-top: var(--s-2); }
.acc-sheet .spec th { width: 44%; }
.acc-sheet__for { margin: 0; font-size: var(--fs-small); }
.acc-sheet__for span { color: var(--c-teal-ink); font-weight: 500; margin-right: 4px; }
.acc-sheet__cta { margin-top: var(--s-3); }
.acc-sheet__close { position: absolute; top: var(--s-3); right: var(--s-3); width: 44px; height: 44px; border: 1px solid var(--c-line); border-radius: 50%; background: var(--c-white); color: var(--c-navy); cursor: pointer; transition: background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease); }
.acc-sheet__close::before, .acc-sheet__close::after { content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 2px; border-radius: 1px; background: currentColor; transform: translate(-50%, -50%) rotate(45deg); }
.acc-sheet__close::after { transform: translate(-50%, -50%) rotate(-45deg); }
.acc-sheet__close:hover { background: var(--c-mist); border-color: var(--c-navy); }
.acc-sheet__close:active { transform: scale(.96); }
.acc-sheet__close:focus-visible { outline: 2px solid var(--c-navy); outline-offset: 2px; }
@media (max-width: 700px) {
  .acc-sheet__inner { grid-template-columns: 1fr; }
  .acc-sheet__media { min-height: 0; aspect-ratio: 16 / 10; }
  .acc-sheet__body { padding: var(--s-5) var(--s-5) var(--s-6); }
}

/* ---- Round 11 (2 Nov 2026) ---------------------------------------------------------------------------------------------- */
/* Footer: the company's legal line, full width under the brands */
.site-footer__legal { align-items: flex-end; }
.site-footer .site-footer__company { flex: 1 1 520px; max-width: 110ch; margin: 0; font-size: var(--fs-micro); line-height: 1.55; color: rgba(255,255,255,.72); }
/* Callback: name + phone (the lead spine needs a name) */
.callback__fields input { width: 210px; }
.cta-callback .callback__fields input { width: 200px; }
.cta-callback__lead { color: rgba(255,255,255,.86); font-size: var(--fs-small); margin-right: var(--s-2); }
@media (max-width: 560px) {
  .callback__fields, .cta-callback { align-items: stretch; }
  .callback__fields input { width: 100%; flex: 1 1 100%; }
  .callback__fields .btn, .cta-callback .btn { width: 100%; }
}
/* A labelled note where a file field used to be: photos travel by email */
.field-note { display: grid; gap: 4px; align-content: start; }
.field-note .field__label { margin: 0; font-weight: 500; font-size: var(--fs-small); color: var(--c-ink); }
.field-note .hint { margin: 0; font-size: var(--fs-micro); line-height: 1.5; color: var(--c-ink-2); }
/* After a trade-in or service request: how to send the photos */
.photo-step { margin: var(--s-3) 0 var(--s-4); padding: var(--s-4); border-radius: var(--r-s); background: var(--c-mist); }
.photo-step__title { font-weight: 700; color: var(--c-navy) !important; }
.photo-step__actions { margin: var(--s-3) 0 var(--s-2) !important; }
.form__result .photo-step .btn { color: var(--c-white); }

/* Round 13: used units from the back-office feed (assets/js/usato.js) */
.stock-feed { margin-bottom: var(--s-7); }
.stock { margin-bottom: 0; }
.stock-card:hover { transform: none; box-shadow: none; border-color: var(--c-line); }
.stock-card .card-machine__name { margin: 0; }
.stock-card__meta { margin: 0; font-size: var(--fs-micro); color: var(--c-ink-2); }
.stock-card__more summary { cursor: pointer; min-height: 32px; display: inline-flex; align-items: center; font-size: var(--fs-small); font-weight: 500; color: var(--c-teal-ink); }
.stock-card__thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 6px; }
.stock-card__thumbs img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-s); }
.stock-card .card-machine__price + .btn { justify-self: start; align-self: flex-start; margin-top: var(--s-2); }
.stock-card__model { font-size: var(--fs-small); }
.stock-feed .stock-empty { margin-bottom: 0; }

/* ---- Round 14: data-sheet link under the technical data; accessory category jump links ------------------------------------- */
.spec-sheet { margin: var(--s-4) 0 0; }
.spec-sheet a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 500; }
.spec-sheet a::before { content: ""; width: 18px; height: 22px; flex: none; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 22'%3E%3Cpath d='M2 1h9l6 6v14H2z' fill='none' stroke='black' stroke-width='1.6'/%3E%3Cpath d='M11 1v6h6M9 10v7m-3-3 3 3 3-3' fill='none' stroke='black' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 22'%3E%3Cpath d='M2 1h9l6 6v14H2z' fill='none' stroke='black' stroke-width='1.6'/%3E%3Cpath d='M11 1v6h6M9 10v7m-3-3 3 3 3-3' fill='none' stroke='black' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat; }
.spec-sheet__meta { font-weight: 400; color: var(--c-ink-2); }
.acc-jump { margin: calc(-1 * var(--s-2)) 0 var(--s-6); }
.acc-jump .pills { flex-wrap: wrap; }

/* ---- Round 15: CARIbase photo gallery in its sheet; CARImobile outline drawing until a photo exists ------------------------ */
.acc-sheet__media.acc-sheet__media--gallery > img { inset: 6% 10% auto; width: 80%; height: calc(94% - 96px); }
.acc-sheet__thumbs { position: absolute; left: 0; right: 0; bottom: 16px; display: flex; justify-content: center; gap: 8px; padding: 0 12px; }
.acc-sheet__thumb { position: relative; flex: 0 1 56px; height: 56px; padding: 0; border: 1px solid var(--c-line); border-radius: var(--r-s); background: var(--c-white); cursor: pointer; transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease); }
.acc-sheet__media .acc-sheet__thumb img { inset: 8%; width: 84%; height: 84%; filter: none; }
.acc-sheet__thumb:hover { border-color: var(--c-navy); }
.acc-sheet__thumb[aria-pressed="true"] { border-color: var(--c-navy); box-shadow: inset 0 0 0 1px var(--c-navy); }
.acc-sheet__thumb:focus-visible { outline: 2px solid var(--c-navy); outline-offset: 2px; }
.acc-card__media.is-drawing img, .acc-sheet__media.is-drawing img { inset: 10%; width: 80%; height: 80%; filter: none; }
.acc-note { position: absolute; top: 10px; left: 10px; background: var(--c-white); color: var(--c-ink-2); }
@media (max-width: 700px) {
  .acc-sheet__media.acc-sheet__media--gallery { aspect-ratio: 1; }
  .acc-sheet__thumb { flex-basis: 48px; height: 48px; }
  .acc-sheet__media.acc-sheet__media--gallery > img { height: calc(94% - 84px); }
}
@media (max-width: 640px) {
  .acc-card:not(.acc-card--mini) .acc-card__media.is-drawing img { inset: 30% 8% 8%; width: 84%; height: 62%; }
  .acc-card__media .acc-note { top: 8px; left: 50%; transform: translateX(-50%); padding: 2px 8px; white-space: nowrap; }
}

/* ---- Round 20: a utility line above the header (dealers, portal); a visible "Richiedi" on accessory cards ------------------ */
.site-util { display: none; }
@media (min-width: 1024px) {
  .site-util { display: block; background: var(--c-paper); border-bottom: 1px solid var(--c-line); }
  .site-util__row { display: flex; justify-content: flex-end; gap: var(--s-5); }
  .site-util a { display: inline-flex; align-items: center; min-height: 32px; font-size: var(--fs-micro); font-weight: 500; color: var(--c-ink-2); text-decoration: none; }
  .site-util a:hover { color: var(--c-navy); text-decoration: underline; text-underline-offset: 3px; }
  .site-util a[aria-current="page"] { color: var(--c-navy); }
}
.acc-card__acts { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-1) var(--s-3); margin-top: var(--s-1); }
.acc-card__acts .acc-card__open { margin-top: 0; }
.acc-card__ask { position: relative; z-index: 1; }

/* ---- Round 21 (UI audit, points 61–72) ----------------------------------------------------------------------------------- */
/* 64: on navy the keyboard ring is the light teal (5.0–6.1:1; the dark teal was 2.2–2.7:1). A white box inside a navy band keeps the dark ring. */
.site-footer, .section--navy, .card-range, .hero2 { --c-ring: var(--c-teal); }
.section--navy .form__result > * { --c-ring: var(--c-focus); }
/* 65: skip link, the first Tab stop on every page */
.skip-link { position: absolute; left: var(--gutter); top: 0; z-index: 200; display: inline-flex; align-items: center; min-height: 48px; padding: 0 var(--s-5); border-radius: 0 0 var(--r-s) var(--r-s); background: var(--c-navy); color: var(--c-white); font-weight: 500; text-decoration: none; transform: translateY(-110%); }
.skip-link:focus { transform: none; }
main:focus { outline: none; }
/* 66: one scroll offset for the sticky header (anchors, keyboard focus, form steps) instead of one per element */
html { scroll-padding-top: calc(var(--header-h) + 16px); }
/* 67: touch targets of 44px on phones, tablets and touch screens; footer links become 44px rows */
@media (max-width: 1023px), (pointer: coarse) {
  .btn--small, .pills button, .pills a, .filterbar__cmp, .cmp-pick__item, .cmp-tabs [role="tab"], .guide__links a, .more-link a, .linkbtn, .m-rate__terms summary, .stock-card__more summary, .site-header__phone, .site-util a { min-height: 44px; }
  .site-footer li a { display: inline-flex; align-items: center; min-height: 44px; margin-block: -4px; }
  .site-footer__links { gap: 0 var(--s-5); }
  .site-footer__links a { display: inline-flex; align-items: center; min-height: 44px; }
  /* one-line links: a taller tap area without moving anything */
  .crumbs a, .cmp .compare thead a, .address p > a, .contact dd > a { display: inline-block; padding-block: 11px; margin-block: -11px; }
}
/* 71: compare table on phones. Only long words hyphenate, and never two or three letters from an edge ("Alimenta-zione", not
   "Alimentazio-ne"; "gruppi" moves to the next line whole). Row labels go one size down so they fit their column. */
@media (max-width: 640px) {
  .cmp .compare th, .cmp .compare td { hyphenate-limit-chars: 9 4 4; -webkit-hyphenate-limit-before: 4; -webkit-hyphenate-limit-after: 5; vertical-align: baseline; }
  .cmp .compare thead th:first-child, .cmp .compare tbody th { font-size: var(--fs-micro); padding-right: 6px; }
}
@media (max-width: 340px) {  /* the narrowest phones: a little more room in each cell */
  .cmp .compare th, .cmp .compare td { padding: 10px 8px; }
  .cmp .compare td { font-size: 1rem; }
}

/* Accessory cards on phone: with 16px text the two actions still share one row (a slimmer photo column, tighter row) */
@media (max-width: 640px) {
  .acc-card:not(.acc-card--mini) .acc-card__media { flex-basis: 96px; }
  .acc-card:not(.acc-card--mini) .acc-card__body { padding-inline: var(--s-3); }
  .acc-card__acts { column-gap: var(--s-2); }
  .acc-card__acts .btn--small { padding-inline: var(--s-3); }
}
@media (max-width: 374px) {
  .acc-card:not(.acc-card--mini) .acc-card__media { flex-basis: 88px; }
}

/* ---- Round 22 (owner, 14 Nov 2026): a call button beside "Menu" below the desktop header (review point 48) -------- */
.site-header__call { display: none; }
@media (max-width: 1023px) {
  .site-header__row { gap: var(--s-2); }
  .site-header__call { display: inline-flex; flex: none; margin-left: auto; }
  .site-header__call + .menu-btn { margin-left: 0; min-width: 76px; justify-content: center; }  /* "Menu" and "Chiudi" take the same room, so the call button does not move */
  .site-header.is-open .site-nav .nav-extra a { white-space: normal; }  /* the long portal link wraps instead of widening a 320px page */
}
/* phone: the icon alone; the number stays the link's accessible name and is written out in the menu */
@media (max-width: 599px) {
  .site-header__call { width: 44px; padding: 0; font-size: 0; gap: 0; }
  .site-header__call::before { width: 16px; height: 16px; }
}
/* the narrowest phones: room for it beside the logo */
@media (max-width: 359px) {
  .site-header__row { gap: 6px; }
  .site-header__call + .menu-btn { min-width: 64px; padding-inline: 6px; }
}

/* ---- Round 23 (owner's answers to the final check, 14 Nov 2026) --------------------------------------------------- */
/* a button label that needs two lines on a phone splits evenly instead of leaving one word alone */
.btn { text-wrap: balance; }
/* "Richiedi un altro modello" stays on one line in the range card at 390px */
.card-range .btn { padding-inline: var(--s-3); }

/* ---- Consent banner (assets/js/consent.js, 20 Nov 2026): shown only when Google Ads measurement is switched on ---- */
/* fixed to the bottom of the window, above the sticky header's level; the script pads the page so the footer stays reachable */
.consent { position: fixed; inset: auto 0 0 0; z-index: 60; background: var(--c-white); border-top: 1px solid var(--c-line); box-shadow: 0 -8px 32px rgba(1,56,81,.12); padding-block: var(--s-4); }
.consent[hidden] { display: none; }
.consent__row { display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); }
.consent__title { margin: 0 0 var(--s-1); font-size: var(--fs-body); font-weight: 700; line-height: 1.3; letter-spacing: 0; }
.consent__text p { margin: 0; max-width: 72ch; font-size: var(--fs-small); line-height: 1.5; color: var(--c-ink); }
/* the two answers are the same button: same size, same colours */
.consent__actions { display: flex; flex: none; gap: var(--s-3); }
.consent__actions .btn { min-width: 132px; }
@media (max-width: 760px) {
  .consent__row { flex-direction: column; align-items: stretch; gap: var(--s-3); }
  .consent__actions .btn { flex: 1; min-width: 0; }
}
/* the privacy page carries the text for both states; a hidden one stays hidden whatever its display rule */
[data-ads-on][hidden], [data-ads-off][hidden] { display: none !important; }
/* "Preferenze cookie" in the footer reads as one of its links */
.site-footer__cookie { padding: 0; border: 0; background: none; font: inherit; color: rgba(255,255,255,.8); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; cursor: pointer; }
.site-footer__cookie:hover { color: var(--c-white); }
@media (max-width: 1023px), (pointer: coarse) { .site-footer__cookie { display: inline-flex; align-items: center; min-height: 44px; } }
