/* MuJo Software — foglio di stile unico.
   Nessuno stile in linea nelle pagine: la Content-Security-Policy (vercel.json) li blocca.
   I segnaposto "asset:" tra doppie graffe vengono sostituiti da build.mjs con i nomi dei file con hash. */

@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 300 900; font-display: swap;
  src: url("/assets/fonts/inter-v20-latin-ext.a28eb6d3cc.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 300 900; font-display: swap;
  src: url("/assets/fonts/inter-v20-latin.c940764593.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #09090f;
  --bg-2: #0d0d15;
  --surface: #12121b;
  --surface-2: #181824;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --text: #f3f3f8;
  --text-2: #bcbccf;
  --text-3: #9393ab;
  --violet: #8b6cff;
  --violet-2: #ad98ff;
  --teal: #46d6c0;
  --grad: linear-gradient(120deg, #9b7dff 0%, #6aa6f0 52%, #46d6c0 100%);
  --live: #34d399;
  --soon: #fbbf24;
  --paused: #a8a8bd;
  --max: 1140px;
  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --serif: 'Iowan Old Style', 'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, 'Times New Roman', serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 1.0625rem; line-height: 1.65;
  font-feature-settings: 'cv11', 'ss03';
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
main { flex: 1 0 auto; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -0.025em; font-weight: 750; text-wrap: balance; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure, blockquote { margin: 0; }
strong { font-weight: 650; color: var(--text); }
::selection { background: rgba(139, 108, 255, .4); color: #fff; }
:focus-visible { outline: 2px solid var(--violet-2); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip {
  position: absolute; left: 16px; top: -120px; z-index: 100;
  padding: 10px 16px; border-radius: 10px; background: var(--text); color: var(--bg); font-weight: 650;
}
.skip:focus { top: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(9, 9, 15, .74);
  -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 22px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 9px; margin-right: auto; white-space: nowrap; }
.logo { display: block; width: 72px; height: 32px; flex: none; }
.brand-sub { color: var(--text-3); font-size: 1.06rem; font-weight: 450; padding-top: 2px; }
.nav { display: flex; gap: 28px; font-size: .95rem; color: var(--text-2); }
.nav a { transition: color .15s ease; }
.nav a:hover { color: var(--text); }
.lang { display: inline-flex; padding: 3px; border: 1px solid var(--line-2); border-radius: 999px; font-size: .78rem; font-weight: 700; letter-spacing: .05em; }
.lang a, .lang span { padding: 4px 10px; border-radius: 999px; line-height: 1.25; }
.lang span { background: rgba(255, 255, 255, .12); color: var(--text); }
.lang a { color: var(--text-3); transition: color .15s ease; }
.lang a:hover { color: var(--text); }

/* ---------- Bottoni ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 22px; border-radius: 12px; border: 1px solid transparent;
  font-weight: 650; font-size: .97rem; line-height: 1.2; white-space: nowrap;
  transition: transform .15s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.btn svg { width: 16px; height: 16px; flex: none; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: #f5f5fa; color: #0b0b12; box-shadow: 0 8px 24px -10px rgba(255, 255, 255, .35); }
.btn-primary:hover { background: #fff; }
.btn-ghost { background: rgba(255, 255, 255, .04); border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .07); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 92px 0 112px; border-bottom: 1px solid var(--line); }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(55% 60% at 12% -5%, rgba(139, 108, 255, .26), transparent 70%),
    radial-gradient(40% 55% at 98% 35%, rgba(70, 214, 192, .13), transparent 70%),
    radial-gradient(35% 40% at 60% 110%, rgba(106, 166, 240, .10), transparent 70%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 35% 0%, #000 15%, transparent 72%);
  mask-image: radial-gradient(ellipse 75% 70% at 35% 0%, #000 15%, transparent 72%);
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: center; }
.kicker {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 28px;
  padding: 6px 14px 6px 11px; border: 1px solid var(--line-2); border-radius: 999px;
  background: rgba(255, 255, 255, .035); color: var(--text-2); font-size: .85rem; font-weight: 550;
}
.kicker .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(70, 214, 192, .16); }
.hero h1 { font-size: clamp(2.75rem, 6.3vw, 4.9rem); line-height: 1.02; letter-spacing: -0.045em; font-weight: 800; margin-bottom: 26px; }
.hero h1 .line { display: block; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .06em; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.26rem); line-height: 1.6; color: var(--text-2); max-width: 34ch; margin-bottom: 36px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 36px; color: var(--text-3); font-size: .9rem; }
.trust li { display: inline-flex; align-items: center; gap: 9px; }
.trust li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--teal); opacity: .75; }

/* Composizione decorativa dei tre prodotti */
.stack { position: relative; height: 480px; }
.tile {
  position: absolute; border-radius: 22px; border: 1px solid var(--line-2);
  box-shadow: 0 34px 70px -28px rgba(0, 0, 0, .85), 0 0 0 1px rgba(0, 0, 0, .25);
}
.tile-top { display: flex; align-items: center; gap: 13px; }
.tile-top img { border-radius: 12px; flex: none; }
.tile-top b { display: block; font-size: 1.02rem; letter-spacing: -0.015em; }
.tile-top span { display: block; color: var(--text-3); font-size: .82rem; }
.tile-status { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-size: .78rem; font-weight: 700; letter-spacing: .03em; color: #6ee7b7; }
.tile-status .d { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px rgba(52, 211, 153, .15); }
.tile-status.paused { color: var(--paused); }
.tile-status.paused .d { box-shadow: none; }
.tile-nam { width: 296px; left: 2%; top: 4%; padding: 22px; background: linear-gradient(160deg, #1d1c40 0%, #131328 100%); rotate: -4deg; animation: float 9s ease-in-out infinite; }
.bars { display: flex; align-items: flex-end; gap: 7px; height: 64px; margin-top: 22px; }
.bars i { flex: 1; border-radius: 5px 5px 2px 2px; background: linear-gradient(180deg, #818cf8, #4f46e5); opacity: .85; }
.bars i:nth-child(1) { height: 34%; } .bars i:nth-child(2) { height: 52%; } .bars i:nth-child(3) { height: 41%; }
.bars i:nth-child(4) { height: 70%; } .bars i:nth-child(5) { height: 58%; } .bars i:nth-child(6) { height: 86%; }
.bars i:nth-child(7) { height: 100%; background: linear-gradient(180deg, #6ee7b7, #10b981); }
.tile-quote {
  width: 318px; right: 0; top: 31%; padding: 26px 28px 24px; color: #2b2117;
  background: linear-gradient(160deg, #fbf6ec 0%, #f2e7d3 100%); border-color: rgba(0, 0, 0, .06);
  rotate: 3deg; animation: float 10s ease-in-out -3s infinite;
}
.tile-quote { top: 24%; }
.tile-quote .q { display: block; height: 30px; font-family: var(--serif); font-size: 4.4rem; line-height: .82; color: #c2410c; }
.tile-quote p { margin: 10px 0 14px; font-family: var(--serif); font-size: 1.32rem; line-height: 1.3; }
.tile-quote .by { font-size: .78rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: #7c5f44; }
.tile-cm { width: 252px; left: 15%; bottom: 0; padding: 18px 20px; background: linear-gradient(160deg, #191925, #12121b); rotate: -1.5deg; animation: float 11s ease-in-out -6s infinite; }
.tile-cm .tile-top img { filter: grayscale(.35); }
.meter { position: relative; height: 8px; margin-top: 18px; border-radius: 999px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.meter i { position: absolute; inset: 0 38% 0 0; border-radius: inherit; background: linear-gradient(90deg, #34d399, #fbbf24); opacity: .55; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }

/* ---------- Sezioni ---------- */
.section { padding: 116px 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow { display: inline-block; margin-bottom: 14px; font-size: .78rem; font-weight: 750; letter-spacing: .16em; text-transform: uppercase; color: var(--violet-2); }
.section-head h2, .about-text h2 { font-size: clamp(2.05rem, 4.2vw, 3rem); letter-spacing: -0.038em; margin-bottom: 16px; }
.section-head p { margin: 0; color: var(--text-2); font-size: 1.12rem; }

/* ---------- Progetti ---------- */
.projects { display: grid; gap: 28px; }
.project {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr); gap: 52px; align-items: center;
  padding: 44px; border-radius: 30px; border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
}
.project::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(75% 65% at 0% 0%, var(--tint), transparent 70%);
}
.project-nam { --tint: rgba(99, 102, 241, .17); }
.project-afo { --tint: rgba(251, 191, 36, .09); }
.project.reverse { grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr); }
.project.reverse .project-media { order: -1; }
.project-afo.reverse::before { background: radial-gradient(75% 65% at 100% 0%, var(--tint), transparent 70%); }
.project-head { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; }
.project-logo { width: 54px; height: 54px; border-radius: 15px; flex: none; }
.project-logo.afo { display: grid; place-items: center; background: linear-gradient(160deg, #fbf6ec, #efe2c9); color: #c2410c; font-family: var(--serif); font-size: 2.6rem; line-height: 1; padding-top: 14px; }
.project h3 { font-size: clamp(1.65rem, 2.7vw, 2.15rem); letter-spacing: -0.032em; }
.project-tagline { margin: 3px 0 0; color: var(--text-2); font-size: 1rem; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.pill {
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px;
  border: 1px solid var(--line-2); border-radius: 999px; background: rgba(255, 255, 255, .035);
  color: var(--text-2); font-size: .78rem; font-weight: 650; letter-spacing: .02em; line-height: 1.3;
}
.pill .d { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.pill svg { width: 13px; height: 13px; }
.pill-live { color: #6ee7b7; border-color: rgba(52, 211, 153, .35); background: rgba(52, 211, 153, .08); }
.pill-soon { color: #fcd34d; border-color: rgba(251, 191, 36, .32); background: rgba(251, 191, 36, .07); }
.pill-paused { color: var(--paused); }
.project-desc { margin-bottom: 22px; color: var(--text-2); font-size: 1.05rem; }
.checks { display: grid; gap: 11px; margin-bottom: 30px; }
.checks li { position: relative; padding-left: 31px; font-size: .98rem; line-height: 1.55; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 19px; height: 19px; border-radius: 50%;
  background: rgba(70, 214, 192, .13); border: 1px solid rgba(70, 214, 192, .38);
}
.checks li::after {
  content: ""; position: absolute; left: 7px; top: calc(.2em + 4px); width: 5px; height: 9px;
  border: solid var(--teal); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.browser {
  overflow: hidden; border-radius: 16px; border: 1px solid var(--line-2); background: #0f0f17;
  box-shadow: 0 40px 80px -36px rgba(0, 0, 0, .9);
  transform: perspective(1600px) rotateY(-7deg) rotateX(2deg); transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}
.project:hover .browser { transform: perspective(1600px) rotateY(0) rotateX(0); }
.browser-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; border-bottom: 1px solid var(--line); background: #16161f; }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #3b3b4b; }
.browser-url { margin-left: 10px; padding: 3px 12px; border-radius: 8px; background: rgba(255, 255, 255, .055); color: var(--text-3); font-size: .78rem; }

.quote-card {
  position: relative; overflow: hidden; isolation: isolate;
  padding: 40px 40px 34px; border-radius: 24px; color: #2b2117;
  background: linear-gradient(160deg, #fcf8ef 0%, #f2e6d1 100%);
  box-shadow: 0 40px 80px -36px rgba(0, 0, 0, .9);
}
.quote-card::before {
  content: ""; position: absolute; z-index: -1; right: -90px; top: -90px; width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(circle, rgba(251, 146, 60, .42) 0%, rgba(251, 191, 36, .16) 45%, transparent 70%);
}
.quote-label { display: block; margin-bottom: 18px; font-size: .74rem; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; color: #8a6a4d; }
.quote-mark { display: block; height: 34px; font-family: var(--serif); font-size: 5.4rem; line-height: .8; color: #c2410c; }
.quote-text p { margin: 14px 0 24px; font-family: var(--serif); font-size: clamp(1.5rem, 2.5vw, 2rem); line-height: 1.28; letter-spacing: -0.005em; }
.quote-card figcaption { display: grid; gap: 2px; }
.quote-by { font-weight: 750; font-size: .98rem; }
.quote-src { color: #6b5845; font-size: .9rem; font-style: italic; }
.quote-verified {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 22px; padding: 6px 12px; border-radius: 999px;
  background: rgba(194, 65, 12, .09); color: #9a3412; font-size: .78rem; font-weight: 750;
}
.quote-verified svg { width: 14px; height: 14px; }

.project-compact {
  display: flex; align-items: center; gap: 22px; padding: 26px 30px;
  border: 1px dashed var(--line-2); border-radius: 24px; background: rgba(255, 255, 255, .015);
}
.project-compact > img { width: 60px; height: 60px; border-radius: 15px; flex: none; filter: grayscale(.45) brightness(.92); }
.compact-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.project-compact h3 { font-size: 1.28rem; letter-spacing: -0.02em; }
.project-compact p { margin: 5px 0 0; color: var(--text-2); font-size: .97rem; }
.more { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; font-weight: 650; color: var(--text); padding: 9px 4px; }
.more svg { width: 16px; height: 16px; transition: transform .15s ease; }
.more:hover svg { transform: translateX(3px); }
.workshop { margin: 34px 0 0; text-align: center; color: var(--text-3); font-size: .95rem; }

/* ---------- Principi ---------- */
.epigraph { max-width: 860px; margin: 0 auto 64px; text-align: center; }
.epigraph blockquote p { margin: 0; font-family: var(--serif); font-size: clamp(1.45rem, 2.9vw, 2.15rem); line-height: 1.36; color: var(--text); }
.epigraph figcaption { margin-top: 18px; color: var(--text-3); font-size: .95rem; }
.epigraph cite { font-style: normal; }
.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.principle { padding: 32px 30px; border-radius: 22px; border: 1px solid var(--line); background: var(--surface); }
.principle .ico { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 22px; border-radius: 13px; background: rgba(139, 108, 255, .13); color: var(--violet-2); }
.principle .ico svg { width: 22px; height: 22px; }
.principle h3 { margin-bottom: 10px; font-size: 1.22rem; letter-spacing: -0.018em; }
.principle p { margin: 0; color: var(--text-2); font-size: .99rem; }

/* ---------- Chi sono + contatti ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 60px; align-items: center; }
.about-text p { color: var(--text-2); font-size: 1.1rem; max-width: 52ch; }
.about-text p.big { color: var(--text); font-size: 1.32rem; line-height: 1.5; letter-spacing: -0.01em; }
.contact-card {
  padding: 36px; border-radius: 26px; border: 1px solid rgba(139, 108, 255, .32);
  background: radial-gradient(90% 90% at 100% 0%, rgba(70, 214, 192, .10), transparent 60%), linear-gradient(160deg, rgba(139, 108, 255, .17), rgba(18, 18, 27, .6));
}
.contact-card h3 { margin-bottom: 10px; font-size: 1.7rem; letter-spacing: -0.028em; }
.contact-card p { color: var(--text-2); margin-bottom: 26px; }
.email-line { display: block; margin-top: 16px; color: var(--text-2); font-size: .95rem; }
.email-line a { color: var(--text); border-bottom: 1px solid rgba(173, 152, 255, .5); }
.email-line a:hover { border-bottom-color: var(--violet-2); }

/* ---------- Pagine interne ---------- */
.page { padding-top: 56px; padding-bottom: 104px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; font-size: .88rem; color: var(--text-3); }
.crumbs li { display: inline-flex; align-items: center; gap: 8px; }
.crumbs li + li::before { content: "/"; opacity: .5; }
.crumbs a:hover { color: var(--text); }
.page-narrow { max-width: 828px; }
.page-narrow > h1 { margin-bottom: 16px; }
.cm-hero { display: flex; align-items: center; gap: 28px; margin-bottom: 52px; }
.cm-hero img { width: 104px; height: 104px; border-radius: 24px; flex: none; filter: grayscale(.3); box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .9); }
.cm-hero h1, .page h1 { font-size: clamp(2.2rem, 5vw, 3.3rem); letter-spacing: -0.04em; font-weight: 800; }
.cm-hero .pill { margin-bottom: 14px; }
.cm-hero .lead { margin: 14px 0 0; max-width: 46ch; }
.panel { margin-bottom: 44px; padding: 32px 34px; border-radius: 24px; border: 1px solid var(--line); background: var(--surface); }
.panel-paused { border-color: rgba(168, 168, 189, .28); background: linear-gradient(160deg, rgba(168, 168, 189, .07), var(--surface)); }
.page section { margin-bottom: 44px; }
.page h2 { margin-bottom: 16px; font-size: 1.55rem; letter-spacing: -0.025em; }
.page section p, .panel p { color: var(--text-2); }
.panel p:last-child, .page section p:last-child { margin-bottom: 0; }
.doc-links { display: grid; gap: 10px; margin-top: 18px; }
.doc-link {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 20px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface);
  font-weight: 600; transition: border-color .15s ease, background-color .15s ease;
}
.doc-link:hover { border-color: var(--line-2); background: var(--surface-2); }
.doc-link svg { width: 16px; height: 16px; color: var(--text-3); flex: none; }
.doc-link small { color: var(--text-3); font-weight: 500; font-size: .85rem; }
.hub-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin-top: 36px; }
.disclaimer { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--text-3); font-size: .86rem; font-style: italic; }

/* Testo lungo (documenti legali, privacy) */
.prose { max-width: 720px; color: var(--text-2); }
.prose h1 { margin-bottom: 14px; color: var(--text); }
.prose h2 { margin: 42px 0 12px; font-size: 1.35rem; color: var(--text); letter-spacing: -0.02em; }
.prose p, .prose li { font-size: 1.02rem; line-height: 1.72; }
.prose ul { margin: 0 0 1.1em; display: grid; gap: 8px; }
.prose li { position: relative; padding-left: 22px; }
.prose li::before { content: ""; position: absolute; left: 4px; top: .72em; width: 6px; height: 6px; border-radius: 50%; background: var(--violet-2); }
.prose a { color: var(--text); border-bottom: 1px solid rgba(173, 152, 255, .5); }
.prose a:hover { border-bottom-color: var(--violet-2); }
.prose hr { margin: 40px 0 24px; border: 0; border-top: 1px solid var(--line); }
.prose em { color: var(--text-3); }
.updated { color: var(--text-3); font-size: .95rem; margin-bottom: 30px; }
.doc-back { margin-top: 44px; }
.doc-back a { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); font-weight: 600; }
.doc-back a:hover { color: var(--text); }
.doc-back svg { width: 16px; height: 16px; }

.afo-hero { display: flex; align-items: flex-start; gap: 28px; margin-bottom: 56px; }
.project-logo.afo.afo-logo-lg { width: 104px; height: 104px; border-radius: 24px; font-size: 5rem; padding-top: 30px; box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .9); }
.afo-hero h1 { margin-bottom: 0; }
.afo-hero .lead { margin: 14px 0 26px; max-width: 52ch; }
.afo-hero .pills { margin-bottom: 14px; }
.principles-tight { margin-top: 6px; }
.principles-tight .principle { padding: 26px 24px; }
.quote-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 22px; }
.quote-card.quote-card-sm { padding: 30px 28px 26px; }
.quote-card-sm .quote-mark { height: 26px; font-size: 4.2rem; }
.page .quote-card .quote-text p { margin: 12px 0 18px; color: #2b2117; font-size: 1.3rem; line-height: 1.32; }
.page .quote-card .quote-src { color: #6b5845; }
.notfound { padding-top: 120px; padding-bottom: 140px; text-align: center; }
.notfound .code { display: block; margin-bottom: 18px; font-size: .85rem; font-weight: 750; letter-spacing: .2em; color: var(--violet-2); }
.notfound h1 { font-size: clamp(2.3rem, 5vw, 3.4rem); letter-spacing: -0.04em; margin-bottom: 12px; }
.notfound p { color: var(--text-2); }
.notfound .alt { color: var(--text-3); }
.notfound .cta { justify-content: center; margin-top: 34px; }

/* ---------- GreenFill ---------- */
.project-gf { --tint: rgba(40, 200, 64, .11); }
/* L'icona ha già la sua forma arrotondata (trasparente fuori): niente border-radius, ombra che segue la forma. */
.gf-icon { border-radius: 0; filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .45)); }
.gf-hero { display: flex; align-items: flex-start; gap: 28px; margin-bottom: 48px; }
.gf-hero > img { width: 104px; height: 104px; flex: none; }
.gf-hero h1 { margin-bottom: 0; }
.gf-hero .pills { margin-bottom: 14px; }
.gf-hero .lead { margin: 14px 0 26px; max-width: 50ch; }
.dl-meta { margin: 14px 0 0; color: var(--text-3); font-size: .9rem; }
.page section p a { color: var(--text); border-bottom: 1px solid rgba(173, 152, 255, .5); }
.page section p a:hover { border-bottom-color: var(--violet-2); }
code { font-family: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace; font-size: .88em; }
.page section p code { padding: 2px 7px; border-radius: 7px; background: rgba(255, 255, 255, .07); color: var(--text); overflow-wrap: anywhere; }
.steps { counter-reset: step; display: grid; gap: 14px; margin: 4px 0 22px; }
.steps li { counter-increment: step; position: relative; min-height: 30px; padding: 3px 0 0 46px; color: var(--text-2); }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; border: 1px solid rgba(139, 108, 255, .38); background: rgba(139, 108, 255, .13);
  color: var(--violet-2); font-size: .88rem; font-weight: 750;
}
.facts { margin: 0 0 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.facts div { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 16px; padding: 13px 20px; border-top: 1px solid var(--line); }
.facts div:first-child { border-top: 0; }
.facts dt { color: var(--text-3); font-size: .95rem; }
.facts dd { margin: 0; color: var(--text); font-size: .95rem; }
.hash { overflow-wrap: anywhere; }

/* Illustrazione (decorativa, solo CSS): il cursore clicca il tasto verde, la finestra riempie lo schermo
   sotto la barra dei menu (che si scurisce), poi un secondo clic la riporta com'era. Ciclo di 9 secondi.
   Le misure in cqw (1% della larghezza dell'illustrazione) la fanno scalare tutta insieme. */
.gf-demo {
  position: relative; overflow: hidden; isolation: isolate; container-type: inline-size;
  aspect-ratio: 16 / 10; border-radius: 18px; border: 1px solid var(--line-2);
  background:
    radial-gradient(75% 95% at 0% 0%, rgba(139, 108, 255, .55), transparent 65%),
    radial-gradient(70% 85% at 100% 100%, rgba(70, 214, 192, .42), transparent 62%),
    linear-gradient(150deg, #241a54 0%, #15203a 55%, #0f2d33 100%);
  box-shadow: 0 40px 80px -36px rgba(0, 0, 0, .9);
}
.gf-demo-page { margin-bottom: 56px; }
.gf-demo i { display: block; }
.gf-menubar {
  position: absolute; inset: 0 0 auto; height: 7%; display: flex; align-items: center; gap: 2.4cqw; padding: 0 2.4cqw;
  background: rgba(255, 255, 255, .16); animation: gf-bar 9s ease-in-out infinite;
}
.gf-menubar i { width: 5cqw; height: 1.1cqw; border-radius: 1cqw; background: rgba(255, 255, 255, .55); }
.gf-menubar i:first-child { width: 1.6cqw; height: 1.6cqw; border-radius: 50%; background: rgba(255, 255, 255, .85); }
.gf-menubar i:nth-child(2) { width: 6.5cqw; background: rgba(255, 255, 255, .85); }
.gf-menubar i:last-child { margin-left: auto; width: 8cqw; }
.gf-win {
  position: absolute; left: 12%; top: 19%; width: 56%; height: 56%; overflow: hidden;
  border-radius: 1.6cqw; border: 1px solid rgba(255, 255, 255, .13); background: #1b1b27;
  box-shadow: 0 2.4cqw 5cqw -1.2cqw rgba(0, 0, 0, .65);
  animation: gf-win 9s cubic-bezier(.5, 0, .2, 1) infinite;
}
.gf-titlebar { display: flex; align-items: center; gap: 1.1cqw; height: 4.6cqw; padding: 0 1.6cqw; background: #252535; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.gf-titlebar i { position: relative; width: 1.6cqw; height: 1.6cqw; border-radius: 50%; flex: none; }
.gf-r { background: #ff5f57; }
.gf-y { background: #febc2e; }
.gf-g { background: #28c840; }
.gf-g::after { content: ""; position: absolute; inset: -.5cqw; border-radius: 50%; border: .3cqw solid #5ee07a; opacity: 0; animation: gf-ring 9s ease-out infinite; }
.gf-body { display: grid; gap: 1.5cqw; padding: 3cqw 3.2cqw; }
.gf-body i { height: 1.2cqw; border-radius: 1cqw; background: rgba(255, 255, 255, .1); }
.gf-body i:first-child { width: 42%; height: 2cqw; margin-bottom: .6cqw; background: rgba(255, 255, 255, .24); }
.gf-body i:nth-child(2) { width: 90%; }
.gf-body i:nth-child(3) { width: 76%; }
.gf-body i:nth-child(4) { width: 84%; }
.gf-body i:nth-child(5) { width: 58%; }
.gf-dock {
  position: absolute; left: 50%; bottom: 1.4%; translate: -50% 0; display: flex; gap: 1cqw; padding: 1cqw 1.2cqw;
  border-radius: 1.8cqw; border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .13);
}
.gf-dock i { width: 3.4cqw; height: 3.4cqw; border-radius: .9cqw; background: #8b6cff; opacity: .85; }
.gf-dock i:nth-child(2) { background: #46d6c0; }
.gf-dock i:nth-child(3) { background: #f59e0b; }
.gf-dock i:nth-child(4) { background: #60a5fa; }
.gf-dock i:nth-child(5) { background: #f472b6; }
/* La punta del cursore sta in (0,3cqw; 0,3cqw); al centro del tasto verde: sinistra della finestra + 7,8cqw, alto + 2,3cqw. */
.gf-cursor {
  position: absolute; left: calc(12% + 7.8cqw); top: calc(19% + 2.3cqw); width: 3.2cqw; height: 4.8cqw;
  margin: -.3cqw 0 0 -.3cqw; transform-origin: .3cqw .3cqw; filter: drop-shadow(0 .3cqw .5cqw rgba(0, 0, 0, .45));
  animation: gf-cursor 9s ease-in-out infinite;
}
@keyframes gf-win {
  0%, 20% { left: 12%; top: 19%; width: 56%; height: 56%; }
  30%, 56% { left: 1.2%; top: 8.5%; width: 97.6%; height: 79.5%; }
  66%, 100% { left: 12%; top: 19%; width: 56%; height: 56%; }
}
@keyframes gf-cursor {
  0% { left: 54%; top: 68%; opacity: 0; }
  6% { left: 54%; top: 68%; opacity: 1; }
  16% { left: calc(12% + 7.8cqw); top: calc(19% + 2.3cqw); scale: 1; }
  18% { scale: .8; }
  20% { scale: 1; }
  40% { left: calc(12% + 7.8cqw); top: calc(19% + 2.3cqw); }
  52% { left: calc(1.2% + 7.8cqw); top: calc(8.5% + 2.3cqw); scale: 1; }
  54% { scale: .8; }
  56% { scale: 1; }
  70% { left: calc(1.2% + 7.8cqw); top: calc(8.5% + 2.3cqw); opacity: 1; }
  82%, 100% { left: 30%; top: 50%; opacity: 0; }
}
@keyframes gf-ring {
  0%, 17.9% { opacity: 0; scale: .6; }
  18% { opacity: 1; scale: .7; }
  27% { opacity: 0; scale: 2.4; }
  27.1%, 53.9% { opacity: 0; scale: .6; }
  54% { opacity: 1; scale: .7; }
  63%, 100% { opacity: 0; scale: 2.4; }
}
@keyframes gf-bar {
  0%, 22% { background-color: rgba(255, 255, 255, .16); }
  30%, 56% { background-color: rgba(10, 10, 18, .86); }
  64%, 100% { background-color: rgba(255, 255, 255, .16); }
}

/* ---------- Footer ---------- */
.site-footer { padding: 64px 0 40px; border-top: 1px solid var(--line); background: #07070c; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand .brand { margin-bottom: 14px; }
.footer-brand p { color: var(--text-3); margin: 0 0 6px; font-size: .95rem; }
.footer-brand a.mail { color: var(--text-2); font-size: .95rem; }
.footer-brand a.mail:hover { color: var(--text); }
.footer-h { margin-bottom: 14px; font-size: .78rem; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.footer-col ul { display: grid; gap: 9px; font-size: .95rem; color: var(--text-2); }
.footer-col a:hover { color: var(--text); }
.footer-col [aria-current] { color: var(--text); }
.footer-col a { display: inline-flex; align-items: center; gap: 6px; }
.footer-col a svg { width: 13px; height: 13px; opacity: .55; }
.hub-grid section { margin-bottom: 0; }
.footer-bottom { display: grid; gap: 10px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--text-3); font-size: .84rem; }
.footer-bottom p { margin: 0; }
.footer-bottom .disc { font-style: italic; max-width: 92ch; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; }
  .stack { display: none; }
  .lead { max-width: 46ch; }
}
@media (max-width: 900px) {
  .project, .project.reverse { grid-template-columns: 1fr; gap: 36px; padding: 32px; }
  .project.reverse .project-media { order: 0; }
  .project-media { order: -1; }
  .browser { transform: none; }
  .principles { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .hub-grid { grid-template-columns: 1fr; }
  .quote-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .wrap { padding: 0 18px; }
  .hero { padding: 64px 0 80px; }
  .section { padding: 84px 0; }
  .section-head { margin-bottom: 40px; }
  .project, .project.reverse { padding: 24px 20px; border-radius: 24px; }
  .quote-card { padding: 30px 26px 26px; }
  .project-compact { flex-wrap: wrap; padding: 22px; }
  .project-compact .more { margin-left: 0; padding-left: 0; }
  .actions .btn { flex: 1 1 auto; }
  .cm-hero { flex-direction: column; align-items: flex-start; gap: 20px; }
  .cm-hero img { width: 84px; height: 84px; border-radius: 20px; }
  .panel { padding: 24px 22px; }
  .afo-hero { flex-direction: column; gap: 20px; }
  .project-logo.afo.afo-logo-lg { width: 84px; height: 84px; font-size: 4rem; padding-top: 24px; border-radius: 20px; }
  .gf-hero { flex-direction: column; gap: 20px; }
  .gf-hero > img { width: 84px; height: 84px; }
  .gf-demo { border-radius: 14px; }
  .facts div { grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 12px 18px; }
}
@media (max-width: 560px) {
  .site-header .brand-sub { display: none; }
  .header-inner { gap: 16px; }
  .nav { gap: 18px; }
  .nav-about { display: none; }
}
@media (max-width: 380px) {
  .nav-projects { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .browser { transform: none; }
}
@media print {
  .site-header, .site-footer, .stack, .skip { display: none !important; }
  body { background: #fff; color: #000; }
}
