/* AIForge — stile principale (dark neon, responsive, PWA). © Roberto Di Flumeri */

:root {
  --bg: #060a1c;
  --bg-2: #0a1029;
  --panel: rgba(17, 25, 58, .72);
  --panel-solid: #0f1736;
  --panel-2: rgba(28, 38, 84, .55);
  --line: rgba(122, 140, 255, .18);
  --line-2: rgba(122, 140, 255, .32);
  --text: #e9edff;
  --muted: #98a2c9;
  --cyan: #22d3ee;
  --blue: #3b82f6;
  --indigo: #6366f1;
  --violet: #8b5cf6;
  --magenta: #d946ef;
  --pink: #f472b6;
  --green: #34d399;
  --amber: #fbbf24;
  --red: #f87171;
  --grad: linear-gradient(90deg, #22d3ee 0%, #6366f1 55%, #a855f7 100%);
  --grad-soft: linear-gradient(135deg, rgba(34, 211, 238, .16), rgba(139, 92, 246, .16));
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 10px 40px rgba(0, 0, 0, .35);
  --header-h: 72px;
  --tabbar-h: 0px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Orbitron', 'Inter', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.55; color: var(--text);
  background: radial-gradient(1200px 600px at 75% -10%, rgba(99, 102, 241, .22), transparent 60%),
              radial-gradient(900px 500px at -10% 20%, rgba(34, 211, 238, .10), transparent 60%),
              var(--bg);
  background-attachment: fixed;
  min-height: 100vh;
  padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
}
img { max-width: 100%; display: block; }
a { color: #8fb3ff; text-decoration: none; }
a:hover { color: #c4d4ff; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
h2 { font-size: 1.25rem; display: flex; align-items: center; gap: .5rem; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
.ico { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
.muted { color: var(--muted); }
.small { font-size: .87rem; }
.center { text-align: center; }
.mt { margin-top: 1.2rem; }
.text-danger { color: var(--red); }
.hide-sm { }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--indigo); color: #fff; padding: .5rem 1rem; z-index: 100; }
.skip-link:focus { left: 1rem; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; border-radius: 4px; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.container { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 860px; padding-top: 28px; padding-bottom: 40px; }
.section { margin-top: 34px; }
main { min-height: 60vh; }

/* ---------- Brand ---------- */
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--text); }
.brand:hover { color: var(--text); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.45rem; letter-spacing: .06em;
  background: linear-gradient(90deg, #67e8f9, #a5b4fc 60%, #e9d5ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-name b { font-weight: 800; color: transparent; }
.brand-tag { font-size: .58rem; letter-spacing: .32em; color: var(--muted); margin-top: 4px; }
.brand-name.xl { font-size: clamp(2.6rem, 6vw, 4.4rem); }
.brand-tag.xl { font-size: clamp(.8rem, 1.4vw, 1.05rem); letter-spacing: .42em; color: #c7d2fe; margin-top: 8px; }

/* ---------- Bottoni ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .7rem 1.2rem; border-radius: 10px;
  border: 1px solid transparent; font: 600 .95rem var(--font); cursor: pointer; color: var(--text); background: transparent;
  transition: transform .15s, box-shadow .2s, background .2s, border-color .2s; white-space: nowrap; text-align: center; }
.btn:hover { transform: translateY(-1px); color: #fff; }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--grad); box-shadow: 0 6px 24px rgba(99, 102, 241, .45); color: #fff; }
.btn-primary:hover { box-shadow: 0 8px 30px rgba(139, 92, 246, .6); }
.btn-outline { border-color: rgba(103, 232, 249, .55); background: rgba(34, 211, 238, .06); }
.btn-outline:hover { border-color: var(--cyan); background: rgba(34, 211, 238, .14); }
.btn-ghost { border-color: var(--line-2); background: rgba(255, 255, 255, .03); }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); }
.btn-linkedin { background: #0a66c2; color: #fff; }
.btn-sm { padding: .45rem .85rem; font-size: .85rem; border-radius: 8px; }
.btn-lg { padding: .9rem 1.5rem; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn.disabled, .btn:disabled, fieldset:disabled .btn { opacity: .5; pointer-events: none; }
.icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, .03); color: var(--text); cursor: pointer; }
.icon-btn:hover { border-color: var(--line-2); background: rgba(255, 255, 255, .08); }
.icon-btn.danger:hover { color: var(--red); border-color: rgba(248, 113, 113, .5); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; height: var(--header-h); background: rgba(6, 10, 28, .78);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top); box-sizing: content-box; }
.header-inner { height: 100%; display: flex; align-items: center; gap: 1.2rem; }
.main-nav { display: flex; gap: .2rem; margin-left: .8rem; }
.main-nav a { color: #cdd5f7; padding: .5rem .7rem; font-size: .92rem; font-weight: 500; position: relative; border-radius: 8px; white-space: nowrap; }
.main-nav a:hover { color: #fff; background: rgba(255, 255, 255, .05); }
.main-nav a.active { color: #fff; }
.main-nav a.active::after { content: ''; position: absolute; left: .7rem; right: .7rem; bottom: -2px; height: 2px; border-radius: 2px; background: var(--grad); }
.header-search { display: flex; align-items: center; gap: .5rem; margin-left: auto; padding: 0 .9rem; height: 40px; min-width: 200px;
  border: 1px solid var(--line-2); border-radius: 999px; background: rgba(255, 255, 255, .04); color: var(--muted); }
.header-search input { background: none; border: 0; outline: 0; color: var(--text); font: inherit; width: 100%; min-width: 0; }
.header-actions { display: flex; align-items: center; gap: .6rem; }
.burger { display: none; background: none; border: 0; color: var(--text); padding: .4rem; cursor: pointer; }
.burger .ico { width: 26px; height: 26px; }
.points-pill { display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .75rem; border-radius: 999px; font-weight: 700; font-size: .88rem;
  color: #fde68a; background: rgba(251, 191, 36, .12); border: 1px solid rgba(251, 191, 36, .35); }
.points-pill .ico { color: var(--amber); fill: var(--amber); }
.user-menu { position: relative; }
.avatar-btn { width: 40px; height: 40px; border-radius: 50%; border: 2px solid transparent; background: var(--grad) border-box; padding: 0; cursor: pointer; overflow: hidden; display: grid; place-items: center; color: #fff; font-weight: 700; }
.avatar-btn img { width: 100%; height: 100%; object-fit: cover; }
.dropdown { position: absolute; right: 0; top: calc(100% + 10px); width: 260px; background: var(--panel-solid); border: 1px solid var(--line-2);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: .4rem; display: none; z-index: 60; }
.dropdown.open { display: block; }
.dropdown-head { padding: .6rem .7rem .7rem; border-bottom: 1px solid var(--line); margin-bottom: .3rem; display: flex; flex-direction: column; }
.dropdown-head small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.dropdown a, .dropdown button { display: flex; align-items: center; gap: .6rem; width: 100%; padding: .55rem .7rem; border-radius: 8px; color: var(--text); background: none; border: 0; font: inherit; cursor: pointer; text-align: left; }
.dropdown a:hover, .dropdown button:hover { background: rgba(255, 255, 255, .06); }
.dropdown .admin-link { color: #c4b5fd; }

/* Drawer mobile */
.drawer { position: fixed; inset: 0; z-index: 80; background: rgba(3, 6, 18, .6); opacity: 0; pointer-events: none; transition: opacity .2s; }
.drawer.open { opacity: 1; pointer-events: auto; }
.drawer-panel { position: absolute; right: 0; top: 0; bottom: 0; width: min(340px, 88vw); background: var(--bg-2); border-left: 1px solid var(--line);
  padding: calc(16px + env(safe-area-inset-top)) 18px calc(18px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 14px;
  transform: translateX(100%); transition: transform .25s ease; overflow-y: auto; }
.drawer.open .drawer-panel { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; }
.drawer nav { display: flex; flex-direction: column; }
.drawer nav a { padding: .75rem .4rem; color: var(--text); border-bottom: 1px solid var(--line); font-weight: 500; }
.drawer nav a.active { color: var(--cyan); }
.drawer-search { margin: 0; min-width: 0; }
.drawer-foot { margin-top: auto; display: flex; flex-direction: column; gap: .6rem; }
.lang-switch { display: inline-flex; border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden; }
.lang-switch a { padding: .3rem .65rem; color: var(--muted); font-size: .82rem; font-weight: 600; }
.lang-switch a.on { background: var(--grad); color: #fff; }

/* ---------- Flash ---------- */
.flash-stack { position: fixed; top: calc(var(--header-h) + 12px); right: 16px; z-index: 90; display: flex; flex-direction: column; gap: .6rem; max-width: min(420px, calc(100vw - 32px)); }
.flash-stack.static { position: static; max-width: none; margin-bottom: 1rem; }
.flash { display: flex; align-items: flex-start; gap: .6rem; padding: .8rem 1rem; border-radius: 12px; background: var(--panel-solid); border: 1px solid var(--line-2); box-shadow: var(--shadow); animation: slideIn .3s ease; }
.flash span { flex: 1; }
.flash-success { border-color: rgba(52, 211, 153, .5); } .flash-success .ico { color: var(--green); }
.flash-error { border-color: rgba(248, 113, 113, .55); } .flash-error .ico { color: var(--red); }
.flash-info .ico { color: var(--cyan); }
.flash-x { background: none; border: 0; color: var(--muted); font-size: 1.3rem; line-height: 1; cursor: pointer; }
@keyframes slideIn { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 34px 0 10px; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.stars { position: absolute; inset: 0; background-image:
  radial-gradient(1px 1px at 10% 20%, #fff8, transparent), radial-gradient(1px 1px at 30% 70%, #fff6, transparent),
  radial-gradient(1.5px 1.5px at 55% 15%, #a5b4fcaa, transparent), radial-gradient(1px 1px at 80% 40%, #fff7, transparent),
  radial-gradient(1px 1px at 92% 80%, #67e8f9aa, transparent), radial-gradient(1px 1px at 42% 90%, #fff5, transparent),
  radial-gradient(1.5px 1.5px at 68% 62%, #e9d5ffaa, transparent), radial-gradient(1px 1px at 20% 48%, #fff5, transparent);
  animation: twinkle 6s ease-in-out infinite alternate; }
.glow { position: absolute; border-radius: 50%; filter: blur(80px); }
.glow.g1 { width: 520px; height: 520px; right: 4%; top: -80px; background: rgba(99, 102, 241, .35); }
.glow.g2 { width: 380px; height: 380px; right: 30%; bottom: -160px; background: rgba(34, 211, 238, .16); }
@keyframes twinkle { to { opacity: .45; } }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 30px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: .4rem; font-size: .74rem; letter-spacing: .22em; font-weight: 700; color: var(--cyan); text-transform: uppercase; margin-bottom: .8rem; }
.hero-logo { display: flex; align-items: center; gap: 18px; margin: .2rem 0 1.2rem; }
.hero-logo img { width: clamp(64px, 9vw, 104px); height: auto; filter: drop-shadow(0 0 22px rgba(139, 92, 246, .7)); }
.hero-logo > span { display: flex; flex-direction: column; }
.hero-lead { font-size: clamp(1.15rem, 2vw, 1.45rem); font-weight: 600; line-height: 1.4; margin-bottom: .5rem; }
.hero-sub { color: var(--muted); margin-bottom: 1rem; }
.hero-free { display: flex; flex-wrap: wrap; gap: .5rem 1rem; margin-bottom: 1.3rem; font-size: .9rem; color: #a7f3d0; }
.hero-free span { display: inline-flex; align-items: center; gap: .35rem; }
.hero-free .ico { color: var(--green); }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 1.6rem; }
.hero-features { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; }
.hero-features li { border-left: 1px solid var(--line); }
.hero-features li:first-child { border-left: 0; }
.hero-features a, .hero-features button { display: flex; flex-direction: column; gap: 2px; padding: .2rem .9rem; color: var(--text); background: none; border: 0; font: inherit; cursor: pointer; text-align: left; }
.hero-features li:first-child a { padding-left: 0; }
.hero-features .ico { width: 26px; height: 26px; color: #a5b4fc; margin-bottom: 6px; }
.hero-features strong { font-size: .88rem; }
.hero-features span { font-size: .8rem; color: var(--muted); }
.hero-features a:hover .ico, .hero-features button:hover .ico { color: var(--cyan); }
.hero-art { position: relative; min-height: 420px; }
.hero-svg { width: 100%; height: auto; max-height: 520px; }
.hero-a { animation: floatA 6s ease-in-out infinite; transform-origin: 260px 200px; }
@keyframes floatA { 50% { transform: translateY(-8px); } }
.orbit { animation: spin 60s linear infinite; transform-origin: 260px 210px; }
@keyframes spin { to { transform: rotate(360deg); } }
.art-word { font: 600 13px var(--font-display); letter-spacing: .4em; fill: #c7d2fe; opacity: .85; }
.hero-quote { position: absolute; right: 0; top: 18%; max-width: 210px; margin: 0; font-size: 1.05rem; line-height: 1.4; color: #e0e7ff; }
.hero-quote cite { display: block; font-style: normal; font-size: .75rem; letter-spacing: .2em; color: var(--muted); margin-top: .4rem; }
.hero-script { position: absolute; right: 4%; bottom: 14%; font-family: 'Caveat', cursive; font-size: 1.9rem; color: #f0abfc; transform: rotate(-12deg); text-shadow: 0 0 18px rgba(217, 70, 239, .6); }

/* ---------- Vantaggi (home) ---------- */
.benefits { margin-top: 26px; }
.benefits-head { text-align: center; margin-bottom: 20px; }
.benefits-head h2 { display: block; font-size: clamp(1.6rem, 3.4vw, 2.4rem); margin-bottom: .3rem; }
.benefits-head p { margin: 0; }
.benefit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.benefit { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 26px 22px 22px; border-radius: 20px; overflow: hidden;
  border: 1px solid var(--line-2); box-shadow: 0 18px 50px rgba(15, 20, 60, .45); transition: transform .2s, box-shadow .2s; }
.benefit:hover { transform: translateY(-4px); box-shadow: 0 24px 60px rgba(60, 50, 160, .45); }
.benefit::before { content: ''; position: absolute; width: 220px; height: 220px; border-radius: 50%; right: -70px; top: -80px; filter: blur(10px); opacity: .55; pointer-events: none; }
.benefit h3 { font-size: 1.3rem; margin: 0; line-height: 1.25; }
.benefit p { color: #d7dcf5; margin: 0; font-size: .95rem; }
.benefit ul { list-style: none; margin: 2px 0 4px; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: .9rem; }
.benefit li { display: flex; gap: .5rem; align-items: flex-start; }
.benefit li .ico { color: var(--green); margin-top: 2px; }
.benefit .btn { margin-top: auto; align-self: flex-start; }
.benefit-ico { width: 46px; height: 46px; padding: 10px; border-radius: 14px; background: rgba(255, 255, 255, .1); }
.benefit-tag { position: absolute; top: 16px; right: 16px; font-size: .68rem; font-weight: 800; letter-spacing: .12em; padding: .25rem .6rem; border-radius: 999px; background: rgba(255, 255, 255, .14); }
.benefit-reward { background: linear-gradient(150deg, rgba(251, 191, 36, .24), rgba(217, 70, 239, .2) 60%, rgba(17, 25, 58, .9)); border-color: rgba(251, 191, 36, .45); }
.benefit-reward::before { background: radial-gradient(circle, #fbbf24, transparent 70%); }
.benefit-reward .benefit-ico { color: #fde68a; }
.benefit-support { background: linear-gradient(150deg, rgba(34, 211, 238, .24), rgba(99, 102, 241, .2) 60%, rgba(17, 25, 58, .9)); border-color: rgba(34, 211, 238, .45); }
.benefit-support::before { background: radial-gradient(circle, #22d3ee, transparent 70%); }
.benefit-support .benefit-ico { color: #a5f3fc; }
.benefit-upload { background: linear-gradient(150deg, rgba(52, 211, 153, .22), rgba(139, 92, 246, .22) 60%, rgba(17, 25, 58, .9)); border-color: rgba(52, 211, 153, .45); }
.benefit-upload::before { background: radial-gradient(circle, #34d399, transparent 70%); }
.benefit-upload .benefit-ico { color: #a7f3d0; }
.benefit-progress { display: flex; flex-direction: column; gap: 4px; }
.benefit-progress small { color: #fde68a; font-weight: 600; }
@media (max-width: 1000px) { .benefit-grid { grid-template-columns: 1fr; } .benefit .btn { align-self: stretch; } }

/* ---------- Stats ---------- */
.stats-row { display: grid; grid-template-columns: 1fr auto; gap: 16px; margin-top: 10px; }
.stats-bar { display: flex; flex-wrap: wrap; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 6px; backdrop-filter: blur(8px); }
.stats-bar.compact { margin: 18px 0; }
.stat { flex: 1 1 0; min-width: 130px; display: flex; align-items: center; gap: .7rem; padding: 4px 16px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat > .ico { width: 30px; height: 30px; color: #93c5fd; }
.stat strong { display: block; font-size: 1.35rem; font-weight: 800; line-height: 1.1; }
.stat span { font-size: .78rem; color: var(--muted); }
.stat-free > .ico { color: var(--green); }
.company-box { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: var(--radius); color: var(--text);
  background: linear-gradient(135deg, rgba(139, 92, 246, .28), rgba(217, 70, 239, .14)); border: 1px solid rgba(192, 132, 252, .45); max-width: 440px; }
.company-box > .ico { width: 38px; height: 38px; color: #e9d5ff; }
.company-box strong { display: block; }
.company-box span { font-size: .82rem; color: #d8ccf5; }
.company-box:hover { color: var(--text); border-color: #e879f9; }

/* ---------- Sezioni / card ---------- */
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 14px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.star-ico .ico { color: var(--amber); fill: var(--amber); }
.link-arrow { display: inline-flex; align-items: center; gap: .3rem; font-size: .88rem; font-weight: 600; color: #93c5fd; }
.grid { display: grid; gap: 16px; }
.cards-5 { grid-template-columns: repeat(5, 1fr); }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .2s, border-color .2s, box-shadow .2s; }
.card:hover { transform: translateY(-3px); border-color: var(--line-2); box-shadow: 0 14px 40px rgba(37, 46, 120, .45); }
.card-media { position: relative; display: block; aspect-ratio: 16 / 10; background: var(--grad-soft); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card-media img { transform: scale(1.04); }
.cat-ebook .card-media img { object-fit: contain; background: #0b1230; }
.card-placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: #a5b4fc; }
.card-placeholder .ico { width: 48px; height: 48px; opacity: .8; }
.card-placeholder.big .ico { width: 90px; height: 90px; }
.badges { position: absolute; left: 10px; top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.badges.static { position: static; margin-bottom: .8rem; }
.badge { font-size: .64rem; font-weight: 800; letter-spacing: .06em; padding: .22rem .55rem; border-radius: 6px; color: #fff; background: #334155; }
.badge-app, .badge-software { background: #2563eb; }
.badge-game { background: #0891b2; }
.badge-web { background: #0d9488; }
.badge-ai { background: #7c3aed; }
.badge-ebook { background: #b45309; }
.badge-new { background: #059669; }
.badge-template { background: #db2777; }
.badge-community { background: #475569; }
.badge-oss { background: #15803d; }
.badge-free { background: linear-gradient(90deg, #10b981, #22d3ee); }
.card-body { padding: 14px 16px 14px; }
.card-body h3 { margin: 0 0 .3rem; font-size: 1.02rem; }
.card-body h3 a { color: var(--text); }
.card-body p { font-size: .85rem; color: var(--muted); margin-bottom: .7rem; min-height: 2.6em; }
.card-stats { display: flex; gap: 1rem; font-size: .8rem; color: #b6bfe3; }
.card-stats span { display: inline-flex; align-items: center; gap: .3rem; }
.card-stats .likes .ico { color: var(--pink); }

/* Passi */
.steps { display: grid; grid-template-columns: repeat(3, 1fr) 1.15fr; margin-top: 30px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.step { display: flex; align-items: flex-start; gap: 14px; padding: 20px; color: var(--text); border-left: 1px solid var(--line); background: none; border-top: 0; border-right: 0; border-bottom: 0; font: inherit; text-align: left; cursor: pointer; }
.step:first-child { border-left: 0; }
.step:hover { background: rgba(255, 255, 255, .03); color: var(--text); }
.step > .ico { width: 36px; height: 36px; color: #a5b4fc; }
.step strong { display: block; color: #93c5fd; margin-bottom: 4px; }
.step span { font-size: .84rem; color: var(--muted); }
.step-help { background: linear-gradient(135deg, rgba(139, 92, 246, .3), rgba(99, 102, 241, .12)); align-items: center; }
.step-help strong { color: #fff; }
.step-arrow { margin-left: auto; width: 26px !important; height: 26px !important; }

/* CTA community */
.community-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cta-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.cta-upload { background: linear-gradient(135deg, rgba(34, 211, 238, .14), rgba(99, 102, 241, .12)); }
.cta-ico { width: 40px; height: 40px; color: var(--cyan); margin-bottom: 10px; }
.cta-card p { color: var(--muted); }
.cta-qr { display: flex; gap: 20px; align-items: center; }
.qr-box { background: #fff; border-radius: 12px; padding: 10px; width: 150px; min-width: 150px; aspect-ratio: 1; display: grid; place-items: center; }
.qr-box svg, .qr-box img { width: 100%; height: auto; }
.qr-box.xl { width: 260px; min-width: 0; margin: 0 auto; }

/* Creator */
.creator-band { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; padding: 0; }
.creator-photo { min-height: 300px; background-size: cover; background-position: center; background-color: #0b1230; position: relative; }
.creator-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 60%, rgba(15, 23, 54, .9)); }
.creator-fallback { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, rgba(139, 92, 246, .45), transparent 60%), var(--grad-soft); }
.creator-fallback .ico { width: 90px; height: 90px; color: #c4b5fd; }
.creator-copy { padding: 30px; }
.creator-copy h2 { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: .2rem; display: block; }
.creator-role { font-family: var(--font-display); color: var(--cyan); letter-spacing: .16em; font-size: .9rem; }
.creator-copy p { color: #c8cff0; }
.creator-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.linkedin-hint { display: flex; gap: .5rem; align-items: flex-start; padding: .7rem .9rem; border-radius: 10px; background: rgba(10, 102, 194, .14); border: 1px solid rgba(96, 165, 250, .35); color: #dbeafe; font-size: .92rem; }
.linkedin-hint .ico { color: #60a5fa; margin-top: 2px; }
.linkedin-hint.center-hint { justify-content: center; max-width: 560px; margin: 0 auto 1rem; text-align: center; }

/* Donazioni */
.donate-band { display: flex; align-items: center; gap: 20px; padding: 22px 26px; border-radius: var(--radius); border: 1px solid rgba(244, 114, 182, .4);
  background: linear-gradient(135deg, rgba(244, 114, 182, .16), rgba(139, 92, 246, .14)); }
.donate-band h3 { margin-bottom: .2rem; }
.donate-band p { margin: 0; color: #e3d6f6; }
.donate-band .btn { margin-left: auto; }
.donate-ico { width: 46px; height: 46px; color: var(--pink); }

/* Sponsor */
.sponsor-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.sponsor-logo { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 96px; padding: 12px; border-radius: 12px;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line); color: var(--text); font-weight: 700; text-align: center; }
.sponsor-logo img { max-height: 56px; width: auto; object-fit: contain; }
.sponsor-logo small { font-size: .65rem; letter-spacing: .12em; color: var(--muted); text-transform: uppercase; }
.sponsor-logo.tier-gold { border-color: rgba(251, 191, 36, .55); }
.sponsor-logo.tier-silver { border-color: rgba(203, 213, 225, .5); }
.sponsor-logo.tier-bronze { border-color: rgba(217, 119, 6, .5); }
.sponsor-empty { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border: 1px dashed var(--line-2); border-radius: var(--radius); color: var(--text); }
.sponsor-empty > .ico { width: 36px; height: 36px; color: #c4b5fd; }
.sponsor-empty div { flex: 1; }
.sponsor-empty strong { display: block; }
.sponsor-empty span { font-size: .85rem; color: var(--muted); }
.sponsor-hero { padding: 40px 0 10px; background: radial-gradient(700px 300px at 50% 0, rgba(217, 70, 239, .18), transparent); }
.sponsor-hero h1 { max-width: 760px; }
.sponsor-hero p { max-width: 760px; }
.who-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 30px; }
.who-grid .panel > .ico { width: 34px; height: 34px; color: var(--cyan); margin-bottom: 8px; }
.who-grid p { color: var(--muted); margin: 0; }
.package { display: flex; flex-direction: column; gap: .4rem; }
.package p { color: var(--muted); font-size: .9rem; }
.package .btn { margin-top: auto; align-self: flex-start; }
.tier-name { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; }
.package.tier-gold { border-color: rgba(251, 191, 36, .6); box-shadow: 0 0 30px rgba(251, 191, 36, .12); }
.package.tier-gold .tier-name { color: #fcd34d; }
.package.tier-silver .tier-name { color: #e2e8f0; }
.package.tier-bronze .tier-name { color: #fdba74; }
.package.tier-supporter .tier-name { color: #a5b4fc; }

/* ---------- Pannelli generici ---------- */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 16px; backdrop-filter: blur(8px); }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; padding-top: 30px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head h1 { margin-bottom: .3rem; }
.page-head p { margin: 0; max-width: 720px; }
.center-head { text-align: center; margin-bottom: 24px; }
.center-head p { max-width: 640px; margin-left: auto; margin-right: auto; }
.big-ico { width: 56px; height: 56px; color: var(--pink); margin: 0 auto 10px; display: block; }
.crumbs { font-size: .85rem; color: var(--muted); margin: 18px 0 14px; display: flex; flex-wrap: wrap; gap: .4rem; }
.crumbs span { opacity: .5; }
.notice { display: flex; gap: .6rem; align-items: flex-start; padding: .8rem 1rem; border-radius: 10px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04); margin-bottom: 1rem; }
.notice-warn { border-color: rgba(251, 191, 36, .5); background: rgba(251, 191, 36, .08); }
.notice-ok { border-color: rgba(52, 211, 153, .5); background: rgba(52, 211, 153, .08); }
.notice-info { border-color: rgba(34, 211, 238, .4); background: rgba(34, 211, 238, .06); }
.empty, .empty-state { color: var(--muted); }
.empty-state { text-align: center; padding: 40px 20px; border: 1px dashed var(--line-2); border-radius: var(--radius); }
.empty-state > .ico { width: 40px; height: 40px; margin: 0 auto 10px; display: block; }
.empty-state.small { padding: 20px; }
.prose p, .prose li { color: #cfd6f6; }
.prose h2 { margin-top: 1.2em; }
.prose h2:first-child { margin-top: 0; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: .6rem; }
.tag { display: inline-block; font-size: .78rem; padding: .2rem .6rem; border-radius: 999px; background: rgba(99, 102, 241, .14); border: 1px solid var(--line); color: #c7d2fe; }
.tags.big .tag { font-size: .9rem; padding: .35rem .8rem; }

/* ---------- Filtri ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.filter-search { flex: 1 1 260px; display: flex; align-items: center; gap: .5rem; padding: 0 .9rem; border: 1px solid var(--line-2); border-radius: 10px; background: rgba(255, 255, 255, .04); color: var(--muted); }
.filter-search input { border: 0 !important; background: none !important; padding: .65rem 0 !important; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chip { display: inline-flex; align-items: center; gap: .35rem; padding: .4rem .85rem; border-radius: 999px; border: 1px solid var(--line-2); color: #cdd5f7; font-size: .85rem; }
.chip.on, .chip:hover { background: var(--grad); border-color: transparent; color: #fff; }
.result-count { color: var(--muted); font-size: .85rem; }
.pagination { display: flex; justify-content: center; gap: 6px; margin: 24px 0; }
.pagination a { min-width: 38px; height: 38px; display: grid; place-items: center; border-radius: 9px; border: 1px solid var(--line); color: var(--text); padding: 0 .6rem; }
.pagination a.on { background: var(--grad); border-color: transparent; }

/* ---------- Form ---------- */
.form { display: flex; flex-direction: column; gap: 14px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: .88rem; font-weight: 600; color: #cdd5f7; }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=search], input[type=number], input[type=tel], input[type=date], select, textarea {
  width: 100%; padding: .7rem .85rem; border-radius: 10px; border: 1px solid var(--line-2); background: rgba(5, 9, 26, .6); color: var(--text); font: 400 .95rem var(--font); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(34, 211, 238, .15); }
textarea { resize: vertical; min-height: 90px; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #98a2c9 50%), linear-gradient(135deg, #98a2c9 50%, transparent 50%);
  background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 2rem; }
.filters select { width: auto; min-width: 160px; }
.form .check, .check { flex-direction: row !important; align-items: flex-start; gap: .6rem !important; font-weight: 500 !important; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--violet); flex: none; }
.checks { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.form-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.form-actions.center { justify-content: center; }
.form-row-between { display: flex; justify-content: space-between; }
fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.file-label { display: inline-flex !important; flex-direction: row !important; align-items: center; gap: .5rem !important; padding: .6rem 1rem; border: 1px dashed var(--line-2); border-radius: 10px; cursor: pointer; width: fit-content; }
.file-label input { display: none; }
.file-drop { align-items: center; justify-content: center; text-align: center; min-height: 110px; border: 1.5px dashed var(--line-2); border-radius: 12px; cursor: pointer; background: rgba(255, 255, 255, .02); padding: 14px; }
.file-drop:hover { border-color: var(--cyan); }
.file-drop .ico { width: 28px; height: 28px; color: #a5b4fc; }
.file-drop input { display: none; }
.previews { display: flex; flex-wrap: wrap; gap: 8px; }
.previews img { height: 90px; width: auto; border-radius: 8px; border: 1px solid var(--line); }
.thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.thumb { position: relative; }
.thumb img { height: 100px; width: auto; border-radius: 8px; border: 1px solid var(--line); }
.thumb .icon-btn { position: absolute; top: 4px; right: 4px; background: rgba(6, 10, 28, .85); }
.github-steps { background: linear-gradient(135deg, rgba(34, 211, 238, .1), rgba(99, 102, 241, .1)); }
.github-steps ol { margin: 0; padding-left: 1.2rem; display: flex; flex-direction: column; gap: .4rem; color: #cfd6f6; }

/* ---------- Auth ---------- */
.auth-wrap { display: flex; justify-content: center; align-items: center; gap: 40px; padding: 40px 20px 60px; flex-wrap: wrap; }
.auth-card { width: 100%; max-width: 460px; background: var(--panel); border: 1px solid var(--line-2); border-radius: 18px; padding: 30px; box-shadow: var(--shadow); }
.auth-card h1 { font-size: 1.6rem; }
.auth-logo { margin-bottom: 12px; filter: drop-shadow(0 0 14px rgba(139, 92, 246, .6)); }
.auth-switch { text-align: center; margin: 1rem 0 0; color: var(--muted); }
.auth-side { max-width: 420px; }
.check-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .7rem; }
.check-list li { display: flex; gap: .6rem; align-items: flex-start; color: #cfd6f6; }
.check-list .ico { color: var(--green); margin-top: 3px; }
.check-list.small li { font-size: .88rem; }

/* ---------- Progetto ---------- */
.project-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 22px; align-items: start; }
.project-hero { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--grad-soft); aspect-ratio: 16 / 9; margin-bottom: 14px; }
.project-hero img { width: 100%; height: 100%; object-fit: cover; }
.project-hero.is-ebook { aspect-ratio: 4 / 3; }
.project-hero.is-ebook img { object-fit: contain; }
.gallery { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(180px, 1fr); gap: 10px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 16px; scroll-snap-type: x mandatory; }
.gallery a { scroll-snap-align: start; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: #0b1230; }
.gallery img { width: 100%; height: 180px; object-fit: cover; object-position: top; transition: transform .3s; }
.gallery a:hover img { transform: scale(1.04); }
.project-side { position: sticky; top: calc(var(--header-h) + 16px); }
.project-info h1 { font-size: 1.6rem; margin-bottom: .3rem; }
.project-info .lead { color: #cfd6f6; }
.project-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 14px 0; text-align: center; }
.project-stats div { background: rgba(255, 255, 255, .04); border-radius: 10px; padding: 8px 4px; }
.project-stats strong { display: block; font-size: 1.1rem; }
.project-stats span { font-size: .7rem; color: var(--muted); }
.project-actions { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.action-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.btn-like { border-color: rgba(244, 114, 182, .5); background: rgba(244, 114, 182, .06); }
.btn-like.liked { background: rgba(244, 114, 182, .22); }
.btn-like.liked .ico { fill: var(--pink); color: var(--pink); }
.btn-like.pop .ico { animation: pop .4s; }
@keyframes pop { 50% { transform: scale(1.5); } }
.meta-list { display: grid; grid-template-columns: auto 1fr; gap: .4rem 1rem; margin: 0; font-size: .88rem; }
.meta-list dt { color: var(--muted); }
.meta-list dd { margin: 0; word-break: break-word; }
.code-block { position: relative; background: #050918; border: 1px solid var(--line); border-radius: 10px; padding: 14px; }
.code-block pre { margin: 0; overflow-x: auto; font: .85rem/1.6 ui-monospace, 'Cascadia Code', Consolas, monospace; color: #a5f3fc; }
.code-block .btn { position: absolute; top: 8px; right: 8px; }
.side-cta { display: flex; gap: 12px; align-items: center; color: var(--text); }
.side-cta > .ico { width: 30px; height: 30px; color: #c4b5fd; }
.side-cta strong { display: block; }
.side-cta span { font-size: .82rem; color: var(--muted); }
.sponsor-side { display: flex; flex-direction: column; gap: 6px; color: var(--text); text-align: center; align-items: center; }
.sponsor-side small { font-size: .65rem; letter-spacing: .15em; text-transform: uppercase; color: var(--muted); align-self: flex-start; }
.sponsor-side img { border-radius: 8px; width: 100%; }
.sponsor-side img.logo { max-height: 70px; width: auto; }
.sponsor-side span { font-size: .82rem; color: var(--muted); }
.sponsor-side.empty { border-style: dashed; }
.sponsor-side.empty > .ico { width: 30px; height: 30px; color: #c4b5fd; }
.lightbox { display: grid; place-items: center; }
.lightbox img { max-width: 94vw; max-height: 88vh; border-radius: 10px; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 95; background: rgba(3, 6, 18, .75); display: none; align-items: center; justify-content: center; padding: 16px; }
.modal.open { display: flex; }
.lightbox.open { display: grid; }
.modal-box { position: relative; width: 100%; max-width: 480px; background: var(--panel-solid); border: 1px solid var(--line-2); border-radius: 18px; padding: 24px; box-shadow: var(--shadow); animation: slideIn .25s; }
.modal-x { position: absolute; top: 12px; right: 12px; }
.modal-video { max-width: 900px; padding: 12px; }
.video-frame { aspect-ratio: 16 / 9; }
.video-frame iframe { width: 100%; height: 100%; border: 0; border-radius: 10px; }
.share-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 16px 0; }
.share-btn { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 6px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); color: var(--text); cursor: pointer; font: 600 .82rem var(--font); }
.share-btn .ico { width: 26px; height: 26px; }
.share-btn:hover { border-color: var(--line-2); transform: translateY(-2px); }
.share-btn.fb .ico { color: #60a5fa; } .share-btn.ig .ico { color: #f472b6; } .share-btn.wa .ico { color: #4ade80; }
.share-btn.tg .ico { color: #38bdf8; } .share-btn.li .ico { color: #60a5fa; }
.copy-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.copy-row input { flex: 1 1 200px; font-size: .85rem; }
.share-result { margin: 12px 0 0; min-height: 1.4em; font-weight: 600; color: var(--green); }

/* ---------- Dashboard ---------- */
.dash { padding-top: 26px; padding-bottom: 40px; }
.dash-head { display: grid; grid-template-columns: 1fr 340px; gap: 20px; align-items: center; }
.dash-user { display: flex; gap: 18px; align-items: center; }
.dash-user h1 { margin-bottom: .1rem; }
.dash-user .btn { margin-top: .5rem; }
.avatar { display: inline-grid; place-items: center; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 800; overflow: hidden; width: 40px; height: 40px; flex: none; font-size: .9rem; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.xl { width: 86px; height: 86px; font-size: 1.8rem; box-shadow: 0 0 30px rgba(139, 92, 246, .5); }
.avatar.sm { width: 32px; height: 32px; font-size: .75rem; }
.points-card { display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: 12px; background: linear-gradient(135deg, rgba(251, 191, 36, .14), rgba(217, 70, 239, .12)); border: 1px solid rgba(251, 191, 36, .35); }
.points-card .btn { align-self: flex-start; margin-top: 4px; }
.points-big { font-family: var(--font-display); font-size: 2.6rem; font-weight: 800; background: linear-gradient(90deg, #fde68a, #f0abfc); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }
.points-big.inline { font-size: 1.5rem; }
.points-big.bump, .points-pill [data-points].bump { display: inline-block; animation: bump .6s ease; }
@keyframes bump { 40% { transform: scale(1.25); filter: drop-shadow(0 0 12px rgba(251, 191, 36, .8)); } }
.progress { height: 10px; border-radius: 999px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, #fbbf24, #f472b6, #a855f7); border-radius: inherit; transition: width .6s; }
.progress.small { height: 6px; }
.progress.big { height: 16px; margin: 12px 0 18px; }
.progress.small span { background: var(--grad); }
.progress.warn span { background: linear-gradient(90deg, #f59e0b, #ef4444); }
.dash-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; }
.dash-grid > .panel { margin-bottom: 16px; }
.earn-panel { background: linear-gradient(135deg, rgba(34, 211, 238, .12), rgba(139, 92, 246, .12)); }
.earn-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.earn-stats div { background: rgba(255, 255, 255, .05); border-radius: 10px; padding: 10px; }
.earn-stats strong { display: block; font-size: 1.3rem; }
.earn-stats span { font-size: .76rem; color: var(--muted); }
.qr-panel { text-align: center; display: flex; flex-direction: column; align-items: center; }
.qr-panel .qr-box { margin: 6px auto 12px; }
.quota { margin-bottom: 14px; display: flex; flex-direction: column; gap: 6px; max-width: 420px; }
.history { list-style: none; margin: 0 0 12px; padding: 0; }
.history li { display: flex; gap: .8rem; align-items: center; padding: .55rem 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.history li > span:nth-child(2) { flex: 1; }
.delta { font-weight: 800; min-width: 44px; }
.delta.plus { color: var(--green); }
.delta.minus { color: var(--red); }
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.how-grid > * { display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: 12px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.how-grid .ico { width: 24px; height: 24px; color: var(--cyan); }
.how-grid strong { font-size: 1.2rem; }
.how-grid span { font-size: .8rem; color: var(--muted); }
.request-item { padding: 14px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.request-item:last-child { border-bottom: 0; }
.request-top { display: flex; justify-content: space-between; gap: 10px; align-items: center; flex-wrap: wrap; }
.admin-reply { background: rgba(99, 102, 241, .1); border-left: 3px solid var(--indigo); padding: 10px 12px; border-radius: 8px; font-size: .9rem; }
.admin-reply p:last-child { margin: 0; }
.avatar-edit { display: flex; align-items: center; gap: 18px; }

/* Stati */
.status { display: inline-block; font-size: .72rem; font-weight: 700; padding: .2rem .6rem; border-radius: 999px; white-space: nowrap; background: rgba(148, 163, 184, .18); color: #cbd5e1; }
.status-published, .status-completed, .status-answered, .status-active { background: rgba(52, 211, 153, .16); color: #6ee7b7; }
.status-pending, .status-waiting { background: rgba(251, 191, 36, .16); color: #fcd34d; }
.status-in_progress, .status-open { background: rgba(34, 211, 238, .16); color: #67e8f9; }
.status-rejected, .status-banned { background: rgba(248, 113, 113, .16); color: #fca5a5; }
.status-hidden, .status-closed { background: rgba(148, 163, 184, .16); color: #94a3b8; }
.prio { font-size: .72rem; font-weight: 700; text-transform: uppercase; }
.prio-high { color: var(--red); } .prio-normal { color: #93c5fd; } .prio-low { color: var(--muted); }

/* Tabelle */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: .6rem .7rem; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.table td { padding: .7rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table .num { text-align: right; }
.table .actions { display: flex; gap: 6px; align-items: center; justify-content: flex-end; }
.table .actions form { margin: 0; }
.row-muted { opacity: .55; }
.row-item { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.row-item:last-child { border-bottom: 0; }
.row-item small .ico { width: .9em; height: .9em; }

/* Ticket */
.ticket-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 6px; }
.ticket-steps .panel { position: relative; display: flex; flex-direction: column; gap: 6px; }
.ticket-steps .panel > .ico { width: 30px; height: 30px; color: var(--cyan); }
.ticket-steps span:last-child { color: var(--muted); font-size: .88rem; }
.step-n { position: absolute; top: 14px; right: 16px; font: 800 1.6rem var(--font-display); color: rgba(165, 180, 252, .25); }
@media (max-width: 680px) { .ticket-steps { grid-template-columns: 1fr; } }
.ticket-list { list-style: none; padding: 0; margin: 0; }
.ticket-list a { display: flex; flex-direction: column; gap: 3px; padding: .8rem 0; border-bottom: 1px solid var(--line); color: var(--text); }
.ticket-list .status { align-self: flex-start; }
.faq details { border-bottom: 1px solid var(--line); padding: .7rem 0; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { color: var(--muted); margin: .5rem 0 0; }
.ticket-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; }
.ticket-head h1, .ticket-head h2 { margin: 0; }
.thread { display: flex; flex-direction: column; gap: 12px; margin: 18px 0; }
.msg { padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); max-width: 88%; }
.msg-user { align-self: flex-start; }
.msg-staff { align-self: flex-end; background: linear-gradient(135deg, rgba(99, 102, 241, .22), rgba(139, 92, 246, .16)); border-color: rgba(139, 92, 246, .45); }
.msg-head { display: flex; gap: .6rem; align-items: center; margin-bottom: 6px; flex-wrap: wrap; }
.msg-body p:last-child { margin: 0; }
.msg-attach img { max-height: 200px; border-radius: 8px; margin-top: 8px; }

/* Community */
.leaderboard { list-style: none; padding: 0; margin: 0; }
.leaderboard li { display: flex; align-items: center; gap: 12px; padding: .65rem 0; border-bottom: 1px solid var(--line); }
.rank { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; background: rgba(255, 255, 255, .06); font-weight: 800; font-size: .85rem; }
.top-1 .rank { background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #1c1100; }
.top-2 .rank { background: linear-gradient(135deg, #e2e8f0, #94a3b8); color: #111; }
.top-3 .rank { background: linear-gradient(135deg, #fdba74, #c2410c); color: #1c0a00; }
.lb-name { flex: 1; display: flex; flex-direction: column; }
.how-list { padding-left: 1.2rem; margin: 0; display: flex; flex-direction: column; gap: .7rem; }
.how-list li strong { display: block; }
.how-list li span { color: var(--muted); font-size: .9rem; }
.avatars-row { display: flex; flex-wrap: wrap; gap: 6px; }

/* About */
.about-hero { min-height: 440px; background-size: cover; background-position: center top; display: flex; align-items: flex-end; padding: 60px 0 30px;
  background-image: radial-gradient(600px 300px at 50% 30%, rgba(139, 92, 246, .35), transparent), linear-gradient(180deg, transparent, var(--bg)); }
.about-hero-inner { text-align: center; }
.about-name { font-family: var(--font-display); font-size: clamp(2rem, 6vw, 4rem); text-shadow: 0 0 30px rgba(165, 180, 252, .7); margin-bottom: .2rem; }
.about-role { font-family: var(--font-display); letter-spacing: .2em; color: #5eead4; text-shadow: 0 0 16px rgba(45, 212, 191, .7); font-size: clamp(.95rem, 2vw, 1.4rem); }
.about-hero .creator-actions { justify-content: center; }

/* Donazioni / join */
.donate-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-bottom: 16px; }
.donate-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; color: var(--text); }
.donate-card > .ico { width: 40px; height: 40px; color: var(--cyan); }
.donate-card.paypal { border-color: rgba(96, 165, 250, .55); }
.donate-card span { color: var(--muted); font-size: .88rem; }
.donate-card .btn { margin-top: 6px; color: #fff; }
.iban { font-size: .85rem; background: #050918; padding: .4rem .6rem; border-radius: 6px; word-break: break-all; }
.join-card { text-align: center; max-width: 420px; margin: 0 auto 18px; background: #fff; color: #111827; border: 0; }
.join-brand { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 14px; }
.join-brand .brand-name { background: linear-gradient(90deg, #0891b2, #6366f1, #a855f7); -webkit-background-clip: text; background-clip: text; }
.join-card .qr-box { box-shadow: none; padding: 0; }
.join-cta { font-weight: 700; margin: 14px 0 6px; }
.join-link { font-size: .8rem; color: #4338ca; word-break: break-all; }
.join-card .muted { color: #4b5563; }
.error-page { padding: 60px 20px; }
.app-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.app-card { display: flex; flex-direction: column; gap: 10px; }
.app-card h2 { margin: 0; }
.app-ico { width: 40px; height: 40px; color: var(--cyan); }
.app-card .btn small { font-weight: 500; opacity: .85; }
.howto summary { cursor: pointer; font-weight: 600; color: #c7d2fe; }
.howto ol { margin: .6rem 0 0; padding-left: 1.2rem; color: var(--muted); font-size: .9rem; display: flex; flex-direction: column; gap: .3rem; }
.app-qr { margin-top: 18px; }
.app-banner { display: flex; align-items: center; gap: 16px; padding: 18px 22px; border-radius: var(--radius); color: var(--text);
  background: linear-gradient(135deg, rgba(34, 211, 238, .16), rgba(99, 102, 241, .16)); border: 1px solid rgba(103, 232, 249, .4); }
.app-banner > .ico { width: 40px; height: 40px; color: var(--cyan); }
.app-banner div { flex: 1; }
.app-banner strong { display: block; }
.app-banner span { color: var(--muted); font-size: .88rem; }
.app-banner:hover { color: var(--text); border-color: var(--cyan); }
@media (max-width: 680px) { .app-grid { grid-template-columns: 1fr; } .app-banner { flex-wrap: wrap; } }
.error-code { font-family: var(--font-display); font-size: 5rem; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; display: block; }
.free-badge { display: inline-flex; align-items: center; gap: .4rem; font-size: .8rem; font-weight: 700; color: #6ee7b7; border: 1px solid rgba(52, 211, 153, .4); padding: .3rem .7rem; border-radius: 999px; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 50px; border-top: 1px solid var(--line); background: rgba(5, 8, 22, .7); padding-top: 34px; }
.footer-top { display: grid; grid-template-columns: 1.2fr 2fr; gap: 30px; padding-bottom: 26px; }
.footer-brand p { color: var(--muted); max-width: 360px; margin: 14px 0; font-size: .9rem; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.footer-cols h4 { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: #c7d2fe; }
.footer-cols a { display: block; color: var(--muted); padding: .25rem 0; font-size: .9rem; }
.footer-cols a:hover { color: #fff; }
.footer-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 16px 20px; border-top: 1px solid var(--line); }
.footer-motto { font-size: .75rem; letter-spacing: .3em; color: #a5b4fc; }
.footer-motto .heart { color: var(--pink); }
.socials { display: flex; gap: 14px; }
.socials a { color: #cdd5f7; }
.socials a:hover { color: var(--cyan); }
.socials .ico { width: 20px; height: 20px; }
.footer-links { display: flex; align-items: center; gap: 16px; font-size: .85rem; }
.footer-links > a { color: var(--muted); }
.copyright { font-size: .78rem; color: #6b74a0; padding: 0 20px 22px; }

/* Barra di navigazione inferiore (mobile / PWA) */
.tabbar { display: none; }

/* Toast installazione PWA */
.install-toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(16px + var(--tabbar-h) + env(safe-area-inset-bottom)); z-index: 85;
  display: flex; align-items: center; gap: 12px; width: min(520px, calc(100vw - 24px)); padding: 12px 14px; border-radius: 16px; background: var(--panel-solid); border: 1px solid var(--line-2); box-shadow: var(--shadow); }
.install-toast[hidden] { display: none; }
.install-toast img { border-radius: 10px; }
.install-toast div { flex: 1; display: flex; flex-direction: column; }
.install-toast small { color: var(--muted); font-size: .78rem; }

/* ---------- Admin ---------- */
.admin-body { display: flex; min-height: 100vh; padding-bottom: 0; }
.admin-side { width: 250px; flex: none; position: sticky; top: 0; height: 100vh; overflow-y: auto; background: rgba(5, 8, 22, .85); border-right: 1px solid var(--line); padding: 18px 12px; display: flex; flex-direction: column; gap: 18px; }
.admin-side nav, .admin-side-foot { display: flex; flex-direction: column; gap: 2px; }
.admin-side nav a, .admin-side-foot a, .admin-side-foot button { display: flex; align-items: center; gap: .7rem; padding: .65rem .8rem; border-radius: 10px; color: #cdd5f7; background: none; border: 0; font: inherit; cursor: pointer; text-align: left; width: 100%; }
.admin-side nav a:hover, .admin-side-foot a:hover, .admin-side-foot button:hover { background: rgba(255, 255, 255, .05); }
.admin-side nav a.active { background: var(--grad-soft); color: #fff; box-shadow: inset 3px 0 0 var(--cyan); }
.admin-side .count { margin-left: auto; background: var(--magenta); color: #fff; font-size: .72rem; border-radius: 999px; padding: .05rem .5rem; }
.admin-side-foot { margin-top: auto; border-top: 1px solid var(--line); padding-top: 12px; }
.admin-side-foot form { margin: 0; }
.admin-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.admin-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 18px 26px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: rgba(6, 10, 28, .85); backdrop-filter: blur(10px); z-index: 10; }
.admin-top h1 { margin: 0; font-size: 1.4rem; }
.admin-content { padding: 22px 26px; flex: 1; }
.admin-content .flash-stack { margin: 0; }
.admin-foot { padding: 14px 26px; font-size: .78rem; color: var(--muted); }
.admin-body .flash-stack.static { margin: 16px 26px 0; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.kpi { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; }
.kpi span { font-size: .78rem; color: var(--muted); }
.kpi strong { font-size: 1.7rem; font-weight: 800; }
.kpi small { color: var(--muted); font-size: .74rem; }
.admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 16px; align-items: start; }
.admin-grid > .panel { margin: 0; }
.bar-chart { display: flex; align-items: flex-end; gap: 3px; height: 170px; padding-top: 16px; }
.bar { flex: 1; background: linear-gradient(180deg, #22d3ee, #6366f1); border-radius: 4px 4px 0 0; position: relative; min-width: 4px; }
.bar span { position: absolute; top: -16px; left: 50%; transform: translateX(-50%); font-size: .6rem; color: var(--muted); }
.bar:hover { filter: brightness(1.3); }
.bar-labels { display: flex; justify-content: space-between; font-size: .75rem; color: var(--muted); margin-top: 6px; }
.sponsor-cell { display: flex; align-items: center; gap: 10px; }
.sponsor-cell img { width: 44px; height: 44px; object-fit: contain; border-radius: 6px; background: #fff; }
.message.unread { border-color: rgba(217, 70, 239, .55); }
.inline-form { flex-direction: row; flex-wrap: wrap; align-items: flex-end; margin-bottom: 12px; }
.inline-form label { flex: 1 1 140px; }

/* ---------- Responsive ---------- */
@media (max-width: 1440px) {
  .main-nav a { padding: .5rem .5rem; font-size: .88rem; }
  .header-search { display: none; } /* su schermi medi lo spazio va al menu; la ricerca resta nella pagina Progetti */
  .cards-5 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1180px) {
  .main-nav, .header-search { display: none; }
  .header-actions { margin-left: auto; }
  .burger { display: block; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; min-height: 0; max-width: 520px; margin: 0 auto; width: 100%; }
  .stats-row { grid-template-columns: 1fr; }
  .company-box { max-width: none; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step:nth-child(3) { border-left: 0; }
  .step:nth-child(n+3) { border-top: 1px solid var(--line); }
  .cards-4 { grid-template-columns: repeat(3, 1fr); }
  .project-layout { grid-template-columns: minmax(0, 1fr); }
  .project-side { position: static; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  :root { --tabbar-h: 64px; --header-h: 62px; }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
    height: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
    background: rgba(6, 10, 28, .94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
  .tabbar a, .tabbar button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--muted); font: 600 .68rem var(--font); background: none; border: 0; cursor: pointer; }
  .tabbar .ico { width: 22px; height: 22px; }
  .tabbar a.active { color: var(--cyan); }
  .tab-share { color: #fff !important; }
  .tab-share .ico { width: 44px !important; height: 44px !important; padding: 10px; border-radius: 50%; background: var(--grad); margin-top: -22px; box-shadow: 0 6px 20px rgba(99, 102, 241, .6); }
  .community-cta, .creator-band, .dash-grid, .dash-head, .footer-top, .who-grid { grid-template-columns: 1fr; }
  .creator-photo { min-height: 240px; }
  .creator-photo::after { background: linear-gradient(180deg, transparent 60%, rgba(15, 23, 54, .9)); }
  .hero-features { grid-template-columns: repeat(3, 1fr); row-gap: 14px; }
  .hero-features li:nth-child(4) { border-left: 0; }
  .hero-features li:nth-child(4) a, .hero-features li:nth-child(4) button { padding-left: 0; }
  .hero-quote { position: static; max-width: none; text-align: center; margin-top: -10px; }
  .hero-script { right: 0; bottom: 22%; font-size: 1.5rem; }
  .admin-body { flex-direction: column; }
  .admin-side { width: 100%; height: auto; position: static; flex-direction: row; align-items: center; padding: 10px; gap: 10px; overflow-x: auto; }
  .admin-side .brand-text { display: none; }
  .admin-side nav { flex-direction: row; }
  .admin-side nav a span, .admin-side-foot a span, .admin-side-foot button span { display: none; }
  .admin-side-foot { flex-direction: row; margin: 0 0 0 auto; border: 0; padding: 0; }
  .admin-top, .admin-content { padding-left: 14px; padding-right: 14px; }
  .flash-stack { top: auto; bottom: calc(var(--tabbar-h) + 16px + env(safe-area-inset-bottom)); left: 12px; right: 12px; max-width: none; }
}
@media (max-width: 680px) {
  body { font-size: 14.5px; }
  .container { padding: 0 14px; }
  .hide-sm { display: none !important; }
  .brand-name { font-size: 1.2rem; }
  .brand-tag { font-size: .5rem; }
  .hero { padding-top: 16px; }
  .hero-logo { gap: 12px; }
  .hero-cta .btn { flex: 1 1 100%; }
  .stat { flex: 1 1 45%; border-left: 0; padding: 8px 12px; }
  .stats-bar { padding: 8px 4px; }
  .company-box { flex-wrap: wrap; }
  .cards-5, .cards-4 { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .card-body { padding: 10px 12px; }
  .card-body p { display: none; }
  .card-body h3 { font-size: .92rem; }
  .card-stats { gap: .6rem; font-size: .72rem; }
  .steps { grid-template-columns: 1fr; }
  .step { border-left: 0; border-top: 1px solid var(--line); }
  .step:first-child { border-top: 0; }
  .cta-qr { flex-direction: column; text-align: center; }
  .donate-band { flex-direction: column; text-align: center; }
  .donate-band .btn { margin: 0; }
  .form-2, .form-3 { grid-template-columns: 1fr; }
  .filters select { flex: 1 1 45%; min-width: 0; }
  .panel { padding: 16px; }
  .auth-card { padding: 22px; }
  .earn-stats, .how-grid { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-bar { flex-direction: column; align-items: flex-start; }
  .project-stats { grid-template-columns: repeat(2, 1fr); }
  .share-grid { grid-template-columns: repeat(3, 1fr); }
  .msg { max-width: 100%; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .kpi strong { font-size: 1.3rem; }
  .table { font-size: .82rem; }
  .points-pill { padding: .3rem .55rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  body { background: #fff; padding: 0; }
  .site-header, .site-footer, .tabbar, .form-actions, .install-toast, .center-head, .flash-stack, .drawer { display: none !important; }
  .join-card { box-shadow: none; }
}

/* ---------- Manuali gratuiti su richiesta (in evidenza) ---------- */
.nav-hot { color: #fde68a !important; }
.nav-badge { display: inline-block; margin-left: .3rem; padding: .05rem .4rem; border-radius: 999px; font-size: .6rem; font-weight: 800; letter-spacing: .08em; color: #052e16; background: linear-gradient(90deg, #4ade80, #22d3ee); vertical-align: middle; }
.manual-spotlight { position: relative; display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px; align-items: center; margin-top: 34px; padding: 34px 32px; border-radius: 24px; overflow: hidden;
  background: linear-gradient(135deg, rgba(34, 211, 238, .22), rgba(99, 102, 241, .25) 45%, rgba(217, 70, 239, .22)); border: 1px solid rgba(34, 211, 238, .45); box-shadow: 0 24px 70px rgba(34, 211, 238, .18); }
.manual-spotlight::before { content: ''; position: absolute; width: 360px; height: 360px; right: -120px; top: -140px; border-radius: 50%; background: radial-gradient(circle, rgba(34, 211, 238, .45), transparent 70%); pointer-events: none; }
.manual-spotlight h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1.15; margin: .4rem 0 .6rem; }
.manual-spotlight p { color: #dbe3ff; max-width: 620px; }
.manual-spot-text { position: relative; }
.spot-tag { position: static; display: inline-block; margin-bottom: 10px; background: linear-gradient(90deg, #4ade80, #22d3ee); color: #052e16; }
.spot-points { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 18px; }
.spot-points span { display: inline-flex; align-items: center; gap: .35rem; padding: .4rem .8rem; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); font-size: .88rem; }
.spot-points b { color: #4ade80; }
.spot-points .ico { width: 16px; height: 16px; }
.manual-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.manual-spot-art { display: flex; justify-content: center; position: relative; }
.spot-book { width: 190px; height: 240px; border-radius: 10px 18px 18px 10px; padding: 26px 20px; display: flex; flex-direction: column; gap: 12px; transform: rotate(-6deg);
  background: linear-gradient(160deg, #1e293b, #0f1736); border: 1px solid rgba(34, 211, 238, .6); border-left: 10px solid #22d3ee; box-shadow: 0 30px 60px rgba(0, 0, 0, .45), 0 0 40px rgba(34, 211, 238, .25); animation: spot-float 5s ease-in-out infinite; }
.spot-book .ico { width: 44px; height: 44px; color: #22d3ee; }
.spot-book span { font-weight: 800; font-size: 1.1rem; }
.spot-book i { display: block; height: 7px; border-radius: 4px; background: rgba(255, 255, 255, .16); }
.spot-book i:nth-of-type(2) { width: 80%; } .spot-book i:nth-of-type(3) { width: 60%; }
@keyframes spot-float { 0%, 100% { transform: rotate(-6deg) translateY(0); } 50% { transform: rotate(-4deg) translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .spot-book { animation: none; } }
@media (max-width: 800px) { .manual-spotlight { grid-template-columns: 1fr; padding: 26px 20px; } .manual-spot-art { display: none; } .manual-actions .btn { flex: 1 1 100%; } }
.manual-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 18px; }
.manual-step { position: relative; display: flex; flex-direction: column; gap: 6px; margin: 0; }
.manual-step .ico { width: 30px; height: 30px; color: var(--cyan); }
.manual-step h3 { margin: 0; font-size: 1.1rem; }
.manual-step p { margin: 0; font-size: .9rem; }
.step-num { position: absolute; top: 12px; right: 14px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--grad); }
.how-grid-4 { grid-template-columns: repeat(4, 1fr); }
.manual-examples .chip { cursor: default; }
.manual-examples .chip .ico { width: 14px; height: 14px; color: #4ade80; }
@media (max-width: 800px) { .manual-steps, .how-grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .manual-steps { grid-template-columns: 1fr; } }
.unlock-list { list-style: none; padding: 0; margin: 0 0 10px; display: grid; gap: 10px; }
.unlock-list li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.unlock-list li > span:nth-child(2) { flex: 1; font-weight: 600; }
.unlock-list .unlock-ico { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(34, 211, 238, .12); color: var(--cyan); flex: none; }
.unlock-list .unlock-ico .ico { width: 18px; height: 18px; }
.unlock-list li.done { border-color: rgba(74, 222, 128, .5); background: rgba(74, 222, 128, .08); }
.unlock-list li.done .unlock-ico { background: #22c55e; color: #052e16; }
.unlock-list li.done b { color: #4ade80; }

/* Pagina App: scelta del dispositivo e istruzioni passo passo. © Roberto Di Flumeri */
.install-toast .install-howto { font-size: .78rem; font-weight: 600; color: #a5b4fc; margin-top: 2px; }
.install-toast .install-howto:hover { color: #fff; }
.device-pick { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin: 0 0 18px; }
.device-list { display: flex; flex-direction: column; gap: 16px; }
.device-list .app-card { position: relative; scroll-margin-top: 90px; }
.device-list .app-card h2 { display: flex; align-items: center; gap: .5rem; }
.device-list .app-card h3 { margin: .6rem 0 0; font-size: 1rem; }
.device-you { display: none; position: absolute; top: 14px; right: 14px; align-items: center; gap: .3rem; padding: .25rem .65rem; border-radius: 999px; background: var(--grad); color: #fff; font-size: .75rem; font-weight: 700; }
.device-you .ico { width: 14px; height: 14px; }
.app-card.is-you { border-color: #818cf8; box-shadow: 0 0 0 1px #818cf8, 0 12px 40px rgba(99, 102, 241, .25); }
.app-card.is-you .device-you { display: inline-flex; }
.steps { margin: 0; padding-left: 1.3rem; display: flex; flex-direction: column; gap: .45rem; color: #cdd5f7; }
.steps b { color: #fff; }
.ios-share { display: inline-flex; vertical-align: -3px; padding: 1px 4px; border-radius: 6px; background: rgba(255, 255, 255, .1); color: #60a5fa; }
@media (max-width: 560px) { .device-you { position: static; align-self: flex-start; } }

/* Telefono: nessun elemento può allargare la pagina oltre lo schermo. © Roberto Di Flumeri */
.project-main, .project-side, .project-layout > * { min-width: 0; }
.code-block { min-width: 0; max-width: 100%; }
.prose { overflow-wrap: anywhere; }
img, video, iframe { max-width: 100%; }
@media (max-width: 700px) { .code-block { padding-top: 46px; } }
