/* ==========================================================================
   Client Stories — stile allineato al prototipo (sezione OGNI STRATEGIA)
   Colori/impaginazione via utility Bootstrap inline nel template:
   .text-info = teal accent (#119199), .border-info, .rounded-2, .bg-dark, ecc.
   ========================================================================== */

/* --- Heading sezione --- */
.client-stories .section-heading-copy {
    flex: 1 1 720px;
    max-width: 900px;
}

.client-stories .section-intro {
    max-width: 860px;
}

.client-stories .section-intro p {
    color: #555555;
    font-size: 1.05rem;
    line-height: 1.7;
}

/* --- CTA heading (prototipo .btn-primary / .btn-outline) --- */
.client-stories .btn-cta {
    padding: 16px 28px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    border-radius: 4px;
}

/* il .btn-primary del tema è nero: qui il prototipo vuole il teal accent */
.client-stories .btn-primary {
    --bs-btn-color: #ffffff;
    --bs-btn-bg: var(--bs-info);
    --bs-btn-border-color: var(--bs-info);
    --bs-btn-hover-color: #ffffff;
    --bs-btn-hover-bg: #0c777d;
    --bs-btn-hover-border-color: #0c777d;
    --bs-btn-active-color: #ffffff;
    --bs-btn-active-bg: #0c777d;
    --bs-btn-active-border-color: #0c777d;
}

/* --- Card (prototipo .testi-card) --- */
/* altezza uniforme delle slide: flex sulla slide, la card si estende */
.client-stories .swiper-slide {
    display: flex;
    height: auto;
}

.client-stories .testi-card {
    flex: 1 1 auto;
    transition: border-color 0.25s ease, transform 0.25s ease;
}

.client-stories .testi-card:hover {
    border-color: var(--bs-info) !important;
    transform: translateY(-3px);
}

.client-stories .testi-card > div {
    padding-right: 1.75rem;
    padding-left: 1.75rem;
}

.client-stories .testi-card > div:first-of-type {
    padding-top: 1.75rem;
}

.client-stories .testi-card > div:last-child {
    padding-bottom: 1.75rem;
    margin-top: auto;
}

/* --- Media cover 4/5 con play --- */
.client-stories .testi-card__media {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    padding: 0;
    border: 0;
    border-bottom: 1px solid var(--bs-border-color);
    background: #0a0a0a;
    overflow: hidden;
    cursor: pointer;
}

.client-stories .testi-card__media.is-static {
    cursor: default;
}

.client-stories .testi-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.client-stories .testi-card__media:not(.is-static):hover img,
.client-stories .testi-card__media:not(.is-static):focus-visible img {
    transform: scale(1.015);
}

.client-stories .testi-card__media:focus-visible {
    outline: 3px solid var(--bs-info);
    outline-offset: -3px;
}

.client-stories .testi-card__play {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 58px;
    height: 58px;
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.48);
    backdrop-filter: blur(4px);
    transform: translate(-50%, -50%);
    transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.client-stories .testi-card__play::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    border-left: 11px solid #ffffff;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    transform: translate(-38%, -50%);
}

.client-stories .testi-card__media:hover .testi-card__play,
.client-stories .testi-card__media:focus-visible .testi-card__play {
    border-color: var(--bs-info);
    background: var(--bs-info);
    transform: translate(-50%, -50%) scale(1.08);
}

/* --- Citazione, storia, autore --- */
.client-stories .testi-quote {
    font-size: 1.05rem;
    color: #030303;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-weight: 300;
}

.client-stories .testi-story-text {
    font-size: 0.9rem;
    color: #555555;
    font-weight: 300;
    line-height: 1.6;
}

.client-stories .testi-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    border-top: 1px solid var(--bs-border-color);
    padding-top: 1rem;
}

.client-stories .testi-author img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 30%;
}

.client-stories .testi-author__name {
    font-family: "League Spartan", sans-serif;
    font-weight: 600;
}

/* --- Link "Scopri la storia" (prototipo .btn-link-tls, non presente nel tema) --- */
.client-stories .btn-link-tls {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: "League Spartan", sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--bs-info);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    cursor: pointer;
    transition: gap 0.25s ease, color 0.25s ease;
}

.client-stories .btn-link-tls:hover {
    color: #0c777d;
    gap: 10px;
}

/* --- Frecce slider (prototipo .btn-slider-square, non presente nel tema) --- */
.client-stories .btn-slider-square {
    width: 44px;
    height: 44px;
    background: transparent;
    border: 1px solid var(--bs-border-color);
    border-radius: 4px;
    color: #030303;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.client-stories .btn-slider-square:hover {
    background: #030303;
    border-color: #030303;
    color: #ffffff;
}

.client-stories .btn-slider-square.swiper-button-disabled {
    opacity: 0.35;
    pointer-events: none;
}

/* --- Modal video verticale (reels 9/16, prototipo .video-modal-ratio--vertical) --- */
.client-stories .ratio-vertical {
    width: min(100%, calc(78vh * 9 / 16));
    margin-inline: auto;
    --bs-aspect-ratio: 177.7778%;
}
