/* One service-request component, including existing Elementor buttons. */
/* Same photographic framing as Ensaios at every breakpoint; keep cover sizing. */
body.elo-service-page .elementor .elementor-element.elementor-element-4ba2cfe,
body.elo-service-page .elementor .elementor-element.elementor-element-e40392f,
body.elo-service-page .elo-atp-hero,
body.elo-service-page .elo-catalog__hero {
    background-position: center center !important;
}

/* These final Elementor containers contain only legacy script widgets, no visible content. */
body.elo-service-page main :is(
    .elementor-element-77410d5,
    .elementor-element-89b5e03,
    .elementor-element-2914e50,
    .elementor-element-b2f4625
) {
    display: none;
}

/* Only the existing blue service summary and Dúvidas panels, not other cards. */
body.elo-service-page main .elementor-element-1044f77 .elementor-alert,
body.elo-service-page main .elementor-element-e1f0082 {
    border-radius: var(--elo-control-radius);
}

/* Compact service summaries: content determines the height, with no placeholder heading. */
body.elo-service-page main .elementor-element-1044f77 .elementor-alert,
body.elo-service-page main .elo-ensaios-intro,
body.elo-service-page main .elo-service-summary {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 0;
    padding: 20px 24px;
    border-radius: var(--elo-control-radius);
    color: #fff;
    background: var(--elo-primary);
    font-size: clamp(16px, 1.7vw, 20px);
    line-height: 1.65;
}
body.elo-service-page main .elementor-element-1044f77 .elementor-alert-title {
    display: none;
}
body.elo-service-page main .elo-ensaios-intro {
    border-inline-start: 5px solid #bcdff1;
}
body.elo-service-page main .elementor-element.elementor-element-1044f77 .elementor-alert-description,
body.elo-service-page main .elo-service-summary p {
    display: block;
    margin: 0;
    padding: 0;
    color: inherit;
    font-size: inherit;
    line-height: inherit;
}
body.elo-service-page main .elo-service-summary p + p {
    margin-top: 12px;
}
body.elo-service-page .elo-atp-summary {
    margin-top: 24px;
}
@media (max-width: 767px) {
    body.elo-service-page main .elementor-element-1044f77 .elementor-alert,
    body.elo-service-page main .elo-ensaios-intro,
    body.elo-service-page main .elo-service-summary {
        padding: 16px 18px;
        text-align: left;
    }
}

body a.elo-request-button {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 42px;
    min-width: 0;
    width: fit-content;
    margin-left: auto;
    margin-right: 0;
    align-self: flex-end;
    max-width: 100%;
    box-sizing: border-box;
    padding: 12px 24px !important;
    border: 0 !important;
    border-radius: var(--elo-control-radius) !important;
    color: #fff !important;
    background: #25D366 !important;
    font-family: inherit;
    font-size: 18px !important;
    font-weight: 500 !important;
    line-height: 1 !important;
    letter-spacing: normal !important;
    text-align: center;
    text-decoration: none !important;
    white-space: normal;
    transform-origin: right center;
    animation: elo-request-pulse 2s infinite ease-in-out;
    transition: background-color 180ms ease, color 180ms ease;
}
body a.elo-request-button:hover,
body a.elo-request-button:focus-visible {
    color: #fff !important;
    background: #25D366 !important;
}
body a.elo-request-button:focus-visible {
    outline: 3px solid var(--elo-primary);
    outline-offset: 3px;
    box-shadow: 0 0 0 3px var(--elo-surface);
}
.elo-request-button > .elo-request-button__icon {
    display: block;
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    fill: currentColor;
}
.elo-request-button > .elo-request-button__label { color: inherit; }

/* Labels use the official gold directly, as approved by the client. */
body.elo-service-page .elo-service-eyebrow,
body.elo-service-page .elo-catalog__eyebrow,
body.elo-service-page .elo-atp-eyebrow,
body.elo-service-page .elementor .elementor-element p.elo-service-eyebrow,
body.home #servicos .elementor-widget-text-editor p {
    display: block;
    width: auto;
    max-width: 100%;
    padding: 0;
    border-radius: 0;
    color: var(--elo-brand-accent) !important;
    background: transparent;
}
body.elo-service-page .elo-catalog__hero,
body.elo-service-page .elo-sector-modal__header {
    background: var(--elo-primary);
}
body.elo-service-page .elo-breadcrumb,
body.elo-service-page .elo-breadcrumb a,
body.elo-service-page .elo-catalog__lead,
body.elo-service-page .elo-detail-card,
body.elo-service-page .elo-catalog-cta { color: var(--elo-surface); }
body.elo-service-page .elo-catalog-cta p:not(.elo-catalog__eyebrow),
body.elo-service-page .elo-atp-final p:not(.elo-atp-eyebrow) { color: var(--elo-surface); }
body.elo-service-page .elo-primary-button { flex-shrink: 0; }

/* Elementor's per-widget alignments must not change the common CTA position. */
body .elementor-widget-button:has(.elo-request-button) {
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    align-self: flex-end;
}
body .elementor-widget-button:has(.elo-request-button) .elementor-button-wrapper {
    text-align: right;
}

/* The original widget also pulses; animate only the anchor, never both layers. */
body .elementor-13 .elementor-element-29bcb41 .elo-request-button,
body .elementor-5229 .elementor-element-06893d5 .elo-request-button,
body .elementor-5240 .elementor-element-a699730 .elo-request-button {
    margin-inline: auto;
    align-self: center;
    transform-origin: center;
}

body .botao-pulsante:has(.elo-request-button) {
    animation: none !important;
    transform: none;
    box-shadow: none;
    overflow: visible;
}

@keyframes elo-request-pulse {
    0%, 100% { transform: scale(1); }
    70% { transform: scale(1.05); }
}
@media (prefers-reduced-motion: reduce) {
    body a.elo-request-button { animation: none; transition: none; }
}
