.produto-headcore-page {
    padding: 0;
    min-height: 100vh;
    background-color: #ffffff;
    position: relative;
}

.produto-headcore-page > section:first-of-type {
    position: relative;
}

/* Mobile: ajustes de padding */
@media (max-width: 768px) {
    .produto-headcore-page {
        padding: 1rem 0; /* Reduzido significativamente */
    }
    
    /* Reduz espaçamento entre elementos no mobile */
    .produto-headcore-page-content {
        margin-bottom: 1rem; /* Reduzido significativamente */
    }
    
    .produto-headcore-page-content h1,
    .produto-headcore-page-content .wp-block-heading[data-level="1"],
    .produto-headcore-page-content .wp-block-heading.is-style-h1,
    .produto-headcore-page-content h1.wp-block-heading {
        padding-top: 1.5rem; /* Reduzido significativamente */
        margin-bottom: 0.25rem; /* Reduzido significativamente */
    }
    
    .produto-headcore-page-content h2,
    .produto-headcore-page-content h3,
    .produto-headcore-page-content h4,
    .produto-headcore-page-content h5,
    .produto-headcore-page-content h6,
    .produto-headcore-page-content .wp-block-heading {
        margin-bottom: 0.5rem; /* Reduzido significativamente */
    }
    
    .produto-headcore-page-content p,
    .produto-headcore-page-content .wp-block-paragraph {
        margin-bottom: 0.25rem; /* Reduzido significativamente */
    }
    
    .produto-headcore-page-content .wp-block-group,
    .produto-headcore-page-content .wp-block-columns {
        margin-bottom: 0.5rem; /* Reduzido significativamente */
    }
    
    /* Reduz espaçamento entre blocos de colunas */
    .produto-headcore-page-content .wp-block-columns + .wp-block-columns {
        margin-top: 0.5rem;
    }
    
    /* Ajuste do hero content no mobile - desce mais os elementos */
    .produto-headcore-hero-content {
        padding-top: 5rem;
        padding-left: var(--container-padding) !important;
        padding-right: var(--container-padding) !important;
    }
}

/* Hero Wrapper */
.produto-headcore-hero-wrapper {
    position: relative;
    width: 100vw;
    max-width: 100vw;
    min-width: 100vw;
    max-height: 420px;
    height: 420px;
    overflow: hidden;
    margin-bottom: 0;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    transform: translateX(-50%);
}

/* Hero Section */
.produto-headcore-hero {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    pointer-events: none;
}

.produto-headcore-hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    height: 100%;
    padding-top: 128px;
    box-sizing: border-box;
}

.produto-headcore-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.produto-headcore-hero-category {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: inline-block;
}

.produto-headcore-hero-title {
    font-size: clamp(3.5rem, 5vw, 5rem);
    font-weight: 200;
    letter-spacing: -0.06em;
    color: #fff;
    margin: 0;
    line-height: 1.25;
}

/* Video Background Block - altura máxima de 420px na página Produto Headcore */
.produto-headcore-page .wp-block-vbb-video-bg {
    width: 100vw !important;
    max-width: 100vw !important;
    max-height: 420px !important;
    height: 420px !important;
    position: relative !important;
    top: 0 !important;
    left: 50% !important;
    right: 50% !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    z-index: 0 !important;
    overflow: hidden;
    pointer-events: none;
    margin-bottom: 0;
}

/* Primeiro vídeo do conteúdo deve aparecer dentro do hero wrapper */
.produto-headcore-content .container > .wp-block-vbb-video-bg:first-child,
.produto-headcore-content .wp-block-vbb-video-bg:first-child {
    position: absolute !important;
    top: 0 !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 100vw !important;
    max-width: 100vw !important;
    max-height: 420px !important;
    height: 420px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-top: -420px !important;
    z-index: 1 !important;
    margin-bottom: 0 !important;
}

/* Se o vídeo estiver no hero wrapper */
.produto-headcore-hero-wrapper .wp-block-vbb-video-bg {
    position: absolute !important;
    top: 0 !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 100vw !important;
    max-width: 100vw !important;
    min-width: 100vw !important;
    height: 100% !important;
    max-height: 420px !important;
    z-index: 1 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Garantir que o vídeo player também ocupe 100vw */
.produto-headcore-hero-wrapper .wp-block-vbb-video-bg .vbbVideoPlayer {
    width: 100vw !important;
    max-width: 100vw !important;
    min-width: 100vw !important;
}

/* Ajustar o conteúdo - vídeo está no hero wrapper, não precisa de padding-top */
.produto-headcore-content {
    position: relative;
    padding-top: 0;
}

.produto-headcore-content .container > .wp-block-vbb-video-bg:first-child ~ * {
    position: relative;
    z-index: 2;
}

.produto-headcore-page .wp-block-vbb-video-bg .vbbVideoContent {
    pointer-events: auto;
}

.produto-headcore-page .wp-block-vbb-video-bg .vbbVideoPlayer {
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
    min-height: 100% !important;
    object-fit: cover !important;
    position: absolute;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 0 !important;
}

.produto-headcore-page .wp-block-vbb-video-bg .vbbVideoOverlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0.5 !important;
    background: transparent !important;
}

.produto-headcore-page .wp-block-vbb-video-bg .vbbVideoContent {
    position: relative;
    z-index: 0.5 !important;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 0;
    width: 100%;
    max-width: 100%;
}

/* Conteúdo dentro do vídeo deve seguir o grid do site */
.produto-headcore-page .wp-block-vbb-video-bg .vbbVideoContent > * {
    width: 100%;
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

/* Ajustar o conteúdo para que o hero apareça sobre o vídeo */
.produto-headcore-content {
    position: relative;
    padding-top: 0;
    margin-top: 0;
}

.produto-headcore-content .wp-block-vbb-video-bg:first-child ~ * {
    position: relative;
    z-index: 2;
}

.produto-headcore-hero-content {
    pointer-events: auto;
}

/* Overlay removido - não há mais animações de transição de fundo */

.produto-headcore-page-content {
    position: relative;
    z-index: 2;
    background-color: transparent !important;
    background: none !important;
    margin-top: 0;
    padding-top: 0;
}

/* Conteúdo que vem depois do vídeo deve ter z-index correto e não sobrepor */
.produto-headcore-page .wp-block-vbb-video-bg ~ * {
    position: relative;
    z-index: 2;
}

/* Conteúdo dentro do vídeo deve ficar abaixo do overlay de transições */
.produto-headcore-page .wp-block-vbb-video-bg .vbbVideoContent {
    z-index: 0.5 !important;
}

/* Conteúdo da página (fora do vídeo) deve ficar acima do vídeo */
.produto-headcore-page > *:not(.wp-block-vbb-video-bg) {
    position: relative;
    z-index: 2;
}

.produto-headcore-page-content,
.produto-headcore-page .wp-block-columns:not(.wp-block-vbb-video-bg .wp-block-columns),
.produto-headcore-page .wp-block-group:not(.wp-block-vbb-video-bg .wp-block-group),
.produto-headcore-page section:not(.wp-block-vbb-video-bg section) {
    position: relative;
    z-index: 2;
}

.produto-headcore-page .container {
    padding-left: 0 !important;
    padding-right: 0 !important;
    max-width: 1600px !important;
}

.produto-headcore-page > section .container {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.produto-headcore-page .container {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.produto-headcore-page-content {
    margin-bottom: 4rem;
}

.produto-headcore-page-content:first-of-type .container {
    padding-top: 0 !important;
}

.produto-headcore-page-content .container {
    max-width: 1600px;
    margin: 0 auto;
    padding-left: 0;
    padding-right: 0;
    padding-top: 0 !important;
    box-sizing: border-box;
    width: 100%;
}

/* Garantir que o primeiro vídeo não seja afetado pelo container */
.produto-headcore-content > .wp-block-vbb-video-bg:first-child {
    position: relative !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
}

/* Remove padding-top de 100px aplicado por regras globais */
.produto-headcore-page section:first-of-type .container,
.produto-headcore-page section:first-of-type > .container,
.produto-headcore-page > section:first-of-type .container,
.produto-headcore-page > section:first-of-type > .container {
    padding-top: 0 !important;
}

.produto-headcore-page-content .container > * {
    max-width: 100%;
}

.produto-headcore-page-content .wp-block-group.has-background,
.produto-headcore-page-content .wp-block-cover,
.produto-headcore-page-content .wp-block-group::before,
.produto-headcore-page-content .wp-block-group::after,
.produto-headcore-page-content .wp-block-cover::before,
.produto-headcore-page-content .wp-block-cover::after {
    background-color: transparent !important;
    background-image: none !important;
}

.produto-headcore-page-content .wp-block-group.has-background:not(.alignfull) {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.produto-headcore-page-content h1,
.produto-headcore-page-content .wp-block-heading[data-level="1"],
.produto-headcore-page-content .wp-block-heading.is-style-h1,
.produto-headcore-page-content h1.wp-block-heading {
    font-size: clamp(3.5rem, 5vw, 5rem);
    font-weight: 200;
    letter-spacing: -0.06em;
    padding-top: 0;
    margin-bottom: 1rem;
    padding-left: 0;
    padding-right: 0;
    line-height: 1.25;
    color: #ffffff; /* Branco inicial - será atualizado pelo JS */
    transition: color 0.5s ease;
}

.produto-headcore-page-content p,
.produto-headcore-page-content .wp-block-paragraph {
    font-size: clamp(1rem, 1.25vw, 1.125rem);
    line-height: 1.7;
    letter-spacing: 0.02em;
    color: #ffffff; /* Branco inicial - será atualizado pelo JS */
    margin-top: 0;
    transition: color 0.5s ease;
}

/* Garante que todos os textos dentro de produto-headcore-page mudem de cor, exceto estilos de parágrafos e pilulas */
.produto-headcore-page-content *:not(.is-style-box-light-grey):not(.is-style-box-black):not(.is-style-box-yellow):not(.is-style-box-white):not(.headcore-pill-yellow):not(.headcore-pill-black):not(.headcore-pill-grey) {
    transition: color 0.5s ease;
}

/* Remove fundo branco de sections e grupos dentro de produto-headcore-page */
.produto-headcore-page section,
.produto-headcore-page .produto-headcore-page-content,
.produto-headcore-page .wp-block-group:not(.has-background),
.produto-headcore-page .wp-block-group.has-background,
.produto-headcore-page .wp-block-columns,
.produto-headcore-page .wp-block-column {
    background-color: transparent !important;
    background: none !important;
}

/* Garante que estilos de parágrafos mantenham suas cores originais e animações */
/* Maior especificidade para sobrescrever regras globais */
.produto-headcore-page-content .wp-block-paragraph.is-style-box-light-grey,
.produto-headcore-page-content p.is-style-box-light-grey,
.produto-headcore-page-content .wp-block-paragraph.is-style-box-black,
.produto-headcore-page-content p.is-style-box-black,
.produto-headcore-page-content .wp-block-paragraph.is-style-box-yellow,
.produto-headcore-page-content p.is-style-box-yellow,
.produto-headcore-page-content .wp-block-paragraph.is-style-box-white,
.produto-headcore-page-content p.is-style-box-white {
    color: inherit !important;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out, color 0.5s ease !important;
    opacity: 0 !important;
    transform: translateY(40px) !important;
}

/* Permite que o texto dentro de box-white mude de cor */
.produto-headcore-page-content .is-style-box-white *:not(.headcore-pill-yellow):not(.headcore-pill-black):not(.headcore-pill-grey):not(span.headcore-pill-yellow):not(span.headcore-pill-black):not(span.headcore-pill-grey) {
    transition: color 0.5s ease !important;
}

/* Pilula amarela: mantém estilo original sem animação */
.produto-headcore-page-content .headcore-pill-yellow,
.produto-headcore-page-content span.headcore-pill-yellow,
.produto-headcore-page-content .headcore-pill-yellow *,
.produto-headcore-page-content span.headcore-pill-yellow * {
    color: #000000 !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    line-height: 1.5 !important;
    border: none !important;
    white-space: nowrap !important;
    display: inline-block !important;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}

.produto-headcore-page-content .headcore-pill-yellow,
.produto-headcore-page-content span.headcore-pill-yellow {
    background-color: #FFBE00 !important;
    padding: 0.25rem 0.75rem !important;
    border-radius: 50px !important;
}

.produto-headcore-page-content .headcore-pill-yellow *,
.produto-headcore-page-content span.headcore-pill-yellow * {
    background-color: transparent !important;
    padding: 0 !important;
    border-radius: 0 !important;
}

.produto-headcore-page-content .headcore-pill-yellow a,
.produto-headcore-page-content span.headcore-pill-yellow a,
.produto-headcore-page-content .headcore-pill-yellow a *,
.produto-headcore-page-content span.headcore-pill-yellow a * {
    color: #000000 !important;
    text-decoration: none !important;
}

/* Pilula preta: mantém estilo original sem animação */
.produto-headcore-page-content .headcore-pill-black,
.produto-headcore-page-content span.headcore-pill-black,
.produto-headcore-page-content .headcore-pill-black *,
.produto-headcore-page-content span.headcore-pill-black * {
    color: #ffffff !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    line-height: 1.5 !important;
    border: none !important;
    white-space: nowrap !important;
    display: inline-block !important;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}

.produto-headcore-page-content .headcore-pill-black,
.produto-headcore-page-content span.headcore-pill-black {
    background-color: #000000 !important;
    padding: 0.25rem 0.75rem !important;
    border-radius: 50px !important;
}

.produto-headcore-page-content .headcore-pill-black *,
.produto-headcore-page-content span.headcore-pill-black * {
    background-color: transparent !important;
    padding: 0 !important;
    border-radius: 0 !important;
}

.produto-headcore-page-content .headcore-pill-black a,
.produto-headcore-page-content span.headcore-pill-black a,
.produto-headcore-page-content .headcore-pill-black a *,
.produto-headcore-page-content span.headcore-pill-black a * {
    color: #ffffff !important;
    text-decoration: none !important;
}

/* Pilula cinza claro: mantém estilo original sem animação */
.produto-headcore-page-content .headcore-pill-grey,
.produto-headcore-page-content span.headcore-pill-grey,
.produto-headcore-page-content .headcore-pill-grey *,
.produto-headcore-page-content span.headcore-pill-grey * {
    color: #000000 !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    line-height: 1.5 !important;
    border: none !important;
    white-space: nowrap !important;
    display: inline-block !important;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}

.produto-headcore-page-content .headcore-pill-grey,
.produto-headcore-page-content span.headcore-pill-grey {
    background-color: #E5E5E5 !important;
    padding: 0.25rem 0.75rem !important;
    border-radius: 50px !important;
}

.produto-headcore-page-content .headcore-pill-grey *,
.produto-headcore-page-content span.headcore-pill-grey * {
    background-color: transparent !important;
    padding: 0 !important;
    border-radius: 0 !important;
}

.produto-headcore-page-content .headcore-pill-grey a,
.produto-headcore-page-content span.headcore-pill-grey a,
.produto-headcore-page-content .headcore-pill-grey a *,
.produto-headcore-page-content span.headcore-pill-grey a * {
    color: #000000 !important;
    text-decoration: none !important;
}

/* Pilulas dentro de box-black: mantêm suas cores originais */
.produto-headcore-page-content .is-style-box-black .headcore-pill-yellow,
.produto-headcore-page-content .is-style-box-black span.headcore-pill-yellow,
.produto-headcore-page-content .is-style-box-black .headcore-pill-yellow *,
.produto-headcore-page-content .is-style-box-black span.headcore-pill-yellow *,
.produto-headcore-page-content p.is-style-box-black .headcore-pill-yellow,
.produto-headcore-page-content p.is-style-box-black span.headcore-pill-yellow,
.produto-headcore-page-content p.is-style-box-black .headcore-pill-yellow *,
.produto-headcore-page-content p.is-style-box-black span.headcore-pill-yellow * {
    color: #000000 !important;
}

.produto-headcore-page-content .is-style-box-black .headcore-pill-black,
.produto-headcore-page-content .is-style-box-black span.headcore-pill-black,
.produto-headcore-page-content .is-style-box-black .headcore-pill-black *,
.produto-headcore-page-content .is-style-box-black span.headcore-pill-black *,
.produto-headcore-page-content p.is-style-box-black .headcore-pill-black,
.produto-headcore-page-content p.is-style-box-black span.headcore-pill-black,
.produto-headcore-page-content p.is-style-box-black .headcore-pill-black *,
.produto-headcore-page-content p.is-style-box-black span.headcore-pill-black * {
    color: #ffffff !important;
}

.produto-headcore-page-content .is-style-box-black .headcore-pill-grey,
.produto-headcore-page-content .is-style-box-black span.headcore-pill-grey,
.produto-headcore-page-content .is-style-box-black .headcore-pill-grey *,
.produto-headcore-page-content .is-style-box-black span.headcore-pill-grey *,
.produto-headcore-page-content p.is-style-box-black .headcore-pill-grey,
.produto-headcore-page-content p.is-style-box-black span.headcore-pill-grey,
.produto-headcore-page-content p.is-style-box-black .headcore-pill-grey *,
.produto-headcore-page-content p.is-style-box-black span.headcore-pill-grey * {
    color: #000000 !important;
}

/* Animações quando a classe headcore-animated é adicionada */
.produto-headcore-page-content .wp-block-paragraph.is-style-box-light-grey.headcore-animated,
.produto-headcore-page-content p.is-style-box-light-grey.headcore-animated,
.produto-headcore-page-content .wp-block-paragraph.is-style-box-black.headcore-animated,
.produto-headcore-page-content p.is-style-box-black.headcore-animated,
.produto-headcore-page-content .wp-block-paragraph.is-style-box-yellow.headcore-animated,
.produto-headcore-page-content p.is-style-box-yellow.headcore-animated,
.produto-headcore-page-content .wp-block-paragraph.is-style-box-white.headcore-animated,
.produto-headcore-page-content p.is-style-box-white.headcore-animated {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Box-black: texto branco sempre - maior especificidade */
.produto-headcore-page-content .wp-block-paragraph.is-style-box-black,
.produto-headcore-page-content p.is-style-box-black,
.produto-headcore-page-content .wp-block-paragraph.is-style-box-black *,
.produto-headcore-page-content p.is-style-box-black *,
.produto-headcore-page-content .wp-block-paragraph.is-style-box-black p,
.produto-headcore-page-content p.is-style-box-black p {
    color: #ffffff !important;
}

/* Box-black: links brancos */
.produto-headcore-page-content .wp-block-paragraph.is-style-box-black a,
.produto-headcore-page-content p.is-style-box-black a,
.produto-headcore-page-content .wp-block-paragraph.is-style-box-black p a,
.produto-headcore-page-content p.is-style-box-black p a {
    color: #ffffff !important;
}

.produto-headcore-page-content h2,
.produto-headcore-page-content h3,
.produto-headcore-page-content h4,
.produto-headcore-page-content h5,
.produto-headcore-page-content h6,
.produto-headcore-page-content .wp-block-heading {
    color: #ffffff; /* Branco inicial - será atualizado pelo JS */
    transition: color 0.5s ease;
}

.produto-headcore-page-content a {
    color: #ffffff; /* Branco inicial - será atualizado pelo JS */
    transition: color 0.5s ease;
}

