/* man.imit.it - foglio di stile pubblico. Tema chiaro unico: figure e icone dei manuali sono nere su trasparente.
   Raggi: 10px per schede, campi e pulsanti; 6px per etichette piccole. Un solo colore di accento. */
:root {
  --bg: #f4f7f7; --surface: #ffffff; --ink: #172022; --muted: #53636a; --line: #dbe3e3;
  --accent: #5ac2e3; --accent-dark: #17718d; --accent-soft: #e3f5fa; --on-accent: #0e2f3a;
  --warn-bg: #fff5dc; --warn-line: #d99a00; --error: #b3261e; --ok: #17718d;
  --r: 10px; --r-s: 6px; --shadow: 0 1px 2px rgb(16 40 40 / .06), 0 6px 20px rgb(16 40 40 / .06);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 1rem; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.6 var(--font); text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; }
a { color: var(--accent-dark); text-underline-offset: .18em; }
a:hover { color: var(--accent); }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.6rem); font-weight: 750; }
h2 { font-size: clamp(1.25rem, 1.1rem + .8vw, 1.6rem); font-weight: 700; }
h3 { font-size: 1.0625rem; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
.wrap { width: min(100% - 2rem, 1180px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: .5rem; top: -4rem; z-index: 50; background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: var(--r); }
.skip:focus { top: .5rem; color: #fff; }
.no-js .js-only, .print-only { display: none; }
.ico { flex: none; vertical-align: -.2em; }

/* pulsanti */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 46px; padding: .6rem 1.1rem; border: 1.5px solid transparent;
  border-radius: var(--r); font: 600 1rem/1.2 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color .15s, border-color .15s, transform .1s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: #3eb5da; color: var(--on-accent); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: #b9c6c6; }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent-dark); }
.btn-ghost { background: transparent; color: var(--accent-dark); }
.btn-ghost:hover { background: var(--accent-soft); }
.btn[disabled] { opacity: .6; cursor: progress; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--accent-dark); text-decoration: underline; text-underline-offset: .18em; cursor: pointer; }

/* intestazione */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.logo { display: inline-flex; }
.logo img { display: block; width: auto; height: 48px; }
.lang-menu { position: relative; }
.lang-menu summary { list-style: none; display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; padding: .4rem .8rem; border: 1.5px solid #b9c6c6; border-radius: var(--r); cursor: pointer; font-weight: 600; font-size: .95rem; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu[open] summary { border-color: var(--accent); }
.lang-menu ul { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 220px; margin: 0; padding: .4rem; list-style: none; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); columns: 2; column-gap: .2rem; }
.lang-menu a { display: block; padding: .55rem .7rem; border-radius: var(--r-s); color: var(--ink); text-decoration: none; break-inside: avoid; }
.lang-menu a:hover { background: var(--accent-soft); }
.lang-menu a[aria-current] { font-weight: 700; color: var(--accent-dark); }

/* ricerca */
.finder { padding-block: .25rem 1.25rem; position: relative; }
.is-home .finder { padding-block: 1.5rem 2rem; }
.finder-title { margin-bottom: .75rem; }
.finder-note { margin: 1rem 0 0; color: var(--muted); font-size: .95rem; max-width: 75ch; }
.search { position: relative; max-width: 760px; }
.search-field { display: flex; align-items: center; gap: .5rem; padding: .3rem .3rem .3rem .9rem; background: var(--surface); border: 2px solid #9fb0b0; border-radius: var(--r); }
.search-field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.search-field .ico { color: var(--muted); }
.search-field input { flex: 1; min-width: 0; min-height: 46px; border: 0; background: transparent; font: inherit; color: var(--ink); outline: 0; }
.search-field input::placeholder { color: #66777d; }
.live { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 25; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.live a { display: grid; grid-template-columns: 56px 1fr; gap: .8rem; align-items: center; padding: .55rem .8rem; color: var(--ink); text-decoration: none; }
.live a:hover, .live a.is-active { background: var(--accent-soft); }
.live img, .live .ph { width: 56px; height: 42px; object-fit: contain; background: #fff; border-radius: var(--r-s); }
.live strong { display: block; line-height: 1.25; }
.live small { color: var(--muted); }
.live .live-all { display: block; grid-template-columns: none; padding: .8rem; text-align: center; font-weight: 600; color: var(--accent-dark); border-top: 1px solid var(--line); }
.live .live-empty { margin: 0; padding: 1rem; color: var(--muted); }
.live .live-skeleton { height: 58px; margin: .5rem .8rem; border-radius: var(--r-s); background: linear-gradient(90deg, #eef2f2 25%, #f8fafa 50%, #eef2f2 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite linear; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* elenco */
.listing { padding-block: 2rem 3rem; }
.listing-head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: .25rem 1.5rem; margin-bottom: 1.25rem; }
.listing-head h2 { margin: 0; }
.count { grid-column: 1; margin: 0; color: var(--muted); font-size: .95rem; }
.filter { grid-column: 2; grid-row: 1 / span 2; display: grid; gap: .3rem; }
.filter label, .field label { font-weight: 600; font-size: .95rem; }
select, .field input, .field textarea { width: 100%; min-height: 46px; padding: .55rem .75rem; border: 1.5px solid #9fb0b0; border-radius: var(--r); background: var(--surface); color: var(--ink); font: inherit; }
select:focus, .field input:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); outline: 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.card:hover, .card:focus-within { border-color: var(--accent); box-shadow: var(--shadow); }
.card-link { display: flex; flex-direction: column; flex: 1; color: inherit; text-decoration: none; }
.card-img { display: block; position: relative; aspect-ratio: 4 / 3; background: #fff; }
.card-img img { position: absolute; inset: .75rem; width: calc(100% - 1.5rem); height: calc(100% - 1.5rem); object-fit: contain; }
.card-body { display: grid; gap: .15rem; padding: .25rem 1rem .75rem; }
.card-cat { color: var(--muted); font-size: .85rem; }
.card-title { font-weight: 700; font-size: 1.1rem; line-height: 1.25; }
.card-codes { color: var(--muted); font-size: .92rem; font-variant-numeric: tabular-nums; }
.langs { display: flex; flex-wrap: wrap; gap: .3rem; margin: 0; padding: 0; list-style: none; }
.card .langs { padding: 0 1rem 1rem; }
.langs a { display: inline-block; min-width: 2.2rem; padding: .2rem .4rem; border: 1px solid var(--line); border-radius: var(--r-s); font-size: .78rem; font-weight: 700; text-align: center; text-decoration: none; color: var(--muted); }
.langs a:hover { border-color: var(--accent); color: var(--accent-dark); }
.langs a[aria-current] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.other-title { margin: 2.5rem 0 1rem; }
.empty { padding: 2.5rem 1.5rem; background: var(--surface); border: 1px dashed #b9c6c6; border-radius: var(--r); text-align: center; }
.empty p { max-width: 60ch; margin-inline: auto; color: var(--muted); }
.empty-page { margin-block: 3rem; }

/* scheda prodotto */
.crumbs ol { display: flex; flex-wrap: wrap; gap: .2rem .5rem; margin: 0; padding: 1.25rem 0 0; list-style: none; font-size: .9rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: .5rem; color: #9fb0b0; }
.product-head { display: grid; grid-template-columns: 1fr minmax(240px, 400px); gap: 2rem; align-items: center; padding-block: 1.5rem 2rem; }
.product-cat { margin: 0 0 .3rem; color: var(--muted); font-weight: 600; }
.product-head h1 { margin-bottom: .6rem; }
.codes { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.codes li { padding: .25rem .6rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-s); font-weight: 700; font-variant-numeric: tabular-nums; }
.codes span { color: var(--muted); font-weight: 500; }
.product-langs { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; margin-bottom: 1.25rem; font-size: .92rem; color: var(--muted); }
.product-photo { margin: 0; padding: 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.product-photo img { display: block; width: 100%; max-height: 380px; object-fit: contain; }
.actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.actions[data-pos="bottom"] { margin-top: 1.5rem; }
.product-body { display: grid; grid-template-columns: 250px 1fr; gap: 2rem; align-items: start; padding-bottom: 3rem; }
.product-body > .sections:only-child { grid-column: 1 / -1; }
.toc { position: sticky; top: 1rem; padding: 1rem 1.1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); font-size: .95rem; }
.toc-title { margin: 0 0 .5rem; font-weight: 700; }
.toc ol { margin: 0 0 .9rem; padding: 0; list-style: none; display: grid; gap: .1rem; }
.toc a { display: block; padding: .4rem .5rem; border-radius: var(--r-s); color: var(--ink); text-decoration: none; }
.toc a:hover { background: var(--accent-soft); color: var(--accent-dark); }
.sections { min-width: 0; display: grid; gap: .75rem; }
.section { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.section summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; cursor: pointer; list-style: none; border-radius: var(--r); }
.section summary::-webkit-details-marker { display: none; }
.section summary h2 { margin: 0; font-size: 1.2rem; }
.section summary .ico { color: var(--accent); transition: transform .2s; }
.section[open] summary .ico { transform: rotate(180deg); }
.section summary:hover h2 { color: var(--accent-dark); }
.section-body { padding: .25rem 1.25rem 1.5rem; }

/* contenuto redazionale */
.rich { overflow-wrap: anywhere; }
.rich > :last-child, .step > :last-child { margin-bottom: 0; }
.rich h3 { margin-top: 1.4em; font-size: 1.05rem; text-transform: none; }
.rich h3:first-child { margin-top: 0; }
.rich ul, .rich ol { margin: 0 0 1em; padding-left: 1.3rem; }
.rich li { margin-bottom: .35em; }
.rich img { border-radius: var(--r-s); }
.rich img.icon { display: inline-block; width: 1.75em; height: 1.75em; margin: 0 .08em; vertical-align: -.55em; border-radius: 0; object-fit: contain; }
.rich figure { margin: 1.25rem auto; text-align: center; }
.rich figure img { display: block; margin-inline: auto; }
.rich figcaption { margin-top: .4rem; font-size: .88rem; font-weight: 700; color: var(--muted); }
.rich table { width: 100%; border-collapse: collapse; margin-bottom: 1em; font-size: .95rem; }
.rich th, .rich td { padding: .5rem .6rem; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.rich .aligncenter { display: block; margin-inline: auto; }
.step + .step { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.warning { margin-top: 1.25rem; padding: 1rem 1.1rem; background: var(--warn-bg); border-left: 4px solid var(--warn-line); border-radius: var(--r-s); }
.warning-title { display: flex; align-items: center; gap: .5rem; margin-bottom: .4rem; font-weight: 700; }
.specs { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .6rem; margin: 0; }
.specs > div { padding: .7rem .85rem; background: var(--bg); border-radius: var(--r-s); }
.specs dt { color: var(--muted); font-size: .86rem; line-height: 1.3; }
.specs dd { margin: .15rem 0 0; font-weight: 600; }
.problems { display: grid; gap: .75rem; }
.problem { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; padding: 1rem; background: var(--bg); border-radius: var(--r-s); }
.problem h3 { margin: 0 0 .3rem; font-size: .82rem; letter-spacing: .02em; color: var(--muted); }
.problem p:last-child { margin-bottom: 0; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-top: 1.5rem; }
.pager a { display: flex; align-items: center; gap: .7rem; padding: .85rem 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); color: var(--ink); text-decoration: none; font-weight: 600; line-height: 1.25; }
.pager a:hover { border-color: var(--accent); }
.pager a[rel="next"] { justify-content: flex-end; text-align: right; }
.pager small { display: block; font-weight: 500; color: var(--muted); }
.page { padding-bottom: 3rem; }
.page h1 { margin-top: 1.25rem; }
.page .rich { max-width: 78ch; }

/* form */
.contact { background: var(--surface); border-top: 1px solid var(--line); padding-block: 2.5rem 3rem; }
.contact-grid { display: grid; grid-template-columns: minmax(240px, 1fr) minmax(0, 1.4fr); gap: 2.5rem; }
.contact-intro p { color: var(--muted); max-width: 46ch; }
.form { display: grid; gap: 1rem; }
.form-fields { display: grid; gap: 1rem; }
.field { display: grid; gap: .3rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field textarea { min-height: 130px; resize: vertical; }
.check { display: grid; grid-template-columns: auto 1fr; gap: .7rem; align-items: start; font-size: .95rem; }
.check input { width: 22px; height: 22px; margin: .15rem 0 0; accent-color: var(--accent); }
.form-hint { margin: 0; font-size: .88rem; color: var(--muted); }
.form-msg { margin: 0; padding: .8rem 1rem; border-radius: var(--r-s); font-weight: 600; }
.form-msg.is-error { background: #fdecea; color: var(--error); }
.form-msg.is-ok { background: var(--accent-soft); color: var(--accent-dark); }
.form .btn { justify-self: start; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.is-invalid { border-color: var(--error) !important; }

/* finestra invio manuale */
.dialog { width: min(100% - 2rem, 520px); padding: 0; border: 0; border-radius: var(--r); box-shadow: 0 20px 60px rgb(16 40 40 / .3); color: var(--ink); }
.dialog::backdrop { background: rgb(15 30 30 / .55); }
.dialog .form { padding: 1.5rem; position: relative; }
.dialog h2 { margin: 0; padding-right: 2.5rem; }
.dialog-product { margin: 0; font-weight: 700; color: var(--accent-dark); }
.dialog-close { position: absolute; right: .75rem; top: .75rem; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: var(--r); background: transparent; color: var(--muted); cursor: pointer; }
.dialog-close:hover { background: var(--bg); color: var(--ink); }
.dialog-actions { display: flex; justify-content: flex-end; gap: .6rem; flex-wrap: wrap; }

/* piè di pagina */
.site-footer { background: #15292b; color: #d4dfdf; font-size: .95rem; }
.site-footer a, .site-footer .linklike { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; padding-block: 2.5rem 1.5rem; }
.footer-name { font-weight: 700; color: #fff; margin-bottom: .4rem; }
.footer-links { margin: 0; padding: 0; list-style: none; display: grid; gap: .55rem; align-content: start; }
.footer-copy { padding-block: 1rem 1.5rem; border-top: 1px solid rgb(255 255 255 / .14); color: #a9bbbb; font-size: .88rem; }

/* banner cookie */
.consent { position: fixed; inset: auto 0 0 0; z-index: 40; padding: 1rem; display: flex; justify-content: center; background: linear-gradient(transparent, rgb(15 30 30 / .25)); }
.consent-box { width: min(100%, 760px); max-height: min(85dvh, 640px); overflow: auto; padding: 1.4rem 1.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 12px 50px rgb(16 40 40 / .28); }
.consent h2 { font-size: 1.2rem; }
.consent p { font-size: .95rem; }
.consent-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .6rem; margin-top: 1rem; }
.consent-cats { margin: 0 0 1rem; padding: 0; list-style: none; display: grid; gap: .6rem; }
.consent-cats li { padding: .8rem 1rem; background: var(--bg); border-radius: var(--r-s); }
.consent-cats label { display: flex; align-items: center; gap: .6rem; cursor: pointer; }
.consent-cats input { width: 22px; height: 22px; accent-color: var(--accent); }
.consent-cats p { margin: .35rem 0 0; color: var(--muted); font-size: .9rem; }
.consent .tag { margin-left: auto; padding: .1rem .5rem; border-radius: var(--r-s); background: var(--accent-soft); color: var(--accent-dark); font-size: .78rem; font-weight: 700; }
.consent-id { font-size: .85rem; color: var(--muted); }
.consent-id code { font-size: .85rem; word-break: break-all; }

@media (max-width: 860px) {
  .product-head { grid-template-columns: 1fr; gap: 1.25rem; }
  .product-photo { order: -1; max-width: 420px; }
  .product-body { grid-template-columns: 1fr; gap: 1rem; }
  .toc { position: static; }
  .contact-grid, .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .problem { grid-template-columns: 1fr; gap: .75rem; }
}
@media (max-width: 600px) {
  body { font-size: 1rem; }
  .logo img { height: 40px; }
  .bar { min-height: 64px; }
  .lang-menu ul { columns: 1; min-width: 180px; }
  .search-field .btn { padding-inline: .8rem; }
  .listing-head { grid-template-columns: 1fr; }
  .filter { grid-column: 1; grid-row: auto; margin-top: .75rem; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
  .card-body { padding-inline: .7rem; }
  .card .langs { padding-inline: .7rem; }
  .card-title { font-size: 1rem; }
  .actions .btn { flex: 1 1 100%; }
  .field-row, .pager { grid-template-columns: 1fr; }
  .section summary, .section-body { padding-inline: 1rem; }
  .consent-actions .btn, .dialog-actions .btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.cookie-table { max-width: 78ch; margin-top: 2rem; }
.cookie-table table { font-size: .9rem; }

/* ---- immagini responsive ---- */
picture { display: contents; }
.card-img picture { display: block; position: absolute; inset: .75rem; }
.card-img picture img { position: static; width: 100%; height: 100%; }
.rich picture img { max-width: 100%; height: auto; }

/* ---- telefono: un prodotto per riga, immagine a sinistra ---- */
@media (max-width: 600px) {
  .grid { grid-template-columns: 1fr; gap: .6rem; }
  .card { display: grid; grid-template-columns: 120px 1fr; grid-template-rows: auto auto; }
  .card-link { display: contents; }
  .card-img { grid-row: 1 / span 2; aspect-ratio: auto; min-height: 120px; border-right: 1px solid var(--line); }
  .card-body { padding: .8rem .9rem .2rem; align-content: start; }
  .card .langs { grid-column: 2; padding: 0 .9rem .8rem; }
}

/* ---- animazioni leggere: solo trasform e opacità, disattivate con prefers-reduced-motion ---- */
@media (prefers-reduced-motion: no-preference) {
  .card { transition: border-color .18s, box-shadow .18s, transform .18s; }
  .card:hover { transform: translateY(-2px); }
  .btn { transition: background-color .15s, border-color .15s, color .15s, transform .12s, box-shadow .15s; }
  .btn:hover { box-shadow: 0 4px 14px rgb(90 194 227 / .35); }
  .btn:active { transform: translateY(1px) scale(.99); box-shadow: none; }
  .section[open] > .section-body { animation: sec-in .28s cubic-bezier(.16, 1, .3, 1) both; }
  .live:not([hidden]) { animation: fade-up .16s ease-out both; }
  .lang-menu[open] ul { animation: fade-up .16s ease-out both; }
  .dialog[open] { animation: dialog-in .22s cubic-bezier(.16, 1, .3, 1) both; }
  .dialog[open]::backdrop { animation: fade .22s ease-out both; }
  .consent:not([hidden]) .consent-box { animation: rise .35s cubic-bezier(.16, 1, .3, 1) both; }
  .form-msg:not([hidden]) { animation: fade-up .2s ease-out both; }
  .langs a, .toc a, .pager a { transition: background-color .15s, border-color .15s, color .15s; }
  .product-photo img { animation: fade .3s ease-out both; }
}
@keyframes sec-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes dialog-in { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }

/* ---- barra azioni fissa su telefono (scheda prodotto): quattro azioni sempre visibili ---- */
.action-dock { display: none; }
@media (max-width: 860px) {
  .action-dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: .3rem; padding: .35rem .5rem calc(.35rem + env(safe-area-inset-bottom));
    background: rgb(255 255 255 / .97); border-top: 1px solid var(--line); box-shadow: 0 -6px 24px rgb(16 40 40 / .12); }
  .action-dock[hidden] { display: none; }
  .action-dock a, .action-dock button { display: grid; justify-items: center; align-content: center; gap: .2rem; min-height: 56px; padding: .35rem .2rem; border: 0; border-radius: var(--r);
    background: transparent; color: var(--accent-dark); font: 700 .74rem/1.1 var(--font); text-decoration: none; cursor: pointer; }
  .action-dock a:first-child { background: var(--accent); color: var(--on-accent); }
  .action-dock a:active, .action-dock button:active { background: var(--accent-soft); transform: translateY(1px); }
  body.has-dock main { padding-bottom: 76px; }
  .js .product .actions[data-pos="bottom"] { display: none; }
  @media (prefers-reduced-motion: no-preference) { .action-dock:not([hidden]) { animation: rise .25s cubic-bezier(.16, 1, .3, 1) both; } }
}

/* ---- elenco raggruppato per sottofamiglia ---- */
.group + .group { margin-top: 2.25rem; }
.group-title { display: flex; align-items: baseline; gap: .5rem; margin: 0 0 .9rem; padding-bottom: .5rem; border-bottom: 2px solid var(--accent); font-size: 1.15rem; }
.group-title span { font-size: .85rem; font-weight: 600; color: var(--muted); }

/* ---- fuori produzione ---- */
.badge-disc { display: inline-block; padding: .15rem .5rem; border-radius: var(--r-s); background: #ecefef; color: #4c5a5e; font-size: .74rem; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; }
.card.is-discontinued .card-img { filter: grayscale(.6); opacity: .85; }
.card.is-discontinued .card-title { color: #4c5a5e; }
.disc-note { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: -.2rem 0 .9rem; color: var(--muted); font-size: .95rem; }

/* ---- torna in cima ---- */
.to-top { position: fixed; right: 1rem; bottom: 1rem; z-index: 34; display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--accent-dark); box-shadow: var(--shadow); cursor: pointer; }
.to-top:hover { color: var(--on-accent); background: var(--accent); border-color: var(--accent); }
body.has-dock .to-top { bottom: 84px; }
@media (prefers-reduced-motion: no-preference) { .to-top:not([hidden]) { animation: fade-up .2s ease-out both; } }
@media print { .to-top { display: none !important; } }

/* =====================================================================
   Revisione grafica (ottobre 2026): frecce, contatori, logo, colori, pulsanti e campi
   ===================================================================== */
:root { --accent-deep: #2aa6cc; --accent-glow: rgb(90 194 227 / .28); --r: 12px; }

/* logo più grande */
.logo img { height: 62px; }
.bar { min-height: 88px; }
@media (max-width: 600px) { .logo img { height: 46px; } .bar { min-height: 68px; } }

/* frecce: menu lingua, sezioni, select */
.lang-menu summary { gap: .55rem; padding: .5rem .9rem; border-width: 2px; }
.lang-menu summary .ico:last-child { color: var(--accent-dark); transition: transform .2s; }
.lang-menu[open] summary .ico:last-child { transform: rotate(180deg); }
.section summary .sec-toggle { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-dark); transition: transform .25s, background-color .2s; }
.section[open] summary .sec-toggle { transform: rotate(180deg); background: var(--accent); color: var(--on-accent); }
.section summary:hover .sec-toggle { background: var(--accent); color: var(--on-accent); }
.section summary .ico { transition: none; }
.section[open] summary .ico { transform: none; }
select { appearance: none; -webkit-appearance: none; padding-right: 2.8rem; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2317718d' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6l6 -6'/></svg>"); background-repeat: no-repeat; background-position: right .8rem center; background-size: 24px; }

/* contatori e numeri visibili */
.pill { display: inline-flex; align-items: center; min-height: 28px; padding: .15rem .7rem; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: .85rem; font-weight: 700; letter-spacing: .01em; white-space: nowrap; }
.count { margin-top: .35rem; }
.group-title { align-items: center; gap: .75rem; margin-bottom: 1.1rem; padding-bottom: .6rem; border-bottom: 2px solid var(--line); font-size: 1.3rem; }
.group-title .pill { font-size: .8rem; }
.sec-head .count, .toc b { font-weight: 700; }

/* campi: bordo arrotondato dedicato, alone al focus */
.search-field { border: 2px solid #cfdada; border-radius: 16px; padding: .35rem .35rem .35rem 1rem; box-shadow: 0 2px 10px rgb(16 40 40 / .05); transition: border-color .2s, box-shadow .2s; }
.search-field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 5px var(--accent-glow), 0 2px 10px rgb(16 40 40 / .05); }
select, .field input, .field textarea { border: 2px solid #cfdada; border-radius: var(--r); background: #fff; transition: border-color .2s, box-shadow .2s, transform .15s; }
select:hover, .field input:hover, .field textarea:hover { border-color: #9fc4ce; }
select:focus, .field input:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 5px var(--accent-glow); }
.check input { border-radius: 6px; }

/* pulsanti: pieno con leggero gradiente e ombra colorata; secondario con bordo a due toni */
.btn { border-radius: var(--r); border-width: 2px; letter-spacing: .01em; }
.btn-primary { background: linear-gradient(180deg, #74cdea, var(--accent) 55%, #4fb9db); border-color: transparent; color: var(--on-accent); box-shadow: 0 6px 16px -6px rgb(42 166 204 / .7), inset 0 1px 0 rgb(255 255 255 / .35); }
.btn-primary:hover { background: linear-gradient(180deg, #86d5ee, #4fb9db 55%, #3eb0d6); box-shadow: 0 10px 22px -8px rgb(42 166 204 / .85), inset 0 1px 0 rgb(255 255 255 / .35); }
.btn-secondary { border-color: #cfdada; box-shadow: 0 1px 2px rgb(16 40 40 / .05); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent-dark); background: #f4fbfd; box-shadow: 0 6px 16px -8px rgb(42 166 204 / .6); }
@media (prefers-reduced-motion: no-preference) {
  .btn { transition: transform .18s cubic-bezier(.16, 1, .3, 1), box-shadow .18s, background-color .18s, border-color .18s, color .18s; }
  .btn:hover { transform: translateY(-2px); }
  .btn:active { transform: translateY(0) scale(.98); }
  .search-field .btn-primary:hover { transform: none; }
  .langs a { transition: transform .15s, background-color .15s, border-color .15s, color .15s; }
  .langs a:hover { transform: translateY(-1px); }
}
.action-dock a:first-child { background: linear-gradient(180deg, #74cdea, var(--accent) 60%); }

/* footer più deciso */
.site-footer { position: relative; background: linear-gradient(180deg, #123b45, #0b2730 70%); color: #d9e6e9; }
.site-footer::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--accent), #2aa6cc 50%, var(--accent)); }
.footer-grid { padding-top: 3rem; }
.footer-name { font-size: 1.05rem; }
.site-footer a, .site-footer .linklike { color: #fff; text-decoration-color: rgb(255 255 255 / .35); text-underline-offset: .22em; transition: color .15s, text-decoration-color .15s; }
.site-footer a:hover, .site-footer .linklike:hover { color: var(--accent); text-decoration-color: var(--accent); }
.footer-copy { color: #9cb6bc; border-top-color: rgb(255 255 255 / .1); }

/* intestazione con un filo di profondità */
.site-header { box-shadow: 0 2px 12px rgb(16 40 40 / .05); }
.card { border-radius: 14px; }
.card:hover, .card:focus-within { box-shadow: 0 10px 28px -10px rgb(42 166 204 / .5); }
.product-photo, .section, .toc, .empty { border-radius: 14px; }
/* correzioni: icona dentro il cerchio delle sezioni e freccia della select */
.section summary .sec-toggle .ico { color: inherit; }
select { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2317718d' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6l6 -6'/></svg>") !important; background-repeat: no-repeat !important; background-position: right .8rem center !important; background-size: 24px !important; background-color: #fff; }
/* intestazioni dei gruppi: fascia tinta con barra laterale */
.group + .group { margin-top: 2.75rem; }
.group-title { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 0 0 1.25rem; padding: .85rem 1.25rem .85rem 1.1rem; border: 0; border-left: 6px solid var(--accent); border-radius: 0 12px 12px 0; background: linear-gradient(90deg, var(--accent-soft), rgb(227 245 250 / .35)); font-size: 1.4rem; font-weight: 750; letter-spacing: -.01em; }
.group-name { color: var(--ink); }
.group-count { flex: none; font-size: .95rem; font-weight: 600; color: var(--accent-dark); }
@media (max-width: 600px) { .group-title { font-size: 1.15rem; padding: .7rem .9rem; } .group-count { font-size: .85rem; } }
.group-title .group-name { font-size: inherit; font-weight: inherit; color: var(--ink); }
/* conteggio dei gruppi: etichetta piena, ben visibile */
.group-count { display: inline-flex; align-items: center; gap: .35rem; min-height: 34px; padding: .25rem .95rem; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: .95rem; font-weight: 800; letter-spacing: .01em; box-shadow: 0 4px 12px -4px rgb(42 166 204 / .6); }
@media (max-width: 600px) { .group-count { min-height: 30px; padding: .2rem .75rem; font-size: .85rem; } }
