/* software-demo/kit.css — la cornice comune delle demo (31/10/2026). I colori sono quelli del sito (static/home/style.css). */
:root {
  --c1: #00b8d4; --c2: #7c3aed; --c3: #ec4899; --c4: #10b981; --c5: #f59e0b;
  --grad: linear-gradient(135deg, var(--c1) 0%, var(--c2) 60%, var(--c3) 100%);
  --bg-0: #f5f6fb; --bg-1: #ffffff; --bg-2: #eceef8; --bg-3: #e2e5f3;
  --ink-0: #0a0c1d; --ink-1: #3a4466; --ink-2: #6a7398;
  --line: rgba(10, 12, 29, .09); --line-2: rgba(10, 12, 29, .16);
  --ombra: 0 1px 2px rgba(10, 12, 29, .06), 0 8px 24px rgba(10, 12, 29, .08);
  --ombra-2: 0 20px 60px rgba(10, 12, 29, .22);
  --r: 12px; --r-lg: 20px; --ease: cubic-bezier(.22, 1, .36, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg-0: #07081a; --bg-1: #0e1026; --bg-2: #161936; --bg-3: #1f2347;
    --ink-0: #eef3ff; --ink-1: #b4bedf; --ink-2: #7a84a8;
    --line: rgba(255, 255, 255, .08); --line-2: rgba(255, 255, 255, .16);
    --ombra: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg-0: #07081a; --bg-1: #0e1026; --bg-2: #161936; --bg-3: #1f2347;
  --ink-0: #eef3ff; --ink-1: #b4bedf; --ink-2: #7a84a8;
  --line: rgba(255, 255, 255, .08); --line-2: rgba(255, 255, 255, .16);
  --ombra: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg-0); color: var(--ink-0); font: 15px/1.5 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; display: flex; flex-direction: column; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
.msr { font-family: "Material Symbols Rounded"; font-weight: normal; font-style: normal; font-size: 20px; line-height: 1; letter-spacing: normal; text-transform: none; display: inline-block; white-space: nowrap; direction: ltr; -webkit-font-feature-settings: "liga"; font-feature-settings: "liga"; font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24; vertical-align: middle; }
.msr.piena { font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 24; }

/* ── la barra della demo ─────────────────────────────────────────────── */
.kt-barra { flex: none; display: flex; align-items: center; gap: 12px; padding: 8px 14px; background: var(--bg-1); border-bottom: 1px solid var(--line); position: relative; z-index: 50; }
.kt-barra::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--grad); opacity: .85; }
.kt-marchio { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink-1); font-size: 12.5px; font-weight: 600; letter-spacing: .02em; white-space: nowrap; }
.kt-marchio .msr { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--grad); color: #fff; font-size: 18px; }
.kt-nome { flex: 1; min-width: 0; font-weight: 700; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-0); }
.kt-sottile { padding: 6px 10px; }
.kt-sottile .kt-marchio span:last-child { display: none; }
@media (max-width: 560px) { .kt-marchio span:last-child { display: none; } .kt-mia span:last-child { display: none; } .kt-mia { padding: 8px 10px; } }

.kt-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 8px 16px; border-radius: 999px; border: 0; font-weight: 650; font-size: 14px; text-decoration: none; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s; white-space: nowrap; }
.kt-btn:active { transform: scale(.97); }
.kt-pri { background: var(--grad); color: #fff; box-shadow: 0 6px 20px rgba(124, 58, 237, .35); }
.kt-pri:hover { box-shadow: 0 10px 30px rgba(124, 58, 237, .45); transform: translateY(-1px); }
.kt-sec { background: var(--bg-2); color: var(--ink-0); border: 1px solid var(--line-2); }

/* ── il foglio «la tua versione» ──────────────────────────────────────── */
.kt-velo { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 16px; background: rgba(5, 6, 20, .55); backdrop-filter: blur(6px); opacity: 0; transition: opacity .25s var(--ease); }
.kt-velo.su { opacity: 1; }
.kt-scheda { position: relative; width: min(520px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: var(--bg-1); color: var(--ink-0); border-radius: 24px; padding: 28px 24px 22px; box-shadow: var(--ombra-2); transform: translateY(18px) scale(.98); transition: transform .3s var(--ease); text-align: center; }
.kt-velo.su .kt-scheda { transform: none; }
.kt-scheda h2 { margin: 10px 0 6px; font-size: 22px; letter-spacing: -.01em; }
.kt-scheda p { margin: 0 0 16px; color: var(--ink-1); }
.kt-scheda small { display: block; margin-top: 12px; color: var(--ink-2); }
.kt-logo { width: 56px; height: 56px; margin: 0 auto; border-radius: 16px; display: grid; place-items: center; background: var(--grad); color: #fff; box-shadow: 0 10px 30px rgba(124, 58, 237, .35); }
.kt-logo .msr { font-size: 30px; }
.kt-area { width: 100%; resize: vertical; min-height: 84px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--bg-0); padding: 12px 14px; text-align: left; outline: none; }
.kt-area:focus { border-color: var(--c2); box-shadow: 0 0 0 4px rgba(124, 58, 237, .15); }
.kt-azioni { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 14px; }
.kt-azioni .kt-btn { flex: 1 1 200px; }
.kt-x { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--bg-2); color: var(--ink-1); display: grid; place-items: center; }

.kt-avviso { position: fixed; left: 50%; bottom: 20px; transform: translate(-50%, 30px); opacity: 0; z-index: 1100; background: var(--ink-0); color: var(--bg-1); padding: 10px 16px; border-radius: 999px; font-size: 13.5px; font-weight: 600; transition: all .3s var(--ease); pointer-events: none; box-shadow: var(--ombra-2); }
.kt-avviso.su { transform: translate(-50%, 0); opacity: 1; }

/* ── attrezzi comuni dei programmi ───────────────────────────────────── */
.app { flex: 1; min-height: 0; display: flex; }
.ico-btn { width: 36px; height: 36px; border-radius: 10px; border: 0; background: transparent; color: var(--ink-1); display: inline-grid; place-items: center; transition: background .15s; }
.ico-btn:hover { background: var(--bg-2); color: var(--ink-0); }
.ico-btn.attivo { background: rgba(124, 58, 237, .14); color: var(--c2); }
.campo { border: 1px solid var(--line-2); background: var(--bg-1); border-radius: 10px; padding: 8px 10px; min-height: 36px; outline: none; }
.campo:focus { border-color: var(--c2); box-shadow: 0 0 0 3px rgba(124, 58, 237, .14); }
.sep { width: 1px; height: 24px; background: var(--line-2); margin: 0 4px; flex: none; }
.scorre::-webkit-scrollbar { width: 10px; height: 10px; } .scorre::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 10px; border: 2px solid transparent; background-clip: padding-box; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; } }
