/* 
Theme Name: Ambasciatori 
Template Name: Blog
*/

/* ============== HERO SECTION (Blog) ================ */
.hero-blog {
    position: relative;
    color: var(--text-white);
    padding: 120px 0 100px;
    text-align: center;
}

.hero-blog .hero-bg,
.hero-blog .hero-bg img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    object-fit: cover;
    background: #0d1b31;
}

.hero-blog .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    /* Transparent dark overlay */
    z-index: -1;
}

.hero-blog .hero-content {
    position: relative;
    z-index: 1;
}

.hero-blog .hero-subtitle {
    font-size: 16px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
    font-weight: 600;
}

.hero-blog .hero-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 10px;
}

.hero-blog .hero-desc {
    font-size: 22px;
    font-weight: 400;
    font-style: italic;
}

/* ============== BLOG GRID SECTION ================ */
.blog-section {
    padding: 80px 0;
    background-color: #fff;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.blog-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    height: 480px;
    border: 1px solid #eaeaea;
}

.blog-image-link {
    display: block;
    height: 200px;
    /* Circa 40-50% dell'altezza */
}

.blog-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.placeholder-img {
    background-color: #a0a0a0;
    /* Grigio come da mockup */
    height: 220px;
}

.blog-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #000;
    line-height: 1.4;
}

.blog-card-title a {
    color: inherit;
}

.blog-card-title a:hover {
    color: var(--primary-color);
}

.blog-excerpt {
    font-size: 14px;
    color: #444;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.blog-meta {
    font-size: 12px;
    color: #666;
    display: flex;
    gap: 5px;
    font-weight: 500;
    margin-top: auto;
    /* Spinge in fondo */
}

.blog-cat {
    color: var(--text-dark);
}

.blog-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: #444;
    font-size: 18px;
    margin: 0;
}

.blog-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 45px;
}

.blog-pagination .page-numbers {
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    border: 1px solid #d8d8d8;
    border-radius: 6px;
    color: #222;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    background: #fff;
}

.blog-pagination .page-numbers.current,
.blog-pagination .page-numbers:hover {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: var(--text-white);
}

.blog-pagination .page-numbers.dots {
    border-color: transparent;
    background: transparent;
    color: #666;
    min-width: 24px;
    padding: 0;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 992px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .hero-blog .hero-title {
        font-size: 36px;
    }
}
