/* ==========================================================================
   Front-end – stile ispirato a Laristoservice, identità Fe.ma.
   I colori del cliente sono variabili: per un nuovo cliente sovrascrivile
   in site/assets/theme.css (caricato dopo questo file).
   ========================================================================== */

@font-face { font-family: "Jakarta"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/plus-jakarta-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Jakarta"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/plus-jakarta-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Jakarta"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/plus-jakarta-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Jakarta"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/plus-jakarta-sans-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Jakarta"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/plus-jakarta-sans-latin-800-normal.woff2") format("woff2"); }

:root {
  /* Brand */
  --brand: #00AEEF;          /* ciano del logo: forme, accenti, icone */
  --brand-ink: #00719C;      /* ciano scurito per testo su bianco (AA) */
  --accent: #E11B22;         /* rosso del logo: dettagli */
  --accent-ink: #C8151C;     /* rosso per pulsanti con testo bianco (AA) */
  --accent-hover: #A81117;
  --ink: #0C2A3B;            /* titoli, sezioni scure */
  --ink-2: #163B50;
  --text: #22323D;
  --muted: #56666F;
  --mist: #EEF3F6;           /* sezioni alterne */
  --mist-2: #E2EAEF;
  --line: #D5DFE5;
  --white: #FFFFFF;
  --ok: #18794E;
  --warn: #9A5B00;

  --font: "Jakarta", "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-xs: .8125rem;   /* 13 */
  --fs-sm: .9375rem;   /* 15 */
  --fs-base: 1.0625rem;/* 17 */
  --fs-md: 1.25rem;    /* 20 */
  --fs-lg: 1.5rem;     /* 24 */
  --fs-xl: clamp(1.75rem, 1.2rem + 1.8vw, 2.5rem);   /* 28 → 40 */
  --fs-2xl: clamp(2.25rem, 1.4rem + 3.2vw, 3.75rem); /* 36 → 60 */

  --container: 1240px;
  --gutter: clamp(16px, 4vw, 32px);
  --radius: 6px;
  --radius-lg: 14px;
  --pill: 999px;
  --section: clamp(56px, 8vw, 112px);
  --header-h: 84px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --cut: 14%;              /* ampiezza del taglio diagonale */
}

/* ---------- Reset essenziale ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
html, body { overflow-x: clip; }
body { margin: 0; font-family: var(--font); font-size: var(--fs-base); line-height: 1.6; color: var(--text); background: var(--white); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--brand-ink); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.12; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 2px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 1000; border-radius: var(--radius); }
.skip-link:focus { top: 12px; color: #fff; }
.icon { width: 1.25em; height: 1.25em; flex: none; }
[hidden] { display: none !important; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
main { display: block; min-height: 50vh; }
main:focus { outline: none; }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: calc(820px + 2 * var(--gutter)); }

/* ---------- Pulsanti ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: 48px; padding: .7em 1.6em; border-radius: var(--pill); border: 2px solid transparent; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease); white-space: nowrap; }
.btn .icon { width: 18px; height: 18px; }
.btn--primary { background: var(--accent-ink); color: #fff; }
.btn--primary:hover { background: var(--accent-hover); color: #fff; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--ink-2); color: #fff; }
.btn--outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--outline:hover { background: var(--ink); color: #fff; }
.btn--ghost { color: var(--ink); background: transparent; border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--mist); color: var(--ink); }
.btn--outline-light { border-color: rgba(255,255,255,.7); color: #fff; }
.btn--outline-light:hover { background: #fff; color: var(--ink); }
.btn--sm { min-height: 40px; padding: .5em 1.15em; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.linklike { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; cursor: pointer; font-size: inherit; }
.link-arrow { display: inline-flex; align-items: center; gap: .5em; font-weight: 700; font-size: var(--fs-xs); letter-spacing: .06em; text-transform: uppercase; color: var(--accent-ink); text-decoration: none; }
.link-arrow .icon { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.link-arrow:hover { color: var(--ink); }
.link-arrow:hover .icon { transform: translateX(3px); }
.round-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff; display: inline-grid; place-items: center; cursor: pointer; color: var(--ink); }
.round-btn:hover { border-color: var(--ink); }

/* ---------- Etichette di sezione: segno diagonale del logo ---------- */
.kicker { display: inline-flex; align-items: center; gap: 12px; margin: 0 0 14px; font-size: var(--fs-sm); font-weight: 700; color: var(--accent-ink); }
.kicker::before { content: ""; width: 22px; height: 22px; flex: none; background: linear-gradient(135deg, var(--brand) 0 46%, transparent 46% 56%, var(--accent) 56%); clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
.kicker--light { color: #fff; }
.section-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .kicker { justify-content: center; }
.section-title { font-size: var(--fs-xl); margin-bottom: .4em; }
.section-lead { font-size: var(--fs-md); color: var(--muted); line-height: 1.5; margin: 0; }
.section-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(24px, 3vw, 40px); }
.section-row .section-head { margin-bottom: 0; }

/* ---------- Sezioni ---------- */
.section { padding-block: var(--section); }
.section--mist { background: var(--mist); }
.section--tight { padding-block: calc(var(--section) * .6); }

/* ---------- Topbar + header ---------- */
.topbar { background: var(--ink); color: #DCE8EE; font-size: var(--fs-xs); }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 36px; }
.topbar__msg { margin: 0; font-weight: 600; letter-spacing: .02em; }
.topbar__phone { display: inline-flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; font-weight: 700; }
.topbar__phone .icon { width: 16px; height: 16px; color: var(--brand); }
.topbar__phone:hover { color: var(--brand); }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header__inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.brand { flex: none; display: block; }
.brand img { width: 190px; height: auto; }
.main-nav { margin-left: auto; }
.main-nav__list { list-style: none; display: flex; align-items: center; gap: 4px; }
.main-nav__item { position: relative; display: flex; align-items: center; }
.main-nav__item > a { display: block; white-space: nowrap; padding: 10px 12px; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink); text-decoration: none; position: relative; }
.main-nav__item > a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; background: var(--brand); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.main-nav__item > a:hover::after, .main-nav__item > a[aria-current="page"]::after { transform: scaleX(1); }
.submenu-toggle { display: inline-grid; place-items: center; width: 28px; height: 28px; margin-left: -8px; background: none; border: 0; cursor: pointer; color: var(--ink); }
.submenu-toggle .icon { width: 16px; height: 16px; transition: transform .2s; }
.submenu { list-style: none; position: absolute; top: 100%; left: 0; min-width: 250px; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--brand); padding: 8px; box-shadow: 0 16px 40px -18px rgba(12,42,59,.35); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility .18s; }
.submenu a { display: block; padding: 10px 12px; color: var(--ink); text-decoration: none; font-size: var(--fs-sm); font-weight: 600; border-radius: var(--radius); }
.submenu a:hover { background: var(--mist); }
.main-nav__item.has-children:hover .submenu, .main-nav__item.has-children:focus-within .submenu, .main-nav__item.is-open .submenu { opacity: 1; visibility: visible; transform: none; }
.main-nav__mobile-extra { display: none; }

.header-actions { display: flex; align-items: center; gap: 4px; }
.header-action { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--ink); text-decoration: none; }
.header-action:hover { background: var(--mist); color: var(--ink); }
.header-action .icon { width: 22px; height: 22px; }
.badge { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent-ink); color: #fff; font-size: 11px; font-weight: 800; line-height: 18px; text-align: center; }
.header-cta { margin-left: 8px; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: none; color: var(--ink); cursor: pointer; place-items: center; }
.nav-toggle .icon { width: 26px; height: 26px; }
.nav-toggle .icon-close { display: none; }

@media (max-width: 1520px) {
  .header-cta { display: none; }
}
@media (max-width: 1240px) {
  .main-nav__item > a { padding: 10px 9px; letter-spacing: .03em; }
}
@media (max-width: 1024px) {
  :root { --header-h: 68px; }
  .brand img { width: 160px; }
  .nav-toggle { display: inline-grid; }
  .main-nav { position: fixed; inset: calc(var(--header-h) + 36px) 0 0 0; background: #fff; overflow-y: auto; padding: 16px var(--gutter) 40px; transform: translateX(100%); visibility: hidden; transition: transform .3s var(--ease), visibility 0s linear .3s; margin: 0; border-top: 1px solid var(--line); }
  .main-nav.is-open { transform: none; visibility: visible; transition: transform .3s var(--ease); }
  .main-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav__item { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
  .main-nav__item > a { flex: 1; padding: 16px 0; font-size: var(--fs-sm); }
  .main-nav__item > a::after { display: none; }
  .submenu-toggle { width: 44px; height: 44px; margin: 0; }
  .submenu { position: static; width: 100%; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 12px 12px; display: none; }
  .main-nav__item.is-open .submenu { display: block; }
  .main-nav__item.is-open .submenu-toggle .icon { transform: rotate(180deg); }
  .main-nav__item.has-children:hover .submenu { opacity: 1; }
  .main-nav__mobile-extra { display: block; margin-top: 24px; }
  .main-nav__mobile-extra .btn { width: 100%; }
  body.nav-open { overflow: hidden; }
  body.nav-open .nav-toggle .icon-open { display: none; }
  body.nav-open .nav-toggle .icon-close { display: block; }
}
@media (max-width: 560px) {
  .topbar__msg { display: none; }
  .topbar__inner { justify-content: center; }
  .brand img { width: 132px; }
  .header-action { width: 40px; height: 40px; }
  .site-header__inner { gap: 8px; }
}

/* ---------- Flash e toast ---------- */
.flash-stack { display: grid; gap: 8px; padding-top: 16px; }
.flash { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; border-radius: var(--radius); border: 1px solid; font-weight: 600; font-size: var(--fs-sm); }
.flash p { margin: 0; }
.flash .icon { margin-top: 2px; }
.flash--success { background: #EAF6F0; border-color: #A9D8C0; color: #11593A; }
.flash--error { background: #FDECEC; border-color: #F2B4B6; color: #8E1015; }
.flash--info { background: #E8F6FD; border-color: #A7DCF3; color: #00577A; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 200; background: var(--ink); color: #fff; padding: 14px 20px; border-radius: var(--radius); font-weight: 600; font-size: var(--fs-sm); box-shadow: 0 18px 40px -16px rgba(0,0,0,.5); display: flex; gap: 14px; align-items: center; max-width: calc(100vw - 32px); }
.toast a { color: var(--brand); font-weight: 700; }

/* ---------- Hero (taglio diagonale del logo) ---------- */
.hero { position: relative; display: grid; grid-template-columns: 1fr; background: #fff; overflow: hidden; }
.hero__inner { position: relative; z-index: 2; display: flex; align-items: center; min-height: clamp(520px, 72vh, 720px); padding-block: 64px; }
.hero__text { max-width: 560px; }
.hero__title { font-size: var(--fs-2xl); line-height: 1.04; letter-spacing: -.035em; margin-bottom: 24px; }
.hero__lead { font-size: var(--fs-md); color: var(--muted); max-width: 32em; line-height: 1.5; }
.hero__facts { list-style: none; display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); font-size: var(--fs-sm); font-weight: 600; color: var(--ink); }
.hero__facts li { display: flex; gap: 10px; align-items: center; }
.hero__facts .icon { color: var(--brand); }
.hero__media { position: absolute; top: 0; right: 0; bottom: 0; width: 52%; margin: 0; clip-path: polygon(var(--cut) 0, 100% 0, 100% 100%, 0 100%); }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__wedge { position: absolute; left: 0; bottom: 0; width: 34%; aspect-ratio: 1; background: var(--accent); clip-path: polygon(0 100%, 100% 100%, 100% 82%, 18% 82%, 0 100%); clip-path: polygon(14% 100%, 100% 100%, 100% 0); opacity: .95; mix-blend-mode: normal; }
@media (max-width: 900px) {
  .hero__inner { min-height: 0; padding-block: 40px 32px; order: 2; }
  .hero__media { position: relative; width: 100%; height: 300px; order: 1; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 82%); }
  .hero__wedge { width: 26%; }
}

/* ---------- Page head (pagine interne) ---------- */
.page-head { background: var(--mist); position: relative; overflow: hidden; }
.page-head__inner { display: grid; gap: 32px; padding-block: clamp(32px, 5vw, 64px); align-items: center; }
.page-head--image .page-head__inner { grid-template-columns: 1.1fr .9fr; }
.page-head__title { font-size: var(--fs-2xl); letter-spacing: -.035em; margin-bottom: 16px; }
.page-head__lead { font-size: var(--fs-md); color: var(--muted); max-width: 42em; margin: 0; line-height: 1.5; }
.page-head__media { margin: 0; aspect-ratio: 3 / 2; }
.page-head__media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) { .page-head--image .page-head__inner { grid-template-columns: 1fr; } }
.cut { clip-path: polygon(var(--cut) 0, 100% 0, 100% 100%, 0 100%); }
.cut--left { clip-path: polygon(0 0, 100% 0, calc(100% - var(--cut)) 100%, 0 100%); }

.breadcrumbs { margin-bottom: 18px; font-size: var(--fs-xs); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 0; }
.breadcrumbs li { display: flex; align-items: center; color: var(--muted); }
.breadcrumbs li + li::before { content: "/"; margin: 0 8px; color: #9AABB5; }
.breadcrumbs a { color: var(--ink); font-weight: 600; text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }

/* ---------- Percorsi (card grandi) ---------- */
.paths__grid { display: grid; gap: 20px; }
.paths__grid--2 { grid-template-columns: repeat(2, 1fr); }
.paths__grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .paths__grid--2, .paths__grid--3 { grid-template-columns: 1fr; } }
.path-card { position: relative; display: flex; flex-direction: column; padding: clamp(28px, 3vw, 44px); background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--text); min-height: 100%; transition: border-color .2s; overflow: hidden; }
.path-card::after { content: ""; position: absolute; right: 0; bottom: 0; width: 64px; height: 64px; background: var(--brand); clip-path: polygon(100% 0, 100% 100%, 0 100%); transition: background-color .2s; }
.path-card:hover { border-color: var(--ink); color: var(--text); }
.path-card:hover::after { background: var(--accent); }
.path-card__icon { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--mist); color: var(--brand-ink); margin-bottom: 24px; }
.path-card__icon .icon { width: 28px; height: 28px; }
.path-card__title { font-size: var(--fs-lg); margin-bottom: 4px; }
.path-card__sub { color: var(--accent-ink); font-weight: 700; font-size: var(--fs-sm); margin-bottom: 14px; }
.path-card__text { color: var(--muted); flex: 1; }
.path-card__cta { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-xs); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); margin-top: 12px; }
.path-card__cta .icon { width: 18px; height: 18px; }

/* ---------- Features ---------- */
.features { display: grid; gap: clamp(20px, 3vw, 40px) clamp(20px, 3vw, 32px); }
.features--2 { grid-template-columns: repeat(2, 1fr); }
.features--3 { grid-template-columns: repeat(3, 1fr); }
.features--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1024px) { .features--4 { grid-template-columns: repeat(2, 1fr); } .features--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .features--2, .features--3, .features--4 { grid-template-columns: 1fr; } }
.feature { position: relative; scroll-margin-top: calc(var(--header-h) + 24px); }
.features--plain .feature { padding-top: 24px; border-top: 2px solid var(--ink); }
.features--cards .feature { background: #fff; border: 1px solid var(--line); padding: 32px 28px; }
.section--mist .features--cards .feature { border-color: transparent; }
.feature__icon { display: inline-grid; place-items: center; width: 48px; height: 48px; color: var(--brand-ink); margin-bottom: 16px; }
.features--plain .feature__icon { width: auto; height: auto; }
.feature__icon .icon { width: 36px; height: 36px; stroke-width: 1.5; }
.feature__title { font-size: var(--fs-md); margin-bottom: 8px; letter-spacing: -.01em; }
.feature__text { color: var(--muted); font-size: var(--fs-sm); margin-bottom: 12px; }
.feature:target { outline: 2px solid var(--brand); outline-offset: 12px; }

/* ---------- Split testo/immagine ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.split--left .split__media { order: -1; }
.split__media { margin: 0; aspect-ratio: 4 / 3; }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split--faq { align-items: start; grid-template-columns: .8fr 1.2fr; }
@media (max-width: 860px) { .split, .split--faq { grid-template-columns: 1fr; } .split--left .split__media { order: 0; } }
.prose { max-width: 66ch; }
.prose p, .prose li { color: var(--text); }
.prose h2 { font-size: var(--fs-lg); margin-top: 1.6em; }
.prose h3 { font-size: var(--fs-md); margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.25em; margin: 0 0 1em; }
.prose li { margin-bottom: .4em; }
.prose img { margin: 1.5em 0; }
.prose blockquote { margin: 1.5em 0; padding-left: 20px; border-left: 3px solid var(--brand); color: var(--ink); font-weight: 600; }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: var(--fs-sm); }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 10px 8px; text-align: left; }
.prose--long { font-size: var(--fs-base); }
.checklist { list-style: none; display: grid; gap: 12px; margin-top: 20px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; color: var(--ink); }
.checklist .icon { color: #fff; background: var(--brand); border-radius: 50%; padding: 3px; width: 22px; height: 22px; margin-top: 2px; stroke-width: 2.5; }

/* ---------- Contatori (cifre in outline) ---------- */
.counters-section { padding-block: calc(var(--section) * .8); }
.counters { list-style: none; display: grid; gap: 32px; }
.counters--3 { grid-template-columns: repeat(3, 1fr); }
.counters--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 860px) { .counters--3, .counters--4 { grid-template-columns: repeat(2, 1fr); } }
.counter { display: grid; grid-template-columns: auto 1fr; align-items: end; column-gap: 4px; }
.counter__value { font-size: clamp(3.5rem, 2.4rem + 4vw, 6rem); font-weight: 800; line-height: .9; letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 2px var(--brand-ink); }
.counter__suffix { font-size: clamp(1.75rem, 1.2rem + 2vw, 3rem); font-weight: 800; line-height: 1; color: var(--accent); align-self: start; padding-top: .2em; }
.counter__label { grid-column: 1 / -1; margin-top: 14px; font-weight: 700; color: var(--ink); font-size: var(--fs-sm); max-width: 16em; }

/* ---------- Carosello realizzazioni ---------- */
.projects-band { overflow: hidden; }
.projects-band__head { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: end; margin-bottom: 40px; }
.projects-band__head .section-head { margin-bottom: 0; }
.projects-band__intro p { color: var(--muted); }
.carousel-nav { display: flex; gap: 10px; align-items: center; }
.carousel-nav .link-arrow { margin-left: 12px; }
@media (max-width: 860px) { .projects-band__head { grid-template-columns: 1fr; } }
.carousel { padding-left: max(var(--gutter), calc((100vw - var(--container)) / 2)); }
.carousel__track { list-style: none; display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-right: var(--gutter); scroll-padding-left: max(var(--gutter), calc((100vw - var(--container)) / 2)); }
.carousel__track::-webkit-scrollbar { display: none; }
.project-tile { flex: 0 0 clamp(240px, 24vw, 300px); scroll-snap-align: start; }
.project-tile a { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; color: #fff; text-decoration: none; background: var(--ink); }
.project-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.project-tile a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,42,59,0) 40%, rgba(12,42,59,.85) 100%); }
.project-tile a:hover img { transform: scale(1.04); }
.project-tile__text { position: absolute; z-index: 1; left: 22px; right: 22px; bottom: 22px; display: grid; gap: 4px; }
.project-tile__sector { font-size: var(--fs-xs); font-weight: 700; color: var(--brand); }
.project-tile__title { font-size: var(--fs-md); font-weight: 800; line-height: 1.2; }
.project-tile__loc { font-size: var(--fs-xs); opacity: .85; }

/* ---------- Overlap foto + card ---------- */
.overlap { position: relative; padding-block: clamp(48px, 8vw, 120px); }
.overlap__media { position: absolute; inset: 0; }
.overlap__media img { width: 100%; height: 100%; object-fit: cover; }
.overlap__container { position: relative; display: flex; justify-content: flex-end; }
.overlap--left .overlap__container { justify-content: flex-start; }
.overlap__card { background: #fff; width: min(640px, 100%); padding: clamp(28px, 5vw, 64px); border-top: 4px solid var(--brand); }
.overlap__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; margin-top: 28px; }
.overlap__item-title { font-size: var(--fs-base); margin-bottom: 6px; letter-spacing: -.01em; }
.overlap__grid p { font-size: var(--fs-sm); color: var(--muted); margin: 0; }
@media (max-width: 640px) { .overlap__grid { grid-template-columns: 1fr; } .overlap { padding-top: 220px; } }

/* ---------- Marchi ---------- */
.brands { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.brand-chip a, .brand-chip > span { position: relative; display: grid; place-items: center; min-height: 96px; padding: 16px; background: #fff; border: 1px solid transparent; text-decoration: none; color: var(--ink); transition: border-color .2s; }
.brand-chip a:hover { border-color: var(--ink); }
.brand-chip img { max-height: 48px; width: auto; filter: grayscale(1); opacity: .85; transition: filter .2s, opacity .2s; }
.brand-chip a:hover img { filter: none; opacity: 1; }
.brand-chip__name { font-weight: 800; font-size: var(--fs-md); letter-spacing: -.01em; }
.brand-chip__badge { position: absolute; top: 8px; right: 8px; font-size: 11px; font-weight: 700; color: var(--brand-ink); }
.brand-chip--partner a { border-color: var(--brand); }

/* ---------- News ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
@media (max-width: 960px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .post-grid { grid-template-columns: 1fr; } }
.post-card__media { display: block; aspect-ratio: 850 / 540; overflow: hidden; background: var(--mist); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.post-card:hover .post-card__media img { transform: scale(1.03); }
.post-card__body { padding-top: 18px; }
.post-card__date { display: block; font-size: var(--fs-xs); font-weight: 700; color: var(--accent-ink); margin-bottom: 8px; }
.post-card__title { font-size: var(--fs-md); letter-spacing: -.01em; }
.post-card__title a { color: var(--ink); text-decoration: none; }
.post-card__title a:hover { color: var(--brand-ink); }
.post-card p { color: var(--muted); font-size: var(--fs-sm); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; background: var(--ink); color: #DCE8EE; padding-block: clamp(48px, 7vw, 96px); overflow: hidden; }
.cta-band::before { content: ""; position: absolute; right: -40px; top: 0; bottom: 0; width: 38%; background: var(--ink-2); clip-path: polygon(30% 0, 100% 0, 100% 100%, 0 100%); }
.cta-band--image::before { display: none; }
.cta-band__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .22; }
.cta-band__inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band__title { color: #fff; font-size: var(--fs-xl); max-width: 18em; margin-bottom: 10px; }
.cta-band__text { max-width: 40em; margin: 0; font-size: var(--fs-md); line-height: 1.5; }
.cta-band__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.cta-band__phone { display: inline-flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; font-weight: 800; font-size: var(--fs-md); }
.cta-band__phone small { display: block; font-size: var(--fs-xs); font-weight: 600; color: #A9C1CD; }
.cta-band__phone .icon { width: 44px; height: 44px; padding: 11px; border-radius: 50%; background: var(--brand); color: var(--ink); }
.cta-band__phone:hover { color: var(--brand); }

/* ---------- Timeline (anni reali) ---------- */
.timeline-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
@media (max-width: 860px) { .timeline-wrap { grid-template-columns: 1fr; } }
.timeline { list-style: none; position: relative; }
.timeline::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 2px; background: var(--line); }
.timeline__item { position: relative; display: grid; grid-template-columns: 96px 1fr; gap: 20px; padding: 0 0 32px 28px; }
.timeline__item::before { content: ""; position: absolute; left: -5px; top: 9px; width: 12px; height: 12px; background: var(--brand); transform: rotate(45deg); }
.timeline__year { font-weight: 800; font-size: var(--fs-lg); color: var(--ink); line-height: 1.2; }
.timeline__body h3 { font-size: var(--fs-base); margin-bottom: 4px; letter-spacing: -.01em; }
.timeline__body p { color: var(--muted); font-size: var(--fs-sm); margin: 0; }
@media (max-width: 520px) { .timeline__item { grid-template-columns: 1fr; gap: 4px; } }

/* ---------- Steps ---------- */
.steps { list-style: none; display: grid; gap: 24px; counter-reset: s; }
.steps--3 { grid-template-columns: repeat(3, 1fr); }
.steps--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .steps--3, .steps--4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .steps--3, .steps--4 { grid-template-columns: 1fr; } }
.step { position: relative; padding: 28px 24px 24px; background: #fff; border: 1px solid var(--line); }
.section--mist .step { border-color: transparent; }
.step__n { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 800; margin-bottom: 16px; }
.step__title { font-size: var(--fs-md); margin-bottom: 6px; }
.step p { color: var(--muted); font-size: var(--fs-sm); margin: 0; }

/* ---------- Accordion ---------- */
.accordion { border-top: 1px solid var(--line); }
.accordion__item { border-bottom: 1px solid var(--line); }
.accordion__item summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; cursor: pointer; font-weight: 700; color: var(--ink); font-size: var(--fs-md); }
.accordion__item summary::-webkit-details-marker { display: none; }
.accordion__icon .icon { color: var(--accent-ink); transition: transform .2s; }
.accordion__item[open] .accordion__icon .icon { transform: rotate(45deg); }
.accordion__body { padding: 0 0 20px; color: var(--muted); max-width: 62ch; }

/* ---------- Form ---------- */
.form-card { background: #fff; border: 1px solid var(--line); padding: clamp(24px, 4vw, 44px); }
.form-card__title { font-size: var(--fs-lg); margin-bottom: 20px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; align-content: start; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: var(--fs-xs); font-weight: 700; color: var(--ink); }
.field .req { color: var(--accent-ink); }
.field input:not([type="checkbox"]):not([type="radio"]), .field select, .field textarea, .input-group input, .input-group select {
  width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid #B9C7D0; border-radius: var(--radius); background: #fff; color: var(--text); font-size: 16px; transition: border-color .15s, box-shadow .15s; }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .input-group input:focus, .input-group select:focus { outline: none; border-color: var(--brand-ink); box-shadow: 0 0 0 3px rgba(0,174,239,.25); }
.field--error input, .field--error select, .field--error textarea { border-color: var(--accent-ink); }
.field-error { margin: 0; color: var(--accent-ink); font-size: var(--fs-xs); font-weight: 600; }
.field-hint { margin: 0; color: var(--muted); font-size: var(--fs-xs); }
.field--check { margin: 18px 0; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: var(--fs-sm); cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent-ink); flex: none; }
.radio-cards { display: grid; gap: 10px; }
.radio-card { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border: 1px solid #B9C7D0; border-radius: var(--radius); cursor: pointer; background: #fff; }
.radio-card:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.radio-card input { width: 20px; height: 20px; accent-color: var(--ink); margin-top: 2px; flex: none; }
.radio-card strong { display: block; color: var(--ink); }
.radio-card small { color: var(--muted); }
.radio-card__price { margin-left: auto; font-weight: 800; color: var(--ink); white-space: nowrap; }
.segmented { display: inline-flex; border: 1px solid #B9C7D0; border-radius: var(--pill); padding: 4px; gap: 4px; background: #fff; }
.segmented label { padding: 8px 18px; border-radius: var(--pill); cursor: pointer; font-weight: 700; font-size: var(--fs-sm); color: var(--muted); }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented label:has(input:checked) { background: var(--ink); color: #fff; }
.segmented label:has(input:focus-visible) { outline: 3px solid var(--brand); }
.input-group { display: flex; gap: 8px; }
.input-group input { flex: 1; }
.input-group--split { display: grid; grid-template-columns: 1fr 1fr auto; }
.input-group--split select { min-width: 0; }
@media (max-width: 620px) { .input-group--split { grid-template-columns: 1fr; } }
fieldset { border: 0; padding: 0; margin: 0 0 28px; min-width: 0; }
legend { font-weight: 800; font-size: var(--fs-md); color: var(--ink); margin-bottom: 16px; padding: 0; letter-spacing: -.01em; }

/* ---------- Contatti ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { display: grid; gap: 20px; margin: 0 0 28px; }
.contact-list div { display: grid; gap: 4px; }
.contact-list dt { display: flex; gap: 10px; align-items: center; font-size: var(--fs-xs); font-weight: 700; color: var(--muted); }
.contact-list dt .icon { color: var(--brand-ink); }
.contact-list dd { margin: 0 0 0 30px; font-weight: 600; color: var(--ink); }
.contact-list dd a { color: var(--ink); }
.map { position: relative; aspect-ratio: 16 / 10; background: var(--mist) linear-gradient(135deg, transparent 49.5%, var(--line) 49.5% 50.5%, transparent 50.5%); display: grid; place-content: center; justify-items: center; gap: 10px; text-align: center; padding: 20px; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map__note { font-size: var(--fs-xs); color: var(--muted); margin: 0; max-width: 32em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #B9CCD6; font-size: var(--fs-sm); }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--brand); text-decoration: underline; }
.site-footer__grid { display: grid; grid-template-columns: 1.3fr 1.2fr 1fr 1fr; gap: 40px; padding-block: clamp(48px, 6vw, 80px); }
@media (max-width: 960px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer__grid { grid-template-columns: 1fr; } }
.site-footer__brand img { width: 190px; margin-bottom: 20px; }
.site-footer__brand p { max-width: 26em; }
.site-footer__title { color: #fff; font-size: var(--fs-sm); font-weight: 800; letter-spacing: .04em; margin-bottom: 18px; }
.site-footer ul { list-style: none; display: grid; gap: 10px; }
.site-footer address { font-style: normal; display: grid; gap: 14px; }
.site-footer address p { display: flex; gap: 12px; margin: 0; }
.site-footer address .icon { color: var(--brand); margin-top: 2px; }
.social { display: flex !important; gap: 8px !important; }
.social a { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); }
.site-footer__bottom { border-top: 1px solid rgba(255,255,255,.12); font-size: var(--fs-xs); }
.site-footer__bottom-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 20px; }
.site-footer__bottom p { margin: 0; }
.site-footer__bottom ul { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer__bottom .linklike { color: #fff; text-decoration: none; font-size: var(--fs-xs); }

/* ---------- Cookie banner ---------- */
.cookie { position: fixed; z-index: 150; left: 16px; right: 16px; bottom: 16px; display: flex; justify-content: flex-start; pointer-events: none; }
.cookie__inner { pointer-events: auto; width: min(460px, 100%); background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--brand); padding: 24px; box-shadow: 0 24px 60px -24px rgba(12,42,59,.45); font-size: var(--fs-sm); }
.cookie__title { font-size: var(--fs-md); margin-bottom: 8px; }
.cookie__prefs { display: grid; gap: 10px; margin-bottom: 16px; }
.cookie__actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 30px -10px rgba(0,0,0,.4); }
.wa-float .icon { width: 30px; height: 30px; }

/* ==========================================================================
   SHOP
   ========================================================================== */
.shop-layout { display: grid; grid-template-columns: 260px 1fr; gap: 40px; align-items: start; }
@media (max-width: 960px) { .shop-layout { grid-template-columns: 1fr; } }
.shop-sidebar { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 28px; }
@media (max-width: 960px) { .shop-sidebar { position: static; } }
.side-block h2 { font-size: var(--fs-sm); font-weight: 800; letter-spacing: .02em; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 2px solid var(--ink); }
.side-list { list-style: none; display: grid; gap: 2px; }
.side-list a { display: flex; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: var(--radius); color: var(--text); text-decoration: none; font-size: var(--fs-sm); font-weight: 600; }
.side-list a:hover { background: var(--mist); color: var(--ink); }
.side-list a[aria-current] { background: var(--ink); color: #fff; }
.side-list a span { color: var(--muted); font-weight: 500; }
.side-list a[aria-current] span { color: #A9C1CD; }
.side-list ul { list-style: none; padding-left: 12px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.toolbar__count { margin: 0; color: var(--muted); font-size: var(--fs-sm); }
.toolbar form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.toolbar select, .toolbar input[type="search"] { min-height: 42px; padding: 8px 12px; border: 1px solid #B9C7D0; border-radius: var(--radius); background: #fff; font-size: var(--fs-sm); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--pill); background: var(--mist); color: var(--ink); font-size: var(--fs-xs); font-weight: 700; text-decoration: none; }
.chip:hover { background: var(--mist-2); color: var(--ink); }
.chip .icon { width: 14px; height: 14px; }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.product-grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1024px) { .product-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .product-grid--4 { grid-template-columns: 1fr; } }
.pcard { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); transition: border-color .2s; }
.pcard:hover { border-color: var(--ink); }
.pcard__media { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; background: #F6F9FA; overflow: hidden; }
.pcard__media img { width: 100%; height: 100%; object-fit: contain; padding: 12px; mix-blend-mode: multiply; }
.pcard__placeholder { color: #A9BAC4; display: grid; place-items: center; width: 100%; height: 100%; background: linear-gradient(135deg, transparent 0 calc(50% - .5px), #E3EAEE calc(50% - .5px) calc(50% + .5px), transparent calc(50% + .5px)); }
.pcard__placeholder .icon { width: 56px; height: 56px; stroke-width: 1.2; }
.pcard .tag { position: absolute; top: 12px; left: 12px; }
.pcard__body { display: flex; flex-direction: column; flex: 1; padding: 16px 18px 18px; }
.pcard__meta { display: flex; gap: 10px; flex-wrap: wrap; justify-content: space-between; font-size: var(--fs-xs); font-weight: 700; color: var(--brand-ink); margin-bottom: 6px; }
.pcard__title { font-size: var(--fs-base); font-weight: 700; letter-spacing: -.005em; line-height: 1.3; margin-bottom: 14px; flex: 1; }
.pcard__title a { color: var(--ink); text-decoration: none; }
.pcard__title a::after { content: ""; position: absolute; }
.pcard__title a:hover { color: var(--brand-ink); }
.pcard__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.pcard__foot .btn .icon { width: 16px; height: 16px; }
.price { margin: 0; display: grid; line-height: 1.2; }
.price strong { font-size: var(--fs-md); font-weight: 800; color: var(--ink); }
.price s { font-size: var(--fs-xs); color: var(--muted); }
.price small { font-size: 11px; color: var(--muted); font-weight: 600; }
.price--quote strong { font-size: var(--fs-sm); color: var(--brand-ink); }
.tag { display: inline-block; padding: 4px 10px; font-size: 11px; font-weight: 800; letter-spacing: .04em; border-radius: var(--pill); }
.tag--red { background: var(--accent-ink); color: #fff; }
.tag--ink { background: var(--ink); color: #fff; }
.tag--mist { background: var(--mist); color: var(--ink); }
.stock { font-size: var(--fs-xs); font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.stock::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.stock--in { color: var(--ok); }
.stock--low { color: var(--warn); }
.stock--out { color: var(--accent-ink); }
.mono-code { font-variant-numeric: tabular-nums; letter-spacing: .02em; color: var(--muted); }
.empty { text-align: center; padding: 64px 24px; background: var(--mist); }
.empty .icon { width: 48px; height: 48px; margin: 0 auto 16px; color: var(--brand-ink); }
.empty h2 { font-size: var(--fs-lg); }
.empty p { color: var(--muted); }

.pagination ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 40px; }
.pagination a, .pagination span { display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; font-weight: 700; font-size: var(--fs-sm); }
.pagination a:hover { border-color: var(--ink); }
.pagination [aria-current] { background: var(--ink); color: #fff; border-color: var(--ink); }
.pagination .gap { border: 0; }

/* Scheda prodotto */
.product { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: start; padding-block: 32px var(--section); }
@media (max-width: 900px) { .product { grid-template-columns: 1fr; } }
.gallery__main { position: relative; aspect-ratio: 1; background: #F6F9FA; display: grid; place-items: center; border: 1px solid var(--line); overflow: hidden; }
.gallery__main img { width: 100%; height: 100%; object-fit: contain; padding: 24px; mix-blend-mode: multiply; }
.gallery__main .pcard__placeholder .icon { width: 96px; height: 96px; }
.gallery__thumbs { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 10px; }
.gallery__thumbs button { width: 100%; aspect-ratio: 1; padding: 6px; background: #F6F9FA; border: 1px solid var(--line); cursor: pointer; }
.gallery__thumbs button[aria-current="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.product__brand { font-weight: 700; color: var(--brand-ink); font-size: var(--fs-sm); margin-bottom: 8px; text-decoration: none; display: inline-block; }
.product__title { font-size: var(--fs-xl); letter-spacing: -.03em; }
.product__codes { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: var(--fs-sm); color: var(--muted); margin-bottom: 20px; }
.product__codes strong { color: var(--ink); font-weight: 700; }
.product__short { font-size: var(--fs-md); color: var(--muted); line-height: 1.5; }
.buybox { margin-top: 28px; padding: 24px; background: var(--mist); display: grid; gap: 18px; }
.buybox .price strong { font-size: var(--fs-xl); }
.buybox__row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.qty { display: inline-flex; align-items: center; border: 1px solid #B9C7D0; border-radius: var(--pill); background: #fff; height: 48px; }
.qty button { width: 44px; height: 100%; border: 0; background: none; cursor: pointer; color: var(--ink); display: grid; place-items: center; }
.qty button .icon { width: 16px; height: 16px; }
.qty input { width: 52px; height: 100%; border: 0; text-align: center; font-weight: 800; background: transparent; -moz-appearance: textfield; font-size: 16px; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.buybox .btn--primary { flex: 1; min-width: 200px; }
.assurances { list-style: none; display: grid; gap: 10px; font-size: var(--fs-sm); color: var(--ink); font-weight: 600; margin-top: 4px; }
.assurances li { display: flex; gap: 10px; align-items: center; }
.assurances .icon { color: var(--brand-ink); }
.tabs { margin-top: 48px; }
.spec-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.spec-table th, .spec-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table th { width: 40%; color: var(--muted); font-weight: 600; }
.spec-table td { color: var(--ink); font-weight: 600; }
.spec-table tr:nth-child(odd) { background: #F8FAFB; }
.compat-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.compat-list a { display: inline-flex; gap: 6px; padding: 8px 14px; border: 1px solid var(--line); border-radius: var(--pill); text-decoration: none; color: var(--ink); font-weight: 600; font-size: var(--fs-sm); }
.compat-list a:hover { border-color: var(--ink); }
.detail-section { padding-top: 40px; margin-top: 40px; border-top: 1px solid var(--line); }
.detail-section h2 { font-size: var(--fs-lg); }

/* Ricambi: ricerca */
.finder { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(24px, 4vw, 64px); align-items: center; background: var(--ink); color: #DCE8EE; padding: clamp(28px, 5vw, 56px); position: relative; overflow: hidden; }
.finder::after { content: ""; position: absolute; right: 0; bottom: 0; width: 120px; height: 120px; background: var(--brand); clip-path: polygon(100% 0, 100% 100%, 0 100%); opacity: .9; }
.finder__title { color: #fff; font-size: var(--fs-xl); }
.finder__intro p { margin: 0; }
.finder__forms { position: relative; z-index: 1; display: grid; gap: 22px; }
.finder__form label, .finder__label { display: block; font-size: var(--fs-xs); font-weight: 700; color: #fff; margin-bottom: 8px; }
.finder .input-group input, .finder .input-group select { border-color: transparent; }
@media (max-width: 900px) { .finder { grid-template-columns: 1fr; } }
.parts-hero { padding-block: 32px 0; }
.brand-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.brand-tile { display: flex; flex-direction: column; gap: 4px; padding: 22px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); height: 100%; }
.brand-tile:hover { border-color: var(--ink); color: var(--ink); }
.brand-tile img { height: 40px; width: auto; object-fit: contain; object-position: left; margin-bottom: 10px; }
.brand-tile strong { font-size: var(--fs-md); letter-spacing: -.01em; }
.brand-tile span { font-size: var(--fs-xs); color: var(--muted); font-weight: 600; }
.model-families { display: grid; gap: 32px; }
.model-family h3 { font-size: var(--fs-md); margin-bottom: 12px; }
.model-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.model-list a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 700; font-size: var(--fs-sm); }
.model-list a:hover { border-color: var(--ink); }
.model-list small { color: var(--muted); font-weight: 600; white-space: nowrap; }

.parts-table-wrap { overflow-x: auto; border: 1px solid var(--line); background: #fff; }
.parts-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); min-width: 760px; }
.parts-table th { text-align: left; padding: 12px 14px; background: var(--ink); color: #fff; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .02em; white-space: nowrap; }
.parts-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.parts-table tr:hover td { background: #F7FAFB; }
.parts-table__img { width: 64px; }
.parts-table__img img, .parts-table__img .pcard__placeholder { width: 56px; height: 56px; object-fit: contain; background: #F6F9FA; display: grid; place-items: center; }
.parts-table__img .icon { width: 24px; height: 24px; }
.parts-table__name a { color: var(--ink); font-weight: 700; text-decoration: none; }
.parts-table__name a:hover { color: var(--brand-ink); text-decoration: underline; }
.parts-table__name small { display: block; color: var(--muted); }
.parts-table__code { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--ink); white-space: nowrap; }
.parts-table__price { white-space: nowrap; text-align: right; }
.parts-table__buy form { display: flex; gap: 6px; justify-content: flex-end; align-items: center; }
.parts-table__buy input { width: 60px; min-height: 40px; padding: 6px; text-align: center; border: 1px solid #B9C7D0; border-radius: var(--radius); }
@media (max-width: 760px) {
  .parts-table { min-width: 0; }
  .parts-table thead { display: none; }
  .parts-table tr { display: grid; grid-template-columns: 64px 1fr; gap: 4px 12px; padding: 14px; border-bottom: 1px solid var(--line); }
  .parts-table td { border: 0; padding: 0; }
  .parts-table__img { grid-row: span 3; }
  .parts-table__price { text-align: left; }
  .parts-table__buy { grid-column: 1 / -1; }
  .parts-table__buy form { justify-content: flex-start; margin-top: 8px; }
}

/* Carrello e checkout */
.cart-layout { display: grid; grid-template-columns: 1fr 380px; gap: 40px; align-items: start; padding-block: 24px var(--section); }
@media (max-width: 960px) { .cart-layout { grid-template-columns: 1fr; } }
.cart-lines { list-style: none; border-top: 2px solid var(--ink); }
.cart-line { display: grid; grid-template-columns: 88px 1fr auto auto; gap: 18px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.cart-line__img { width: 88px; height: 88px; background: #F6F9FA; display: grid; place-items: center; }
.cart-line__img img { width: 100%; height: 100%; object-fit: contain; padding: 6px; mix-blend-mode: multiply; }
.cart-line__name { font-weight: 700; color: var(--ink); text-decoration: none; }
.cart-line__meta { font-size: var(--fs-xs); color: var(--muted); margin: 2px 0 0; }
.cart-line__total { font-weight: 800; color: var(--ink); min-width: 96px; text-align: right; }
.cart-line__remove { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 8px; display: inline-grid; }
.cart-line__remove:hover { color: var(--accent-ink); }
@media (max-width: 620px) { .cart-line { grid-template-columns: 72px 1fr; } .cart-line__img { width: 72px; height: 72px; } .cart-line__qty, .cart-line__total { grid-column: 2; text-align: left; } }
.summary { background: var(--mist); padding: 28px; position: sticky; top: calc(var(--header-h) + 20px); }
.summary h2 { font-size: var(--fs-lg); }
.summary dl { display: grid; grid-template-columns: 1fr auto; gap: 10px 16px; margin: 0 0 20px; font-size: var(--fs-sm); }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; text-align: right; font-weight: 700; color: var(--ink); }
.summary .summary__total { font-size: var(--fs-md); color: var(--ink); font-weight: 800; padding-top: 12px; border-top: 2px solid var(--ink); }
.summary__note { font-size: var(--fs-xs); color: var(--muted); }
.summary__lines { list-style: none; display: grid; gap: 12px; margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--line); font-size: var(--fs-sm); }
.summary__lines li { display: flex; justify-content: space-between; gap: 12px; }
.summary__lines span:last-child { font-weight: 700; color: var(--ink); white-space: nowrap; }
.coupon-form { display: flex; gap: 8px; margin-bottom: 16px; }
.coupon-form input { flex: 1; min-height: 44px; padding: 8px 12px; border: 1px solid #B9C7D0; border-radius: var(--radius); text-transform: uppercase; }
.progress { height: 6px; background: #fff; border-radius: 3px; overflow: hidden; margin: 8px 0 20px; }
.progress span { display: block; height: 100%; background: var(--brand); }
.checkout-layout { display: grid; grid-template-columns: 1fr 400px; gap: 48px; align-items: start; padding-block: 24px var(--section); }
@media (max-width: 1024px) { .checkout-layout { grid-template-columns: 1fr; } .summary { position: static; } }
.notice { padding: 16px 18px; background: var(--mist); border-left: 4px solid var(--brand); font-size: var(--fs-sm); margin-bottom: 20px; }
.notice--warn { border-left-color: var(--warn); background: #FFF6E5; }
.bank-box { display: grid; grid-template-columns: auto 1fr; gap: 6px 20px; padding: 20px; background: #fff; border: 1px solid var(--line); font-size: var(--fs-sm); }
.bank-box dt { color: var(--muted); }
.bank-box dd { margin: 0; font-weight: 700; color: var(--ink); word-break: break-all; }

/* Account */
.account-layout { display: grid; grid-template-columns: 240px 1fr; gap: 40px; padding-block: 24px var(--section); align-items: start; }
@media (max-width: 860px) { .account-layout { grid-template-columns: 1fr; } }
.account-nav { display: grid; gap: 2px; }
.account-nav a, .account-nav button { display: flex; gap: 10px; align-items: center; padding: 11px 14px; border-radius: var(--radius); color: var(--ink); text-decoration: none; font-weight: 600; font-size: var(--fs-sm); background: none; border: 0; cursor: pointer; width: 100%; text-align: left; }
.account-nav a:hover, .account-nav button:hover { background: var(--mist); }
.account-nav a[aria-current] { background: var(--ink); color: #fff; }
.auth-wrap { max-width: 520px; margin: 0 auto; padding-block: 24px var(--section); }
.auth-wrap--wide { max-width: 820px; }
.stat-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 32px; }
@media (max-width: 620px) { .stat-cards { grid-template-columns: 1fr; } }
.stat-card { padding: 20px; background: var(--mist); text-decoration: none; color: var(--ink); }
.stat-card strong { display: block; font-size: var(--fs-xl); font-weight: 800; line-height: 1; margin-bottom: 6px; }
.stat-card span { font-size: var(--fs-sm); color: var(--muted); font-weight: 600; }
.data-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.data-table th { text-align: left; font-size: var(--fs-xs); color: var(--muted); font-weight: 700; padding: 10px 12px; border-bottom: 2px solid var(--ink); }
.data-table td { padding: 14px 12px; border-bottom: 1px solid var(--line); }
.data-table .num { text-align: right; white-space: nowrap; }
.table-wrap { overflow-x: auto; }
.status { display: inline-block; padding: 3px 10px; border-radius: var(--pill); font-size: 12px; font-weight: 700; background: var(--mist); color: var(--ink); white-space: nowrap; }
.status--paid, .status--completed, .status--shipped, .status--resolved, .status--accepted, .status--approved { background: #E3F4EB; color: #11593A; }
.status--pending_payment, .status--new, .status--pending { background: #FFF1D6; color: #7A4A00; }
.status--cancelled, .status--refunded, .status--rejected { background: #FDECEC; color: #8E1015; }
.status--processing, .status--in_progress, .status--scheduled, .status--sent { background: #E3F3FB; color: #00577A; }

/* Blog / realizzazioni */
.article { padding-block: 32px var(--section); }
.article__cover { margin: 0 0 40px; aspect-ratio: 16 / 8; overflow: hidden; }
.article__cover img { width: 100%; height: 100%; object-fit: cover; }
.article__meta { color: var(--muted); font-size: var(--fs-sm); font-weight: 600; margin-bottom: 24px; }
.filters-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filters-row a { padding: 8px 16px; border-radius: var(--pill); border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 700; font-size: var(--fs-sm); }
.filters-row a[aria-current] { background: var(--ink); border-color: var(--ink); color: #fff; }
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 960px) { .project-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .project-grid { grid-template-columns: 1fr; } }
.project-grid .project-tile { flex: none; }
.project-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin-top: 40px; }
.project-gallery a { display: block; aspect-ratio: 4 / 3; overflow: hidden; }
.project-gallery img { width: 100%; height: 100%; object-fit: cover; }
.facts { display: flex; flex-wrap: wrap; gap: 12px 32px; padding: 20px 0; margin-bottom: 32px; border-block: 1px solid var(--line); font-size: var(--fs-sm); }
.facts dt { color: var(--muted); font-weight: 600; font-size: var(--fs-xs); }
.facts dd { margin: 0; color: var(--ink); font-weight: 700; }

/* Errori */
.error-page { text-align: center; padding-block: var(--section); }
.error-page__code { font-size: clamp(5rem, 3rem + 10vw, 10rem); font-weight: 800; line-height: 1; color: transparent; -webkit-text-stroke: 2px var(--brand); margin-bottom: 16px; }

/* Movimento ridotto */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Stampa */
@media print {
  .topbar, .site-header, .site-footer, .cookie, .wa-float, .btn { display: none !important; }
  body { font-size: 12pt; }
}
