/* ══════════════════════════════════════════════════════════════════════
   PROJECT PAGES — SHARED STYLES (bancarella, flora, vivek, giusek…)
   ══════════════════════════════════════════════════════════════════════ */

html,
body {
    overflow-x: hidden !important;
    background: #010101;

    /* ── BACK LINK ──────────────────────────────────────────────────────── */
    .project-back {
        position: fixed;
        top: 28px;
        left: 28px;
        z-index: 2000;
        font-size: 9px;
        letter-spacing: 0.2em;
        text-transform: uppercase;
        color: rgba(255, 255, 255, 0.3);
        text-decoration: none;
        font-family: var(--font-body);
        font-weight: 700;
        display: flex;
        align-items: center;
        gap: 8px;
        transition: color 0.2s;
        opacity: 0;
    }
}

.project-back:hover {
    color: #C2D10F;
}

/* ── PROGRESS BAR LATERALE ──────────────────────────────────────────── */
#proj-progress {
    position: fixed;
    right: 32px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.pp-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    border: 1px solid rgba(194, 209, 15, 0.25);
    background: transparent;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.pp-dot.active {
    background: #C2D10F;
    border-color: #C2D10F;
    height: 20px;
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(194, 209, 15, 0.5);
}

#proj-hero-photo {
    position: absolute;
    top: 0;
    left: 0;
    height: 100svh !important;
    min-height: 600px !important;
    width: 100% !important;
    will-change: transform;
    z-index: 0;
}

#proj-hero-photo::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(194, 209, 15, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(194, 209, 15, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
}

#proj-hero-photo::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-display);
    font-size: clamp(60px, 10vw, 140px);
    font-weight: 800;
    color: rgba(255, 255, 255, 0.03);
    text-transform: uppercase;
    letter-spacing: -0.04em;
    white-space: nowrap;
    pointer-events: none;
}

#proj-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top, rgba(1, 1, 1, 0.95) 0%, rgba(1, 1, 1, 0.5) 40%, rgba(1, 1, 1, 0.1) 100%),
        linear-gradient(to right, rgba(1, 1, 1, 0.4) 0%, transparent 60%);
    z-index: 1;
}

#proj-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 0 80px 72px;
}

.proj-eyebrow {
    font-size: 9px;
    letter-spacing: 0.28em;
    color: #C2D10F;
    text-transform: uppercase;
    font-family: var(--font-body);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    opacity: 0;
}

.proj-eyebrow::before {
    content: '';
    width: 32px;
    height: 1px;
    background: #C2D10F;
    opacity: 0.5;
}

.proj-hero-title {
    font-family: var(--font-display);
    font-size: clamp(52px, 8vw, 110px);
    font-weight: 800;
    text-transform: uppercase;
    line-height: 0.88;
    letter-spacing: -0.03em;
    color: #fff;
    margin-bottom: 36px;
    opacity: 0;
    transform: translateY(40px);
}

.proj-hero-meta {
    display: flex;
    gap: 40px;
    align-items: center;
    opacity: 0;
}

.proj-meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.proj-meta-label {
    font-size: 8px;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    font-family: var(--font-body);
}

.proj-meta-value {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.75);
    font-family: var(--font-body);
    font-weight: 700;
    letter-spacing: 0.02em;
}

.proj-meta-sep {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
}

.proj-scroll-cue {
    position: absolute;
    bottom: 36px;
    right: 80px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0;
}

.proj-scroll-cue span {
    font-size: 7px;
    letter-spacing: 0.25em;
    color: rgba(255, 255, 255, 0.2);
    text-transform: uppercase;
    font-family: var(--font-body);
    writing-mode: vertical-rl;
}

.proj-cue-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, rgba(194, 209, 15, 0.5), transparent);
    animation: cuePulse 2s ease-in-out infinite;
}

@keyframes cuePulse {

    0%,
    100% {
        opacity: 0.3
    }

    50% {
        opacity: 1
    }
}

/* ── SECTIONS ───────────────────────────────────────────────────────── */
.proj-section {
    position: relative;
    padding: 140px 0;
    overflow: hidden;
}

.proj-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 80px;
    position: relative;
    z-index: 2;
}

.proj-section-label {
    font-size: 9px;
    letter-spacing: 0.28em;
    color: rgba(194, 209, 15, 0.5);
    text-transform: uppercase;
    font-family: var(--font-body);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 32px;
}

.proj-section-label::after {
    content: '';
    flex: 1;
    max-width: 60px;
    height: 1px;
    background: rgba(194, 209, 15, 0.2);
}

/* ── PROBLEMA ───────────────────────────────────────────────────────── */
#proj-problem {
    background: #010101;
}

#proj-problem::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06) 40%, rgba(255, 255, 255, 0.06) 60%, transparent);
}

.problem-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.problem-title {
    font-family: var(--font-display);
    font-size: clamp(36px, 4vw, 56px);
    font-weight: 800;
    text-transform: uppercase;
    line-height: 0.9;
    letter-spacing: -0.02em;
    color: #fff;
    margin-bottom: 28px;
}

.problem-text {
    font-size: 16px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.55);
    font-family: var(--font-body);
    margin-bottom: 20px;
}

.problem-highlight {
    border-left: 2px solid rgba(194, 209, 15, 0.4);
    padding-left: 20px;
    margin-top: 32px;
}

.problem-highlight p {
    font-size: 18px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.75);
    font-family: var(--font-body);
    font-style: italic;
}

.problem-right {
    padding-top: 12px;
}

.situation-box {
    background: rgba(194, 209, 15, 0.025);
    border: 1px solid rgba(194, 209, 15, 0.1);
    border-radius: 4px;
    padding: 36px;
}

.situation-box h4 {
    font-family: var(--font-display);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(194, 209, 15, 0.5);
    margin-bottom: 24px;
}

.situation-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.situation-item:last-child {
    border-bottom: none;
}

.sit-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(255, 60, 60, 0.1);
    border: 1px solid rgba(255, 60, 60, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    flex-shrink: 0;
    margin-top: 2px;
    color: rgba(255, 100, 100, 0.7);
}

.sit-text {
    font-size: 13px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.5);
    font-family: var(--font-body);
}



/* ── FOTO PARALLAX DIVISORE ─────────────────────────────────────────── */
.proj-photo-divider {
    height: 60vh;
    position: relative;
    overflow: hidden;
}

.proj-photo-inner {
    position: absolute;
    inset: -20%;
    will-change: transform;
}

.proj-photo-inner::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(194, 209, 15, 0.08) 1px, transparent 1px);
    background-size: 30px 30px;
}

.photo-div-label {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to bottom, rgba(1, 1, 1, 0.3), rgba(1, 1, 1, 0.1), rgba(1, 1, 1, 0.3));
}

.photo-div-label span {
    font-family: var(--font-display);
    font-size: clamp(80px, 12vw, 160px);
    font-weight: 800;
    color: rgba(255, 255, 255, 0.04);
    text-transform: uppercase;
    letter-spacing: -0.04em;
    user-select: none;
}

/* ── SOLUZIONE ──────────────────────────────────────────────────────── */
#proj-solution {
    background: #080808;
}

.solution-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.solution-title {
    font-family: var(--font-display);
    font-size: clamp(36px, 4vw, 56px);
    font-weight: 800;
    text-transform: uppercase;
    line-height: 0.9;
    letter-spacing: -0.02em;
    color: #fff;
    margin-bottom: 28px;
}

.solution-text {
    font-size: 16px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.55);
    font-family: var(--font-body);
    margin-bottom: 20px;
}

.solution-steps {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.solution-step {
    display: flex;
    gap: 24px;
    padding: 24px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.solution-step:last-child {
    border-bottom: none;
}

.step-num {
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 800;
    color: rgba(194, 209, 15, 0.4);
    letter-spacing: 0.1em;
    min-width: 28px;
    padding-top: 3px;
}


.step-title {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 8px;
    letter-spacing: 0.03em;
}

.step-desc {
    font-size: 13px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.45);
    font-family: var(--font-body);
}

/* ── RISULTATI ──────────────────────────────────────────────────────── */
#proj-results {
    background: #010101;
    overflow: visible;
}

#proj-results::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(194, 209, 15, 0.04) 0%, transparent 70%);
    pointer-events: none;
}

.results-title {
    font-family: var(--font-display);
    font-size: clamp(36px, 4vw, 56px);
    font-weight: 800;
    text-transform: uppercase;
    line-height: 0.9;
    letter-spacing: -0.02em;
    color: #fff;
    margin-bottom: 64px;
    max-width: 500px;
}

.results-numbers {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px;
    margin-bottom: 80px;
}

.result-num-card {
    background: rgba(194, 209, 15, 0.02);
    border: 1px solid rgba(194, 209, 15, 0.08);
    padding: 48px 40px;
    position: relative;
    overflow: hidden;
    min-width: 0;
}

.result-num-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #C2D10F, transparent);
    opacity: 0;
    transition: opacity 0.4s;
}

.result-num-card:hover::before {
    opacity: 1;
}

.rn-value {
    font-family: var(--font-display);
    font-size: clamp(40px, 4vw, 72px);
    font-weight: 800;
    color: #C2D10F;
    line-height: 1;
    display: block;
    margin-bottom: 12px;
    letter-spacing: -0.03em;
    white-space: nowrap;
}

.rn-value.long-text {
    font-size: clamp(28px, 3.5vw, 54px);
}

.rn-value.no-wrap {
    white-space: nowrap;
}


.rn-label {
    font-size: 11px;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.35);
    text-transform: uppercase;
    font-family: var(--font-body);
    display: block;
    margin-bottom: 8px;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.rn-desc {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.25);
    line-height: 1.5;
    font-family: var(--font-body);
}

.results-narrative {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.results-narrative p {
    font-size: 20px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.55);
    font-family: var(--font-body);
    margin-bottom: 16px;
}

.results-narrative strong {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
}

/* ── MOCKUP ─────────────────────────────────────────────────────────── */
#proj-mockup {
    background: #060606;
    padding: 120px 0;
}

.mockup-label {
    font-size: 9px;
    letter-spacing: 0.28em;
    color: rgba(194, 209, 15, 0.4);
    text-transform: uppercase;
    font-family: var(--font-body);
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
}

.mockup-frame {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 80px;
    position: relative;
}

.mockup-frame::after {
    content: '';
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 80px;
    background: radial-gradient(ellipse, rgba(194, 209, 15, 0.15) 0%, transparent 70%);
    filter: blur(20px);
    pointer-events: none;
}

.mockup-img {
    width: 100%;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: block;
    background: #0d0d0d;
    overflow: hidden;
    position: relative;
    will-change: transform;
}

.mockup-placeholder {
    width: 100%;
    height: 560px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.mockup-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(194, 209, 15, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(194, 209, 15, 0.04) 1px, transparent 1px);
    background-size: 40px 40px;
}

.mockup-placeholder-text {
    font-family: var(--font-display);
    font-size: 11px;
    letter-spacing: 0.3em;
    color: rgba(194, 209, 15, 0.2);
    text-transform: uppercase;
    position: relative;
    z-index: 1;
}

.mockup-chrome {
    background: rgba(20, 20, 20, 0.9);
    border-radius: 8px 8px 0 0;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.chrome-dots {
    display: flex;
    gap: 6px;
}

.chrome-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.chrome-url {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    padding: 4px 12px;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.25);
    font-family: var(--font-body);
    letter-spacing: 0.02em;
}

/* ── PROGETTO SUCCESSIVO ────────────────────────────────────────────── */
#proj-next {
    padding: 120px 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-decoration: none;
    transition: background 0.3s ease;
    position: relative;
    overflow: hidden;
}

#proj-next::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(194, 209, 15, 0.02);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

#proj-next:hover::before {
    transform: scaleX(1);
}

.next-label {
    font-size: 9px;
    letter-spacing: 0.25em;
    color: rgba(255, 255, 255, 0.25);
    text-transform: uppercase;
    font-family: var(--font-body);
    display: block;
    margin-bottom: 10px;
}

.next-title {
    font-family: var(--font-display);
    font-size: clamp(32px, 4vw, 56px);
    font-weight: 800;
    text-transform: uppercase;
    color: #fff;
    letter-spacing: -0.02em;
    line-height: 0.9;
    transition: color 0.2s;
}

#proj-next:hover .next-title {
    color: #C2D10F;
}

.next-arrow {
    width: 60px;
    height: 60px;
    border: 1px solid rgba(194, 209, 15, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: rgba(194, 209, 15, 0.5);
    transition: all 0.3s;
    flex-shrink: 0;
}

#proj-next:hover .next-arrow {
    border-color: #C2D10F;
    color: #C2D10F;
    background: rgba(194, 209, 15, 0.06);
    transform: translateX(8px);
}

/* ── REVEAL ─────────────────────────────────────────────────────────── */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
}

.reveal-fade {
    opacity: 0;
}

/* ── TABLET ─────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .result-num-card {
        padding: 30px 20px;
    }

    .rn-value {
        font-size: clamp(36px, 5vw, 60px);
    }
}

/* ── MOBILE ─────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .proj-container {
        padding: 0 24px;
    }

    .proj-section {
        padding: 60px 0;
    }

    .problem-grid,
    .solution-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .proj-hero-meta {
        flex-wrap: wrap;
        gap: 20px;
    }

    #proj-next {
        padding: 52px 24px;
    }

    .mockup-frame {
        padding: 0 24px;
    }

    #proj-progress {
        display: none;
    }

    .project-back {
        font-size: 8px;
    }
}

/* ══════════════════════════════════════════════════════════════════════
   HERO DESKTOP — IMMAGINE IN ALTO, TESTO SOTTO
   ══════════════════════════════════════════════════════════════════════ */

/* ── Desktop: immagine chiara in alto, info dark sotto ──────────────── */
@media (min-width: 1025px) {
    #proj-hero {
        height: auto !important;
        min-height: 100svh;
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        overflow: visible !important;
        position: relative;
    }

    #proj-hero-visual {
        position: relative;
        width: 100%;
        height: 62vh;
        min-height: 420px;
        overflow: hidden;
        flex-shrink: 0;
    }

    #proj-hero-photo {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        min-height: unset !important;
    }

    #proj-hero-overlay {
        background:
            linear-gradient(to bottom, rgba(1, 1, 1, 0.05) 0%, rgba(1, 1, 1, 0.1) 55%, rgba(1, 1, 1, 0.92) 100%) !important;
    }

    #proj-hero-info {
        background: #010101;
        padding: 52px 80px 72px;
        display: grid;
        grid-template-columns: 1fr 360px;
        gap: 80px;
        align-items: end;
        position: relative;
        z-index: 2;
        flex: 1;
        border-top: 1px solid rgba(255, 255, 255, 0.04);
    }

    #proj-hero-content {
        position: static !important;
        padding: 0 !important;
        width: 100% !important;
        z-index: auto;
    }

    .proj-hero-title {
        font-size: clamp(64px, 7vw, 112px) !important;
        margin-bottom: 36px !important;
    }

    /* Meta: griglia 2×2 sulla colonna destra */
    .proj-hero-meta {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 28px 24px !important;
        align-items: start;
        flex-direction: unset;
    }

    .proj-meta-sep {
        display: none !important;
    }

    /* Scroll cue nascosto: su desktop il layout mostra già il contenuto sotto */
    .proj-scroll-cue {
        display: none !important;
    }
}

/* ── Mobile/Tablet: overlay originale ──────────────────────────────── */
@media (max-width: 1024px) {
    #proj-hero {
        height: 100svh;
        position: relative;
        overflow: hidden;
    }

    #proj-hero-visual {
        position: absolute;
        inset: 0;
    }

    #proj-hero-photo {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
    }

    #proj-hero-overlay {
        position: absolute;
        inset: 0;
        z-index: 1;
        background:
            linear-gradient(to top, rgba(1, 1, 1, 0.95) 0%, rgba(1, 1, 1, 0.5) 40%, rgba(1, 1, 1, 0.1) 100%),
            linear-gradient(to right, rgba(1, 1, 1, 0.4) 0%, transparent 60%);
    }

    #proj-hero-info {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 2;
        display: block;
        padding: 0 80px 72px;
    }

    #proj-hero-content {
        position: static !important;
        padding: 0 !important;
        width: 100% !important;
    }

    .proj-hero-meta {
        margin-top: 28px;
        flex-wrap: wrap;
        gap: 20px;
    }

    /* Nascondi scroll cue — si sovrapponeva al testo hero */
    .proj-scroll-cue {
        display: none !important;
    }
}

/* ── SCROLL SNAP mobile — sezioni "bloccate" ────────────────────────── */
@media (max-width: 768px) {
    html {
        scroll-snap-type: y mandatory;
    }

    #proj-hero,
    #proj-problem,
    #proj-solution,
    #proj-results,
    #proj-mockup,
    #proj-next {
        scroll-snap-align: start;
        scroll-snap-stop: always;
        min-height: 100svh;
    }
}

@media (max-width: 768px) {
    #proj-hero-info {
        padding: 0 24px 48px !important;
    }
}

/* ── CHARTS (inline sotto i risultati) ──────────────────────────────── */
#proj-charts {
    margin-top: 72px;
    padding-top: 48px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.charts-inline-label {
    font-size: 11px;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    font-family: var(--font-body);
    margin-bottom: 28px;
}

.charts-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

/* ── Card ── */
.chart-card {
    flex: 1 1 260px;
    min-width: 220px;
    background: #080808;
    border: 1px solid rgba(255, 255, 255, 0.07);
    padding: 36px 28px 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    opacity: 0;
    position: relative;
    transition: border-color 0.4s ease, transform 0.35s ease;
}

/* Accent top line */
.chart-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
            transparent 0%,
            var(--accent-color, #C2D10F) 50%,
            transparent 100%);
    opacity: 0.55;
}

/* Inner corner glow */
.chart-card::after {
    content: '';
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: 120px;
    background: radial-gradient(ellipse, var(--accent-color, #C2D10F) 0%, transparent 70%);
    opacity: 0.04;
    pointer-events: none;
}

.chart-card:hover {
    border-color: rgba(194, 209, 15, 0.22);
    transform: translateY(-4px);
}

/* ── Ring SVG ── */
.chart-ring-svg {
    width: 160px;
    height: 160px;
    overflow: visible;
}

/* ── Labels ── */
.chart-label {
    font-size: 9px;
    letter-spacing: 0.28em;
    color: rgba(194, 209, 15, 0.5);
    text-transform: uppercase;
    font-family: var(--font-body);
    font-weight: 700;
    text-align: center;
    width: 100%;
}

.chart-sublabel {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.2);
    font-family: var(--font-body);
    text-align: center;
    line-height: 1.55;
    margin-top: -8px;
}

/* ── Vertical bars ── */
.chart-vbars {
    display: flex;
    gap: 14px;
    align-items: flex-end;
    width: 100%;
}

.chart-vbar-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.chart-vbar-topval {
    font-size: 14px;
    font-weight: 700;
    font-family: var(--font-display);
    letter-spacing: 0.04em;
    text-align: center;
    min-height: 20px;
    line-height: 1;
}

.chart-vbar-track {
    width: 100%;
    height: 140px;
    background: rgba(255, 255, 255, 0.025);
    border-radius: 4px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    position: relative;
}

/* Grid lines inside bar */
.chart-vbar-track::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(to top,
            transparent,
            transparent calc(25% - 1px),
            rgba(255, 255, 255, 0.04) calc(25% - 1px),
            rgba(255, 255, 255, 0.04) 25%);
    pointer-events: none;
    z-index: 1;
}

.chart-vbar-fill {
    width: 100%;
    height: 0;
    border-radius: 3px 3px 0 0;
    position: relative;
    z-index: 2;
}

.chart-vbar-name {
    font-size: 8px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.2);
    font-family: var(--font-body);
    text-align: center;
    line-height: 1.4;
}

/* ── Radar chart ── */
.chart-radar-svg {
    width: 100%;
    height: auto;
    overflow: visible;
}

.radar-grid-ring {
    fill: none;
    stroke: rgba(255, 255, 255, 0.07);
    stroke-width: 1;
}

.radar-axis {
    stroke: rgba(255, 255, 255, 0.10);
    stroke-width: 1;
}

.radar-label {
    fill: rgba(255, 255, 255, 0.40);
    font-size: 8px;
    font-family: var(--font-body, sans-serif);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.radar-before {
    fill: rgba(255, 255, 255, 0.03);
    stroke: rgba(255, 255, 255, 0.18);
    stroke-width: 1.5;
    stroke-dasharray: 4 3;
}

.radar-after {
    stroke: var(--accent-color, #C2D10F);
    stroke-width: 2;
    filter: drop-shadow(0 0 7px rgba(194, 209, 15, 0.45));
}

@media (max-width: 768px) {

    /* ── Charts mobile ── */
    #proj-charts {
        margin-top: 48px;
        padding-top: 36px;
    }

    .charts-grid {
        flex-direction: column;
        gap: 16px;
    }

    .chart-card {
        flex: 1 1 100%;
        min-width: unset;
        width: 100%;
        padding: 28px 20px 22px;
    }

    /* Barre: track più visibile, altezza ridotta */
    .chart-vbar-track {
        height: 110px;
        background: rgba(255, 255, 255, 0.07);
    }

    .chart-vbars {
        gap: 10px;
    }

    .chart-vbar-topval {
        font-size: 12px;
    }

    .chart-vbar-name {
        font-size: 7px;
    }

    /* Ring: SVG più piccolo */
    .chart-ring-svg {
        width: 140px;
        height: 140px;
    }

    /* Radar: più spazio */
    .chart-radar-svg {
        max-width: 280px;
        margin: 0 auto;
        display: block;
    }

    /* Labels grafici */
    .chart-label {
        font-size: 8px;
        letter-spacing: 0.22em;
    }

    .chart-sublabel {
        font-size: 10px;
    }

    /* ── Mockup mobile ── */
    #proj-mockup {
        padding: 72px 0 60px;
    }

    .mockup-label {
        margin-bottom: 36px;
    }

    .mockup-screen-item {
        aspect-ratio: 4 / 3;
    }

    .mockup-controls {
        margin-top: 16px;
        gap: 10px;
    }

    /* ── Results numbers: 1 colonna su mobile ── */
    .results-numbers {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 48px;
    }

    .result-num-card {
        padding: 20px 16px;
    }

    .rn-value {
        font-size: clamp(36px, 10vw, 52px);
    }

    .rn-value.long-text {
        font-size: clamp(26px, 8vw, 38px);
    }

    /* ── Hero meta: colonne su mobile ── */
    .proj-hero-meta {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 16px 20px;
        flex-wrap: unset;
    }

    .proj-meta-sep {
        display: none;
    }

    /* ── Next project ── */
    .next-title {
        font-size: clamp(28px, 8vw, 48px);
    }
}