/* ============================================================
   KDLN – Home Slider Prodotti
   [kdln_home_slider]
   ============================================================ */
/* ── Wrapper generale ── */
.kdln-home-slider {
    width: 100%;
    overflow: hidden;
}
/* ── Header: titolo + frecce ── */
.kdln-home-slider__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 40px;
}
.kdln-home-slider__title {
    font-family: 'Neue Haas Unica W1G Medium', sans-serif;
    font-size: clamp(36px, 5vw, 72px);
    font-weight: 400;
    line-height: 1;
    color: #000;
    margin: 0;
}
/* ── Frecce ── */
.kdln-home-slider__arrows {
    display: flex;
    align-items: center;
    justify-content: flex-end; /* aggiunto */
    gap: 16px;
    height: 100%; /* aggiunto */
    padding-top: 8px;
}
.kdln-home-slider__arrow {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease;
}
.kdln-home-slider__arrow:hover,
.kdln-home-slider__arrow:focus,
.kdln-home-slider__arrow:active{
    opacity: 0.7;
	background-color: #fff;
}
.kdln-home-slider__arrow img {
    width: 50px;
    height: auto;
    display: block;
}
/* ── Viewport (maschera overflow) ── */
.kdln-home-slider__viewport {
    width: 100%;
    overflow: hidden;
}
/* ── Track (tutti gli item in fila) ── */
.kdln-home-slider__track {
    display: flex;
    gap: 12px;
    transition: transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
    will-change: transform;
    cursor: grab;
}
.kdln-home-slider__track.is-dragging {
    cursor: grabbing;
    transition: none;
}
/* ── Item (singolo prodotto) ── */
.kdln-home-slider__item {
    flex: 0 0 calc(25% - 9px);
    display: flex;
    flex-direction: column;
    gap: 14px;
    text-decoration: none;
    color: inherit;
}
/* ── Immagine wrapper ── */
.kdln-home-slider__img-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 467 / 622;
}
.kdln-home-slider__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.4s ease;
}
/* ── Overlay hover ── */
.kdln-home-slider__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    transition: background 0.4s ease;
    pointer-events: none;
}
.kdln-home-slider__item:hover .kdln-home-slider__overlay {
    background: rgba(0, 0, 0, 0.25);
}
/* ── Meta: nome + linea + designer ── */
.kdln-home-slider__meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 360px;
    padding-top: 10px;
}
.kdln-home-slider__product-name {
    font-family: 'Neue Haas Unica W1G Medium', sans-serif;
    font-size: 28px;
    font-weight: 400;
    line-height: 28px;
    color: #000;
    display: inline-block;
    transition: transform 0.4s ease;
}
.kdln-home-slider__item:hover .kdln-home-slider__product-name {
    transform: translateX(15px);
}
.kdln-home-slider__line {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #000;
}
.kdln-home-slider__designer {
    font-family: 'Neue Haas Unica W1G Medium', sans-serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 25px;
    color: #000;
}
/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .kdln-home-slider__item {
        flex: 0 0 calc(50% - 6px);
    }
    .kdln-home-slider__title {
        font-size: 40px;
    }
    .kdln-home-slider__arrow img {
        width: 32px;
    }
}
@media (max-width: 767px) {
    .kdln-home-slider__item {
        flex: 0 0 calc(100% - 0px);
    }
    .kdln-home-slider__header {
        margin-bottom: 24px;
    }
    .kdln-home-slider__title {
        font-size: 32px;
    }
    .kdln-home-slider__arrow img {
        width: 28px;
    }
    .kdln-home-slider__product-name {
        font-size: 18px;
    }
}