/* ---- HERO SECTION ---- */
.hero-section {
    position: relative;
    min-height: 800px;
    background: url('../ASSETS/images/risto-blog/risto-blog-hero.webp') center/cover no-repeat;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px 60px;
    color: var(--text-light);
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.526);
}

.hero-section > * {
    position: relative;
    z-index: 1;
}

.titolo h1 {
    font-family: var(--font-display);
    font-size: clamp(40px, 7vw, 72px);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-shadow: 0 2px 16px rgba(0,0,0,0.2);
    margin-bottom: 14px;
}

.titolo .subtitle {
    font-size: 16px;
    font-weight: 300;
    letter-spacing: 0.06em;
    opacity: 0.9;
}

/* ---- CONTAINER ---- */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ---- BLOG SECTION ---- */
.blog-section {
    padding: 70px 40px;
    max-width: 1100px;
    margin: 0 auto;
}

.blog-container {
    display: flex;
    flex-direction: column;
    gap: 36px;
}

/* ---- BLOG CARD ---- */
.blog-card {
    display: grid;
    grid-template-columns: 340px 1fr;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 18px rgba(0, 0, 0, 0.404);
    transition: transform 0.25s, box-shadow 0.25s;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 32px rgba(0,0,0,0.14);
}

.blog-image {
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    min-height: 220px;
    object-fit: contain;
    display: block;
    transition: transform 0.4s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-content {
    padding: 30px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
}

.blog-content h3 {
    font-family: var(--font-display);
    font-size: clamp(18px, 2vw, 24px);
    color: var(--text-dark);
    line-height: 1.3;
}

.blog-content p {
    font-size: 14px;
    color: var(--text-mid);
    line-height: 1.75;
}

.btn-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--blue-mid);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-top: 6px;
    transition: gap 0.2s, color 0.2s;
    width: fit-content;
}

.btn-read-more:hover {
    color: var(--blue-section);
    gap: 14px;
}

.btn-read-more i {
    font-size: 11px;
}

.parallax-banner {
    position: relative;
    background-image: url('../ASSETS/images/risto-blog/ristomonianze-hero-pag-blog.webp');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    min-height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.parallax-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(25, 50, 35, 0.65);
}

.parallax-banner .parallax-text {
    position: relative;
    z-index: 1;
    color: #fff;
    padding: 20px;
}

.parallax-banner .parallax-text h2 {
    font-family: var(--font-display);
    font-size: clamp(30px, 5vw, 54px);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-shadow: 0 2px 16px rgba(0,0,0,0.3);
    margin-bottom: 14px;
}

.parallax-banner .parallax-text p {
    font-size: 18px;
    font-weight: 300;
    font-style: italic;
    opacity: 0.88;
    letter-spacing: 0.03em;
}

.testimonianze-wrapper {
    background: var(--bg-light);
    padding: 60px 40px;
    overflow: hidden;
    display: flex; 
    justify-content: center; 
}

.testimonianze-slider {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    width: max-content;
    min-width: 100%; 
    justify-content: center; 
}

.testimonial-card {
    flex: 0 0 300px;
    background: #fff;
    border-radius: 10px;
    padding: 18px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    gap: 14px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 26px rgba(0,0,0,0.13);
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--blue-light);
}

.autore {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-mid);
    letter-spacing: 0.04em;
    text-align: center;
}

.testo-citazione {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-dark);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
    .blog-card {
        grid-template-columns: 260px 1fr;
    }
}

@media (max-width: 768px) {
    .blog-section {
        padding: 40px 24px;
    }

    .blog-card {
        grid-template-columns: 1fr;
    }

    .blog-image img {
        height: 220px;
        min-height: unset;
    }

    .parallax-banner {
        background-attachment: scroll;
        min-height: 260px;
    }

    .testimonianze-wrapper {
        padding: 40px 24px;
    }

    .testimonianze-slider {
        scroll-behavior: smooth;
    }

    .testimonial-card {
        flex: 0 0 100%;
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 500px) {
    .testimonial-card {
        flex-direction: column;
        text-align: center;
    }

    .autore {
        white-space: normal;
    }
}