/* ==========================================================================
   Pagine articolo del blog: stesso design delle sezioni rinnovate del sito
   (titoli di css/section-head.css, schede con angoli ampi, arancione in
   sfumatura, parole chiave azzurre).
   Unico foglio di stile degli articoli (gli stili interni alle pagine sono stati tolti).
   Classe nel markup: .article-head (testata). Riquadro finale: css/cta-band.css
   ========================================================================== */

/* ---------- Barra di avanzamento lettura ---------- */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    z-index: 9999;
    background: linear-gradient(90deg, #fbb468, #ef7f36);
    border-radius: 0 4px 4px 0;
    box-shadow: 0 2px 8px -2px rgba(239, 127, 54, .6);
    transition: width .1s linear;
}

/* ---------- Testata: percorso, categoria, titolo, autore e tempo di lettura ---------- */
.article-head {
    max-width: 880px;
    margin: 0 auto 44px;
    text-align: center;
}

.article-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    font-size: 13px;
    color: #8b8b92;
    margin-bottom: 20px;
}

    .article-breadcrumb a {
        color: #6b6b73;
        text-decoration: none;
        transition: color .2s ease;
    }

        .article-breadcrumb a:hover {
            color: #ef7f36;
        }

    .article-breadcrumb span {
        margin: 0 10px;
        color: #d6d0c9;
    }

/* categoria: stessa etichetta a pillola dei titoli di sezione (.mk-eyebrow) */
.article-category {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #ef7f36;
    background: #fff;
    border: 1px solid #fde3cc;
    border-radius: 30px;
    padding: 6px 14px;
    margin-bottom: 18px;
    box-shadow: 0 6px 16px -10px rgba(239, 127, 54, .6);
}

    .article-category::before {
        content: "";
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: #3ddc84;
        box-shadow: 0 0 0 3px rgba(61, 220, 132, .2);
    }

.article-head .h1 {
    font-size: 40px;
    font-weight: 600;
    line-height: 1.22;
    letter-spacing: -.02em;
    color: #2f2f35;
    margin: 0 0 20px;
}

.article-meta-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    color: #6b6b73;
    font-size: 13.5px;
}

    .article-meta-bar span {
        display: flex;
        align-items: center;
        gap: 6px;
        background: #f7f5f2;
        border-radius: 30px;
        padding: 6px 14px;
    }

    .article-meta-bar .ion {
        font-size: 15px;
        color: #21c6db;
    }

/* ---------- Immagine di copertina: sfumatura arancione sfalsata dietro, come i video ---------- */
.media-frame.blog-hero-media {
    position: relative;
    max-width: 980px;
    margin: 0 auto 3.5rem;
}

    .media-frame.blog-hero-media::before {
        content: "";
        position: absolute;
        inset: 18px -18px -18px 18px;
        border-radius: 26px;
        background: linear-gradient(135deg, #fbb468, #ef7f36);
        opacity: .9;
    }

    .media-frame.blog-hero-media > img {
        position: relative;
        border-radius: 22px;
        box-shadow: 0 24px 48px -24px rgba(16, 42, 67, .55);
    }

/* ---------- Corpo dell'articolo ---------- */
.article-body {
    max-width: 780px;
    margin: 0 auto;
    padding: 56px 20px 0;
    color: #4a4a52;
    font-size: 1.06rem;
    line-height: 1.85;
}

    .article-body h2 {
        position: relative;
        font-size: 1.85rem;
        font-weight: 600;
        line-height: 1.3;
        letter-spacing: -.02em;
        color: #2f2f35;
        margin-top: 60px;
        margin-bottom: 18px;
        padding-top: 18px;
    }

        /* trattino in sfumatura sopra ogni titolo */
        .article-body h2::before {
            content: "";
            position: absolute;
            left: 0;
            top: 0;
            width: 44px;
            height: 4px;
            border-radius: 4px;
            background: linear-gradient(90deg, #fbb468, #ef7f36);
        }

    .article-body h3 {
        font-size: 1.25rem;
        font-weight: 600;
        letter-spacing: -.01em;
        color: #2f2f35;
        margin-top: 34px;
        margin-bottom: 10px;
    }

    .article-body h4 {
        color: #2f2f35;
    }

    .article-body p {
        margin-bottom: 22px;
    }

    .article-body b,
    .article-body strong {
        color: #2f2f35;
        font-weight: 600;
    }

    .article-body p a:not(.btn),
    .article-body li a:not(.btn) {
        color: #ef7f36;
        font-weight: 500;
        text-decoration: underline;
        text-decoration-color: rgba(239, 127, 54, .35);
        text-underline-offset: 3px;
        transition: text-decoration-color .2s ease;
    }

        .article-body p a:not(.btn):hover,
        .article-body li a:not(.btn):hover {
            text-decoration-color: #ef7f36;
        }

    /* paragrafo d'apertura: più grande */
    .article-body .lead-paragraph {
        font-size: 1.28rem;
        line-height: 1.7;
        color: #2f2f35;
        margin-bottom: 32px;
    }

    /* elenchi semplici: pallino arancione */
    .article-body ul:not(.check-list) {
        list-style: none;
        padding-left: 0;
        margin: 0 0 26px;
    }

        .article-body ul:not(.check-list) > li {
            position: relative;
            padding-left: 24px;
            margin-bottom: 8px;
        }

            .article-body ul:not(.check-list) > li::before {
                content: "";
                position: absolute;
                left: 4px;
                top: .72em;
                width: 8px;
                height: 8px;
                border-radius: 50%;
                background: linear-gradient(135deg, #fbb468, #ef7f36);
            }

            .article-body ul:not(.check-list) > li > p {
                margin: 0;
            }

/* ---------- Checklist: scheda con spunte azzurre ---------- */
.check-list {
    list-style: none;
    background: #fafbfd;
    border: 1px solid #eef0f5;
    border-radius: 18px;
    padding: 10px 22px;
    margin: 12px 0 28px;
}

    .check-list li {
        position: relative;
        padding: 12px 0 12px 38px;
        border-bottom: 1px solid #eef0f5;
        font-size: 1rem;
        line-height: 1.6;
    }

        .check-list li:last-child {
            border-bottom: none;
        }

        .check-list li::before {
            content: "\2713";
            position: absolute;
            left: 0;
            top: 12px;
            width: 24px;
            height: 24px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 13px;
            font-weight: 700;
            color: #21c6db;
            background: #e6f9fb;
        }

/* ---------- Citazione ---------- */
.pullquote {
    position: relative;
    background: linear-gradient(120deg, #fff 0%, #fff7ef 100%);
    border: 1px solid #fde3cc;
    border-radius: 22px;
    padding: 34px 36px 30px;
    margin: 44px 0;
    font-size: 1.15rem;
    line-height: 1.75;
    color: #2f2f35;
    box-shadow: 0 16px 36px -24px rgba(239, 127, 54, .45);
}

    .pullquote::before {
        content: "\201C";
        position: absolute;
        top: -26px;
        left: 28px;
        width: 52px;
        height: 52px;
        border-radius: 16px;
        display: flex;
        align-items: flex-end;
        justify-content: center;
        padding-bottom: 2px;
        font-family: Georgia, serif;
        font-size: 46px;
        line-height: 1;
        color: #fff;
        background: linear-gradient(135deg, #fbb468, #ef7f36);
        box-shadow: 0 10px 20px -10px rgba(239, 127, 54, .8);
    }

    .pullquote h3 {
        margin-top: 4px;
    }

    .pullquote strong {
        display: block;
        margin-top: 16px;
        font-size: 12px;
        font-weight: 600;
        letter-spacing: .08em;
        text-transform: uppercase;
        color: #21c6db;
    }

/* ---------- Box informativo ---------- */
.info-box {
    background: #fff8f1;
    border: 1px solid #fde3cc;
    border-left: 4px solid #faa752;
    border-radius: 16px;
    padding: 22px 26px;
    margin: 36px 0;
}

    .info-box .info-title {
        font-size: 12px;
        font-weight: 600;
        letter-spacing: .08em;
        text-transform: uppercase;
        color: #ef7f36;
        margin-bottom: 10px;
    }

    .info-box p {
        margin: 0;
        color: #4a4a52;
    }

/* ---------- Numeri ---------- */
.stat-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 40px 0;
}

    .stat-strip .stat-item {
        background: #fff;
        text-align: center;
        border: 1px solid #f1ece6;
        border-radius: 18px;
        padding: 26px 18px 22px;
        box-shadow: 0 12px 28px -20px rgba(16, 42, 67, .35);
    }

    .stat-strip .stat-number {
        display: block;
        font-size: 2.1rem;
        font-weight: 700;
        line-height: 1;
        letter-spacing: -.02em;
        background: linear-gradient(135deg, #fbb468, #ef7f36);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
    }

    .stat-strip .stat-label {
        display: block;
        font-size: 12px;
        line-height: 1.5;
        letter-spacing: .06em;
        text-transform: uppercase;
        color: #6b6b73;
        margin-top: 10px;
    }

/* ---------- Passaggi numerati: riquadro arancione come le icone delle schede ---------- */
.step-box {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    background: #fff;
    border: 1px solid #f1ece6;
    border-radius: 18px;
    padding: 18px 20px;
    margin-bottom: 14px;
    box-shadow: 0 10px 26px -20px rgba(20, 30, 60, .3);
    transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s ease;
}

    .step-box:hover {
        transform: translateY(-3px);
        box-shadow: 0 18px 34px -20px rgba(239, 127, 54, .45);
    }

.step-number {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #fbb468, #ef7f36);
    box-shadow: 0 10px 20px -10px rgba(239, 127, 54, .8);
}

.step-content h4 {
    font-size: 1.02rem;
    font-weight: 600;
    color: #2f2f35;
    margin: 9px 0 4px;
}

.step-content p {
    margin: 0;
    font-size: .95rem;
    line-height: 1.7;
    color: #5f5f68;
}

.step-content ul {
    margin: 8px 0 0 !important;
}

/* ---------- Schede KPI ---------- */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 36px 0;
}

.kpi-card {
    position: relative;
    background: #fff;
    border: 1px solid #f1ece6;
    border-radius: 18px;
    padding: 22px 20px;
    overflow: hidden;
    box-shadow: 0 12px 28px -20px rgba(16, 42, 67, .35);
    transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s ease;
}

    .kpi-card::before {
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, #faa752, #ef7f36);
    }

    .kpi-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 22px 40px -22px rgba(239, 127, 54, .5);
    }

    .kpi-card h4 {
        font-size: 1rem;
        font-weight: 600;
        color: #2f2f35;
        margin: 0 0 10px;
    }

    .kpi-card p {
        font-size: .92rem;
        line-height: 1.65;
        color: #5f5f68;
        margin: 0;
    }

/* ---------- Formula ---------- */
.formula-box {
    background: #1f2430;
    color: #fff;
    border-radius: 16px;
    padding: 18px 24px;
    margin: 18px 0 28px;
    font-family: monospace;
    font-size: .92rem;
    text-align: center;
    letter-spacing: .3px;
    box-shadow: 0 16px 32px -22px rgba(16, 42, 67, .7);
}

    .formula-box span {
        color: #faa752;
    }

/* ---------- Scheda Instagram a lato del testo ---------- */
.ig-side-card {
    display: block;
    float: right;
    width: 220px;
    margin: 4px 0 20px 28px;
    background: #fff;
    border: 1px solid #f1ece6;
    border-radius: 18px;
    padding: 22px 18px;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 12px 28px -20px rgba(16, 42, 67, .35);
    transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s ease, border-color .35s ease;
}

    .ig-side-card:hover {
        text-decoration: none;
        transform: translateY(-4px);
        border-color: #fde3cc;
        box-shadow: 0 22px 40px -22px rgba(239, 127, 54, .5);
    }

    .ig-side-card .icon-instagram {
        width: 46px;
        height: 46px;
        border-radius: 14px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 1.3rem;
        color: #fff;
        background: linear-gradient(135deg, #fbb468, #ef7f36);
        box-shadow: 0 10px 20px -10px rgba(239, 127, 54, .8);
    }

    .ig-side-card .ig-side-card-label {
        display: block;
        font-size: .75rem;
        font-weight: 700;
        letter-spacing: 1px;
        text-transform: uppercase;
        color: #8b8b92;
        margin-top: 10px;
    }

    .ig-side-card .ig-side-card-title {
        display: block;
        font-size: .92rem;
        font-weight: 600;
        line-height: 1.35;
        color: #2f2f35;
        margin-top: 8px;
    }

    .ig-side-card .ig-side-card-cta {
        display: block;
        font-size: .82rem;
        font-weight: 500;
        color: #ef7f36;
        margin-top: 12px;
    }

/* ---------- Tag ---------- */
.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 40px;
}

    .article-tags a {
        display: inline-block;
        padding: 7px 15px;
        border-radius: 30px;
        border: 1px solid #f1ece6;
        background: #fff;
        color: #5f5f68;
        font-size: 13px;
        font-weight: 500;
        text-decoration: none;
        transition: background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
    }

        .article-tags a:hover {
            border-color: transparent;
            background: linear-gradient(135deg, #fbb468, #ef7f36);
            color: #fff;
            box-shadow: 0 8px 18px -8px rgba(239, 127, 54, .8);
        }

/* ---------- Autore ---------- */
.author-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #fafbfd;
    border: 1px solid #eef0f5;
    border-radius: 22px;
    padding: 24px 26px;
    margin: 32px 0 0;
}

.author-avatar {
    flex-shrink: 0;
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    font-size: 1.5rem;
    color: #fff;
    background: linear-gradient(135deg, #fbb468, #ef7f36);
    box-shadow: 0 10px 20px -10px rgba(239, 127, 54, .8);
}

.author-info h5 {
    font-size: 1rem;
    font-weight: 600;
    color: #2f2f35;
    margin: 0 0 4px;
}

.author-info p {
    font-size: .9rem;
    line-height: 1.6;
    color: #6b6b73;
    margin: 0;
}

/* ---------- Articoli correlati ("Continua a leggere", schede: css/blog-cards.css) ---------- */
.related-section {
    padding: 60px 0 40px;
}

/* ---------- Schermi piccoli ---------- */
@media (max-width: 767.98px) {
    .article-head {
        margin-bottom: 32px;
    }

        .article-head .h1 {
            font-size: 28px;
        }

    .media-frame.blog-hero-media {
        margin-bottom: 2.5rem;
    }

        .media-frame.blog-hero-media::before {
            inset: 12px -10px -12px 10px;
            border-radius: 18px;
        }

        .media-frame.blog-hero-media > img {
            border-radius: 14px;
        }

    .article-body {
        padding: 36px 16px 0;
        font-size: 1rem;
    }

        .article-body h2 {
            font-size: 1.45rem;
            margin-top: 48px;
        }

        .article-body .lead-paragraph {
            font-size: 1.12rem;
        }

    .stat-strip,
    .kpi-grid {
        grid-template-columns: 1fr;
    }

    .pullquote {
        padding: 34px 22px 24px;
        font-size: 1.05rem;
    }

    .check-list {
        padding: 6px 16px;
    }

    .ig-side-card {
        float: none;
        width: 100%;
        margin: 0 0 24px;
    }

    .author-card {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    .step-box, .kpi-card, .ig-side-card {
        transition: none;
    }
}
