/* Shop: tema scuro professionale (grafite + blu), indipendente dagli altri progetti. */
@font-face { font-family: "Inter"; font-weight: 100 900; font-display: swap; src: url(/fonts/inter.woff2) format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 100 800; font-display: swap; src: url(/fonts/jetbrains-mono.woff2) format("woff2"); }

:root {
  --bg: #0a0d14;
  --bg-soft: #0e121b;
  --surface: #121722;
  --surface-2: #19202d;
  --border: #232b3a;
  --border-strong: #334055;
  --text: #e8ecf3;
  --text-soft: #a6b0c2;
  --text-faint: #7d889c;
  --accent: #60a5fa;          /* testo e dettagli su fondo scuro */
  --btn: #2563eb;             /* pulsanti: testo bianco con contrasto AA */
  --btn-hover: #1d4ed8;
  --accent-soft: rgb(59 130 246 / 0.12);
  --accent-line: rgb(96 165 250 / 0.35);
  --on-accent: #ffffff;
  --success: #4ade80;
  --success-soft: rgb(74 222 128 / 0.1);
  --warning: #fbbf24;
  --warning-soft: rgb(251 191 36 / 0.1);
  --danger: #f87171;
  --danger-soft: rgb(248 113 113 / 0.1);
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.3);
  --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 14px 34px -16px rgb(0 0 0 / 0.7);
  --shadow-lg: 0 2px 6px rgb(0 0 0 / 0.3), 0 34px 80px -30px rgb(0 0 0 / 0.85);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --head: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5.5rem; background: var(--bg); }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--text); font: 400 1rem/1.65 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
h1, h2, h3 { font-family: var(--head); color: var(--text); }
::selection { background: rgb(59 130 246 / 0.35); }
.wrap { width: min(74rem, 100%); margin-inline: auto; padding-inline: 1.25rem; }
.narrow { width: min(46rem, 100%); }
.soft { color: var(--text-soft); }
.skip { position: absolute; left: -999px; top: 0.5rem; z-index: 50; padding: 0.6rem 1rem; border-radius: var(--radius-sm); background: var(--btn); color: var(--on-accent); font-weight: 600; }
.skip:focus { left: 0.5rem; }
.aurora { display: none; }

/* Barra in alto */
.top { position: sticky; top: 0; z-index: 20; padding-top: env(safe-area-inset-top, 0px); background: rgb(10 13 20 / 0.82); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--border); }
.top .wrap { display: flex; align-items: center; gap: 2rem; min-height: 4.25rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 700; font-size: 1.05rem; letter-spacing: -0.02em; white-space: nowrap; }
.mark { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 8px; background: linear-gradient(135deg, #3b82f6, #1d4ed8); color: #fff; font-weight: 800; font-size: 0.95rem; box-shadow: 0 6px 18px -8px #3b82f6; }
.brand span:not(.mark):not(.brand-name) { color: var(--text-faint); font-weight: 500; }
.nav { display: flex; align-items: center; gap: 0.25rem; flex: 1; }
.nav a, .top-link { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.45rem 0.75rem; border-radius: 8px; color: var(--text-soft); font-size: 0.93rem; font-weight: 500; transition: color 200ms, background 200ms; }
.nav a:hover, .top-link:hover { color: var(--text); background: var(--surface-2); }
.top-actions { display: flex; align-items: center; gap: 0.5rem; margin-left: auto; }
.cart-link { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.5rem 0.9rem; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font-size: 0.93rem; font-weight: 600; transition: border-color 200ms; }
.cart-link:hover { border-color: var(--border-strong); }
.cart-count { display: inline-grid; place-items: center; min-width: 1.3rem; height: 1.3rem; padding: 0 0.35rem; border-radius: 999px; background: var(--btn); color: var(--on-accent); font-size: 0.72rem; font-weight: 700; }
.cart-count.bump { animation: bump 450ms var(--ease); }
.who { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--text-faint); font-size: 0.88rem; }
@media (max-width: 56rem) { .nav { display: none; } }
@media (max-width: 30rem) { .top-link span, .cart-label { display: none; } .top .wrap { gap: 1rem; } }

/* Testi comuni */
.eyebrow { display: inline-block; color: var(--accent); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.eyebrow .dot { display: none; }
h1 { margin: 0.75rem 0 0; font-size: clamp(2.1rem, 4.4vw, 3.3rem); line-height: 1.08; font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); line-height: 1.15; font-weight: 750; letter-spacing: -0.025em; }
.hl { color: var(--accent); }
.lead { margin: 1.1rem 0 0; max-width: 36rem; font-size: clamp(1.05rem, 1.6vw, 1.18rem); color: var(--text-soft); }
.page-head { padding-block: clamp(2.5rem, 6vw, 4rem) 1.5rem; }
.page-head h1 { font-size: clamp(2rem, 4vw, 2.75rem); }

/* Hero */
.hero { padding-block: clamp(3rem, 8vw, 5.5rem) clamp(2.5rem, 6vw, 4.5rem); background: radial-gradient(55rem 28rem at 85% -10%, rgb(37 99 235 / 0.22), transparent 62%), radial-gradient(40rem 22rem at -10% 110%, rgb(37 99 235 / 0.08), transparent 60%); border-bottom: 1px solid var(--border); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: clamp(2rem, 5vw, 4.5rem); }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.trust { display: flex; flex-wrap: wrap; gap: 0.6rem 1.5rem; margin: 2rem 0 0; padding: 0; list-style: none; color: var(--text-soft); font-size: 0.92rem; }
.trust li { display: inline-flex; align-items: center; gap: 0.45rem; }
.trust svg { color: var(--success); }
.hero-visual { position: relative; }
.hero-shot { border-radius: 18px; overflow: hidden; border: 1px solid var(--border-strong); box-shadow: var(--shadow-lg); background: var(--surface); }
.hero-shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.hero-badge { position: absolute; left: -1.25rem; bottom: -1.25rem; display: flex; align-items: center; gap: 0.75rem; padding: 0.85rem 1.1rem; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border-strong); box-shadow: var(--shadow); font-size: 0.85rem; color: var(--text-soft); }
.hero-badge svg { flex-shrink: 0; width: 2rem; height: 2rem; padding: 0.4rem; border-radius: 8px; background: var(--success-soft); color: var(--success); }
.hero-badge b { display: block; color: var(--text); font-size: 0.92rem; }
@media (max-width: 56rem) { .hero-grid { grid-template-columns: 1fr; } .hero-badge { left: 0.75rem; bottom: -1rem; } }

/* Avvisi */
.notice { margin-block: 1.25rem; padding: 0.9rem 1.1rem; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface); color: var(--text-soft); font-size: 0.95rem; }
.notice b { color: var(--text); }
.notice.warn { border-color: rgb(251 191 36 / 0.3); background: var(--warning-soft); color: #f3dca0; }
.notice.warn b { color: #fde68a; }
.notice.ok { border-color: rgb(74 222 128 / 0.3); background: var(--success-soft); color: #bbf7d0; }
.notice.ok b { color: #dcfce7; }
.notice.err { border-color: rgb(248 113 113 / 0.35); background: var(--danger-soft); color: #fecaca; }

/* Sezioni */
.block { padding-block: clamp(3.5rem, 8vw, 5.5rem); }
.block-alt { background: var(--bg-soft); border-block: 1px solid var(--border); }
.section-head { max-width: 42rem; margin: 0 auto 2.75rem; text-align: center; }
.section-head h2 { margin: 0.5rem 0 0; }
.section-head p { margin: 0.85rem 0 0; color: var(--text-soft); font-size: 1.05rem; }
.section-head.left { margin-inline: 0; text-align: left; }

/* Piani dei pacchetti Discord Bot */
.plans { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: 18px; border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow-sm); transition: transform 300ms var(--ease), box-shadow 300ms var(--ease), border-color 300ms; animation: rise 700ms var(--ease) both; animation-delay: calc(var(--i, 0) * 80ms); }
.plan:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.plan-featured { border: 1px solid var(--accent-line); box-shadow: 0 0 0 1px var(--accent-line), 0 24px 60px -30px rgb(37 99 235 / 0.6); }
.ribbon { position: absolute; top: 0.9rem; right: 0.9rem; z-index: 1; padding: 0.3rem 0.7rem; border-radius: 999px; background: var(--btn); color: var(--on-accent); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.02em; box-shadow: 0 6px 16px -6px #2563eb; }
.plan-media { aspect-ratio: 16 / 10; border-bottom: 1px solid var(--border); background: var(--bg-soft); }
.plan-media img { width: 100%; height: 100%; object-fit: cover; }
.plan-body { display: flex; flex: 1; flex-direction: column; padding: 1.5rem; }
.plan h3 { margin: 0; font-size: 1.35rem; font-weight: 750; letter-spacing: -0.02em; }
/* Tre righe riservate: prezzo e pulsante restano allineati tra i piani */
.plan-summary { margin: 0.4rem 0 0; color: var(--text-soft); font-size: 0.95rem; min-height: 4.95em; }
@media (max-width: 40rem) { .plan-summary { min-height: 0; } }
.plan-price { display: flex; align-items: baseline; gap: 0.5rem; margin: 1.25rem 0 1.25rem; }
.plan-price b { font-size: 2.3rem; font-weight: 800; letter-spacing: -0.035em; line-height: 1; }
.plan-price span { color: var(--text-faint); font-size: 0.9rem; }
.plan-features { display: grid; gap: 0.6rem; margin: 1.5rem 0 0; padding: 1.25rem 0 0; list-style: none; border-top: 1px solid var(--border); font-size: 0.93rem; color: var(--text-soft); }
.plan-features li { display: flex; gap: 0.6rem; align-items: flex-start; }
.plan-features svg { flex-shrink: 0; margin-top: 0.15rem; color: var(--accent); }
.plan-meta { display: flex; align-items: center; gap: 0.45rem; margin: auto 0 0; padding-top: 1.25rem; color: var(--text-faint); font-size: 0.85rem; }

/* Come funziona */
.steps { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); margin: 0; padding: 0; list-style: none; }
.steps li { padding: 1.6rem; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
.step-n { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 10px; background: var(--accent-soft); color: var(--accent); font-weight: 800; }
.steps h3 { margin: 1rem 0 0; font-size: 1.1rem; font-weight: 700; }
.steps p { margin: 0.45rem 0 0; color: var(--text-soft); font-size: 0.95rem; }

/* Schede servizi */
.grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); }
.card { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow-sm); transition: transform 300ms var(--ease), box-shadow 300ms var(--ease), border-color 300ms; animation: rise 700ms var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms); }
.card:hover, .card:focus-visible { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.thumb { aspect-ratio: 16 / 10; overflow: hidden; border-bottom: 1px solid var(--border); background: var(--bg-soft); }
.thumb img, .media img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease); }
.card:hover .thumb img { transform: scale(1.03); }
.ph { display: grid; place-items: center; color: var(--accent); }
.ph-discordbot, .ph-servizi, .ph-servizio, .ph-digitali, .ph-digitale { background: linear-gradient(135deg, rgb(37 99 235 / 0.18), var(--bg-soft)); }
.card-body { display: flex; flex: 1; flex-direction: column; padding: 1.25rem 1.35rem 1.35rem; }
.card h3 { margin: 0.75rem 0 0; font-size: 1.12rem; font-weight: 700; letter-spacing: -0.015em; }
.card p { margin: 0.4rem 0 0; color: var(--text-soft); font-size: 0.94rem; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: auto; padding-top: 1.1rem; }
.price { font-size: 1.15rem; font-weight: 750; letter-spacing: -0.02em; }
.meta { display: inline-flex; align-items: center; gap: 0.35rem; color: var(--text-faint); font-size: 0.85rem; }
.pills { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.pill { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.2rem 0.6rem; border-radius: 999px; background: var(--surface-2); color: var(--text-soft); font-size: 0.75rem; font-weight: 600; }
.pill.feat { background: var(--accent-soft); color: var(--accent); }
.empty { padding: 2.5rem 1.5rem; border: 1px dashed var(--border-strong); border-radius: var(--radius); text-align: center; color: var(--text-soft); }
.empty p { margin: 0 0 0.75rem; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 2rem 4rem; align-items: start; }
@media (max-width: 52rem) { .faq-grid { grid-template-columns: 1fr; } }
.faq { display: grid; gap: 0.75rem; }
.faq details { border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.2rem; font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex-shrink: 0; display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 6px; background: var(--surface-2); color: var(--text-soft); font-weight: 500; transition: transform 250ms var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 1.2rem 1.1rem; color: var(--text-soft); }

/* Fascia finale */
.cta-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 2rem; padding: clamp(1.75rem, 4vw, 2.75rem); border-radius: 20px; background: radial-gradient(40rem 16rem at 100% 0%, rgb(96 165 250 / 0.28), transparent 60%), linear-gradient(135deg, #12204a, #1d3a8f); border: 1px solid rgb(96 165 250 / 0.25); box-shadow: var(--shadow-lg); }
.cta-band h2 { margin: 0; color: #fff; font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.cta-band p { margin: 0.5rem 0 0; max-width: 38rem; color: rgb(255 255 255 / 0.78); }

/* Scheda prodotto */
.crumbs { display: flex; gap: 0.5rem; padding-top: 1.5rem; color: var(--text-faint); font-size: 0.9rem; }
.crumbs a:hover { color: var(--accent); }
.product { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 2rem 3rem; padding-block: 1.25rem 5rem; }
.product-media .media { aspect-ratio: 16 / 10; border-radius: 18px; overflow: hidden; border: 1px solid var(--border-strong); box-shadow: var(--shadow); background: var(--bg-soft); }
.product-info h1 { margin-top: 0.85rem; font-size: clamp(1.9rem, 4vw, 2.6rem); }
.product .lead { margin-top: 0.75rem; }
.buy { margin-top: 1.5rem; padding: 1.4rem; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
.buy .plan-price { margin: 0 0 1.1rem; }
.buy-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.facts { display: grid; gap: 0.65rem; margin: 1.4rem 0 0; padding: 0; list-style: none; color: var(--text-soft); font-size: 0.95rem; }
.facts li { display: flex; gap: 0.65rem; align-items: center; }
.facts svg { flex-shrink: 0; color: var(--accent); }
.product-desc { grid-column: 1 / -1; max-width: 46rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.hint { margin-top: 1.5rem; padding: 1rem 1.15rem; border-radius: var(--radius-sm); border: 1px solid var(--accent-line); background: var(--accent-soft); }
.hint b { color: var(--text); }
.hint p { margin: 0.3rem 0 0; color: var(--text-soft); }
@media (max-width: 52rem) { .product { grid-template-columns: 1fr; } }

.prose { color: var(--text-soft); }
.prose h2 { margin: 1.5rem 0 0.75rem; font-size: 1.35rem; }
.prose p { margin: 0 0 1rem; }
.prose ul { margin: 0 0 1rem; padding-left: 1.2rem; }
.prose li { margin-bottom: 0.35rem; }
.prose li::marker { color: var(--accent); }

/* Pulsanti */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.75rem 1.25rem; border: 1px solid transparent; border-radius: var(--radius-sm); font-weight: 600; font-size: 0.95rem; line-height: 1.1; cursor: pointer; transition: background 200ms, border-color 200ms, box-shadow 200ms, transform 200ms var(--ease), color 200ms; }
.btn.primary { background: var(--btn); color: var(--on-accent); box-shadow: 0 8px 22px -10px #2563eb; }
.btn.primary:hover { background: var(--btn-hover); transform: translateY(-1px); }
.btn.outline, .btn.ghost { background: var(--surface); border-color: var(--border-strong); color: var(--text); }
.btn.outline:hover, .btn.ghost:hover { border-color: var(--text-faint); background: var(--surface-2); }
.btn.light { background: #fff; color: #0b1530; }
.btn.light:hover { background: #dbe7ff; }
.btn.danger { background: var(--danger-soft); border-color: rgb(248 113 113 / 0.35); color: #fecaca; }
.btn.danger:hover { background: rgb(248 113 113 / 0.18); }
.btn.small { padding: 0.45rem 0.8rem; font-size: 0.85rem; border-radius: 8px; }
.btn.wide { width: 100%; padding-block: 0.85rem; }
.btn.in-cart { background: var(--success-soft); color: var(--success); border-color: rgb(74 222 128 / 0.35); box-shadow: none; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.link-btn { display: block; margin: 0.9rem auto 0; padding: 0; border: 0; background: none; color: var(--accent); font-size: 0.9rem; cursor: pointer; }
.link-btn:hover { text-decoration: underline; }

/* Pannelli e moduli */
.panel { padding: 1.5rem; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow-sm); }
.panel h2 { margin: 0 0 1rem; font-size: 1.2rem; }
.checkout { margin-top: 1.25rem; margin-bottom: 4rem; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
@media (max-width: 36rem) { .fields { grid-template-columns: 1fr; } }
.field { display: grid; gap: 0.35rem; margin-bottom: 1rem; }
.field > span { font-size: 0.88rem; font-weight: 600; color: var(--text); }
.field small, .fine { color: var(--text-faint); font-size: 0.84rem; }
.fine { margin: 0.8rem 0 0; text-align: center; }
.fine a, .account-note a { color: var(--accent); }
input:not([type=checkbox]):not([type=file]), textarea, select { width: 100%; padding: 0.7rem 0.85rem; border-radius: var(--radius-sm); border: 1px solid var(--border-strong); background: var(--bg-soft); transition: border-color 200ms, box-shadow 200ms; }
input:disabled { color: var(--text-faint); }
input::placeholder, textarea::placeholder { color: #5d687c; }
textarea { resize: vertical; min-height: 6rem; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgb(96 165 250 / 0.2); }
select option { background: var(--surface); }
.check { display: flex; gap: 0.7rem; align-items: flex-start; margin-bottom: 0.85rem; color: var(--text-soft); font-size: 0.93rem; cursor: pointer; }
.check input { flex-shrink: 0; width: 1.1rem; height: 1.1rem; margin-top: 0.2rem; accent-color: #3b82f6; }
.check a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.form-error { margin: 0 0 1rem; padding: 0.75rem 1rem; border-radius: var(--radius-sm); background: var(--danger-soft); border: 1px solid rgb(248 113 113 / 0.35); color: #fecaca; font-size: 0.93rem; }
.account-note { display: flex; align-items: center; justify-content: center; gap: 0.4rem; flex-wrap: wrap; margin: -0.25rem 0 1.1rem; text-align: left; justify-content: flex-start; }

/* Carrello e ordine */
.lines { display: grid; gap: 0.6rem; }
.line { display: grid; grid-template-columns: 3.5rem minmax(0, 1fr) auto; align-items: center; gap: 1rem; padding: 0.8rem; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface); }
.line-link { transition: border-color 200ms, background 200ms; }
.line-link:hover { border-color: var(--border-strong); background: var(--surface-2); }
.line .mini { width: 3.5rem; height: 3.5rem; border-radius: 10px; overflow: hidden; }
.line .mini img { width: 100%; height: 100%; object-fit: cover; }
.line .mini.ph svg { width: 22px; height: 22px; }
.num-badge { display: grid; place-items: center; background: var(--surface-2); color: var(--text-soft); font-size: 0.85rem; font-weight: 700; }
.line h3 { margin: 0; font-size: 1rem; font-weight: 650; }
.line h3 a:hover { color: var(--accent); }
.line small { color: var(--text-faint); }
.line small .status { margin-left: 0.15rem; font-size: 0.75rem; padding: 0.1rem 0.55rem; }
.line-end { display: flex; align-items: center; gap: 0.6rem; }
.icon-btn { display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); color: var(--text-faint); cursor: pointer; transition: color 200ms, border-color 200ms, background 200ms; }
.icon-btn:hover { color: var(--danger); border-color: rgb(248 113 113 / 0.4); background: var(--danger-soft); }
.total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 1rem; padding: 1rem 0.3rem 0; border-top: 1px solid var(--border); }
.total span { color: var(--text-soft); }
.total b { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.03em; }
.status { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.25rem 0.75rem; border-radius: 999px; background: var(--surface-2); color: var(--text-soft); font-size: 0.82rem; font-weight: 600; }
.status::before { content: ""; width: 0.45rem; height: 0.45rem; border-radius: 50%; background: currentColor; }
.status.s-pagato, .status.s-completato { color: var(--success); background: var(--success-soft); }
.status.s-in_attesa { color: var(--warning); background: var(--warning-soft); }
.status.s-annullato, .status.s-rimborsato { color: var(--danger); background: var(--danger-soft); }
.order-meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; align-items: center; margin-bottom: 1.25rem; color: var(--text-soft); font-size: 0.92rem; }
.order-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.25rem; }
.mono { font-family: var(--mono); font-size: 0.85em; }

/* Area clienti */
.account { padding-bottom: 4rem; }
.seg { display: flex; gap: 0.25rem; max-width: 30rem; margin-bottom: 1rem; padding: 0.25rem; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); }
.seg button { flex: 1; padding: 0.6rem 1rem; border: 0; border-radius: 9px; background: transparent; color: var(--text-soft); font-weight: 600; cursor: pointer; }
.seg button[aria-selected="true"] { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--border-strong); }
.auth { max-width: 30rem; }
.account-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.account-head h2 { margin: 0; font-size: 1.3rem; }
.account-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.25rem; }
@media (max-width: 40rem) { .account-grid { grid-template-columns: 1fr; } }
.bot-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.25rem; border-color: var(--accent-line); background: linear-gradient(135deg, rgb(37 99 235 / 0.16), var(--surface)); }
.bot-card h2 { margin: 0; }
.bot-card p { margin: 0.3rem 0 0; }
.danger-zone { margin-top: 1.25rem; border-color: rgb(248 113 113 / 0.25); }

/* Accesso amministratore */
.gate { max-width: 26rem; margin: clamp(2rem, 8vw, 5rem) auto; }
.gate h2 { margin-bottom: 0.4rem; }
.gate > p.soft { margin-top: 0; }
.gate-form { margin-top: 1.25rem; }
.code-input { font-family: var(--mono); font-size: 1.4rem !important; letter-spacing: 0.35em; text-align: center; }
.qr { display: block; margin: 1rem auto 0.5rem; border-radius: 12px; background: #fff; padding: 6px; }
.secret { margin: 0.35rem 0 0; padding: 0.6rem; border-radius: 8px; background: var(--bg-soft); border: 1px solid var(--border); text-align: center; word-break: break-all; }

/* Piè di pagina */
.foot { margin-top: auto; background: #07090e; border-top: 1px solid var(--border); color: var(--text-faint); padding-bottom: env(safe-area-inset-bottom, 0px); font-size: 0.93rem; }
.foot .brand { color: var(--text); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 2rem; padding-block: 3.5rem 2.5rem; }
.foot-grid h2 { margin: 0 0 0.9rem; color: var(--text); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.foot-grid > div:not(.foot-brand) { display: flex; flex-direction: column; gap: 0.55rem; }
.foot-grid a:hover { color: var(--text); }
.foot-brand p { max-width: 22rem; margin: 1rem 0 0; }
.foot .seller { white-space: pre-line; font-size: 0.85rem; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem; padding-block: 1.4rem; border-top: 1px solid var(--border); font-size: 0.85rem; }
.foot-bottom span { display: inline-flex; align-items: center; gap: 0.4rem; }
@media (max-width: 52rem) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

/* Animazioni (discrete) */
.reveal { animation: rise 700ms var(--ease) both; }
.d1 { animation-delay: 60ms; } .d2 { animation-delay: 120ms; } .d3 { animation-delay: 180ms; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
@keyframes bump { 40% { transform: scale(1.3); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
