.global-automacao,
.global-automacao * {
    box-sizing: border-box;
}

.global-automacao {
    width: 100%;
    position: relative;
    overflow: visible;
    background: transparent;
    font-family: Montserrat, Arial, sans-serif;
    padding: 99px 0 100px;
}

.global-automacao__container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 8px;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 49px;
}

.global-automacao__media {
    flex: 0 0 510px;
    width: 510px;
    max-width: 510px;
    margin-top: 99px;
    position: relative;
    min-width: 0;
    z-index: 0;
    isolation: isolate;
}


.global-automacao__image-wrap {
    width: 510px;
    height: 554px;
    overflow: hidden;
    position: relative;
    z-index: 1;
    border-radius: 18px;
    box-shadow: none;
    background: transparent;
    border: 0 !important;
    outline: 0 !important;
}


/* PSD 510×554: mantém a imagem completa no desktop, sem crop. */
@media (min-width: 1025px) {
    .global-automacao--image-original-ratio .global-automacao__image-wrap {
        aspect-ratio: 510 / 554;
        height: auto !important;
    }
}

/*
 * Sombra projetada fiel ao PSD/Photoshop.
 * Photoshop informado pelo usuário: Normal, 30% opacidade, distância 0px,
 * expansão 10%, tamanho 30px. Em CSS, 10% de 30px ≈ spread de 3px.
 */
.global-automacao {
    --ga-psd-shadow-color: #006B9F;
    --ga-psd-shadow-opacity: .30;
    --ga-psd-shadow-blur: 30px;
    --ga-psd-shadow-spread: 3px;
    --ga-psd-shadow-x: 0px;
    --ga-psd-shadow-y: 0px;
}

.global-automacao--psd-shadow .global-automacao__image-wrap {
    box-shadow:
        var(--ga-psd-shadow-x)
        var(--ga-psd-shadow-y)
        var(--ga-psd-shadow-blur)
        var(--ga-psd-shadow-spread)
        color-mix(in srgb, var(--ga-psd-shadow-color) calc(var(--ga-psd-shadow-opacity) * 100%), transparent) !important;
}

@supports not (color: color-mix(in srgb, #000 30%, transparent)) {
    .global-automacao--psd-shadow .global-automacao__image-wrap {
        box-shadow: 0 0 30px 3px rgba(0, 107, 159, .30) !important;
    }
}

.global-automacao__image-wrap img,
.global-automacao__image-wrap .global-automacao__img {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    max-width: none;
    object-fit: contain;
    object-position: center center;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    opacity: 1;
    visibility: visible;
}

.global-automacao__image-wrap .global-automacao__img {
    position: relative;
    z-index: 2;
}

.global-automacao__card {
    position: absolute;
    right: -20px;
    bottom: -20px;
    z-index: 3;
    width: 272px;
    height: 108px;
    min-height: 108px;
    display: flex;
    align-items: center;
    gap: 19px;
    padding: 24px;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 18px 42px -22px rgba(0, 112, 190, .22) !important;
}

.global-automacao__card-icon,
.global-automacao__feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.global-automacao__card-icon {
    width: 60px;
    height: 60px;
    flex: 0 0 60px;
    background: #0066c8;
    color: #ffffff;
    border-radius: 14px;
    font-size: 23px;
}

.global-automacao__card-icon svg,
.global-automacao__feature-icon svg {
    width: 1em;
    height: 1em;
}

.global-automacao__feature-icon .global-automacao__bolt-svg {
    width: 23px;
    height: 23px;
    display: block;
    fill: currentColor;
}

.global-automacao__card-title {
    margin: 0;
    color: #111111;
    font-size: 16px;
    line-height: 1.15;
    font-weight: 600;
}

.global-automacao__card-subtitle {
    margin: 2px 0 0;
    color: #3f3f3f;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 400;
}

.global-automacao__content {
    flex: 1 1 auto;
    width: auto;
    max-width: none;
    min-width: 0;
    padding-left: 0;
    padding-right: 0;
}

.global-automacao__main-axis {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.global-automacao__main-axis .global-automacao__title,
.global-automacao__main-axis .global-automacao__texts {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
}

.global-automacao__tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    min-height: 42px;
    width: 187px;
    min-width: 187px;
    border: 1px solid #c5e1fc;
    background: #edf6ff;
    color: #004caa;
    border-radius: 28px;
    padding: 0 24px;
    margin: 0 0 45px;
    font-size: 14px;
    line-height: 1;
    font-weight: 500;
}

.global-automacao__title {
    margin: 0 0 17px;
    padding: 0;
    color: #050505;
    font-size: 46px;
    line-height: 50px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.global-automacao__texts {
    margin: 0 0 45px;
}

.global-automacao__text {
    margin: 0;
    color: #525252;
    font-size: 16px;
    line-height: 29px;
    font-weight: 400;
    text-align: justify;
    text-justify: inter-word;
}

.global-automacao__text p {
    margin: 0;
    padding: 0;
    color: inherit;
    font: inherit;
    line-height: inherit;
    text-align: inherit;
}

.global-automacao__text + .global-automacao__text {
    margin-top: 30px;
}

.global-automacao__text strong,
.global-automacao__text b {
    color: #181818;
    font-weight: 600;
}

.global-automacao__features {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-left: 26px;
    margin-right: 0;
    margin-top: 0;
    width: calc(100% - 26px);
    max-width: none;
}


.global-automacao__feature {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    min-width: 0;
    width: 100%;
    min-height: 60px;
}

.global-automacao__feature-icon {
    width: 60px;
    height: 60px;
    flex: 0 0 60px;
    color: #008ee5;
    background: #d8eaf6;
    border-radius: 15px;
    font-size: 22px !important;
}

.global-automacao__feature-copy {
    min-width: 0;
    flex: 1 1 auto;
    width: auto;
    max-width: none;
    padding-top: 4px;
    text-align: left;
}

.global-automacao__feature-title {
    margin: 0 0 4px;
    padding: 0;
    color: #111111;
    font-size: 16px;
    line-height: 1.15;
    font-weight: 600;
}

.global-automacao__feature-text {
    margin: 2px 0 0;
    padding: 0;
    color: #505050;
    font-size: 13px;
    line-height: 1.25;
    font-weight: 400;
    text-align: left;
    width: 100%;
    max-width: none;
}

/* Hover suave dos diferenciais: mantém o desenho do PSD e só adiciona movimento ao interagir. */
.global-automacao--feature-hover .global-automacao__feature {
    transition: transform var(--ga-feature-hover-duration) cubic-bezier(.22,.61,.36,1);
    will-change: transform;
}

.global-automacao--feature-hover .global-automacao__feature-icon {
    transition: transform var(--ga-feature-hover-duration) cubic-bezier(.22,.61,.36,1),
                box-shadow var(--ga-feature-hover-duration) ease,
                background-color var(--ga-feature-hover-duration) ease;
    will-change: transform;
}

@media (hover: hover) and (pointer: fine) {
    .global-automacao--feature-hover .global-automacao__feature:hover {
        transform: translate3d(var(--ga-feature-hover-x), var(--ga-feature-hover-y), 0);
    }

    .global-automacao--feature-hover .global-automacao__feature:hover .global-automacao__feature-icon {
        transform: scale(var(--ga-feature-hover-icon-scale));
        box-shadow: 0 8px 22px var(--ga-feature-hover-shadow);
    }
}

/* Sombra azul fiel ao PSD com "respiração" suave e configurável. */
.global-automacao {
    --ga-shadow-base-color: rgba(62, 173, 225, .18);
    --ga-shadow-glow-color: rgba(0, 112, 190, .12);
    --ga-shadow-base-blur: 18px;
    --ga-shadow-base-spread: -4px;
    --ga-shadow-glow-blur: 34px;
    --ga-shadow-glow-spread: -6px;
    --ga-shadow-duration: 3.4s;
    --ga-image-mobile-ratio: 510 / 554;
    --ga-feature-hover-x: 6px;
    --ga-feature-hover-y: -2px;
    --ga-feature-hover-icon-scale: 1.06;
    --ga-feature-hover-duration: 280ms;
    --ga-feature-hover-shadow: rgba(0,156,232,.24);
}

@keyframes globalAutomacaoShadowPulse {
    0%, 100% {
        box-shadow: 0 18px 50px -24px rgba(0, 112, 190, .18);
    }
    50% {
        box-shadow: 0 22px 58px -24px rgba(0, 156, 232, .22);
    }
}




.global-automacao--shadow-animated.global-automacao--shadow-card .global-automacao__card,
.global-automacao--shadow-animated.global-automacao--shadow-both .global-automacao__card {
    animation: globalAutomacaoShadowPulse var(--ga-shadow-duration) ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
    .global-automacao--shadow-animated .global-automacao__image-wrap,
    .global-automacao--shadow-animated .global-automacao__card {
        animation: none !important;
    }
}

/*
 * Animações seguras: o CSS nunca oculta o conteúdo.
 * O JavaScript usa Web Animations API apenas quando o elemento entra na viewport.
 * Se JS falhar, editor/preview e front-end continuam 100% visíveis.
 */

@media (max-width: 1024px) {
    .global-automacao { padding: 60px 0; }
    .global-automacao--proportional-mobile .global-automacao__image-wrap {
        height: auto !important;
        aspect-ratio: var(--ga-image-mobile-ratio);
    }

    .global-automacao--proportional-mobile .global-automacao__image-wrap img {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain;
    }

    .global-automacao--proportional-mobile .global-automacao__media::before {
        height: calc(100% + 4px);
    }

    .global-automacao__container {
        width: 100%;
        max-width: 100% !important;
        padding-left: 10px;
        padding-right: 10px;
        flex-direction: column;
        align-items: stretch;
        gap: 38px;
    }

    .global-automacao__media,
    .global-automacao__content {
        flex: 0 0 100%;
        max-width: 100%;
        width: 100%;
    }

    .global-automacao__media {
        margin-top: 0;
    }

    .global-automacao__image-wrap {
        width: 100%;
        height: 500px;
    }

    .global-automacao__title {
        font-size: 36px;
    }

    .global-automacao__features {
        margin-left: 0;
        margin-right: 0;
        margin-top: 0;
        width: 100%;
        max-width: none;
    }

    .global-automacao--mobile-content-first .global-automacao__container {
        flex-direction: column-reverse;
    }
}

@media (max-width: 767px) {
    .global-automacao { padding: 44px 0; }
    .global-automacao--shadow-no-mobile .global-automacao__image-wrap,
    .global-automacao--shadow-no-mobile .global-automacao__card {
        animation: none !important;
    }

    .global-automacao__container {
        max-width: 100% !important;
        padding-left: 10px;
        padding-right: 10px;
        gap: 32px;
    }

    .global-automacao__image-wrap {
        height: 390px;
    }

    .global-automacao__card {
        position: relative;
        right: auto;
        bottom: auto;
        width: 92%;
        min-height: 92px;
        margin: -34px auto 0;
    }

    .global-automacao__tag {
        margin-bottom: 28px;
    }

    .global-automacao__title {
        font-size: 30px;
        letter-spacing: -0.015em;
    }

    .global-automacao__text {
        font-size: 15px;
        text-align: left;
    }

    .global-automacao__feature {
        align-items: flex-start;
    }

    .global-automacao--no-mobile-animation .ga-animate {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .global-automacao .ga-animate {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}
