/* SevenWeb - design system v2 "Blu Molecola" (vedi DESIGN.md) */

:root {
  --bg: #0a0e14;
  --bg-2: #0e141d;
  --surface: rgba(255, 255, 255, 0.05);
  --surface-2: rgba(255, 255, 255, 0.09);
  --glass: rgba(18, 26, 38, 0.55);
  --glass-strong: rgba(22, 32, 46, 0.72);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f2f5f9;
  --muted: #9aa7b6;
  --subtle: #6b7684;

  /* accento brand: blu dal logo. Le pagine app lo ridefiniscono via body[data-app]. */
  --accent: #1e88d2;
  --accent-2: #38b6f0;
  --accent-deep: #1567a8;
  --accent-ink: #04101c;
  --accent-dim: rgba(30, 136, 210, 0.14);
  --accent-glow: rgba(30, 136, 210, 0.35);
  --accent-border: rgba(30, 136, 210, 0.45);
  --grad-brand: linear-gradient(120deg, var(--accent), var(--accent-2));

  /* riservati: rosso molecola (micro-dettagli), ambra Ko-fi */
  --red: #e03a3e;
  --amber: #f5b14c;

  --radius: 20px;
  --radius-sm: 12px;
  --max: 1120px;
  --space-page: 24px;
  --section-y: 56px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 180ms;
  --dur-med: 420ms;
  --display: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, sans-serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* accent per-app */
body[data-app="respiro"] {
  --accent: #34c87e;
  --accent-2: #5fe0a2;
  --accent-deep: #1f9d58;
  --accent-ink: #08110b;
  --accent-dim: rgba(52, 200, 126, 0.16);
  --accent-glow: rgba(52, 200, 126, 0.3);
  --accent-border: rgba(52, 200, 126, 0.45);
  --grad-brand: linear-gradient(120deg, var(--accent), var(--accent-2));
}

body[data-app="sveglione"] {
  --accent: #8b6cf0;
  --accent-2: #b69cff;
  --accent-deep: #6b4ed4;
  --accent-ink: #120a24;
  --accent-dim: rgba(139, 108, 240, 0.18);
  --accent-glow: rgba(139, 108, 240, 0.35);
  --accent-border: rgba(139, 108, 240, 0.45);
  --grad-brand: linear-gradient(120deg, var(--accent), var(--accent-2));
}

/* il chrome (nav, footer, Ko-fi flottante) resta blu brand anche nelle pagine app */
body[data-app] header,
body[data-app] footer,
body[data-app] .kofi-float {
  --accent: #1e88d2;
  --accent-2: #38b6f0;
  --accent-deep: #1567a8;
  --accent-ink: #04101c;
  --accent-dim: rgba(30, 136, 210, 0.14);
  --accent-glow: rgba(30, 136, 210, 0.35);
  --accent-border: rgba(30, 136, 210, 0.45);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

main { padding-bottom: 96px; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: var(--space-page);
}

/* ---------- Aurora shader WebGL ---------- */
#aurora-shader {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  opacity: 0.5;
  pointer-events: none;
  display: block;
}

/* ---------- Aurora animata (fallback CSS) ---------- */
.aurora {
  position: fixed;
  inset: -20% -10% -10% -10%;
  z-index: -3;
  pointer-events: none;
  filter: blur(90px);
  opacity: 0.85;
}
.aurora span {
  position: absolute;
  display: block;
  border-radius: 50%;
  will-change: transform;
}
.aurora .a1 { width: 46vw; height: 46vw; left: 60%; top: -8%; background: radial-gradient(circle, rgba(30, 136, 210, 0.22), transparent 65%); animation: drift1 24s ease-in-out infinite; }
.aurora .a2 { width: 40vw; height: 40vw; left: -6%; top: 55%; background: radial-gradient(circle, rgba(56, 182, 240, 0.16), transparent 65%); animation: drift2 30s ease-in-out infinite; }
.aurora .a3 { width: 30vw; height: 30vw; left: 30%; top: 25%; background: radial-gradient(circle, rgba(14, 75, 140, 0.18), transparent 70%); animation: drift3 34s ease-in-out infinite; }

@keyframes drift1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-8%, 10%) scale(1.15); } }
@keyframes drift2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(10%, -8%) scale(1.1); } }
@keyframes drift3 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(6%, 6%) scale(0.9); } }

a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }

/* ---------- Navbar ---------- */
header {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(10, 14, 20, 0.7);
}
nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { font-family: var(--display); font-weight: 700; font-size: 1.25rem; letter-spacing: -0.02em; color: var(--text); display: inline-flex; align-items: center; gap: 8px; }
.logo:hover { text-decoration: none; }
.logo span { color: var(--accent-2); }
.logo .logo-img { width: 34px; height: 34px; display: block; filter: drop-shadow(0 2px 10px rgba(4, 10, 20, 0.6)); transition: transform var(--dur-fast) var(--ease-out); }
.logo:hover .logo-img { transform: rotate(-8deg) scale(1.08); }

.nav-links { display: flex; align-items: center; gap: 22px; font-size: 0.92rem; }
.nav-links a { color: var(--muted); }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-links a.kofi { color: var(--amber); }

.lang-toggle {
  font-family: var(--body);
  font-size: 0.78rem; font-weight: 600;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 10px;
  cursor: pointer;
  letter-spacing: 0.03em;
  transition: color var(--dur-fast), border-color var(--dur-fast);
}
.lang-toggle:hover { color: var(--text); border-color: var(--border-strong); }
.lang-toggle b { color: var(--accent-2); }

/* ---------- Hero: scena stratificata ---------- */
.hero { padding-block: 56px 40px; }
.page-hero { padding-block: 40px 8px; }
.page-hero h1 { font-family: var(--display); font-size: clamp(2rem, 4.5vw, 3rem); letter-spacing: -0.03em; margin-bottom: 12px; }
main.wrap > section + section { padding-top: 24px; padding-bottom: var(--section-y); }

.hero-stage { position: relative; min-height: 520px; display: flex; align-items: center; }
#molecule-net {
  position: absolute; top: -48px; left: -12%;
  width: 124%; height: calc(100% + 96px);
  z-index: 0; pointer-events: none;
}
.hero-visual {
  position: absolute; right: -6%; top: 50%; transform: translateY(-50%);
  z-index: 1;
}
.hero-visual .logo-3d { width: clamp(340px, 36vw, 500px); margin: 0; }
.hero-visual .fee-widget {
  position: absolute; left: -12%; bottom: 2%;
  margin: 0; transform: rotate(-7deg);
}
.hero-visual .fee-widget:hover { transform: rotate(-2deg); }
.hero-copy { position: relative; z-index: 2; max-width: 660px; }

.hero h1 {
  font-family: var(--display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin-bottom: 20px;
  text-wrap: balance;
  text-shadow: 0 2px 40px rgba(4, 10, 20, 0.85);
}
.hero h1 em { color: var(--accent-2); font-style: normal; }
.hero h1.grad { background: linear-gradient(105deg, var(--text) 40%, var(--accent-2) 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.hero .lead { font-size: 1.12rem; color: var(--muted); max-width: 52ch; margin-bottom: 26px; text-shadow: 0 1px 20px rgba(4, 10, 20, 0.9); }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }

/* gag canone - widget vetro ruotato */
.fee-widget {
  display: flex; flex-direction: column; align-items: flex-start;
  width: fit-content; max-width: 100%; margin-inline: auto;
  padding: 16px 20px; border-radius: var(--radius);
  background: var(--glass);
  backdrop-filter: blur(20px) saturate(160%); -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--border-strong);
  transform: rotate(2deg); transition: transform var(--dur-med) var(--ease-out);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), 0 16px 48px rgba(4, 10, 20, 0.45); cursor: default;
}
.fee-widget:hover { transform: rotate(0deg); }
.fee-widget .lbl { font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); margin-bottom: 4px; }
.fee-widget .fee { font-family: var(--display); font-weight: 800; font-size: 2rem; color: var(--accent-2); font-variant-numeric: tabular-nums; line-height: 1.1; }
.fee-widget .fee-note { font-size: 0.8rem; color: var(--muted); font-style: italic; margin-top: 8px; }

.trust { display: flex; flex-wrap: wrap; gap: 8px 26px; margin-top: 10px; }
.trust span { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }

/* ---------- Divisore molecola (firma di brand) ---------- */
.molecule-divider { display: flex; justify-content: center; padding-block: 8px; color: var(--accent); }
.molecule-divider svg { width: 220px; height: 28px; display: block; }

/* ---------- Feature band (app in evidenza, senza bordi) ---------- */
.feature-band {
  display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: center;
  padding: 40px 44px; border-radius: 28px;
  background:
    radial-gradient(140% 180% at 0% 0%, var(--accent-dim), transparent 55%),
    var(--bg-2);
  box-shadow: 0 30px 80px -40px rgba(4, 10, 20, 0.9);
  transition: transform var(--dur-med) var(--ease-out), box-shadow var(--dur-med) var(--ease-out);
  transform-style: preserve-3d;
}
.feature-band:hover { transform: translateY(-3px); box-shadow: 0 40px 90px -40px var(--accent-glow); }
.feature-band .fb-media img { width: 120px; height: 120px; display: block; filter: drop-shadow(0 18px 36px rgba(4, 10, 20, 0.6)); }
.feature-band h3 { font-family: var(--display); font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -0.02em; margin-bottom: 8px; }
.feature-band .fb-pitch { color: var(--muted); font-size: 1.02rem; max-width: 56ch; margin-bottom: 20px; }
.feature-band .fb-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; }
.feature-band .fb-specs { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.06em; color: var(--subtle); font-variant-numeric: tabular-nums; }

/* ---------- Lab list (progetti in corso, righe tipografiche) ---------- */
.lab-list { margin-top: 36px; }
.lab-row {
  display: grid; grid-template-columns: 14px 160px 1fr auto; gap: 16px; align-items: baseline;
  padding: 18px 4px; border-top: 1px solid var(--border);
}
.lab-row:last-child { border-bottom: 1px solid var(--border); }
.lab-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); align-self: center; animation: blinkdot 2.2s ease-in-out infinite; }
.lab-name { font-family: var(--display); font-weight: 700; font-size: 1.02rem; color: var(--text); }
.lab-note { color: var(--muted); font-size: 0.92rem; line-height: 1.55; }
.lab-meta { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--subtle); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ---------- Logo 3D (PNG piatto, profondita simulata) ---------- */
.logo-3d { perspective: 900px; position: relative; width: min(280px, 68%); margin-inline: auto; }
.logo-3d .plate {
  position: relative; display: block; width: 100%;
  transform-style: preserve-3d;
  transition: transform 120ms linear;
  animation: logoIdle 9s ease-in-out infinite;
  filter: drop-shadow(0 24px 48px var(--accent-glow));
  will-change: transform;
}
.logo-3d.is-tracking .plate { animation-play-state: paused; }
.logo-3d .plate img { width: 100%; height: auto; display: block; }
.logo-3d .plate::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 42%, rgba(255, 255, 255, 0.38) 50%, transparent 58%);
  background-size: 250% 100%; background-position: 130% 0;
  -webkit-mask-image: url("/assets/sevenweb-logo.png"); mask-image: url("/assets/sevenweb-logo.png");
  -webkit-mask-size: contain; mask-size: contain;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
  animation: logoSheen 6s ease-in-out infinite;
  pointer-events: none;
}
.logo-3d .logo-shadow {
  position: absolute; left: 50%; bottom: -28px; transform: translateX(-50%);
  width: 70%; height: 26px; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(4, 10, 20, 0.55), transparent 70%);
  filter: blur(6px);
  transition: transform var(--dur-med) var(--ease-out), opacity var(--dur-med) var(--ease-out);
}
.logo-3d.is-tracking .logo-shadow { transform: translateX(-50%) scaleX(0.85); opacity: 0.7; }
@keyframes logoIdle {
  0%, 100% { transform: rotateY(-6deg) rotateX(2deg); }
  50% { transform: rotateY(6deg) rotateX(-2deg); }
}
@keyframes logoSheen {
  0%, 62% { background-position: 130% 0; }
  78%, 100% { background-position: -40% 0; }
}
/* 404: logo "caduto" */
.logo-3d.fallen { width: min(220px, 60vw); }
.logo-3d.fallen .plate { animation: none; transform: rotateX(32deg) rotateY(-16deg) rotateZ(-8deg); }
.logo-3d.fallen .logo-shadow { transform: translateX(-50%) scaleX(1.15); opacity: 0.9; }

/* ---------- Mascotte SVG (pagine Respiro) ---------- */
.mascot-wrap { position: relative; display: flex; flex-direction: column; justify-content: flex-start; align-items: center; width: 100%; }
.mascot-wrap .fee-widget { margin-top: 12px; z-index: 2; transform-origin: center center; }
.mascot { width: min(300px, 74%); height: auto; }
.mascot .body { transform-box: fill-box; transform-origin: center; animation: breathe 4.2s ease-in-out infinite; }
.mascot .eye { transform-box: fill-box; transform-origin: center; animation: blink 6s infinite; }
.mascot .spark { transform-box: fill-box; transform-origin: center; animation: twinkle 2.6s ease-in-out infinite; }
@keyframes breathe { 0%,100% { transform: scale(1) translateY(0); } 50% { transform: scale(1.035) translateY(-4px); } }
@keyframes blink { 0%,92%,100% { transform: scaleY(1); } 96% { transform: scaleY(0.1); } }
@keyframes twinkle { 0%,100% { transform: scale(1); opacity: 0.9; } 50% { transform: scale(1.4); opacity: 0.4; } }
.mascot-wrap:hover .body { animation-duration: 1.8s; }

/* ---------- Sezioni ---------- */
section { padding-block: var(--section-y); }
.section-head { margin-bottom: 26px; }
.section-head h2 { font-family: var(--display); font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -0.02em; }
.section-head p { color: var(--muted); margin-top: 6px; }

/* ---------- Filtri ---------- */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.chip {
  font-size: 0.82rem; font-weight: 600; color: var(--muted);
  padding: 8px 16px; border-radius: 999px;
  background: var(--surface-2); border: none;
  cursor: pointer; transition: all var(--dur-fast);
}
.chip:hover { color: var(--text); }
.chip.active { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }

/* ---------- Grid & Card ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--glass);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
  transition: transform var(--dur-med) var(--ease-out), border-color var(--dur-med) var(--ease-out), box-shadow var(--dur-med) var(--ease-out);
  transform-style: preserve-3d;
}
.card:hover { transform: translateY(-4px); border-color: var(--accent-border); box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), 0 20px 60px -24px var(--accent-glow); }
.card.ghost { opacity: 0.65; border-style: dashed; backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--surface); }
.card.featured { border-color: var(--accent-border); background: linear-gradient(160deg, var(--accent-dim), var(--glass)); }
.card img.icon { width: 60px; height: 60px; border-radius: var(--radius-sm); margin-bottom: 14px; display: block; object-fit: contain; }
.card .icon-badge { width: 60px; height: 60px; border-radius: var(--radius-sm); margin-bottom: 14px; display: flex; align-items: center; justify-content: center; }
.card h3 { font-family: var(--display); font-size: 1.25rem; margin-bottom: 6px; }
.card p { font-size: 0.94rem; color: var(--muted); margin-bottom: 16px; }
.card > .btn { margin-top: auto; align-self: flex-start; }

.pills { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.pill { font-size: 0.68rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; padding: 4px 9px; border-radius: 7px; background: var(--accent-dim); color: var(--accent-2); }
.pill.soon { background: rgba(255,255,255,0.08); color: var(--muted); }

/* ---------- Bottoni ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px;
  font-family: var(--body); font-weight: 600; font-size: 0.95rem; line-height: 1.2;
  background-image: var(--grad-brand);
  background-size: 160% 100%; background-position: 0% 0;
  color: var(--accent-ink);
  border: none; cursor: pointer; text-align: center;
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), background-position var(--dur-med) var(--ease-out);
  box-shadow: 0 10px 30px -12px var(--accent-glow);
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; display: block; fill: currentColor; }
.btn:hover { transform: scale(1.03); background-position: 90% 0; text-decoration: none; box-shadow: 0 14px 36px -12px var(--accent-glow); }
.btn:active { transform: scale(0.97); }
.btn.secondary { background-image: none; background-color: transparent; color: var(--text); border: 1px solid var(--border-strong); box-shadow: none; }
.btn.secondary:hover { border-color: var(--accent); color: var(--accent-2); }
.btn.kofi { background-image: none; background-color: var(--amber); color: #241603; box-shadow: 0 10px 30px -12px rgba(245,177,76,0.7); }

/* vapore caffe */
.steam { position: relative; display: inline-block; width: 16px; height: 16px; }
.steam i { position: absolute; bottom: 2px; width: 3px; height: 10px; border-radius: 3px; background: currentColor; opacity: 0; animation: steam 2.4s ease-in-out infinite; }
.steam i:nth-child(1){ left: 3px; animation-delay: 0s; }
.steam i:nth-child(2){ left: 8px; animation-delay: 0.5s; }
.steam i:nth-child(3){ left: 13px; animation-delay: 1s; }
@keyframes steam { 0% { opacity: 0; transform: translateY(0) scaleY(0.6); } 40% { opacity: 0.7; } 100% { opacity: 0; transform: translateY(-12px) scaleY(1.2); } }

/* ---------- Ko-fi banner ---------- */
.donate-banner {
  display: flex; flex-direction: column; align-items: center;
  margin: 0; padding: 48px 28px; border-radius: 28px;
  background: radial-gradient(120% 160% at 50% 0%, rgba(245,177,76,0.16), transparent 60%), var(--bg-2);
  box-shadow: 0 30px 80px -40px rgba(4, 10, 20, 0.9);
  text-align: center;
}
.donate-banner h2 { font-family: var(--display); font-size: 1.8rem; margin-bottom: 8px; }
.donate-banner p { color: var(--muted); margin: 0 auto 20px; max-width: 500px; }

/* ---------- App page ---------- */
.app-hero { display: flex; flex-wrap: wrap; align-items: center; gap: 32px; padding: 64px 0 40px; }
.app-hero .app-icon { width: 120px; height: 120px; border-radius: 28px; }
.app-hero h1 { font-family: var(--display); font-size: clamp(2.2rem, 5vw, 3.2rem); letter-spacing: -0.03em; }
.app-hero .tagline { color: var(--muted); font-size: 1.15rem; margin: 8px 0 16px; }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.feature { padding: 20px; border-radius: var(--radius-sm); background: var(--bg-2); transition: background var(--dur-fast), transform var(--dur-fast) var(--ease-out); }
.feature:hover { background: #121a26; transform: translateY(-3px); }
.feature .fi { font-size: 1.4rem; margin-bottom: 8px; }
.feature strong { display: block; font-family: var(--display); font-size: 1.05rem; margin-bottom: 4px; }
.feature span { font-size: 0.88rem; color: var(--muted); }

/* ---------- Respiro product page ---------- */
.app-overview { max-width: 680px; }
.overview-text { color: var(--muted); font-size: 1.05rem; line-height: 1.7; margin-bottom: 16px; }
.overview-highlights { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.overview-highlights li {
  position: relative; padding-left: 22px; color: var(--muted); font-size: 0.92rem; line-height: 1.5;
}
.overview-highlights li::before {
  content: ""; position: absolute; left: 0; top: 0.55em; width: 8px; height: 8px;
  border-radius: 50%; background: var(--accent);
}

/* ======================================================================
   Respiro — showcase prodotto (full-bleed) + spotlight funzioni
   ====================================================================== */

/* full-bleed: rompe il container .wrap restando centrato */
.fw { width: 100vw; margin-inline: calc(50% - 50vw); }
.fw-inner { max-width: var(--max); margin-inline: auto; padding-inline: var(--space-page); }

/* ---- Showcase Smart Scan: finestra macOS in vetro ---- */
.respiro-showcase,
.app-showcase { position: relative; padding-block: 64px; overflow: hidden; }
.app-showcase-tight { padding-top: 0; }
.respiro-showcase::before,
.app-showcase::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(90% 120% at 85% 20%, var(--accent-dim), transparent 60%),
    linear-gradient(180deg, transparent, var(--accent-dim), transparent);
}
.showcase-grid { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: 48px; align-items: center; perspective: 1300px; }
.showcase-grid.reverse { grid-template-columns: 1.08fr 0.92fr; }
.showcase-copy .kick {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--accent-2); display: inline-block; margin-bottom: 14px;
}
.showcase-copy h2 { font-family: var(--display); font-size: clamp(1.7rem, 3.4vw, 2.6rem); letter-spacing: -0.03em; line-height: 1.08; margin-bottom: 14px; text-wrap: balance; }
.showcase-copy p { color: var(--muted); font-size: 1.05rem; line-height: 1.6; max-width: 46ch; margin-bottom: 20px; }
.showcase-note { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.04em; color: var(--subtle); }
.showcase-shot {
  border-radius: 16px; overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 40px 100px -50px rgba(4,10,20,0.95), 0 0 60px -30px var(--accent-glow);
  will-change: transform; transform-style: preserve-3d;
}
.showcase-shot img { display: block; width: 100%; height: auto; }
.feat-visual-native { border-radius: 16px; overflow: hidden; box-shadow: 0 30px 80px -40px rgba(4,10,20,0.9), 0 0 40px -20px var(--accent-glow); }
.feat-visual-native img { display: block; width: 100%; height: auto; }
.feat-visual-native-portrait { max-width: 340px; margin-inline: auto; }

.mac-window {
  border-radius: 16px; overflow: hidden;
  background: var(--glass); backdrop-filter: blur(24px) saturate(160%); -webkit-backdrop-filter: blur(24px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 40px 100px -50px rgba(4,10,20,0.95), 0 0 60px -30px var(--accent-glow);
  will-change: transform; transform-style: preserve-3d;
  transition: transform var(--dur-med) var(--ease-out);
}
.mac-bar {
  display: flex; align-items: center; gap: 8px; padding: 12px 16px;
  border-bottom: 1px solid var(--hairline);
  background: linear-gradient(180deg, rgba(255,255,255,0.05), transparent);
}
.mac-bar .tl { width: 12px; height: 12px; border-radius: 50%; display: block; }
.mac-bar .tl.r { background: #ff5f57; } .mac-bar .tl.y { background: #febc2e; } .mac-bar .tl.g { background: #28c840; }
.mac-bar .mac-title { margin-left: 10px; font-family: var(--mono); font-size: 0.72rem; color: var(--ink-subtle, var(--subtle)); }
.mac-bar-minimal { justify-content: flex-start; }
.mac-menubar-mock {
  margin-left: auto; display: flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 0.72rem; color: var(--muted);
  padding: 4px 10px; border-radius: 8px; background: rgba(0,0,0,0.25);
}
.menubar-cup { font-size: 1rem; line-height: 1; filter: grayscale(1) opacity(0.45); }
.menubar-cup-on { filter: none; }
.sveglione-mock .mac-body { display: block; padding: 36px 28px 40px; text-align: center; }
.sveglione-mock-body { background: radial-gradient(120% 100% at 50% 0%, var(--accent-dim), transparent 70%); }
.sveglione-hero-icon { font-size: 4.5rem; line-height: 1; margin-bottom: 16px; }
.sveglione-mock-status { font-family: var(--display); font-size: 1.25rem; font-weight: 700; margin-bottom: 8px; }
.sveglione-mock-sub { color: var(--muted); font-size: 0.9rem; }
.mac-body { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; padding: 30px 30px 32px; }

/* radar scanner */
.scan-ring { width: 150px; height: 150px; flex-shrink: 0; }
.scan-ring .track { fill: none; stroke: rgba(255,255,255,0.09); stroke-width: 7; }
.scan-ring .prog { fill: none; stroke: var(--accent); stroke-width: 7; stroke-linecap: round; stroke-dasharray: 408; stroke-dashoffset: 122; transform: rotate(-90deg); transform-origin: 50% 50%; filter: drop-shadow(0 0 6px var(--accent-glow)); }
.scan-ring .sweep { stroke: var(--accent-2); stroke-width: 2; transform-origin: 75px 75px; }
.scan-ring .hub { fill: var(--accent-2); }
.scan-ring .pct { font-family: var(--mono); font-weight: 500; fill: var(--text); font-size: 20px; text-anchor: middle; }
.scan-ring .pct-l { font-family: var(--mono); fill: var(--subtle); font-size: 8px; letter-spacing: 0.12em; text-anchor: middle; }

.scan-rows { display: flex; flex-direction: column; gap: 12px; }
.scan-row { display: grid; grid-template-columns: 92px 1fr; gap: 12px; align-items: center; }
.scan-row .lbl { font-size: 0.82rem; color: var(--muted); }
.scan-row .bar { height: 8px; border-radius: 999px; background: rgba(255,255,255,0.07); overflow: hidden; }
.scan-row .bar i { display: block; height: 100%; border-radius: 999px; background: var(--grad-brand); width: 0; }

@media (prefers-reduced-motion: no-preference) {
  .scan-ring .sweep { animation: radar 3.6s linear infinite; }
  .scan-ring .prog { animation: ringpulse 3.6s ease-in-out infinite; }
  .scan-row .bar i { animation: barfill 3.6s var(--ease-out) infinite; }
  .scan-row:nth-child(1) .bar i { animation-delay: 0.1s; --w: 72%; }
  .scan-row:nth-child(2) .bar i { animation-delay: 0.3s; --w: 46%; }
  .scan-row:nth-child(3) .bar i { animation-delay: 0.5s; --w: 88%; }
  .scan-row:nth-child(4) .bar i { animation-delay: 0.7s; --w: 34%; }
}
@media (prefers-reduced-motion: reduce) {
  .scan-row:nth-child(1) .bar i { width: 72%; }
  .scan-row:nth-child(2) .bar i { width: 46%; }
  .scan-row:nth-child(3) .bar i { width: 88%; }
  .scan-row:nth-child(4) .bar i { width: 34%; }
}
@keyframes radar { to { transform: rotate(360deg); } }
@keyframes ringpulse { 0%,100% { stroke-dashoffset: 150; } 50% { stroke-dashoffset: 96; } }
@keyframes barfill { 0% { width: 0; } 45%,90% { width: var(--w, 60%); } 100% { width: 0; } }

/* ---- Screenshot reali dell'app in cornice macOS ---- */
.mac-window-shot .mac-body-shot { display: block; padding: 0; grid-template-columns: 1fr; }
.mac-shot-wrap {
  overflow: hidden; max-height: min(52vh, 440px); border-radius: 0 0 16px 16px;
  background: #121514;
}
.mac-shot {
  display: block; width: 100%; height: auto; object-fit: cover; object-position: top left;
  transform-origin: top center;
}
@media (prefers-reduced-motion: no-preference) {
  .mac-window-shot[data-float] { animation: windowFloat 7s ease-in-out infinite; animation-delay: var(--float-delay, 0s); }
  .mac-window-shot .mac-shot { animation: shotKenBurns 22s ease-in-out infinite alternate; animation-delay: var(--float-delay, 0s); }
}
@keyframes windowFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes shotKenBurns {
  from { transform: scale(1) translateY(0); }
  to { transform: scale(1.035) translateY(-1.2%); }
}
@media (prefers-reduced-motion: reduce) {
  .mac-window-shot[data-float], .mac-window-shot .mac-shot { animation: none; }
}

/* ---- Spotlight funzioni: bande full-bleed alternate ---- */
.feat-spot { position: relative; padding-block: 56px; }
.feat-spot:nth-child(even) { background: var(--bg-2); }
.feat-spot-inner {
  max-width: var(--max); margin-inline: auto; padding-inline: var(--space-page);
  display: grid; grid-template-columns: minmax(300px, 1.05fr) 1fr; gap: 44px; align-items: center;
}
.feat-spot:nth-child(even) .feat-visual { order: 2; }
.feat-spot:nth-child(even) .feat-content { order: 1; }

.feat-visual-shot {
  aspect-ratio: auto; max-width: none; width: 100%; padding: 0;
  background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none;
  box-shadow: none; border-radius: 0;
}
.feat-visual-shot::after { display: none; }
.feat-visual-shot .mac-window { width: 100%; }
.feat-visual-shot .mac-shot-wrap { max-height: 360px; }

.feat-visual {
  position: relative; aspect-ratio: 1; max-width: 300px; margin-inline: auto; width: 100%;
  display: grid; place-items: center; border-radius: 26px;
  background: var(--glass); backdrop-filter: blur(20px) saturate(160%); -webkit-backdrop-filter: blur(20px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), 0 30px 70px -40px rgba(4,10,20,0.9);
}
.feat-visual::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(80% 80% at 30% 20%, var(--accent-dim), transparent 60%);
}
.feat-glyph { width: 62%; height: 62%; color: var(--accent-2); position: relative; z-index: 1; }
.feat-glyph svg { width: 100%; height: 100%; overflow: visible; }
.feat-glyph .g-accent { stroke: var(--accent); }
.feat-glyph .g-accent-f { fill: var(--accent); }

.feat-kicker {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent-2); display: inline-block; margin-bottom: 18px;
}
.feat-modules { display: grid; grid-template-columns: 1fr; gap: 14px; }
.feat-modules.cols-2 { grid-template-columns: 1fr 1fr; }
.feat-mod {
  padding: 22px 24px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.03);
  transition: transform var(--dur-fast) var(--ease-out), background var(--dur-fast);
}
.feat-mod:hover { transform: translateY(-3px); background: rgba(52,200,126,0.06); }
.feat-mod .fi { font-size: 1.4rem; line-height: 1; margin-bottom: 10px; }
.feat-mod h4 { font-family: var(--display); font-size: 1.1rem; margin-bottom: 8px; }
.feat-mod .feat-summary { font-size: 0.9rem; color: var(--muted); line-height: 1.55; margin-bottom: 14px; }
.feat-mod ul { list-style: none; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--hairline); }
.feat-mod li { position: relative; padding-left: 16px; margin-bottom: 8px; font-size: 0.84rem; color: var(--muted); line-height: 1.45; }
.feat-mod li:last-child { margin-bottom: 0; }
.feat-mod li::before { content: ""; position: absolute; left: 2px; top: 0.5em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* parallax leggero sul visual, solo dove supportato */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .feat-visual { animation: spotFloat linear both; animation-timeline: view(); animation-range: entry 5% exit 95%; }
    @keyframes spotFloat { from { transform: translateY(26px); } to { transform: translateY(-26px); } }
  }
}

/* glifi animati (idle) */
@media (prefers-reduced-motion: no-preference) {
  .g-broom .broom { transform-origin: 70% 78%; animation: gSweep 3s ease-in-out infinite; }
  .g-broom .dust { animation: gDust 2.4s ease-in-out infinite; }
  .g-broom .dust.d2 { animation-delay: 0.5s; } .g-broom .dust.d3 { animation-delay: 1s; }
  .g-gauge .needle { transform-origin: 60px 78px; animation: gNeedle 3.2s ease-in-out infinite alternate; }
  .g-tree rect { transform-origin: center; animation: gPop 0.6s var(--ease-out) both; }
  .g-tree .t-accent { animation: gPulse 2.6s ease-in-out infinite 0.6s; }
  .g-shield .check { stroke-dasharray: 34; stroke-dashoffset: 34; animation: gDraw 1.4s var(--ease-out) infinite alternate; }
  .g-shield .scan { animation: gScanY 2.6s ease-in-out infinite; }
  .g-uninstall .frag { animation: gFall 2.4s ease-in-out infinite; }
  .g-uninstall .frag.f2 { animation-delay: 0.4s; } .g-uninstall .frag.f3 { animation-delay: 0.8s; }
  .g-menubar .spark { stroke-dasharray: 120; animation: gFlow 3s linear infinite; }
  .g-menubar .breath { transform-origin: center; animation: gPulse 2.4s ease-in-out infinite; }
}
.g-tree rect:nth-child(2) { animation-delay: 0.08s; } .g-tree rect:nth-child(3) { animation-delay: 0.16s; }
.g-tree rect:nth-child(4) { animation-delay: 0.24s; } .g-tree rect:nth-child(5) { animation-delay: 0.32s; }
@keyframes gSweep { 0%,100% { transform: rotate(-7deg); } 50% { transform: rotate(7deg); } }
@keyframes gDust { 0% { opacity: 0; transform: translate(0,0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(10px,-16px); } }
@keyframes gNeedle { from { transform: rotate(-64deg); } to { transform: rotate(64deg); } }
@keyframes gPop { from { transform: scale(0.3); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes gPulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.55; transform: scale(1.08); } }
@keyframes gDraw { to { stroke-dashoffset: 0; } }
@keyframes gScanY { 0%,100% { transform: translateY(-16px); opacity: 0; } 40%,60% { opacity: 0.9; } 50% { transform: translateY(16px); } }
@keyframes gFall { 0% { opacity: 0; transform: translateY(-8px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(20px); } }
@keyframes gFlow { to { stroke-dashoffset: -120; } }

@media (max-width: 860px) {
  .showcase-grid { grid-template-columns: 1fr; gap: 32px; }
  .mac-body { grid-template-columns: 1fr; justify-items: center; gap: 22px; text-align: left; }
  .scan-rows { width: 100%; }
  .feat-spot-inner { grid-template-columns: 1fr; gap: 26px; }
  .feat-spot:nth-child(even) .feat-visual,
  .feat-spot:nth-child(even) .feat-content { order: 0; }
  .feat-visual { max-width: 200px; }
  .feat-modules.cols-2 { grid-template-columns: 1fr; }
}

.changelog { display: flex; flex-direction: column; gap: 16px; max-width: 720px; }
.changelog-entry {
  padding: 22px 24px; border-radius: var(--radius-sm);
  background: var(--bg-2);
}
.changelog-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 14px; flex-wrap: wrap; }
.changelog-version {
  font-family: var(--mono); font-size: 0.95rem; font-weight: 500;
  color: var(--accent-2); background: var(--accent-dim); padding: 4px 10px; border-radius: 8px;
  font-variant-numeric: tabular-nums;
}
.changelog-date { font-family: var(--mono); font-size: 0.78rem; color: var(--muted); }
.changelog-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.changelog-list li {
  position: relative; padding-left: 18px; font-size: 0.9rem; color: var(--muted); line-height: 1.5;
}
.changelog-list li::before {
  content: ""; position: absolute; left: 0; top: 0.55em; width: 6px; height: 6px;
  border-radius: 50%; background: var(--accent); opacity: 0.7;
}


.download-box { padding: 32px; border-radius: 28px; background: radial-gradient(140% 180% at 0% 0%, var(--accent-dim), transparent 55%), var(--bg-2); box-shadow: 0 30px 80px -40px rgba(4, 10, 20, 0.9); margin: 8px 0; }
.download-box .price-tag { font-family: var(--display); font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; margin: 0 0 4px; color: var(--text); }
.download-box .price-tag small { font-size: 0.95rem; font-weight: 600; color: var(--muted); }
.download-box .meta { font-size: 1.05rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.download-box .note { color: var(--muted); font-size: 0.9rem; margin: 6px 0 18px; }
.download-box code { display: block; margin-top: 16px; padding: 14px; font-size: 0.75rem; word-break: break-all; background: rgba(0,0,0,0.4); border-radius: 10px; color: var(--muted); font-variant-numeric: tabular-nums; }

.pricing-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-bottom: 20px; }
.pricing-card { padding: 28px; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--border); }
.pricing-card.featured { border-color: rgba(52,200,126,0.45); background: radial-gradient(120% 140% at 0% 0%, rgba(52,200,126,0.12), transparent 60%), var(--bg-2); }
.pricing-card h3 { font-family: var(--display); font-size: 1.1rem; margin-bottom: 8px; }
.pricing-card .amount { font-family: var(--display); font-size: 2.2rem; font-weight: 800; letter-spacing: -0.03em; margin: 4px 0 10px; }
.pricing-card .amount span { font-size: 1rem; font-weight: 600; color: var(--muted); }
.pricing-card ul { list-style: none; margin: 0; padding: 0; color: var(--muted); font-size: 0.92rem; line-height: 1.55; }
.pricing-card li { position: relative; padding-left: 18px; margin-bottom: 8px; }
.pricing-card li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 6px; height: 6px; border-radius: 50%; background: var(--respiro, #34C87E); opacity: 0.85; }
.licensing-notes { color: var(--muted); font-size: 0.92rem; line-height: 1.65; max-width: 720px; }
.licensing-notes p { margin: 0 0 10px; }

.steps { counter-reset: step; list-style: none; }
.steps li { counter-increment: step; position: relative; padding-left: 42px; margin-bottom: 16px; color: var(--muted); }
.steps li::before { content: counter(step); position: absolute; left: 0; top: -2px; width: 28px; height: 28px; border-radius: 50%; background: var(--accent-dim); color: var(--accent-2); font-weight: 700; display: flex; align-items: center; justify-content: center; }

/* ---------- About ---------- */
.about-intro { font-size: 1.12rem; line-height: 1.7; max-width: 680px; color: var(--muted); }
.info-stack { display: flex; flex-direction: column; gap: 16px; }
.info-card { background: var(--bg-2); border-radius: var(--radius); padding: 28px; }
.info-card h3 { font-family: var(--display); font-size: 1.15rem; margin-bottom: 8px; }
.info-card p { color: var(--muted); line-height: 1.65; }

/* ---------- Footer ---------- */
footer { padding: 40px 0 32px; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.86rem; margin-top: 0; background: var(--bg-2); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: center; }

/* ---------- Reveal on scroll ----------
   Lo stato nascosto viene applicato SOLO via JS (motion.js): se lo script
   non parte o le transition sono in pausa, il contenuto resta visibile. */

/* ---------- 404 ---------- */
.error-page { min-height: 70vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 20px; padding: 60px 24px; }
.error-page .mascot { width: 220px; }
.error-page h1 { font-family: var(--display); font-size: clamp(1.8rem, 4vw, 2.6rem); }

/* ---------- Ko-fi flottante ---------- */
.kofi-float {
  position: fixed; bottom: 20px; right: 20px; z-index: 40;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px 12px 12px; border-radius: var(--radius);
  background: var(--glass-strong);
  backdrop-filter: blur(24px) saturate(160%); -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid rgba(245, 177, 76, 0.3);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 10px 30px rgba(4, 10, 20, 0.5);
  transition: transform var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
.kofi-float:hover { transform: translateY(-4px); background: rgba(245, 177, 76, 0.12); text-decoration: none; }
.kofi-float .cup { width: 40px; height: 40px; border-radius: 50%; background: var(--amber); color: #241603; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; box-shadow: 0 0 15px rgba(245, 177, 76, 0.4); flex-shrink: 0; }
.kofi-float .txt { display: flex; flex-direction: column; line-height: 1.2; }
.kofi-float .txt .k1 { font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--amber); }
.kofi-float .txt .k2 { font-size: 0.85rem; font-weight: 500; color: var(--text); }
@media (max-width: 560px) { .kofi-float .txt { display: none; } }

/* ---------- Ghost card progress ---------- */
.ghost-meta { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.ghost-tag { font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; padding: 3px 8px; border-radius: 999px; background: rgba(255,255,255,0.06); color: var(--muted); }
.progress { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--border); }
.progress .bar { width: 100%; height: 8px; border-radius: 999px; background: rgba(255,255,255,0.06); overflow: hidden; }
.progress .bar span { display: block; height: 100%; border-radius: 999px; background: var(--grad-brand); opacity: 0.55; }
.progress .pct { display: block; text-align: right; margin-top: 8px; font-family: var(--mono); font-size: 10px; color: var(--muted); }
.blink-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--red); margin-right: 8px; animation: blinkdot 1.4s ease-in-out infinite; }
@keyframes blinkdot { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }
.soon-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--border); display: flex; align-items: center; font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }

/* ---------- About / profilo ---------- */
.role-line { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 12px; }
.about-manifesto { color: var(--muted); font-size: 1.02rem; line-height: 1.7; margin: 0 0 18px; max-width: 62ch; }
.about-manifesto strong { color: var(--text); font-weight: 600; }
.btn.linkedin { background-image: none; background-color: #0a66c2; color: #fff; border: 1px solid transparent; box-shadow: none; }
.btn.linkedin:hover { background-color: #0958a8; }
.btn.youtube { background-image: none; background-color: #c0392b; color: #fff; border: 1px solid transparent; box-shadow: none; }
.btn.youtube:hover { background-color: #a93226; }
.btn.telegram { background-image: none; background-color: #2aabee; color: #fff; border: 1px solid transparent; box-shadow: none; }
.btn.telegram:hover { background-color: #1f97d6; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 8px; }

.info-card .sub-note { color: var(--muted); font-size: 0.92rem; margin: -2px 0 16px; }

/* competenze: lista tipografica, niente scatole */
.skill-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; }
.skill-row { padding: 18px 0; border-top: 1px solid var(--border); }
.skill-row h4 { font-family: var(--display); font-size: 1.02rem; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 6px; }
.skill-row p { color: var(--muted); font-size: 0.9rem; line-height: 1.55; margin: 0; }
@media (max-width: 640px) { .skill-list { grid-template-columns: 1fr; } }

/* certificazioni (about) */
.cert-row { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--border); }
.cert-row .cert {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.04em;
  color: var(--subtle);
}

/* box canale modellismo */
.channel { display: flex; gap: 20px; align-items: flex-start; }
.channel-logo { width: 88px; height: 88px; border-radius: 18px; object-fit: contain; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border); padding: 8px; flex-shrink: 0; }
.channel-body { flex: 1; min-width: 0; }
.channel-body h3 { font-family: var(--display); font-size: 1.2rem; margin: 0 0 4px; }
.channel-body .sub { color: var(--muted); font-size: 0.92rem; margin: 0 0 14px; line-height: 1.55; }
.stats { display: flex; gap: 28px; flex-wrap: wrap; margin-bottom: 16px; }
.stat b { display: block; font-family: var(--display); font-size: 1.35rem; font-weight: 800; color: var(--accent-2); line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat span { display: block; font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-top: 4px; }
.profile { display: flex; gap: 24px; align-items: flex-start; }
.profile-photo { width: 148px; height: 148px; border-radius: var(--radius); object-fit: cover; flex-shrink: 0; border: 1px solid var(--border-strong); box-shadow: 0 12px 34px rgba(4, 10, 20, 0.5); }
.profile-body { flex: 1; min-width: 0; }
.progress.compact { border: none; padding-top: 14px; margin-top: auto; }
.progress.compact span { display: flex; align-items: center; font-family: var(--mono); font-size: 10px; color: var(--muted); }

/* ---------- Confetti ---------- */
.confetti-piece { position: fixed; top: -10px; width: 10px; height: 14px; z-index: 999; pointer-events: none; border-radius: 2px; will-change: transform; }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .hero-stage { flex-direction: column; align-items: stretch; min-height: 0; gap: 24px; }
  .hero-visual { position: relative; right: auto; top: auto; transform: none; order: -1; align-self: center; }
  .hero-visual .logo-3d { width: min(210px, 54vw); }
  .hero-visual .fee-widget { position: relative; left: auto; bottom: auto; margin-top: 10px; }
  .hero-copy { max-width: none; }
  .hero h1 { font-size: clamp(2.2rem, 8vw, 3rem); }
  .mascot-wrap { order: -1; }
  .mascot { width: min(220px, 58vw); }
  .logo-3d { width: min(200px, 52vw); }
  .feature-band { grid-template-columns: 1fr; padding: 28px; gap: 20px; }
  .feature-band .fb-media img { width: 88px; height: 88px; }
  .lab-row { grid-template-columns: 14px 1fr auto; row-gap: 6px; }
  .lab-note { grid-column: 2 / -1; }
}
@media (max-width: 640px) {
  .profile { flex-direction: column; }
  .profile-photo { width: 128px; height: 128px; align-self: center; }
  .profile-body { width: 100%; }
  .channel { flex-direction: column; }
  .channel-logo { align-self: flex-start; }
  .btn-row .btn { flex: 1 1 100%; }
}
@media (max-width: 560px) {
  :root { --space-page: 20px; --section-y: 40px; }
  .nav-links a:not(.kofi) { display: none; }
  .hero { padding-block: 32px 32px; }
  .page-hero { padding-block: 32px 12px; }
  .kofi-float { bottom: 16px; right: 16px; }
  .logo-3d, .hero-visual .logo-3d { width: min(150px, 44vw); }
  .fee-widget { padding: 10px 14px; }
  .fee-widget .fee { font-size: 1.4rem; }
  .fee-widget .fee-note { display: none; }
}

/* ---------- Trasparenza ridotta ---------- */
@media (prefers-reduced-transparency: reduce) {
  .card, .info-card, .download-box, .donate-banner, .fee-widget, .kofi-float {
    background: #121a26;
    backdrop-filter: none; -webkit-backdrop-filter: none;
  }
  header { background: rgba(10, 14, 20, 0.97); backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .aurora span, .mascot .body, .mascot .eye, .mascot .spark, .steam i, .blink-dot, .lab-dot,
  .logo-3d .plate, .logo-3d .plate::after { animation: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .card:hover, .feature-band:hover { transform: none; }
}
