/* Reset completo degli stili precedenti */
.wrap-carousel {
    position: relative !important;
    width: 100% !important;
    height: 500px !important;
    margin: 0 auto !important;
    overflow: hidden !important;
    z-index: 1 !important;
    perspective: 1000px !important;
}

.wrap-carousel-container {
    position: relative !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 20px !important;
    transform-style: preserve-3d !important;
}

.wrap-carousel-slide {
    position: absolute !important;
    width: 300px !important;
    height: 400px !important;
    transition: all 0.7s cubic-bezier(0.4, 0.0, 0.2, 1) !important;
    opacity: 0.7 !important;
    cursor: pointer !important;
    background-position: center !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
    border-radius: 10px !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1) !important;
    transform-origin: center !important;
}

.wrap-carousel-slide.active {
    opacity: 1 !important;
    transform: scale(1.1) translateZ(50px) !important;
    z-index: 2 !important;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2) !important;
}

.wrap-carousel-slide.prev {
    transform: translateX(-100%) scale(0.8) translateZ(-50px) rotateY(10deg) !important;
}

.wrap-carousel-slide.next {
    transform: translateX(100%) scale(0.8) translateZ(-50px) rotateY(-10deg) !important;
}

.wrap-carousel-slide.sliding-left {
    animation: slideInLeft 0.7s cubic-bezier(0.4, 0.0, 0.2, 1) forwards !important;
}

.wrap-carousel-slide.sliding-right {
    animation: slideInRight 0.7s cubic-bezier(0.4, 0.0, 0.2, 1) forwards !important;
}

.wrap-carousel-slide.sliding-out-left {
    animation: slideOutLeft 0.7s cubic-bezier(0.4, 0.0, 0.2, 1) forwards !important;
}

.wrap-carousel-slide.sliding-out-right {
    animation: slideOutRight 0.7s cubic-bezier(0.4, 0.0, 0.2, 1) forwards !important;
}

.wrap-carousel-prev,
.wrap-carousel-next {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 40px !important;
    height: 40px !important;
    background: rgba(255, 255, 255, 0.9) !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    z-index: 3 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 24px !important;
    color: #333 !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2) !important;
    transition: all 0.3s ease !important;
}

.wrap-carousel-prev:hover,
.wrap-carousel-next:hover {
    background: white !important;
    transform: translateY(-50%) scale(1.1) !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3) !important;
}

.wrap-carousel-prev {
    left: 20px !important;
}

.wrap-carousel-next {
    right: 20px !important;
}

.caption-holder {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    background: rgba(255,255,255,0.9) !important;
    padding: 15px !important;
    border-radius: 0 0 10px 10px !important;
    transform: translateZ(1px) !important;
}

.caption-holder h3 {
    margin: 0 !important;
    color: #333 !important;
    font-size: 18px !important;
}

.caption-holder p {
    margin: 5px 0 0 !important;
    color: #666 !important;
    font-size: 14px !important;
}

.GALLRY {
    position: relative !important;
    z-index: 1 !important;
    height: 500px !important;
    margin-bottom: 30px !important;
}

@keyframes slideInLeft {
    from {
        transform: translateX(100%) scale(0.8) translateZ(-50px) rotateY(-10deg) !important;
        opacity: 0.7 !important;
    }
    to {
        transform: translateX(0) scale(1.1) translateZ(50px) !important;
        opacity: 1 !important;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(-100%) scale(0.8) translateZ(-50px) rotateY(10deg) !important;
        opacity: 0.7 !important;
    }
    to {
        transform: translateX(0) scale(1.1) translateZ(50px) !important;
        opacity: 1 !important;
    }
}

@keyframes slideOutLeft {
    from {
        transform: translateX(0) scale(1.1) translateZ(50px) !important;
        opacity: 1 !important;
    }
    to {
        transform: translateX(-100%) scale(0.8) translateZ(-50px) rotateY(10deg) !important;
        opacity: 0.7 !important;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0) scale(1.1) translateZ(50px) !important;
        opacity: 1 !important;
    }
    to {
        transform: translateX(100%) scale(0.8) translateZ(-50px) rotateY(-10deg) !important;
        opacity: 0.7 !important;
    }
}