/* ============================================================
   Elementor Column Carousel — carousel.css
   ============================================================ */

@import url("https://cdn.jsdelivr.net/npm/swiper@11/swiper-bundle.min.css");

/* ── Contenitore principale ── */
.ecc-carousel-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* ── Swiper base ── */
.ecc-carousel-wrapper .swiper {
    width: 100%;
    overflow: hidden;
}

.ecc-carousel-wrapper .swiper-wrapper {
    display: flex;
    align-items: stretch;
}

.ecc-carousel-wrapper .swiper-slide {
    height: auto;
    box-sizing: border-box;
}

/* ── Inner slide ── */
.ecc-carousel-wrapper .ecc-slide-inner {
    height: 100%;
    box-sizing: border-box;
}

/* ── Frecce: posizione LATERALE (middle) ── */
.ecc-carousel-wrapper .ecc-btn-prev,
.ecc-carousel-wrapper .ecc-btn-next {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s ease, opacity 0.2s ease;
    padding: 0;
    line-height: 1;
}

.ecc-carousel-wrapper .ecc-btn-prev:hover,
.ecc-carousel-wrapper .ecc-btn-next:hover {
    background: rgba(0,0,0,0.8);
}

.ecc-carousel-wrapper .ecc-btn-prev svg,
.ecc-carousel-wrapper .ecc-btn-next svg {
    width: 20px;
    height: 20px;
    display: block;
    color: currentColor;
    stroke: currentColor;
}

.ecc-carousel-wrapper .ecc-btn-prev.swiper-button-disabled,
.ecc-carousel-wrapper .ecc-btn-next.swiper-button-disabled {
    opacity: 0.35;
    cursor: default;
}

/* Frecce laterali centrate */
.ecc-carousel-wrapper .ecc-arrow-middle {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.ecc-carousel-wrapper .ecc-btn-prev.ecc-arrow-middle {
    left: 0;
}

.ecc-carousel-wrapper .ecc-btn-next.ecc-arrow-middle {
    right: 0;
}

/* Quando le frecce sono ai lati, aggiungi margine al swiper */
.ecc-arrows-middle .swiper {
    padding-left: 50px;
    padding-right: 50px;
}

/* ── Frecce: posizione TOP / BOTTOM ── */
.ecc-nav-row {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
}

.ecc-nav-top {
    margin-bottom: 14px;
}

.ecc-nav-bottom {
    margin-top: 14px;
}

/* ── Paginazione pallini ── */
.ecc-carousel-wrapper .swiper-pagination {
    position: static;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}

.ecc-pagination-top {
    margin-bottom: 20px;
}

.ecc-pagination-bottom {
    margin-top: 20px;
}

.ecc-carousel-wrapper .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: rgba(0,0,0,0.25);
    opacity: 1;
    border-radius: 50%;
    transition: background 0.2s ease, transform 0.2s ease;
    cursor: pointer;
    display: inline-block;
}

.ecc-carousel-wrapper .swiper-pagination-bullet-active {
    background: rgba(0,0,0,0.7);
    transform: scale(1.25);
}

/* ── Editor placeholder ── */
.ecc-editor-placeholder {
    background: #f0f4f8;
    border: 2px dashed #b0bec5;
    border-radius: 6px;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #78909c;
    font-size: 13px;
    padding: 20px;
}

.ecc-editor-placeholder p {
    margin: 0;
}

/* ── Editor info box ── */
.ecc-editor-preview {
    border: 2px dashed #cfd8dc;
    border-radius: 6px;
    padding: 24px;
    text-align: center;
}

.ecc-editor-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #546e7a;
}

.ecc-editor-info .eicon-post-slider {
    font-size: 32px;
    color: #90a4ae;
}

.ecc-editor-info strong {
    font-size: 15px;
    color: #37474f;
}

.ecc-editor-info p {
    font-size: 12px;
    margin: 0;
    max-width: 280px;
    line-height: 1.5;
}

/* ── Responsive: rimuovi padding laterale su mobile se frecce middle ── */
@media (max-width: 767px) {
    .ecc-arrows-middle .swiper {
        padding-left: 44px;
        padding-right: 44px;
    }

    .ecc-carousel-wrapper .ecc-btn-prev,
    .ecc-carousel-wrapper .ecc-btn-next {
        width: 32px;
        height: 32px;
    }

    .ecc-carousel-wrapper .ecc-btn-prev svg,
    .ecc-carousel-wrapper .ecc-btn-next svg {
        width: 16px;
        height: 16px;
    }
}
