
/* Arolo AV Suite -- stylesheet */

/* Archivo (SIL Open Font License), ospitato sul sito: nessuna richiesta a Google Fonts */
@font-face {
  font-family: "Archivo"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("../fonts/archivo-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("../fonts/archivo-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  --navy-950: #111111;
  --navy-900: #1a1a1a;
  --navy-800: #222222;
  --navy-700: #333333;
  --ink: #111111;
  --muted: #555555;
  --line: #dcdcdc;
  --bg: #ffffff;
  --bg-alt: #f4f4f4;
  --amber: #d9241b;
  --amber-dark: #b51d15;
  --teal: #16b3a6;
  --green: #2fb673;
  /* colori delle icone applicazione (scudo B3): accenti per prodotto */
  --app-spc: #22a06b;
  --app-spp: #185fa5;
  --app-license: #b26a12;
  --app-zw3d: #004a82;
  --app-spc-light: #5cd29a;
  --app-spp-light: #6ea8e3;
  --app-license-light: #e5a04b;
  --radius: 10px;
  --shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.22);
  --max: 1180px;
  font-size: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Archivo", "Segoe UI", "Helvetica Neue", Arial, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 0.6em; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; color: var(--muted); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--amber); color: #fff;
  padding: 10px 16px; z-index: 200; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(17, 17, 17, 0.97);
  backdrop-filter: saturate(150%) blur(6px);
  border-bottom: 3px solid var(--amber);
}
.header-inner {
  display: flex; align-items: center; gap: 20px;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; margin-right: auto; }
.brand-mark {
  display: block; width: 36px; height: 36px; object-fit: contain; flex: none;
}
.brand-mark--lg { width: 72px; height: 72px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-weight: 800; font-size: 1.05rem; white-space: nowrap; }
/* the tagline stays in the markup but is not shown: the seven menu entries need the room */
.brand-tagline { display: none; font-size: 0.68rem; color: #a8a8a8; }

.primary-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.primary-nav a {
  display: block; padding: 10px 11px; color: #cfcfcf; text-decoration: none; white-space: nowrap;
  font-size: 0.92rem; font-weight: 600; border-radius: 8px; transition: background .15s, color .15s;
}
.primary-nav a:hover { background: rgba(255,255,255,0.08); color: #fff; }
.primary-nav a.active { color: #fff; background: var(--amber); }
.primary-nav .nav-group { position: relative; }
.nav-group-toggle {
  display: flex; align-items: center; gap: 6px; padding: 10px 11px; color: #cfcfcf; background: none; border: none;
  font: inherit; font-size: 0.92rem; font-weight: 600; border-radius: 8px; cursor: pointer; white-space: nowrap;
  transition: background .15s, color .15s;
}
.nav-group-toggle::after {
  content: ""; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg); transition: transform .15s;
}
.nav-group-toggle:hover, .nav-group.open .nav-group-toggle { background: rgba(255,255,255,0.08); color: #fff; }
.primary-nav .nav-group .nav-group-toggle.active { color: #fff; background: var(--amber); }
.nav-group.open .nav-group-toggle::after { transform: translateY(1px) rotate(-135deg); }
.primary-nav .nav-mega {
  display: none; position: absolute; top: calc(100% + 10px); left: 0; z-index: 60;
  grid-template-columns: repeat(2, minmax(270px, auto)); gap: 36px; padding: 24px 28px 18px;
  background: #fff; color: var(--ink); border-radius: 14px; box-shadow: 0 24px 50px -18px rgba(0,0,0,.45);
}
/* invisible bridge over the gap, so the panel stays open while the pointer moves down */
.primary-nav .nav-mega::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.primary-nav .nav-group:hover .nav-mega, .primary-nav .nav-group:focus-within .nav-mega, .primary-nav .nav-group.open .nav-mega { display: grid; }
.nav-mega-title {
  margin: 0 0 10px; padding-bottom: 8px; border-bottom: 1px solid var(--line);
  font-size: 0.74rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); white-space: nowrap;
}
.primary-nav .nav-mega ul { display: flex; flex-direction: column; gap: 2px; }
.primary-nav .nav-mega-item {
  display: flex; align-items: flex-start; gap: 12px; padding: 8px 10px; margin: 0 -10px;
  color: var(--ink); white-space: normal; border-radius: 8px;
}
.primary-nav .nav-mega-item:hover, .primary-nav .nav-mega-item.active { background: var(--bg-alt); color: var(--ink); }
.nav-icon { flex: none; width: 28px; height: 28px; margin-top: 0; }
.nav-mega-text { display: flex; flex-direction: column; gap: 2px; }
.nav-mega-text strong { font-size: 1rem; font-weight: 800; }
.nav-mega-text small { font-size: 0.84rem; font-weight: 400; color: var(--muted); }

.lang-switcher { display: flex; gap: 2px; border: 1px solid rgba(255,255,255,0.15); border-radius: 8px; padding: 3px; }
.lang-switcher a {
  padding: 5px 9px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.03em;
  text-decoration: none; color: #a8a8a8; border-radius: 6px;
}
.lang-switcher a:hover { color: #fff; }
.lang-switcher a.active { background: var(--amber); color: #fff; }
.lang-switcher.js-lang { position: relative; border: 0; padding: 0; }
.lang-toggle {
  display: flex; align-items: center; justify-content: center; width: 40px; height: 34px; padding: 0;
  background: none; border: 1px solid rgba(255,255,255,0.2); border-radius: 8px; cursor: pointer;
}
.lang-toggle:hover, .lang-switcher.open .lang-toggle { border-color: rgba(255,255,255,0.5); }
.lang-flag { display: block; width: 24px; height: 16px; object-fit: cover; border-radius: 2px; box-shadow: 0 0 0 1px rgba(255,255,255,0.15); }
.lang-switcher.js-lang .lang-menu {
  display: none; position: absolute; right: 0; top: calc(100% + 8px); z-index: 60;
  flex-direction: column; gap: 2px; padding: 4px; background: var(--ink); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px; box-shadow: 0 18px 40px -16px rgba(0,0,0,.6);
}
.lang-switcher.open .lang-menu { display: flex; }
.lang-switcher.js-lang .lang-menu a { display: flex; align-items: center; justify-content: center; width: 40px; height: 32px; padding: 0; }
.lang-switcher.js-lang .lang-menu a:hover { background: rgba(255,255,255,0.1); }
.lang-switcher.js-lang .lang-menu a.active { background: none; box-shadow: inset 0 0 0 2px var(--amber); }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; background: none; border: none; cursor: pointer; flex: none;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  color: var(--ink);
  background: var(--bg);
  padding: 88px 0 76px;
}
.hero .wrap { max-width: 880px; }
.kicker {
  text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.74rem; font-weight: 800;
  color: var(--amber); margin: 0 0 14px;
}
.hero h1 { font-size: clamp(2rem, 4.2vw, 3rem); color: var(--ink); margin-bottom: 0.5em; font-weight: 800; letter-spacing: -0.02em; }
.hero h1 .eyebrow { display: block; font-size: 0.42em; color: var(--muted); font-weight: 700; letter-spacing: 0.06em; margin-bottom: 0.5em; text-transform: uppercase; }
.hero-sub { font-size: 1.15rem; color: var(--muted); max-width: 640px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero .btn-ghost, .workflow-panel .btn-ghost { border-color: var(--ink); color: var(--ink); }
.hero .btn-ghost:hover, .workflow-panel .btn-ghost:hover { background: var(--ink); color: #fff; }

/* home: testo a sinistra, screenshot del programma a destra */
.hero--home .wrap { max-width: var(--max); display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.hero-shot {
  margin: 0; background: var(--navy-900); border-radius: 12px; overflow: hidden;
  box-shadow: 0 30px 60px -24px rgba(0,0,0,.45); border: 1px solid var(--navy-700);
}
.hero-shot img { display: block; width: 100%; height: auto; }
@media (max-width: 900px) {
  .hero--home .wrap { grid-template-columns: 1fr; gap: 36px; }
}

.accent-spc .kicker { color: var(--app-spc); }
.accent-spp .kicker { color: var(--app-spp); }
.accent-license .kicker { color: var(--app-license); }
.accent-zw3d .kicker { color: var(--app-zw3d); }
.hero-app-icon { display: block; width: 64px; height: 64px; margin: 0 0 18px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: 999px; font-weight: 700; font-size: 0.95rem;
  text-decoration: none; border: 2px solid transparent; transition: transform .15s, background .15s, border-color .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--amber); color: #fff; }
.btn-primary:hover { background: var(--amber-dark); }
.btn-ghost { border-color: rgba(255,255,255,0.35); color: #fff; }
.btn-ghost:hover { border-color: #fff; }

/* ---------- Screenshots ---------- */
.screenshot-section { padding-top: 0; padding-bottom: 56px; background: var(--bg); }
.screenshot-section .wrap { max-width: 980px; }
.screenshot-frame {
  margin: 0; background: var(--navy-800); border-radius: 12px; overflow: hidden;
  box-shadow: 0 30px 60px -24px rgba(0,0,0,.45); border: 1px solid var(--navy-700);
}
.screenshot-dots { display: flex; gap: 6px; padding: 12px 14px; }
.screenshot-dots span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.18); display: inline-block; }
.screenshot-frame img { display: block; width: 100%; height: auto; background: #1a1a1a; }
.screenshot-frame figcaption { padding: 14px 18px; font-size: 0.86rem; color: #a8a8a8; background: var(--navy-800); }

/* ---------- Galleria di schermate (pagina SPC) ---------- */
.section-intro { text-align: center; max-width: 640px; margin: 0 auto; font-size: 1.05rem; }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin-top: 36px; }
.gallery-item { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.gallery-item img {
  display: block; width: 100%; height: auto; border-radius: var(--radius);
  border: 1px solid var(--navy-700); background: var(--navy-900); box-shadow: var(--shadow);
}
.gallery-item figcaption { font-size: 0.92rem; color: var(--muted); line-height: 1.5; }
@media (max-width: 760px) { .gallery { grid-template-columns: 1fr; } }

/* ---------- Sections ---------- */
.section { padding: 76px 0; }
.section--alt { background: var(--bg-alt); }
.section h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); max-width: 760px; }
.section-title-center { text-align: center; margin-left: auto; margin-right: auto; }
.prose-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 28px; }
.prose-cols p { font-size: 1.02rem; color: var(--ink); }

/* ---------- Product cards (home) ---------- */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.product-card {
  display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow); transition: transform .18s, box-shadow .18s; border-top: 4px solid var(--amber);
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -16px rgba(0,0,0,.28); }
.product-card--spc { border-top-color: var(--app-spc); }
.product-card--spp { border-top-color: var(--app-spp); }
.product-card--license { border-top-color: var(--app-license); }
.product-card--zw3d { border-top-color: var(--app-zw3d); }
.product-card-icon { width: 46px; height: 46px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: var(--bg-alt); color: var(--navy-800); }
.product-card-icon:has(img) { background: none; }
.product-card-icon img { display: block; width: 46px; height: 46px; }
.product-card h3 { font-size: 1.15rem; margin-bottom: 4px; }
.product-card p { font-size: 0.94rem; margin-bottom: 6px; }
.card-link { font-weight: 700; color: var(--amber-dark); font-size: 0.88rem; margin-top: auto; }

/* ---------- Feature grid ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
.feature-grid--4 { grid-template-columns: repeat(4, 1fr); }
.feature-grid--2 { grid-template-columns: repeat(2, 1fr); }
.feature-card {
  background: #fff; border: 1px solid var(--ink); border-radius: var(--radius); padding: 24px;
}
.feature-icon {
  width: 42px; height: 42px; border-radius: 10px; margin-bottom: 14px;
  background: var(--navy-900); color: #fff; display: flex; align-items: center; justify-content: center;
}
.feature-card h3 { font-size: 1.02rem; margin-bottom: 8px; }
.feature-card h3::before { content: ""; display: block; width: 28px; height: 4px; background: var(--amber); margin-bottom: 10px; }
.feature-card p { font-size: 0.92rem; margin-bottom: 0; }
.icon { width: 22px; height: 22px; }

/* ---------- Flow / workflow ---------- */
.flow { display: flex; align-items: stretch; gap: 8px; margin-top: 40px; flex-wrap: wrap; justify-content: center; }
.flow-step {
  flex: 1 1 200px; max-width: 230px; text-align: center; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 16px;
}
.flow-icon {
  width: 44px; height: 44px; margin: 0 auto 12px; border-radius: 50%; background: var(--bg-alt);
  color: var(--navy-800); display: flex; align-items: center; justify-content: center;
}
.flow-icon:has(img) { background: none; border-radius: 0; }
.flow-icon img { display: block; width: 44px; height: 44px; }
.flow-step h4 { font-size: 0.98rem; margin-bottom: 6px; }
.flow-step p { font-size: 0.86rem; margin-bottom: 0; }
.flow-arrow { display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 1.4rem; flex: 0 0 auto; }

/* ---------- Badges ---------- */
.badge-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; justify-content: center; }
.badge {
  padding: 9px 18px; border-radius: 999px; background: var(--navy-900); color: #fff;
  font-size: 0.85rem; font-weight: 700;
}

/* ---------- Download page ---------- */
.download-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.download-card {
  display: flex; flex-direction: column; gap: 8px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); border-top: 4px solid var(--green);
}
.download-card--spc { border-top-color: var(--app-spc); }
.download-card--spp { border-top-color: var(--app-spp); }
.download-card--license { border-top-color: var(--app-license); }
.download-card h3 { font-size: 1.1rem; margin-bottom: 2px; }
.download-card p { font-size: 0.92rem; }
.download-version { font-size: 0.8rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.download-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-top: 8px; }
.download-card .btn { align-self: flex-start; }
.download-card .btn .icon { width: 18px; height: 18px; vertical-align: -3px; margin-right: 4px; }
.download-help-link { font-size: 0.88rem; white-space: nowrap; }
.requirements-text { font-size: 1.02rem; color: var(--ink); max-width: 760px; }

/* ---------- Pricing page ---------- */
.price-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.price-card {
  display: flex; flex-direction: column; gap: 14px; background: #fff; border: 1px solid var(--ink);
  border-top: 4px solid var(--amber); border-radius: var(--radius); padding: 30px;
}
.price-card--spc { border-top-color: var(--app-spc); }
.price-card--spp { border-top-color: var(--app-spp); }
.price-card--license { border-top-color: var(--app-license); }
.price-stack { display: flex; flex-direction: column; gap: 24px; }
.section-intro + .price-grid { margin-top: 36px; }
.price-included { font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1; }
.price-head { display: flex; gap: 14px; align-items: flex-start; }
.price-head img { flex: none; width: 46px; height: 46px; }
.price-head h2 { font-size: 1.2rem; margin: 0 0 4px; }
.price-head p { font-size: 0.94rem; margin: 0; }
.price-main { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin: 6px 0 0; color: var(--ink); }
.price-main .price-amount { font-size: 2.6rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1; }
.price-unit { font-size: 0.8rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.price-maint { font-size: 0.94rem; margin: 0; color: var(--ink); }
.price-maint .price-amount { font-weight: 700; white-space: nowrap; }
.price-options-title {
  font-size: 0.8rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em;
  margin: 8px 0 0; padding-top: 20px; border-top: 1px solid var(--line);
}
.price-options { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.price-options li { display: flex; justify-content: space-between; gap: 20px; padding: 16px 18px; background: var(--bg-alt); border-radius: 8px; }
.price-options h4 { font-size: 1rem; margin: 0 0 4px; }
.price-options p { font-size: 0.88rem; margin: 0; }
.price-option-cost { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; }
.price-option-cost > .price-amount { font-size: 1.35rem; font-weight: 800; color: var(--ink); white-space: nowrap; }
.price-option-cost > .price-included { font-size: 1.35rem; }
.price-option-cost .price-maint { font-size: 0.8rem; color: var(--muted); }
.price-note { font-size: 0.86rem; margin: 0; }
.price-card .text-link { margin-top: 4px; }
@media (max-width: 900px) { .price-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) {
  .price-card { padding: 24px 20px; }
  .price-options li { flex-direction: column; gap: 10px; }
  .price-option-cost { align-items: flex-start; text-align: left; }
}

/* ---------- Contact cards (about page) ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; text-align: left; }
.contact-card h3 { font-size: 0.98rem; margin-bottom: 8px; }
.contact-card p { font-size: 0.94rem; margin-bottom: 0; color: var(--ink); }
.contact-card .text-link { font-size: 0.94rem; }

/* ---------- Integration callout ---------- */
.integration-section { }
.integration-inner { display: flex; gap: 26px; align-items: flex-start; }
.integration-icon {
  flex: none; width: 54px; height: 54px; border-radius: 14px; background: var(--navy-900); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.integration-icon .icon { width: 26px; height: 26px; }
.integration-inner h2 { margin-bottom: 10px; }
.text-link { font-weight: 700; color: var(--amber-dark); text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* ---------- CTA ---------- */
.cta-section { background: var(--navy-950); color: #fff; }
.cta-inner { text-align: center; max-width: 620px; }
.cta-section:has(.contact-form) .cta-inner { max-width: 720px; }
.cta-inner h2 { color: #fff; }
.cta-inner p { color: #c8c8c8; }
.cta-inner .hero-cta { justify-content: center; }

/* ---------- Contact form ---------- */
.contact-form { text-align: left; margin-top: 30px; display: flex; flex-direction: column; gap: 16px; }
.contact-form[hidden] { display: none; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label { font-size: 0.84rem; font-weight: 700; color: #c8c8c8; }
.form-field input, .form-field textarea {
  font: inherit; font-size: 0.95rem; padding: 11px 14px; border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.18); background: rgba(255,255,255,0.05); color: #fff;
  resize: vertical;
}
.form-field input::placeholder, .form-field textarea::placeholder { color: #8a8a8a; }
.form-field input:focus, .form-field textarea:focus { outline: 2px solid var(--amber); outline-offset: 1px; border-color: var(--amber); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.contact-form .btn { align-self: flex-start; border: none; cursor: pointer; }
.form-success { margin-top: 30px; padding: 22px 24px; border-radius: var(--radius); background: rgba(47, 182, 115, 0.12); border: 1px solid rgba(47, 182, 115, 0.4); }
.form-success h3 { color: #fff; margin-bottom: 6px; }
.form-success p { color: #c8c8c8; margin-bottom: 0; }
@media (max-width: 620px) {
  .form-row { grid-template-columns: 1fr; }
}

/* ---------- Pre-download form (Download/PreDownload.asp) ---------- */
.predownload-section .cta-inner { max-width: 760px; }
.predownload-product { font-size: 1.05rem; }
.predownload-product strong { color: #fff; }
.predownload-product .download-version { display: block; margin-top: 4px; color: #a8a8a8; }
.predownload-form .req { color: var(--amber); }
.form-field select {
  font: inherit; font-size: 0.95rem; padding: 11px 14px; border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.18); background: rgba(255,255,255,0.05); color: #fff;
}
.form-field select option { color: var(--ink); background: #fff; }
.form-field select:focus { outline: 2px solid var(--amber); outline-offset: 1px; border-color: var(--amber); }
.form-row--zip { grid-template-columns: 1fr 2fr; }
.form-note { font-size: 0.84rem; color: #a8a8a8 !important; margin: 0; }
.privacy-box {
  max-height: 220px; overflow-y: auto; padding: 16px 18px; border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.18); background: rgba(255,255,255,0.04);
}
.privacy-box:focus { outline: 2px solid var(--amber); outline-offset: 1px; }
.privacy-box h3 { color: #fff; font-size: 0.95rem; margin-bottom: 8px; }
.privacy-box p { font-size: 0.84rem; color: #c8c8c8; margin-bottom: 0.7em; }
.privacy-box b { color: #fff; }
.form-check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.92rem; color: #fff; cursor: pointer; }
.form-check input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--amber); }
.form-error {
  margin-top: 24px; padding: 14px 18px; border-radius: 8px; text-align: left;
  background: rgba(217, 36, 27, 0.15); border: 1px solid rgba(217, 36, 27, 0.55); color: #fff;
}
.predownload-again { display: flex; gap: 20px; align-items: center; justify-content: center; flex-wrap: wrap; margin-top: 24px; }
.predownload-form .btn .icon, .predownload-again .btn .icon { width: 18px; height: 18px; vertical-align: -3px; margin-right: 4px; }
@media (max-width: 620px) {
  .form-row--zip { grid-template-columns: 1fr; }
}

/* ---------- Reserved area (/AV/Area/) ---------- */
.hero--area { padding: 64px 0 52px; }
.area-auth { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: start; max-width: 940px; }
.area-auth--single { grid-template-columns: 1fr; max-width: 560px; }
.area-box { padding: 30px; border-radius: var(--radius); background: var(--navy-900); border: 1px solid var(--navy-700); }
.area-box > .form-error:first-child, .area-box > .form-success:first-child { margin-top: 0; margin-bottom: 8px; }
.area-box .contact-form { margin-top: 0; }
.area-box--new { border-top: 3px solid var(--amber); }
.area-box--new h2 { color: #fff; font-size: 1.3rem; }
.area-box--new p { color: #c8c8c8; }
.area-section .btn-ghost { border-color: rgba(255,255,255,0.5); color: #fff; }
.area-section .btn-ghost:hover { background: #fff; color: var(--ink); }
.area-section .form-error a, .area-section .form-success a { color: #fff; font-weight: 700; }
.area-small { font-size: 0.88rem; color: #fff; }
.area-switch { margin: 22px 0 0; color: #c8c8c8; }
.area-switch .text-link { color: #fff; }
.area-form .req, .area-section .req { color: var(--amber); }
.area-dashboard h2 { margin: 34px 0 22px; }
.area-dashboard .form-error, .area-dashboard .form-success { color: var(--ink); }
.area-dashboard .form-success p { color: var(--ink); }
.area-account {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 16px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-alt);
}
.area-account p { margin: 0; color: var(--muted); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: #fff; }
.download-grid--4 { grid-template-columns: repeat(2, 1fr); }
.download-card--zw3d { border-top-color: var(--app-zw3d); }
@media (max-width: 860px) {
  .area-auth { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: #d6d6d6; padding-top: 56px; }
.footer-inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 32px; padding-bottom: 36px; }
.footer-col h3, .footer-col h4 { color: #fff; }
.footer-col h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; }
.footer-col p { color: #a8a8a8; font-size: 0.9rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-col a { color: #d6d6d6; text-decoration: none; font-size: 0.92rem; }
.footer-col a:hover { color: #fff; }
.footer-mail { font-weight: 700; color: var(--amber); margin-bottom: 4px; }
.footer-address { line-height: 1.5; }
.footer-brand .brand-mark { margin-bottom: 14px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 18px 24px; font-size: 0.82rem; color: #8a8a8a; }
.muted { color: #8a8a8a !important; }

/* ---------- Root language chooser ---------- */
.root-chooser { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--navy-950); color: #fff; text-align: center; }
.root-chooser-inner { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.root-chooser h1 { color: #fff; margin-top: 18px; }
.root-lang-list { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 18px; }

/* ---------- Docs / Help section ---------- */
.docs-header { position: sticky; top: 0; z-index: 100; background: var(--navy-950); border-bottom: 1px solid rgba(255,255,255,0.08); }
.docs-header-inner { max-width: 1280px; margin: 0 auto; padding: 0 20px; height: 60px; display: flex; align-items: center; gap: 16px; }
.docs-brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; margin-right: auto; }
.docs-brand .brand-mark { width: 30px; height: 30px; }
.docs-app-icon { flex: none; width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.08); color: #fff; }
.docs-app-icon .icon { width: 20px; height: 20px; }
.docs-app-icon--spc { color: var(--app-spc); }
.docs-app-icon--spp { color: var(--app-spp); }
.docs-app-icon--license { color: var(--app-license); }
.docs-app-icon:has(.docs-app-svg) { background: none; }
.docs-app-svg { display: block; width: 32px; height: 32px; }
.docs-version { flex: none; padding: 2px 8px; border-radius: 999px; background: rgba(255,255,255,0.1); color: #c8c8c8; font-size: 0.74rem; font-weight: 600; white-space: nowrap; }
@media (max-width: 480px) { .docs-version { display: none; } }
.docs-back { color: #c8c8c8; text-decoration: none; font-size: 0.86rem; font-weight: 600; }
.docs-back:hover { color: #fff; }
.docs-nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 36px; height: 36px; background: none; border: none; cursor: pointer; }
.docs-nav-toggle span { display: block; width: 20px; height: 2px; background: #fff; border-radius: 2px; }

.docs-shell { max-width: 1280px; margin: 0 auto; padding: 0 20px; display: flex; gap: 36px; align-items: flex-start; }
.docs-sidebar {
  flex: none; width: 260px; position: sticky; top: 76px; max-height: calc(100vh - 96px); overflow-y: auto;
  display: flex; flex-direction: column; gap: 2px; padding: 24px 0;
}
.docs-sidebar a { display: block; padding: 7px 10px; border-radius: 7px; color: var(--muted); text-decoration: none; font-size: 0.89rem; }
.docs-sidebar a:hover { background: var(--bg-alt); color: var(--ink); }
.docs-sidebar a.docs-nav-active { background: rgba(217,36,27,0.1); color: var(--amber-dark); font-weight: 700; }
.docs-nav-indent-1 { padding-left: 22px !important; }
.docs-nav-indent-2 { padding-left: 34px !important; font-size: 0.85rem !important; }

.docs-content { flex: 1; min-width: 0; padding: 32px 0 64px; max-width: 860px; }
.docs-content h1 { font-size: 1.7rem; margin-bottom: 18px; }
.docs-content p, .docs-content li, .docs-content ul, .docs-content ol { color: var(--ink); font-size: 0.98rem; line-height: 1.6; }
.docs-content ul, .docs-content ol { padding-left: 22px; margin: 0 0 1em; }
.docs-content hr { border: none; border-top: 1px solid var(--line); margin: 28px 0; }
.docs-content > b, .docs-content div > b { display: block; font-size: 1.15rem; margin: 32px 0 10px; color: var(--navy-900); }
.docs-content a { color: var(--amber-dark); }
.docs-shot { margin: 14px 0 20px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); }
.docs-shot img { display: block; width: 100%; height: auto; }
.docs-table { width: 100%; border-collapse: collapse; margin: 10px 0 20px; }
.docs-table td { border-bottom: 1px solid var(--line); padding: 9px 10px; vertical-align: middle; font-size: 0.92rem; }
.docs-table td:first-child { width: 90px; text-align: center; white-space: nowrap; }
.docs-table img { max-width: 32px; max-height: 32px; vertical-align: middle; }
.docs-ico { display: inline-block; width: 1em; height: 1em; vertical-align: -0.125em; margin-right: 6px; opacity: 0.8; }
.docs-footer { text-align: center; font-size: 0.8rem; color: var(--muted); padding: 20px; border-top: 1px solid var(--line); }

@media (max-width: 900px) {
  .docs-sidebar { position: fixed; top: 60px; left: 0; right: 0; bottom: 0; background: #fff; z-index: 90; padding: 16px 20px; transform: translateX(-100%); transition: transform .2s ease; width: auto; }
  .docs-sidebar.open { transform: translateX(0); }
  .docs-nav-toggle { display: flex; }
  .docs-back { display: none; }
  .docs-shell { display: block; }
  .docs-content { max-width: 100%; }
}

/* ---------- Docs: single-page manual (License Server help) ---------- */
.docs-page { max-width: 900px; margin: 0 auto; padding: 32px 20px 64px; }
.docs-page .docs-lang-switcher { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 22px; }
.docs-page .docs-lang-switcher a { border: 1px solid var(--line); background: #fff; color: var(--ink); padding: 6px 14px; border-radius: 20px; font-size: 0.82rem; font-weight: 700; text-decoration: none; }
.docs-page .docs-lang-switcher a.active { background: var(--navy-900); color: #fff; border-color: var(--navy-900); }
.docs-diagram { background: #1a1a1a; color: #c8c8c8; border-radius: 10px; padding: 16px 18px; overflow-x: auto; font-family: "Cascadia Code", Consolas, monospace; font-size: 0.78rem; white-space: pre; margin: 0 0 24px; line-height: 1.5; }
.docs-toc { background: var(--bg-alt); border-radius: 10px; padding: 18px 24px; margin: 0 0 28px; }
.docs-toc h2 { font-size: 1.05rem; margin: 0 0 10px; border: none; padding: 0; }
.docs-toc ol { columns: 2; column-gap: 30px; padding-left: 20px; margin: 0; }
.docs-toc ol li { margin-bottom: 4px; }
.docs-toc a { font-size: 0.88rem; color: var(--amber-dark); text-decoration: none; }
.docs-toc a:hover { text-decoration: underline; }
.docs-page .card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 26px 30px; margin-bottom: 20px; }
.docs-page section { margin-bottom: 30px; scroll-margin-top: 76px; }
.docs-page section:last-child { margin-bottom: 0; }
.docs-page h2 { font-size: 1.28rem; margin: 0 0 14px; border-bottom: 2px solid var(--bg-alt); padding-bottom: 8px; color: var(--navy-900); }
.docs-page h3 { font-size: 1rem; color: var(--amber-dark); margin: 20px 0 6px; }
.docs-page p, .docs-page li { color: var(--ink); font-size: 0.96rem; line-height: 1.6; }
.docs-page ul, .docs-page ol { padding-left: 22px; margin: 0 0 1em; }
.docs-page code { font-family: "Cascadia Code", Consolas, monospace; background: var(--bg-alt); padding: 2px 6px; border-radius: 4px; font-size: 0.87em; }
.docs-page pre { background: var(--bg-alt); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; overflow-x: auto; font-size: 0.82rem; margin: 10px 0; }
.docs-page pre code { background: none; padding: 0; }
.docs-page table { border-collapse: collapse; width: 100%; margin: 12px 0; font-size: 0.86rem; }
.docs-page th, .docs-page td { border: 1px solid var(--line); padding: 9px 11px; text-align: left; vertical-align: top; }
.docs-page th { background: var(--bg-alt); }
.docs-page a { color: var(--amber-dark); }
@media (max-width: 640px) {
  .docs-toc ol { columns: 1; }
  .docs-page .card { padding: 18px 16px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .product-grid, .feature-grid, .contact-grid, .download-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .prose-cols { grid-template-columns: 1fr; }
}
/* menu in the hamburger as soon as its entries no longer fit on one row */
/* phones, tablets and every touch screen without a mouse (also wide tablets): side panel, Prodotti in one column */
@media (max-width: 1140px), (hover: none) and (pointer: coarse) {
  .primary-nav {
    position: fixed; top: 68px; left: 0; right: 0; height: calc(100vh - 68px);
    background: var(--navy-950); overflow-y: auto; align-self: auto;
    transform: translateX(-100%); transition: transform .2s ease; padding: 18px;
  }
  .primary-nav.open { transform: translateX(0); }
  .primary-nav ul { flex-direction: column; }
  .primary-nav a { font-size: 1.05rem; padding: 14px; }
  .nav-group-toggle { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: #8a8a8a; padding: 14px 14px 4px; cursor: default; }
  .nav-group-toggle::after { display: none; }
  .nav-group-toggle:hover, .nav-group.open .nav-group-toggle, .primary-nav .nav-group .nav-group-toggle.active { background: none; color: #8a8a8a; }
  .primary-nav .nav-mega,
  .primary-nav .nav-group:hover .nav-mega, .primary-nav .nav-group:focus-within .nav-mega, .primary-nav .nav-group.open .nav-mega {
    display: block; position: static; padding: 0 0 0 14px; background: none; box-shadow: none; grid-template-columns: 1fr;
  }
  .primary-nav .nav-mega::before { display: none; }
  .nav-mega-title { margin: 12px 0 4px; border-bottom-color: var(--navy-700); color: #8a8a8a; }
  .primary-nav .nav-mega-item { color: #fff; margin: 0; padding: 10px 14px; }
  .primary-nav .nav-mega-item:hover, .primary-nav .nav-mega-item.active { background: rgba(255,255,255,0.08); color: #fff; }
  .nav-mega-text small { color: #a8a8a8; }
  .nav-toggle { display: flex; order: 2; }
  .lang-switcher, .login-btn { order: 3; }
  .header-inner { gap: 10px; }
}
@media (max-width: 760px) {
  .brand-text { display: none; }
  .lang-switcher a { padding: 5px 7px; }
  .product-grid, .feature-grid, .contact-grid, .download-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 52px; }
  .section { padding: 52px 0; }
  .integration-inner { flex-direction: column; }
}

/* ---------- Home: flusso di lavoro (CAD -> CAM -> SPP -> SPC) ---------- */
.workflow-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 40px; margin-bottom: 36px; }
.workflow-head h1, .workflow-head h2 { margin-bottom: 0; }
.workflow-head h1 { font-size: clamp(1.5rem, 2.6vw, 2rem); max-width: 760px; }
.workflow-head p { max-width: 46ch; margin: 0; }
.workflow-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); position: relative; }
.workflow-steps::before { content: ""; position: absolute; left: 12.5%; right: 12.5%; top: 31px; height: 4px; border-radius: 2px; background: var(--line); }
.workflow-step { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; text-decoration: none; color: var(--ink); padding: 0 6px; }
.workflow-dot {
  width: 66px; height: 66px; border-radius: 50%; border: 4px solid var(--ink); background: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.9rem; letter-spacing: 0.02em;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.2s ease;
}
.workflow-step:hover .workflow-dot { transform: translateY(-2px); }
.workflow-name { font-weight: 800; font-size: 1.02rem; }
.workflow-who { font-size: 0.8rem; color: var(--muted); line-height: 1.35; }
.workflow-step[aria-selected="true"] .workflow-dot { background: var(--amber); border-color: var(--amber); color: #fff; box-shadow: 0 0 0 8px rgba(217, 36, 27, 0.16); }
.workflow-step[aria-selected="true"] .workflow-name { color: var(--amber); }
.workflow-step.done .workflow-dot { border-color: var(--amber); color: var(--amber); }
.workflow-panels { display: grid; gap: 22px; margin-top: 36px; }
.workflow-panel {
  background: #fff; border: 1px solid var(--ink); border-radius: var(--radius); padding: 34px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; scroll-margin-top: 90px;
}
.js-workflow .workflow-panel[hidden] { display: none; }
.workflow-panel h3 { font-size: clamp(1.35rem, 2.4vw, 1.8rem); margin: 6px 0 12px; }
.workflow-pains { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.workflow-pains li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; }
.workflow-pains li::before { content: ""; width: 28px; height: 4px; background: var(--amber); margin-top: 0.72em; }
.workflow-panel .hero-cta { margin-top: 24px; }
.workflow-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.workflow-side .screenshot-frame { margin: 0; }
.workflow-side .product-card { padding: 22px; }
.workflow-note { font-size: 0.9rem; color: var(--muted); border: 1px dashed var(--app-license); border-radius: var(--radius); padding: 12px 14px; margin: 0; }
.workflow-note strong { color: var(--app-license); }
.workflow-note a { color: var(--app-license); font-weight: 700; }
.workflow-next { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 14px; font-size: 0.9rem; color: var(--muted); }
.workflow-next a { font-weight: 800; color: var(--ink); text-decoration: none; }
.workflow-next a:hover { color: var(--amber-dark); }
.product-grid--4 { grid-template-columns: repeat(4, 1fr); }
.product-note { text-align: center; margin: 22px 0 0; color: var(--muted); }
@media (max-width: 1000px) { .product-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) {
  .workflow-steps { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .workflow-steps::before { display: none; }
  .workflow-step {
    display: grid; grid-template-columns: 50px 1fr; grid-template-rows: auto auto; column-gap: 14px; row-gap: 0;
    align-items: center; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px;
  }
  .workflow-dot { width: 48px; height: 48px; border-width: 3px; font-size: 0.75rem; grid-row: span 2; }
  .workflow-step[aria-selected="true"] { border-color: var(--amber); }
  .workflow-step[aria-selected="true"] .workflow-dot { box-shadow: none; }
  .workflow-panel { grid-template-columns: minmax(0, 1fr); padding: 24px; gap: 24px; }
}
@media (max-width: 760px) { .product-grid--4 { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .workflow-dot { transition: none; } }

/* ZW3D versions under phases 1 and 2 of the home flow */
.workflow-extra { margin-top: 64px; }
.workflow-extra[hidden] { display: none; }
.workflow-extra-title { text-align: center; font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 14px; }
.workflow-extra .section-intro { margin-bottom: 36px; }
.badge-list + .workflow-extra-title { margin-top: 56px; }
.feature-grid + .feature-grid { margin-top: 20px; }
.badge-list + .section-intro, .badge-list ~ .section-intro:last-child { margin-top: 28px; }
.price-card--zw3d { border-top-color: var(--app-zw3d); }
.price-card--wide { margin-bottom: 24px; }
.section-intro + .price-card--wide { margin-top: 36px; }
.price-options h4 a { color: inherit; text-decoration: none; }
.price-options h4 a:hover { color: var(--amber); }
.footer-badge { display: inline-block; margin-top: 18px; }
.footer-badge img { display: block; width: 96px; height: auto; }
.offer-products { border: 0; margin: 0 0 8px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.offer-products legend, .offer-step { color: #fff; font-weight: 700; font-size: 1rem; margin: 0 0 12px; padding: 0; grid-column: 1 / -1; }
.offer-step { margin-top: 18px; }
.offer-product { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 8px; color: #fff; cursor: pointer; font-weight: 600; }
.offer-product:hover { border-color: rgba(255, 255, 255, 0.6); }
.offer-product:has(input:checked) { border-color: var(--amber); background: rgba(217, 36, 27, 0.15); }
.offer-product input { width: 18px; height: 18px; margin: 0; accent-color: var(--amber); }
.offer-form + .hero-cta, .form-success + .hero-cta { justify-content: center; }
@media (max-width: 520px) { .offer-products { grid-template-columns: 1fr; } }
.nav-mega-title a { color: inherit; text-decoration: none; }
.nav-mega-title a:hover { color: var(--amber); }
.site-footer .footer-col a[href$="ams.html"] { text-transform: uppercase; }
.compare-card { flex-direction: row; align-items: center; gap: 20px; margin-top: 22px; }
.compare-card .compare-card-text { flex: 1; }
.compare-card .compare-card-text p { margin: 0; }
.compare-card .card-link { margin-top: 0; white-space: nowrap; }
@media (max-width: 760px) { .compare-card { flex-direction: column; align-items: flex-start; } }
.cta-links { margin-top: 24px; font-size: 0.95rem; }
.cta-links .text-link { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.cta-links .text-link:hover { color: var(--amber); }
/* ZW3D media pages: novità, video, tutorial */
.video-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 28px; }
.video-card { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border-top: 4px solid var(--app-zw3d); }
.video-card video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #111; }
.video-card figcaption { padding: 14px 18px; font-weight: 700; font-size: 0.98rem; }
.video-feature { max-width: 960px; margin: 28px auto 0; }
.video-note { font-size: 0.9rem; color: var(--muted); margin-top: 10px; }
.year-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.year-tab { font: inherit; font-weight: 700; padding: 10px 22px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; }
.year-tab:hover { border-color: var(--app-zw3d); }
.year-tab[aria-selected="true"] { background: var(--app-zw3d); border-color: var(--app-zw3d); color: #fff; }
.video-panel[hidden] { display: none; }
.slides-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 28px; }
.slides-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border-top: 4px solid var(--app-zw3d); }
.slides-card iframe { display: block; width: 100%; aspect-ratio: 16 / 9.4; border: 0; }
@media (max-width: 760px) { .video-grid, .slides-grid { grid-template-columns: 1fr; } }
.price-options--icons li { align-items: center; }
.price-options--icons li > div:first-of-type { flex: 1; }
.price-option-icon { width: 36px; height: 36px; flex: none; }
.price-card--ams { border-top-color: var(--amber); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.login-btn { display: flex; align-items: center; justify-content: center; width: 36px; height: 34px; border: 1px solid rgba(255,255,255,0.2); border-radius: 8px; color: #fff; }
.login-btn:hover { border-color: rgba(255,255,255,0.5); color: #fff; }
.login-btn .icon { width: 18px; height: 18px; }
.req-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 32px; }
.req-grid--3 { grid-template-columns: repeat(3, 1fr); }
.req-card { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--amber); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.req-card--zw3d { border-top-color: var(--app-zw3d); }
.req-card--spc { border-top-color: var(--app-spc); }
.req-card--spp { border-top-color: var(--app-spp); }
.req-card--license { border-top-color: var(--app-license); }
.req-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.req-head h3 { font-size: 1.1rem; margin: 0; }
.req-list { margin: 0; padding-left: 18px; color: var(--muted); font-size: 0.94rem; }
.req-list li + li { margin-top: 6px; }
@media (max-width: 900px) { .req-grid, .req-grid--3 { grid-template-columns: 1fr; } }
/* ZW3D download page (Area/zw3d-download.asp) */
.dl-head { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.dl-head h2 { margin: 0; }
.dl-head .dl-date { margin: 2px 0 0; }
.dl-date { color: var(--muted); font-size: 0.9rem; font-weight: 600; }
.dl-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--app-zw3d); border-radius: var(--radius); overflow: hidden; }
.dl-table th, .dl-table td { padding: 12px 18px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.dl-table tr:last-child th, .dl-table tr:last-child td { border-bottom: 0; }
.dl-table th { font-weight: 600; }
.dl-table td { text-align: right; white-space: nowrap; }
.dl-table td .btn + .btn { margin-left: 8px; }
.btn-sm { padding: 8px 16px; font-size: 0.88rem; }
.btn-sm .icon { width: 16px; height: 16px; vertical-align: -3px; margin-right: 2px; }
.dl-notes { margin: 16px 0 0; padding-left: 20px; max-width: 860px; }
.dl-notes li + li { margin-top: 8px; }
.dl-help { margin-top: 20px; max-width: 860px; color: var(--muted); }
.dl-years { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.dl-year { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.dl-year summary { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; font-weight: 800; cursor: pointer; }
.dl-year summary span { color: var(--muted); font-weight: 600; font-size: 0.88rem; }
.dl-year[open] { padding-bottom: 18px; }
.dl-year[open] summary { border-bottom: 1px solid var(--line); }
.dl-year .dl-version { margin: 20px 18px 10px; font-size: 1.02rem; }
.dl-year .dl-table { width: auto; margin: 0 18px; width: calc(100% - 36px); border-top-width: 1px; }
@media (max-width: 640px) {
  .dl-table th, .dl-table td { display: block; text-align: left; border-bottom: 0; padding: 10px 14px 0; }
  .dl-table td { padding-bottom: 12px; border-bottom: 1px solid var(--line); white-space: normal; }
}
/* distributors' area (Area/index.asp) */
.dealer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 16px 0 36px; }
.dealer-card { display: block; padding: 20px 22px; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--amber); border-radius: var(--radius); color: var(--ink); text-decoration: none; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
.dealer-card:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -20px rgba(0,0,0,.35); }
.dealer-card h3 { margin: 0 0 6px; font-size: 1.05rem; }
.dealer-card p { margin: 0; color: var(--muted); font-size: 0.92rem; }
@media (max-width: 900px) { .dealer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .dealer-grid { grid-template-columns: 1fr; } }
/* ---------- CRM (Area/crm-*.asp) ---------- */
.crm-nav { background: var(--navy-900); border-bottom: 1px solid var(--navy-700); position: sticky; top: 0; z-index: 40; }
.crm-nav .wrap { display: flex; gap: 4px; overflow-x: auto; padding-top: 8px; padding-bottom: 8px; }
.crm-nav a { flex: none; padding: 8px 14px; border-radius: 8px; color: #d0d0d0; font-weight: 600; font-size: 0.92rem; text-decoration: none; white-space: nowrap; }
.crm-nav a:hover { background: rgba(255,255,255,0.08); color: #fff; }
.crm-nav a.active { background: var(--amber); color: #fff; }
.crm-nav .crm-nav-out { margin-left: auto; }
.crm-section { padding-top: 32px; }
.crm-flash { margin-bottom: 18px; padding: 12px 16px; border-radius: 8px; background: rgba(47,182,115,0.12); border: 1px solid rgba(47,182,115,0.45); }
.crm-error { margin-bottom: 18px; padding: 12px 16px; border-radius: 8px; background: rgba(217,36,27,0.08); border: 1px solid rgba(217,36,27,0.45); color: var(--amber-dark); font-weight: 600; }
.crm-filterbox { padding: 16px 18px 18px; background: var(--bg-alt); border: 1px solid var(--line); border-left: 4px solid var(--amber); border-radius: var(--radius); }
.crm-filterbox h2.crm-filterbox-title { margin: 0 0 12px; font-size: 0.8rem; line-height: 1.2; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.crm-filters { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; align-items: end; }
.crm-filters label, .crm-grid label { display: flex; flex-direction: column; gap: 4px; font-size: 0.82rem; font-weight: 700; color: var(--muted); }
.crm-filters input, .crm-filters select, .crm-grid input, .crm-grid select, .crm-grid textarea, .crm-inline-form input {
  font: inherit; font-size: 0.95rem; font-weight: 400; color: var(--ink); padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; background: #fff; width: 100%;
}
.crm-filter-wide { grid-column: span 2; }
.crm-filter-actions { display: flex; gap: 14px; align-items: center; }
.crm-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 18px 0 12px; }
.crm-toolbar > div { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.crm-count { margin: 0; color: var(--muted); font-weight: 600; }
.crm-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.crm-table { width: 100%; border-collapse: collapse; background: #fff; font-size: 0.93rem; }
.crm-table th { text-align: left; padding: 10px 12px; background: var(--bg-alt); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); white-space: nowrap; }
.crm-table td { padding: 10px 12px; border-top: 1px solid var(--line); vertical-align: top; }
.crm-table tbody tr:hover td { background: #fafafa; }
.crm-card .crm-table { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.crm-nowrap { white-space: nowrap; }
.crm-table .crm-num { text-align: right; }
.crm-icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); cursor: pointer; vertical-align: middle; }
.crm-icon-btn:hover { border-color: var(--ink); }
.crm-icon-danger:hover { border-color: var(--amber); color: var(--amber); }
.crm-actions .crm-icon-btn + form, .crm-actions .crm-icon-btn + .crm-icon-btn { margin-left: 6px; }
/* distributors: users and permissions */
.crm-plain { border: 0; padding: 0; margin: 0; min-width: 0; }
.crm-user { border: 1px solid var(--line); border-radius: 10px; margin-bottom: 12px; background: #fff; }
.crm-user summary { cursor: pointer; padding: 12px 16px; display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.crm-user[open] summary { border-bottom: 1px solid var(--line); }
.crm-user form { padding: 16px; }
.crm-user-new { border-style: dashed; }
.crm-user-new summary { color: var(--amber-dark); }
.crm-perms { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin: 16px 0; }
.crm-perm { border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px 12px; margin: 0; }
.crm-perm legend { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 800; color: var(--muted); padding: 0 6px; }
.crm-perm label { display: flex; gap: 8px; align-items: center; font-size: 0.92rem; padding: 3px 0; cursor: pointer; }
/* new order: product rows like the customer fields */
.crm-order-lines select, .crm-order-lines input {
  font: inherit; font-size: 0.95rem; color: var(--ink); height: 42px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; background: #fff; width: 100%;
}
.crm-order-lines select { min-width: 260px; }
.crm-order-lines input[type=number] { width: 90px; }
.crm-order-lines td { vertical-align: middle; }
/* documents */
.crm-crumbs { font-weight: 700; }
.crm-crumbs a { color: var(--ink); text-decoration: none; }
.crm-crumbs a:hover { color: var(--amber); }
.crm-crumbs span { color: var(--muted); margin: 0 4px; }
.crm-mini { margin: 0; flex-wrap: nowrap; }
.crm-mini input[type=text] { flex: 0 1 200px; height: 36px; padding: 6px 10px; }
.crm-file { position: relative; cursor: pointer; }
.crm-file input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.crm-doc { display: inline-flex; gap: 8px; align-items: center; color: var(--ink); text-decoration: none; font-weight: 600; }
a.crm-doc:hover { color: var(--amber); }
.crm-doc-ico { font-size: 1.1rem; }
/* to do */
.crm-table tr.crm-late td:first-child { color: var(--amber); font-weight: 800; }
.crm-done summary { cursor: pointer; list-style: none; }
.crm-done summary::-webkit-details-marker { display: none; }
.crm-done summary h2 { display: inline; }
.crm-done summary::after { content: " ▾"; color: var(--muted); }
.crm-done[open] summary { margin-bottom: 14px; }
/* price list */
.crm-section h2.crm-h2 { font-size: 1.15rem; margin: 0 0 14px; }
.crm-bundles { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; margin-bottom: 24px; }
.crm-bundle { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--amber); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.crm-bundle h3 { margin: 0; font-size: 1.05rem; }
.crm-bundle-mod { margin: 2px 0 10px; font-size: 0.86rem; font-weight: 700; color: var(--amber-dark); }
.crm-bundle ul { margin: 0 0 14px; padding-left: 18px; font-size: 0.88rem; color: var(--muted); flex: 1; }
.crm-bundle dl { margin: 0; border-top: 1px solid var(--line); padding-top: 10px; display: grid; gap: 4px; }
.crm-bundle dl div { display: flex; justify-content: space-between; gap: 10px; font-size: 0.88rem; }
.crm-bundle dt { color: var(--muted); }
.crm-bundle dd { margin: 0; white-space: nowrap; font-weight: 800; font-variant-numeric: tabular-nums; }
.crm-table-search { font: inherit; padding: 8px 11px; border: 1px solid var(--line); border-radius: 8px; width: min(280px, 100%); }
.crm-list { margin: 0; padding-left: 20px; color: var(--muted); }
.crm-list li { margin-bottom: 6px; }
.crm-faq h3 { font-size: 0.98rem; margin: 18px 0 4px; }
.crm-faq p { margin: 0; }
/* statistics: categorical series (validated: blue, orange, aqua) */
:root { --viz-1: #2a78d6; --viz-2: #eb6834; --viz-3: #1baf7a; }
.crm-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 20px 0; }
.crm-tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.crm-tile span { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 0.85rem; font-weight: 700; }
.crm-tile strong { display: block; margin-top: 6px; font-size: 1.5rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.crm-tile-main { border-top: 4px solid var(--amber); }
.crm-key { display: inline-block; width: 12px; height: 12px; border-radius: 3px; flex: none; }
.crm-legend { display: flex; gap: 18px; flex-wrap: wrap; list-style: none; margin: -4px 0 10px; padding: 0; font-size: 0.88rem; color: var(--muted); font-weight: 600; }
.crm-legend li { display: flex; align-items: center; gap: 7px; }
.crm-chart-wrap { position: relative; }
.crm-chart { width: 100%; height: auto; display: block; }
.crm-chart-grid { stroke: #e6e6e6; stroke-width: 1; }
.crm-chart-axis { fill: var(--muted); font-size: 12px; }
.crm-chart-value { fill: var(--ink); font-size: 12px; font-weight: 700; }
.crm-chart-bar:hover { opacity: 0.85; }
.crm-chart-tip { position: absolute; pointer-events: none; background: var(--ink); color: #fff; font-size: 0.85rem; font-weight: 600; padding: 6px 10px; border-radius: 6px; white-space: nowrap; }
@media (max-width: 760px) { .crm-tiles { grid-template-columns: 1fr 1fr; } .crm-tile strong { font-size: 1.2rem; } }
.crm-sort { color: inherit; text-decoration: none; }
.crm-sort:hover, .crm-sort.is-on { color: var(--amber); }
.crm-table tfoot th { background: var(--bg-alt); font-size: 0.95rem; text-transform: none; letter-spacing: 0; color: var(--ink); border-top: 2px solid var(--line); }
.crm-strong { font-weight: 800; color: var(--ink); text-decoration: none; }
.crm-strong:hover { color: var(--amber); }
.crm-muted { color: var(--muted); font-size: 0.86rem; }
.crm-badge { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--bg-alt); border: 1px solid var(--line); font-size: 0.82rem; font-weight: 700; white-space: nowrap; }
.crm-actions { white-space: nowrap; text-align: right; }
.crm-actions form { display: inline; }
.crm-actions .btn + .btn, .crm-actions .btn + form, .crm-actions form + .btn { margin-left: 6px; }
.crm-empty { text-align: center; color: var(--muted); padding: 28px 14px !important; }
.crm-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.crm-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; margin-bottom: 20px; box-shadow: var(--shadow); }
.crm-card h2 { font-size: 1.15rem; margin: 0 0 14px; }
.crm-dl { margin: 0; display: grid; gap: 8px; }
.crm-dl div { display: grid; grid-template-columns: 130px 1fr; gap: 12px; }
.crm-dl dt { color: var(--muted); font-size: 0.88rem; font-weight: 700; }
.crm-dl dd { margin: 0; word-break: break-word; }
.crm-pre { white-space: pre-wrap; margin: 0; }
.crm-inline-form { display: flex; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.crm-inline-form input[type=text] { flex: 1 1 280px; width: auto; }
.crm-inline-form input[type=date] { flex: 0 0 170px; width: auto; }
.crm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.crm-span2 { grid-column: span 2; }
.crm-grid .crm-check { flex-direction: row; align-items: center; gap: 8px; font-size: 0.95rem; color: var(--ink); font-weight: 600; }
.crm-grid .crm-check input { width: auto; }
.crm-admin-check { display: flex; align-items: center; gap: 8px; margin: 4px 0 12px; font-weight: 600; color: var(--ink); }
.crm-admin-check input { width: auto; }
.crm-form-actions { display: flex; gap: 14px; }
@media (max-width: 760px) {
  .crm-cols, .crm-grid { grid-template-columns: 1fr; }
  .crm-span2, .crm-filter-wide { grid-column: auto; }
  .crm-dl div { grid-template-columns: 1fr; gap: 0; }
}
.hero--area.hero--compact { padding: 36px 0 30px; }
.hero--compact h1 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 4px; }
.hero--compact .hero-sub { margin-top: 6px; font-size: 1rem; }
.crm-filters input, .crm-filters select, .crm-grid input, .crm-grid select, .crm-inline-form input { height: 42px; }
.dealer-card.erp-old { border-top-color: var(--line); }
.erp-product summary { cursor: pointer; font-size: 1.05rem; }
.erp-product[open] summary { margin-bottom: 8px; }
.erp-product-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 16px 0 8px; }
.erp-product-head h3 { margin: 0; font-size: 1rem; }
.erp-code { font-family: ui-monospace, Consolas, monospace; font-size: 0.85rem; word-break: break-all; }
.crm-table tr.erp-off td { opacity: 0.55; }
.erp-sales th, .erp-sales td { white-space: nowrap; vertical-align: top; }
.erp-sales-cell strong { display: block; }
.erp-sales-cell .crm-pre { display: block; font-size: 0.78rem; color: var(--muted); }
.crm-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.crm-cols > *, .crm-dl dd, .crm-dl div { min-width: 0; }
.crm-dl dd, .crm-table td { overflow-wrap: anywhere; }
.crm-dl div { grid-template-columns: 130px minmax(0, 1fr); }
@media (max-width: 760px) { .crm-cols, .crm-dl div { grid-template-columns: minmax(0, 1fr); } }
.erp-inline { display: inline; }
.erp-totals .erp-grand { border-top: 1px solid var(--line); padding-top: 8px; font-weight: 800; }
.erp-totals dd { text-align: right; }
.erp-nav .wrap { overflow: visible; flex-wrap: wrap; }
.erp-drop { position: relative; flex: none; }
.erp-drop summary { list-style: none; cursor: pointer; padding: 8px 14px; border-radius: 8px; color: #d0d0d0; font-weight: 600; font-size: 0.92rem; white-space: nowrap; }
.erp-drop summary::-webkit-details-marker { display: none; }
.erp-drop summary::after { content: " ▾"; font-size: 0.8em; }
.erp-drop summary:hover, .erp-drop[open] summary { background: rgba(255,255,255,0.08); color: #fff; }
.erp-drop summary.active { background: var(--amber); color: #fff; }
.erp-drop-menu { position: absolute; top: calc(100% + 6px); left: 0; min-width: 200px; background: var(--navy-900); border: 1px solid var(--navy-700); border-radius: 10px; padding: 6px; box-shadow: var(--shadow); display: grid; gap: 2px; z-index: 50; }
.crm-nav .erp-drop-menu a { display: block; }
.erp-lines input { font: inherit; padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; width: 100%; min-width: 0; }
.erp-lines input.erp-num { width: 80px; text-align: right; }
.erp-lines select { font: inherit; padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; max-width: 360px; }
.erp-lines .erp-addline td { background: var(--bg-alt); }
.erp-danger { margin-top: 8px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.erp-lines textarea { font: inherit; padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; width: 100%; min-width: 260px; resize: vertical; }
.erp-drop-sep { border: 0; border-top: 1px solid var(--navy-700); margin: 4px 6px; }
.erp-chart { margin: 0 0 16px; }
.erp-chart figcaption { font-weight: 800; color: var(--ink); margin-bottom: 6px; }
.erp-chart svg { width: 100%; height: auto; display: block; }
.erp-chart-label { font-size: 13px; fill: var(--muted); }
.erp-chart-value { font-size: 13px; fill: var(--ink); font-weight: 700; }
.erp-chart rect:hover { opacity: .8; }
.erp-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0 0 8px; padding: 0; font-size: .88rem; color: var(--muted); }
.erp-legend span { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; }
.erp-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.crm-table .erp-group td { background: var(--bg-alt); border-top: 2px solid var(--line); }
.crm-table .erp-subtotal td { color: var(--muted); text-align: right; }
.crm-table .erp-subtotal td:last-child { color: var(--ink); }
.erp-h3 { font-size: 1rem; margin: 18px 0 8px; }
/* area and ERP: darker filter boxes, light grey fields (Enrico 2026-10-29) */
.crm-filterbox { background: #ebebeb; border-color: #d2d2d2; }
body.area main input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=submit]):not([type=button]):not([type=file]),
body.area main select, body.area main textarea {
  background-color: #eeeeee !important; border: 1px solid #bdbdbd !important;
}
body.area main input:not([type=checkbox]):not([type=radio]):focus, body.area main select:focus, body.area main textarea:focus { background-color: #fff !important; border-color: var(--ink) !important; }
.erp-maint td, .erp-maint th { vertical-align: top; }
.erp-maint-cell { min-width: 170px; font-size: .88rem; }
.erp-maint-cell small { font-size: .8rem; line-height: 1.35; display: block; }
.crm-table .erp-maint-now { background: #eef5fd; }
.erp-bundles { border-collapse: collapse; width: 100%; min-width: 260px; font-size: .88rem; }
.erp-bundles td, .erp-bundles th { padding: 2px 0; border: 0; background: none; }
.erp-bundles th { text-align: left; border-top: 1px solid var(--line); }
.crm-table tr.erp-done > td { background: #eef8f1; }
.erp-mail-preview { background: #fff; color: #111; } .crm-error-text { color: #b42318; font-weight: 700; }
.erp-totals-top { margin: 0 0 16px; max-width: 420px; margin-left: auto; }
/* fields of the filter boxes stay white (Enrico 2026-10-29) */
body.area main .crm-filterbox input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=submit]):not([type=button]),
body.area main .crm-filterbox select { background-color: #fff !important; }
.erp-bars td.erp-num, .erp-bars th.erp-num { text-align: right; width: 90px; }
.erp-bar-cell { width: 55%; min-width: 120px; }
.erp-bar { display: block; height: 12px; min-width: 0; background: #2a78d6; border-radius: 3px; }
.erp-bars tr.erp-weekend td { background: var(--bg-alt); }
.erp-customer-contacts { font-size: 0.85rem; line-height: 1.45; }
/* AROLO ERP dashboard */
.erp-search { display: flex; gap: 10px; margin: 0 0 8px; }
.erp-search input { flex: 1; min-width: 0; font: inherit; padding: 10px 12px; border-radius: 8px; }
.erp-tiles a.crm-tile { text-decoration: none; color: inherit; transition: border-color .15s; }
.erp-tiles a.crm-tile:hover { border-color: var(--amber); }
.erp-tiles .crm-tile small { display: block; margin-top: 4px; color: var(--muted); font-size: 0.85rem; }
.erp-tiles .crm-tile small.erp-delta.is-up { color: #1a7f4b; }
.erp-tiles .crm-tile small.erp-delta.is-down { color: #b3261e; }
.erp-tiles-3 { grid-template-columns: repeat(3, 1fr); }
.erp-tile-todo { border-top: 4px solid #eb6834; }
.erp-dash-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.erp-dash-cols .erp-h3 a { color: inherit; }
.erp-dash-cols .crm-table td { padding: 6px 8px; }
@media (max-width: 960px) { .erp-dash-cols { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .erp-tiles-3 { grid-template-columns: 1fr; } .erp-search { flex-direction: column; } }
/* AROLO ERP: headers sorted in the browser (assets/js/erp-sort.js) */
.erp-sortable { cursor: pointer; user-select: none; white-space: nowrap; }
.erp-sortable:hover { color: var(--amber); }
.erp-sortable::after { content: " ↕"; opacity: .35; font-weight: 400; }
.erp-sortable[aria-sort="ascending"]::after { content: " ▲"; opacity: .9; }
.erp-sortable[aria-sort="descending"]::after { content: " ▼"; opacity: .9; }

/* ---------- Legal pages (privacy, terms, shipping) ---------- */
.legal { max-width: 820px; }
.legal h1 { font-size: clamp(1.8rem, 3.2vw, 2.4rem); margin: 0 0 24px; }
.legal h2 { font-size: 1.25rem; margin: 32px 0 10px; }
.legal p { margin: 0 0 14px; color: var(--ink); line-height: 1.65; }
.footer-legal a { color: inherit; }
.legal ul { margin: 0 0 14px; padding-left: 22px; color: var(--ink); line-height: 1.65; }

/* ---------- Home ZW3D (2026-11-01) ---------- */
.hero-links { margin-top: 16px; font-size: .95rem; }
.spc-band { display: flex; gap: 32px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.spc-band > div { max-width: 640px; }
.spc-band .btn-ghost { border-color: var(--ink); color: var(--ink); }
.spc-band .btn-ghost:hover { background: var(--ink); color: #fff; }
a.feature-card { color: inherit; text-decoration: none; }
a.feature-card:hover h3 { color: var(--amber); }
.req-grid--1 { grid-template-columns: minmax(0, 640px); justify-content: center; }

/* home: logo ZWSOFT Authorized Reseller in cima all'hero */
.hero-badge { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.hero-badge img { display: block; width: 88px; height: auto; flex: none; }
.hero-badge .kicker { margin: 0; }
@media (max-width: 760px) { .hero-badge img { width: 68px; } }
.home-banner { background: #d9e3f5; line-height: 0; }
.home-banner img { display: block; width: 100%; height: auto; max-height: 620px; object-fit: cover; object-position: right center; }
.home-banner { position: relative; }
.home-banner-caption { position: absolute; left: max(24px, calc((100% - 1180px) / 2)); bottom: clamp(24px, 5vw, 64px); max-width: min(460px, 38%); line-height: 1.3; color: #0b2a5b; }
.home-banner-title { color: #0b2a5b; margin: 0 0 10px; font-size: clamp(1.6rem, 3.2vw, 2.6rem); font-weight: 800; letter-spacing: -0.01em; }
.home-banner-text { margin: 0; font-size: clamp(1rem, 1.4vw, 1.2rem); font-weight: 500; color: #1d3f75; }
@media (max-width: 760px) {
  .home-banner { background: #eef2fa; }
  .home-banner-caption { position: static; max-width: none; padding: 20px 16px 4px; }
}
.home-banner-cta { position: absolute; top: clamp(16px, 3vw, 36px); right: max(24px, calc((100% - 1180px) / 2)); display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 12px; line-height: normal; }
.home-banner-cta .btn { justify-content: center; text-align: center; }
.home-banner-cta .btn-ghost { background: rgba(255,255,255,0.92); color: #0b2a5b; border-color: #0b2a5b; }
.home-banner-cta .btn-ghost:hover { background: #fff; color: #0b2a5b; }
@media (max-width: 760px) {
  .home-banner { display: flex; flex-direction: column; }
  .home-banner img { order: 1; }
  .home-banner-caption { order: 2; position: absolute; top: 12px; left: 16px; right: auto; bottom: auto; max-width: 58%; padding: 0; text-align: left; }
  .home-banner-title { font-size: 1.15rem; margin-bottom: 4px; }
  .home-banner-text { font-size: 0.78rem; line-height: 1.3; }
  .home-banner-caption { text-shadow: 0 0 6px rgba(255,255,255,.95), 0 0 2px rgba(255,255,255,.9); }
  .home-banner img { min-height: 240px; object-fit: cover; object-position: 70% bottom; }
  .home-banner-cta { order: 3; position: static; grid-auto-flow: row; width: max-content; max-width: 100%; padding: 12px 16px 20px; }
}
.hero-video video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #0b2a5b; border-radius: inherit; }
/* menu: icone accanto a Prezzi e Download (come spcsim.com) */
.primary-nav a .icon { display: inline-block; flex: none; width: 18px; height: 18px; vertical-align: -3px; margin-right: 6px; }
.quick-link { display: none; }
@media (max-width: 1140px), (hover: none) and (pointer: coarse) {
  .quick-link { display: flex; order: 3; }
  .quick-link.active { border-color: var(--amber); }
  .primary-nav .nav-quick { display: none; }
}
/* mobile: al posto di Prodotti l'icona di ZW3D al centro dell'header */
.mobile-product { display: none; }
@media (max-width: 1140px), (hover: none) and (pointer: coarse) {
  .header-inner { position: relative; }
  .mobile-product { display: block; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 2px; border-radius: 8px; }
  .mobile-product:hover { background: rgba(255,255,255,0.08); }
  .mobile-product img { display: block; width: 40px; height: 40px; }
  .quick-link { margin-left: 0; }
  .quick-link:first-of-type { margin-left: auto; }
  .nav-toggle { display: none !important; }
  .mobile-product[aria-expanded="true"] { background: rgba(255,255,255,0.12); }
}
@media (max-width: 520px) {
  .mobile-product { position: static; transform: none; margin: 0 auto; }
  .mobile-product img { width: 36px; height: 36px; }
  .quick-link:first-of-type { margin-left: 0; }
}
.footer-contact-label { margin: 14px 0 2px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: #a8a8a8; }
/* home: bottoni ZW3D 2027 sempre visibili mentre si scorre */
.home-banner-cta { position: fixed; top: 84px; z-index: 40; }
.home-banner-cta .btn { box-shadow: 0 8px 24px -10px rgba(11,42,91,.55); }
@media (max-width: 760px) {
  .home-banner-cta { position: fixed; top: auto; bottom: 0; left: 0; right: 0; width: auto; max-width: none; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); background: rgba(17,17,17,.92); }
  .home-banner-cta .btn { padding: 10px 6px; font-size: 0.82rem; box-shadow: none; }
  .home-banner-cta .btn-ghost { background: #fff; }
  body:has(.home-banner-cta) .site-footer { padding-bottom: 72px; }
}
.footer-h4-next { margin-top: 22px; }
