/**
 * Pagina Blog B2B: Servizi per RSA e Cliniche - Staffing Sanitario
 * Stile Apple / Chi Siamo: pulito, sezioni alternate, carousel, lettura piacevole
 */

.rsa-blog {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #1d1d1f;
    line-height: 1.6;
    letter-spacing: -0.01em;
}

.rsa-blog .rsa-container {
    max-width: 880px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Hero B2B */
.rsa-blog .rsa-hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.rsa-blog .rsa-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.rsa-blog .rsa-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.6) 100%);
}

.rsa-blog .rsa-hero-content {
    position: relative;
    z-index: 2;
    padding: 3rem 1.5rem;
}

.rsa-blog .rsa-hero .rsa-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: rgba(255,255,255,0.2);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #fff;
    margin-bottom: 1.25rem;
}

.rsa-blog .rsa-hero h1 {
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 700;
    line-height: 1.15;
    color: #fff;
    margin: 0 0 1rem;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.rsa-blog .rsa-hero .rsa-hero-lead {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.95);
    max-width: 640px;
    margin: 0 auto 1.5rem;
}

.rsa-blog .rsa-hero .rsa-cta-hero {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    color: #007AFF;
    background: #fff;
    border-radius: 12px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.rsa-blog .rsa-hero .rsa-cta-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

/* Sezioni alternate */
.rsa-blog .rsa-section {
    padding: 4rem 0;
}

.rsa-blog .rsa-section:nth-child(even) {
    background: #fbfbfd;
}

.rsa-blog .rsa-section:nth-child(odd) {
    background: #fff;
}

.rsa-blog .rsa-section h2 {
    font-size: 1.85rem;
    font-weight: 700;
    color: #1d1d1f;
    margin: 0 0 1.5rem;
    letter-spacing: -0.02em;
}

.rsa-blog .rsa-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #007AFF;
    margin: 2rem 0 0.75rem;
}

.rsa-blog .rsa-section p {
    font-size: 1.05rem;
    color: #424245;
    margin: 0 0 1rem;
}

.rsa-blog .rsa-section ul {
    margin: 0 0 1rem;
    padding-left: 1.5rem;
}

.rsa-blog .rsa-section li {
    margin-bottom: 0.5rem;
    color: #424245;
}

/* Immagini con bordi arrotondati e ombra */
.rsa-blog .rsa-img-wrap {
    margin: 2rem 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.rsa-blog .rsa-img-wrap img {
    width: 100%;
    height: auto;
    display: block;
}

/* Carousel B2B */
.rsa-blog .rsa-carousel {
    margin: 2.5rem 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.12);
}

.rsa-blog .rsa-carousel-inner {
    position: relative;
    width: 100%;
    aspect-ratio: 21/9;
    overflow: hidden;
}

.rsa-blog .rsa-carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.rsa-blog .rsa-carousel-slide.active {
    opacity: 1;
    z-index: 1;
}

.rsa-blog .rsa-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rsa-blog .rsa-carousel-nav {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    gap: 0.5rem;
}

.rsa-blog .rsa-carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    border: 2px solid rgba(255,255,255,0.9);
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

.rsa-blog .rsa-carousel-dot.active,
.rsa-blog .rsa-carousel-dot:hover {
    background: #fff;
    transform: scale(1.2);
}

.rsa-blog .rsa-carousel-prev,
.rsa-blog .rsa-carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #007AFF;
    font-size: 1rem;
    transition: background 0.3s, color 0.3s;
}

.rsa-blog .rsa-carousel-prev { left: 0.75rem; }
.rsa-blog .rsa-carousel-next { right: 0.75rem; }

.rsa-blog .rsa-carousel-prev:hover,
.rsa-blog .rsa-carousel-next:hover {
    background: #007AFF;
    color: #fff;
}

/* Card vantaggi */
.rsa-blog .rsa-cards {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.25rem;
    margin: 1.5rem 0;
}

.rsa-blog .rsa-card {
    background: #fff;
    border: 1px solid #e8e8ed;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.rsa-blog .rsa-section:nth-child(even) .rsa-card {
    background: #fff;
}

.rsa-blog .rsa-card h3 {
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rsa-blog .rsa-card h3 .num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(0, 122, 255, 0.15);
    color: #007AFF;
    font-size: 0.9rem;
}

/* Lista con check */
.rsa-blog .rsa-check-list {
    list-style: none;
    padding-left: 0;
}

.rsa-blog .rsa-check-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    padding: 0;
}

.rsa-blog .rsa-check-list li::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    min-width: 20px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23007AFF'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E") no-repeat center;
}

/* FAQ */
.rsa-blog .rsa-faq-item {
    margin-bottom: 1.25rem;
    padding: 1.25rem;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e8e8ed;
}

.rsa-blog .rsa-faq-item h3 {
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
    color: #1d1d1f;
}

.rsa-blog .rsa-faq-item p {
    margin: 0;
    font-size: 1rem;
}

/* Case study blockquote */
.rsa-blog .rsa-case-study {
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f4fd 100%);
    border-left: 4px solid #007AFF;
    border-radius: 0 16px 16px 0;
    padding: 2rem;
    margin: 2rem 0;
}

.rsa-blog .rsa-case-study blockquote {
    margin: 0;
    font-size: 1.1rem;
    font-style: italic;
    color: #1d1d1f;
    line-height: 1.65;
}

.rsa-blog .rsa-case-study .cite {
    margin-top: 1rem;
    font-size: 0.9rem;
    font-style: normal;
    color: #6e6e73;
}

/* CTA finale */
.rsa-blog .rsa-cta-section {
    text-align: center;
    padding: 3rem 1.5rem;
    background: linear-gradient(180deg, #fbfbfd 0%, #fff 100%);
}

.rsa-blog .rsa-cta-section h2 {
    margin-bottom: 0.75rem;
}

.rsa-blog .rsa-cta-section .rsa-cta-big {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    background: #007AFF;
    border-radius: 14px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.rsa-blog .rsa-cta-section .rsa-cta-big:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 122, 255, 0.4);
}

@media (max-width: 768px) {
    .rsa-blog .rsa-hero {
        min-height: 60vh;
    }
    .rsa-blog .rsa-section {
        padding: 2.5rem 0;
    }
    .rsa-blog .rsa-carousel-inner {
        aspect-ratio: 4/3;
    }
}
