/* ============================================
   DC Developing — Apple-grade styles
   Dark, deep, glassmorphism, animated gradients
   ============================================ */

:root {
    --bg: #05050A;
    --bg-1: #08080F;
    --bg-2: #0C0D17;
    --bg-night: #0A0E1A;

    --fg: #F2F4F8;
    --fg-muted: #9CA3B0;
    --fg-dim: #5A6070;

    --accent: #C9A24B;
    --accent-2: #E0C687;
    --accent-soft: rgba(201, 162, 75, 0.1);
    --accent-glow: rgba(201, 162, 75, 0.3);
    --accent-dim: rgba(201, 162, 75, 0.4);

    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-strong: rgba(255, 255, 255, 0.06);

    --shadow-soft: 0 20px 60px -20px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 80px -10px rgba(201, 162, 75, 0.15);

    --font-display: 'Space Grotesk', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;

    --ease-apple: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-smooth: cubic-bezier(0.65, 0, 0.35, 1);

    --radius: 20px;
    --radius-sm: 12px;
    --max-width: 1180px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--fg);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    cursor: none;
}
a { color: inherit; text-decoration: none; cursor: none; }
button { font-family: inherit; border: none; background: none; color: inherit; cursor: none; }
ul, ol { list-style: none; }
img, svg, canvas { display: block; max-width: 100%; }
::selection { background: var(--accent-glow); color: var(--fg); }

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 32px;
}

/* ===== Animated gradient background (aurora) ===== */
.aurora {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}
.aurora-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.5;
    will-change: transform;
}
.aurora-1 {
    width: 50vw; height: 50vw;
    background: radial-gradient(circle, rgba(201, 162, 75, 0.25), transparent 70%);
    top: -10%; left: -10%;
    animation: aurora-move-1 25s ease-in-out infinite;
}
.aurora-2 {
    width: 45vw; height: 45vw;
    background: radial-gradient(circle, rgba(74, 123, 255, 0.18), transparent 70%);
    bottom: -10%; right: -5%;
    animation: aurora-move-2 30s ease-in-out infinite;
}
.aurora-3 {
    width: 35vw; height: 35vw;
    background: radial-gradient(circle, rgba(201, 162, 75, 0.12), transparent 70%);
    top: 40%; left: 50%;
    animation: aurora-move-3 35s ease-in-out infinite;
}
@keyframes aurora-move-1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(20vw, 15vh) scale(1.2); }
    66% { transform: translate(-5vw, 25vh) scale(0.9); }
}
@keyframes aurora-move-2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-15vw, -20vh) scale(1.3); }
}
@keyframes aurora-move-3 {
    0%, 100% { transform: translate(-50%, 0) scale(1); }
    50% { transform: translate(-60%, -15vh) scale(1.1); }
}

.noise {
    position: fixed;
    inset: 0;
    z-index: 1;
    opacity: 0.03;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.grid-overlay {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background-image:
        linear-gradient(to right, rgba(255,255,255,0.012) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255,255,255,0.012) 1px, transparent 1px);
    background-size: 90px 90px;
    mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
}

/* ===== Custom cursor ===== */
.cursor-dot, .cursor-ring {
    position: fixed;
    top: 0; left: 0;
    pointer-events: none;
    z-index: 9999;
    border-radius: 50%;
}
.cursor-dot {
    width: 7px; height: 7px;
    background: var(--accent);
    transform: translate(-50%, -50%);
    transition: width 0.2s var(--ease-apple), height 0.2s var(--ease-apple);
}
.cursor-ring {
    width: 36px; height: 36px;
    border: 1px solid var(--accent-dim);
    transform: translate(-50%, -50%);
    transition: width 0.3s var(--ease-spring), height 0.3s var(--ease-spring), border-color 0.3s, background 0.3s;
    backdrop-filter: invert(0.02);
}
.cursor-ring.hovering {
    width: 56px; height: 56px;
    border-color: var(--accent);
    background: var(--accent-soft);
}

/* ===== Scroll snap ===== */
.snap-container {
    scroll-snap-type: y proximity;
}
.snap-section {
    scroll-snap-align: start;
}

/* ===== Header ===== */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 16px 0;
    transition: all 0.5s var(--ease-apple);
    border-bottom: 1px solid transparent;
}
.site-header.scrolled {
    background: rgba(5, 5, 10, 0.6);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom-color: var(--glass-border);
    padding: 10px 0;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--fg);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: -0.02em;
}
.logo-mark { color: var(--accent); display: flex; }
.logo-dot { color: var(--accent); }
.main-nav {
    display: flex;
    gap: 34px;
    margin-left: auto;
}
.main-nav a {
    font-size: 0.875rem;
    color: var(--fg-muted);
    font-weight: 500;
    position: relative;
    transition: color 0.3s var(--ease-apple);
}
.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -6px; left: 50%;
    width: 0; height: 1px;
    background: var(--accent);
    transition: width 0.4s var(--ease-apple), left 0.4s var(--ease-apple);
}
.main-nav a:hover { color: var(--fg); }
.main-nav a:hover::after { width: 100%; left: 0; }
.menu-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.menu-toggle span { width: 20px; height: 1.5px; background: var(--fg); }

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 15px 30px;
    border-radius: 100px;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s var(--ease-spring), box-shadow 0.4s var(--ease-apple);
    will-change: transform;
}
.btn-sm { padding: 10px 22px; font-size: 0.85rem; }
.btn-lg { padding: 18px 40px; font-size: 1.05rem; }
.btn-primary {
    background: var(--accent);
    color: #04141A;
    box-shadow: 0 8px 30px -8px var(--accent-glow);
}
.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.5) 50%, transparent 70%);
    transform: translateX(-150%);
    transition: transform 0.8s var(--ease-apple);
}
.btn-primary:hover::before { transform: translateX(150%); }
.btn-primary:hover {
    box-shadow: 0 12px 40px -8px var(--accent-glow);
}
.btn-arrow {
    display: inline-block;
    transition: transform 0.4s var(--ease-apple);
}
.btn:hover .btn-arrow { transform: translateX(6px); }
.btn-glass {
    color: var(--fg);
    background: var(--glass);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}
.btn-glass:hover {
    background: var(--glass-strong);
    border-color: var(--accent-dim);
}

/* ===== Glass cards ===== */
.glass-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    position: relative;
    overflow: hidden;
    transition: transform 0.5s var(--ease-apple), border-color 0.4s, box-shadow 0.5s;
    transform-style: preserve-3d;
    box-shadow: var(--shadow-soft);
}
.glass-card:hover {
    border-color: var(--accent-dim);
    box-shadow: var(--shadow-soft), var(--shadow-glow);
}
.glass-card-glow {
    position: absolute;
    width: 300px; height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-glow), transparent 70%);
    opacity: 0;
    transition: opacity 0.5s var(--ease-apple);
    pointer-events: none;
    filter: blur(40px);
}
.glass-card:hover .glass-card-glow { opacity: 1; }

/* ===== Hero ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}
.hero-glow {
    position: absolute;
    width: 60vw; height: 60vw;
    max-width: 700px; max-height: 700px;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, var(--accent-glow), transparent 65%);
    filter: blur(60px);
    z-index: 1;
    opacity: 0.4;
    pointer-events: none;
    animation: hero-glow-pulse 6s ease-in-out infinite;
}
@keyframes hero-glow-pulse {
    0%, 100% { opacity: 0.3; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.5; transform: translate(-50%, -50%) scale(1.15); }
}
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding-top: 100px;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--fg-muted);
    padding: 8px 16px;
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    background: var(--glass);
    backdrop-filter: blur(10px);
    letter-spacing: 0.02em;
    margin-bottom: 32px;
}
.pulse-dot {
    width: 7px; height: 7px;
    background: var(--accent);
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
}
.pulse-dot::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1px solid var(--accent);
    animation: pulse-ring 2.5s var(--ease-apple) infinite;
}
@keyframes pulse-ring {
    0% { transform: scale(0.7); opacity: 1; }
    100% { transform: scale(2.5); opacity: 0; }
}
.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.6rem, 8vw, 6.5rem);
    line-height: 1.05;
    font-weight: 600;
    letter-spacing: -0.04em;
    margin-bottom: 28px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    hyphens: none;
    word-break: keep-all;
    overflow-wrap: normal;
}
.hero-sub {
    font-size: clamp(1.05rem, 1.5vw, 1.3rem);
    color: var(--fg-muted);
    max-width: 540px;
    margin: 0 auto 44px;
    line-height: 1.65;
    font-weight: 300;
}
.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}
.hero-scroll {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    font-size: 0.7rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--fg-dim);
}
.scroll-line {
    width: 1px; height: 50px;
    background: var(--glass-border);
    position: relative;
    overflow: hidden;
}
.scroll-line::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent);
    animation: scroll-down 2.2s var(--ease-smooth) infinite;
}
@keyframes scroll-down {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(200%); }
}

/* ===== Sections ===== */
.section {
    position: relative;
    padding: 140px 0;
    z-index: 2;
}
.section-bigno {
    position: absolute;
    top: 80px;
    right: -30px;
    font-family: var(--font-display);
    font-size: clamp(14rem, 30vw, 26rem);
    font-weight: 700;
    line-height: 0.8;
    color: rgba(201, 162, 75, 0.04);
    pointer-events: none;
    z-index: 0;
    letter-spacing: -0.06em;
    filter: blur(8px);
    user-select: none;
}
.section-head { margin-bottom: 72px; }
.section-index {
    display: block;
    font-family: var(--font-display);
    font-size: 0.8rem;
    color: var(--accent);
    letter-spacing: 0.08em;
    margin-bottom: 24px;
    font-weight: 500;
}
.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1.1;
    font-weight: 600;
    letter-spacing: -0.03em;
    max-width: 880px;
    hyphens: none;
    word-break: keep-all;
    overflow-wrap: normal;
}

/* ===== Letter split reveal ===== */
[data-split-letters] .char {
    display: inline-block;
    opacity: 0;
    filter: blur(12px);
    transform: translateY(40px);
    transition: opacity 0.8s var(--ease-apple), filter 0.8s var(--ease-apple), transform 0.8s var(--ease-apple);
}
[data-split-letters].in-view .char {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
}

/* Generic reveal */
[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.9s var(--ease-apple), transform 1s var(--ease-apple);
}
[data-reveal].in-view {
    opacity: 1;
    transform: translateY(0);
}
[data-reveal]:nth-child(2) { transition-delay: 0.1s; }
[data-reveal]:nth-child(3) { transition-delay: 0.2s; }

/* ===== Proposito ===== */
.proposito-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.proposito-grid .glass-card { padding: 40px 32px; }
.gen-graphic {
    color: var(--accent);
    margin-bottom: 32px;
    height: 120px;
}
.gen-graphic svg { width: 100%; height: 100%; }
.gp-line { stroke-dasharray: 1; stroke-dashoffset: 1; }
.in-view .gp-line { animation: draw 1.5s var(--ease-apple) forwards; }
.gp-dot { opacity: 0; }
.in-view .gp-dot { animation: fade-in 0.5s var(--ease-apple) 1.3s forwards; }
.gp-rect { stroke-dasharray: 1; stroke-dashoffset: 1; }
.in-view .gp-rect { animation: draw 1.5s var(--ease-apple) 0.3s forwards; }
.gp-circle-1, .gp-circle-2, .gp-circle-3 { stroke-dasharray: 1; stroke-dashoffset: 1; transform-origin: center; }
.in-view .gp-circle-1 { animation: draw 1.5s var(--ease-apple) forwards; }
.in-view .gp-circle-2 { animation: draw 1.5s var(--ease-apple) 0.3s forwards; }
.in-view .gp-circle-3 { animation: draw 1.5s var(--ease-apple) 0.6s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade-in { to { opacity: 1; } }

.proposito-grid h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 14px;
    letter-spacing: -0.02em;
}
.proposito-grid p {
    color: var(--fg-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    font-weight: 300;
}

/* ===== Processo — percorso cinematografico ===== */
.section-processo { padding-bottom: 80px; }

/* Barra di avanzamento fissa */
.process-progress {
    position: sticky;
    top: 80px;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 380px;
    margin: 0 auto 60px;
    padding: 14px 22px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
}
.pp-label {
    font-size: 0.72rem;
    color: var(--fg-muted);
    font-weight: 500;
    white-space: nowrap;
    letter-spacing: 0.02em;
}
.pp-track {
    flex: 1;
    height: 4px;
    background: var(--glass-border);
    border-radius: 2px;
    position: relative;
}
.pp-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    border-radius: 2px;
    transition: width 0.25s var(--ease-apple);
    box-shadow: 0 0 12px var(--accent-glow);
}
.pp-marker {
    position: absolute;
    top: 50%;
    width: 8px; height: 8px;
    background: var(--bg-1);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.4s var(--ease-apple);
}
.pp-marker.passed {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 10px var(--accent-glow);
}
.pp-marker[data-at="25"] { left: 25%; }
.pp-marker[data-at="50"] { left: 50%; }
.pp-marker[data-at="75"] { left: 75%; }
.pp-marker[data-at="100"] { left: 100%; }
.pp-percent {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    min-width: 42px;
    text-align: right;
}

/* Journey container */
.journey {
    position: relative;
    padding-left: 80px;
}
.journey-rail {
    position: absolute;
    left: 39px;
    top: 30px;
    bottom: 30px;
    width: 2px;
    background: var(--glass-border);
    border-radius: 2px;
}
.journey-line {
    width: 100%;
    height: 0%;
    background: linear-gradient(180deg, var(--accent), var(--accent-2));
    border-radius: 2px;
    box-shadow: 0 0 16px var(--accent-glow);
    transition: height 0.2s linear;
}

/* Step */
.journey-step {
    position: relative;
    margin-bottom: 56px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    min-height: 320px;
}
.journey-step:nth-child(even) .step-body {
    order: -1;
}
.journey-step:nth-child(even) .step-bigno {
    right: auto;
    left: 90%;
}

/* Numero gigante sfocato sullo sfondo */
.step-bigno {
    position: absolute;
    top: 50%;
    right: -40px;
    transform: translateY(-50%);
    font-family: var(--font-display);
    font-size: clamp(16rem, 34vw, 28rem);
    font-weight: 700;
    line-height: 0.8;
    color: rgba(201, 162, 75, 0.05);
    pointer-events: none;
    z-index: 0;
    letter-spacing: -0.06em;
    filter: blur(8px);
    user-select: none;
    transition: color 0.6s var(--ease-apple), filter 0.6s var(--ease-apple);
}
.journey-step.active .step-bigno {
    color: rgba(201, 162, 75, 0.1);
    filter: blur(6px);
}

/* Nodo sulla linea */
.step-node {
    position: absolute;
    left: -49px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px; height: 22px;
    border-radius: 50%;
    background: var(--bg-1);
    border: 2px solid var(--glass-border);
    z-index: 3;
    transition: all 0.5s var(--ease-apple);
}
.journey-step.active .step-node {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 0 6px rgba(201, 162, 75, 0.12), 0 0 24px var(--accent-glow);
}
.journey-step.active .step-node::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1px solid var(--accent);
    animation: pulse-ring 2s var(--ease-apple) infinite;
}

/* Prova visiva */
.step-visual {
    position: relative;
    height: 280px;
    border-radius: var(--radius);
    background: rgba(8, 8, 15, 0.5);
    border: 1px solid var(--glass-border);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}
.step-canvas { width: 100%; height: 100%; }

/* Wireframe → UI transform */
.wireframe-transform {
    position: relative;
    width: 220px; height: 160px;
}
.wt-wire, .wt-real {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    transition: opacity 0.8s var(--ease-apple);
}
.wt-wire {
    opacity: 1;
}
.wt-real {
    opacity: 0;
}
.journey-step.active .wt-wire { opacity: 0; }
.journey-step.active .wt-real { opacity: 1; }
.wt-bar { height: 8px; background: var(--accent-dim); border-radius: 2px; }
.wt-bar-1 { width: 60%; }
.wt-bar-2 { width: 80%; }
.wt-box { width: 100%; height: 50px; border: 1px dashed var(--accent-dim); border-radius: 4px; }
.wt-bar-3 { width: 70%; }
.wt-bar-4 { width: 45%; }
.wt-circle { width: 24px; height: 24px; border: 1px dashed var(--accent-dim); border-radius: 50%; margin-top: 4px; }
.wt-real-nav { width: 100%; height: 10px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: 2px; }
.wt-real-hero { width: 100%; height: 56px; background: var(--glass-strong); border: 1px solid var(--glass-border); border-radius: 4px; }
.wt-real-row { width: 80%; height: 6px; background: var(--glass-border); border-radius: 2px; }
.wt-real-btn { width: 60px; height: 18px; background: var(--accent); border-radius: 100px; margin-top: 4px; box-shadow: 0 4px 16px -4px var(--accent-glow); }

/* Code block */
.code-block {
    font-family: 'SF Mono', 'Fira Code', 'Courier New', monospace;
    font-size: 0.78rem;
    line-height: 1.7;
    color: var(--accent);
    padding: 24px;
    margin: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    white-space: pre-wrap;
}
.code-block code { display: inline; }
.code-cursor {
    display: inline-block;
    width: 7px; height: 1em;
    background: var(--accent);
    vertical-align: text-bottom;
    animation: blink 1s steps(2) infinite;
    margin-left: 2px;
    box-shadow: 0 0 8px var(--accent-glow);
}
@keyframes blink { 50% { opacity: 0; } }

/* Status indicator (Lancio) */
.status-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}
.status-orb {
    width: 70px; height: 70px;
    border-radius: 50%;
    background: var(--glass-border);
    border: 2px solid var(--glass-border);
    transition: all 0.8s var(--ease-apple);
    position: relative;
}
.journey-step.active .status-orb {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 0 8px rgba(201, 162, 75, 0.12), 0 0 50px var(--accent-glow);
}
.journey-step.active .status-orb::after {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 1px solid var(--accent);
    animation: pulse-ring 2s var(--ease-apple) infinite;
}
.status-label {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--fg-dim);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: color 0.6s var(--ease-apple);
}
.journey-step.active .status-label { color: var(--accent); }

/* Step body card */
.step-body {
    padding: 36px 36px 32px;
    z-index: 2;
    cursor: pointer;
}
.step-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}
.step-tag {
    font-family: var(--font-display);
    font-size: 0.7rem;
    color: var(--accent);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 600;
    padding: 4px 10px;
    border: 1px solid var(--accent-dim);
    border-radius: 100px;
}
.step-body h3 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}
.step-summary {
    color: var(--fg-muted);
    line-height: 1.7;
    font-weight: 300;
    margin-bottom: 0;
    transition: margin-bottom 0.4s var(--ease-apple);
}
.step-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s var(--ease-apple), opacity 0.4s var(--ease-apple);
    opacity: 0;
}
.step-body.expanded .step-details {
    max-height: 200px;
    opacity: 1;
    margin-top: 20px;
}
.detail-row {
    display: flex;
    gap: 16px;
    padding: 12px 0;
    border-top: 1px solid var(--glass-border);
}
.detail-key {
    font-family: var(--font-display);
    font-size: 0.72rem;
    color: var(--fg-dim);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    min-width: 130px;
    flex-shrink: 0;
    padding-top: 2px;
}
.detail-val {
    color: var(--fg);
    font-size: 0.9rem;
    line-height: 1.6;
    font-weight: 300;
}
.step-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    font-family: var(--font-display);
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: 500;
    transition: gap 0.3s var(--ease-apple);
}
.step-body:hover .step-toggle { gap: 12px; }
.toggle-icon {
    width: 16px; height: 16px;
    position: relative;
    transition: transform 0.4s var(--ease-apple);
}
.toggle-icon::before, .toggle-icon::after {
    content: '';
    position: absolute;
    background: var(--accent);
    border-radius: 1px;
}
.toggle-icon::before { top: 50%; left: 0; width: 100%; height: 1.5px; transform: translateY(-50%); }
.toggle-icon::after { left: 50%; top: 0; width: 1.5px; height: 100%; transform: translateX(-50%); transition: transform 0.4s var(--ease-apple); }
.step-body.expanded .toggle-icon::after { transform: translateX(-50%) scaleY(0); }
.step-body.expanded .toggle-text::before { content: 'Chiudi'; }
.step-body.expanded .toggle-text { font-size: 0; }
.step-body.expanded .toggle-text::before { font-size: 0.8rem; }

/* Transizione finale */
.journey-outro {
    position: relative;
    padding-left: 0;
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
}
.outro-line {
    width: 48px;
    height: 1px;
    background: linear-gradient(90deg, var(--accent), transparent);
    flex-shrink: 0;
}
.outro-text {
    font-family: var(--font-display);
    font-size: 1.15rem;
    color: var(--accent);
    font-weight: 500;
    letter-spacing: -0.01em;
}

@media (max-width: 900px) {
    .journey { padding-left: 48px; }
    .journey-rail { left: 23px; }
    .journey-step { grid-template-columns: 1fr; gap: 20px; min-height: auto; }
    .journey-step:nth-child(even) .step-body { order: 0; }
    .journey-step:nth-child(even) .step-bigno { left: auto; right: -10px; }
    .step-visual { height: 200px; }
    .step-node { left: -33px; }
    .step-bigno { font-size: clamp(10rem, 42vw, 16rem); right: -20px; }
    .step-body { padding: 28px 24px; }
    .detail-key { min-width: 100px; }
    .process-progress { max-width: 100%; }
}

/* ===== Perché ===== */
.perche-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}
.glass-wide { min-height: 280px; padding: 48px; display: flex; flex-direction: column; justify-content: flex-end; }
.gen-graphic-large { height: 180px; position: absolute; top: 32px; left: 32px; right: 32px; }
.gp-wave { stroke-dasharray: 1; stroke-dashoffset: 1; }
.in-view .gp-wave { animation: draw 2s var(--ease-apple) forwards; }
.in-view .gp-wave:nth-child(2) { animation-delay: 0.3s; }
.in-view .gp-wave:nth-child(3) { animation-delay: 0.6s; }
.perche-stats {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 24px;
}
.stat-card {
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.stat-num {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1;
    letter-spacing: -0.03em;
}
.stat-label {
    color: var(--fg-muted);
    font-size: 0.9rem;
    margin-top: 12px;
    font-weight: 300;
}
.perche-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.perche-features .glass-card { padding: 40px 32px; }
.perche-features h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 14px;
    letter-spacing: -0.02em;
}
.perche-features p {
    color: var(--fg-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    font-weight: 300;
}

/* ===== Configuratore Preventivo ===== */
.section-sub {
    font-size: 1.1rem;
    color: var(--fg-muted);
    font-weight: 300;
    max-width: 560px;
    margin-top: 16px;
}
.configurator {
    max-width: 720px;
    margin: 0 auto;
    position: relative;
}

/* Progress step indicator */
.cfg-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 48px;
}
.cfg-step-ind {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: opacity 0.4s var(--ease-apple);
    opacity: 0.4;
}
.cfg-step-ind.active { opacity: 1; }
.cfg-step-ind.done { opacity: 0.7; }
.cfg-step-dot {
    width: 36px; height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--fg-muted);
    background: var(--glass);
    border: 1px solid var(--glass-border);
    transition: all 0.4s var(--ease-apple);
}
.cfg-step-ind.active .cfg-step-dot {
    color: var(--bg);
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 0 6px rgba(201, 162, 75, 0.12), 0 0 24px var(--accent-glow);
}
.cfg-step-ind.done .cfg-step-dot {
    color: var(--accent);
    border-color: var(--accent);
}
.cfg-step-name {
    font-family: var(--font-display);
    font-size: 0.78rem;
    color: var(--fg-dim);
    letter-spacing: 0.02em;
}
.cfg-step-line {
    flex: 0 0 80px;
    height: 1px;
    background: var(--glass-border);
    margin: 0 16px;
    margin-bottom: 28px;
}

/* Panel */
.cfg-panel {
    display: none;
    animation: cfgFadeIn 0.5s var(--ease-apple);
}
.cfg-panel.active { display: block; }
@keyframes cfgFadeIn {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}
.cfg-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
    text-align: center;
}
.cfg-hint {
    text-align: center;
    color: var(--fg-muted);
    font-size: 0.95rem;
    font-weight: 300;
    margin-bottom: 28px;
}

/* Options */
.cfg-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 28px;
}
.cfg-options-3 { grid-template-columns: 1fr 1fr 1fr; }
.cfg-options-2 { grid-template-columns: 1fr 1fr; }
.cfg-option {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 28px 24px;
    cursor: pointer;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    transition: all 0.35s var(--ease-apple);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: var(--fg);
    font-family: var(--font-display);
    position: relative;
    overflow: hidden;
}
.cfg-option::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(201,162,75,0.06), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s var(--ease-apple);
    pointer-events: none;
}
.cfg-option:hover {
    border-color: rgba(201, 162, 75, 0.4);
    transform: translateY(-3px);
}
.cfg-option:hover::before { opacity: 1; }
.cfg-option.selected {
    border-color: var(--accent);
    background: rgba(201, 162, 75, 0.06);
    box-shadow: 0 0 0 1px var(--accent), 0 12px 40px -12px var(--accent-glow);
}
.cfg-opt-icon {
    width: 36px; height: 36px;
    color: var(--accent);
    margin-bottom: 12px;
}
.cfg-opt-icon svg { width: 100%; height: 100%; }
.cfg-opt-label {
    font-size: 1rem;
    font-weight: 500;
    color: var(--fg);
}
.cfg-opt-sub {
    font-size: 0.82rem;
    color: var(--fg-muted);
    font-weight: 300;
}
.cfg-opt-num {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: -0.02em;
}
.cfg-opt-price {
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 500;
    margin-top: auto;
}

/* Toggle extra */
.cfg-toggle {
    flex-direction: row;
    align-items: center;
    gap: 14px;
}
.cfg-check {
    width: 22px; height: 22px;
    border-radius: 6px;
    border: 1.5px solid var(--glass-border);
    flex-shrink: 0;
    position: relative;
    transition: all 0.3s var(--ease-apple);
}
.cfg-check::after {
    content: '';
    position: absolute;
    left: 6px; top: 2px;
    width: 6px; height: 11px;
    border: solid var(--bg);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) scale(0);
    transition: transform 0.25s var(--ease-spring);
}
.cfg-option.selected .cfg-check {
    background: var(--accent);
    border-color: var(--accent);
}
.cfg-option.selected .cfg-check::after { transform: rotate(45deg) scale(1); }

/* Nav buttons */
.cfg-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 36px;
}
.cfg-back, .cfg-next {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: gap 0.3s var(--ease-apple);
}
.cfg-back {
    color: var(--fg-muted);
    background: none;
    border: none;
}
.cfg-back:hover { color: var(--fg); }
.cfg-next {
    color: var(--accent);
    background: none;
    border: 1px solid var(--accent-dim);
    padding: 12px 28px;
    border-radius: 100px;
    transition: all 0.3s var(--ease-apple);
}
.cfg-next:hover {
    background: var(--accent);
    color: var(--bg);
    box-shadow: 0 8px 30px -8px var(--accent-glow);
}

/* Output */
.cfg-output {
    display: none;
    text-align: center;
    padding: 20px 0;
    animation: cfgFadeIn 0.6s var(--ease-apple);
}
.cfg-output.visible { display: block; }
.cfg-output-inner {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 56px 48px;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    position: relative;
    overflow: hidden;
}
.cfg-output-inner::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(201,162,75,0.05), transparent 50%);
    animation: rotate 20s linear infinite;
    pointer-events: none;
}
@keyframes rotate { to { transform: rotate(360deg); } }
.cfg-output-label {
    font-family: var(--font-display);
    font-size: 0.78rem;
    color: var(--accent);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 600;
}
.cfg-price {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin: 16px 0 24px;
    line-height: 1.1;
}
.cfg-disclaimer {
    color: var(--fg-muted);
    font-size: 0.92rem;
    line-height: 1.7;
    font-weight: 300;
    max-width: 480px;
    margin: 0 auto 32px;
}
.cfg-restart {
    display: block;
    margin: 24px auto 0;
    font-family: var(--font-display);
    font-size: 0.82rem;
    color: var(--fg-dim);
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.3s var(--ease-apple);
}
.cfg-restart:hover { color: var(--accent); }

/* ===== CTA ===== */
.cta-box {
    padding: 100px 48px;
    text-align: center;
    position: relative;
}
.cta-mesh {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border-radius: var(--radius);
    pointer-events: none;
}
.cta-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.4;
}
.cta-orb-1 {
    width: 400px; height: 400px;
    background: var(--accent);
    top: -100px; left: -50px;
    animation: cta-orb-1 12s ease-in-out infinite;
}
.cta-orb-2 {
    width: 350px; height: 350px;
    background: var(--accent-2);
    bottom: -100px; right: -50px;
    animation: cta-orb-2 14s ease-in-out infinite;
}
@keyframes cta-orb-1 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(100px, 80px); }
}
@keyframes cta-orb-2 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-80px, -60px); }
}
.cta-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.8rem);
    line-height: 1.1;
    font-weight: 600;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    position: relative;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    hyphens: none;
    word-break: keep-all;
    overflow-wrap: normal;
}
.cta-sub {
    color: var(--fg-muted);
    max-width: 500px;
    margin: 0 auto 44px;
    line-height: 1.7;
    font-weight: 300;
    font-size: 1.05rem;
    position: relative;
}
.cta-box .btn { position: relative; }

/* ===== Footer ===== */
.site-footer {
    position: relative;
    z-index: 2;
    padding: 80px 0 32px;
    border-top: 1px solid var(--glass-border);
    background: rgba(5, 5, 10, 0.5);
    backdrop-filter: blur(20px);
}
.footer-inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--glass-border);
}
.footer-tag {
    color: var(--fg-muted);
    font-size: 0.9rem;
    margin-top: 16px;
    max-width: 280px;
    line-height: 1.6;
    font-weight: 300;
}
.footer-nav { display: flex; flex-direction: column; gap: 14px; }
.footer-nav a {
    color: var(--fg-muted);
    font-size: 0.9rem;
    transition: color 0.3s, padding-left 0.3s var(--ease-apple);
}
.footer-nav a:hover { color: var(--accent); padding-left: 6px; }
.footer-cta {
    display: inline-block;
    font-family: var(--font-display);
    font-weight: 500;
    color: var(--accent);
    font-size: 1rem;
    transition: transform 0.3s var(--ease-apple);
    margin-top: 8px;
}
.footer-cta:hover { transform: translateX(6px); }
.footer-contact-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--fg-muted);
    font-family: var(--font-display);
    font-size: 0.88rem;
    font-weight: 400;
    margin-bottom: 6px;
    transition: color 0.3s var(--ease-apple);
}
.footer-contact-link:hover { color: var(--accent); }
.footer-contact-icon {
    color: var(--accent);
    display: flex;
    flex-shrink: 0;
}
.footer-contact-icon svg { width: 100%; height: 100%; }
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    font-size: 0.8rem;
    color: var(--fg-dim);
    font-weight: 300;
}
.footer-status { display: flex; align-items: center; gap: 8px; }

/* ===== Magnetic ===== */
[data-magnetic] { transition: transform 0.4s var(--ease-spring); }

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .container { padding: 0 24px; }
    .main-nav { display: none; }
    .menu-toggle { display: flex; }
    .site-header .btn-sm { display: none; }
    .section { padding: 90px 0; }
    .section-head { margin-bottom: 48px; }
    .section-bigno { font-size: clamp(9rem, 40vw, 14rem); right: -10px; top: 60px; }
    .proposito-grid { grid-template-columns: 1fr; }
    .perche-grid { grid-template-columns: 1fr; }
    .perche-features { grid-template-columns: 1fr; }
    .process-pin { padding: 0 24px; }
    .process-step { grid-template-columns: 48px 1fr; gap: 16px; margin-bottom: 18px; }
    .timeline-rail { left: 23px; }
    .step-num { width: 38px; height: 38px; font-size: 0.85rem; }
    .step-content { padding: 24px 20px; }
    .step-content h3 { font-size: 1.3rem; }
    .showcase-grid { grid-template-columns: 1fr; padding: 0 24px; }
    .showcase-large { grid-row: span 1; aspect-ratio: 16/10; }
    .cfg-options, .cfg-options-3, .cfg-options-2 { grid-template-columns: 1fr; }
    .cfg-step-line { flex: 0 0 32px; margin: 0 6px; }
    .cfg-output-inner { padding: 36px 24px; }
    .footer-inner { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; gap: 12px; }
    .cta-box { padding: 64px 24px; }
    .glass-wide { min-height: auto; }
    .gen-graphic-large { position: relative; top: 0; left: 0; right: 0; }
}

@media (max-width: 600px) {
    .hero-cta { flex-direction: column; align-items: stretch; }
    .hero-cta .btn { justify-content: center; }
    body { cursor: auto; }
    a, button { cursor: pointer; }
    .cursor-dot, .cursor-ring { display: none; }
}

/* ===== Hero number cycler ===== */
.hero-cycler {
    position: absolute;
    top: 18%;
    right: 8%;
    font-family: var(--font-display);
    font-size: clamp(6rem, 14vw, 12rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.05em;
    color: transparent;
    -webkit-text-stroke: 1px rgba(201, 162, 75, 0.25);
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
    height: 1.1em;
}
.hero-cycler-num {
    display: block;
    animation: heroCycle 6s var(--ease-apple) infinite;
}
@keyframes heroCycle {
    0%, 28% { transform: translateY(0); }
    33%, 61% { transform: translateY(-100%); }
    66%, 94% { transform: translateY(-200%); }
    100% { transform: translateY(-300%); }
}

/* ===== Marquee ===== */
.marquee {
    overflow: hidden;
    padding: 24px 0;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    margin-top: 64px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
    display: flex;
    gap: 48px;
    white-space: nowrap;
    animation: marquee 28s linear infinite;
    width: max-content;
}
.marquee-item {
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-weight: 500;
    color: var(--fg-muted);
    display: flex;
    align-items: center;
    gap: 48px;
    letter-spacing: -0.01em;
}
.marquee-item::after {
    content: '◆';
    color: var(--accent);
    font-size: 0.7em;
}
@keyframes marquee {
    to { transform: translateX(-50%); }
}

/* ===== Stagger reveal ===== */
[data-stagger] > * {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s var(--ease-apple), transform 0.6s var(--ease-apple);
}
[data-stagger].in-view > *:nth-child(1) { transition-delay: 0ms; opacity: 1; transform: none; }
[data-stagger].in-view > *:nth-child(2) { transition-delay: 120ms; opacity: 1; transform: none; }
[data-stagger].in-view > *:nth-child(3) { transition-delay: 240ms; opacity: 1; transform: none; }
[data-stagger].in-view > *:nth-child(4) { transition-delay: 360ms; opacity: 1; transform: none; }
[data-stagger].in-view > *:nth-child(5) { transition-delay: 480ms; opacity: 1; transform: none; }
[data-stagger].in-view > *:nth-child(6) { transition-delay: 600ms; opacity: 1; transform: none; }

/* ===== Perché column hover ===== */
.perche-col {
    transition: transform 0.4s var(--ease-apple), box-shadow 0.4s var(--ease-apple);
}
.perche-col:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px -20px rgba(0,0,0,0.5), 0 0 0 1px var(--accent-dim);
}

/* ===== CTA magnetic glow ===== */
.btn-cta-glow {
    position: relative;
}
.btn-cta-glow::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: inherit;
    background: radial-gradient(circle, var(--accent-glow), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s var(--ease-apple);
    z-index: -1;
    filter: blur(12px);
}
.btn-cta-glow:hover::after { opacity: 1; }

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .aurora, .hero-glow, .cta-orb { display: none; }
    .hero-canvas { opacity: 0.3; }
    [data-reveal] { opacity: 1; transform: none; }
    [data-split-letters] .char { opacity: 1; filter: none; transform: none; }
    body { cursor: auto; }
    .cursor-dot, .cursor-ring { display: none; }
}
