/* ══════════════════════════════════════════════
   PAGINA — ECOMMERCE BENCHMARK
══════════════════════════════════════════════ */
.benchmark-page { background: var(--dark); color: #fff; }
.benchmark-page .container { max-width: 1320px; }

/* ── HERO ── */
.bp-hero {
    position: relative; overflow: hidden;
    background: var(--dark);
    padding-block: 90px 64px;

    .bp-hero-grid {
        position: absolute; inset: 0; z-index: 0; pointer-events: none;
        background-image: linear-gradient(rgba(254,192,59,.022) 1px, transparent 1px),
                          linear-gradient(90deg, rgba(254,192,59,.022) 1px, transparent 1px);
        background-size: 52px 52px;
    }
    .bp-hero-glow {
        position: absolute; top: 50%; right: 4%; transform: translateY(-50%);
        width: 720px; height: 720px; max-width: 70vw; z-index: 0; pointer-events: none;
        background: radial-gradient(circle, rgba(252,139,0,.30) 0%, rgba(252,139,0,.07) 42%, transparent 70%);
    }
    .bp-hero-photo {
        position: absolute; top: 0; right: 0; bottom: 0; width: 52%; z-index: 1; pointer-events: none;
        img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block;
            /* sfuma a sinistra (verso il testo) e in basso (verso la sezione) */
            -webkit-mask-image:
                linear-gradient(to right,  rgba(0,0,0,0) 0%, #000 44%),
                linear-gradient(to bottom, #000 60%, rgba(0,0,0,0) 100%);
            -webkit-mask-composite: source-in;
            mask-image:
                linear-gradient(to right,  rgba(0,0,0,0) 0%, #000 44%),
                linear-gradient(to bottom, #000 60%, rgba(0,0,0,0) 100%);
            mask-composite: intersect;
            filter: brightness(.95) contrast(1.04);
        }
        /* rinforzo: fonde i bordi nel colore esatto dello sfondo */
        &::after {
            content: ''; position: absolute; inset: 0; pointer-events: none;
            background:
                linear-gradient(to right,  var(--dark) 0%, transparent 42%),
                linear-gradient(to bottom, transparent 52%, var(--dark) 100%);
        }
    }

    .container { position: relative; z-index: 2; }

    .bp-hero-in { max-width: 560px; padding-block: 40px 56px; }
    .bp-hero-h {
        font-family: var(--fd); font-weight: 900; font-size: clamp(40px,4vw,50px);
        line-height: .92; text-transform: uppercase; color: #fff; margin-bottom: 18px;
    }
    .bp-hero-lead { font-family: var(--fb); font-size: 17px; line-height: 1.7; color: rgba(255,255,255,.55); max-width: 480px; margin-bottom: 30px; }
    .bp-hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

    /* strip stato ricerca */
    .bp-status {
        position: relative; z-index: 2;
        background: rgba(15,15,15,.82); border: 1px solid rgba(255,255,255,.08);
        border-radius: var(--rl); padding: 24px 28px;
        backdrop-filter: blur(8px);
    }
    .bp-status-t { font-family: var(--fd); font-weight: 700; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
    .bp-status-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 28px; }
    .bp-stat {
        position: relative;
        &:not(:last-child)::after { content: ''; position: absolute; right: -14px; top: 4px; bottom: 4px; width: 1px; background: rgba(255,255,255,.08); }
        .bp-stat-n { font-family: var(--fd); font-weight: 900; font-size: 34px; line-height: 1; color: #fff; }
        .bp-stat-l { font-family: var(--fb); font-size: 13px; color: rgba(255,255,255,.45); margin-top: 6px; }
        &.bp-stat-prog .bp-stat-n { background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
        .bp-stat-bar { height: 5px; border-radius: 100px; background: rgba(255,255,255,.08); overflow: hidden; margin-top: 10px;
            i { display: block; height: 100%; width: var(--val); border-radius: 100px; background: var(--grad-gold); }
        }
    }
}

/* intestazione di sezione condivisa */
.benchmark-page .bp-sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.benchmark-page .bp-h3 { font-family: var(--fd); font-weight: 900; font-size: clamp(20px,2.4vw,30px); text-transform: none; color: #fff; }
.benchmark-page .bp-seeall { font-family: var(--fd); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.benchmark-page .bp-h2 { font-family: var(--fd); font-weight: 900; font-size: clamp(28px,3.4vw,46px); text-transform: none; color: #fff; line-height: 1; }
.benchmark-page .bp-sub { font-family: var(--fb); font-size: 15px; color: rgba(255,255,255,.5); margin-top: 12px; max-width: 560px; }

/* ── brand analizzati ── */
.bp-brands-sec { padding-block: 72px 56px; }
.bp-brands {
    display: flex; flex-wrap: wrap; align-items: stretch;
    background: var(--dark-2); border: 1px solid rgba(255,255,255,.06); border-radius: var(--rm); padding: 5px;
    .bp-brand {
        flex: 1 1 auto; text-align: center; padding: 15px 16px;
        font-family: var(--fd); font-weight: 800; font-size: 13px; letter-spacing: .12em; text-transform: uppercase;
        color: rgba(255,255,255,.72); white-space: nowrap; position: relative;
        &:not(:last-child)::after { content: ''; position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 1px; height: 18px; background: rgba(255,255,255,.1); }
    }
    @media (max-width: 600px) { .bp-brand { flex: 1 0 33%; &::after { display: none; } } }
}

/* la testata di sezione può ospitare titolo + sottotitolo a sinistra */
.benchmark-page .bp-sec-head > div { min-width: 0; }
.benchmark-page .bp-sec-head .bp-sub { margin-top: 8px; }

/* ── ULTIMI RISULTATI — griglia di card uguali ── */
.bp-results { padding-block: 56px 40px; }
.bp-results .bp-cards { margin-top: 30px; }

/* ── TUTTI GLI ALTRI ARTICOLI — griglia di card ── */
.bp-articles { padding-block: 40px; }
.bp-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-top: 30px;
    @media (max-width: 940px) { grid-template-columns: repeat(2,1fr); }
    @media (max-width: 560px) { grid-template-columns: 1fr; }
}
.bp-card {
    display: flex; flex-direction: column; overflow: hidden;
    background: var(--dark-2); border: 1px solid rgba(255,255,255,.07); border-radius: var(--rm);
    transition: border-color var(--t), transform var(--t);
    &:hover { border-color: rgba(254,192,59,.4); transform: translateY(-4px); }
    .bp-card-img {
        position: relative; aspect-ratio: 16/10; overflow: hidden;
        background: linear-gradient(150deg, rgba(254,192,59,.16), rgba(255,255,255,.02));
        border-bottom: 1px solid rgba(255,255,255,.06);
        img { width: 100%; height: 100%; object-fit: cover; display: block; }
    }
    .bp-card-tag { position: absolute; top: 10px; left: 10px; font-family: var(--fd); font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--dark); background: var(--grad-gold); border-radius: 100px; padding: 4px 9px; }
    .bp-card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
    .bp-card-t { font-family: var(--fd); font-weight: 800; font-size: 17px; color: #fff; line-height: 1.18; margin-bottom: 8px; }
    .bp-card-d { font-family: var(--fb); font-size: 13px; line-height: 1.55; color: rgba(255,255,255,.45); margin-bottom: 16px; }
    .bp-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; }
    .bp-card-meta { font-family: var(--fb); font-size: 12px; color: rgba(255,255,255,.4); }
    .bp-card-link { font-family: var(--fd); font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--gold); }
}
.bp-empty { font-family: var(--fb); color: rgba(255,255,255,.4); padding: 28px; text-align: center; background: var(--dark-2); border: 1px solid rgba(255,255,255,.06); border-radius: var(--rm); margin-top: 24px; }

/* ── guide ── */
.bp-guides { padding-block: 56px; }
.bp-guides-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px;
    @media (max-width: 900px) { grid-template-columns: 1fr 1fr; }
    @media (max-width: 520px) { grid-template-columns: 1fr; }
}
.bp-guide {
    display: block; background: var(--dark-2); border: 1px solid rgba(255,255,255,.07); border-radius: var(--rm); padding: 24px 22px;
    transition: border-color var(--t), transform var(--t);
    &:hover { border-color: rgba(254,192,59,.4); transform: translateY(-4px); }
    .bp-guide-ico { width: 44px; height: 44px; border-radius: 12px; background: var(--gold-dim); border: 1px solid rgba(254,192,59,.25); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 16px;
        svg { width: 22px; height: 22px; }
    }
    .bp-guide-img { display: block; aspect-ratio: 16/10; border-radius: var(--r); overflow: hidden; background: var(--dark-4); border: 1px solid rgba(255,255,255,.06); margin-bottom: 16px;
        img { width: 100%; height: 100%; object-fit: cover; display: block; }
    }
    .bp-guide-t { font-family: var(--fd); font-weight: 800; font-size: 16px; color: #fff; line-height: 1.2; margin-bottom: 8px; }
    .bp-guide-d { font-family: var(--fb); font-size: 13px; line-height: 1.55; color: rgba(255,255,255,.45); margin-bottom: 14px; }
    .bp-guide-link { font-family: var(--fd); font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--gold); }
}

/* la CTA finale usa .cl-cta (definita in home.css) */
.benchmark-page .cl-cta { padding-block: 40px 90px; }

/* ── responsive hero ── */
@media (max-width: 900px) {
    .bp-hero { padding-top: 72px;
        .bp-hero-photo { width: 100%; opacity: .22;
            img { -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 90%); mask-image: linear-gradient(to bottom, #000 0%, transparent 90%); }
        }
        .bp-hero-glow { right: 50%; transform: translate(50%,-50%); top: 28%; }
        .bp-hero-in { max-width: 100%; }
        .bp-status-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
        .bp-stat:nth-child(2)::after { display: none; }
    }
    .bp-brands-sec { padding-top: 56px; }
}
@media (max-width: 480px) {
    .bp-hero .bp-status-grid { grid-template-columns: 1fr; }
    .bp-hero .bp-stat::after { display: none; }
}
