/* ═══════════════════════════════════════════════════════════════
   LAYOUT v2 — Nav, hero, footer, auth, topbar
   ═══════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════
   NAV — Public (glassmorphism)
   ═══════════════════════════════════ */
.nav {
    position: sticky; top: 0; z-index: var(--z-sticky);
    height: var(--header-h);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 var(--space-6);
    background: rgba(5,5,7,.75);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: var(--border-dark);
    transition: background var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}

/* Logo */
.logo {
    font-family: var(--font-sans);
    font-weight: var(--fw-bold);
    font-size: var(--fs-lg);
    color: var(--white);
    letter-spacing: -0.03em;
    text-decoration: none;
    display: inline-flex; align-items: center;
    white-space: nowrap;
}
.logo-mark {
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px;
    border-radius: var(--r-md);
    background: var(--grad-text);
    margin-right: var(--space-2);
    flex-shrink: 0;
}
.logo-mark svg { width: 20px; height: 20px; color: #04242b; }
.logo:hover { text-decoration: none; }
/* Il selettore lingua resta nella barra, accanto al burger su mobile. */
.nav .logo span,
.topbar .logo span,
.auth-brand .logo span { color: var(--cyan); }

/* Freccia ‹ di ritorno: bottone circolare con contorno, a destra del logo. */
.mv-back {
    display: inline-flex; align-items: center; justify-content: center;
    width: 26px; height: 26px; flex-shrink: 0;
    margin-left: .8rem;
    color: rgba(255,255,255,.5);
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 50%;
    text-decoration: none;
    transition: color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
.mv-back svg { display: block; }
/* Home/dashboard: slot fantasma identico (la navbar non si sposta tra le pagine). */
.mv-back--ghost { visibility: hidden; pointer-events: none; }
.mv-back:hover { color: var(--cyan); border-color: var(--cyan); background: rgba(6,182,212,.08); text-decoration: none; transform: translateX(-2px); }
.nav .mv-back { margin-right: auto; }

/* Nav links */
.nav-links { display: flex; align-items: center; gap: var(--space-6); font-size: var(--fs-sm); }
.nav-links a {
    color: rgba(255,255,255,.5);
    font-weight: var(--fw-medium);
    transition: color var(--dur-fast) var(--ease-out);
    padding: var(--space-1) 0;
}
.nav-links a:hover,
.nav-links a.active { color: var(--white); text-decoration: none; }

/* CTA in nav (Accedi/Dashboard): via di mezzo compatta */
.nav-links .btn { padding: .45rem 1.15rem; font-size: .8rem; }

/* Right cluster */
.nav-right { display: flex; align-items: center; gap: var(--space-4); }

/* Divider in bar */
.nav-divider { width: 1px; height: 20px; background: var(--border-dark); }

/* Language dropdown — single instance, works on desktop and mobile */
.nav-lang-dd { position: relative; }
.nav-lang-dd--public { flex-shrink: 0; }
.nav-lang-btn {
    display: inline-flex; align-items: center; gap: var(--space-2);
    border: none; background: none; cursor: pointer;
    font-size: var(--fs-xs); font-weight: var(--fw-semibold);
    letter-spacing: 0.02em;
    color: rgba(255,255,255,.5);
    padding: var(--space-1) var(--space-2);
    border-radius: var(--r-sm);
    transition: color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
    line-height: 1;
    height: 100%;
}
.nav-lang-btn:hover { color: var(--white); background: var(--glass-hover); }
.nav-lang-btn svg { flex-shrink: 0; width: 14px; height: 14px; }
.nav-lang-chev { transition: transform var(--dur-fast) var(--ease-out); }
.nav-lang-btn[aria-expanded="true"] .nav-lang-chev { transform: rotate(180deg); }

.nav-lang-panel {
    display: none; position: absolute; top: calc(100% + var(--space-2)); right: 0;
    min-width: 160px; padding: var(--space-2);
    background: var(--black-soft); border: var(--border-dark);
    border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
    z-index: var(--z-dropdown);
}
.nav-lang-panel.is-open { display: flex; flex-direction: column; }
.nav-lang-item {
    display: flex; align-items: center; gap: var(--space-3);
    padding: var(--space-2) var(--space-3); border-radius: var(--r-md);
    font-size: var(--fs-sm); color: rgba(255,255,255,.6);
    text-decoration: none; transition: all var(--dur-fast) var(--ease-out);
}
.nav-lang-item:hover { background: var(--glass-hover); color: var(--white); text-decoration: none; }
.nav-lang-item.is-active { color: var(--cyan); font-weight: var(--fw-semibold); pointer-events: none; }
.nav-lang-code { font-weight: var(--fw-bold); font-size: var(--fs-xs); letter-spacing: 0.04em; width: 24px; text-align: center; }
.nav-lang-name { font-weight: var(--fw-normal); }

/* Burger */
.nav-burger {
    display: none; border: none; background: none; cursor: pointer;
    width: 26px; height: 18px; position: relative; padding: 0;
}
.nav-burger span {
    display: block; width: 100%; height: 1.5px; background: var(--white);
    border-radius: 2px; position: absolute; left: 0;
    transition: all var(--dur-base) var(--ease-out);
}
.nav-burger span:nth-child(1) { top: 0; }
.nav-burger span:nth-child(2) { top: 8px; }
.nav-burger span:nth-child(3) { top: 16px; }
.nav-burger.open span:nth-child(1) { top: 8px; transform: rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { top: 8px; transform: rotate(-45deg); }

/* CTA in nav */
.nav-cta .btn { padding: var(--space-2) var(--space-4); font-size: var(--fs-sm); }

/* ═══════════════════════════════════
   TOPBAR — Project pages
   ═══════════════════════════════════ */
.topbar {
    position: sticky; top: 0; z-index: var(--z-sticky);
    height: var(--header-h);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 var(--space-6);
    background: rgba(5,5,7,.85);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: var(--border-dark);
}
.topbar-left { display: flex; align-items: center; gap: var(--space-4); }
.topbar-title { font-size: var(--fs-sm); font-weight: var(--fw-semibold); color: var(--white); }
.topbar-right { display: flex; align-items: center; gap: var(--space-3); }
.topbar-company { font-size: var(--fs-xs); color: rgba(255,255,255,.4); }
.topbar-back { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; flex-shrink: 0; color: rgba(255,255,255,.5); border: 1px solid rgba(255,255,255,.22); border-radius: 50%; text-decoration: none; margin-left: .55rem; margin-right: auto; transition: color .15s, border-color .15s, background .15s; }
.topbar-back svg { display: block; }
.topbar-back:hover { color: var(--cyan); border-color: var(--cyan); background: rgba(6,182,212,.08); text-decoration: none; }

/* ═══════════════════════════════════
   PAGE HERO — Generic (services, about, contact, etc.)
   ═══════════════════════════════════ */
.page-hero {
    background: var(--grad-hero-subtle);
    padding: var(--space-20) 0 var(--space-16);
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(6,182,212,.1) 0%, transparent 60%);
    pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero .label { margin-bottom: var(--space-3); color: rgba(255,255,255,.35); }
.page-hero h1 {
    margin-bottom: var(--space-3);
    background: linear-gradient(135deg, #fff 20%, rgba(34,211,238,.85) 80%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}
.page-hero-sub {
    font-size: var(--fs-lg);
    color: rgba(255,255,255,.45);
    margin-top: var(--space-2);
    max-width: var(--max-w-prose);
}
.page-hero-sm { padding: var(--space-20) 0 var(--space-8); }

/* Legal hero — centered gradient title, tighter gap to card below */
.legal-hero {
    text-align: center;
}
.legal-hero + .section { padding-top: var(--space-6); }
.legal-hero .label {
    display: inline-block;
    margin-bottom: var(--space-3);
}
.legal-hero h1 {
    margin-left: auto;
    margin-right: auto;
    max-width: var(--max-w-prose);
}
.legal-hero .page-hero-sub {
    margin-left: auto;
    margin-right: auto;
    max-width: var(--max-w-prose);
}

/* ── Page intro — editorial header with ambient glow ── */
.page-intro {
    position: relative;
    padding: var(--space-24) 0 var(--space-14);
    text-align: center;
    overflow: hidden;
}
.page-intro::before {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse at 50% -10%, rgba(6,182,212,.14) 0%, transparent 55%),
        radial-gradient(ellipse at 75% 20%, rgba(59,130,246,.08) 0%, transparent 50%);
    pointer-events: none;
}
.page-intro {
    box-shadow: inset 0 -1px 0 0 rgba(6,182,212,.18);
}
.page-intro .container { position: relative; z-index: 1; }
.page-intro .label { margin-bottom: var(--space-3); }
.page-intro h1 {
    font-size: var(--fs-5xl);
    margin-bottom: var(--space-4);
    background: linear-gradient(135deg, #fff 20%, rgba(34,211,238,.85) 80%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
    line-height: var(--lh-tight);
}
.page-intro h2 {
    font-size: var(--fs-4xl);
    margin-bottom: var(--space-4);
    background: linear-gradient(135deg, #fff 25%, rgba(34,211,238,.8) 75%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}
.page-intro p {
    font-size: var(--fs-lg);
    color: rgba(255,255,255,.62);
    max-width: var(--max-w-prose);
    margin: 0 auto;
    line-height: var(--lh-relaxed);
}

/* ═══════════════════════════════════
   HOME HERO — Full-screen, editorial
   ═══════════════════════════════════ */
.hero {
    background: var(--black);
    min-height: calc(100vh - var(--header-h));
    display: flex; align-items: center;
    position: relative; overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute; inset: 0;
    background: var(--grad-hero);
    pointer-events: none;
}
.hero-inner {
    max-width: var(--max-w-wide);
    margin: 0 auto; width: 100%;
    display: grid; grid-template-columns: 1.1fr 0.9fr;
    gap: var(--space-16);
    align-items: center;
    padding: var(--space-24) var(--space-6);
    position: relative; z-index: 1;
}

/* Left: Content */
.hero-title {
    font-size: var(--fs-6xl);
    line-height: var(--lh-tight);
    color: var(--white);
    margin-bottom: var(--space-5);
    letter-spacing: -0.03em;
}
.hero-title .accent { color: var(--cyan); }
.hero-title em {
    font-family: var(--font-serif);
    font-style: italic;
    background: var(--grad-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-sub {
    font-size: var(--fs-lg);
    max-width: var(--max-w-prose);
    margin-bottom: var(--space-8);
    line-height: var(--lh-relaxed);
    color: rgba(255,255,255,.5);
}
.hero-cta { display: flex; gap: var(--space-3); flex-wrap: wrap; margin-bottom: var(--space-10); }

/* Trust badges under hero CTA */
.hero-trust { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
.hero-trust-label { font-size: var(--fs-xs); color: rgba(255,255,255,.3); font-weight: var(--fw-medium); }
.hero-trust-logos { display: flex; gap: var(--space-6); align-items: center; opacity: 0.4; filter: grayscale(1); transition: opacity var(--dur-base), filter var(--dur-base); }
.hero-trust-logos:hover { opacity: 0.7; filter: grayscale(0); }
.hero-trust-logos img { height: 20px; width: auto; }

/* Right: Visual demo */
.hero-visual { position: relative; }
.hero-demo {
    background: var(--glass-strong);
    border: var(--border-dark);
    border-radius: var(--r-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl), var(--shadow-glow-cyan);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: relative;
}
.hero-demo::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: var(--grad-border);
}
.hero-demo-header {
    display: flex; align-items: center; gap: var(--space-3);
    padding: var(--space-3) var(--space-5);
    background: var(--glass-bg);
    border-bottom: var(--border-dark);
}
.hero-demo-dot { width: 10px; height: 10px; border-radius: 50%; }
.hero-demo-dot.r { background: #ff5f57; }
.hero-demo-dot.y { background: #febc2e; }
.hero-demo-dot.g { background: #28c840; }
.hero-demo-title {
    margin-left: var(--space-3);
    font-size: var(--fs-xs);
    color: rgba(255,255,255,.3);
    font-family: var(--font-mono);
}
.hero-demo-body {
    padding: var(--space-6);
    font-family: var(--font-mono);
    font-size: var(--fs-xs);
    line-height: var(--lh-relaxed);
    color: rgba(255,255,255,.45);
    min-height: 280px;
}
.hero-demo-body .line { display: block; }
.hero-demo-body .ln { display: inline-block; width: 2ch; color: rgba(255,255,255,.12); margin-right: var(--space-4); text-align: right; user-select: none; }
.hero-demo-body .kw  { color: #c792ea; }
.hero-demo-body .fn  { color: var(--cyan); }
.hero-demo-body .str { color: #c3e88d; }
.hero-demo-body .cm  { color: rgba(255,255,255,.2); font-style: italic; }
.hero-demo-body .var { color: #f78c6c; }
.hero-demo-body .op  { color: #89ddff; }
.hero-demo-result {
    margin: var(--space-4) var(--space-6) var(--space-6);
    padding: var(--space-3) var(--space-4);
    background: var(--cyan-haze);
    border: 1px solid rgba(6,182,212,.2);
    border-radius: var(--r-md);
    font-size: var(--fs-xs);
    font-family: var(--font-mono);
    color: var(--cyan);
}

/* Floating accent orbs */
.hero-orb {
    position: absolute; border-radius: 50%; filter: blur(80px);
    pointer-events: none; opacity: 0.4;
}
.hero-orb-1 { width: 300px; height: 300px; background: var(--cyan); top: -100px; right: -100px; }
.hero-orb-2 { width: 200px; height: 200px; background: var(--violet); bottom: -50px; left: -50px; }

/* ═══════════════════════════════════
   FOOTER
   ═══════════════════════════════════ */
.footer {
    border-top: var(--border-dark);
    background: var(--black);
    color: rgba(255,255,255,.45);
}
.footer-bottom {
    /* Spazio riservato in basso per la freccia "torna in alto" (fixed, in basso
       a destra): così copyright e link legali non finiscono sotto di essa. */
    padding: var(--space-7) 0 calc(var(--space-7) + 4.5rem);
}
.footer-bottom-inner {
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: var(--space-3);
    font-size: var(--fs-xs); color: rgba(255,255,255,.25);
    padding-bottom: var(--space-2);
    /* Riserva la zona della freccia anche in orizzontale. */
    padding-right: 4.5rem;
}
@media (max-width: 640px) {
    .footer-bottom-inner { flex-direction: column; align-items: flex-start; padding-right: 0; }
}
.footer-legal { display: flex; gap: var(--space-5); }
.footer-legal a { font-size: var(--fs-xs); color: rgba(255,255,255,.25); transition: color var(--dur-fast) var(--ease-out); }
.footer-legal a:hover { color: rgba(255,255,255,.5); }

/* ═══════════════════════════════════
   AUTH (login, register)
   ═══════════════════════════════════ */
.auth-wrap {
    min-height: 100vh;
    background: var(--black);
    display: flex; align-items: center; justify-content: center;
    padding: var(--space-8) var(--space-4);
}
.auth-box { width: 100%; max-width: 420px; }
.auth-brand { text-align: center; margin-bottom: var(--space-8); }
.auth-brand .logo { font-size: var(--fs-2xl); color: var(--white); }
.auth-brand p { font-size: var(--fs-sm); color: rgba(255,255,255,.35); margin-top: var(--space-2); }
/* Banner sessione scaduta/logout: fuori dalla card, sopra il form di accesso. */
.auth-notice { margin-bottom: var(--space-5); }
.auth-card {
    background: var(--glass-strong);
    border: var(--border-dark);
    border-radius: var(--r-2xl);
    padding: var(--space-8);
    box-shadow: var(--shadow-xl), var(--shadow-glow-cyan);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}
.auth-card h1 { font-size: var(--fs-xl); margin-bottom: var(--space-6); }
.auth-footer { text-align: center; font-size: var(--fs-sm); color: rgba(255,255,255,.35); margin-top: var(--space-5); }
.auth-back { display: inline-block; margin-top: var(--space-3); font-size: var(--fs-sm); color: rgba(255,255,255,.4); transition: color var(--dur-fast) var(--ease-out); }
.auth-back:hover { color: var(--cyan); text-decoration: none; }

/* ═══════════════════════════════════
   TRUST BAR — Reusable component
   ═══════════════════════════════════ */
.trust-bar {
    border-top: var(--border-dark);
    border-bottom: var(--border-dark);
    padding: var(--space-8) 0;
    background: var(--black-soft);
    overflow: hidden;
}
.trust-bar-inner {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: var(--space-6);
}
.trust-bar-label { font-size: var(--fs-xs); font-weight: var(--fw-semibold); color: rgba(255,255,255,.25); text-transform: uppercase; letter-spacing: 0.08em; }
.trust-bar-logos { display: flex; align-items: center; gap: var(--space-8); flex-wrap: wrap; }
.trust-bar-logos img { height: 24px; width: auto; opacity: 0.35; filter: grayscale(1); transition: opacity var(--dur-base), filter var(--dur-base); }
.trust-bar-logos img:hover { opacity: 0.7; filter: grayscale(0); }

/* ═══════════════════════════════════
   SECTION DIVIDERS
   ═══════════════════════════════════ */
.section-divider {
    border-top: var(--border-dark);
    border-bottom: var(--border-dark);
    background: var(--black-soft);
}

/* Mesh gradient background for sections */
.section-mesh { position: relative; overflow: hidden; }
.section-mesh::before {
    content: '';
    position: absolute; inset: -50%;
    background: var(--grad-mesh);
    pointer-events: none;
    z-index: 0;
}
.section-mesh > .container { position: relative; z-index: 1; }

/* ═══════════════════════════════════
   LEGACY COMPAT — vecchie classi hero (index.php v1)
   ═══════════════════════════════════ */
.hero-content { min-width: 0; }
.hero-badges { display: flex; gap: var(--space-3); margin-top: var(--space-8); flex-wrap: wrap; }
.hero-badge {
    display: inline-flex; align-items: center; gap: var(--space-2);
    padding: var(--space-2) var(--space-4); border-radius: var(--r-full);
    background: var(--glass-bg); border: var(--border-dark);
    font-size: var(--fs-xs); color: rgba(255,255,255,.5);
}
.hero-badge strong { color: var(--white); font-weight: var(--fw-semibold); }
.hero-visual { position: relative; min-width: 0; }
.hero-code {
    background: var(--glass-strong);
    border: var(--border-dark);
    border-radius: var(--r-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl), var(--shadow-glow-cyan);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: relative;
    animation: fade-in var(--dur-slow) var(--ease-out) .3s both;
}
.hero-code::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: var(--grad-border);
}
.hero-code-header {
    display: flex; align-items: center; gap: var(--space-2);
    padding: var(--space-3) var(--space-5);
    background: var(--glass-bg);
    border-bottom: var(--border-dark);
}
.hero-code-dot { width: 10px; height: 10px; border-radius: 50%; }
.hero-code-dot.r { background: #ff5f57; }
.hero-code-dot.y { background: #febc2e; }
.hero-code-dot.g { background: #28c840; }
.hero-code-title {
    margin-left: var(--space-3); font-size: var(--fs-xs);
    color: rgba(255,255,255,.3); font-family: var(--font-mono);
}
.hero-code-body {
    padding: var(--space-6);
    font-family: var(--font-mono); font-size: var(--fs-xs);
    line-height: var(--lh-relaxed); color: rgba(255,255,255,.45);
}
.hero-code-body .line-num {
    display: inline-block; width: 2ch;
    color: rgba(255,255,255,.12); margin-right: var(--space-4);
    text-align: right; user-select: none;
}
.hero-code-body .kw  { color: #c792ea; }
.hero-code-body .fn  { color: var(--cyan); }
.hero-code-body .str { color: #c3e88d; }
.hero-code-body .cm  { color: rgba(255,255,255,.2); font-style: italic; }
.hero-code-body .var { color: #f78c6c; }
.hero-code-body .op  { color: #89ddff; }
.hero-code-result {
    margin: var(--space-4) var(--space-6) var(--space-6);
    padding: var(--space-3) var(--space-4);
    background: var(--cyan-haze);
    border: 1px solid rgba(6,182,212,.2);
    border-radius: var(--r-md);
    font-size: var(--fs-xs); font-family: var(--font-mono);
    color: var(--cyan);
}

/* ═══════════════════════════════════════════════════════════════
   GRADIENT HERO — animated shader-style gradient background
   (CSS port of @paper-design/shaders GrainGradient with
   shape:"corners", cyan palette, noise:0).
   ═══════════════════════════════════════════════════════════════ */
.gradient-hero {
    min-height: calc(100vh - var(--header-h));
    min-height: calc(100svh - var(--header-h));
    display: flex; align-items: center; justify-content: center;
    text-align: center;
    overflow: clip;
}
.gradient-canvas {
    position: absolute; inset: 0; z-index: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    display: block;
}
.gradient-hero .hero-orb { display: none; }
.stream-content {
    position: relative; z-index: 2;
    max-width: 880px; width: 100%;
    padding: var(--space-20) var(--space-6);
}
.stream-content::before {
    /* velo scuro dietro al testo per leggibilità sul corridor */
    content: ''; position: absolute; inset: -15% -30%; z-index: -1;
    background: radial-gradient(ellipse at center, rgba(5,5,7,.62) 0%, transparent 70%);
    pointer-events: none;
}
.stream-content .hero-title { text-align: center; }
.stream-content .hero-sub {
    text-align: center;
    margin-left: auto; margin-right: auto;
}
.stream-content .hero-cta { justify-content: center; }
.stream-content .hero-badges { justify-content: center; }

/* ═══════════════════════════════════════════════════════════════
   SHADER INTRO — full-screen PaperGrain hero (port vanilla fedele di
   @paper-design/shaders GrainGradient, shape "corners": overlay nero 20%,
   titolo serif bianco). Vedi www/js/paper-grain.js
   ═══════════════════════════════════════════════════════════════ */
.shader-hero {
    position: relative;
    min-height: calc(100vh - var(--header-h));
    min-height: calc(100svh - var(--header-h));
    display: flex; align-items: center; justify-content: center;
    overflow: clip;
    background: #000;
}
.shader-canvas {
    position: absolute; inset: 0; z-index: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    display: block;
}
.shader-veil {
    position: absolute; inset: 0; z-index: 1;
    background: rgba(0,0,0,.2);
    pointer-events: none;
}
.shader-title {
    position: relative; z-index: 2;
    font-family: 'Instrument Serif', 'DM Serif Display', Georgia, serif;
    font-weight: 400;
    color: #fff;
    text-align: center;
    font-size: clamp(3rem, 8vw, 4.5rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin: 0;
}
.shader-title-inner { display: inline-block; text-align: left; }
.shader-title .shader-line { display: block; }
.shader-title .shader-line-2 { padding-left: 3.45em; }
/* Contenuto editoriale sopra lo shader: titolo + riga + CTA */
.shader-content {
    position: relative; z-index: 2;
    display: flex; flex-direction: column; align-items: center;
    gap: var(--space-6);
    max-width: 720px; width: 100%;
    padding: 0 var(--space-6);
}
.shader-sub {
    color: rgba(255,255,255,.72);
    font-size: var(--fs-lg);
    line-height: var(--lh-relaxed);
    max-width: 560px; margin: 0;
    text-align: center;
    text-wrap: balance;
}
.shader-cta { display: flex; gap: var(--space-3); flex-wrap: wrap; justify-content: center; }
@media (max-width: 560px) {
    .shader-title { font-size: clamp(2.4rem, 13vw, 3rem); }
    .shader-title .shader-line-2 { padding-left: 1.4em; }
    .shader-sub { font-size: var(--fs-md); }
    .shader-cta .btn { width: 100%; }
    .shader-cta { width: 100%; max-width: 320px; }
}
