/* Overlay base */
.contact-overlay {
    position: absolute;
    inset: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 1rem; /* Allineato alla card */
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Quando visibile (gestito via JS togliendo d-none) */
.contact-overlay:not(.d-none) {
    opacity: 1;
}

/* Pannello centrale */
.contact-overlay-panel {
    width: 100%;
    max-width: 24rem;
    background: #ffffff;
    border-radius: 1.5rem;
    padding: 2.5rem 2rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;

    /* Animazione Pop-In */
    transform: scale(0.9) translateY(20px);
    animation: overlayPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes overlayPop {
    to { transform: scale(1) translateY(0); }
}

/* Icona stilizzata */
.contact-overlay-icon {
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    margin-bottom: 0.5rem;
    position: relative;
}

.contact-overlay-icon .material-symbols-outlined {
    font-size: 2.8rem;
    font-variation-settings: 'FILL' 0, 'wght' 300; /* Più sottile ed elegante */
}

/* Testi */
.contact-overlay-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    line-height: 1.2;
}

.contact-overlay-msg {
    color: #666;
    font-size: 1rem;
    line-height: 1.5;
}

/* Varianti Colore */
.is-success .contact-overlay-icon {
    background: #eefaf3;
    color: #198754;
    border: 1px solid rgba(25, 135, 84, 0.1);
}

.is-danger .contact-overlay-icon {
    background: #fff5f5;
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.1);
}

/* Effetto pulsazione delicata sull'icona success */
.is-success .contact-overlay-icon {
    animation: pulseSuccess 2s infinite;
}

@keyframes pulseSuccess {
    0% { box-shadow: 0 0 0 0 rgba(25, 135, 84, 0.2); }
    70% { box-shadow: 0 0 0 15px rgba(25, 135, 84, 0); }
    100% { box-shadow: 0 0 0 0 rgba(25, 135, 84, 0); }
}

/* Nasconde il badge fluttuante di Google reCAPTCHA */
.grecaptcha-badge {
    visibility: hidden;
}
/* -------------------------------------------------
   Segnaposto per gli embed di terze parti (Google Maps)
   L'iframe viene inserito qui da js/cookie-consent.js
   solo dopo il consenso.
------------------------------------------------- */
.consent-embed {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f4f6f7;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.consent-embed.is-loaded {
    display: block;
    background: none;
    border-top: 0;
}

.consent-embed iframe {
    display: block;
}

.consent-embed-notice {
    max-width: 24rem;
    padding: 1.5rem 1.25rem;
    text-align: center;
    color: #6c757d;
    font-size: 0.9rem;
}

.consent-embed-notice .material-symbols-outlined {
    font-size: 2rem;
    color: var(--bs-primary);
}

.consent-embed-notice a {
    color: var(--bs-primary);
}
