/**
 * Widget: slider|four-cards
 * Header (titolo/contenuto a sx, nav a dx) + slider orizzontale di card (immagine + titolo).
 * Slider gestito dal component horizontal-cycle-slider (classi hcs-*), con la nav
 * spostata via JS nell'header. Tutte le regole scopate sotto .slider-four-cards.
 */

.slider-four-cards {
    --sfc-ink: var(--website-color-txt-title, #3D3D3D);
    display: block;
    background: var(--website-color-light, #FFF5E2);
    overflow: hidden;
    padding: clamp(40px, 7vw, 112px) 0;
}
.slider-four-cards .slider-four-cards-inner {
    max-width: var(--website-container-max-width, 1440px);
    margin: 0 auto;
    padding: 0 28px;
    display: flex;
    flex-direction: column;
    gap: clamp(32px, 5vw, 56px);
}

/* Header */
.slider-four-cards .slider-four-cards-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: clamp(20px, 4vw, 40px);
}
.slider-four-cards .slider-four-cards-headtext {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 520px;
}
.slider-four-cards .slider-four-cards-title {
    margin: 0;
    color: var(--sfc-ink);
    text-transform: uppercase;
    font-weight: 400;
    font-size: clamp(2rem, 4.5vw, 3.4rem);
    line-height: 1.05;
}
.slider-four-cards .slider-four-cards-text {
    color: var(--website-color-txt-body, #4D5359);
    font-size: 1rem;
    line-height: 1.6;
}
.slider-four-cards .slider-four-cards-text p { margin: 0 0 .8rem; }
.slider-four-cards .slider-four-cards-text p:last-child { margin-bottom: 0; }
.slider-four-cards .slider-four-cards-navslot { flex: 0 0 auto; }

/* Nav (frecce + contatore), spostata nell'header */
.slider-four-cards .hcs-nav { display: flex; align-items: center; gap: 6px; }
.slider-four-cards .hcs-nav-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 0;
    background: var(--sfc-ink);
    color: var(--website-color-white, #fff);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color .2s ease;
}
.slider-four-cards .hcs-nav-btn:hover { background: #1C1917; }
.slider-four-cards .hcs-nav-btn:disabled { background: rgba(61, 61, 61, 0.6); cursor: not-allowed; }
.slider-four-cards .hcs-nav-counter {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(61, 61, 61, 0.6);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .875rem;
    color: var(--sfc-ink);
}

/* Track / card */
.slider-four-cards .hcs-track-container { overflow: hidden; }
.slider-four-cards .slider-four-cards-card { list-style: none; }
.slider-four-cards .slider-four-cards-card-media {
    display: block;
    aspect-ratio: 320 / 384;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(12, 10, 9, 0.2);
}
.slider-four-cards .slider-four-cards-card-img,
.slider-four-cards .slider-four-cards-card-media picture { width: 100%; height: 100%; display: block; }
.slider-four-cards .slider-four-cards-card-img { object-fit: cover; transition: transform .5s ease; }
.slider-four-cards .slider-four-cards-card:hover .slider-four-cards-card-img { transform: scale(1.04); }
.slider-four-cards .slider-four-cards-card-title {
    display: block;
    margin-top: 14px;
    color: var(--sfc-ink);
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.2;
}

@media (max-width: 575.98px) {
    .slider-four-cards .slider-four-cards-head { flex-direction: column; align-items: flex-start; }
    .slider-four-cards .hcs-nav-btn { width: 48px; height: 48px; }
}
