/* ================================================================
   SLIDER SALUTE — Frontend CSS
   ================================================================ */

.ss-slider-wrap {
    position: relative;
    width: 100%;
    font-family: inherit;
    user-select: none;
}

/* ── Track: contenitore rigido con overflow hidden ── */
.ss-track {
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* Tutte le slide affiancate orizzontalmente dentro un flex */
.ss-slides-inner {
    display: flex;
    width: 100%;
    transition: transform 0.6s ease;
}

/* Ogni slide occupa esattamente il 100% del track */
.ss-slide {
    flex: 0 0 100%;
    width: 100%;
    min-width: 0;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* ── Area immagine desktop: altezza fissa, bg assoluto ── */
.ss-slide-image-area {
    position: relative;
    height: 440px;
    overflow: hidden;
    flex-shrink: 0;
}

/* ── Sfondi ── */
.ss-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
}

/* Desktop: mostra desktop, nascondi mobile */
.ss-bg-desktop { display: block; }
.ss-bg-mobile  { display: none;  }

.ss-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* ── Immagine medico ── */
.ss-medico {
    position: absolute;
    bottom: 0;
    right: 60px;
    height: 100%;
    object-fit: contain;
    object-position: bottom;
    z-index: 2;
    pointer-events: none;
}

/* ── Content box teal ── */
.ss-content-wrap {
    position: relative;
    z-index: 3;
    width: 100%;
    background: #00b5c8;
    padding: 22px 40px;
    flex: 1;
}

.ss-content {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    max-width: 900px;
}

.ss-headline {
    width: 100%;
    margin: 0 0 4px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255,255,255,0.85);
    letter-spacing: 0.3px;
    line-height: 1.3;
}

.ss-titolo {
    margin: 0;
    font-size: clamp(22px, 3vw, 34px);
    font-weight: 800;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.1;
    flex: 1 1 auto;
}

.ss-sottotitolo {
    margin: 6px 0 0;
    font-size: 14px;
    color: rgba(255,255,255,0.9);
    line-height: 1.4;
    width: 100%;
}

.ss-cta-wrap { flex-shrink: 0; }

.ss-cta {
    display: inline-block;
    background: #007a88;
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.2s;
    cursor: pointer;
}

.ss-cta:hover { background: #005f6b; color: #fff; text-decoration: none; }

/* ── Dots ── */
.ss-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 12px 0;
}

.ss-dot {
    width: var(--dot-size, 10px);
    height: var(--dot-size, 10px);
    border-radius: 50%;
    background: var(--dot-color, #cccccc);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    outline: none;
}

.ss-dot.ss-dot-active {
    background: var(--dot-active, #00b5c8);
    transform: scale(1.25);
}

/* ── Testi desktop/mobile ── */
.ss-hide-mobile  { display: block; }
.ss-hide-desktop { display: none;  }

/* ════════════════════
   MOBILE
   ════════════════════ */
@media (max-width: 768px) {

    .ss-slide-image-area {
        height: 260px;
    }

    /* Mobile: mostra mobile, nascondi desktop */
    .ss-bg-desktop { display: none;  }
    .ss-bg-mobile  { display: block; }

    /* Fallback: se esiste solo desktop, mostralo comunque */
    .ss-bg-desktop:only-child { display: block; }

    .ss-bg { background-position: center center; }

    .ss-medico {
        right: 0;
        height: 240px;
    }

    .ss-content-wrap { padding: 18px 20px 22px; }

    .ss-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .ss-titolo {
        font-size: clamp(24px, 7vw, 34px);
        line-height: 1.05;
    }

    .ss-headline { font-size: 12px; }

    .ss-cta { width: 100%; text-align: center; padding: 14px; }
    .ss-cta-wrap { width: 100%; }

    .ss-hide-mobile  { display: none;  }
    .ss-hide-desktop { display: block; }
}
