/* === PENTA WPML SWITCHER – VERZIA 3.4 === */
.wpml-wrapper {
    position: relative;
    display: inline-flex;
    margin-left: 1rem;
    align-items: center;
    width: fit-content;
    z-index: 1000;
}
.wpml-switcher {
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    height: 3rem;
    width: 3rem;
    border-radius: 2.5rem;
    background: #888;
    transition: all .35s ease;
    overflow: hidden;
}
.wpml-switcher.active {
    width: 11rem;
    background: #888;
}
.wpml-switcher .current-lang {
    color: #fff;
    font-family: 'Fedra Sans Alt Pro', sans-serif;
    font-size: 1rem;
    font-weight: 300;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 3rem;
    width: 3rem;
    padding: 0;
    white-space: nowrap;
    z-index: 2;
    text-decoration: none !important;
    flex-shrink: 0;
    transition: opacity .2s ease;
}
.wpml-switcher.active .current-lang {
    opacity: 0;
    pointer-events: none;
}
.wpml-switcher .lang-options {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    position: absolute;
    left: 1.2rem;
    top: 0;
    height: 3rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease .15s;
    white-space: nowrap;
}
.wpml-switcher.active .lang-options {
    opacity: 1;
    pointer-events: auto;
}
.wpml-switcher .lang-options a,
.wpml-switcher .lang-options .lang-active {
    color: #fff;
    font-family: 'Fedra Sans Alt Pro', sans-serif;
    font-weight: 300;
    font-size: 1rem;
    text-transform: uppercase;
    padding: 0 .25rem;
}
.wpml-switcher .lang-options a {
    text-decoration: none;
    cursor: pointer;
}
.wpml-switcher .lang-options a:hover,
.wpml-switcher .lang-options .lang-active {
    text-decoration: underline;
}
.wpml-switcher .lang-options .lang-active {
    cursor: pointer;
    pointer-events: auto;
}
@media (max-width: 921px) {
    .wpml-wrapper {
        margin: 0 auto !important;
        display: flex;
        justify-content: center;
        width: 100%;
    }
    .wpml-switcher {
        width: auto !important;
        background: none !important;
        overflow: visible !important;
        height: auto !important;
        padding: 0 .5rem;
        display: flex;
        gap: 2rem;
        justify-content: center;
        cursor: default;
    }
    .wpml-switcher .current-lang {
        display: none !important;
    }
    .wpml-switcher .lang-options {
        display: flex !important;
        position: static !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        gap: 2rem;
        left: auto !important;
        top: auto !important;
        height: auto !important;
    }
    .wpml-switcher .lang-options > *:nth-child(1) { order: 1; }
    .wpml-switcher .lang-options > *:nth-child(2) { order: 2; }
    .wpml-switcher .lang-options > *:nth-child(3) { order: 3; }
    .wpml-switcher .lang-options a,
    .wpml-switcher .lang-options .lang-active {
        color: #fff !important;
        text-decoration: none !important;
        font-size: 1rem;
    }
    .wpml-switcher .lang-options .lang-active {
        text-decoration: underline !important;
    }
    .wpml-switcher .lang-options a:hover {
        text-decoration: underline !important;
    }
}