/* Tabs Container */
.tabs-container {
    width: 100%;
    /* border: 4px solid #ffffff; */
    padding: 1rem;
    border-radius: 20px;

}

/* Tabs Header Wrapper */
.tabs-header-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    margin-bottom: 20px;
}

/* Tabs Header */
.elementor-element .elementor-element .tabs-container .tabs-header-wrapper .tabs-header {
    display: flex;
    gap: 1rem;
    border-bottom: 2px dashed #ceeaff;
    padding-bottom: 10px;
    flex: 1;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    /* Nascondi scrollbar nativa */
    scrollbar-width: none;
    -ms-overflow-style: none;
    justify-content: center;
}

.tabs-header::-webkit-scrollbar {
    display: none;
}

/* Scroll Button */
.tabs-scroll-button {
    display: none;
    background: none;
    border: 1px solid #d0d0d0;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 6px;
    color: #666;
    transition: all 0.3s ease;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    min-width: 40px;
}

.tabs-scroll-button:hover {
    border-color: #007bff;
    color: #007bff;
    background-color: #f0f8ff;
}

.tabs-scroll-button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    border-color: #e0e0e0;
    color: #999;
}

.tabs-scroll-button:disabled:hover {
    border-color: #e0e0e0;
    background-color: transparent;
}

.tabs-scroll-button svg {
    width: 18px;
    height: 18px;
}

/* Tab Button */
.tab-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    /*   background: white; */
    border: none;
    padding: 2px 10px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    color: #666;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    /* margin-bottom: -2px; */
    white-space: nowrap;
    /*     max-width: 300px;
    flex: 1 1 auto; */
    border-radius: 5px;
    cursor: pointer;
}

.tab-button:focus,
.tab-button:hover {
    outline: none;
    color: #333;
    border: 2px solid #b0d6f2;
    background-color: transparent;
}

.tab-icon {
    width: 23px;
}

.tab-button i,
.tab-button svg {
    font-size: 1.1em;
    flex-shrink: 0;
}

.tab-button:hover {
    color: #333;
    background-color: #ffffff;
}

.tab-button.active {
    border: 2px solid #b0d6f2;
    color: #333;
}

/* Tabs Content */
.tabs-content {
    position: relative;
    overflow: hidden;
    padding: 0 1rem;
}

/* Tab Pane */
.tab-pane {
    display: none;
    padding: 0;
}

.tab-pane.active {
    display: block;
}

/* Tab Pane inner layout */
.tab-pane-inner {
    display: flex;
    align-items: flex-start;
    gap: 30px;
}

.tab-pane-inner.has-image .tab-pane-content {
    flex: 1 1 0;
    min-width: 0;
}

.tab-pane-content ul {

    list-style: disc;
}

.tab-pane-image {
    flex-shrink: 0;
}

.tab-pane-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}

@media (max-width: 768px) {
    .tab-pane-inner {
        flex-direction: column;
    }

    .tab-pane-image {
        flex: 0 0 100% !important;
        width: 100%;
    }
}

.tab-pane.slide-in-right {
    animation: slideInRight 0.35s ease-out;
}

.tab-pane.slide-in-left {
    animation: slideInLeft 0.35s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(60px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-60px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .tab-button {
        padding: 12px 15px;
        font-size: 14px;
    }
}