.hero-empresafora {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--ef-black);
    color: var(--ef-white);
    padding: 80px 40px;
    /* Matching original hero padding */
}


.ef-home-hero {
    position: relative;
    overflow: hidden;

    display: flex;
    align-items: center;

    min-height: calc(100svh - 112px);

    padding: clamp(36px, 3vw, 64px) 0 clamp(44px, 4vw, 76px);

    background: url("../../../../assets/img/home/hero.png") center center / cover no-repeat;

    will-change: transform;
    margin-bottom: 90px;
}

.hero-empresafora__container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
}

.hero-empresafora__content {
    max-width: 860px;
    margin: 0 auto;
    text-align: center;
}

.hero-empresafora__title {
    margin: 0;
    line-height: 1.1;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 800;
}

.hero-empresafora__title-line {
    display: block;
}

.hero-empresafora__title-line--white,
.hero-empresafora__title-line--gold {
    font-size: clamp(2.5rem, 10vw, 4.8rem);
    /* Ajustado para o tamanho de impacto do original */
    font-weight: 900;
    line-height: 0.9;
    /* Line-height mais compacto */
    letter-spacing: -0.02em;
    /* Letter-spacing negativo para títulos */
}

.hero-empresafora__title-line--white {
    color: #f3f3f3;
}

.hero-empresafora__title-line--gold {
    margin-top: 6px;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-empresafora__eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 28px;
}

.hero-empresafora__eyebrow-line {
    display: inline-block;
    width: 52px;
    height: 1px;
    background: rgba(214, 178, 75, 0.45);
}

.hero-empresafora__eyebrow-text {
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 3.2px;
    text-transform: uppercase;
    white-space: nowrap;
}

.hero-empresafora__description {
    max-width: 700px;
    margin: 34px auto 0;
    color: #e0e0e0;
    font-size: 19px;
    line-height: 1.6;
    font-weight: 400;
}

.hero-empresafora__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 42px;
}

.hero-empresafora__cta {
    --slide-progress: 0%;
    --slide-x: 0px;
    --slide-fill-width: 0px;
    --slide-label-gutter: 76px;
    --slide-label-opacity: 1;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: min(680px, calc(100vw - 120px));
    min-height: 76px;
    padding: 8px 10px 8px 84px;
    overflow: hidden;
    border: 1px solid rgba(249, 242, 149, 0.78);
    border-radius: 999px;
    background: #111;
    color: #fff;
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.1em;
    line-height: 1;
    text-decoration: none;
    cursor: grab;
    user-select: none;
    touch-action: none;
    box-shadow: none;
    isolation: isolate;
    transition: color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
}

.hero-empresafora__cta::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    width: var(--slide-fill-width);
    background: var(--gold-grad-rich);
    border-radius: inherit;
    transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: width;
}

.hero-empresafora__cta::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -35%;
    width: 18%;
    background: rgba(255, 255, 255, 0.42);
    filter: blur(12px);
    transform: skewX(-18deg);
    transition: left 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
}

.hero-empresafora__cta-label,
.hero-empresafora__cta-icon {
    position: relative;
    z-index: 1;
}

.hero-empresafora__cta-label {
    position: absolute;
    top: 50%;
    left: var(--slide-label-gutter);
    right: var(--slide-label-gutter);
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    pointer-events: none;
    opacity: var(--slide-label-opacity);
    text-align: center;
    transform: translateY(-50%);
    transition: opacity 0.2s ease;
}

.hero-empresafora__cta-label-action {
    color: #fff;
    font-weight: 850;
    max-width: 100%;
    overflow: hidden;
    font-size: var(--slide-label-size, 1.14em);
    letter-spacing: 0.07em;
    background: linear-gradient(110deg, #fff 30%, #fff5ad 48%, #fff 66%);
    background-size: 220% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: slide-cta-label-shine 4.5s ease-in-out infinite;
}

.hero-empresafora__cta-icon {
    position: absolute;
    top: 8px;
    left: 8px;
    display: grid;
    place-items: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gold-gradient-button);
    color: #090909;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.56), 0 5px 14px rgba(0, 0, 0, 0.28);
    transform: translateX(var(--slide-x));
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), background 0.4s ease;
    cursor: grab;
    pointer-events: auto;
    z-index: 2;
    animation: slide-cta-hint 4s ease-in-out infinite;
    will-change: transform;
}

.hero-empresafora__cta-icon .icon {
    width: 24px;
    height: 24px;
    stroke-width: 1.8;
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-empresafora__cta:hover,
.hero-empresafora__cta:focus-visible,
.hero-empresafora__cta.is-dragging {
    border-color: rgba(249, 242, 149, 1);
    color: #fff;
    box-shadow: none;
    transform: translateY(-2px);
}

.hero-empresafora__cta:hover::after,
.hero-empresafora__cta:focus-visible::after {
    left: 120%;
}

.hero-empresafora__cta.is-dragging,
.hero-empresafora__cta.is-dragging .hero-empresafora__cta-icon {
    cursor: grabbing;
}

.hero-empresafora__cta.is-dragging::before {
    transition: none;
}

.hero-empresafora__cta.is-dragging .hero-empresafora__cta-icon {
    animation: none;
    transition: none;
}

.hero-empresafora__cta.is-complete {
    color: #080808;
    cursor: wait;
}

.hero-empresafora__cta.is-complete::before {
    width: 100%;
}

.hero-empresafora__cta.is-complete .hero-empresafora__cta-icon {
    background: #fff;
}

.hero-empresafora__cta.is-complete .hero-empresafora__cta-label {
    opacity: 1;
}

.hero-empresafora__cta.is-complete .hero-empresafora__cta-label-action {
    background: none;
    color: #fff;
    -webkit-text-fill-color: #fff;
}

.hero-empresafora__cta:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
    .hero-empresafora__cta,
    .hero-empresafora__cta::before,
    .hero-empresafora__cta::after,
    .hero-empresafora__cta-icon,
    .hero-empresafora__cta-icon .icon,
    .hero-empresafora__cta-label-action {
        transition: none;
        animation: none;
    }
}

@keyframes slide-cta-hint {
    0%,
    72%,
    100% {
        transform: translateX(var(--slide-x));
    }

    78% {
        transform: translateX(calc(var(--slide-x) + 7px));
    }

    84% {
        transform: translateX(var(--slide-x));
    }
}

@keyframes slide-cta-label-shine {
    0%,
    58%,
    100% {
        background-position: 180% center;
    }

    70% {
        background-position: -20% center;
    }
}


.ef-home-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center,
            rgba(0, 0, 0, 0.2) 0%,
            rgba(0, 0, 0, 0.7) 70%,
            rgba(0, 0, 0, 0.95) 100%);
    z-index: 1;
}

.ef-home-hero>* {
    position: relative;
    z-index: 2;
}

.ef-home-hero .hero-empresafora__content {
    width: 100%;
    max-width: 820px;
    margin: 0 auto;
}

.ef-home-hero .hero-empresafora__title-line--white,
.ef-home-hero .hero-empresafora__title-line--gold {
    font-size: clamp(2rem, 4.8vw, 3.35rem);
    line-height: .92;
}

.ef-home-hero .hero-empresafora__eyebrow {
    margin-top: clamp(14px, 1.3vw, 22px);
}

.ef-home-hero .hero-empresafora__eyebrow-line {
    width: 68px;
}

.ef-home-hero .hero-empresafora__eyebrow-text {
    color: #e2e4ea;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.32em;
}

.ef-home-hero .hero-empresafora__description {
    max-width: 720px;
    color: rgba(255, 255, 255, 0.88);
    font-family: "Open Sans", Arial, sans-serif;
    margin-top: clamp(16px, 1.5vw, 24px);
    font-size: clamp(15px, 1vw, 18px);
    line-height: 1.55;
}

.ef-home-hero .hero-empresafora__actions {
    margin-top: clamp(22px, 2vw, 34px);
}

body.home .ef-home .ef-home-hero .ef-home-stats--hero {
    display: none;
}

body.home .ef-home .ef-home-hero .ef-home-stats--hero .ef-stats {
    overflow: hidden;
    gap: 0;
    border: 1px solid rgba(214, 178, 75, 0.22);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 14px 34px rgba(0, 0, 0, 0.24);
}

body.home .ef-home .ef-home-hero .ef-home-stats--hero .ef-stat {
    padding: 20px 12px 21px;
}

body.home .ef-home .ef-home-hero .ef-home-stats--hero .ef-stat:not(:last-child)::after {
    top: 22%;
    height: 56%;
    background: rgba(214, 178, 75, 0.2);
}

body.home .ef-home .ef-home-hero .ef-home-stats--hero .ef-stat strong {
    font-size: clamp(31px, 3vw, 42px);
    font-weight: 750;
    line-height: 1;
    letter-spacing: 0.01em;
}

body.home .ef-home .ef-home-hero .ef-home-stats--hero .ef-stat span {
    display: block;
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
    line-height: 1.3;
    letter-spacing: 0.015em;
}


@media (max-width: 991px) {
    .hero-empresafora {
        min-height: 85vh;
        padding: 80px 40px;
    }

    .hero-empresafora__title-line--white,
    .hero-empresafora__title-line--gold {
        font-size: clamp(2rem, 5vw, 3.5rem);
    }

    .hero-empresafora__description {
        max-width: 700px;
        font-size: clamp(1rem, 2vw, 1.2rem);
    }
}

@media (max-width: 767px) {
    .hero-empresafora {
        padding: 90px 16px;
    }

    .ef-home-hero {
        align-items: flex-start;
        box-sizing: border-box;
        min-height: calc(100svh - var(--ef-header-total-height, 104px));
        height: calc(100svh - var(--ef-header-total-height, 104px));
        margin-bottom: 0;
        padding: clamp(22px, 5vh, 46px) 0 calc(82px + env(safe-area-inset-bottom));
        scroll-snap-align: start;
        scroll-snap-stop: always;
    }

    .ef-home-hero .hero-empresafora__container,
    .ef-home-hero .hero-empresafora__content {
        height: 100%;
    }

    .ef-home-hero .hero-empresafora__content {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }

    .ef-home-hero .hero-empresafora__eyebrow {
        position: relative;
        display: block;
        width: 100%;
        min-height: 46px;
        text-align: center;
    }

    .ef-home-hero .hero-empresafora__eyebrow::before,
    .ef-home-hero .hero-empresafora__eyebrow::after {
        content: "";
        position: absolute;
        top: 50%;
        width: 112px;
        height: 1px;
        background: rgba(214, 178, 75, 0.45);
    }

    .ef-home-hero .hero-empresafora__eyebrow::before {
        left: 0;
    }

    .ef-home-hero .hero-empresafora__eyebrow::after {
        right: 0;
    }

    .ef-home-hero .hero-empresafora__eyebrow-line {
        display: none;
    }

    .ef-home-hero .hero-empresafora__eyebrow-text {
        display: flex;
        align-items: center;
        justify-content: center;
        width: min(220px, 100%);
        max-width: 220px;
        min-height: 46px;
        margin: 0 auto;
        text-align: center !important;
    }

    .ef-home-hero .hero-empresafora__description {
        margin-bottom: 0;
    }

    body.home .ef-home .ef-home-hero .ef-home-stats--hero {
        display: block;
        width: 100%;
        margin-top: clamp(18px, 3vh, 28px);
        padding: 0;
        background: transparent;
    }

    .ef-home-hero .ef-home-stats--hero .ef-home-shell {
        width: 100%;
        max-width: none;
    }

    .ef-home-hero .ef-home-stats--hero .ef-stats {
        display: flex;
        width: 100%;
        gap: 0;
        border-color: rgba(214, 178, 75, 0.22);
        border-radius: 16px;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 12px 26px rgba(0, 0, 0, 0.22);
    }

    .ef-home-hero .ef-home-stats--hero .ef-stat {
        flex: 1 1 0;
        min-width: 0;
        padding: 14px 4px 15px;
        text-align: center !important;
    }

    .ef-home-hero .ef-home-stats--hero .ef-stat:not(:last-child)::after {
        display: block;
        top: 19%;
        height: 62%;
        background: rgba(214, 178, 75, 0.2);
    }

    .ef-home-hero .ef-home-stats--hero .ef-stat strong {
        font-size: clamp(22px, 6vw, 29px);
        line-height: 1;
    }

    .ef-home-hero .ef-home-stats--hero .ef-stat span {
        display: block;
        margin-top: 6px;
        color: rgba(255, 255, 255, 0.72);
        font-size: clamp(8px, 2.45vw, 11px);
        line-height: 1.25;
        white-space: normal;
        max-width: 100%;
        text-align: center !important;
    }

    body.home .ef-home > .ef-home-stats,
    body.home .ef-home .ef-home-company .ef-home-stats {
        display: none;
    }

    html.ef-home-mobile-snap {
        scroll-snap-type: y mandatory;
        scroll-behavior: smooth;
    }

    html.ef-home-mobile-snap body.home .ef-home > .ef-home-section,
    html.ef-home-mobile-snap body.home .ef-home > .tax-calculator-section,
    html.ef-home-mobile-snap body.home .ef-home-offshore-sections > *,
    html.ef-home-mobile-snap body.home .ef-home-offshore-sections > section {
        scroll-snap-align: start;
        scroll-snap-stop: always;
    }

    .ef-home-hero .hero-empresafora__actions {
        height: 0;
        min-height: 0;
        margin: 0;
        overflow: visible;
    }

    .hero-empresafora__title {
        letter-spacing: -1px;
    }

    .hero-empresafora__title-line--white,
    .hero-empresafora__title-line--gold {
        font-size: clamp(1.4rem, 5vw, 1.4rem);
    }

    .hero-empresafora__eyebrow {
        gap: 10px;
        margin-top: 22px;
    }

    .hero-empresafora__eyebrow-line {
        width: 34px;
    }

    .hero-empresafora__eyebrow-text {
        font-size: 11px;
        letter-spacing: 2.2px;
        white-space: normal;
    }

    .hero-empresafora__description {
        margin-top: 22px;
        font-size: 16px;
        line-height: 1.58;
    }

    .hero-empresafora__actions {
        margin-top: 28px;
        min-height: 68px;
    }

    .hero-empresafora__cta {
        width: 100%;
        max-width: 280px;
        min-width: 0;
        min-height: 68px;
        padding-left: 84px;
        font-size: 12px;
    }

    .hero-empresafora__cta-label {
        left: var(--slide-label-gutter);
        right: var(--slide-label-gutter);
    }

    .hero-empresafora__cta-label-action {
        font-size: var(--slide-label-size, 1.12em);
        letter-spacing: 0.04em;
    }

    .hero-empresafora__cta.is-mobile-sticky {
        position: fixed;
        left: max(12px, env(safe-area-inset-left));
        right: max(12px, env(safe-area-inset-right));
        bottom: calc(14px + env(safe-area-inset-bottom));
        z-index: 1000;
        width: auto;
        margin: 0;
        max-width: none;
        box-sizing: border-box;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(18px);
        transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease,
            color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
    }

    .hero-empresafora__cta.is-mobile-sticky.is-mobile-sticky-visible {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

    .hero-empresafora__cta.is-mobile-sticky.is-mobile-sticky-visible:hover,
    .hero-empresafora__cta.is-mobile-sticky.is-mobile-sticky-visible:focus-visible {
        transform: translateY(-2px);
    }

    .hero-empresafora__cta-icon {
        top: 7px;
        left: 7px;
        width: 52px;
        height: 52px;
    }

    .hero-empresafora__container {
        max-width: 328px;
    }

}


/* Slider CTA: mantém o preenchimento dourado simétrico ao redor do círculo nos dois extremos. */
.hero-empresafora__cta::before {
    width: min(100%, calc(var(--slide-fill-width) + 9px));
}


/* Slider CTA mobile: mantém o mesmo recuo dourado do círculo nos dois extremos. */
@media (max-width: 767px) {
    .hero-empresafora__cta::before {
        width: min(100%, calc(var(--slide-fill-width) + 7px));
    }
}


@media (min-width: 768px) and (max-width: 1024px) {
    html:has(body.home),
    body.home,
    body.home main.ef-home,
    body.home .ef-home {
        background: #000 !important;
    }

    body.home > main.ef-home,
    body.home .ef-home,
    body.home > main.ef-home > section,
    body.home .ef-home > section,
    body.home .ef-home-offshore-sections > section {
        width: 100% !important;
        max-width: none !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
    }

    .ef-home-hero {
        align-items: flex-start !important;
        box-sizing: border-box !important;
        min-height: calc(100svh - var(--ef-header-total-height, 104px)) !important;
        height: calc(100svh - var(--ef-header-total-height, 104px)) !important;
        margin-bottom: 0 !important;
        padding: clamp(22px, 5vh, 46px) 0 calc(82px + env(safe-area-inset-bottom)) !important;
        border-radius: 0 !important;
    }

    .ef-home-hero .hero-empresafora__container,
    .ef-home-hero .hero-empresafora__content {
        height: 100% !important;
    }

    .ef-home-hero .hero-empresafora__container {
        width: calc(100% - 32px) !important;
        max-width: none !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .ef-home-hero .hero-empresafora__content {
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: center !important;
        text-align: center !important;
    }

    .ef-home-hero .hero-empresafora__title,
    .ef-home-hero .hero-empresafora__eyebrow,
    .ef-home-hero .hero-empresafora__description {
        position: relative !important;
        top: clamp(100px, 18vh, 160px) !important;
    }

    .ef-home-hero .hero-empresafora__title,
    .ef-home-hero .hero-empresafora__eyebrow,
    .ef-home-hero .hero-empresafora__description {
        text-align: center !important;
    }

    .ef-home-hero .hero-empresafora__cta {
        position: fixed !important;
        left: max(12px, env(safe-area-inset-left)) !important;
        right: max(12px, env(safe-area-inset-right)) !important;
        bottom: calc(14px + env(safe-area-inset-bottom)) !important;
        z-index: 1000 !important;
        width: auto !important;
        max-width: none !important;
        min-height: 68px !important;
        padding-left: 84px !important;
        font-size: 12px !important;
    }

    body.home .ef-home-hero .ef-home-stats--hero {
        display: block !important;
        position: absolute !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 90px !important;
        width: 100% !important;
        margin: 0 !important;
        z-index: 3 !important;
    }

    .ef-home-hero .ef-home-stats--hero .ef-stats {
        width: 100% !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        background: transparent !important;
    }

    body.home main.ef-home > .ef-home-stats {
        display: none !important;
    }
}


@media (max-width: 767px) {
    .ef-home-hero .hero-empresafora__cta {
        bottom: calc(6px + env(safe-area-inset-bottom)) !important;
    }
}


@media (max-width: 767px) {
    .hero-empresafora__cta.is-mobile-sticky {
        bottom: 6px !important;
    }
}


/* Home mobile: mantém a leitura vertical da primeira seção. */
@media (max-width: 767px) {
    .ef-home-hero {
        flex-direction: column !important;
    }

    .ef-home-hero .hero-empresafora__container {
        flex: 0 0 auto !important;
        width: min(100%, 328px) !important;
        max-width: 328px !important;
        height: auto !important;
    }

    .ef-home-hero .hero-empresafora__content {
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        align-items: center !important;
    }

    .ef-home-hero .hero-empresafora__title,
    .ef-home-hero .hero-empresafora__eyebrow,
    .ef-home-hero .hero-empresafora__description,
    .ef-home-hero .hero-empresafora__actions {
        flex: 0 0 auto !important;
    }

    body.home .ef-home .ef-home-hero .ef-home-stats--hero {
        flex: 0 0 auto !important;
        width: 100% !important;
        margin-top: 18px !important;
    }

    .ef-home-hero .hero-empresafora__actions {
        height: auto !important;
        min-height: 68px !important;
        margin-top: 18px !important;
        overflow: visible !important;
    }

    .ef-home-hero .hero-empresafora__cta:not(.is-complete) {
        background: #111 !important;
        background-image: none !important;
    }

    /* O script move o CTA sticky para o body durante a rolagem mobile. */
    body.home .hero-empresafora__cta:not(.is-complete) {
        background: #111 !important;
        background-image: none !important;
    }
}
