.hlzi-container {
    --hlzi-duration: 450ms;
    --hlzi-zoom-from: 1.1;
    --hlzi-zoom-to: 1;
    
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: stretch;
    width: 100%;
    margin: 0 auto;
    font-family: "Exo 2", sans-serif;
}

/* List Side */
.hlzi-list {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
}

.hlzi-item {
    display: flex;
    align-items: center;
    padding: 25px 0;
    border: none;
    background: none;
    border-bottom: 1px solid rgba(0,160,160,.19);
    border-radius: 0 !important;
    cursor: pointer;
    text-align: left;
    transition: all 0.3s ease;
    width: 100%;
    outline: none;
}

/* Override for specific theme styles */
body[data-button-style^="rounded"] button.hlzi-item,
body button.hlzi-item {
    border-radius: 0 !important;
}

.hlzi-item:last-child {
    border-bottom: none;
}

.hlzi-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: rgba(255,255,255,.43);
    color: #293678;
    font-size: 20px;
    font-weight: bold;
    margin-right: 20px; /* Ripristinato margine per staccare dal titolo */
    transition: all 0.3s ease;
    flex-shrink: 0;
    /* Shadow interna: x20 y20 s60, Shadow esterna: x10 y10 s30 */
    box-shadow: inset 20px 20px 60px rgba(255,255,255,0.27), 
                10px 10px 30px rgba(0,0,0,0.24);
    /* Sfuocatura ~2% e Luminosità -6 (approssimata a 94%) */
    backdrop-filter: blur(2px) brightness(0.94);
    -webkit-backdrop-filter: blur(2px) brightness(0.94);
}

.hlzi-connector {
    display: flex;
    align-items: center;
    width: 60px; /* Fixed width for connector */
    margin-right: 0; /* Spazio rimosso come richiesto */
}

/* Pallino piccolo a sinistra */
.hlzi-connector::before {
    content: '';
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: rgba(0,160,160,1);
    flex-shrink: 0;
}

/* Linea tratteggiata verso il numero */
.hlzi-connector::after {
    content: '';
    flex-grow: 1;
    height: 1px;
    background-image: linear-gradient(90deg, rgba(0,160,160,1) 50%, transparent 50%);
    background-size: 6px 1px; /* 3px dash + 3px space = 6px total width */
}

.hlzi-title {
    font-size: 20px;
    color: #00A0A0;
    font-weight: 400;
    transition: color 0.3s ease;
}

/* Active State */
.hlzi-item.active .hlzi-number,
.hlzi-item:hover .hlzi-number,
.hlzi-item:focus .hlzi-number {
    background-color: #697399;
    color: #FFF;
}

.hlzi-item.active .hlzi-title,
.hlzi-item:hover .hlzi-title,
.hlzi-item:focus .hlzi-title {
    color: #00A0A0;
    font-weight: 700;
}

/* Image Side */
.hlzi-image-area {
    flex: 1.5;
    min-width: 300px;
    position: relative;
}

.hlzi-image-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 66.66%; /* 3:2 Aspect Ratio */
    border-radius: 16px; /* Large radius as requested */
}

.hlzi-image {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 85%;
    height: 85%;
    transform: translate(-50%, -50%) scale(var(--hlzi-zoom-from)); /* Centratura + Scale */
    object-fit: contain;
    transition: opacity var(--hlzi-duration) ease-out, transform var(--hlzi-duration) ease-out;
    opacity: 0;
    will-change: opacity, transform;
    pointer-events: none;
}

.hlzi-image.active {
    opacity: 1;
    transform: translate(-50%, -50%) scale(var(--hlzi-zoom-to)); /* Mantiene centratura + Nuovo Scale */
    z-index: 2;
    pointer-events: auto;
}
.hlzi-list:before{
    content:'';
    background-image:url('bg-curva.png');
    background-size:cover;
    position:absolute;
    top:-40px;
    left:-129px;
    width:100%;
    height:100%;
    max-width:144px;
    z-index:-1;
}
/* Ensure only one image is visible and interactive if needed, though they are just display */
/* The JS will handle the z-index swapping to ensure correct stacking order during transitions */

@media (max-width: 768px) {
    .hlzi-container {
        flex-direction: column-reverse; /* List below image on mobile, or standard column */
    }
    
    .hlzi-list {
        width: 100%;
    }
    
    .hlzi-image-area {
        width: 100%;
    }
}
