/* DeskTab — sito pubblico, stile «Vetro» (scelto dall'utente fra sei modelli, 19/11/2026).
   Pannelli e tasti in vetro smerigliato su uno sfondo morbido in movimento; i pannelli si inclinano e prendono un riflesso
   che segue il puntatore. Tema chiaro e scuro (data-theme su <html>, scelto dall'utente o dal sistema). Testo in Manrope. */

:root, :root[data-theme="dark"] {
  --bg: #05070d;
  --b1: #1d3b8f;
  --b2: #6a2a8a;
  --b3: #0f6f6a;
  --text: #f2f4fb;
  --mute: #a3a9bd;
  --dim: #6f7690;
  --glass: rgba(255, 255, 255, .065);
  --glass-2: rgba(255, 255, 255, .12);
  --edge: rgba(255, 255, 255, .16);
  --line: rgba(255, 255, 255, .1);
  --shadow: rgba(0, 0, 0, .55);
  --shine: rgba(255, 255, 255, .2);
  --key: rgba(14, 17, 28, .72);
  --field: rgba(0, 0, 0, .25);
  --led: #5be37d;
  --led-soft: rgba(91, 227, 125, .16);
  --warn: #ffb547;
  --bad: #ff6b6b;
  --solid: #f2f4fb;
  --solid-ink: #05070d;
  --aura: .7;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #eef0f6;
  --b1: #9bb7ff;
  --b2: #f3b6e2;
  --b3: #a6efe0;
  --text: #0e1222;
  --mute: #4f566e;
  --dim: #7a8098;
  --glass: rgba(255, 255, 255, .5);
  --glass-2: rgba(255, 255, 255, .75);
  --edge: rgba(255, 255, 255, .95);
  --line: rgba(14, 18, 34, .1);
  --shadow: rgba(40, 50, 90, .2);
  --shine: rgba(255, 255, 255, .55);
  --key: rgba(18, 23, 42, .84);
  --field: rgba(255, 255, 255, .7);
  --led: #149a46;
  --led-soft: rgba(20, 154, 70, .12);
  --warn: #b26b00;
  --bad: #d23b3b;
  --solid: #0e1222;
  --solid-ink: #fff;
  --aura: .85;
  color-scheme: light;
}
:root {
  --radius: 24px;
  --max: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden;
  transition: background-color .4s, color .4s;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--text); color: var(--bg); }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; border-radius: 8px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
.mono { font-family: var(--mono); font-size: .82em; letter-spacing: .01em; }
.mute { color: var(--mute); }
.dim { color: var(--dim); }

/* ---------- sfondo morbido ---------- */
.aura { position: fixed; inset: -20%; z-index: -1; filter: blur(90px) saturate(1.2); opacity: var(--aura); pointer-events: none; transition: opacity .4s; }
.aura i { position: absolute; width: 46vmax; height: 46vmax; border-radius: 50%; animation: drift 24s ease-in-out infinite alternate; transition: background .5s; }
.aura i:nth-child(1) { background: var(--b1); left: 5%; top: 0; }
.aura i:nth-child(2) { background: var(--b2); right: 0; top: 20%; animation-duration: 30s; }
.aura i:nth-child(3) { background: var(--b3); left: 30%; bottom: -10%; animation-duration: 36s; }
@keyframes drift { to { transform: translate(8vmax, -6vmax) scale(1.15); } }

/* ---------- vetro ---------- */
.glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(24px) saturate(1.6); backdrop-filter: blur(24px) saturate(1.6);
  border: 1px solid var(--edge);
  box-shadow: inset 0 1px 0 var(--edge), 0 30px 60px -32px var(--shadow);
  position: relative;
}
.glass::after { /* riflesso che segue il puntatore (--mx, --my da site.js) */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, -30%), var(--shine), transparent 45%);
}
.tilt { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .25s ease-out; }

/* ---------- barra in alto ---------- */
.top {
  position: sticky; top: 14px; z-index: 50; width: min(var(--max), 100% - 2 * var(--gutter)); margin: 14px auto 0;
  border-radius: 18px; display: flex; align-items: center; gap: 22px; padding: 9px 10px 9px 16px;
}
.top .wrap { display: contents; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; letter-spacing: -.02em; font-size: 1.05rem; }
.brand svg { width: 28px; height: 28px; }
.top nav { display: flex; gap: 20px; margin-left: 6px; }
.top nav a { text-decoration: none; color: var(--mute); font-size: .92rem; font-weight: 500; transition: color .15s; }
.top nav a:hover, .top nav a[aria-current] { color: var(--text); }
.top .right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.status { display: inline-flex; align-items: center; gap: 7px; color: var(--mute); font: 500 .76rem/1 var(--mono); margin-right: 4px; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--dim); }
.status.ok::before { background: var(--led); box-shadow: 0 0 10px var(--led); }
.icon-btn {
  width: 38px; height: 38px; border-radius: 11px; border: 1px solid var(--edge); background: var(--glass-2);
  display: grid; place-items: center; cursor: pointer; color: var(--text); padding: 0;
}
.icon-btn svg { width: 18px; height: 18px; }
.theme-btn .sun { display: none; }
:root[data-theme="light"] .theme-btn .sun { display: block; }
:root[data-theme="light"] .theme-btn .moon { display: none; }
.menu-btn { display: none; }
.menu-btn span { display: block; width: 18px; height: 1.5px; background: currentColor; margin: 4px auto; }
@media (max-width: 900px) {
  .top { flex-wrap: wrap; }
  .top nav {
    order: 9; width: 100%; flex-direction: column; gap: 0; margin: 0; display: none; padding: 6px 2px 4px;
  }
  .top nav a { padding: 11px 4px; border-top: 1px solid var(--line); font-size: 1rem; }
  .top.open nav { display: flex; }
  .menu-btn { display: grid; }
  .top .status { display: none; }
}

/* ---------- pulsanti ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 12px 18px; border-radius: 13px;
  border: 1px solid var(--edge); background: var(--glass-2); text-decoration: none; font-weight: 600; font-size: .95rem;
  cursor: pointer; white-space: nowrap; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: transform .12s, background .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -14px var(--shadow); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--solid); color: var(--solid-ink); border-color: transparent; }
.btn.small { padding: 9px 14px; font-size: .88rem; border-radius: 11px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.btn svg { width: 18px; height: 18px; flex: none; }
.link { color: var(--text); text-decoration: underline; text-decoration-color: var(--edge); text-underline-offset: 3px; }
.link:hover { text-decoration-color: var(--text); }

/* ---------- titoli ---------- */
h1, h2, h3 { margin: 0; letter-spacing: -.035em; }
.h-xl { font-size: clamp(2.6rem, 6.6vw, 5.6rem); line-height: .98; font-weight: 800; letter-spacing: -.05em; }
.h-l { font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.02; font-weight: 800; letter-spacing: -.045em; }
.h-m { font-size: clamp(1.2rem, 2vw, 1.5rem); line-height: 1.2; font-weight: 700; }
.grad { background: linear-gradient(120deg, var(--text) 35%, var(--mute)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--mute); max-width: 36em; }
.kicker { display: inline-block; color: var(--mute); margin-bottom: 14px; font-size: .9rem; font-weight: 600; }
.center { text-align: center; }
.center .lede { margin-inline: auto; }
section { padding: clamp(72px, 10vw, 120px) 0 0; position: relative; }
.sec-head { margin-bottom: 40px; }
.sec-head .lede { margin-top: 14px; }

/* ---------- apertura ---------- */
.hero { padding: clamp(56px, 9vw, 100px) 0 0; text-align: center; }
.pill { display: inline-flex; gap: 9px; align-items: center; padding: 7px 15px; border-radius: 99px; font-size: .85rem; font-weight: 600; }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--led); box-shadow: 0 0 10px var(--led); }
.hero h1 { margin: 22px auto 20px; max-width: 15ch; }
.hero h1 em { font-style: normal; }
.hero .lede { margin: 0 auto 30px; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; margin-top: 22px; color: var(--mute); font-size: .88rem; }
.facts span { display: inline-flex; align-items: center; gap: 8px; }
.facts span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--dim); }

/* tablet di vetro */
.stage { perspective: 1400px; margin: 56px auto 0; width: min(880px, 100%); }
.slab {
  border-radius: 34px; padding: clamp(14px, 2.6vw, 26px); text-align: left;
  transform: rotateX(var(--rx, 12deg)) rotateY(var(--ry, 0deg)); transition: transform .25s ease-out; transform-style: preserve-3d;
  user-select: none; -webkit-user-select: none; touch-action: manipulation;
}
.keys { display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(8px, 1.6vw, 14px); }
.key {
  aspect-ratio: 1; border-radius: 22%; background: var(--key); border: 1px solid rgba(255, 255, 255, .16); position: relative; cursor: pointer; padding: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 10px 20px -10px var(--shadow); transform: translateZ(18px);
  transition: transform .12s, box-shadow .2s;
}
.key img { position: absolute; inset: 24%; width: 52%; height: 52%; pointer-events: none; }
.key.full img { inset: 0; width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.key::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(155deg, rgba(255, 255, 255, .32), transparent 40%); pointer-events: none; }
.key:active, .key.down { transform: translateZ(6px) scale(.95); }
.key.on { box-shadow: 0 0 0 2px var(--led), 0 0 28px -4px var(--led); }
.key .t { position: absolute; left: 0; right: 0; bottom: 9%; text-align: center; font: 700 clamp(9px, 1.2vw, 12px)/1 var(--mono); color: #fff; pointer-events: none; }
.key .flash { position: absolute; inset: -3px; border-radius: inherit; pointer-events: none; opacity: 0; box-shadow: 0 0 0 2px var(--led); }
.key .flash.go { animation: flash .5s ease-out; }
@keyframes flash { 0% { opacity: 1; } 100% { opacity: 0; transform: scale(1.08); } }
.dials { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(8px, 1.6vw, 14px); margin-top: clamp(8px, 1.6vw, 14px); }
.dial {
  border-radius: 18px; padding: 12px 14px; display: flex; justify-content: space-between; align-items: center; gap: 8px;
  background: var(--key); border: 1px solid rgba(255, 255, 255, .16); color: #fff; cursor: ns-resize; touch-action: none; transform: translateZ(12px);
}
.dial small { display: block; opacity: .7; font-size: .75rem; font-weight: 600; }
.dial b { font-size: clamp(1.1rem, 2.4vw, 1.6rem); letter-spacing: -.03em; }
.dial.muted b { color: #ff7b7b; }
.ring { width: clamp(30px, 4.6vw, 44px); aspect-ratio: 1; border-radius: 50%; flex: none; background: conic-gradient(var(--ring, #5be37d) calc(var(--v) * 1%), rgba(255, 255, 255, .15) 0); -webkit-mask: radial-gradient(circle, transparent 54%, #000 56%); mask: radial-gradient(circle, transparent 54%, #000 56%); }
.event { margin: 18px auto 0; display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 99px; font-size: .85rem; color: var(--mute); max-width: 100%; }
.event b { color: var(--text); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.event .ok { color: var(--led); font-weight: 700; }
.event span { white-space: nowrap; }
.hint { margin-top: 10px; color: var(--dim); font-size: .85rem; }
@media (max-width: 640px) { .keys { grid-template-columns: repeat(4, 1fr); } .key:nth-child(n+9) { display: none; } .dial { padding: 10px; } .ring { display: none; } }

/* ---------- dati in breve ---------- */
.specs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 70px; }
.specs > div { border-radius: 22px; padding: 22px; }
.specs b { display: block; font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 800; letter-spacing: -.04em; margin-bottom: 4px; }
.specs span { color: var(--mute); font-size: .92rem; }
@media (max-width: 820px) { .specs { grid-template-columns: 1fr 1fr; } }

/* ---------- schede delle funzioni ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { border-radius: var(--radius); padding: 26px; min-height: 200px; }
.card.wide { grid-column: span 2; }
.card .ic { width: 48px; height: 48px; border-radius: 14px; background: var(--key); display: grid; place-items: center; margin-bottom: 18px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2); }
.card .ic img { width: 26px; height: 26px; }
.card .tag { font-size: .78rem; font-weight: 700; color: var(--dim); text-transform: uppercase; letter-spacing: .08em; }
.card h3 { margin: 6px 0 8px; font-size: 1.25rem; letter-spacing: -.02em; }
.card p { margin: 0; color: var(--mute); font-size: .97rem; }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } .card.wide { grid-column: auto; } }

/* passi */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { border-radius: var(--radius); padding: 26px; }
.step .num { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--solid); color: var(--solid-ink); font-weight: 800; margin-bottom: 16px; }
.step .lbl { display: block; font-size: .78rem; font-weight: 700; color: var(--dim); text-transform: uppercase; letter-spacing: .08em; }
.step h3 { margin: 4px 0 8px; font-size: 1.25rem; }
.step p { margin: 0; color: var(--mute); }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* ---------- vetrina ---------- */
.show { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.6fr); gap: 20px; align-items: start; }
.tabs { list-style: none; margin: 0; padding: 8px; border-radius: var(--radius); display: grid; gap: 4px; }
.tabs button { width: 100%; text-align: left; background: none; border: 0; padding: 14px 16px; border-radius: 16px; cursor: pointer; display: grid; gap: 4px; position: relative; overflow: hidden; }
.tabs button[aria-selected="true"] { background: var(--glass-2); box-shadow: inset 0 0 0 1px var(--edge); }
.tabs button::before { content: ""; position: absolute; left: 16px; right: 16px; bottom: 6px; height: 2px; border-radius: 2px; transform: scaleX(0); transform-origin: left; background: var(--text); opacity: .35; }
.tabs button[aria-selected="true"]::before { transform: scaleX(1); transition: transform var(--dur, 6s) linear; }
.tabs b { font-size: 1.05rem; color: var(--mute); }
.tabs span { color: var(--mute); font-size: .92rem; display: none; }
.tabs button[aria-selected="true"] b { color: var(--text); }
.tabs button[aria-selected="true"] span { display: block; }
.stage-shot { border-radius: 30px; padding: clamp(10px, 1.6vw, 16px); margin: 0; }
.stage-shot img { border-radius: 18px; width: 100%; height: auto; aspect-ratio: 1000 / 703; object-fit: contain; background: #0d0e12; transition: opacity .35s; }
.stage-shot img.out { opacity: 0; }
.stage-shot figcaption { margin: 10px 6px 2px; color: var(--mute); font-size: .88rem; }
@media (max-width: 900px) { .show { grid-template-columns: 1fr; } .tabs { order: 2; } }
.more { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 16px; }
.more > div { border-radius: 20px; padding: 22px; }
.more h3 { font-size: 1.05rem; margin-bottom: 6px; letter-spacing: -.015em; }
.more p { margin: 0; color: var(--mute); font-size: .94rem; }
@media (max-width: 900px) { .more { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .more { grid-template-columns: 1fr; } }

/* ---------- download ---------- */
.dl { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.dl-card { border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.dl-card .os { width: 46px; height: 46px; border-radius: 14px; background: var(--key); color: #fff; display: grid; place-items: center; }
.dl-card .os svg { width: 24px; height: 24px; }
.dl-card h3 { font-size: 1.2rem; letter-spacing: -.02em; }
.dl-card p { margin: 0; color: var(--mute); font-size: .92rem; flex: 1; }
.dl-card .meta { color: var(--dim); font-size: .82rem; display: grid; gap: 2px; min-height: 2.8em; }
.dl-card .meta b { color: var(--text); font-weight: 700; }
.dl-card .actions { display: flex; }
.dl-card .actions .btn { flex: 1; }
.dl-card.mine { box-shadow: inset 0 0 0 2px var(--led), 0 30px 60px -30px var(--shadow); }
.dl-card.mine::before { content: attr(data-mine); position: absolute; top: -11px; left: 20px; background: var(--led); color: #fff; font-size: .7rem; font-weight: 800; padding: 3px 9px; border-radius: 99px; letter-spacing: .04em; text-transform: uppercase; }
.sha { cursor: pointer; background: none; border: 0; padding: 0; color: var(--dim); font: 500 .78rem var(--mono); text-align: left; }
.sha:hover { color: var(--text); }
.note { margin-top: 20px; color: var(--mute); font-size: .92rem; text-align: center; }
@media (max-width: 1000px) { .dl { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .dl { grid-template-columns: 1fr; } }

/* ---------- plugin (anteprima) ---------- */
.plug-strip { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.plug-strip a { border-radius: 20px; padding: 12px 18px 12px 12px; display: flex; gap: 12px; align-items: center; text-decoration: none; transition: transform .2s; }
.plug-strip a:hover { transform: translateY(-3px); }
.plug-strip img { width: 42px; height: 42px; border-radius: 12px; }
.plug-strip b { display: block; font-size: 1rem; }
.plug-strip span { color: var(--dim); font-size: .8rem; }
.plug-cta { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* ---------- domande ---------- */
.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { border-radius: 18px; padding: 0 20px; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 36px 18px 0; position: relative; font-weight: 700; font-size: 1.04rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 2px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; font-weight: 400; color: var(--mute); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq .a { padding: 0 0 18px; color: var(--mute); }
.faq .a p { margin: 0 0 10px; }

/* ---------- piè di pagina ---------- */
footer { margin-top: clamp(80px, 10vw, 130px); padding: 0 0 40px; color: var(--mute); font-size: .92rem; }
footer .wrap { border-radius: var(--radius); padding: 28px; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
footer h4 { margin: 0 0 12px; font-size: .78rem; font-weight: 700; color: var(--dim); text-transform: uppercase; letter-spacing: .08em; }
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--text); }
footer .brand { margin-bottom: 12px; color: var(--text); }
@media (max-width: 700px) { footer .wrap { grid-template-columns: 1fr 1fr; } footer .wrap > :first-child { grid-column: 1 / -1; } }

/* ---------- comparsa ---------- */
.reveal { opacity: 0; transform: translateY(22px) scale(.985); transition: opacity .8s, transform .8s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.in.tilt { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: opacity .8s, transform .25s ease-out; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .aura i { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .slab, .tilt { transform: none !important; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- pagine interne ---------- */
.page-head { padding: clamp(56px, 8vw, 96px) 0 clamp(26px, 4vw, 40px); }
.page-head .lede { margin-top: 18px; }
.split { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding: 10px; border-radius: 20px; position: sticky; top: 86px; z-index: 5; margin-bottom: 16px; }
.search { flex: 1 1 260px; position: relative; }
.search input { width: 100%; padding: 11px 14px 11px 40px; border-radius: 13px; border: 1px solid var(--edge); background: var(--field); outline: none; }
.search input:focus { border-color: var(--mute); }
.search svg { position: absolute; left: 13px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); color: var(--dim); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 8px 14px; border-radius: 99px; border: 1px solid var(--edge); background: var(--glass-2); cursor: pointer; font-size: .88rem; font-weight: 600; color: var(--mute); }
.chip[aria-pressed="true"] { background: var(--solid); color: var(--solid-ink); border-color: transparent; }

.catalog { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.catalog > li:not(.empty) { border-radius: var(--radius); background: var(--glass); -webkit-backdrop-filter: blur(24px) saturate(1.6); backdrop-filter: blur(24px) saturate(1.6); border: 1px solid var(--edge); box-shadow: inset 0 1px 0 var(--edge), 0 24px 50px -32px var(--shadow); }
.p-row { width: 100%; background: none; border: 0; text-align: left; cursor: pointer; display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 18px 20px; }
.p-row img { width: 56px; height: 56px; border-radius: 15px; }
.p-row h3 { font-size: 1.15rem; letter-spacing: -.02em; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.p-row p { margin: 4px 0 0; color: var(--mute); font-size: .93rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.p-row .side { text-align: right; color: var(--dim); display: grid; gap: 4px; justify-items: end; font-size: .82rem; }
.badge { font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 4px 9px; border-radius: 99px; background: var(--glass-2); color: var(--mute); border: 1px solid var(--edge); }
.badge.off { background: var(--led-soft); color: var(--led); border-color: transparent; }
.badge.com { background: rgba(255, 181, 71, .14); color: var(--warn); border-color: transparent; }
.p-detail { display: none; padding: 0 20px 22px 94px; }
.catalog > li.open .p-detail { display: block; }
.catalog > li.open .p-row p { display: none; }
.catalog > li.open .p-row .chev { transform: rotate(180deg); }
.chev { width: 14px; height: 14px; transition: transform .2s; }
.p-detail .desc { color: var(--mute); max-width: 52em; margin: 0 0 16px; }
.p-actions { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; padding: 0; list-style: none; }
.p-actions li { font-size: .84rem; padding: 6px 11px; border-radius: 99px; background: var(--glass-2); border: 1px solid var(--edge); }
.p-actions li[title] { cursor: help; }
.p-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--dim); margin-bottom: 16px; font-size: .84rem; }
.warn-box { border: 1px solid rgba(255, 181, 71, .35); background: rgba(255, 181, 71, .08); border-radius: 14px; padding: 12px 14px; font-size: .9rem; margin-bottom: 16px; max-width: 52em; }
.p-detail .cta { justify-content: flex-start; }
@media (max-width: 640px) {
  .p-row { grid-template-columns: 44px 1fr; padding: 16px; }
  .p-row img { width: 44px; height: 44px; }
  .p-row .side { display: none; }
  .p-detail { padding: 0 16px 18px; }
}
.empty { padding: 48px 0; color: var(--mute); text-align: center; }
.dev { margin: 80px 0 0; border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); }

/* ---------- modulo d'invio ---------- */
.form-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(20px, 4vw, 40px); align-items: start; }
@media (max-width: 920px) { .form-grid { grid-template-columns: 1fr; } }
.rules { position: sticky; top: 96px; border-radius: var(--radius); padding: 26px; }
.rules ol { margin: 18px 0 0; padding: 0; list-style: none; counter-reset: r; display: grid; gap: 14px; }
.rules li { counter-increment: r; padding-left: 40px; position: relative; color: var(--mute); font-size: .94rem; }
.rules li::before { content: counter(r); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 9px; display: grid; place-items: center; background: var(--solid); color: var(--solid-ink); font-size: .78rem; font-weight: 800; }
.rules li b { color: var(--text); }
@media (max-width: 920px) { .rules { position: static; } }
form.card { border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); display: grid; gap: 18px; min-height: 0; }
.field { display: grid; gap: 7px; }
.field label, .field .lbl { font-weight: 600; font-size: .93rem; }
.field .help { color: var(--dim); font-size: .84rem; }
.field input[type=text], .field input[type=email], .field input[type=url], .field textarea, .field select {
  width: 100%; padding: 11px 13px; border-radius: 12px; border: 1px solid var(--edge); background: var(--field); outline: none; transition: border-color .15s;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--mute); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .two { grid-template-columns: 1fr; } }
.drop { border: 1.5px dashed var(--mute); border-radius: 18px; padding: 28px 20px; text-align: center; cursor: pointer; transition: border-color .15s, background .15s; position: relative; background: var(--field); }
.drop:hover, .drop.over { border-color: var(--led); background: var(--led-soft); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop b { display: block; font-size: 1.05rem; margin-bottom: 4px; }
.drop .mono { color: var(--dim); }
.pkg { display: none; border-radius: 14px; background: var(--field); border: 1px solid var(--edge); padding: 14px 16px; gap: 6px; }
.pkg.show { display: grid; }
.pkg .row { display: flex; justify-content: space-between; gap: 12px; font-size: .9rem; }
.pkg .row span:first-child { color: var(--dim); }
.pkg .err { color: var(--bad); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .92rem; color: var(--mute); cursor: pointer; }
.check input { margin-top: 4px; accent-color: var(--led); width: 16px; height: 16px; flex: none; }
.form-msg { font-size: .93rem; }
.form-msg.err { color: var(--bad); }
form.card .cta { justify-content: flex-start; align-items: center; }
.receipt { border-radius: var(--radius); padding: 28px; display: grid; gap: 12px; box-shadow: inset 0 0 0 2px var(--led), 0 30px 60px -30px var(--shadow); }
.receipt code { font-family: var(--mono); background: var(--field); padding: 3px 7px; border-radius: 6px; word-break: break-all; }
.status-box { margin-top: 20px; border-radius: var(--radius); padding: 26px; }
.status-check { margin-top: 14px; display: flex; gap: 10px; flex-wrap: wrap; }
.status-check input { flex: 1 1 240px; padding: 11px 13px; border-radius: 12px; border: 1px solid var(--edge); background: var(--field); font-family: var(--mono); font-size: .85rem; outline: none; }
#mine li { border-top: 1px solid var(--line); }
.progress { height: 4px; border-radius: 4px; background: var(--field); overflow: hidden; display: none; }
.progress.show { display: block; }
.progress i { display: block; height: 100%; width: 0; background: var(--led); transition: width .15s; }

/* ---------- revisione ---------- */
.adm-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.adm-list > li { border-radius: var(--radius); padding: 22px; display: grid; gap: 12px; background: var(--glass); border: 1px solid var(--edge); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); }
.adm-head { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.adm-head h3 { font-size: 1.15rem; }
.adm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 6px 22px; color: var(--mute); font-size: .9rem; }
.adm-grid b { color: var(--dim); font-weight: 500; font-family: var(--mono); font-size: .75rem; display: block; }
.adm-btns { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.adm-btns input { flex: 1 1 240px; padding: 9px 12px; border-radius: 11px; border: 1px solid var(--edge); background: var(--field); }
pre.mf { margin: 0; max-height: 260px; overflow: auto; background: var(--field); border: 1px solid var(--edge); border-radius: 12px; padding: 12px; font: 12px/1.5 var(--mono); color: var(--mute); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; background: var(--solid); color: var(--solid-ink); padding: 10px 16px; border-radius: 12px; font-size: .9rem; font-weight: 600; transition: .25s; pointer-events: none; z-index: 100; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- selettore della lingua ---------- */
.lang { position: relative; }
.lang-btn { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 11px; border-radius: 11px; cursor: pointer; background: var(--glass-2); border: 1px solid var(--edge); color: var(--text); font: 700 .76rem var(--mono); letter-spacing: .06em; }
.lang-btn::before { content: ""; width: 13px; height: 13px; border-radius: 50%; border: 1.4px solid currentColor; background: linear-gradient(currentColor, currentColor) center / 1.4px 100% no-repeat, linear-gradient(currentColor, currentColor) center / 100% 1.4px no-repeat; opacity: .8; }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 200px; margin: 0; padding: 6px; list-style: none;
  background: var(--glass-2); -webkit-backdrop-filter: blur(24px) saturate(1.6); backdrop-filter: blur(24px) saturate(1.6);
  border: 1px solid var(--edge); border-radius: 16px; box-shadow: 0 24px 50px -20px var(--shadow);
  opacity: 0; transform: translateY(-4px); pointer-events: none; transition: .15s; z-index: 60;
}
.lang.open .lang-menu { opacity: 1; transform: none; pointer-events: auto; }
.lang-menu a { display: flex; justify-content: space-between; padding: 10px 12px; border-radius: 11px; text-decoration: none; font-size: .93rem; font-weight: 500; color: var(--mute); }
.lang-menu a:hover { background: var(--glass); color: var(--text); }
.lang-menu a[aria-current] { color: var(--text); }
.lang-menu a[aria-current]::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--led); align-self: center; }
@media (max-width: 460px) { .top .right .btn.small { display: none; } }
.dev .plug-cta { justify-content: flex-start; }
