/* Form contatto incorporato nelle pagine servizio */
.contact-embed-section {
    padding: clamp(2.75rem, 5vw, 3.75rem) 1.25rem;
    background: linear-gradient(165deg, #003731 0%, #014840 52%, #005249 100%);
    color: #fff;
}

.contact-embed-section.cta-section {
    background: linear-gradient(165deg, #003731 0%, #004d45 48%, #005249 100%);
    color: #fff;
}

.contact-embed-section.cta-section .contact-embed-copy h2,
.contact-embed-section.cta-section .contact-embed-copy p {
    color: #fff;
}

.contact-embed-section.cta-section .contact-embed-copy p {
    opacity: 0.92;
}

.contact-embed-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: clamp(1.5rem, 4vw, 2.75rem);
    align-items: start;
    max-width: 1120px;
    margin: 0 auto;
}

.contact-embed-layout--cta-only {
    grid-template-columns: 1fr;
    max-width: 36rem;
    text-align: center;
}

.contact-embed-layout--cta-only .contact-embed-copy h2,
.contact-embed-layout--cta-only .contact-embed-copy p {
    text-align: center;
}

.contact-embed-layout--cta-only .contact-embed-copy p {
    margin-bottom: 1.35rem;
}

.contact-embed-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.25rem;
    min-width: min(100%, 16rem);
    cursor: pointer;
    font-family: inherit;
    border: none;
    position: relative;
    z-index: 2;
    pointer-events: auto;
}

.contact-embed-section .contact-embed-cta.btn-primary {
    background: #fff;
    color: #003731;
    font-weight: 600;
    border: 2px solid #fff;
    border-radius: 8px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.16);
}

.contact-embed-section .contact-embed-cta.btn-primary:hover {
    background: #f0f9f7;
    color: #003731;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

.contact-embed-section.cta-section .contact-embed-cta.btn-primary {
    background: #fff;
    color: #003731;
    font-weight: 600;
    border: 2px solid #fff;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
}

.contact-embed-section.cta-section .contact-embed-cta.btn-primary:hover {
    background: #f0f9f7;
    color: #003731;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.16);
}

.contact-embed-section.cta-section .contact-embed-copy {
    position: relative;
    z-index: 1;
}

a.contact-embed-cta {
    text-decoration: none;
}

.contact-embed-copy h2 {
    font-size: clamp(1.65rem, 3.2vw, 2.25rem);
    margin: 0 0 0.85rem;
    line-height: 1.2;
    color: #fff;
}

.contact-embed-copy p {
    margin: 0 0 1rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.05rem;
}

.contact-embed-copy .contact-embed-links {
    margin-top: 1.25rem;
    font-size: 0.9rem;
}

.contact-embed-copy .contact-embed-links a {
    color: #b8f5e8;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.contact-embed-section.cta-section .contact-embed-copy .contact-embed-links a {
    color: #b8f5e8;
}

.contact-channel-badge.contact-embed-badge {
    display: inline-block;
    margin-bottom: 0.65rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #e8fff8;
}

.contact-channel-badge.contact-embed-badge[hidden] {
    display: none;
}

.contact-embed-section.cta-section .contact-channel-badge.contact-embed-badge {
    background: rgba(255, 255, 255, 0.14);
    color: #e8fff8;
}

.contact-embed-form .ig-lead-form-card {
    background: #fff;
    border-radius: 14px;
    padding: clamp(1.25rem, 3vw, 1.75rem);
    box-shadow: 0 18px 48px -28px rgba(0, 55, 49, 0.35);
    border: 1px solid rgba(0, 55, 49, 0.08);
}

.contact-embed-section.cta-section .contact-embed-form .ig-lead-form-card {
    box-shadow: 0 24px 56px -24px rgba(0, 0, 0, 0.45);
}

@media (max-width: 900px) {
    .contact-embed-layout {
        grid-template-columns: 1fr;
    }
}
