/* Striscia loghi clienti — Chi Siamo */

.cs-clients {
    position: relative;
    padding: clamp(2.75rem, 5vw, 3.5rem) 0 clamp(2.5rem, 4.5vw, 3.25rem);
    background:
        radial-gradient(ellipse 90% 70% at 50% 0%, rgba(93, 242, 214, 0.1), transparent 55%),
        linear-gradient(165deg, #011a17 0%, #003731 50%, #024a42 100%);
    border-top: none;
    border-bottom: none;
}

.cs-clients::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(120px, 18vw);
    height: 3px;
    border-radius: 0 0 3px 3px;
    background: linear-gradient(90deg, transparent, var(--primary-color, #003731), transparent);
    opacity: 0.35;
}

.cs-clients-inner {
    margin-bottom: 1.75rem;
}

.cs-clients-head {
    max-width: 40rem;
    margin: 0 auto;
    padding: 0 1.25rem;
    text-align: center;
}

.cs-clients-head h2 {
    font-size: clamp(1.35rem, 2.8vw, 1.75rem);
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.5rem;
    letter-spacing: -0.02em;
}

.cs-clients-head p {
    margin: 0;
    color: rgba(236, 253, 250, 0.88);
    font-size: clamp(0.95rem, 1.8vw, 1.05rem);
    line-height: 1.55;
}

.cs-marquee-wrap {
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.cs-marquee {
    display: flex;
    width: max-content;
    animation: cs-marquee 42s linear infinite;
}

.cs-marquee:hover {
    animation-play-state: paused;
}

@keyframes cs-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.cs-marquee-track {
    display: flex;
    align-items: center;
    gap: clamp(1.25rem, 2.5vw, 2rem);
    padding: 0.35rem 1rem;
}

.cs-logo-item {
    flex: 0 0 auto;
    width: clamp(128px, 14vw, 156px);
    height: clamp(68px, 8vw, 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.1rem;
    background: #fff;
    border-radius: 14px;
    border: 1px solid rgba(0, 55, 49, 0.07);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        0 8px 22px rgba(0, 31, 28, 0.07);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.cs-logo-item:hover {
    transform: translateY(-4px);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        0 14px 28px rgba(0, 31, 28, 0.11);
}

.cs-logo-item img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(0.25) contrast(1.02);
    opacity: 0.92;
    transition: filter 0.28s ease, opacity 0.28s ease;
}

.cs-logo-item:hover img {
    filter: grayscale(0);
    opacity: 1;
}

.cs-logo-item--dark {
    background: linear-gradient(145deg, #121514 0%, #0a0c0b 100%);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
}

.cs-logo-item--dark img {
    filter: none;
    opacity: 1;
}

/* Spazio dopo la storia */
.intro-section--before-clients {
    padding-bottom: clamp(4rem, 7vw, 5.5rem);
}

@media (prefers-reduced-motion: reduce) {
    .cs-marquee {
        animation: none;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
        max-width: 1100px;
        margin: 0 auto;
        gap: 1rem;
    }

    .cs-marquee-track {
        display: contents;
    }

    .cs-marquee-wrap {
        mask-image: none;
        -webkit-mask-image: none;
        padding: 0 1rem;
    }
}

@media (max-width: 640px) {
    .cs-marquee-wrap {
        mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
    }
}

/* CTA finale Chi Siamo — verde brand */
.cs-cta--chi-siamo {
    background: linear-gradient(135deg, var(--primary-color, #003731) 0%, var(--primary-light, #005249) 100%);
    color: #fff;
}

/* Funnel — CTA finale Chi Siamo */
.cs-cta--chi-siamo .cs-funnel-quick {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem 0.65rem;
    margin-top: 2.25rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.cs-cta--chi-siamo .cs-funnel-quick__label {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0.9;
    margin-right: 0.25rem;
}

.cs-cta--chi-siamo .cs-funnel-quick__chip {
    display: inline-block;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: rgba(0, 0, 0, 0.12);
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.cs-cta--chi-siamo .cs-funnel-quick__chip:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: #fff;
    transform: translateY(-1px);
}

.cs-cta--chi-siamo button.cs-funnel-quick__chip,
.cs-cta--chi-siamo button.btn-cta-primary {
    cursor: pointer;
    font-family: inherit;
}

.intro-section--before-clients .intro-text a {
    color: var(--primary-light, #005249);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.intro-section--before-clients .intro-text a:hover {
    color: var(--primary-color, #003731);
}
