/* =========================================
   FLOATING CALL BUTTON — PREMIUM VERSION
   ========================================= */

.call-button-wrapper {
    position: fixed;
    bottom: 18px;
    right: 18px;
    z-index: 1200;

    display: flex;
    align-items: center;
    gap: 6px;

    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.28s ease-out, transform 0.28s ease-out;
}

.call-button-wrapper.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Pulsante principale */
.call-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    padding: 11px 18px 11px 14px;
    border-radius: 999px;

    background: linear-gradient(135deg, var(--main-color), var(--main-color-soft));
    color: #1f140c;
    text-decoration: none;
    font-family: inherit;

    box-shadow: 0 12px 30px rgba(24, 13, 4, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.32);

    transition: transform 0.25s ease-out, box-shadow 0.25s ease-out;
}

/* Icona telefono */
.call-button-icon {
    width: 32px;
    height: 32px;
    border-radius: 999px;

    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;

    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.call-button-icon svg {
    width: 18px;
    height: 18px;
    stroke: var(--accent-espresso);
}

/* Testi */
.call-button-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.call-button-label {
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    opacity: 0.9;
}

.call-button-main {
    font-size: 0.92rem;
    font-weight: 600;
}

/* Hover desktop */
@media (hover: hover) {
    .call-button:hover {
        transform: translateY(-2px);
        box-shadow: 0 16px 34px rgba(24, 13, 4, 0.55);
    }
}

/* Pulsante X per chiudere */
.call-button-close {
    width: 34px;
    height: 34px;
    border-radius: 999px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);

    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;

    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4);

    transition: transform 0.2s ease, background 0.2s ease;
}

.call-button-close:hover {
    transform: scale(1.07);
    background: rgba(0, 0, 0, 0.78);
}

/* Mobile tweaks */
@media (max-width: 640px) {
    .call-button-wrapper {
        right: 14px;
        bottom: 70px;
    }

    .call-button {
        padding: 11px 16px 11px 12px;
    }

    .call-button-icon {
        width: 30px;
        height: 30px;
    }
}
