/* ═══════════════════════════════════════════════════════════════════════
   BLOG.CSS — Editorial Design System · Guidonia Marketing
   Ispirazione: Monocle, Kinfolk, The Gentlewoman
   ═══════════════════════════════════════════════════════════════════════ */

/* ── 1. ARTICLE HERO ─────────────────────────────────────────────────── */
.blog-hero {
    position: relative;
    width: 100%;
    height: clamp(380px, 55vh, 600px);
    overflow: hidden;
    background: var(--choco);
}

.blog-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    filter: brightness(0.72) saturate(0.9);
    transition: transform 8s ease;
}

.blog-hero:hover .blog-hero-img {
    transform: scale(1.03);
}

.blog-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(30, 20, 18, 0.15) 0%,
            rgba(30, 20, 18, 0.55) 70%,
            rgba(30, 20, 18, 0.85) 100%);
}

.blog-hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 3rem 4rem;
    max-width: 900px;
}

.blog-hero-category {
    display: inline-block;
    font-family: var(--fb);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--lemon);
    background: rgba(158, 166, 107, 0.15);
    border: 1px solid rgba(158, 166, 107, 0.3);
    padding: 5px 14px;
    border-radius: 100px;
    margin-bottom: 1.2rem;
}

.blog-hero-h1 {
    font-family: var(--ft);
    font-size: clamp(2rem, 4.5vw, 3.8rem);
    font-weight: 400;
    color: #f2efe4;
    line-height: 1.1;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    margin: 0 0 1.2rem;
    max-width: 800px;
}

.blog-hero-h1 em {
    font-family: var(--fd);
    font-style: italic;
    text-transform: none;
    font-weight: 300;
    color: rgba(242, 239, 228, 0.75);
}

.blog-hero-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.blog-hero-meta-item {
    font-family: var(--fb);
    font-size: 0.72rem;
    font-weight: 400;
    color: rgba(242, 239, 228, 0.6);
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.blog-hero-meta-sep {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(242, 239, 228, 0.35);
}

/* ── 2. ARTICLE LAYOUT ───────────────────────────────────────────────── */
.blog-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 5rem;
    max-width: 1100px;
    margin: 0 auto;
    padding: 5rem 4rem 7rem;
    align-items: start;
}

/* ── 3. ARTICLE BODY ─────────────────────────────────────────────────── */
.blog-body {
    min-width: 0;
}

.blog-body h2 {
    font-family: var(--ft);
    font-size: clamp(1.5rem, 2.5vw, 2.2rem);
    font-weight: 400;
    color: var(--choco);
    text-transform: uppercase;
    letter-spacing: -0.01em;
    line-height: 1.1;
    margin: 4rem 0 1.2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(77, 55, 53, 0.12);
}

.blog-body h3 {
    font-family: var(--fd);
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--choco);
    margin: 2.5rem 0 0.8rem;
    font-style: italic;
}

.blog-body p {
    font-family: var(--fb);
    font-size: 1.02rem;
    font-weight: 300;
    line-height: 1.85;
    color: rgba(77, 55, 53, 0.88);
    margin-bottom: 1.4rem;
}

.blog-body p strong {
    font-weight: 500;
    color: var(--choco);
}

.blog-body a {
    color: var(--olive);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color .2s;
}

.blog-body a:hover {
    color: var(--choco);
}

.blog-body ul,
.blog-body ol {
    margin: 1.5rem 0 1.5rem 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.blog-body ul li {
    font-family: var(--fb);
    font-size: 1rem;
    font-weight: 300;
    color: rgba(77, 55, 53, 0.88);
    line-height: 1.7;
    padding-left: 1.6rem;
    position: relative;
}

.blog-body ul li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--olive);
    font-size: 0.85rem;
}

.blog-body ol {
    counter-reset: ol-counter;
}

.blog-body ol li {
    font-family: var(--fb);
    font-size: 1rem;
    font-weight: 300;
    color: rgba(77, 55, 53, 0.88);
    line-height: 1.7;
    padding-left: 2.5rem;
    position: relative;
    counter-increment: ol-counter;
}

.blog-body ol li::before {
    content: counter(ol-counter, decimal-leading-zero);
    position: absolute;
    left: 0;
    font-family: var(--fd);
    font-size: 1rem;
    color: var(--olive);
    font-weight: 300;
}

/* ── 4. PULL QUOTE ───────────────────────────────────────────────────── */
.blog-pullquote {
    border-left: 3px solid var(--olive);
    margin: 3.5rem 0;
    padding: 1.5rem 2.5rem;
    background: rgba(158, 166, 107, 0.05);
    border-radius: 0 8px 8px 0;
}

.blog-pullquote blockquote {
    font-family: var(--fd);
    font-size: clamp(1.3rem, 2vw, 1.7rem);
    font-style: italic;
    font-weight: 300;
    color: var(--choco);
    line-height: 1.4;
    margin: 0 0 0.8rem;
}

.blog-pullquote cite {
    font-family: var(--fb);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--olive);
    font-style: normal;
}

/* ── 5. CALLOUT / CTA BOX ────────────────────────────────────────────── */
.blog-callout {
    background: var(--choco);
    border-radius: 12px;
    padding: 2.8rem 3rem;
    margin: 3.5rem 0;
    position: relative;
    overflow: hidden;
}

.blog-callout::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(158, 166, 107, 0.08);
}

.blog-callout-label {
    font-family: var(--fb);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--olive);
    margin-bottom: 0.8rem;
    display: block;
}

.blog-callout h3 {
    font-family: var(--ft);
    font-size: clamp(1.3rem, 2.5vw, 2rem);
    font-weight: 400;
    text-transform: uppercase;
    color: var(--cream);
    margin: 0 0 0.8rem;
    font-style: normal;
    line-height: 1.1;
}

.blog-callout p {
    font-family: var(--fb);
    font-size: 0.95rem;
    font-weight: 300;
    color: rgba(242, 239, 228, 0.65);
    line-height: 1.7;
    margin-bottom: 1.8rem;
}

.blog-callout .btn-cream {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* ── 6. INLINE IMAGE ─────────────────────────────────────────────────── */
.blog-img-block {
    margin: 3rem -2rem;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.blog-img-block img {
    width: 100%;
    height: clamp(260px, 35vw, 440px);
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.blog-img-block:hover img {
    transform: scale(1.02);
}

.blog-img-caption {
    display: block;
    font-family: var(--fb);
    font-size: 0.72rem;
    font-weight: 400;
    color: rgba(77, 55, 53, 0.5);
    letter-spacing: 0.06em;
    margin-top: 0.6rem;
    text-align: center;
    font-style: italic;
}

/* ── 7. STAT CARDS INLINE ────────────────────────────────────────────── */
.blog-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 3rem 0;
}

.blog-stat-card {
    background: #f2efe4;
    border-radius: 12px;
    padding: 1.5rem 1.2rem;
    border: 1px solid rgba(77, 55, 53, 0.08);
    text-align: center;
    transition: transform .3s ease, box-shadow .3s ease;
}

.blog-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
}

.blog-stat-num {
    font-family: var(--fd);
    font-size: 2rem;
    font-weight: 300;
    color: var(--choco);
    line-height: 1;
    display: block;
    margin-bottom: 6px;
}

.blog-stat-label {
    font-family: var(--fb);
    font-size: 0.68rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    color: rgba(77, 55, 53, 0.55);
    text-transform: uppercase;
    line-height: 1.4;
}

/* ── 8. TABLE ────────────────────────────────────────────────────────── */
.blog-table-wrap {
    overflow-x: auto;
    margin: 2.5rem 0;
    border-radius: 12px;
    border: 1px solid rgba(77, 55, 53, 0.1);
}

.blog-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--fb);
    font-size: 0.9rem;
}

.blog-table thead {
    background: var(--choco);
    color: var(--cream);
}

.blog-table thead th {
    padding: 1rem 1.2rem;
    text-align: left;
    font-weight: 500;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.blog-table tbody tr {
    border-bottom: 1px solid rgba(77, 55, 53, 0.07);
    transition: background .2s;
}

.blog-table tbody tr:hover {
    background: rgba(158, 166, 107, 0.05);
}

.blog-table td {
    padding: 0.9rem 1.2rem;
    font-weight: 300;
    color: rgba(77, 55, 53, 0.88);
    line-height: 1.5;
    vertical-align: top;
}

.blog-table td strong {
    font-weight: 500;
    color: var(--choco);
}

/* ── 9. SIDEBAR TOC ──────────────────────────────────────────────────── */
.blog-sidebar {
    position: sticky;
    top: 120px;
}

.blog-toc {
    background: #f7f5d5;
    border-radius: 12px;
    padding: 1.8rem;
    margin-bottom: 2rem;
}

.blog-toc-title {
    font-family: var(--fb);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--olive);
    margin-bottom: 1.2rem;
    display: block;
}

.blog-toc-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.blog-toc-list li a {
    font-family: var(--fb);
    font-size: 0.82rem;
    font-weight: 400;
    color: rgba(77, 55, 53, 0.7);
    text-decoration: none;
    line-height: 1.5;
    display: block;
    padding: 4px 0 4px 12px;
    border-left: 2px solid transparent;
    transition: color .2s, border-color .2s, padding-left .2s;
}

.blog-toc-list li a:hover,
.blog-toc-list li a.active {
    color: var(--choco);
    border-left-color: var(--olive);
    padding-left: 16px;
}

/* ── 10. SIDEBAR CTA BOX ─────────────────────────────────────────────── */
.blog-sidebar-cta {
    background: var(--choco);
    border-radius: 12px;
    padding: 1.8rem;
    margin-bottom: 2rem;
}

.blog-sidebar-cta-title {
    font-family: var(--ft);
    font-size: 1.3rem;
    font-weight: 400;
    text-transform: uppercase;
    color: var(--cream);
    margin-bottom: 0.8rem;
    line-height: 1.1;
}

.blog-sidebar-cta p {
    font-family: var(--fb);
    font-size: 0.82rem;
    font-weight: 300;
    color: rgba(242, 239, 228, 0.6);
    line-height: 1.65;
    margin-bottom: 1.2rem;
}

.blog-sidebar-cta .btn-cream {
    width: 100%;
    text-align: center;
    justify-content: center;
    font-size: 0.72rem;
    padding: 0.8rem 1rem;
}

/* ── 11. ARTICLE FOOTER / TAGS ───────────────────────────────────────── */
.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(77, 55, 53, 0.1);
}

.blog-tag {
    font-family: var(--fb);
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(77, 55, 53, 0.65);
    background: #f2efe4;
    padding: 5px 14px;
    border-radius: 100px;
    border: 1px solid rgba(77, 55, 53, 0.1);
    text-decoration: none;
    transition: background .2s, color .2s;
}

.blog-tag:hover {
    background: var(--choco);
    color: var(--cream);
}

/* ── 12. RELATED ARTICLES ────────────────────────────────────────────── */
.blog-related {
    background: #ebe8db;
    padding: 5rem 4rem;
}

.blog-related-title {
    font-family: var(--ft);
    font-size: clamp(1.5rem, 2.5vw, 2.5rem);
    font-weight: 400;
    text-transform: uppercase;
    color: var(--choco);
    margin-bottom: 3rem;
    letter-spacing: -0.01em;
}

.blog-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.blog-related-card {
    background: #f2efe4;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    transition: transform .3s ease, box-shadow .3s ease;
    display: block;
}

.blog-related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.blog-related-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.blog-related-body {
    padding: 1.4rem;
}

.blog-related-cat {
    font-family: var(--fb);
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--olive);
    margin-bottom: 0.5rem;
    display: block;
}

.blog-related-h3 {
    font-family: var(--fd);
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--choco);
    line-height: 1.35;
    font-style: italic;
    margin: 0;
}

/* ── 13. BLOG FULL FOOTER ────────────────────────────────────────────── */
.blog-site-footer {
    background: var(--choco);
}

/* ── 14. READING PROGRESS BAR ────────────────────────────────────────── */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(to right, var(--olive), var(--lemon));
    z-index: 9999;
    transition: width 0.1s linear;
}

/* ── 15. RESPONSIVE ──────────────────────────────────────────────────── */
@media (max-width: 1000px) {
    .blog-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 3rem 2rem 5rem;
    }

    .blog-sidebar {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }

    .blog-hero-content {
        padding: 2rem;
    }

    .blog-stats-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .blog-related-grid {
        grid-template-columns: 1fr 1fr;
    }

    .blog-img-block {
        margin: 2rem 0;
    }
}

@media (max-width: 640px) {
    .blog-hero-h1 {
        font-size: 1.8rem;
    }

    .blog-stats-row {
        grid-template-columns: 1fr;
    }

    .blog-related-grid {
        grid-template-columns: 1fr;
    }

    .blog-sidebar {
        grid-template-columns: 1fr;
    }

    .blog-callout {
        padding: 2rem 1.5rem;
    }
}