/* stile.css — grafica Kygo: nero, viola del logo, codice che scorre. Colori e font in :root. */
:root {
  --bg: #09080d;
  --bg-2: #121019;
  --bg-3: #1a1724;
  --rule: #26223a;
  --rule-2: #3b3456;
  --fg: #f3efff;
  --fg-2: #bab3d1;
  --fg-3: #918aab;
  --accent: #a78bfa;
  --accent-2: #c4b5fd;
  --deep: #6d4fd8;
  --ok: #5ccf8a;
  --err: #ff6b6b;
  --display: "Chakra Petch", "Rajdhani", "DejaVu Sans", "Segoe UI", Arial, sans-serif;
  --body: "Geist", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Consolas, monospace;
  --wrap: 1240px;
  --gut: 32px;
  --cut: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); background: var(--bg); z-index: 30; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: -0.01em; line-height: .95; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--accent); color: var(--bg); }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; }
.wrap { max-width: calc(var(--wrap) + var(--gut) * 2); margin: 0 auto; padding-left: max(var(--gut), env(safe-area-inset-left, 0px)); padding-right: max(var(--gut), env(safe-area-inset-right, 0px)); }
.label { font: 400 12px/1.4 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--fg-3); }
.skip { position: absolute; left: 16px; top: -60px; z-index: 60; background: var(--accent); color: var(--bg); padding: 12px 16px; text-decoration: none; font-weight: 600; }
.skip:focus { top: 12px; }

/* ── bottoni ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 48px; padding: 0 24px; border: 0; border-radius: 0; font: 600 14px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .15s, box-shadow .15s, color .15s; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--accent); color: #0b0913; clip-path: var(--cut); }
.btn-primary:hover { background: var(--accent-2); }
.btn-primary:focus-visible { outline: none; box-shadow: inset 0 0 0 3px #0b0913, inset 0 0 0 5px var(--fg); }
.btn-line { background: rgba(9, 8, 13, .6); color: var(--fg); box-shadow: inset 0 0 0 1px var(--rule-2); }
.btn-line:hover { box-shadow: inset 0 0 0 1px var(--accent); color: var(--accent-2); }
.btn-sm { height: 40px; padding: 0 16px; font-size: 13px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

/* ── barra ── */
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: rgba(9, 8, 13, .92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--rule); }
.nav-row { display: flex; align-items: center; gap: 40px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; min-height: 44px; }
.brand img { width: 40px; height: 40px; filter: drop-shadow(0 0 10px rgba(167, 139, 250, .45)); }
.brand > span { font: 700 21px/1 var(--display); letter-spacing: .08em; display: grid; gap: 5px; }
.brand small { font: 400 10px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.links { display: flex; margin-left: auto; }
.links a { position: relative; display: inline-flex; align-items: center; height: 72px; padding: 0 16px; color: var(--fg-2); text-decoration: none; font-size: 15px; font-weight: 500; transition: color .15s; }
.links a::before { content: "/"; margin-right: 6px; font-family: var(--mono); color: var(--rule-2); transition: color .15s; }
.links a:hover { color: var(--fg); }
.links a:hover::before { color: var(--accent); }
.menu-btn { display: none; height: 40px; padding: 0 14px; border: 1px solid var(--rule-2); background: none; font: 500 12px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.mnav { border-top: 1px solid var(--rule); background: var(--bg); }
.mnav a { display: flex; align-items: center; min-height: 54px; padding: 0 max(16px, env(safe-area-inset-left, 0px)); border-bottom: 1px solid var(--rule); text-decoration: none; font: 700 22px/1 var(--display); text-transform: uppercase; }
.mnav a::before { content: "/"; margin-right: 10px; font-family: var(--mono); font-weight: 400; color: var(--accent); }

/* ── pioggia di codice ── */
.hero, .final { position: relative; isolation: isolate; overflow: hidden; }
.rain { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; opacity: .75; -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 45%, transparent 92%); mask-image: linear-gradient(180deg, #000 0%, #000 45%, transparent 92%); }
.hero::before, .final::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(60% 55% at 24% 38%, rgba(9, 8, 13, .93), rgba(9, 8, 13, .6) 62%, rgba(9, 8, 13, .15)); }
.final::before { background: radial-gradient(80% 80% at 30% 50%, rgba(9, 8, 13, .9), rgba(9, 8, 13, .5)); }
.hero-in { position: relative; }

/* ── apertura ── */
.hero { padding-top: 56px; }
.hero-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-bottom: 20px; border-bottom: 1px solid var(--rule); }
.avail { display: inline-flex; align-items: center; gap: 8px; color: var(--fg-2); }
.avail i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(92, 207, 138, .15); }
.hero h1 { margin-top: 40px; font-size: clamp(54px, 7.6vw, 116px); line-height: .92; }
.hero h1 span { display: block; }
.hero h1 .ac { color: var(--accent); text-shadow: 0 0 40px rgba(167, 139, 250, .35); }
.cur { font-weight: 500; animation: blink 1.05s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero-row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px; align-items: end; margin-top: 36px; padding-bottom: 56px; }
.lead { font-size: 19px; line-height: 1.55; color: var(--fg-2); max-width: 48ch; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.spec { margin: 0; border-top: 1px solid var(--rule); background: rgba(9, 8, 13, .55); }
.spec div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.spec dt { font: 400 12px/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--fg-3); }
.spec dd { margin: 0; font: 500 14px/1 var(--mono); }

/* schermata: terminale + pannello ticket */
.shot { position: relative; margin: 0; border: 1px solid var(--rule-2); background: var(--bg-2); font-size: 14px; box-shadow: 0 40px 120px -40px rgba(109, 79, 216, .45); }
.shot::before, .shot::after { content: ""; position: absolute; width: 14px; height: 14px; border: 2px solid var(--accent); }
.shot::before { top: -6px; left: -6px; border-right: 0; border-bottom: 0; }
.shot::after { bottom: -6px; right: -6px; border-left: 0; border-top: 0; }
.shot-bar { display: flex; justify-content: space-between; gap: 16px; padding: 12px 16px; border-bottom: 1px solid var(--rule); }
.shot-bar .label { display: inline-flex; align-items: center; gap: 12px; }
.dots { display: inline-flex; gap: 6px; }
.dots b { width: 10px; height: 10px; border-radius: 50%; background: var(--rule-2); }
.dots b:first-child { background: var(--accent); }
#botState { color: var(--fg-2); font-weight: 500; }
#botState.on { color: var(--ok); }
.shot-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 300px; }
.term { margin: 0; padding: 20px 22px; font: 400 13.5px/1.75 var(--mono); color: var(--fg-2); background: #0c0a12; border-right: 1px solid var(--rule); white-space: pre-wrap; overflow: hidden; }
.term .p { color: var(--fg); }
.term .m { color: var(--fg-3); }
.term i { font-style: normal; color: var(--ok); }
.term u { text-decoration: none; color: var(--accent); }
.term .k { color: var(--fg); font-weight: 500; }
.caret { color: var(--accent); animation: blink 1.05s steps(1) infinite; }
.embed-wrap { padding: 22px; background: #313338; display: grid; align-content: center; }
.dc-msg { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; color: #dbdee1; font-family: var(--body); }
.dc-msg > img { width: 40px; height: 40px; border-radius: 50%; }
.dc-name { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dc-name b { color: #fff; font-weight: 600; }
.dc-name .app { font: 600 10px/1 var(--body); padding: 3px 5px; border-radius: 3px; background: #5865f2; color: #fff; }
.dc-name small { color: #949ba4; font-size: 12px; }
.embed { margin-top: 6px; padding: 12px 16px 14px; background: #2b2d31; border-left: 4px solid var(--accent); border-radius: 4px; display: grid; gap: 6px; }
.em-k { font-size: 11px; font-weight: 600; color: #b5bac1; text-transform: uppercase; letter-spacing: .02em; }
.em-t { color: #fff; font-size: 16px; }
.embed p { font-size: 13.5px; color: #dbdee1; }
.embed ul { display: grid; gap: 6px; margin-top: 4px; }
.embed li { display: grid; padding: 7px 10px; background: #232428; border-radius: 4px; font-size: 13px; }
.embed li b { color: #fff; font-weight: 600; }
.embed li small { color: #949ba4; font-size: 12px; }
.dc-select { margin-top: 8px; display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; background: #1e1f22; border-radius: 4px; color: #949ba4; font-size: 13px; }
.dc-select svg { width: 16px; height: 16px; }

.tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 40px; padding-block: 28px; margin-top: 48px; border-top: 1px solid var(--rule); }
.tools ul { display: flex; flex-wrap: wrap; gap: 8px 36px; }
.tools li { font: 600 19px/1 var(--display); text-transform: uppercase; color: var(--fg-2); letter-spacing: .03em; }

/* ── sezioni ── */
section[id] { padding-block: 136px 0; scroll-margin-top: 72px; }
#servizi { border-top: 1px solid var(--rule); }
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 64px; align-items: end; margin-bottom: 48px; }
.sec-head .label { grid-column: 1 / -1; color: var(--accent); }
.sec-head h2 { font-size: clamp(40px, 5.2vw, 76px); }
.sec-head p { color: var(--fg-2); max-width: 50ch; }

/* servizi a righe */
.rows { border-top: 1px solid var(--rule); }
.row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) 140px; gap: 40px; align-items: center; padding: 36px 0; border-bottom: 1px solid var(--rule); }
.row-main { display: grid; gap: 12px; align-content: start; }
.code { font: 500 13px/1 var(--mono); color: var(--accent); }
.row h3 { font-size: clamp(36px, 4.2vw, 58px); }
.row p { color: var(--fg-2); max-width: 50ch; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.tags li, .sc li { font: 400 12px/1 var(--mono); padding: 7px 9px; border: 1px solid var(--rule); color: var(--fg-2); }
.row-price { text-align: right; display: grid; gap: 6px; justify-items: end; }
.row-price b { font: 700 32px/1 var(--display); color: var(--fg); }
.vig { height: 210px; display: grid; place-items: center; padding: 20px; background: var(--bg-2); border: 1px solid var(--rule); overflow: hidden; }
.slash { width: min(320px, 100%); background: #2b2d31; color: #dbdee1; font-size: 13px; border-radius: 6px; overflow: hidden; }
.slash .opt { padding: 10px 14px; display: grid; gap: 2px; }
.slash .opt.on { background: #35373c; }
.slash .opt b { color: #fff; font-weight: 600; }
.slash .opt small { color: #a3a6ad; font-size: 12px; }
.slash .input { margin: 8px; padding: 10px 12px; border-radius: 6px; background: #383a40; font-family: var(--mono); font-size: 12px; color: #fff; }
.slash .input span { color: #8a8e96; }
.logs { width: min(320px, 100%); background: #0c0a12; border: 1px solid var(--rule); font: 400 12px/1 var(--mono); }
.lg-h { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--rule); color: var(--fg-3); text-transform: uppercase; letter-spacing: .04em; }
.lg-h i { width: 7px; height: 7px; border-radius: 50%; background: var(--err); animation: blink 1.4s steps(1) infinite; }
.logs p { display: grid; grid-template-columns: 42px 74px minmax(0, 1fr); align-items: center; gap: 8px; padding: 8px 12px; border-bottom: 1px solid var(--rule); color: var(--fg-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.logs p:last-child { border-bottom: 0; }
.logs em { font-style: normal; color: var(--fg-3); }
.logs b { font-weight: 500; font-size: 10.5px; letter-spacing: .04em; padding: 4px 6px; text-align: center; }
.logs .in { color: var(--ok); background: rgba(92, 207, 138, .1); }
.logs .out { color: var(--fg-3); background: rgba(145, 138, 171, .12); }
.logs .bk { color: #7cc4ff; background: rgba(124, 196, 255, .1); }
.logs .kl { color: var(--err); background: rgba(255, 107, 107, .1); }
.browser { width: min(320px, 100%); border: 1px solid var(--rule-2); background: #0c0a12; }
.br-bar { display: flex; align-items: center; gap: 5px; padding: 8px 10px; border-bottom: 1px solid var(--rule); }
.br-bar i { width: 7px; height: 7px; border-radius: 50%; background: var(--rule-2); }
.br-bar span { margin-left: 8px; flex: 1; padding: 3px 8px; background: var(--bg-3); font: 400 11px/1.2 var(--mono); color: var(--fg-3); }
.br-body { display: grid; grid-template-columns: 64px minmax(0, 1fr); height: 120px; }
.br-side { border-right: 1px solid var(--rule); padding: 10px 8px; display: grid; gap: 7px; align-content: start; }
.br-side b { height: 10px; background: var(--accent); width: 70%; }
.br-side span { height: 6px; background: var(--rule-2); }
.br-main { padding: 10px; display: grid; gap: 8px; grid-template-rows: auto 1fr; }
.br-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.br-cards span { height: 26px; background: var(--bg-3); border-top: 2px solid var(--deep); }
.br-chart { background: var(--bg-3); padding: 6px; color: var(--accent); }
.br-chart svg { width: 100%; height: 100%; }
.brand-kit { display: flex; align-items: center; gap: 22px; }
.brand-kit img { width: 96px; height: 96px; filter: drop-shadow(0 0 22px rgba(167, 139, 250, .45)); }
.sw { display: grid; grid-template-columns: repeat(2, 34px); gap: 6px; }
.sw i { width: 34px; height: 34px; border: 1px solid var(--rule-2); }

/* shop */
.cat-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 24px; border-bottom: 1px solid var(--rule); }
.chips { display: flex; flex-wrap: wrap; }
.chips button { border: 0; background: none; padding: 14px 16px; margin-bottom: -1px; border-bottom: 2px solid transparent; font: 600 14px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; color: var(--fg-2); cursor: pointer; min-height: 44px; }
.chips button:hover { color: var(--fg); }
.chips button[aria-pressed="true"] { color: var(--fg); border-bottom-color: var(--accent); }
.chips button span { font: 400 11px/1 var(--mono); color: var(--fg-3); margin-left: 6px; }
.search { position: relative; width: min(300px, 100%); margin-bottom: 10px; }
.search input { width: 100%; height: 44px; border: 1px solid var(--rule-2); border-radius: 0; background: var(--bg); padding: 0 14px 0 42px; font-size: 15px; }
.search input:focus { outline: none; border-color: var(--accent); }
.search svg { position: absolute; left: 14px; top: 50%; width: 17px; height: 17px; transform: translateY(-50%); color: var(--fg-3); pointer-events: none; }
.scripts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.sc { position: relative; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); display: grid; grid-template-rows: auto 1fr; transition: background .15s; }
.sc:hover { background: var(--bg-2); }
.sc.hot::before { content: ""; position: absolute; top: -1px; left: -1px; right: -1px; height: 3px; background: var(--accent); z-index: 3; }
.sc-cover { position: relative; aspect-ratio: 16 / 6; border-bottom: 1px solid var(--rule); overflow: hidden; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 16px 18px; background: radial-gradient(120% 120% at 100% 0%, rgba(109, 79, 216, .28), transparent 60%), radial-gradient(circle, rgba(167, 139, 250, .16) 1px, transparent 1.5px) 0 0 / 14px 14px, var(--bg-2); }
.sc-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.cv-cat { font: 700 clamp(34px, 3.4vw, 48px)/.9 var(--mono); color: transparent; -webkit-text-stroke: 1px rgba(167, 139, 250, .55); letter-spacing: -.02em; transition: color .2s; }
.sc:hover .cv-cat { color: rgba(167, 139, 250, .18); -webkit-text-stroke-color: var(--accent); }
.sc-cover .gen { font: 400 11px/1 var(--mono); color: var(--fg-3); text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
.sc-badge { position: absolute; top: 14px; left: 14px; z-index: 2; font: 600 12px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; padding: 6px 9px; background: var(--accent); color: #0b0913; }
.sc-body { padding: 22px 22px 24px; display: grid; gap: 12px; align-content: start; }
.sc h3 { font-size: 26px; }
.sc p { color: var(--fg-2); font-size: 15px; }
.sc ul { display: flex; flex-wrap: wrap; gap: 6px; }
.sc-foot { display: flex; justify-content: space-between; align-items: end; gap: 12px; padding-top: 16px; margin-top: 6px; border-top: 1px solid var(--rule); }
.sc-foot small { display: block; font: 400 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .04em; color: var(--fg-3); margin-bottom: 6px; }
.sc-foot b { font: 700 28px/1 var(--display); }
.empty { grid-column: 1 / -1; padding: 48px 24px; text-align: center; color: var(--fg-2); border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.note { margin-top: 20px; font-size: 14px; color: var(--fg-3); max-width: 70ch; }

/* lavori */
.works { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.work { position: relative; display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 20px; padding: 32px 32px 36px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); transition: background .15s; }
.work:hover { background: var(--bg-2); }
.w-n { font: 700 48px/.9 var(--display); color: transparent; -webkit-text-stroke: 1px var(--accent); }
.work > div { display: grid; gap: 12px; align-content: start; }
.work h3 { font-size: 28px; }
.work p { color: var(--fg-2); font-size: 16px; max-width: 52ch; }
.w-id { grid-template-columns: 72px minmax(0, 1fr) auto; }
.w-id img { width: 104px; height: 104px; align-self: center; filter: drop-shadow(0 0 22px rgba(167, 139, 250, .4)); }

/* passaggi */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--rule); counter-reset: s; }
.steps li { padding: 28px 28px 0 0; display: grid; gap: 12px; align-content: start; counter-increment: s; }
.steps li + li { padding-left: 28px; border-left: 1px solid var(--rule); }
.steps li::before { content: "0" counter(s) " >"; font: 500 14px/1 var(--mono); color: var(--accent); }
.steps h3 { font-size: 26px; }
.steps p { color: var(--fg-2); font-size: 16px; }

/* domande */
.faq-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; }
.faq-grid .sec-head { grid-template-columns: minmax(0, 1fr); align-content: start; margin: 0; }
.faq { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 68px; padding: 18px 0; font-size: 18px; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font: 400 22px/1 var(--mono); color: var(--accent); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 48px 24px 0; color: var(--fg-2); max-width: 62ch; }

/* chiusura */
section.final { padding-block: 136px; margin-top: 136px; border-top: 1px solid var(--rule); }
.final .label { color: var(--accent); }
.final h2 { margin-top: 20px; font-size: clamp(42px, 6.6vw, 104px); line-height: .92; overflow-wrap: anywhere; max-width: 16ch; }
.final-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 48px; align-items: end; margin-top: 40px; }
.final p { color: var(--fg-2); font-size: 19px; max-width: 46ch; }
.final-side { display: grid; gap: 12px; }
.final-side .btn { height: 56px; }
.invite { display: flex; justify-content: space-between; align-items: center; gap: 12px; height: 56px; padding: 0 6px 0 16px; border: 1px solid var(--rule-2); font: 400 13px/1 var(--mono); color: var(--fg-2); background: var(--bg); }
.invite code { color: var(--fg); user-select: all; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.invite button { height: 44px; padding: 0 16px; border: 0; background: var(--bg-3); color: var(--fg); font: 600 13px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; flex: none; }
.invite button:hover { background: var(--rule-2); }

footer { border-top: 1px solid var(--rule); }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 24px; padding-block: 16px 28px; font-size: 14px; color: var(--fg-3); }
.brand-sm { font: 700 16px/1 var(--display); letter-spacing: .08em; color: var(--fg); margin-right: 6px; }
.foot nav { display: flex; flex-wrap: wrap; }
.foot nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; text-decoration: none; }
.foot nav a:hover { color: var(--fg); }

/* ═══════ checkout ═══════ */
html.co-open { overflow: hidden; }
.co { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
.co-back { position: absolute; inset: 0; background: rgba(5, 4, 9, .8); opacity: 0; transition: opacity .2s; }
.co-panel { position: relative; width: min(470px, 100%); max-height: calc(100dvh - 32px); overflow-y: auto; background: var(--bg-2); border: 1px solid var(--rule-2); border-top: 3px solid var(--accent); box-shadow: 0 40px 100px -30px rgba(109, 79, 216, .5); padding: 28px; display: grid; gap: 20px; transform: translateY(10px); opacity: 0; transition: transform .22s ease-out, opacity .18s; }
.co.on .co-back { opacity: 1; }
.co.on .co-panel { transform: none; opacity: 1; }
.co-h { display: flex; justify-content: space-between; align-items: start; gap: 16px; }
.co-h .eyebrow { font: 400 12px/1 var(--mono); text-transform: uppercase; color: var(--accent); }
.co-h h3 { font-size: 32px; margin-top: 8px; }
.co-x { width: 44px; height: 44px; border: 1px solid var(--rule-2); background: none; color: var(--fg-2); cursor: pointer; display: grid; place-items: center; flex: none; }
.co-x:hover { color: var(--fg); border-color: var(--fg); }
.co-x svg { width: 16px; height: 16px; }
#coForm { display: grid; gap: 20px; }
.co-steps { display: flex; align-items: center; gap: 10px; font: 400 11px/1 var(--mono); text-transform: uppercase; color: var(--fg-3); }
.co-steps span.on { color: var(--accent); }
.co-steps i { flex: 1; height: 1px; background: var(--rule); }
.co-item { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px; border: 1px solid var(--rule); background: var(--bg); }
.co-item img { width: 44px; height: 44px; }
.co-item b { display: block; font-weight: 600; }
.co-item small { color: var(--fg-3); font-size: 13px; }
.co-item .pr { font: 700 20px/1 var(--display); white-space: nowrap; }
.co-fields { display: grid; gap: 16px; }
.fld { display: grid; gap: 8px; }
.fld > span { font-size: 14px; font-weight: 600; }
.fld input { height: 48px; border: 1px solid var(--rule-2); border-radius: 0; background: var(--bg); padding: 0 14px; font: 400 15px/1 var(--mono); }
.fld input:focus { outline: none; border-color: var(--accent); }
.fld input[aria-invalid="true"] { border-color: var(--err); }
.fld small { font-size: 13px; color: var(--fg-3); }
.chk { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; font-size: 14.5px; color: var(--fg-2); cursor: pointer; }
.chk input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); cursor: pointer; }
.opt-src { padding: 12px 14px; border: 1px dashed var(--rule-2); color: var(--fg); }
.opt-src b { color: var(--accent); font-weight: 600; }
.co-sum { display: grid; gap: 8px; padding-top: 16px; border-top: 1px solid var(--rule); font-size: 15px; }
.co-sum div { display: flex; justify-content: space-between; color: var(--fg-2); }
.co-sum span:last-child, .co-sum b { font-family: var(--mono); }
.co-sum .tot { color: var(--fg); padding-top: 6px; font-size: 16px; }
.co-sum .tot b { font-size: 22px; font-weight: 500; }
.co-hint { font-size: 13px; color: var(--fg-3); text-align: center; }
.pp { min-height: 50px; }
.pp-load, .pp-off { padding: 16px; text-align: center; font-size: 14px; color: var(--fg-2); border: 1px dashed var(--rule-2); }
.co-fields:not(.ready) ~ .pp { opacity: .55; }
.co-msg { min-height: 1.2em; font-size: 14px; color: var(--fg-2); text-align: center; }
.co-msg.err { color: var(--err); }
.co-safe { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 13px; color: var(--fg-3); }
.co-safe svg { width: 14px; height: 14px; }
.co-done { display: grid; gap: 14px; justify-items: center; text-align: center; padding: 8px 0 4px; outline: none; }
.ok-ico { width: 56px; height: 56px; display: grid; place-items: center; border: 1px solid var(--ok); color: var(--ok); }
.ok-ico svg { width: 26px; height: 26px; }
.co-done h3 { font-size: 32px; }
.co-done p { color: var(--fg-2); }
.co-done .pend { color: var(--accent); font-size: 14px; }
.co-done .next { display: flex; justify-content: space-between; gap: 12px; width: 100%; padding: 14px 16px; border: 1px solid var(--rule); font-size: 14px; color: var(--fg-2); }
.co-done .next b { color: var(--fg); font-family: var(--mono); font-weight: 500; }
.co-done .small { font-size: 14px; }
.co-done .btn { width: 100%; }


/* ═══════ carrello (stile Tebex) ═══════ */
.cart-btn { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px; border: 1px solid var(--rule-2); background: none; cursor: pointer; font: 500 13px/1 var(--mono); color: var(--fg-2); transition: border-color .15s, color .15s; }
.links + .cart-btn { margin-left: 0; }
.cart-btn:hover { border-color: var(--accent); color: var(--fg); }
.cart-btn svg { width: 20px; height: 20px; }
.cart-btn.pieno { border-color: var(--accent); color: var(--fg); }
.cart-btn.pieno span { color: var(--accent); }
.cart, .pay { position: fixed; inset: 0; z-index: 50; }
.cart { display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; padding: 16px; }
.cart.on .co-back { opacity: 1; }
.cart-panel { position: relative; width: min(740px, 100%); max-height: calc(100dvh - 32px); display: grid; grid-template-rows: auto minmax(0, 1fr) auto; background: var(--bg-2); border: 1px solid var(--rule-2); border-top: 3px solid var(--accent); box-shadow: 0 40px 100px -30px rgba(109, 79, 216, .5); transform: translateY(10px); opacity: 0; transition: transform .22s ease-out, opacity .18s; }
.cart.on .cart-panel { transform: none; opacity: 1; }
.cart-h { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 26px; border-bottom: 1px solid var(--rule); }
.cart-h h3 { font-size: 34px; }
.cart-hb { display: flex; gap: 8px; }
.btn-soft { height: 44px; padding: 0 16px; border: 0; background: var(--bg-3); color: var(--fg); font: 600 14px/1 var(--body); cursor: pointer; }
.btn-soft:hover { background: var(--rule-2); }
.cart-list { overflow-y: auto; padding: 20px 26px; display: grid; gap: 10px; align-content: start; min-height: 120px; }
.line { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto auto; gap: 16px; align-items: center; padding: 12px; border: 1px solid var(--rule); background: var(--bg); }
.line > img { width: 56px; height: 56px; object-fit: cover; }
.ln-main { display: grid; gap: 4px; }
.ln-main b { font: 700 17px/1.1 var(--display); text-transform: uppercase; }
.ln-main > span { font: 500 14px/1 var(--mono); color: var(--fg-2); }
.src { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--accent); cursor: pointer; min-height: 28px; }
.src input { width: 16px; height: 16px; margin: 0; accent-color: var(--accent); }
.qty { display: grid; grid-template-columns: 40px 34px 40px; align-items: center; border: 1px solid var(--rule-2); height: 44px; }
.qty button { height: 100%; border: 0; background: none; font: 500 18px/1 var(--mono); color: var(--fg-2); cursor: pointer; }
.qty button:hover:not(:disabled) { color: var(--fg); background: var(--bg-3); }
.qty button:disabled { opacity: .35; cursor: not-allowed; }
.qty output { text-align: center; font: 600 15px/1 var(--mono); }
.del { width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: rgba(255, 107, 107, .1); color: var(--err); cursor: pointer; }
.del:hover { background: rgba(255, 107, 107, .2); }
.del svg { width: 18px; height: 18px; }
.cart-empty { display: grid; gap: 6px; justify-items: center; padding: 36px 16px; border: 1px dashed var(--rule-2); text-align: center; color: var(--fg-3); }
.cart-empty b { color: var(--fg); font: 700 20px/1 var(--display); text-transform: uppercase; }
.cart-foot { padding: 20px 26px 24px; border-top: 1px solid var(--rule); display: grid; gap: 18px; }
.cart-sum { display: grid; gap: 10px; }
.cart-sum div { display: flex; justify-content: space-between; font: 500 13px/1 var(--mono); text-transform: uppercase; color: var(--fg-3); }
.cart-sum b { font-weight: 500; color: var(--fg-2); }
.cart-sum .tot { padding-top: 14px; border-top: 1px solid var(--rule); color: var(--fg); font-size: 15px; }
.cart-sum .tot b { color: var(--accent); font: 700 24px/1 var(--display); }
.cart-act { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 12px; }
.cur-pill { display: grid; place-items: center; height: 52px; border: 1px solid var(--fg); font: 700 15px/1 var(--display); letter-spacing: .04em; }
.cart-act .btn { height: 52px; font-size: 15px; }
.cart-act .btn svg { width: 16px; height: 16px; }
.btn-primary:disabled { background: var(--rule-2); color: var(--fg-3); opacity: 1; }

/* pagina di pagamento a due colonne */
.pay { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); overflow-y: auto; background: var(--bg); opacity: 0; transition: opacity .18s; }
.pay.on { opacity: 1; }
.pay-left { background: var(--bg-2); border-right: 1px solid var(--rule); }
.pay-in { width: min(520px, 100%); padding: 56px 40px; }
.pay-left .pay-in { margin-left: auto; min-height: 100%; display: flex; flex-direction: column; gap: 28px; }
.pay-right .pay-in { display: grid; gap: 22px; align-content: start; }
.pay-in > img { width: 56px; height: 56px; }
.pay-who { display: flex; justify-content: space-between; align-items: center; gap: 16px; font-weight: 500; }
.pay-who b { color: var(--accent); font-weight: 600; }
.link { border: 0; background: none; padding: 0; min-height: 44px; color: var(--fg); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: 15px; }
.link:hover { color: var(--accent); }
.pay-items { display: grid; gap: 14px; }
.pay-items li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: center; }
.pay-items img { width: 44px; height: 44px; object-fit: cover; }
.pay-items b { display: block; font-weight: 600; }
.pay-items span { font: 400 13px/1.4 var(--mono); color: var(--fg-3); }
.pay-sum { margin-top: auto; display: grid; gap: 12px; }
.pay-sum div { display: flex; justify-content: space-between; font-size: 14px; color: var(--fg-2); }
.pay-sum span:last-child { font-family: var(--mono); }
.pay-sum .tot { padding-top: 14px; border-top: 1px solid var(--rule); color: var(--fg); font: 700 24px/1 var(--display); text-transform: uppercase; }
.pay-sum .tot b { font: 700 26px/1 var(--display); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: var(--fg-3); }
.crumbs .on { color: var(--accent); }
.crumbs i { font-style: normal; }
.pay-right h3 { font-size: 36px; }
.methods { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.method { display: flex; align-items: center; justify-content: center; gap: 8px; height: 64px; border: 1px solid var(--rule-2); background: var(--bg-2); font: 700 18px/1 var(--body); font-style: italic; color: var(--fg); cursor: default; }
.method.on { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: rgba(167, 139, 250, .08); }
.method svg { width: 22px; height: 22px; }
.btn-pp { width: 100%; height: 56px; background: #ffc439; color: #111; font-family: var(--body); font-size: 16px; letter-spacing: .02em; text-transform: none; font-weight: 700; }
.btn-pp:hover:not(:disabled) { background: #f5b82e; }
.btn-pp:disabled { background: var(--rule-2); color: var(--fg-3); opacity: 1; }
.ok-ico.ko { border-color: var(--fg-3); color: var(--fg-3); }
.co-done .link { min-height: 44px; }

@media (max-width: 900px) {
  .cart-btn { margin-left: auto; }
  .menu-btn { margin-left: 0; }
  .nav-row { gap: 10px; }
  .pay { grid-template-columns: minmax(0, 1fr); align-content: start; }
  .pay-left { border-right: 0; border-bottom: 1px solid var(--rule); }
  .pay-in { width: 100%; padding: 28px max(16px, env(safe-area-inset-left, 0px)); }
  .pay-left .pay-in { margin: 0; min-height: 0; gap: 18px; }
  .pay-sum { margin-top: 0; }
}
@media (max-width: 640px) {
  .cart { place-items: end center; padding: 0; }
  .cart-panel { width: 100%; max-height: 94dvh; }
  .cart-h, .cart-list, .cart-foot { padding-left: 16px; padding-right: 16px; }
  .cart-h h3 { font-size: 28px; }
  .line { grid-template-columns: 48px minmax(0, 1fr) auto; gap: 10px 12px; }
  .line > img { width: 48px; height: 48px; }
  .qty { grid-column: 2; justify-self: start; }
  .del { grid-column: 3; grid-row: 1 / 3; align-self: center; }
  .cart-act { grid-template-columns: 96px minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } html { scroll-behavior: auto; } }

/* ── tablet ── */
@media (max-width: 1080px) {
  .links a { padding: 0 10px; }
  .row { grid-template-columns: minmax(0, 1fr) 120px; }
  .row .vig { display: none; }
  .scripts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps li:nth-child(3) { padding-left: 0; border-left: 0; }
  .steps li:nth-child(n+3) { margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--rule); }
  .faq-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .final-row { grid-template-columns: minmax(0, 1fr); }
  .works { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .links, .nav-cta { display: none; }
  .menu-btn { display: inline-flex; align-items: center; margin-left: auto; }
  .hero-row { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .sec-head { grid-template-columns: minmax(0, 1fr); }
  .shot-body { grid-template-columns: minmax(0, 1fr); }
  .term { border-right: 0; border-bottom: 1px solid var(--rule); min-height: 260px; }
}
/* ── telefono ── */
@media (max-width: 640px) {
  :root { --gut: 16px; }
  body { font-size: 16px; }
  .nav-row { height: 64px; }
  .hero { padding-top: 24px; }
  .hero h1 { margin-top: 28px; font-size: clamp(40px, 12.4vw, 72px); overflow-wrap: anywhere; }
  .hero-row { margin-top: 28px; padding-bottom: 40px; }
  .lead { font-size: 17px; }
  .cta .btn { flex: 1 1 100%; }
  .term { font-size: 12px; padding: 16px; }
  .embed-wrap { padding: 16px 12px; }
  .tools { gap: 12px 24px; }
  .tools ul { gap: 8px 22px; }
  .tools li { font-size: 16px; }
  section[id] { padding-block: 88px 0; }
  section.final { padding-block: 88px; margin-top: 88px; }
  .row { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 28px 0; }
  .row-price { text-align: left; justify-items: start; grid-auto-flow: column; align-items: baseline; gap: 10px; }
  .scripts, .steps { grid-template-columns: minmax(0, 1fr); }
  .steps li, .steps li + li, .steps li:nth-child(n+3) { padding: 24px 0; margin: 0; border-left: 0; border-top: 0; border-bottom: 1px solid var(--rule); }
  .work, .w-id { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 28px 20px; }
  .w-id img { display: none; }
  .w-n { font-size: 36px; }
  .cat-bar { flex-direction: column; flex-wrap: nowrap; align-items: stretch; border-bottom: 0; }
  .chips { overflow-x: auto; flex-wrap: nowrap; max-width: 100%; min-width: 0; border-bottom: 1px solid var(--rule); }
  .chips button { flex: none; }
  .search { width: 100%; }
  .co { place-items: end center; padding: 0; }
  .co-panel { width: 100%; max-height: 92dvh; padding: 22px max(18px, env(safe-area-inset-left, 0px)) max(24px, env(safe-area-inset-bottom, 0px)); }
  .co-steps { display: none; }
}

/* ── maschera fatta di codice, sfondo dell'apertura ── */
.maschera { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; pointer-events: none; filter: drop-shadow(0 0 12px rgba(167, 139, 250, .45));
  -webkit-mask-image: linear-gradient(90deg, transparent 15%, #000 50%, #000 100%), linear-gradient(180deg, #000 60%, transparent 78%);
  mask-image: linear-gradient(90deg, transparent 15%, #000 50%, #000 100%), linear-gradient(180deg, #000 60%, transparent 78%);
  -webkit-mask-composite: source-in; mask-composite: intersect; }
.hero .rain { opacity: .35; }
@media (max-width: 900px) { .maschera { opacity: .45; -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%); mask-image: linear-gradient(180deg, #000 70%, transparent 100%); } }

/* ── sfondo di tutta la pagina: codice che scorre piano, griglia e luci viola ── */
.sfondo { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.sfondo canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .22; }
.sfondo::before { content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(167, 139, 250, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(167, 139, 250, .05) 1px, transparent 1px);
  background-size: 56px 56px; -webkit-mask-image: radial-gradient(90% 70% at 50% 40%, #000, transparent); mask-image: radial-gradient(90% 70% at 50% 40%, #000, transparent); }
.sfondo::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .015) 0 1px, transparent 1px 3px); }
.orb { position: absolute; width: 46vw; height: 46vw; max-width: 720px; max-height: 720px; border-radius: 50%; filter: blur(90px); opacity: .22; }
.o1 { background: #6d4fd8; left: -12vw; top: 20vh; animation: vaga1 26s ease-in-out infinite alternate; }
.o2 { background: #a78bfa; right: -14vw; top: 55vh; opacity: .14; animation: vaga2 32s ease-in-out infinite alternate; }
.o3 { background: #3b2a8a; left: 30vw; top: 90vh; opacity: .18; animation: vaga1 38s ease-in-out infinite alternate-reverse; }
@keyframes vaga1 { to { transform: translate(18vw, -22vh) scale(1.15); } }
@keyframes vaga2 { to { transform: translate(-20vw, -30vh) scale(.9); } }
/* le sezioni lasciano vedere lo sfondo */
section[id], footer { position: relative; }
.sc, .work, .steps li, .faq details, .rows .row { background-color: transparent; }
.sc { background: rgba(9, 8, 13, .55); backdrop-filter: blur(2px); }
.sc:hover { background: rgba(18, 16, 25, .85); }
@media (max-width: 640px) { .sfondo canvas { opacity: .14; } .orb { filter: blur(60px); } }
