/* ==========================================================================
   Isolinea — foglio di stile del sito
   Chiave grafica coerente con DTM Editor e CEMCalc: superfici chiare #f3f5f8,
   accenti pieni, sfondi scuri sfumati (#0c2340 → #123b63 → #0d5560) con isolinee.
   ========================================================================== */

/* ---------- Font (ospitati in locale, nessuna chiamata esterna) ---------- */
@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2-variations"),
       url("../fonts/inter-latin-wght-normal.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;
}
@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2-variations"),
       url("../fonts/inter-latin-ext-wght-normal.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "JetBrains Mono Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url("../fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2-variations"),
       url("../fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2");
}

/* ---------- Variabili ---------- */
:root {
  --font: "Inter Variable", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono Variable", Consolas, "Cascadia Mono", "DejaVu Sans Mono", monospace;

  /* marchio */
  --ink-950: #071426;
  --ink-900: #0c2340;
  --ink-800: #123b63;
  --teal-800: #0d5560;
  --cream: #f2efe6;
  --peach: #ffd29a;
  --leaf: #9fd18b;

  /* prodotti */
  --c-dtm: #1f6feb;
  --c-cem: #d32f2f;
  --c-cable: #e8890c;
  --c-toc: #6e56cf;
  --c-wind: #0f9488;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --maxw: 1200px;
  --header-h: 68px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  /* tema chiaro (come i programmi) */
  --bg: #f3f5f8;
  --bg-2: #e9edf2;
  --surface: #ffffff;
  --surface-2: #f7f9fb;
  --hover: #eef2f7;
  --press: #e3e9f1;
  --border: #dde2e8;
  --border-2: #c9d1db;
  --text: #2b3440;
  --text-strong: #121a26;
  --text-2: #4a5563;
  --text-3: #5f6b7a;
  --accent: #1f6feb;
  --accent-hover: #2a7af5;
  --accent-press: #1858c0;
  --accent-soft: #dbe8ff;
  --accent-text: #0b4fc2;
  --ok: #1d7f46;
  --ok-soft: #dcf3e5;
  --warn: #9a5b00;
  --warn-soft: #fff1d6;
  --err: #b42318;
  --err-soft: #fde3e1;
  --shadow-1: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .07);
  --shadow-2: 0 14px 34px -14px rgba(12, 35, 64, .28);
  --shadow-3: 0 40px 90px -30px rgba(7, 20, 38, .55);
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #0b1322;
  --bg-2: #0f1a2c;
  --surface: #121d30;
  --surface-2: #16233a;
  --hover: #1a2943;
  --press: #20314f;
  --border: #22314a;
  --border-2: #2e4060;
  --text: #dbe2ea;
  --text-strong: #f4f7fb;
  --text-2: #b4bfcc;
  --text-3: #93a0b1;
  --accent: #3b82f6;
  --accent-hover: #4c8ff8;
  --accent-press: #2f6fd8;
  --accent-soft: #1b3150;
  --accent-text: #9cc3ff;
  --ok: #4ccf86;
  --ok-soft: #12321f;
  --warn: #ffc266;
  --warn-soft: #3a2a10;
  --err: #ff8a80;
  --err-soft: #3d1a1c;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow-2: 0 14px 34px -14px rgba(0, 0, 0, .6);
  --shadow-3: 0 40px 90px -30px rgba(0, 0, 0, .8);
  color-scheme: dark;
}

/* accento di pagina per i prodotti (come nei programmi) */
body[data-accent="cem"] { --accent: #d32f2f; --accent-hover: #e04343; --accent-press: #b71c1c; --accent-soft: #fde3e1; --accent-text: #b3261e; }
[data-theme="dark"] body[data-accent="cem"] { --accent: #e5484d; --accent-hover: #ec5d61; --accent-press: #c93b40; --accent-soft: #3f1d22; --accent-text: #ff9b98; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  font-feature-settings: "cv11", "ss01", "ss03";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 { color: var(--text-strong); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; font-weight: 750; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.7rem); letter-spacing: -.035em; font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.6rem); letter-spacing: -.03em; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
code, kbd, .mono { font-family: var(--mono); font-size: .9em; }
code { background: var(--hover); border: 1px solid var(--border); padding: .08em .4em; border-radius: 6px; overflow-wrap: anywhere; }
hr { border: 0; border-top: 1px solid var(--border); margin: 2rem 0; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.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; z-index: 1000; background: var(--accent); color: #fff; padding: 10px 14px; border-radius: 8px; }
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 860px; }
@media (max-width: 600px) { .container { padding: 0 16px; } }

.ico { width: 1.15em; height: 1.15em; flex: none; display: inline-block; vertical-align: -.2em; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  color: #e8eef6;
  transition: background .3s var(--ease), box-shadow .3s var(--ease), color .3s var(--ease), border-color .3s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled, .site-header.menu-open {
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  color: var(--text);
  border-bottom-color: var(--border);
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 22px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: inherit; font-weight: 750; letter-spacing: -.02em; flex: none; }
.brand:hover { text-decoration: none; }
.brand img { width: 36px; height: 36px; filter: drop-shadow(0 4px 10px rgba(0,0,0,.25)); transition: transform .5s var(--ease); }
.brand:hover img { transform: rotate(-8deg) scale(1.05); }
.brand-name { font-size: 1.28rem; line-height: 1; }
.brand-sub { display: block; font-size: .64rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; opacity: .7; margin-top: 4px; }
.main-nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.main-nav a { color: inherit; font-size: .93rem; font-weight: 550; padding: 8px 12px; border-radius: 9px; opacity: .88; transition: background .2s, opacity .2s; }
.main-nav a:hover { text-decoration: none; opacity: 1; background: rgba(127, 150, 180, .16); }
.main-nav a[aria-current="page"] { opacity: 1; background: rgba(127, 150, 180, .2); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 10px; border: 1px solid rgba(160, 180, 205, .28); background: transparent; color: inherit; cursor: pointer; transition: background .2s, transform .2s; }
.icon-btn:hover { background: rgba(127, 150, 180, .18); }
.icon-btn:active { transform: scale(.94); }
.icon-btn .ico { width: 20px; height: 20px; }
.menu-toggle { display: none; }
@media (max-width: 1060px) {
  .main-nav { position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 2px; padding: 12px 16px 20px; background: var(--surface); color: var(--text); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-2); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: .25s var(--ease); margin: 0; max-height: calc(100vh - var(--header-h)); overflow: auto; }
  .main-nav a { padding: 12px 14px; font-size: 1rem; }
  .site-header.menu-open .main-nav { transform: none; opacity: 1; visibility: visible; }
  .header-actions { margin-left: auto; }
  .menu-toggle { display: inline-grid; }
  .header-actions .btn-download { display: none; }
}

/* ---------- Pulsanti ---------- */
.btn {
  --b-bg: var(--surface); --b-fg: var(--text); --b-bd: var(--border-2);
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font: inherit; font-weight: 650; font-size: .95rem; line-height: 1.2;
  padding: .72em 1.15em; border-radius: 11px; border: 1px solid var(--b-bd);
  background: var(--b-bg); color: var(--b-fg); cursor: pointer; white-space: nowrap;
  transition: transform .18s var(--ease), background .2s, box-shadow .25s, border-color .2s, color .2s;
  text-decoration: none !important; position: relative; isolation: isolate;
}
.btn:hover { background: var(--hover); border-color: var(--text-3); }
.btn:active { transform: translateY(1px) scale(.985); }
.btn[disabled], .btn.is-disabled { opacity: .55; cursor: not-allowed; pointer-events: none; }
.btn-primary { --b-bg: var(--accent); --b-fg: #fff; --b-bd: transparent; box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--accent) 80%, transparent); }
.btn-primary:hover { background: var(--accent-hover); border-color: transparent; box-shadow: 0 14px 30px -10px color-mix(in srgb, var(--accent) 90%, transparent); }
.btn-primary:active { background: var(--accent-press); }
.btn-light { --b-bg: var(--cream); --b-fg: var(--ink-900); --b-bd: transparent; }
.btn-light:hover { background: #fff; border-color: transparent; }
.btn-ghost { --b-bg: rgba(255, 255, 255, .06); --b-fg: #eef3f9; --b-bd: rgba(255, 255, 255, .22); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .4); }
.btn-soft { --b-bg: var(--accent-soft); --b-fg: var(--accent-text); --b-bd: transparent; }
.btn-soft:hover { background: color-mix(in srgb, var(--accent-soft) 70%, var(--accent) 30%); border-color: transparent; color: var(--accent-text); }
.btn-lg { font-size: 1.04rem; padding: .9em 1.45em; border-radius: 13px; }
.btn-sm { font-size: .84rem; padding: .5em .8em; border-radius: 9px; }
.btn-block { width: 100%; }
.btn .ico { width: 1.2em; height: 1.2em; }
.btn-download { padding: .58em 1em; }
.btn-shine::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%); background-size: 250% 100%; background-position: 120% 0; z-index: -1; transition: background-position .8s var(--ease); pointer-events: none; }
.btn-shine:hover::after { background-position: -20% 0; }
.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 650; }
.link-arrow .ico { transition: transform .25s var(--ease); }
.link-arrow:hover .ico { transform: translateX(4px); }

/* ---------- Badge, chip, tasti ---------- */
.badge { display: inline-flex; align-items: center; gap: .4em; font-size: .75rem; font-weight: 700; letter-spacing: .02em; padding: .3em .7em; border-radius: 999px; background: var(--hover); color: var(--text-2); border: 1px solid var(--border); white-space: nowrap; }
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge-ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.badge-warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.badge-err { background: var(--err-soft); color: var(--err); border-color: transparent; }
.badge-accent { background: var(--accent-soft); color: var(--accent-text); border-color: transparent; }
.badge-live .dot { animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 currentColor; } 70% { box-shadow: 0 0 0 7px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; list-style: none; }
.chip { font-size: .78rem; font-weight: 600; padding: .28em .7em; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2); }
kbd, .kbd { display: inline-grid; place-items: center; min-width: 1.9em; height: 1.9em; padding: 0 .45em; font-family: var(--mono); font-size: .82rem; font-weight: 700; color: var(--text-strong); background: linear-gradient(var(--surface), var(--surface-2)); border: 1px solid var(--border-2); border-bottom-width: 3px; border-radius: 7px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  color: #e6edf6;
  background: linear-gradient(135deg, var(--ink-900) 0%, var(--ink-800) 55%, var(--teal-800) 100%);
  padding: calc(var(--header-h) + 72px) 0 110px;
}
.hero[data-variant="cem"] { background: linear-gradient(135deg, #3d0b10 0%, #7a1418 55%, #a8261f 100%); }
.hero[data-variant="dtm"] { background: linear-gradient(135deg, #0c2340 0%, #123b63 55%, #0d5560 100%); }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: 0; transition: opacity 1.2s var(--ease); }
.hero-canvas.ready { opacity: 1; }
.hero::after { /* profilo del terreno in basso, come nello splash */
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 90px; z-index: -1; pointer-events: none;
  background: var(--bg);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 90' preserveAspectRatio='none'%3E%3Cpath d='M0 62C120 40 210 70 330 56S520 18 640 38 760 44 760 44H1010C1060 44 1110 30 1210 40S1370 64 1440 52V90H0Z'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 90' preserveAspectRatio='none'%3E%3Cpath d='M0 62C120 40 210 70 330 56S520 18 640 38 760 44 760 44H1010C1060 44 1110 30 1210 40S1370 64 1440 52V90H0Z'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.hero h1 { color: #fff; margin-bottom: .35em; }
.hero h1 .hl { background: linear-gradient(90deg, var(--peach), #ffe9c9 40%, var(--leaf)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero[data-variant="cem"] h1 .hl { background: linear-gradient(90deg, #ffd29a, #fff0dc); -webkit-background-clip: text; background-clip: text; }
.hero .lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: #c9d7e8; max-width: 36em; }
.hero[data-variant="cem"] .lead { color: #f6d9d2; }
.eyebrow { display: inline-flex; align-items: center; gap: .6em; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 1rem; }
.hero .eyebrow { color: var(--peach); padding: .45em .9em .45em .55em; border-radius: 999px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); letter-spacing: .1em; }
.hero .eyebrow .badge { background: var(--peach); color: var(--ink-900); border: 0; letter-spacing: .04em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 34px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: .9rem; color: #a9bdd4; }
.hero-meta span { display: inline-flex; align-items: center; gap: .5em; }
.hero-meta .ico { color: var(--leaf); }
.hero[data-variant="cem"] .hero-meta { color: #f0c2b8; }
.hero[data-variant="cem"] .hero-meta .ico { color: var(--peach); }
.page-hero { padding: calc(var(--header-h) + 54px) 0 96px; }
.page-hero h1 { font-size: clamp(2rem, 4.2vw, 3.2rem); }
.page-hero .lead { max-width: 44em; }
.breadcrumb { font-size: .85rem; color: #9fb3ca; margin-bottom: 14px; display: flex; gap: 8px; flex-wrap: wrap; }
.breadcrumb a { color: #cfe0f5; }

/* finestra dell'applicazione (mockup) */
.app-stage { position: relative; perspective: 1600px; }
.app-window {
  position: relative; border-radius: 12px; overflow: hidden; background: #f3f5f8;
  box-shadow: var(--shadow-3), 0 0 0 1px rgba(255, 255, 255, .12);
  transform: rotateY(-11deg) rotateX(5deg) rotateZ(.5deg);
  transform-style: preserve-3d; transition: transform .8s var(--ease);
}
.app-stage:hover .app-window { transform: rotateY(-4deg) rotateX(2deg); }
.app-titlebar { display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 0 0 12px; background: #ffffff; border-bottom: 1px solid #dde2e8; color: #2b3440; font-size: 12.5px; font-weight: 600; }
.app-titlebar img { width: 16px; height: 16px; }
.app-titlebar .t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: opacity .4s; }
.win-ctl { display: flex; height: 100%; }
.win-ctl i { width: 44px; display: grid; place-items: center; color: #4a5563; }
.win-ctl i::before { content: ""; width: 10px; height: 10px; }
.win-ctl i:nth-child(1)::before { height: 1px; background: currentColor; }
.win-ctl i:nth-child(2)::before { border: 1px solid currentColor; }
.win-ctl i:nth-child(3)::before { width: 12px; height: 12px; background: linear-gradient(45deg, transparent 46%, currentColor 46%, currentColor 54%, transparent 54%), linear-gradient(-45deg, transparent 46%, currentColor 46%, currentColor 54%, transparent 54%); }
.app-screens { position: relative; aspect-ratio: 16 / 10; background: #e9edf2; }
.app-screens img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: left top; opacity: 0; transition: opacity 1s var(--ease), transform 6s linear; transform: scale(1.02); }
.app-screens img.on { opacity: 1; transform: scale(1); }
.app-dots { display: flex; gap: 8px; justify-content: center; margin-top: 18px; }
.app-dots { gap: 2px; }
.app-dots button { width: 24px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; transition: width .3s var(--ease); }
.app-dots button::before { content: ""; width: 9px; height: 9px; border-radius: 99px; background: rgba(255, 255, 255, .3); transition: width .3s var(--ease), background .3s; }
.app-dots button.on { width: 40px; }
.app-dots button.on::before { width: 28px; background: var(--peach); }
.float-logo { position: absolute; width: 74px; height: 74px; filter: drop-shadow(0 16px 26px rgba(0, 0, 0, .4)); animation: floaty 7s ease-in-out infinite; z-index: 2; }
.float-logo.l1 { left: -34px; top: -28px; }
.float-logo.l2 { right: -26px; bottom: 34px; animation-delay: -3.5s; width: 64px; height: 64px; }
@keyframes floaty { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-14px) rotate(3deg); } }
.caption-pill { position: absolute; left: 16px; bottom: 16px; z-index: 3; background: rgba(12, 35, 64, .82); color: #fff; font-size: .8rem; font-weight: 600; padding: .45em .85em; border-radius: 999px; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); max-width: calc(100% - 32px); transition: opacity .4s; }

@media (max-width: 960px) {
  .hero { padding-top: calc(var(--header-h) + 40px); padding-bottom: 96px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .app-window { transform: none; }
  .float-logo.l1 { left: -6px; top: -30px; }
  .float-logo.l2 { right: -6px; }
}

/* ---------- Sezioni ---------- */
.section { padding: 96px 0; position: relative; }
.section.tight { padding: 64px 0; }
.section.alt { background: var(--surface); border-block: 1px solid var(--border); }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .lead { font-size: 1.1rem; color: var(--text-2); }
.lead { font-size: 1.12rem; color: var(--text-2); }
.muted { color: var(--text-3); }
.small { font-size: .88rem; }
.grid { display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); } .section { padding: 72px 0; } }

/* ---------- Card ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-1); }
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }

/* card prodotto */
.products { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 22px; }
.product-card { --p: var(--accent); --p2: var(--peach); grid-column: span 3; position: relative; display: flex; flex-direction: column; gap: 14px; padding: 28px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-1); overflow: hidden; isolation: isolate; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; transform-style: preserve-3d; }
.product-card.upcoming { grid-column: span 2; padding: 24px; }
.product-card::before { content: ""; position: absolute; inset: -1px; z-index: -1; background: radial-gradient(520px circle at var(--mx, 85%) var(--my, 0%), color-mix(in srgb, var(--p) 16%, transparent), transparent 55%); opacity: .9; transition: opacity .3s; }
.product-card::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; z-index: -1; border-radius: 50%; border: 1.5px solid color-mix(in srgb, var(--p) 22%, transparent); box-shadow: 0 0 0 26px color-mix(in srgb, var(--p) 5%, transparent), 0 0 0 27.5px color-mix(in srgb, var(--p) 16%, transparent), 0 0 0 56px color-mix(in srgb, var(--p) 3%, transparent), 0 0 0 57.5px color-mix(in srgb, var(--p) 12%, transparent); transition: transform .8s var(--ease); }
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-2); border-color: color-mix(in srgb, var(--p) 45%, var(--border)); }
.product-card:hover::after { transform: scale(1.12) rotate(8deg); }
.product-card .pc-top { display: flex; align-items: center; gap: 16px; }
.product-card .pc-logo { width: 64px; height: 64px; flex: none; filter: drop-shadow(0 10px 18px color-mix(in srgb, var(--p) 40%, transparent)); transition: transform .5s var(--ease); }
.product-card.upcoming .pc-logo { width: 52px; height: 52px; }
.product-card:hover .pc-logo { transform: rotate(-6deg) scale(1.06); }
.product-card h3 { font-size: 1.45rem; margin: 0; }
.product-card.upcoming h3 { font-size: 1.15rem; }
.product-card .pc-tag { color: var(--text-2); font-weight: 550; font-size: .95rem; margin: 2px 0 0; line-height: 1.35; }
.product-card .pc-summary { color: var(--text-2); margin: 0; font-size: .97rem; }
.product-card .pc-foot { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding-top: 6px; }
.product-card .pc-stats { display: flex; gap: 18px; font-size: .85rem; color: var(--text-3); flex-wrap: wrap; }
.product-card .pc-stats b { color: var(--text-strong); font-family: var(--mono); font-weight: 650; }
.product-card .version { font-family: var(--mono); font-size: .78rem; font-weight: 650; color: var(--p); background: color-mix(in srgb, var(--p) 12%, transparent); padding: .25em .6em; border-radius: 7px; }
[data-theme="dark"] .product-card .version { color: color-mix(in srgb, var(--p) 60%, #fff); }
.product-card .stretched { position: absolute; inset: 0; z-index: 0; }
.product-card .pc-foot, .product-card .pc-top { position: relative; z-index: 1; }
@media (max-width: 980px) { .product-card, .product-card.upcoming { grid-column: span 3; } }
@media (max-width: 640px) { .products { grid-template-columns: minmax(0, 1fr); } .product-card, .product-card.upcoming { grid-column: auto; } }

/* ---------- Vantaggi ---------- */
.feature { position: relative; padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); transition: transform .3s var(--ease), box-shadow .3s; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.feature .f-ico { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; margin-bottom: 16px; color: #fff; background: linear-gradient(135deg, var(--ink-800), var(--teal-800)); box-shadow: 0 8px 18px -8px rgba(13, 85, 96, .7); }
.feature .f-ico .ico { width: 24px; height: 24px; }
.feature h3 { font-size: 1.1rem; }
.feature p { color: var(--text-2); font-size: .96rem; margin: 0; }

/* ---------- Fascia numeri ---------- */
.stats-band { position: relative; overflow: hidden; isolation: isolate; color: #e6edf6; background: linear-gradient(120deg, var(--ink-950), var(--ink-800) 60%, var(--teal-800)); padding: 72px 0; }
.stats-band canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: .7; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; text-align: center; }
.stat .n { display: block; font-size: clamp(2.2rem, 4.5vw, 3.4rem); font-weight: 800; letter-spacing: -.04em; color: #fff; font-variant-numeric: tabular-nums; line-height: 1.1; }
.stat .l { font-size: .92rem; color: #a9bdd4; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; } }

/* ---------- Roadmap ---------- */
.roadmap { position: relative; display: grid; gap: 0; padding-left: 8px; }
.roadmap::before { content: ""; position: absolute; left: 27px; top: 14px; bottom: 14px; width: 2px; background: var(--border); }
.roadmap .progress { position: absolute; left: 27px; top: 14px; width: 2px; height: 0; background: linear-gradient(var(--c-dtm), var(--c-cem), var(--c-cable)); transition: height 1.6s var(--ease); }
.rm-item { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 22px; padding: 14px 0 26px; }
.rm-dot { position: relative; z-index: 1; width: 40px; height: 40px; border-radius: 12px; background: var(--surface); border: 2px solid var(--border-2); display: grid; place-items: center; }
.rm-dot img { width: 30px; height: 30px; }
.rm-item.done .rm-dot { border-color: var(--ok); }
.rm-item.now .rm-dot { border-color: var(--c-cable); box-shadow: 0 0 0 6px color-mix(in srgb, var(--c-cable) 20%, transparent); animation: ring 2.4s infinite; }
@keyframes ring { 50% { box-shadow: 0 0 0 11px color-mix(in srgb, var(--c-cable) 6%, transparent); } }
.rm-body { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 22px; }
.rm-body h3 { font-size: 1.08rem; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: .35em; }
.rm-body p { margin: 0; color: var(--text-2); font-size: .95rem; }
.rm-when { font-family: var(--mono); font-size: .78rem; color: var(--text-3); margin-bottom: 4px; display: block; }

/* ---------- Mostra funzioni (righe alternate) ---------- */
.showcase { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 56px; align-items: center; }
.showcase.rev { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.showcase.rev .sc-media { order: -1; }
.sc-media { position: relative; }
.sc-media .shot { border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-2), 0 0 0 1px var(--border); background: var(--surface); cursor: zoom-in; transition: transform .5s var(--ease), box-shadow .5s; }
.sc-media .shot:hover { transform: translateY(-4px) scale(1.01); box-shadow: var(--shadow-3), 0 0 0 1px var(--border); }
.sc-media .shot img { width: 100%; }
.checklist { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.checklist li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; color: var(--text-2); }
.checklist li .ico { color: var(--accent); margin-top: 3px; }
.checklist b { color: var(--text-strong); font-weight: 650; }
@media (max-width: 900px) { .showcase, .showcase.rev { grid-template-columns: minmax(0, 1fr); gap: 28px; } .showcase.rev .sc-media { order: 0; } }

/* tastiera degli strumenti */
.tools { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.tool { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; transition: transform .25s var(--ease), border-color .25s, box-shadow .25s; }
.tool:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 50%, var(--border)); box-shadow: var(--shadow-2); }
.tool .kbd { margin-bottom: 12px; }
.tool:hover .kbd { background: var(--accent); color: #fff; border-color: var(--accent-press); }
.tool h4 { font-size: .98rem; margin-bottom: .3em; }
.tool p { font-size: .86rem; color: var(--text-3); margin: 0; line-height: 1.45; }
@media (max-width: 1060px) { .tools { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .tools { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* galleria */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.gallery figure { margin: 0; }
.gallery button { all: unset; display: block; width: 100%; cursor: zoom-in; border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 1px var(--border), var(--shadow-1); background: var(--surface); transition: transform .35s var(--ease), box-shadow .35s; }
.gallery button:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px var(--border), var(--shadow-2); }
.gallery button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.gallery img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: left top; }
.gallery figcaption { font-size: .86rem; color: var(--text-3); margin-top: 8px; line-height: 1.4; }
@media (max-width: 860px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .gallery { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Download ---------- */
.dl-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
@media (max-width: 760px) { .dl-panel { grid-template-columns: minmax(0, 1fr); } }
.dl-card { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-1); }
.dl-card.primary { border-color: color-mix(in srgb, var(--p, var(--accent)) 45%, var(--border)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--p, var(--accent)) 10%, transparent), var(--shadow-1); }
.dl-card .dl-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.dl-card h4 { margin: 0; font-size: 1.05rem; }
.dl-card .dl-note { margin: 0; font-size: .92rem; color: var(--text-2); }
.dl-card .dl-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .82rem; color: var(--text-3); }
.dl-card .dl-meta span { display: inline-flex; align-items: center; gap: .4em; }
.dl-file { font-family: var(--mono); font-size: .8rem; color: var(--text-2); overflow-wrap: anywhere; }
.hash { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: .72rem; color: var(--text-3); background: var(--surface-2); border: 1px dashed var(--border-2); border-radius: 8px; padding: 6px 6px 6px 10px; }
.hash span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hash button { all: unset; cursor: pointer; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 6px; color: var(--text-2); }
.hash button:hover { background: var(--hover); color: var(--text-strong); }
.dl-card .btn { margin-top: auto; }
.dl-missing { font-size: .82rem; color: var(--warn); display: flex; gap: .4em; align-items: center; }

.product-dl { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 32px; padding: 32px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-1); margin-bottom: 28px; position: relative; overflow: hidden; }
.product-dl::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 300px; background: linear-gradient(160deg, color-mix(in srgb, var(--p) 14%, transparent), transparent 70%); pointer-events: none; }
.product-dl .pd-info { position: relative; }
.product-dl .pd-info img { width: 72px; height: 72px; margin-bottom: 14px; }
.product-dl .pd-info h2 { font-size: 1.6rem; margin-bottom: .2em; }
.product-dl .pd-info .req { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 6px; font-size: .86rem; color: var(--text-2); }
.product-dl .pd-info .req li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 8px; line-height: 1.4; }
.product-dl .pd-info .req .ico { color: var(--p); margin-top: 2px; width: 16px; height: 16px; }
@media (max-width: 860px) { .product-dl { grid-template-columns: minmax(0, 1fr); padding: 24px; } .product-dl::before { width: 100%; height: 200px; inset: 0 0 auto 0; } }

/* passi installazione */
.steps { counter-reset: s; display: grid; gap: 14px; padding: 0; margin: 0; list-style: none; }
.steps li { counter-increment: s; position: relative; padding: 18px 20px 18px 66px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.steps li::before { content: counter(s); position: absolute; left: 18px; top: 16px; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--ink-800), var(--teal-800)); }
.steps h4 { margin: 0 0 .25em; }
.steps p { margin: 0; color: var(--text-2); font-size: .95rem; }

/* ---------- Novità ---------- */
.timeline { position: relative; display: grid; gap: 22px; }
.tl-item { --p: var(--accent); display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 28px; }
.tl-side { text-align: right; padding-top: 18px; }
.tl-side .v { font-family: var(--mono); font-weight: 700; font-size: 1.05rem; color: var(--text-strong); display: block; }
.tl-side .d { font-size: .86rem; color: var(--text-3); }
.tl-card { position: relative; background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--p); border-radius: var(--radius); padding: 18px 22px; }
.tl-card h3 { font-size: 1.1rem; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tl-card h3 img { width: 26px; height: 26px; }
.tl-card ul { margin: .4em 0 0; padding-left: 1.2em; color: var(--text-2); }
.tl-card li { margin: .25em 0; }
@media (max-width: 700px) { .tl-item { grid-template-columns: minmax(0, 1fr); gap: 6px; } .tl-side { text-align: left; padding: 0; display: flex; gap: 12px; align-items: baseline; } }

/* filtri a pillole */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.pill { font: inherit; font-size: .88rem; font-weight: 600; padding: .5em 1em; border-radius: 999px; border: 1px solid var(--border-2); background: var(--surface); color: var(--text-2); cursor: pointer; display: inline-flex; align-items: center; gap: .5em; transition: .2s; }
.pill img { width: 18px; height: 18px; }
.pill:hover { border-color: var(--text-3); color: var(--text-strong); }
.pill[aria-pressed="true"] { background: var(--text-strong); border-color: var(--text-strong); color: var(--bg); }

/* ---------- Form ---------- */
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 7px; }
.field > label, .field > .label { font-weight: 650; font-size: .92rem; color: var(--text-strong); }
.field .hint { font-size: .82rem; color: var(--text-3); }
.field .count { font-size: .78rem; color: var(--text-3); justify-self: end; font-family: var(--mono); }
.input, .select, .textarea {
  font: inherit; font-size: .97rem; width: 100%; color: var(--text); background: var(--surface);
  border: 1px solid var(--border-2); border-radius: 10px; padding: .7em .85em; transition: border-color .2s, box-shadow .2s;
}
.textarea { min-height: 160px; resize: vertical; line-height: 1.55; }
.select { appearance: none; padding-right: 2.4em; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235f6b7a' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .7em center; background-size: 18px; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.input[aria-invalid="true"], .textarea[aria-invalid="true"], .select[aria-invalid="true"] { border-color: var(--err); }
.field .error { font-size: .82rem; color: var(--err); display: none; }
.field.has-error .error { display: block; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .row-2 { grid-template-columns: minmax(0, 1fr); } }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { display: inline-flex; align-items: center; gap: .5em; padding: .55em .95em; border-radius: 10px; border: 1px solid var(--border-2); background: var(--surface); font-size: .9rem; font-weight: 600; color: var(--text-2); cursor: pointer; transition: .18s; }
.seg label:hover { border-color: var(--text-3); }
.seg input:checked + label { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-text); }
.seg input:focus-visible + label { outline: 3px solid color-mix(in srgb, var(--accent) 50%, transparent); outline-offset: 2px; }
.check { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; font-size: .9rem; color: var(--text-2); cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Bacheca idee ---------- */
.ideas-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 36px; align-items: start; }
@media (max-width: 980px) { .ideas-layout { grid-template-columns: minmax(0, 1fr); } }
.form-card { position: sticky; top: calc(var(--header-h) + 18px); }
@media (max-width: 980px) { .form-card { position: static; } }
.idea { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px; padding: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); transition: border-color .2s, transform .25s var(--ease); }
.idea + .idea { margin-top: 12px; }
.idea:hover { border-color: var(--border-2); }
.vote { display: grid; justify-items: center; align-content: start; gap: 2px; padding: 10px 0; border-radius: 12px; border: 1px solid var(--border-2); background: var(--surface-2); cursor: pointer; font: inherit; color: var(--text-2); transition: .2s; height: max-content; }
.vote:hover { border-color: var(--accent); color: var(--accent-text); }
.vote .ico { width: 20px; height: 20px; }
.vote b { font-family: var(--mono); font-size: 1.05rem; color: var(--text-strong); }
.vote.voted { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-text); }
.vote.bump { animation: bump .45s var(--ease); }
@keyframes bump { 40% { transform: scale(1.15); } }
.idea h4 { margin: 0 0 .3em; font-size: 1.02rem; }
.idea p { margin: 0; font-size: .93rem; color: var(--text-2); white-space: pre-line; }
.idea .meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; align-items: center; }
.idea .meta .date { font-size: .78rem; color: var(--text-3); margin-left: auto; }
.idea .reply { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-text); font-size: .88rem; }
.idea .reply b { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 2px; }
.empty { text-align: center; padding: 42px 20px; border: 1px dashed var(--border-2); border-radius: var(--radius); color: var(--text-3); }
.empty .ico { width: 34px; height: 34px; margin: 0 auto 10px; color: var(--text-3); }
.status-flow { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: .8rem; }
.status-flow .ico { width: 14px; height: 14px; color: var(--text-3); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); transition: border-color .2s, box-shadow .2s; }
.faq details[open] { border-color: var(--border-2); box-shadow: var(--shadow-1); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 54px 18px 22px; font-weight: 650; color: var(--text-strong); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--text-3); border-bottom: 2px solid var(--text-3); transform: translateY(-70%) rotate(45deg); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq .a { padding: 0 22px 18px; color: var(--text-2); }
.faq .a p:last-child { margin-bottom: 0; }

/* ---------- CTA ---------- */
.cta { position: relative; overflow: hidden; isolation: isolate; border-radius: var(--radius-lg); padding: 56px; color: #e6edf6; background: linear-gradient(120deg, var(--ink-900), var(--ink-800) 55%, var(--teal-800)); box-shadow: var(--shadow-3); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center; }
.cta canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.cta h2 { color: #fff; margin-bottom: .3em; }
.cta p { color: #bfd0e3; margin: 0; max-width: 40em; }
.cta .actions { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 820px) { .cta { grid-template-columns: minmax(0, 1fr); padding: 36px 24px; } }

/* ---------- Testi legali / prosa ---------- */
.prose { max-width: 780px; }
.prose h2 { font-size: 1.45rem; margin-top: 2.2em; }
.prose h3 { font-size: 1.12rem; margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .35em 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: .92rem; margin: 1em 0 1.5em; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.prose th { color: var(--text-strong); background: var(--surface-2); }
.note { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; padding: 14px 18px; border-radius: 12px; background: var(--warn-soft); color: var(--text); border: 1px solid color-mix(in srgb, var(--warn) 30%, transparent); font-size: .93rem; }
.note .ico { color: var(--warn); margin-top: 2px; }
.note.info { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 30%, transparent); }
.note.info .ico { color: var(--accent-text); }
.note p { margin: 0; }
.toc-box { position: sticky; top: calc(var(--header-h) + 20px); font-size: .9rem; }
.toc-box a { display: block; padding: 5px 10px; border-left: 2px solid var(--border); color: var(--text-2); }
.toc-box a:hover { color: var(--text-strong); border-left-color: var(--accent); text-decoration: none; }
.with-toc { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; align-items: start; }
@media (max-width: 900px) { .with-toc { grid-template-columns: minmax(0, 1fr); } .toc-box { display: none; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-950); color: #9fb0c4; padding: 72px 0 28px; margin-top: 0; position: relative; overflow: hidden; isolation: isolate; }
.site-footer canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: .5; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 40px; }
.site-footer h4 { color: #e6edf6; font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 1em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: .93rem; }
.site-footer a { color: #c4d2e2; }
.site-footer a:hover { color: #fff; }
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.site-footer .about { font-size: .93rem; max-width: 30em; }
.footer-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .08); display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; font-size: .83rem; }
.footer-products { display: flex; gap: 8px; margin-top: 18px; }
.footer-products img { width: 30px; height: 30px; transition: transform .3s var(--ease); }
.footer-products a:hover img { transform: translateY(-3px); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- Lightbox, modali, toast ---------- */
.lightbox, .modal { position: fixed; inset: 0; z-index: 500; display: grid; place-items: center; padding: 24px; background: rgba(5, 12, 24, .82); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
.lightbox.open, .modal.open { opacity: 1; visibility: visible; }
.lightbox figure { margin: 0; max-width: min(1400px, 96vw); max-height: 92vh; display: grid; gap: 12px; transform: scale(.96); transition: transform .3s var(--ease); }
.lightbox.open figure { transform: none; }
.lightbox img { max-height: 84vh; width: auto; margin: 0 auto; border-radius: 10px; box-shadow: var(--shadow-3); background: #fff; }
.lightbox figcaption { color: #dbe5f1; text-align: center; font-size: .95rem; }
.lb-btn { position: fixed; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .08); color: #fff; display: grid; place-items: center; cursor: pointer; }
.lb-btn:hover { background: rgba(255, 255, 255, .18); }
.lb-prev { left: 18px; } .lb-next { right: 18px; }
.lb-close { top: 22px; right: 18px; transform: none; }
.modal .dialog { width: min(560px, 100%); background: var(--surface); color: var(--text); border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow-3); transform: translateY(14px) scale(.98); transition: transform .3s var(--ease); max-height: 90vh; overflow: auto; position: relative; }
.modal.open .dialog { transform: none; }
.modal .dialog .close { position: absolute; top: 14px; right: 14px; }
.modal .dialog .icon-btn { color: var(--text-2); border-color: var(--border); }
.modal h3 { font-size: 1.35rem; padding-right: 40px; }
.dl-anim { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); margin-bottom: 16px; }
.dl-anim .ico { width: 32px; height: 32px; animation: drop 1.4s var(--ease) infinite; }
@keyframes drop { 0% { transform: translateY(-8px); opacity: 0; } 40% { opacity: 1; } 80% { transform: translateY(4px); } 100% { transform: translateY(4px); opacity: 0; } }
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 600; display: grid; gap: 10px; max-width: min(420px, calc(100vw - 40px)); }
.toast { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; padding: 14px 16px; border-radius: 12px; background: var(--text-strong); color: var(--bg); box-shadow: var(--shadow-2); font-size: .93rem; animation: toastIn .35s var(--ease); }
.toast.out { animation: toastOut .3s var(--ease) forwards; }
.toast.ok .ico { color: #4ccf86; } .toast.err .ico { color: #ff8a80; }
@keyframes toastIn { from { transform: translateY(16px); opacity: 0; } }
@keyframes toastOut { to { transform: translateY(16px); opacity: 0; } }

/* ---------- Comparsa allo scorrimento ---------- */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal="left"] { transform: translateX(-26px); }
[data-reveal="right"] { transform: translateX(26px); }
[data-reveal="zoom"] { transform: scale(.94); }
[data-reveal].in { opacity: 1; transform: none; }
@media (max-width: 900px) { [data-reveal="left"], [data-reveal="right"] { transform: translateY(22px); } }
.no-js [data-reveal] { opacity: 1; transform: none; }

/* fascia dei formati supportati */
.formats { background: var(--surface); border-block: 1px solid var(--border); padding: 26px 0 22px; overflow: hidden; }
.formats-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin-bottom: 16px; }
.formats-head .eyebrow { margin: 0; }
.formats-head p { margin: 0; color: var(--text-2); font-size: .95rem; }
.formats-strip { position: relative; -webkit-mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.formats-strip .track { display: flex; width: max-content; animation: marquee 70s linear infinite; }
.formats-strip:hover .track { animation-play-state: paused; }
.fgroup { display: flex; gap: 12px; padding-right: 12px; }
.ftile { display: inline-flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-2); white-space: nowrap; transition: border-color .2s, transform .2s var(--ease); }
.ftile:hover { border-color: var(--border-2); transform: translateY(-2px); }
.fdoc { --k: #5f6b7a; position: relative; width: 34px; height: 42px; flex: none; border-radius: 4px; background: var(--surface); border: 1.5px solid color-mix(in srgb, var(--k) 55%, var(--border)); clip-path: polygon(0 0, 68% 0, 100% 24%, 100% 100%, 0 100%); display: flex; align-items: flex-end; overflow: hidden; }
.fdoc::before { content: ""; position: absolute; right: -1px; top: -1px; width: 12px; height: 12px; background: color-mix(in srgb, var(--k) 30%, var(--surface)); border-bottom-left-radius: 3px; }
.fdoc b { display: block; width: 100%; padding: 2px 0 3px; text-align: center; font-family: var(--mono); font-size: 9.5px; font-weight: 700; letter-spacing: -.02em; color: #fff; background: var(--k); text-transform: uppercase; }
.fdoc[data-kind="Raster"] { --k: #3f8f4f; }
.fdoc[data-kind="CAD"] { --k: #b4532a; }
.fdoc[data-kind="GIS"] { --k: #2f6fb3; }
.fdoc[data-kind="Testo"] { --k: #5f6b7a; }
.fdoc[data-kind="Tabelle"] { --k: #1f7a4a; }
.fdoc[data-kind="Documenti"] { --k: #b3261e; }
.fdoc[data-kind="3D"] { --k: #6b4fbf; }
.fmeta { display: grid; line-height: 1.25; }
.fmeta b { font-size: .92rem; color: var(--text-strong); font-weight: 650; }
.fmeta small { font-size: .76rem; color: var(--text-3); }
.fapps { display: flex; gap: 4px; margin-left: 2px; }
.fapps img { width: 18px; height: 18px; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .formats-strip { -webkit-mask: none; mask: none; }
  .formats-strip .track { animation: none; width: auto; }
  .fgroup { flex-wrap: wrap; justify-content: center; padding: 0 16px; }
  .fgroup[aria-hidden] { display: none; }
}
.hero a.eyebrow:hover { text-decoration: none; background: rgba(255, 255, 255, .12); }

/* ---------- Admin ---------- */
.admin-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 22px; }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; }
.kpi .l { font-size: .82rem; color: var(--text-3); font-weight: 600; }
.kpi .n { font-size: 2rem; font-weight: 800; letter-spacing: -.03em; color: var(--text-strong); font-variant-numeric: tabular-nums; }
.kpi .s { font-size: .8rem; color: var(--text-3); }
@media (max-width: 860px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; margin-bottom: 22px; }
.panel h3 { font-size: 1.05rem; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.table th, .table td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
.table th { font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); font-weight: 700; }
.table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; font-family: var(--mono); }
.table tr:hover td { background: var(--surface-2); }
.chart { width: 100%; height: 280px; }
.chart text { fill: var(--text-3); font-size: 11px; font-family: var(--font); }
.chart .grid line { stroke: var(--border); }
.chart .axis line { stroke: var(--border-2); }
.chart-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: .84rem; color: var(--text-2); margin-top: 8px; }
.chart-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.chart-tip { position: fixed; z-index: 700; pointer-events: none; background: var(--text-strong); color: var(--bg); font-size: .8rem; padding: 8px 10px; border-radius: 8px; box-shadow: var(--shadow-2); opacity: 0; transition: opacity .15s; white-space: nowrap; }
.idea-admin { border: 1px solid var(--border); border-radius: 12px; padding: 16px; display: grid; gap: 10px; }
.idea-admin + .idea-admin { margin-top: 12px; }
.idea-admin .top { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.idea-admin .controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.idea-admin .controls .select { width: auto; padding-top: .45em; padding-bottom: .45em; font-size: .88rem; }
.idea-admin .textarea { min-height: 70px; font-size: .9rem; }
.backend-pill { font-family: var(--mono); font-size: .78rem; }

/* ---------- Utilità ---------- */
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 28px; } .mt-4 { margin-top: 44px; }
.mb-0 { margin-bottom: 0; }
.flex { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.between { justify-content: space-between; }
.hidden { display: none !important; }
.nowrap { white-space: nowrap; }
.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton { background: linear-gradient(90deg, var(--hover), var(--surface-2), var(--hover)); background-size: 200% 100%; animation: sk 1.4s infinite; border-radius: 10px; min-height: 120px; }
@keyframes sk { to { background-position: -200% 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

@media print {
  .site-header, .site-footer, .hero-canvas, .cta, .toasts { display: none !important; }
  .hero { background: none; color: #000; padding: 20px 0; }
  .hero h1, .hero .lead { color: #000; }
}

/* ---------- Sottomenu di pagina (prodotti) ---------- */
.subnav { position: sticky; top: var(--header-h); z-index: 50; background: color-mix(in srgb, var(--bg) 86%, transparent); -webkit-backdrop-filter: saturate(160%) blur(12px); backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid var(--border); }
.subnav .container { display: flex; align-items: center; gap: 4px; overflow-x: auto; padding-block: 10px; scrollbar-width: none; }
.subnav .container::-webkit-scrollbar { display: none; }
.subnav a:not(.btn) { white-space: nowrap; padding: 6px 12px; border-radius: 8px; font-size: .9rem; font-weight: 600; color: var(--text-2); transition: background .2s, color .2s; }
.subnav a:not(.btn):hover, .subnav a.active { background: var(--accent-soft); color: var(--accent-text); text-decoration: none; }
.subnav .btn { margin-left: auto; flex: none; }

/* icone dei vantaggi con l'accento del prodotto */
.feature.acc .f-ico { background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 55%, #061224)); box-shadow: 0 8px 18px -8px color-mix(in srgb, var(--accent) 80%, transparent); }

/* limiti di legge (CEMCalc) */
.limits { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.limit { position: relative; overflow: hidden; padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.limit .v { display: block; font-size: 2.2rem; font-weight: 800; letter-spacing: -.03em; color: var(--text-strong); font-variant-numeric: tabular-nums; }
.limit .v small { font-size: 1rem; font-weight: 700; color: var(--text-3); margin-left: 4px; }
.limit .t { font-weight: 650; color: var(--text-strong); }
.limit p { margin: 4px 0 0; font-size: .86rem; color: var(--text-3); }
.limit::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--lc, var(--accent)); }
@media (max-width: 900px) { .limits { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.norms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 28px; list-style: none; padding: 0; margin: 0; }
.norms li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; font-size: .95rem; color: var(--text-2); padding: 10px 0; border-bottom: 1px solid var(--border); }
.norms li b { color: var(--text-strong); }
.norms .ico { color: var(--accent); margin-top: 3px; }
@media (max-width: 760px) { .norms { grid-template-columns: minmax(0, 1fr); } }

/* ==========================================================================
   Smartphone, tablet e schermi touch
   ========================================================================== */
html { -webkit-tap-highlight-color: transparent; }
button.shot { appearance: none; -webkit-appearance: none; display: block; width: 100%; padding: 0; border: 0; font: inherit; color: inherit; text-align: left; }
.nav-cta, .mobile-only { display: none !important; }

/* niente effetti «hover» che restano attaccati dopo il tocco */
@media (hover: none) {
  .product-card:hover, .feature:hover, .tool:hover, .sc-media .shot:hover, .gallery button:hover, .btn:active { transform: none; }
  .product-card:hover::after { transform: none; }
  .product-card:hover .pc-logo, .brand:hover img { transform: none; }
}

@media (max-width: 1060px) {
  .main-nav .nav-cta { display: inline-flex !important; margin-top: 10px; padding: .85em 1em; justify-content: center; opacity: 1; }
  .main-nav .nav-cta:hover { background: var(--accent-hover); }
  .main-nav { z-index: 2; }
  /* il backdrop-filter dell'intestazione fa da riferimento ai figli «fixed»: per questo altezza esplicita */
  .site-header.menu-open::before { content: ""; position: fixed; left: 0; right: 0; top: var(--header-h); height: 100vh; height: 100dvh; background: rgba(5, 12, 24, .5); z-index: 1; animation: fadeIn .25s var(--ease); }
}
@keyframes fadeIn { from { opacity: 0; } }

@media (max-width: 980px) {
  .mobile-only { display: inline-flex !important; }
}

@media (max-width: 640px) {
  :root { --header-h: 60px; }
  body { font-size: 15.5px; }
  .brand img { width: 32px; height: 32px; }
  .brand-name { font-size: 1.15rem; }
  .icon-btn { width: 42px; height: 42px; }

  /* hero */
  .hero { padding: calc(var(--header-h) + 28px) 0 84px; }
  .page-hero { padding-bottom: 76px; }
  .hero::after { height: 56px; }
  .hero .eyebrow { font-size: .7rem; letter-spacing: .06em; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 10px; margin: 24px 0 26px; }
  .hero-actions .btn { width: 100%; }
  .hero-meta { flex-direction: column; gap: 8px; font-size: .88rem; }
  .float-logo { display: none; }
  .app-titlebar { height: 28px; font-size: 11px; gap: 8px; }
  .app-titlebar img { width: 14px; height: 14px; }
  .win-ctl i { width: 30px; }
  .caption-pill { left: 8px; bottom: 8px; font-size: .72rem; padding: .35em .75em; max-width: calc(100% - 16px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

  /* sezioni più compatte */
  .section { padding: 60px 0; }
  .section.tight { padding: 36px 0; }
  .section-head { margin-bottom: 28px; }
  .section-head .lead, .lead { font-size: 1.02rem; }
  .grid { gap: 12px; }
  .stats-band { padding: 52px 0; }

  /* schede dei vantaggi: icona a sinistra, testo a destra */
  .feature { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 14px; align-items: start; padding: 18px; }
  .feature .f-ico { grid-row: span 2; width: 44px; height: 44px; margin: 2px 0 0; }
  .feature h3 { margin-bottom: .2em; font-size: 1.04rem; }
  .feature p { font-size: .93rem; }

  .product-card { padding: 22px 18px; }
  .product-card .pc-foot .btn { flex: 1 1 auto; }
  .product-dl { padding: 18px 16px; gap: 20px; }
  .dl-card { padding: 18px 16px; }
  .tool { padding: 14px; }
  .rm-item { grid-template-columns: 34px minmax(0, 1fr); gap: 14px; }
  .rm-dot { width: 34px; height: 34px; border-radius: 10px; }
  .rm-dot img { width: 26px; height: 26px; }
  .roadmap::before, .roadmap .progress { left: 24px; }
  .rm-body { padding: 14px 16px; }
  .tl-card { padding: 16px; }
  .steps li { padding: 16px 16px 16px 58px; }
  .steps li::before { left: 14px; }
  .faq summary { padding: 16px 46px 16px 18px; }
  .faq .a { padding: 0 18px 16px; }
  .cta { padding: 28px 20px; gap: 20px; }
  .cta .actions { flex-direction: column; align-items: stretch; }
  .cta .actions .btn { width: 100%; }
  .card { padding: 20px 18px; }
  .note { padding: 12px 14px; }
  .link-arrow, .breadcrumb a { min-height: 40px; align-items: center; }
  .breadcrumb { margin-bottom: 4px; align-items: center; }

  /* moduli: almeno 16 px, così iPhone non ingrandisce la pagina al tocco */
  .input, .select, .textarea { font-size: 16px; }
  .seg label { padding: .65em .9em; }
  .check input { width: 22px; height: 22px; margin-top: 0; }

  /* galleria: scorrimento orizzontale invece di sei immagini in colonna */
  .gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin: 0 -16px; padding: 4px 16px 14px; scrollbar-width: none; overscroll-behavior-x: contain; }
  .gallery::-webkit-scrollbar { display: none; }
  .gallery figure { flex: 0 0 84%; scroll-snap-align: center; }
  .gallery figure[data-reveal] { opacity: 1; transform: none; }
  .swipe-hint { display: flex !important; }

  /* visualizzatore: frecce in basso, immagine più grande */
  .lightbox { padding: 12px; }
  .lightbox img { max-height: 72vh; border-radius: 8px; }
  .lb-prev, .lb-next { top: auto; bottom: calc(20px + env(safe-area-inset-bottom)); transform: none; }
  .lb-prev { left: calc(50% - 64px); }
  .lb-next { right: calc(50% - 64px); }
  .lb-close { top: calc(12px + env(safe-area-inset-top)); right: 12px; }

  .modal { padding: 12px; align-items: end; }
  .modal .dialog { padding: 24px 18px calc(20px + env(safe-area-inset-bottom)); border-radius: 20px; max-height: 88vh; }
  .modal.open .dialog { transform: none; }
  .toasts { left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); max-width: none; }

  /* area riservata */
  .admin-bar { flex-direction: column; align-items: stretch; }
  .kpi { padding: 14px; }
  .kpi .n { font-size: 1.6rem; }
  .panel { padding: 16px; }
  .idea-admin .controls .btn[data-del] { margin-left: 0 !important; }
  .btn-sm { min-height: 40px; }
  .dl-card .dl-head { flex-direction: column-reverse; align-items: flex-start; gap: 8px; }
  .subnav a:not(.btn) { padding: 9px 12px; }
  .hash button { width: 36px; height: 36px; }
}
.swipe-hint { display: none; align-items: center; gap: 8px; font-size: .85rem; color: var(--text-3); margin: -12px 0 14px; }
.swipe-hint .ico { animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateX(5px); } }

/* codice di verifica (SHA-256) richiudibile nelle schede di download */
.verify { font-size: .82rem; color: var(--text-3); }
.verify summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: .45em; font-weight: 600; color: var(--text-2); padding: 4px 0; }
.verify summary::-webkit-details-marker { display: none; }
.verify summary::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); margin-left: 4px; transition: transform .2s; }
.verify[open] summary::after { transform: rotate(-135deg) translateY(-1px); }
.verify .hash { margin: 6px 0; }
.verify p { margin: 0; line-height: 1.45; }

/* specifiche tecniche dei programmi */
.specs { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-1); }
.spec { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 20px; padding: 14px 24px; border-top: 1px solid var(--border); }
.spec:first-child { border-top: 0; }
.spec:nth-child(even) { background: var(--surface-2); }
.spec dt { font-weight: 650; color: var(--text-strong); }
.spec dd { margin: 0; color: var(--text-2); }
@media (max-width: 640px) { .spec { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 14px 16px; } }
.dl-panel > :only-child { grid-column: 1 / -1; }
