/* =========================================================
   Due Emme Recinzioni - CTA floating (WhatsApp + Chiama)
   STEP 6: componente fisso globale per conversione mobile/desktop
   ========================================================= */

/* -------- Desktop: 2 pulsanti floating in basso a destra -------- */
.dueemme-floating-cta {
    position: fixed;
    right: 20px;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 9000;
    pointer-events: none; /* lascia passare i click sotto, tranne sui figli */
}

.dueemme-floating-cta a {
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 18px;
    border-radius: 999px;
    text-decoration: none;
    font-family: 'Roboto', 'Segoe UI', system-ui, sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.2s ease;
    white-space: nowrap;
}

.dueemme-floating-cta a:hover,
.dueemme-floating-cta a:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
    outline: none;
}

.dueemme-floating-whatsapp {
    background-color: #25D366; /* WhatsApp green */
}

.dueemme-floating-whatsapp:hover,
.dueemme-floating-whatsapp:focus-visible {
    background-color: #1ebe5d;
    color: #ffffff;
}

.dueemme-floating-call {
    background-color: #37474F; /* brand secondary scuro */
}

.dueemme-floating-call:hover,
.dueemme-floating-call:focus-visible {
    background-color: #263238;
    color: #ffffff;
}

.dueemme-floating-cta .dueemme-cta-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* -------- Mobile: sticky bottom bar full width -------- */
@media (max-width: 768px) {
    .dueemme-floating-cta {
        right: 0;
        bottom: 0;
        left: 0;
        flex-direction: row;
        gap: 0;
        padding: 0;
        background: #ffffff;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.12);
    }

    .dueemme-floating-cta a {
        flex: 1 1 50%;
        padding: 14px 8px;
        border-radius: 0;
        font-size: 15px;
        box-shadow: none;
    }

    .dueemme-floating-cta a:hover,
    .dueemme-floating-cta a:focus-visible {
        transform: none;
        box-shadow: none;
    }

    /* lascia spazio sotto i contenuti per non finire sotto la barra */
    body {
        padding-bottom: 56px;
    }
}

/* Stampa: nascondi la barra */
@media print {
    .dueemme-floating-cta {
        display: none !important;
    }
}

/* Compatibilita' con sticky-cart di catalogo.html: alza la sticky-cart
   sopra la barra CTA quando entrambe sono visibili su mobile */
@media (max-width: 768px) {
    .sticky-cart {
        bottom: 56px !important;
    }
    /* Lascia spazio per sticky-cart + CTA bar su mobile in catalogo */
    body:has(.sticky-cart:not(.hidden)) {
        padding-bottom: 130px;
    }
}
