/* Pulsante WhatsApp flottante (OOR_WhatsApp, al posto di Joinchat) */
.oor-wa {
    position: fixed;
    bottom: 20px;
    z-index: 9000;
    font-family: inherit;
}
.oor-wa[hidden] { display: none; }
.oor-wa--right { right: 20px; }
.oor-wa--left { left: 20px; }

.oor-wa__pulsante {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
    cursor: pointer;
    animation: oor-wa-entra .35s ease-out;
    transition: transform .2s ease;
}
.oor-wa__pulsante:hover { transform: scale(1.06); }
.oor-wa__pulsante:focus-visible { outline: 3px solid #005a86; outline-offset: 3px; }
.oor-wa__pulsante svg { width: 34px; height: 34px; }

.oor-wa__finestra {
    position: absolute;
    bottom: 76px;
    width: min(320px, calc(100vw - 40px));
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    color: #1f2d33;
    box-shadow: 0 10px 36px rgba(0, 0, 0, .22);
    animation: oor-wa-entra .25s ease-out;
}
.oor-wa__finestra[hidden] { display: none; }
.oor-wa--right .oor-wa__finestra { right: 0; }
.oor-wa--left .oor-wa__finestra { left: 0; }

.oor-wa__testa {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #25d366;
    color: #fff;
}
.oor-wa__marchio { font-weight: 600; font-size: 1.6rem; }
.oor-wa__chiudi {
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 2.4rem;
    line-height: 1;
    cursor: pointer;
}
.oor-wa__fumetto {
    margin: 16px;
    padding: 12px 14px;
    border-radius: 0 12px 12px 12px;
    background: #f0f5f3;
    font-size: 1.4rem;
    line-height: 1.5;
}
.oor-wa__apri {
    display: block;
    margin: 0 16px 16px;
    padding: 11px 16px;
    border-radius: 24px;
    background: #25d366;
    color: #fff !important;
    font-weight: 600;
    font-size: 1.4rem;
    text-align: center;
    text-decoration: none !important;
}
.oor-wa__apri:hover { background: #1ebe5b; }

@keyframes oor-wa-entra {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
    .oor-wa__pulsante, .oor-wa__finestra { animation: none; transition: none; }
}
@media (prefers-color-scheme: dark) {
    .oor-wa__finestra { background: #1f2c33; color: #e9edef; }
    .oor-wa__fumetto { background: #2a3942; }
}
@media print { .oor-wa { display: none !important; } }
