/* --- CAROUSEL STYLES (Swiper) --- */
.sue-swiper-wrapper {
    position: relative;
    width: 100%;
    /* Fade in effect per evitare glitch */
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.sue-swiper {
    width: 100%;
    padding-bottom: 60px; /* Spazio per i dots */
}

/* Fluidità animazione */
.sue-swiper .swiper-wrapper {
    transition-timing-function: cubic-bezier(0.25, 1, 0.5, 1) !important;
}

.swiper-slide {
    height: auto;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.sue-slide-inner {
    width: 100%;
    height: 100%;
    position: relative;
}

/* Fix WPBakery */
.sue-slide-inner .wpb_column { width: 100% !important; }

/* Navigation Styling (Dots) */
.sue-swiper .swiper-pagination-bullet {
    background: #fff;
    opacity: 0.3;
    width: 10px; height: 10px;
    margin: 0 6px !important;
    transition: all 0.3s;
}
.sue-swiper .swiper-pagination-bullet-active {
    opacity: 1;
    transform: scale(1.2);
    background: #fff;
}

/* Navigation Arrows */
.sue-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50% - 30px);
    width: 45px; height: 45px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
    color: #fff;
    font-size: 20px;
}
.sue-arrow:hover { background: #fff; color: #0f1c2e; border-color: #fff; }
.sue-prev { left: -60px; }
.sue-next { right: -60px; }

/* Responsive Arrows */
@media(max-width: 1024px) {
    .sue-prev { left: 0; background: rgba(0,0,0,0.5); border: none; }
    .sue-next { right: 0; background: rgba(0,0,0,0.5); border: none; }
}


/* --- TABS STYLES (NUOVO DESIGN CAPSULA) --- */

.sue-tabs-wrapper {
    width: 100%;
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
}

/* 1. Il Contenitore "Capsula" */
.sue-tabs-nav {
    display: inline-flex; /* Si adatta al contenuto */
    flex-wrap: nowrap;     /* Forza una sola riga */
    justify-content: center;
    align-items: center;
    border: 2px solid #fff; /* Il bordo bianco esterno */
    border-radius: 50px;    /* Arrotondamento forte per effetto pillola */
    overflow: hidden;       /* Taglia gli angoli dei bottoni interni */
    margin: 0 auto 50px auto; /* Centrato orizzontalmente */
    padding: 0;
    background: transparent;
}

/* 2. I Bottoni interni */
.sue-tab-btn {
    background: transparent;
    border: none;
    /* Bordo destro come separatore */
    border-right: 2px solid #fff;
    color: #fff;
    font-size: 18px;
    font-weight: 400; /* Regular */
    padding: 12px 35px; /* Spaziatura interna */
    cursor: pointer;
    font-family: inherit;
    transition: all 0.3s ease;
    white-space: nowrap; /* Evita che il testo vada a capo */
    margin: 0;
    border-radius: 0; /* Rimuove radius dai singoli bottoni */
    outline: none;
}
.sue-tabs-nav .sue-tab-btn {
  border-radius: 0px !important;
  -webkit-border-radius: 0px !important;
}

/* Rimuovi il bordo destro dall'ultimo elemento */
.sue-tab-btn:last-child {
    border-right: none;
}

/* 3. Stato Attivo (Sfondo Bianco, Testo Scuro) */
.sue-tab-btn.active {
    background-color: #fff;
    color: #0f1c2e; /* Blu scuro/Nero del tuo sfondo */
    font-weight: 600; /* Bold */
}

/* Hover State */
.sue-tab-btn:hover:not(.active) {
    background-color: rgba(255,255,255,0.1);
}

/* 4. Pannelli */
.sue-tab-panel {
    width: 100%;
    /* Animazione fade */
    animation: fadeEffect 0.6s;
}

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

.sue-tab-panel:not(.active-panel) {
    display: none;
}

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 768px) {
  .sue-tabs-wrapper {
    padding: 0 20px
  }
    .sue-tabs-nav {
        display: flex;
        flex-direction: column; /* Impila verticalmente su mobile */
        width: 100%;
        border-radius: 15px; /* Meno arrotondato su mobile */
        margin-bottom: 0px
    }

    .sue-tab-btn {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.3);
        padding: 15px;
    }

    .sue-tab-btn:last-child {
        border-bottom: none;
    }
}
