/* WPB Expandable Tabs - Tabs Layout (Detailed) */

.wpb-tabs-layout {
    width: 100%;
    margin-bottom: 30px;
    font-family: inherit;
    box-sizing: border-box;
}

/* Nav Tabs Container */
.wpb-nav-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    list-style: none !important;
    padding: 0;
    margin: 0 0 30px 0;
    border: none;
}

.wpb-nav-item {
    margin: 0;
    padding: 0;
    list-style: none !important;
    flex: 1;
    min-width: 150px;
    max-width: 250px;
}

/* Nav Link Button */
.wpb-nav-link {
    background: transparent;
    border: none;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    outline: none;
    margin: 0 auto; /* Center in container */
    width: 100%; /* Ensure full width clickable area or just content? "allinea al centro rispetto al contenitore" implies content centering */
}

/* Icon Circle */
.wpb-nav-icon-circle {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background-color: #FFF; /* White background for inactive */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    transition: background-color 0.3s ease;
    box-shadow: 0 3px 40px rgba(0,0,0,0.1);
}

.wpb-nav-icon-circle .nav-icon-mask {
    width: 60%;
    height: 60%;
    /* Default State: Icon is Gradient */
    background: linear-gradient(135deg, #014576 0%, #26949D 100%);
    -webkit-mask-image: var(--nav-icon-url);
    mask-image: var(--nav-icon-url);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
    transition: background 0.3s ease;
}

/* Active State for Icon */
.wpb-nav-link.active .wpb-nav-icon-circle,
.wpb-nav-link:hover .wpb-nav-icon-circle {
    background: linear-gradient(135deg, #014576 0%, #26949D 100%);
    box-shadow: 0 3px 40px rgba(0,0,0,0.1);
}

.wpb-nav-link.active .wpb-nav-icon-circle .nav-icon-mask,
.wpb-nav-link:hover .wpb-nav-icon-circle .nav-icon-mask {
    background: #fff; /* Icon becomes white */
}

/* Title Text */
.wpb-nav-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    color: #333;
    transition: color 0.3s ease;
    text-align: center;
}

.wpb-nav-link.active .wpb-nav-title {
    color: #014576;
    font-weight: 700;
}

/* Tab Content Area */
.wpb-tab-content {
    background-color: #E5F0EB;
    padding: 80px 100px;
    border-radius: 4px;
    border: none;
    min-height: 300px; /* Prevent collapse during load */
}

.wpb-tab-pane {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.wpb-tab-pane.active {
    display: block;
    opacity: 1;
    animation: fadeIn 0.4s ease-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Inner Layout */
.wpb-tab-pane-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: flex-start;
}

/* Left Column (Text) */
.wpb-tab-left-col {
    flex: 1 1 50%;
    min-width: 300px;
}

.wpb-tab-left-col h2 {
    color: #014576;
    font-size: 32px;
    margin: 0 0 10px 0;
    line-height: 1.2;
}

.wpb-tab-left-col h3 {
    color: #333;
    font-size: 18px;
    font-weight: normal;
    margin: 0 0 20px 0;
    line-height: 1.4;
}

.wpb-tab-text-content {
    margin-bottom: 40px;
}

.wpb-tab-text-content p {
    font-size: 16px;
    line-height: 1.6;
    color: #444;
    margin-bottom: 15px;
}

/* Bullet List */
.wpb-tab-list {
    list-style: none !important; 
    padding: 0;
    margin: 0;
}

.wpb-tab-list li {
    position: relative;
    padding-left: 30px; /* Space for the icon */
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.5;
    color: #024576;
    list-style: none !important;
    padding-bottom: 20px;
}

.wpb-tab-list li h4 {
    margin: 0;
    padding: 0;
    color: #024576; 
    font-size: inherit; 
    font-weight: inherit;
    line-height: inherit;
    display: inline;
}

/* Icon style */
.wpb-tab-list li i.icon-default-style {
    position: absolute; 
    left: 0; 
    top: 0; 
    width: 20px; 
}

.wpb-tab-list li .icon-default-style[class^=icon-] { 
    font-size: 16px; 
    height: 100%; 
    line-height: 22px; 
}

/* Separator Line */
.wpb-tab-list li::before {
    content: ""; 
    position: absolute; 
    left: 0; 
    right: 0; 
    bottom: 0; 
    height: 1px; 
    background: linear-gradient(135deg, #014576 0%, #26949D 100%); 
    border-radius: 999px; 
    pointer-events: none; 
}

/* If user meant strictly *between*, we hide it for the last one */
.wpb-tab-list li:last-child::before {
    display: none;
}

/* Right Column (Image + Button) */
.wpb-tab-right-col {
    flex: 1 1 40%; /* Slightly smaller than left */
    min-width: 300px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 25px;
}

.wpb-tab-image-wrapper {
    width: 100%;
    overflow: hidden;
    border-radius: 4px;
    background: #fff; /* Fallback */
}

.wpb-tab-image-wrapper img {
    width: 100%;
    min-height: 450px;
    max-height: 450px;
    display: block;
    object-fit: cover;
    margin-bottom: 0 !important;
}

.wpb-tab-left-col h3,
.wpb-tab-left-col .wpb-tab-text-content p {
    color: #024576;
}

/* CTA Button */
.wpb-tab-right-col .tab-cta-button {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 15px 20px;
    background: linear-gradient(135deg, #014576 0%, #26949D 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 1px;
    transition: opacity 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-align: center;
    line-height: 1.2;
}

.wpb-tab-right-col .tab-cta-button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    color: #fff;
}

/* Responsive */
@media (max-width: 1024px) {
    .wpb-tab-pane-inner {
        flex-direction: column;
    }
    
    .wpb-tab-content {
        padding: 30px;
    }

    .wpb-tab-left-col h2 {
        font-size: 25px;
    }
    
    .wpb-tab-left-col, 
    .wpb-tab-right-col {
        flex: 1 1 100%;
        width: 100%;
    }

    .wpb-tab-right-col {
        order: -1; /* Image on top on mobile? usually better below text, let's keep default order */
        order: 1;
    }
    
    .wpb-nav-tabs {
        gap: 15px;
    }
    
    .wpb-nav-icon-circle {
        width: 70px;
        height: 70px;
    }
    
    .wpb-nav-title {
        font-size: 12px;
    }
}
