/* Refinos finais do card de Direção: mesma profundidade dos cards de produto
   e leitura coerente quando o alternador visual entrega o tema escuro. */
.steering-showcase {
    isolation: isolate;
}

html[data-theme="dark"] .steering-showcase,
html[data-color-scheme="dark"] .steering-showcase,
html[data-mode="dark"] .steering-showcase,
html[data-bs-theme="dark"] .steering-showcase,
body.dark .steering-showcase,
body.theme-dark .steering-showcase,
body.dark-mode .steering-showcase,
body.dark-theme .steering-showcase,
body.is-dark .steering-showcase,
body.is-dark-theme .steering-showcase {
    background-color: #171c1e !important;
    border-color: rgba(208, 238, 230, 0.14) !important;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.34) !important;
    filter: drop-shadow(0 22px 58px rgba(0, 0, 0, 0.42));
}

html[data-theme="dark"] .steering-showcase::before,
html[data-color-scheme="dark"] .steering-showcase::before,
html[data-mode="dark"] .steering-showcase::before,
html[data-bs-theme="dark"] .steering-showcase::before,
body.dark .steering-showcase::before,
body.theme-dark .steering-showcase::before,
body.dark-mode .steering-showcase::before,
body.dark-theme .steering-showcase::before,
body.is-dark .steering-showcase::before,
body.is-dark-theme .steering-showcase::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(110deg, rgba(8, 12, 14, 0.72) 0%, rgba(10, 15, 17, 0.30) 44%, rgba(9, 13, 15, 0.12) 100%),
        linear-gradient(0deg, rgba(8, 12, 14, 0.22), rgba(8, 12, 14, 0.06));
}

html[data-theme="dark"] .steering-showcase .steering-title,
html[data-color-scheme="dark"] .steering-showcase .steering-title,
html[data-mode="dark"] .steering-showcase .steering-title,
html[data-bs-theme="dark"] .steering-showcase .steering-title,
body.dark .steering-showcase .steering-title,
body.theme-dark .steering-showcase .steering-title,
body.dark-mode .steering-showcase .steering-title,
body.dark-theme .steering-showcase .steering-title,
body.is-dark .steering-showcase .steering-title,
body.is-dark-theme .steering-showcase .steering-title {
    color: #f7fbfa;
}

html[data-theme="dark"] .steering-showcase .steering-copy h3,
html[data-color-scheme="dark"] .steering-showcase .steering-copy h3,
html[data-mode="dark"] .steering-showcase .steering-copy h3,
html[data-bs-theme="dark"] .steering-showcase .steering-copy h3,
body.dark .steering-showcase .steering-copy h3,
body.theme-dark .steering-showcase .steering-copy h3,
body.dark-mode .steering-showcase .steering-copy h3,
body.dark-theme .steering-showcase .steering-copy h3,
body.is-dark .steering-showcase .steering-copy h3,
body.is-dark-theme .steering-showcase .steering-copy h3 {
    color: #ffffff;
}

html[data-theme="dark"] .steering-showcase .steering-copy p,
html[data-color-scheme="dark"] .steering-showcase .steering-copy p,
html[data-mode="dark"] .steering-showcase .steering-copy p,
html[data-bs-theme="dark"] .steering-showcase .steering-copy p,
body.dark .steering-showcase .steering-copy p,
body.theme-dark .steering-showcase .steering-copy p,
body.dark-mode .steering-showcase .steering-copy p,
body.dark-theme .steering-showcase .steering-copy p,
body.is-dark .steering-showcase .steering-copy p,
body.is-dark-theme .steering-showcase .steering-copy p {
    color: rgba(245, 251, 249, 0.76);
}

/* v1.0.51 — home mais compacta em telas largas, sem alterar o mobile. */
@media (min-width: 1420px) {
    .blog-section {
        width: min(96vw, 1500px);
        max-width: none;
    }

    .blog-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 18px;
    }

    .blog-card {
        min-height: 316px;
        padding: 28px;
        border-radius: 26px;
    }

    .blog-card:nth-child(1) {
        background: linear-gradient(145deg, #edf7ff 0%, #dceeff 100%);
    }

    .blog-card:nth-child(2) {
        background: linear-gradient(145deg, #eef8f7 0%, #ddf0ec 100%);
    }

    .blog-card:nth-child(3) {
        background: linear-gradient(145deg, #f4f1ff 0%, #e7e1fb 100%);
    }

    .blog-card:nth-child(4) {
        background: linear-gradient(145deg, #fff6e9 0%, #f9e8d1 100%);
    }

    .blog-card h3,
    .blog-card.compact-title h3,
    .blog-card.hero-title h3 {
        max-width: 190px;
        font-size: 25px;
        line-height: 1.05;
        margin-bottom: 12px;
    }

    .blog-card p {
        max-width: 185px;
        font-size: 13px;
        line-height: 1.46;
        margin-bottom: 12px;
    }

    .blog-link {
        min-height: 38px;
        padding: 0 14px;
        font-size: 12px;
    }

    .blog-media {
        width: min(48%, 170px);
        right: 16px;
        bottom: 16px;
        border-radius: 18px;
    }

    .blog-media img {
        padding: 12px;
    }

    .danfoss-section {
        width: min(96vw, 1780px);
    }

    .danfoss-showcase {
        grid-template-columns: 250px minmax(0, 1fr);
        gap: 18px;
    }

    .danfoss-editorial {
        min-height: 338px;
    }

    .danfoss-title {
        font-size: 38px;
        letter-spacing: -0.8px;
    }

    .danfoss-cta {
        min-height: 48px;
        padding: 0 16px;
        font-size: 15px;
    }

    .product-promo {
        display: none;
    }

    .danfoss-products-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 14px;
    }

    .danfoss-card {
        min-height: 338px;
        border-radius: 22px;
    }

    .danfoss-media {
        min-height: 250px;
        padding: 26px 16px 10px;
    }

    .danfoss-media img {
        width: min(92%, 190px);
        max-height: 190px;
    }

    .danfoss-info {
        min-height: 72px;
        padding: 8px 16px 18px;
    }

    .danfoss-info h3 {
        font-size: 16px;
        line-height: 1.2;
    }
}

/* v1.0.56 — a vitrine Danfoss reutiliza literalmente a linguagem visual
   dos cards de Bombas e Motores, dentro de um trilho limpo estilo Apple. */
.danfoss-section {
    width: 100%;
    max-width: none;
}

.danfoss-showcase {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
}

.danfoss-editorial {
    width: min(92vw, 1180px);
    min-height: auto;
    margin: 0 auto;
}

.danfoss-title {
    color: #202126 !important;
    background: none !important;
    -webkit-background-clip: initial !important;
    background-clip: initial !important;
    -webkit-text-fill-color: currentColor !important;
}

.danfoss-cta,
.product-promo {
    display: none;
}

.danfoss-rail-shell {
    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    overflow: hidden;
}

.danfoss-products-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: min(578px, calc(100vw - 48px));
    grid-template-columns: none;
    gap: 24px;
    overflow-x: auto;
    overflow-y: hidden;
    margin: 0;
    padding: 12px 24px 40px;
    border-radius: 0;
    background: transparent;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
}

.danfoss-products-grid::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.danfoss-card,
.danfoss-card:nth-child(n) {
    min-height: 430px;
    position: relative;
    display: block;
    overflow: hidden;
    padding: 38px;
    border: 1px solid rgba(17, 17, 20, 0.06);
    border-radius: 30px;
    background: #fbfbfc !important;
    color: #202126;
    box-shadow: 0 18px 48px rgba(17, 24, 39, 0.04);
    scroll-snap-align: start;
    text-decoration: none;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.danfoss-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 28px 70px rgba(17, 24, 39, 0.10);
}

.danfoss-card::after {
    content: "Ver produto";
    min-height: 44px;
    position: absolute;
    left: 38px;
    bottom: 38px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border: 1px solid rgba(17, 17, 20, 0.08);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.80);
    color: #151619;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 12px 28px rgba(17, 24, 39, 0.06);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.danfoss-info {
    width: min(52%, 255px);
    min-height: 0;
    position: relative;
    z-index: 2;
    display: block;
    padding: 0;
    border: 0;
    background: transparent;
    text-align: left;
}

.danfoss-info h3 {
    display: block;
    margin: 0;
    color: #202126;
    font-size: 32px;
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: -0.4px;
    text-align: left;
}

.danfoss-media {
    width: 58%;
    height: 86%;
    min-height: 0;
    position: absolute;
    right: -8%;
    bottom: -8%;
    z-index: 1;
    display: grid;
    place-items: center;
    padding: 0;
    background: transparent;
    transform: translate3d(0, 0, 0);
    transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.danfoss-media img {
    width: 112%;
    height: 112%;
    max-width: none;
    max-height: none;
    object-fit: contain;
    filter: drop-shadow(0 28px 28px rgba(0, 0, 0, 0.16));
    transform: translate3d(0, 0, 0) scale(1);
    transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1),
                filter 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.danfoss-card:hover .danfoss-media {
    transform: translate3d(-10px, -8px, 0);
}

.danfoss-card:hover .danfoss-media img {
    transform: scale(1.065);
    filter: drop-shadow(0 34px 32px rgba(0, 0, 0, 0.20));
}

.danfoss-carousel-button {
    width: 56px;
    height: 56px;
    position: absolute;
    top: 50%;
    z-index: 5;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.58);
    border-radius: 999px;
    background: rgba(232, 232, 237, 0.90);
    color: #202126;
    box-shadow: 0 16px 38px rgba(17, 24, 39, 0.14);
    cursor: pointer;
    transform: translateY(-50%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.danfoss-carousel-button:hover {
    transform: translateY(-50%) scale(1.05);
}

.danfoss-carousel-button.prev {
    left: 18px;
}

.danfoss-carousel-button.next {
    right: 18px;
}

.danfoss-carousel-button[disabled] {
    opacity: 0;
    pointer-events: none;
}

.danfoss-carousel-button svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

html[data-theme="dark"] .danfoss-title {
    color: #edf2f3 !important;
}

html[data-theme="dark"] .danfoss-card,
html[data-theme="dark"] .danfoss-card:nth-child(n) {
    background: #171c1f !important;
    color: #edf2f3;
    border-color: rgba(202, 230, 224, 0.16);
    box-shadow: 0 20px 52px rgba(0, 0, 0, 0.22);
}

html[data-theme="dark"] .danfoss-info h3 {
    color: #edf2f3;
}

html[data-theme="dark"] .danfoss-card::after {
    color: #edf2f3;
    border-color: rgba(202, 230, 224, 0.16);
    background: rgba(35, 43, 47, 0.82);
}

@media (max-width: 720px) {
    .blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .blog-card {
        min-height: 470px;
        gap: 10px;
        padding: 18px;
        border-radius: 22px;
        justify-content: flex-start;
    }

    .blog-card h3,
    .blog-card.compact-title h3,
    .blog-card.hero-title h3 {
        max-width: 128px;
        font-size: 22px;
        line-height: 1.04;
        margin-bottom: 8px;
    }

    .blog-card p {
        max-width: 132px;
        font-size: 12px;
        line-height: 1.38;
        margin-bottom: 8px;
    }

    .blog-link {
        min-height: 34px;
        padding: 0 11px;
        font-size: 11px;
        margin-top: 0;
    }

    .blog-media {
        position: static;
        width: 100%;
        aspect-ratio: 1;
        margin: 8px 0 0;
        border-radius: 18px;
    }

    .blog-media img {
        width: 100%;
        height: 100%;
        padding: 12px;
        object-fit: contain;
    }

    .danfoss-editorial {
        width: calc(100% - 40px);
    }

    .danfoss-title {
        font-size: 34px;
        line-height: 1.04;
    }

    .danfoss-products-grid {
        grid-auto-columns: min(86vw, 370px);
        gap: 14px;
        padding: 8px 16px 28px;
    }

    .danfoss-card,
    .danfoss-card:nth-child(n) {
        min-height: 380px;
        padding: 28px;
        border-radius: 24px;
    }

    .danfoss-card::after {
        min-height: 40px;
        left: 28px;
        bottom: 28px;
        padding: 0 15px;
        font-size: 13px;
    }

    .danfoss-info {
        width: min(55%, 210px);
    }

    .danfoss-info h3 {
        font-size: 28px;
    }

    .danfoss-media {
        width: 64%;
        right: -12%;
        bottom: -6%;
    }

    .danfoss-carousel-button {
        display: none;
    }
}

/* v1.1.38: camada de boas-vindas, posicionada antes do hero. */
.hp-welcome-banner {
    position: relative;
    z-index: 3;
    width: 100%;
    height: 30px;
    margin: 0;
    overflow: hidden;
    color: #0871cf;
    border-bottom: 1px solid rgba(8, 126, 234, .11);
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 4px 15px rgba(31, 73, 104, .05);
}

.hp-welcome-banner__track {
    display: flex;
    align-items: center;
    width: max-content;
    min-width: 100%;
    height: 30px;
    animation: hpWelcomeTicker 38s linear infinite;
}

.hp-welcome-banner p {
    flex: 0 0 auto;
    margin: 0;
    padding: 0 42px;
    font-size: 12px;
    font-weight: 600;
    line-height: 30px;
    white-space: nowrap;
}

body.home:not(.has-scrolled) .header-container,
body.home:not(.has-scrolled) .hp-header-utility-dock {
    top: 60px;
}

@keyframes hpWelcomeTicker {
    from { transform: translateX(0); }
    to { transform: translateX(-33.333%); }
}

@media (prefers-reduced-motion: reduce) {
    .hp-welcome-banner__track {
        justify-content: center;
        width: 100%;
        animation: none;
    }

    .hp-welcome-banner p[aria-hidden="true"] {
        display: none;
    }
}

@media (max-width: 1040px) {
    body.home:not(.has-scrolled) .header-container,
    body.home:not(.has-scrolled) .header-container.hp-liquid-glass {
        top: 56px;
    }

    .hp-welcome-banner p {
        padding: 0 28px;
        font-size: 11px;
    }
}

/* v1.1.41: regra terminal da faixa. Mantém o aviso no fluxo do hero e
   neutraliza configurações antigas que ainda possam estar em cache. */
body.home .hp-welcome-banner {
    position: relative !important;
    inset: auto !important;
    z-index: 3 !important;
    display: block !important;
    width: 100% !important;
    height: 30px !important;
    margin: 0 !important;
    color: #0871cf !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(8, 126, 234, .10) !important;
    background: #fff !important;
    box-shadow: 0 4px 14px rgba(31, 73, 104, .045) !important;
}

body.home .hp-welcome-banner__track {
    height: 30px !important;
}

body.home .hp-welcome-banner p {
    color: #0871cf !important;
}

body.home:not(.has-scrolled) .header-container,
body.home:not(.has-scrolled) .header-container.hp-liquid-glass,
body.home:not(.has-scrolled) .hp-header-utility-dock {
    top: 70px !important;
}

@media (max-width: 1040px) {
    body.home:not(.has-scrolled) .header-container,
    body.home:not(.has-scrolled) .header-container.hp-liquid-glass {
        top: 64px !important;
    }

    body.home.has-scrolled .header-container,
    body.home.has-scrolled .header-container.hp-liquid-glass {
        top: 20px !important;
    }
}

/* v1.0.58: trilhos editoriais com o respiro lateral da vitrine Apple.
   O conteúdo continua alinhado ao grid do site; só os cards ganham espaço
   antes do primeiro item e uma leitura mais ampla em telas grandes. */
.danfoss-editorial {
    width: min(1640px, calc(100vw - 48px));
}

.danfoss-products-grid {
    grid-auto-columns: min(578px, calc(100vw - 48px));
    padding-inline: max(24px, calc((100vw - 1640px) / 2));
    scroll-padding-inline: max(24px, calc((100vw - 1640px) / 2));
}

@media (min-width: 721px) {
    .blog-section {
        width: 100%;
        max-width: none;
        overflow: visible;
    }

    .blog-section > .blog-kicker,
    .blog-section > .blog-title,
    .blog-grid {
        width: min(1640px, calc(100vw - 48px));
        margin-left: auto;
        margin-right: auto;
    }

    .blog-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 20px;
        margin-top: 20px;
        margin-bottom: 44px;
    }
}

@media (max-width: 720px) {
    .danfoss-products-grid {
        padding-inline: 20px;
        scroll-padding-inline: 20px;
    }
}

/* v1.1.42: acabamento editorial e afastamento real do header. */
body.hp-has-welcome-banner .hp-welcome-banner {
    height: 32px !important;
    color: #687681 !important;
    border-bottom-color: rgba(70, 91, 108, .08) !important;
    background: #fff !important;
    box-shadow: 0 3px 12px rgba(31, 73, 104, .035) !important;
}

body.hp-has-welcome-banner .hp-welcome-banner__track {
    height: 32px !important;
}

body.hp-has-welcome-banner .hp-welcome-banner p {
    padding-inline: 52px !important;
    color: #687681 !important;
    font-size: 11px !important;
    font-weight: 400 !important;
    line-height: 32px !important;
    letter-spacing: .045em !important;
}

body.hp-has-welcome-banner.hp-welcome-at-top .header-container,
body.hp-has-welcome-banner.hp-welcome-at-top .header-container.hp-liquid-glass,
body.hp-has-welcome-banner.hp-welcome-at-top .hp-header-utility-dock {
    top: 52px !important;
}

@media (max-width: 1040px) {
    body.hp-has-welcome-banner .hp-welcome-banner p {
        padding-inline: 36px !important;
        font-size: 10.5px !important;
        letter-spacing: .035em !important;
    }

    body.hp-has-welcome-banner.hp-welcome-at-top .header-container,
    body.hp-has-welcome-banner.hp-welcome-at-top .header-container.hp-liquid-glass {
        top: 50px !important;
    }
}

/* v1.1.44: transição contínua do header e contraste correto no tema escuro. */
body.hp-has-welcome-banner .header-container,
body.hp-has-welcome-banner .header-container.hp-liquid-glass,
body.hp-has-welcome-banner .hp-header-utility-dock {
    transition:
        top .72s cubic-bezier(.22, 1, .36, 1),
        width .62s cubic-bezier(.22, 1, .36, 1),
        padding .62s cubic-bezier(.22, 1, .36, 1),
        border-color .4s ease,
        border-radius .55s ease,
        background .4s ease,
        box-shadow .5s ease !important;
}

html[data-theme="dark"] body.hp-has-welcome-banner .hp-welcome-banner {
    color: #9aa7af !important;
    border-bottom-color: rgba(255, 255, 255, .07) !important;
    background: #101416 !important;
    box-shadow: 0 3px 12px rgba(0, 0, 0, .16) !important;
}

html[data-theme="dark"] body.hp-has-welcome-banner .hp-welcome-banner p {
    color: #9aa7af !important;
}

html[data-theme="dark"] .header-container .header-search,
html[data-theme="dark"] .header-container .header-search.is-open,
html[data-theme="dark"] .header-container .header-search:focus-within,
html[data-theme="dark"] body.has-scrolled .header-container .header-search.is-open,
html[data-theme="dark"] body.has-scrolled .header-container .header-search:focus-within {
    border-color: rgba(255, 255, 255, .12) !important;
    background: rgba(15, 22, 26, .76) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .045), 0 10px 24px rgba(0, 0, 0, .12) !important;
}

html[data-theme="dark"] .header-container .header-search-toggle {
    color: #55aaf4 !important;
    background: transparent !important;
}

html[data-theme="dark"] .header-container .header-search-input,
html[data-theme="dark"] .header-container.has-open-search .header-search-input {
    color: #edf5f7 !important;
    background: transparent !important;
}

html[data-theme="dark"] .header-container .header-search-input::placeholder {
    color: #aab6bc !important;
    opacity: 1;
}
