/* Ajustes premium desktop exclusivos da Home AMJ */

.hero-engineer-signature {
    display: none;
}

/* HOME — cabeçalho preto e navegação expansível exclusivos do celular. */
/* HOME — descrições ampliadas e retirada dos adornos somente no celular. */
.home-servicos-principais .home-servico-descricao--mobile {
    display: none;
}

@media (max-width: 767.98px) {
    .home-servicos-principais .icone-card {
        display: none;
        width: 0;
        height: 0;
        margin: 0;
        padding: 0;
        border: 0;
        box-shadow: none !important;
    }

    .home-servicos-principais .icone-card::before,
    .home-servicos-principais .icone-card::after {
        content: none;
        display: none;
    }

    .home-servicos-principais .home-servico-descricao--desktop {
        display: none;
    }

    .home-servicos-principais .home-servico-descricao--mobile {
        display: block;
    }

    .home-servicos-principais .card-servico-imagem h3 {
        margin-top: 14px;
    }
}

/* Refinamento isolado dos cinco cards principais de serviços da Home */
.home-servicos-principais .grade-servicos-premium {
    align-items: stretch;
    grid-auto-rows: 1fr;
}

.home-servicos-principais .card-servico-imagem {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border: 1px solid rgba(20, 39, 61, 0.14) !important;
    border-radius: 5px;
    background: #ffffff !important;
    box-shadow: 0 12px 28px rgba(10, 25, 45, 0.08) !important;
    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        border-color 180ms ease;
}

.home-servicos-principais .card-servico-imagem::before {
    content: "";
    position: absolute;
    z-index: 2;
    top: 0;
    right: 0;
    left: 0;
    height: 2px;
    border-radius: 4px 4px 0 0;
    background: var(--laranja) !important;
    pointer-events: none;
}

.home-servicos-principais .card-img {
    flex: 0 0 auto;
    width: 100%;
    overflow: hidden;
    border-radius: 4px 4px 0 0;
}

.home-servicos-principais .home-card-media {
    position: relative;
}

.home-servicos-principais .home-card-media__video {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    pointer-events: none;
}

@media (min-width: 1024px) {
    .home-servicos-principais .home-card-media--solar .home-card-media__video {
        object-position: center 46%;
    }

    .home-servicos-principais .home-card-media--engenharia .home-card-media__video {
        object-position: center 48%;
    }
}

.home-servicos-principais .icone-card {
    flex: 0 0 auto;
    box-shadow: 0 8px 18px rgba(10, 25, 45, 0.12);
}

.home-servicos-principais .card-servico-imagem h3 {
    min-height: 2.4em;
}

.home-servicos-principais .card-servico-imagem p {
    flex: 1 1 auto;
}

.home-servicos-principais .card-servico-imagem a {
    align-self: center;
    margin-top: auto;
}

.home-servicos-principais .card-servico-imagem a:focus-visible {
    border-radius: 2px;
    outline: 2px solid var(--laranja);
    outline-offset: 4px;
}

@media (hover: hover) and (pointer: fine) {
    .home-servicos-principais .card-servico-imagem:hover {
        transform: translateY(-3px) !important;
        border-color: rgba(20, 39, 61, 0.18) !important;
        box-shadow: 0 16px 34px rgba(10, 25, 45, 0.11) !important;
    }
}

@media (max-width: 768px) {
    .home-servicos-principais .card-servico-imagem h3 {
        min-height: 0;
    }
}

@media (min-width: 1024px) {
    .hero-premium {
        overflow-x: clip !important;
    }

    .hero-container {
        max-width: min(1500px, calc(100vw - 96px));
        margin-left: auto;
        margin-right: auto;
    }

    .hero-foto-home {
        position: relative;
        max-width: min(63vw, 900px);
        overflow: visible;
        transform: translateX(2.8%) translateY(8px) scale(1.17);
        transform-origin: right bottom;
        filter:
            drop-shadow(-42px 28px 58px rgba(0, 0, 0, 0.66))
            drop-shadow(12px -10px 34px rgba(255, 138, 0, 0.15)) !important;
    }

    .hero-foto-home img {
        display: block;
        max-width: 100%;
        height: auto;
        object-fit: contain;
        transform:
            translateX(calc(3.4% + var(--home-hero-photo-x, 0px)))
            translateY(calc(-18px + var(--home-hero-photo-y, 0px)))
            scale(1.31)
            scale(var(--home-hero-photo-scale, 1.02)) !important;
        transform-origin: right bottom;
        filter: brightness(1.04) contrast(1.045) saturate(1.02) !important;
        -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 78%, rgba(0, 0, 0, 0.78) 88%, transparent 100%);
        mask-image: linear-gradient(180deg, #000 0%, #000 78%, rgba(0, 0, 0, 0.78) 88%, transparent 100%);
    }

    .hero-foto-home::after {
        content: "" !important;
        position: absolute;
        left: 3%;
        right: -5%;
        bottom: -12px;
        height: 132px;
        z-index: 2;
        background:
            linear-gradient(180deg, transparent 0%, rgba(2, 8, 18, 0.42) 48%, rgba(2, 8, 18, 0.9) 100%);
        pointer-events: none;
    }

    .hero-luz,
    .hero-linha-luz,
    .selo-hero-premium,
    .hero-mini-info {
        max-width: calc(100vw - 48px);
    }

    .selo-hero-premium {
        width: 255px !important;
        height: auto !important;
        min-height: 82px !important;
        padding: 0 0 0 72px !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
        transform: translate(-6px, 12px) !important;
        transform-origin: center;
        opacity: 0.94 !important;
        filter: drop-shadow(0 16px 28px rgba(0, 0, 0, 0.24)) !important;
    }

    .selo-hero-premium::before,
    .selo-hero-premium::after {
        content: "" !important;
        position: absolute !important;
        pointer-events: none;
    }

    .selo-hero-premium::before {
        left: 4px !important;
        top: 38px !important;
        width: 58px !important;
        height: 1px !important;
        border-radius: 999px;
        background: linear-gradient(90deg, transparent, rgba(255, 138, 0, 0.92), rgba(255, 183, 76, 0.28)) !important;
        box-shadow: 0 0 18px rgba(255, 138, 0, 0.12);
        transform: rotate(-11deg);
    }

    .selo-hero-premium::after {
        left: 60px !important;
        top: 31px !important;
        width: 9px !important;
        height: 9px !important;
        border-top: 1px solid rgba(255, 138, 0, 0.9);
        border-right: 1px solid rgba(255, 138, 0, 0.9);
        transform: rotate(34deg);
        background: transparent !important;
        opacity: 0.9;
    }

    .selo-hero-premium .selo-circulo {
        position: absolute !important;
        left: 72px !important;
        top: -8px !important;
        width: 118px !important;
        height: 1px !important;
        transform: none !important;
        border: none !important;
        background:
            linear-gradient(90deg, rgba(255, 138, 0, 0.72), rgba(255, 255, 255, 0.22), transparent) !important;
        box-shadow: none !important;
        opacity: 0.78;
    }

    .selo-hero-premium .selo-circulo span {
        display: none !important;
    }

    .selo-hero-premium p {
        position: static !important;
        inset: auto !important;
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
        text-align: left !important;
        transform: none !important;
        color: transparent !important;
        font-size: 0 !important;
        line-height: 1 !important;
        letter-spacing: 0 !important;
    }

    .selo-hero-premium p::before {
        content: "RESPONSÁVEL TÉCNICO";
        display: block;
        margin-bottom: 8px;
        color: rgba(255, 138, 0, 0.92);
        font-size: 9.5px;
        line-height: 1;
        font-weight: 900;
        letter-spacing: 1.75px;
    }

    .selo-hero-premium p::after {
        content: "ENGENHEIRO ELETRICISTA | PERITO";
        display: block;
        max-width: 190px;
        color: rgba(255, 255, 255, 0.88);
        font-size: 15px;
        line-height: 1.18;
        font-weight: 850;
        letter-spacing: 0.08px;
        text-shadow: 0 12px 22px rgba(0, 0, 0, 0.28);
    }

    .hero-texto h1 {
        letter-spacing: -0.025em;
    }

    .hero-botoes .botao-principal,
    .hero-botoes .botao-secundario {
        border-radius: 16px !important;
        box-shadow: 0 16px 34px rgba(0, 0, 0, 0.2);
    }

    .hero-botoes .botao-principal {
        box-shadow: 0 18px 40px rgba(255, 138, 0, 0.24) !important;
    }

    .faixa-numeros-hero {
        max-width: min(1500px, calc(100vw - 88px));
        margin-left: auto !important;
        margin-right: auto !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        box-shadow:
            0 24px 58px rgba(0, 0, 0, 0.22),
            0 1px 0 rgba(255, 255, 255, 0.08) inset !important;
    }

    .faixa-numeros-hero .numero-item {
        transition: transform 220ms ease, background 220ms ease;
    }

    .faixa-numeros-hero .numero-item:hover {
        background: rgba(255, 255, 255, 0.035);
        transform: translateY(-1px);
    }

    .secao-especialidades-home,
    .secao-clara {
        background:
            radial-gradient(circle at 14% 4%, rgba(255, 138, 0, 0.035), transparent 30%),
            linear-gradient(180deg, #f8fafc 0%, #ffffff 100%) !important;
    }

    .secao-especialidades-home {
        padding-top: 58px !important;
        padding-bottom: 62px !important;
    }

    .titulo-secao {
        max-width: 900px;
    }

    .titulo-secao span {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 7px 12px;
        border: 1px solid rgba(255, 138, 0, 0.18);
        border-radius: 999px;
        background: rgba(255, 247, 237, 0.72);
        color: rgba(255, 138, 0, 0.92);
        font-size: 11px;
        font-weight: 900;
        letter-spacing: 1.45px;
        text-transform: uppercase;
    }

    .titulo-secao h2 {
        letter-spacing: -0.02em;
    }

    .titulo-secao p {
        max-width: 760px;
        margin-left: auto;
        margin-right: auto;
        color: rgba(71, 85, 105, 0.94);
    }

    .grade-especialidades-home article,
    .card-servico-imagem {
        border-color: rgba(148, 163, 184, 0.2) !important;
        background:
            linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98)),
            radial-gradient(circle at 12% 10%, rgba(255, 138, 0, 0.04), transparent 28%) !important;
        box-shadow:
            0 20px 46px rgba(15, 23, 42, 0.07),
            0 1px 0 rgba(255, 255, 255, 0.96) inset !important;
    }

    .grade-especialidades-home article::before,
    .card-servico-imagem::before {
        background: linear-gradient(90deg, rgba(255, 138, 0, 0.68), rgba(255, 138, 0, 0.1), transparent) !important;
    }

    .grade-especialidades-home article:hover,
    .card-servico-imagem:hover {
        transform: translateY(-4px) !important;
        border-color: rgba(255, 138, 0, 0.22) !important;
        box-shadow:
            0 24px 58px rgba(15, 23, 42, 0.095),
            0 0 0 1px rgba(255, 138, 0, 0.035) inset !important;
    }

    .card-servico-imagem {
        overflow: hidden;
    }

    .card-img {
        height: 142px;
        box-shadow: inset 0 -38px 54px rgba(2, 7, 13, 0.22);
    }

    .icone-card {
        border: 1px solid rgba(255, 255, 255, 0.72);
        box-shadow: 0 12px 28px rgba(255, 138, 0, 0.18);
    }

    .card-servico-imagem h3 {
        color: rgba(15, 23, 42, 0.96);
    }

    .card-servico-imagem p {
        color: rgba(71, 85, 105, 0.94);
    }

    .card-servico-imagem a {
        position: relative;
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }

    .card-servico-imagem a::after {
        content: "";
        width: 18px;
        height: 1px;
        background: currentColor;
        opacity: 0.5;
        transition: width 220ms ease, opacity 220ms ease;
    }

    .card-servico-imagem a:hover::after {
        width: 28px;
        opacity: 0.9;
    }

    .cases-reais {
        background:
            radial-gradient(circle at top left, rgba(255, 138, 0, 0.12), transparent 28%),
            radial-gradient(circle at 88% 16%, rgba(255, 174, 50, 0.055), transparent 28%),
            linear-gradient(135deg, #07111f 0%, #020b14 100%) !important;
    }

    .case-card {
        border-radius: 22px !important;
        border-color: rgba(255, 255, 255, 0.13) !important;
        background: rgba(255, 255, 255, 0.058) !important;
        box-shadow: 0 20px 52px rgba(0, 0, 0, 0.18);
    }

    .case-conteudo span {
        color: rgba(255, 174, 50, 0.92) !important;
        letter-spacing: 1.25px;
    }

    .cta-premium {
        padding-top: 18px !important;
        padding-bottom: 34px !important;
        background:
            radial-gradient(circle at 14% 0%, rgba(255, 138, 0, 0.08), transparent 32%),
            linear-gradient(180deg, #020b14, #020812) !important;
    }

    .cta-box {
        max-width: min(1400px, calc(100vw - 96px));
        border: 1px solid rgba(255, 255, 255, 0.13) !important;
        box-shadow:
            0 26px 62px rgba(0, 0, 0, 0.28),
            0 1px 0 rgba(255, 255, 255, 0.08) inset !important;
    }

    .cta-box h2 {
        max-width: 880px;
        letter-spacing: -0.018em;
    }

    .selo-hero-premium {
        display: none !important;
    }

    .hero-engineer-signature {
        position: absolute;
        right: clamp(100px, 10.8vw, 162px);
        top: clamp(226px, 30.4vh, 280px);
        z-index: 18;
        display: flex;
        align-items: center;
        gap: 8px;
        width: min(238px, 18.8vw);
        pointer-events: none;
        background: transparent;
        border: 0;
        box-shadow: none;
        color: #ffffff;
        filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.32));
    }

    .hero-engineer-signature__line {
        position: relative;
        z-index: 1;
        width: 58px;
        height: 54px;
        flex: 0 0 58px;
        overflow: visible;
        transform:
            translateX(var(--home-hero-signature-line-x, -10px))
            translateY(var(--home-hero-signature-line-y, -30px))
            scale(var(--home-hero-signature-line-scale, 2.74));
        transform-origin: right center;
    }

    .hero-engineer-signature__line path {
        fill: none;
        stroke: rgba(255, 138, 0, 0.88);
        stroke-width: 1.35;
        stroke-linecap: round;
        stroke-linejoin: round;
        vector-effect: non-scaling-stroke;
        filter: drop-shadow(0 0 7px rgba(255, 138, 0, 0.16));
    }

    .hero-engineer-signature__line circle {
        fill: #ff8a00;
        stroke: rgba(255, 190, 90, 0.42);
        stroke-width: 1;
        filter: drop-shadow(0 0 8px rgba(255, 138, 0, 0.32));
    }

    .hero-engineer-signature__line .hero-engineer-signature__anchor {
        fill: rgba(255, 138, 0, 0.96);
        stroke: rgba(255, 213, 138, 0.5);
        stroke-width: 1.1;
        filter: drop-shadow(0 0 7px rgba(255, 138, 0, 0.26));
    }

    .hero-engineer-signature__text {
        position: relative;
        z-index: 2;
        display: flex;
        flex-direction: column;
        gap: 5px;
        min-width: 0;
        padding: 0;
        background: transparent;
        border: 0;
        box-shadow: none;
        transform:
            translateX(var(--home-hero-signature-x, 0px))
            translateY(var(--home-hero-signature-y, -40px))
            scale(var(--home-hero-signature-scale, 1));
        transform-origin: left center;
    }

    .hero-engineer-signature__name-top {
        color: rgba(255, 138, 0, 0.94);
        font-size: clamp(10.6px, 0.79vw, 12.8px);
        line-height: 1;
        font-weight: 900;
        letter-spacing: 0.16em;
        text-transform: uppercase;
        white-space: nowrap;
    }

    .hero-engineer-signature__role-bottom {
        display: block;
        max-width: 180px;
        color: rgba(255, 255, 255, 0.94);
        font-size: clamp(15.8px, 1.1vw, 18px);
        line-height: 1.05;
        font-weight: 860;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        text-shadow: 0 2px 15px rgba(0, 0, 0, 0.42);
    }
}

/* HOME — faixas compactas do hero, exclusivas para celulares. */
@media (max-width: 767.98px) {
    .hero-premium:not(.energia-home-hero).hero-premium-dark {
        color: #ffffff;
        background:
            radial-gradient(ellipse at 65% 35%, rgba(255, 172, 70, 0.34), transparent 22%),
            radial-gradient(ellipse at 58% 55%, rgba(255, 117, 20, 0.24), transparent 32%),
            radial-gradient(ellipse at 77% 18%, rgba(255, 128, 24, 0.14), transparent 22%),
            linear-gradient(90deg, rgba(0, 0, 0, 0.97) 0%, rgba(0, 0, 0, 0.79) 31%, rgba(0, 0, 0, 0.17) 57%, rgba(0, 0, 0, 0.69) 100%),
            linear-gradient(180deg, rgba(0, 0, 0, 0.48) 0%, rgba(0, 0, 0, 0.02) 45%, rgba(0, 0, 0, 0.94) 100%),
            url("../img/fundo-solar-home.png");
        background-size: cover;
        background-position: center top;
        background-repeat: no-repeat;
    }

    .hero-premium:not(.energia-home-hero).hero-premium-dark::before {
        background:
            radial-gradient(ellipse at 61% 38%, rgba(255, 197, 116, 0.16), transparent 18%),
            radial-gradient(ellipse at 70% 47%, rgba(255, 125, 24, 0.20), transparent 26%),
            linear-gradient(180deg, rgba(0, 0, 0, 0.08), transparent 42%, rgba(0, 0, 0, 0.54));
        mix-blend-mode: screen;
        opacity: 0.82;
    }

    .hero-premium:not(.energia-home-hero).hero-premium-dark::after {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 2;
        pointer-events: none;
        background:
            linear-gradient(90deg, rgba(0, 0, 0, 0.30), transparent 41%, rgba(0, 0, 0, 0.28)),
            radial-gradient(ellipse at 52% 100%, rgba(255, 119, 18, 0.16), transparent 34%),
            radial-gradient(ellipse at center, transparent 34%, rgba(0, 0, 0, 0.54) 100%);
    }

    .hero-premium:not(.energia-home-hero) .tag-hero {
        color: #ff9b18;
        background: rgba(7, 8, 12, 0.42);
        border-color: rgba(255, 138, 0, 0.54);
        box-shadow:
            0 0 24px rgba(255, 138, 0, 0.09),
            inset 0 1px 0 rgba(255, 255, 255, 0.05);
    }

    .hero-premium:not(.energia-home-hero) .hero-texto h1 {
        color: #ffffff;
    }

    .hero-premium:not(.energia-home-hero) .hero-texto h1 strong {
        color: #ff8200;
    }

    .hero-premium:not(.energia-home-hero) .hero-texto p {
        margin-bottom: 5px;
        color: rgba(255, 255, 255, 0.80);
    }

    .hero-premium:not(.energia-home-hero) .hero-botoes {
        gap: 8px;
        margin-bottom: 12.4px;
    }

    .hero-premium:not(.energia-home-hero) .hero-botoes .botao-principal,
    .hero-premium:not(.energia-home-hero) .hero-botoes .botao-secundario {
        min-height: 46px;
        height: 46px;
        padding: 10px 16px;
        border-radius: 5px;
    }

    .hero-premium:not(.energia-home-hero) .hero-botoes .botao-principal {
        color: #ffffff;
        background: linear-gradient(135deg, #ff5f00, #ff8a00 56%, #ffb133);
        border: 1px solid rgba(255, 205, 132, 0.64);
        box-shadow: 0 18px 40px rgba(255, 138, 0, 0.24);
    }

    .hero-premium:not(.energia-home-hero) .hero-botoes .botao-secundario {
        color: #ffffff;
        background: rgba(0, 0, 0, 0.28);
        border: 1px solid rgba(255, 255, 255, 0.30);
        box-shadow:
            0 16px 38px rgba(0, 0, 0, 0.36),
            inset 0 1px 0 rgba(255, 255, 255, 0.10),
            0 0 18px rgba(255, 138, 0, 0.06);
        backdrop-filter: blur(10px);
    }

    .hero-premium:not(.energia-home-hero) .hero-botoes .botao-secundario::before {
        color: #25d366;
        text-shadow: 0 0 12px rgba(37, 211, 102, 0.48);
    }

    .hero-premium:not(.energia-home-hero) .hero-mini-info {
        position: relative;
        left: auto;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        width: auto;
        max-width: none;
        min-height: 0;
        margin: -18px 0 0;
        padding: 12px 6px;
        gap: 0;
        overflow: hidden;
        border-radius: 6px 6px 0 0;
        transform: none;
    }

    .hero-premium:not(.energia-home-hero) .selo-hero-premium {
        display: none;
    }

    .hero-premium:not(.energia-home-hero) .hero-mini-info > div {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        min-width: 0;
        min-height: 112px;
        padding: 4px 6px;
        text-align: center;
        border-right: 1px solid rgba(255, 255, 255, 0.14);
        border-bottom: 0;
    }

    .hero-premium:not(.energia-home-hero) .hero-mini-info > div:last-child {
        border-right: 0;
    }

    .hero-premium:not(.energia-home-hero) .hero-mini-info > div::before {
        content: none;
        display: none;
    }

    .hero-premium:not(.energia-home-hero) .hero-mini-info > div > i {
        position: static;
        display: flex;
        flex: 0 0 32px;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        margin: 0 auto 6px;
        color: #ff8a00;
        transform: none;
        filter: none;
    }

    .hero-premium:not(.energia-home-hero) .hero-mini-info > div > i svg {
        display: block;
        width: 32px;
        height: 32px;
        max-width: 100%;
        max-height: 100%;
        fill: none;
        stroke: currentColor;
        filter: none;
    }

    .hero-premium:not(.energia-home-hero) .hero-mini-info > div > span {
        display: block;
        margin: 0 0 4px;
        font-size: clamp(7px, 2.1vw, 9px);
        line-height: 1.18;
        letter-spacing: 0.02em;
        overflow-wrap: anywhere;
    }

    .hero-premium:not(.energia-home-hero) .hero-mini-info > div > strong {
        display: block;
        font-size: clamp(9px, 2.6vw, 11px);
        line-height: 1.2;
        overflow-wrap: anywhere;
    }

    .hero-premium:not(.energia-home-hero) > .faixa-numeros-hero {
        position: relative;
        z-index: 5;
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        width: auto;
        max-width: none;
        margin: 0 5% 24px;
        padding: 8px;
        gap: 0;
        color: #ffffff;
        background: linear-gradient(rgba(6, 10, 17, 0.72), rgba(1, 5, 10, 0.92));
        border: 1px solid rgba(255, 255, 255, 0.10);
        border-top: 0;
        border-radius: 0 0 6px 6px;
        box-shadow:
            0 24px 58px rgba(0, 0, 0, 0.22),
            inset 0 1px 0 rgba(255, 255, 255, 0.08);
        backdrop-filter: blur(18px);
    }

    .hero-premium:not(.energia-home-hero) .faixa-numeros-hero .numero-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        min-width: 0;
        min-height: 116px;
        height: 100%;
        padding: 10px 4px 8px;
        border: 0;
        border-right: 1px solid rgba(255, 255, 255, 0.13);
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        text-align: center;
    }

    .hero-premium:not(.energia-home-hero) .faixa-numeros-hero .numero-item:last-child {
        border-right: 0;
    }

    .hero-premium:not(.energia-home-hero) .faixa-numeros-hero .numero-item > i {
        position: static;
        display: flex;
        flex: 0 0 clamp(28px, 9vw, 38px);
        align-items: center;
        justify-content: center;
        width: clamp(28px, 9vw, 38px);
        height: clamp(28px, 9vw, 38px);
        margin: 0 auto 5px;
        color: #ff8a00;
        background: transparent;
        transform: none;
        filter: none;
    }

    .hero-premium:not(.energia-home-hero) .faixa-numeros-hero .numero-item > i svg {
        display: block;
        width: 100%;
        height: 100%;
        max-width: 100%;
        max-height: 100%;
        fill: none;
        stroke: currentColor;
        filter:
            drop-shadow(0 0 2px rgba(255, 232, 184, 0.42))
            drop-shadow(0 0 8px rgba(255, 138, 0, 0.48))
            drop-shadow(0 0 16px rgba(255, 104, 0, 0.20));
    }

    .hero-premium:not(.energia-home-hero) .faixa-numeros-hero .numero-item > div {
        width: 100%;
        min-width: 0;
    }

    .hero-premium:not(.energia-home-hero) .faixa-numeros-hero .numero-item strong {
        display: block;
        margin: 0 0 5px;
        color: #ffffff;
        font-size: clamp(21px, 6.6vw, 27px);
        line-height: 1;
        white-space: nowrap;
    }

    .hero-premium:not(.energia-home-hero) .faixa-numeros-hero .numero-item span {
        display: block;
        color: rgba(255, 255, 255, 0.76);
        font-size: clamp(7.5px, 2.25vw, 9px);
        line-height: 1.16;
        overflow-wrap: normal;
        word-break: normal;
        hyphens: none;
    }
}

@media (max-width: 359px) {
    .hero-premium:not(.energia-home-hero) .hero-mini-info {
        width: auto;
    }

    .hero-premium:not(.energia-home-hero) > .faixa-numeros-hero {
        width: auto;
        margin-inline: 5%;
    }

    .hero-premium:not(.energia-home-hero) .hero-mini-info > div {
        padding-inline: 4px;
    }

    .hero-premium:not(.energia-home-hero) > .faixa-numeros-hero {
        padding: 5px;
        gap: 3px;
    }

    .hero-premium:not(.energia-home-hero) .faixa-numeros-hero .numero-item {
        min-height: 114px;
        padding-inline: 2px;
    }
}

/* HOME — composição editorial das especialidades, exclusiva para desktop. */
@media (min-width: 1024px) {
    .secao-especialidades-home,
    .home-servicos-principais {
        background: #fbfaf7 !important;
    }

    .secao-especialidades-home {
        padding: 78px 5.2% 28px !important;
    }

    .secao-especialidades-home .titulo-secao {
        width: min(920px, 100%);
        max-width: 920px;
        margin: 0 !important;
        text-align: left;
    }

    .secao-especialidades-home .titulo-secao span {
        display: inline-flex;
        align-items: center;
        gap: 14px;
        min-height: 0;
        margin: 0 0 18px;
        padding: 0;
        color: #f47b00;
        background: transparent;
        border: 0;
        border-radius: 0;
        font-size: 11.5px;
        line-height: 1.2;
        letter-spacing: 0.19em;
    }

    .secao-especialidades-home .titulo-secao span::after {
        content: "";
        display: block;
        width: 64px;
        height: 2px;
        background: #f47b00;
    }

    .secao-especialidades-home .titulo-secao h2 {
        max-width: 900px;
        margin: 0 0 18px;
        color: #0d1a2b;
        font-size: clamp(24px, 2.19vw, 33.6px);
        line-height: 1.08;
        letter-spacing: -0.045em;
        text-align: left;
    }

    .secao-especialidades-home .titulo-secao p {
        max-width: 760px;
        margin: 0 !important;
        color: #5d6673;
        font-size: 17px;
        line-height: 1.62;
        text-align: left;
    }

    .home-servicos-principais {
        padding: 0 5.2% 84px !important;
    }

    .home-servicos-principais .grade-servicos-premium {
        display: grid;
        grid-template-columns:
            minmax(0, 0.90fr)
            minmax(0, 0.55fr)
            minmax(0, 0.55fr);
        grid-template-rows: repeat(2, minmax(0, 1fr));
        gap: 18px;
        height: clamp(690px, 48vw, 740px);
        margin: 0 !important;
        align-items: stretch;
    }

    .home-servicos-principais .card-servico-imagem {
        position: relative;
        display: grid;
        grid-template-rows: 42% auto auto minmax(0, 1fr) auto;
        min-width: 0;
        min-height: 0;
        height: 100%;
        overflow: hidden;
        color: #0d1a2b;
        background: #fffefa !important;
        border: 1px solid #d8d6cf !important;
        border-radius: 2px !important;
        box-shadow: none !important;
        transform: none !important;
        transition:
            border-color 360ms ease,
            background-color 360ms ease !important;
    }

    .home-servicos-principais .card-servico-imagem:nth-child(1) {
        grid-column: 1;
        grid-row: 1 / span 2;
        grid-template-rows: 64% auto auto minmax(0, 1fr) auto;
    }

    .home-servicos-principais .card-servico-imagem:nth-child(2) {
        grid-column: 2;
        grid-row: 1;
    }

    .home-servicos-principais .card-servico-imagem:nth-child(3) {
        grid-column: 3;
        grid-row: 1;
    }

    .home-servicos-principais .card-servico-imagem:nth-child(4) {
        grid-column: 2;
        grid-row: 2;
    }

    .home-servicos-principais .card-servico-imagem:nth-child(5) {
        grid-column: 3;
        grid-row: 2;
    }

    .home-servicos-principais .card-servico-imagem::before {
        content: "";
        position: absolute;
        inset: 0 auto auto 0;
        z-index: 3;
        width: 74px;
        height: 2px;
        background: #f47b00 !important;
    }

    .home-servicos-principais .card-servico-imagem:hover {
        background: #ffffff !important;
        border-color: #c8c4ba !important;
        box-shadow: none !important;
        transform: none !important;
    }

    .home-servicos-principais .card-img {
        width: 100%;
        height: auto !important;
        min-height: 0;
        margin: 0;
        background-size: cover;
        background-position: center;
        border-radius: 0;
        filter: contrast(1.025) saturate(0.96);
        transform: scale(1);
        transform-origin: center;
        transition: transform 380ms ease, filter 380ms ease !important;
    }

    .home-servicos-principais .card-img-solar {
        background-position: center 46%;
    }

    .home-servicos-principais .card-img-engenharia {
        background-position: center 48%;
    }

    .home-servicos-principais .card-img-regularizacao {
        background-position: center 50%;
    }

    .home-servicos-principais .card-img-laudos {
        background-position: center 44%;
    }

    .home-servicos-principais .card-img-entrada {
        background-position: center 48%;
    }

    .home-servicos-principais .card-servico-imagem:hover .card-img {
        filter: contrast(1.035) saturate(0.98);
        transform: scale(1.02) !important;
    }

    .home-servicos-principais .icone-card {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        align-self: stretch;
        width: auto;
        height: auto;
        min-height: 0;
        margin: 0;
        padding: 14px 18px 5px 70px;
        color: #7a6250;
        background: transparent;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        font-size: 10px;
        line-height: 1.2;
        font-weight: 800;
        letter-spacing: 0.13em;
        text-transform: uppercase;
        transform: none;
    }

    .home-servicos-principais .card-servico-imagem:nth-child(1) .icone-card {
        padding: 20px 24px 8px 78px;
        font-size: 11px;
    }

    .home-servicos-principais .icone-card::before {
        position: absolute;
        left: 18px;
        top: 50%;
        display: block;
        width: auto;
        height: auto;
        color: #f47b00;
        background: none;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        font-size: 12px;
        line-height: 1;
        font-weight: 900;
        letter-spacing: 0.08em;
        transform: translateY(-50%);
        -webkit-mask: none;
        mask: none;
    }

    .home-servicos-principais .icone-card::after {
        content: "";
        position: absolute;
        left: 47px;
        top: 50%;
        display: block;
        width: 14px;
        height: 1px;
        background: #f47b00;
        transform: translateY(-50%);
        -webkit-mask: none;
        mask: none;
    }

    .home-servicos-principais .card-servico-imagem:nth-child(1) .icone-card::before {
        content: "01";
        left: 24px;
    }

    .home-servicos-principais .card-servico-imagem:nth-child(1) .icone-card::after {
        left: 53px;
    }

    .home-servicos-principais .card-servico-imagem:nth-child(2) .icone-card::before {
        content: "02";
    }

    .home-servicos-principais .card-servico-imagem:nth-child(3) .icone-card::before {
        content: "03";
    }

    .home-servicos-principais .card-servico-imagem:nth-child(4) .icone-card::before {
        content: "04";
    }

    .home-servicos-principais .card-servico-imagem:nth-child(5) .icone-card::before {
        content: "05";
    }

    .home-servicos-principais .card-servico-imagem h3 {
        min-height: 0;
        margin: 0;
        padding: 0 18px;
        color: #0d1a2b;
        font-size: clamp(17px, 1.35vw, 20px);
        line-height: 1.14;
        font-weight: 800;
        letter-spacing: -0.025em;
        text-align: left;
    }

    .home-servicos-principais .card-servico-imagem:nth-child(1) h3 {
        padding: 0 24px;
        font-size: clamp(26px, 2.15vw, 34px);
        line-height: 1.08;
    }

    .home-servicos-principais .card-servico-imagem p {
        min-height: 0;
        margin: 8px 0 0;
        padding: 0 18px;
        color: #626a75;
        font-size: clamp(12px, 0.88vw, 13.5px);
        line-height: 1.45;
        text-align: left;
    }

    .home-servicos-principais .card-servico-imagem:nth-child(1) p {
        margin-top: 12px;
        padding: 0 24px;
        font-size: 15px;
        line-height: 1.56;
    }

    .home-servicos-principais .card-servico-imagem a {
        position: relative;
        display: inline-flex;
        align-items: center;
        align-self: end;
        justify-self: start;
        gap: 8px;
        margin: 12px 18px 18px;
        padding: 0;
        color: #d96d00;
        font-size: 12.5px;
        line-height: 1.2;
        font-weight: 850;
        letter-spacing: 0.01em;
        text-align: left;
    }

    .home-servicos-principais .card-servico-imagem:nth-child(1) a {
        margin: 18px 24px 24px;
        font-size: 14px;
    }

    .home-servicos-principais .card-servico-imagem a::after {
        content: "→";
        width: auto;
        height: auto;
        background: none;
        opacity: 0.82;
        transform: translateX(0);
        transition: transform 320ms ease, opacity 320ms ease;
    }

    .home-servicos-principais .card-servico-imagem a:hover::after {
        width: auto;
        opacity: 1;
        transform: translateX(4px);
    }
}

@media (min-width: 1024px) and (prefers-reduced-motion: reduce) {
    .home-servicos-principais .card-servico-imagem,
    .home-servicos-principais .card-img,
    .home-servicos-principais .card-servico-imagem a::after {
        transition: none !important;
    }
}

/* HOME: painel do hero simplificado exclusivamente no celular. */
@media (max-width: 767.98px) {
    .hero-premium:not(.energia-home-hero) .hero-mini-info {
        display: none !important;
    }

    .hero-premium:not(.energia-home-hero) > .faixa-numeros-hero {
        border-top: 1px solid rgba(255, 255, 255, 0.10);
        border-radius: 6px;
    }
}

/* HOME: hero desktop alinhado à escala editorial do CTA final. */
@media (min-width: 1024px) {
    .hero-premium:not(.energia-home-hero) .tag-hero {
        font-size: 10.5px !important;
        line-height: 1.2 !important;
    }

    .hero-premium:not(.energia-home-hero) .hero-texto h1 {
        font-size: clamp(23px, 1.82vw, 30px) !important;
        line-height: 1.13 !important;
    }

    .hero-premium:not(.energia-home-hero) .hero-texto > p {
        font-size: 14.5px !important;
        line-height: 1.42 !important;
    }

    .hero-premium:not(.energia-home-hero) .hero-botoes {
        gap: 8px !important;
    }

    .hero-premium:not(.energia-home-hero) .hero-botoes .botao-principal,
    .hero-premium:not(.energia-home-hero) .hero-botoes .botao-secundario {
        width: auto !important;
        min-width: 180px !important;
        min-height: 40px !important;
        height: 40px !important;
        padding: 0 14px !important;
        border-radius: 5px !important;
        font-size: 12.5px !important;
        line-height: 1.2 !important;
    }

    .hero-premium:not(.energia-home-hero) .hero-botoes .botao-principal::after {
        margin-left: 8px !important;
        font-size: 14px !important;
    }

    .hero-premium:not(.energia-home-hero) .hero-botoes .botao-secundario::before {
        margin-right: 8px !important;
        font-size: 12px !important;
    }
}
