/**
 * BridgeWorks — Blog pubblico
 */

.blog-page-hero {
    padding: 7.25rem 1.25rem 3rem;
    background: linear-gradient(165deg, rgba(106, 171, 138, 0.12) 0%, var(--bianco, #fdfaf4) 45%, var(--carta, #ede8dc) 100%);
    border-bottom: 1px solid rgba(42, 92, 71, 0.1);
}

.blog-page-hero .container {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.blog-page-eyebrow {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--verde-m, #3d7260);
    margin: 0 0 0.75rem;
}

.blog-page-hero h1 {
    font-family: "Playfair Display", serif;
    font-size: clamp(1.85rem, 4vw, 2.65rem);
    line-height: 1.15;
    margin: 0 0 1rem;
    color: var(--nero, #1a1a18);
}

.blog-gradient {
    font-style: italic;
    color: var(--terracotta, #b87262);
}

.blog-page-lead {
    font-size: 1.05rem;
    color: var(--grigio, #6b6b60);
    margin: 0;
    line-height: 1.6;
}

.blog-list-section {
    padding: 2.5rem 1.25rem 4rem;
    background: var(--bianco, #fdfaf4);
}

.blog-list-section .container {
    max-width: 1100px;
    margin: 0 auto;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.blog-card {
    display: flex;
    flex-direction: column;
    background: var(--bianco, #fdfaf4);
    border: 1px solid rgba(42, 92, 71, 0.12);
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    box-shadow: 0 4px 20px rgba(26, 26, 24, 0.06);
}

.blog-card:hover {
    transform: translateY(-3px);
    border-color: rgba(106, 171, 138, 0.45);
    box-shadow: 0 12px 32px rgba(42, 92, 71, 0.1);
}

.blog-card-image {
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #d1fae5 0%, #fce7f3 100%);
    object-fit: cover;
    width: 100%;
}

.blog-card-image--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    opacity: 0.5;
}

.blog-card-body {
    padding: 1.25rem 1.35rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-meta {
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 0.5rem;
}

.blog-card-title {
    font-family: "DM Serif Display", serif;
    font-size: 1.15rem;
    line-height: 1.35;
    margin: 0 0 0.65rem;
    color: var(--verde, #2a5c47);
}

.blog-card-excerpt {
    font-size: 0.95rem;
    color: #4a635c;
    line-height: 1.55;
    margin: 0 0 1rem;
    flex: 1;
}

.blog-card-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--verde-m, #3d7260);
}

.blog-empty {
    text-align: center;
    padding: 3rem 1.5rem;
    background: #fff;
    border-radius: 16px;
    border: 1px dashed rgba(61, 155, 122, 0.35);
    color: #4a635c;
}

.blog-article-wrap {
    padding: 7.25rem 1.25rem 4rem;
}

.blog-article-wrap .container {
    max-width: 720px;
    margin: 0 auto;
}

.blog-back {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.9rem;
    color: #3d9b7a;
    text-decoration: none;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.blog-back:hover {
    text-decoration: underline;
}

.blog-article-header {
    margin-bottom: 2rem;
}

.blog-article-meta {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 0.75rem;
}

.blog-article-title {
    font-size: clamp(1.75rem, 4vw, 2.35rem);
    line-height: 1.2;
    margin: 0 0 1rem;
    color: #1a2e28;
}

.blog-article-lead {
    font-size: 1.1rem;
    color: #4a635c;
    line-height: 1.65;
    margin: 0;
}

.blog-article-featured {
    width: 100%;
    border-radius: 16px;
    margin-bottom: 2rem;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.blog-article-content {
    font-size: 1.05rem;
    line-height: 1.75;
    color: #334155;
}

.blog-article-content h2,
.blog-article-content h3 {
    color: #1a2e28;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.blog-article-content p {
    margin: 0 0 1.15rem;
}

.blog-article-content ul,
.blog-article-content ol {
    margin: 0 0 1.15rem;
    padding-left: 1.35rem;
}

.blog-article-content a {
    color: #3d9b7a;
    text-decoration: underline;
}

.blog-article-content blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.25rem;
    border-left: 4px solid #3d9b7a;
    background: #f0fdf9;
    border-radius: 0 12px 12px 0;
    color: #1a2e28;
}

.blog-article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 1.5rem 0;
}

@media (max-width: 768px) {
    .blog-page-hero {
        padding-top: 5.75rem;
    }

    .blog-article-wrap {
        padding-top: 5.75rem;
    }
}
