/* ──────────────────────────────────────────────────────────
   Ippocrate Recesso – footer-widget.css v1.3.0
   Pannello fisso compatibile Kadence Theme
   ────────────────────────────────────────────────────────── */

/* ── Trigger button ──────────────────────────────────────── */
#ippr-footer-trigger {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9990;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #1a3a2a;
    color: #ffffff;
    padding: 11px 18px;
    border-radius: 30px;
    cursor: pointer;
    font-family: Arial, sans-serif;
    font-size: 13px;
    font-weight: bold;
    box-shadow: 0 3px 14px rgba(0,0,0,.28);
    transition: background .2s, transform .15s;
    user-select: none;
    /* Kadence usa z-index 999 per header sticky: usiamo 9990 */
}

#ippr-footer-trigger:hover {
    background: #0e2318;
    transform: translateY(-2px);
}

#ippr-footer-trigger:focus {
    outline: 3px solid #6aaa7e;
    outline-offset: 2px;
}

.ippr-ft-icon {
    font-size: 16px;
    line-height: 1;
}

.ippr-ft-label {
    white-space: nowrap;
}

/* ── Pannello overlay ────────────────────────────────────── */
#ippr-footer-panel {
    position: fixed;
    bottom: 0;
    right: 0;
    width: 460px;
    max-width: 100vw;
    max-height: 90vh;
    z-index: 9995;
    background: #ffffff;
    border-radius: 10px 0 0 0;
    box-shadow: -4px -4px 24px rgba(0,0,0,.18);
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform .3s cubic-bezier(.4,0,.2,1);
    overflow: hidden;
}

/* Stato aperto */
#ippr-footer-panel.ippr-panel-open {
    transform: translateY(0);
}

/* Nascosto per screen reader quando chiuso */
#ippr-footer-panel[aria-hidden="true"] {
    pointer-events: none;
}

/* ── Inner scroll ────────────────────────────────────────── */
#ippr-footer-panel-inner {
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* ── Close button ────────────────────────────────────────── */
#ippr-footer-close {
    position: sticky;
    top: 0;
    align-self: flex-end;
    background: #f4f4f4;
    border: none;
    width: 100%;
    padding: 10px 14px;
    text-align: right;
    font-size: 22px;
    line-height: 1;
    color: #555;
    cursor: pointer;
    z-index: 2;
    border-bottom: 1px solid #ebebeb;
    font-family: Arial, sans-serif;
    transition: background .15s;
}

#ippr-footer-close:hover {
    background: #e8e8e8;
    color: #222;
}

/* ── Contenuto ───────────────────────────────────────────── */
#ippr-footer-content {
    padding: 20px 24px 32px;
    flex: 1;
}

/* Override: nel footer widget il box non ha shadow propria */
#ippr-footer-content .ippr-box {
    box-shadow: none;
    border: none;
    padding: 0;
}

#ippr-footer-content .ippr-header h3 {
    font-size: 17px;
}

/* ── Responsive mobile ───────────────────────────────────── */
@media ( max-width: 500px ) {
    #ippr-footer-trigger {
        bottom: 16px;
        right: 16px;
        padding: 10px 14px;
        font-size: 12px;
    }

    .ippr-ft-label {
        /* Nasconde testo su mobile molto stretto, mostra solo icona */
        display: none;
    }

    #ippr-footer-panel {
        width: 100vw;
        border-radius: 12px 12px 0 0;
        bottom: 0;
        right: 0;
        left: 0;
        max-height: 92vh;
    }
}

/* ── Kadence sticky header compatibilità ─────────────────── */
/* Kadence usa .header-sticky con z-index 101 o 999.
   Il trigger usa 9990 e il pannello 9995: sempre sopra. */
