/* ── Skip to content (acessibilidade) ───────────────────────────────────── */
.skip-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
    pointer-events: none;
}
.skip-link:focus {
    width: auto;
    height: auto;
    padding: .75rem 1.25rem;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
    pointer-events: auto;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    font-size: .9rem;
    border-radius: 0 0 var(--radius) 0;
    z-index: 9999;
    text-decoration: none !important;
}

/* ── Transições de Página (Apenas Conteúdo) ────────────────────────────── */

/* O Header agora é deixado de fora da transição nomeada para evitar ghosting */
header.site-header, header.h1-body, header.h2-body {
    view-transition-name: none !important; /* Desabilita a captura de snapshot do header */
}

#main-content {
    view-transition-name: main-content;
    will-change: opacity;
}

/* Transição ultra-rápida exclusiva para o conteúdo central */
::view-transition-old(main-content) {
    animation: 100ms ease-out both fade-out;
}

::view-transition-new(main-content) {
    animation: 150ms ease-in both fade-in;
}

@keyframes fade-in { from { opacity: 0; } }
@keyframes fade-out { to { opacity: 0; } }

/* ── Shortcode: Colunas Dinâmicas ────────────────────────────────────────── */
.shortcode-columns-section {
    padding: 5rem 0;
    width: 100%;
    overflow: hidden;
}

.col-section-header {
    text-align: center;
    margin-bottom: 4.5rem; /* Aumentado para dar mais ar antes do grid de colunas */
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.col-section-title {
    font-family: var(--font-primary);
    font-size: var(--size-block-title);
    font-weight: var(--weight-block-title);
    margin-bottom: 0.15rem; /* Título mais próximo do subtítulo */
    color: var(--primary);
}

.col-desc-wrapper {
    margin-top: -0.45rem; /* Puxa o subtítulo para cima, colando no título */
}

.col-section-desc {
    font-family: var(--font-secondary);
    font-size: var(--size-h3);
    opacity: 0.8;
    margin: 0 !important; /* Remove margens padrão do parágrafo */
}

.col-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    align-items: center; /* Alinhamento Vertical: Middle */
    justify-content: center;
}

.col-item {
    flex: 1 1 calc((100% / var(--col-count, 1)) - 3rem);
    min-width: 280px; /* Garante que não fiquem muito espremidas */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Middle interno se houver background */
    height: 100%;
}

/* Garante que o conteúdo dentro da coluna não herde paddings globais do .prose */
.col-item .prose > * {
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

@media (max-width: 1024px) {
    .col-item { flex: 1 1 calc(50% - 2rem); }
}

@media (max-width: 768px) {
    .col-item { flex: 1 1 100%; min-width: 100%; }
    .shortcode-columns-section { padding: 3rem 0; }
    
    /* Garante que botões dentro de colunas ocupem 100% no mobile */
    .col-item .btn {
        width: 100% !important;
        display: flex !important;
        box-sizing: border-box !important;
    }
}

/* ── Reveal on Scroll (Padronizado) ─────────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    transition-property: opacity, transform;
}

.reveal-left  { opacity: 0; transform: translateX(-30px); transition: all 0.8s ease-out; }
.reveal-right { opacity: 0; transform: translateX(30px);  transition: all 0.8s ease-out; }
.reveal-scale { opacity: 0; transform: scale(0.95);       transition: all 0.8s ease-out; }

.reveal.is-visible,
.reveal-left.is-visible,
.reveal-right.is-visible,
.reveal-scale.is-visible {
    opacity: 1;
    transform: translate(0) scale(1);
}

:root {
    /* Espaçamentos e Fallbacks estruturais */
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 2rem;
    --space-xl: 4rem;

    /* --- SISTEMA TIPOGRÁFICO MODULAR (O MANUAL DEFINITIVO) --- */
    --type-base: 1rem;    /* 16px */
    --type-ratio: 1.333;  /* Perfect Fourth - Equilíbrio e Harmonia */

    /* EIXO 1: TAMANHO (Cálculo Proporcional) */
    --size-caption: calc(var(--type-base) / var(--type-ratio));          /* 0.75rem  - 12px */
    --size-body:    var(--type-base);                                   /* 1rem     - 16px */
    --size-h4:      var(--type-base);                                   /* 1rem     - Labels (All Caps) */
    --size-h3:      calc(var(--size-body) * var(--type-ratio));         /* 1.333rem - 21px */
    --size-h2:      calc(var(--size-h3) * var(--type-ratio));           /* 1.777rem - 28px */
    --size-h1:      calc(var(--size-h2) * var(--type-ratio));           /* 2.369rem - 38px */
    --size-display: calc(var(--size-h1) * var(--type-ratio));           /* 3.157rem - 50px */
    --size-hero:    calc(var(--size-display) * var(--type-ratio));      /* 4.209rem - 67px */

    /* EIXO 2: PESO (Descendente por Responsabilidade Visual) */
    --weight-black:     900; /* Hero / Display */
    --weight-extrabold: 800; /* H1 */
    --weight-bold:      700; /* H2 */
    --weight-semibold:  600; /* H3 */
    --weight-medium:    500; /* H4 / Lead */
    --weight-regular:   400; /* Body */

    /* EIXO 3: RITMO VERTICAL (Line-height Dinâmico) */
    --lh-display: 1.1; /* Títulos de grande impacto */
    --lh-title:   1.2; /* Títulos de bloco e cartões */
    --lh-body:    1.5; /* Corpo de texto corrido */

    /* EIXO 4: COMPENSAÇÃO ÓPTICA (Letter-spacing Inverso) */
    --ls-display: -0.02em; /* Tracking negativo para fontes gigantes */
    --ls-body:     0;      /* Tracking neutro para leitura */
    --ls-label:    0.1em;  /* Tracking positivo para textos pequenos em all-caps */

    /* Variáveis Semânticas para os Blocos */
    --size-block-title: var(--size-h1);
    --size-block-subtitle: var(--size-h3);
    --weight-block-title: var(--weight-extrabold);
    --weight-block-subtitle: var(--weight-regular);
    --margin-block-header: 3.5rem;

    /* Variáveis de Compatibilidade e Apoio (Mapeadas para a Escala) */
    --font-xs: var(--size-caption);
    --font-sm: var(--size-caption); 
    --font-base: var(--size-body);
    --font-md: var(--size-h3);
    --font-lg: var(--size-h2);
    --font-xl: var(--size-h1);
    
    /* Cores de Apoio */
    --text-muted: rgba(0,0,0,0.6);

    /* Fallback para --on-primary (cor do texto sobre o botão primário) */
    --on-primary: #ffffff;
}

[data-theme="dark"] {
    --bg-card: #1e293b;
    --text-main: #f1f5f9;
    --text-muted: rgba(255,255,255,0.6);
    --border: rgba(255,255,255,0.1);
}

/* Reajuste da Escala para Mobile (Suavização da Razão) */
@media (max-width: 768px) {
    :root {
        --type-ratio: 1.2; /* Major Second - Hierarquia mais compacta */
        --margin-block-header: 2rem;
    }
}
/* Reset & Base */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { 
    font-family: var(--font-secondary), 'Arial Narrow', 'Helvetica Inserat', 'Arial', sans-serif; 
    color: var(--text-main); 
    background: var(--bg-page);
    line-height: var(--lh-body); 
    font-size: var(--size-body);
    font-weight: var(--weight-regular);
    overflow-x: hidden; /* Evita scroll lateral por elementos 100vw */
}

a {
    color: var(--primary);
    text-decoration: none !important;
    transition: 0.2s;
}

a:hover { opacity: 0.8; text-decoration: none !important; }

/* Aplicação da Hierarquia Global */
h1, .hero-title { 
    font-size: var(--size-hero); 
    font-weight: var(--weight-black); 
    line-height: var(--lh-display); 
    letter-spacing: var(--ls-display); 
}

h2, .block-title, .section-title-standard { 
    font-size: var(--size-block-title); 
    font-weight: var(--weight-block-title); 
    line-height: var(--lh-title); 
}

.section-title-standard {
    font-family: var(--font-primary), sans-serif !important;
    font-size: var(--size-block-title) !important;
    font-weight: var(--weight-block-title) !important;
    line-height: var(--lh-title) !important;
}

h3, .post-title, .card-title { 
    font-size: var(--size-h3); 
    font-weight: var(--weight-semibold); 
    line-height: var(--lh-title); 
}

h4, .label-caps { 
    font-size: var(--size-h4); 
    font-weight: var(--weight-medium); 
    text-transform: none; /* Reset uppercase global */
    letter-spacing: var(--ls-label); 
}

h1, h2, h3, h4, h5, h6, .logo-text, .nav-link, .btn, .footer-title {
    font-family: var(--font-primary), 'Arial Narrow', 'Helvetica Inserat', 'Arial', sans-serif;
}

/* Forçar espaçamento padrão para headers de seção */
header[class*="-header"], .pricing-header-main, .gallery-header {
    margin-bottom: var(--margin-block-header);
}

header[class*="-header"] p, .block-desc, .gallery-description {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

/* Fallback para fontes sem peso 900 */
@supports not (font-weight: 900) {
    h1, .hero-title { font-weight: 800; }
}

.container { max-width: var(--container-width); margin: 0 auto; padding: 0 1.5rem; }

/* Font Weight Utilities */
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.font-black { font-weight: 900; }

/* Fallback para fontes sem peso 900 */
@supports not (font-weight: 900) {
    .font-black { font-weight: 800; }
}

/* Listas */
ul, ol { margin-bottom: var(--space-md); padding-left: 1.5rem; }
li { margin-bottom: 0.5rem; }
dt { font-weight: var(--weight-bold); font-family: var(--font-primary); }
dd { margin-bottom: var(--space-md); margin-left: 1rem; opacity: 0.8; }

/* Citações */
blockquote {
    padding: 2rem;
    margin: 2rem 0;
    border-left: 4px solid var(--primary);
    background: var(--primary-soft);
    font-style: italic;
    font-size: var(--size-h3);
    line-height: var(--lh-title);
    border-radius: 0 var(--radius) var(--radius) 0;
}
cite {
    display: block;
    margin-top: 1rem;
    font-size: var(--size-caption);
    font-weight: var(--weight-bold);
    text-transform: uppercase;
    letter-spacing: var(--ls-label);
    font-style: normal;
    opacity: 0.6;
}

/* Tabelas */
table { width: 100%; border-collapse: collapse; margin-bottom: var(--space-md); font-size: var(--size-body); }
th, td { padding: 1rem; border-bottom: 1px solid var(--border); text-align: left; }
th { font-family: var(--font-primary); font-weight: var(--weight-bold); text-transform: uppercase; font-size: var(--size-caption); letter-spacing: var(--ls-label); background: rgba(0,0,0,0.02); }
tr:hover td { background: var(--primary-soft); }

/* Formulários Padrão */
label { display: block; font-family: var(--font-primary); font-weight: var(--weight-semibold); font-size: var(--size-caption); margin-bottom: 0.5rem; text-transform: uppercase; letter-spacing: var(--ls-label); }
input[type="text"], input[type="email"], input[type="tel"], input[type="url"], select, textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font-secondary);
    font-size: var(--size-body);
    transition: all 0.3s ease;
    background: #fff;
    color: var(--text-main);
}
input:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }

/* Botão submit de formulário no front */
input[type="submit"],
button[type="submit"],
.form-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 2rem;
    border-radius: var(--radius);
    font-family: var(--font-primary);
    font-size: var(--size-h4);
    font-weight: var(--weight-bold);
    text-decoration: none !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    cursor: pointer;
    line-height: 1;
    white-space: nowrap;
    /* Cor de destaque como fundo, cor do fundo como texto */
    background: var(--primary);
    color: var(--on-primary, var(--bg-page)) !important;
}

input[type="submit"]:hover,
button[type="submit"]:hover,
.form-submit:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -10px var(--primary);
}

/* Inline & Code */
code, kbd { font-family: monospace; background: var(--primary-soft); color: var(--primary); padding: 0.2rem 0.4rem; border-radius: 4px; font-size: 0.9em; }
pre { background: #1e293b; color: #f1f5f9; padding: 1.5rem; border-radius: var(--radius); overflow-x: auto; margin-bottom: var(--space-md); }
mark { background: var(--primary); color: #fff; padding: 0 0.2rem; }
hr { border: 0; border-top: 2px solid var(--border); margin: 3rem 0; }

/* Botões e Componentes */
.btn {
    display: inline-flex; 
    align-items: center; 
    justify-content: center;
    padding: 0.85rem 2rem; 
    border-radius: var(--radius);
    font-family: var(--font-primary);
    font-size: var(--size-h4);
    font-weight: var(--weight-bold);
    text-decoration: none !important; 
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent; 
    cursor: pointer; 
    gap: 0.75rem;
    line-height: 1;
    white-space: nowrap;
}

.btn--primary {
    background: var(--primary);
    color: var(--on-primary, var(--bg-page)) !important;
}

.btn--primary:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -10px var(--primary);
}

.btn--secondary {
    background: transparent;
    color: var(--primary) !important;
    border-color: var(--primary);
}

.btn--secondary:hover {
    background: var(--primary);
    color: var(--on-primary, var(--bg-page)) !important;
    transform: translateY(-2px);
}

.btn--sm {
    padding: 0.5rem 1.25rem;
    font-size: var(--size-caption);
}

.btn--lg {
    padding: 1.25rem 3rem;
    font-size: var(--size-h3);
}

.btn-header {
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--primary); color: var(--on-primary, var(--bg-page)) !important; 
    padding: 0.75rem 1.5rem; border-radius: var(--radius);
    font-size: var(--size-body); font-weight: 800; text-decoration: none !important;
    transition: 0.2s; border: none; cursor: pointer;
    text-transform: none;
}

/* Layout de Conteúdo: Textos vs Blocos Full-Width */
.prose {
    width: 100%;
    display: flex;
    flex-direction: column;
}

/* Elementos de Texto Comuns: Seguem a largura do container do site */
.prose > h1 {
    font-size: var(--size-h2);
    font-weight: var(--weight-bold);
}

.prose > p,
.prose > h1,
.prose > h2,
.prose > h3,
.prose > h4,
.prose > h5,
.prose > h6,
.prose > ul,
.prose > ol,
.prose > blockquote,
.prose > pre,
.prose > .text-columns {
    max-width: var(--container-width);
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* Correção: Listas com marcadores internos */
.prose ul, .prose ol {
    list-style-position: inside;
}

/* Correção para elementos dentro de blocos que já possuem seu próprio container */
[class^="block-"] .prose > p,
[class^="block-"] .prose > h1,
[class^="block-"] .prose > h2,
[class^="block-"] .prose > h3,
[class^="block-"] .prose > h4,
[class^="block-"] .prose > h5,
[class^="block-"] .prose > h6,
[class^="block-"] .prose > ul,
[class^="block-"] .prose > ol,
[class^="block-"] .prose > blockquote,
[class^="block-"] .prose > pre {
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Elementos de LARGURA TOTAL: Shortcodes e Componentes */
.prose > .core-slider,
.prose > section[class^="block-"],
.prose > div[class^="block-"],
.prose > .text-columns.has-bg,
.prose > p:has(.core-slider),
.prose > p:has(section[class^="block-"]) {
    max-width: 100% !important;
    width: 100% !important;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
}

/* Ajuste específico para garantir que o conteúdo dentro do bloco tenha seu próprio container */
section[class^="block-"] .container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header Desktop - Específico para os layouts de navegação principal */
header.h1-body,
header.h2-body,
header.site-header { 
    width: 100%; 
    z-index: 9999; 
    position: relative; 
    background: var(--bg-card); 
    transition: background 0.3s, padding 0.3s, box-shadow 0.3s;
}

/* ── Estrutura de Compensação do Header (Sobreposição Universal) ────── */
:root {
    --header-height: 80px; 
}

/* 1. Reset Global quando transparente: Conteúdo sobe ao topo (y=0) */
body.has-transparent-header #main-content {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* 2. Aplicação do padding no PRIMEIRO bloco visual encontrado */
/* Procuramos section ou div logo na entrada do conteúdo */
body.has-transparent-header #main-content > section:first-of-type,
body.has-transparent-header #main-content > div:first-child section:first-of-type,
body.has-transparent-header .prose > section:first-child,
body.has-transparent-header .home-content-wrapper section:first-of-type {
    padding-top: var(--header-height) !important;
}

/* 3. Caso especial: Se o primeiro elemento for um Slider (Banners) */
body.has-transparent-header .core-slider:first-child {
    padding-top: 0 !important;
}
body.has-transparent-header .core-slider:first-child .slide-item {
    padding-top: var(--header-height);
}

/* 4. Garante que Heros com altura mínima considerem o menu */
body.has-transparent-header .block-hero:first-of-type {
    min-height: calc(80vh + var(--header-height));
}

/* Estado: Fixado no Topo */
header.is-sticky {
    position: sticky;
    top: 0;
    border-bottom: 1px solid var(--border);
    background: var(--bg-card);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* Estado: Transparente (Início da página) */
header.is-transparent {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: transparent !important;
    border-bottom-color: transparent !important;
    box-shadow: none !important;
}
/* Estado: Scrolled (Menu Fixo Inteligente) */
header.is-scrolled {
    position: fixed;
    top: 0;
    left: 0;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border-bottom: 1px solid var(--border);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s ease;
    will-change: transform;
}

/* Esconde o header ao rolar para baixo */
header.is-scrolled.is-hidden {
    transform: translateY(-100%);
}

/* Garante que o header esteja visível quando não estiver escondido */
header.is-scrolled:not(.is-hidden) {
    transform: translateY(0);
}

/* Ajuste para Dark Mode no Header Scrolled */
[data-theme="dark"] header.is-scrolled {
    background: rgba(15, 23, 42, 0.95) !important;
}

/* Slider */
.core-slider { 
    width: 100vw !important; 
    position: relative; 
    left: 50%; 
    margin-left: -50vw !important; 
    margin-right: -50vw !important; 
    right: 50%;
    height: 600px; 
    overflow: hidden; 
    background: none !important; 
}
.slider-wrapper { display: flex; height: 100%; transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1); }
.slide-item { flex: 0 0 100vw; width: 100vw; height: 100%; position: relative; }
.slide-item a:hover { opacity: 1 !important; text-decoration: none !important; }

.slide-item:hover { filter: none !important; }
.slide-picture, .slide-img { width: 100%; height: 100%; object-fit: cover; display: block; border: none; outline: none; background: none; }

/* Remove espaçamentos de parágrafos que envolvem o slider */
.prose p:has(.core-slider),
.prose .core-slider {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
}

/* Navegação do Slider (Setas) */
.slider-prev, .slider-next {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 50px; height: 50px; background: rgba(255,255,255,0.2);
    border: none; border-radius: 50%; color: #fff; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: 0.3s; z-index: 10; backdrop-filter: blur(5px);
}
.slider-prev:hover, .slider-next:hover { background: rgba(255,255,255,0.4); }
.slider-prev { left: 20px; }
.slider-next { right: 20px; }

/* Paginação (Pontos) */
.slider-nav {
    position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
    display: flex; gap: 10px; z-index: 10;
}
.slider-dot {
    width: 10px; height: 10px; background: rgba(255,255,255,0.4);
    border-radius: 50%; cursor: pointer; transition: 0.3s;
}
.slider-dot.active { background: #fff; width: 25px; border-radius: 5px; }

/* Efeito Fade */
.core-slider[data-effect="fade"] .slider-wrapper { display: block; position: relative; }
.core-slider[data-effect="fade"] .slide-item {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0; transition: opacity 0.8s ease; visibility: hidden;
}
.core-slider[data-effect="fade"] .slide-item.active {
    opacity: 1; visibility: visible;
}

/* Menu Desktop */
.nav-main { display: flex; align-items: center; gap: 0.75rem; height: 100%; }
.nav-item { position: relative; display: flex; align-items: center; height: 100%; }
.nav-link { 
    text-decoration: none !important; 
    color: var(--primary); 
    font-weight: 800; 
    text-transform: none;
    font-family: var(--font-primary);
    display: flex; align-items: center; gap: 6px; padding: 0 0.5rem; height: 100%; transition: 0.2s; 
    font-size: var(--size-body);
    letter-spacing: 0;
}
.nav-link:hover { opacity: 0.8; text-decoration: none !important; }

.nav-dropdown { 
    position: absolute; top: 100%; left: 0; min-width: 240px; 
    background: var(--bg-card); 
    border: 1px solid var(--border); 
    border-radius: 0; box-shadow: 0 10px 25px rgba(0,0,0,0.1); 
    opacity: 0; visibility: hidden; z-index: 100; transition: all 0.2s ease; 
}

.nav-item:hover > .nav-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }

.nav-dropdown-link { 
    display: flex; justify-content: space-between; align-items: center; 
    padding: 0.85rem 1.25rem; text-decoration: none !important; color: var(--text-muted); 
    font-size: 0.875rem; border-bottom: 1px solid var(--border); 
}
.nav-dropdown-link:hover { background: var(--primary-soft); color: var(--primary); text-decoration: none !important; }

/* Submenu Nível 3 (Netos) */
.nav-submenu { position: relative; width: 100%; }
.nav-grandchild { 
    position: absolute; top: -1px; left: calc(100% - 2px); min-width: 220px;
    background: var(--bg-card); 
    border: 1px solid var(--border);
    border-radius: 0; box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    opacity: 0; visibility: hidden; transition: 0.1s; z-index: 101; padding: 0;
}
.nav-submenu:hover > .nav-grandchild { opacity: 1; visibility: visible; }

.dropdown-icon, .submenu-icon { width: 14px; height: 14px; opacity: 1; color: var(--primary); }

/* Menu Mobile (Hidden on Desktop) */
.mobile-trigger, .mobile-menu-overlay, .mobile-menu-canvas { display: none; }

@media (max-width: 768px) {
    .nav-main { display: none !important; }
    .core-slider { height: 500px !important; }
    
        .mobile-trigger {
    
            display: flex !important;
    
            align-items: center;
    
            justify-content: center;
    
            width: 40px;
    
            height: 40px;
    
            background: transparent;
    
            color: var(--text-main);
    
            border: none;
    
            border-radius: var(--radius);
    
            cursor: pointer;
    
            z-index: 1001;
    
        }

    .mobile-menu-overlay { 
        position: fixed; top: 0; left: 0; width: 100%; height: 100%; 
        background: rgba(0,0,0,0.5); z-index: 10000; 
        opacity: 0; visibility: hidden; transition: all 0.3s ease;
    }
    .mobile-menu-overlay.active { opacity: 1; visibility: visible; }
    
    .mobile-menu-canvas { 
        position: fixed; top: 0; left: -300px; width: 300px; height: 100%; 
        background: var(--bg-card); z-index: 10001; 
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1); 
        display: flex; flex-direction: column; 
        will-change: transform;
    }
    .mobile-menu-canvas.active { transform: translateX(300px); }

    .mobile-nav-link-wrapper { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border); }
    .mobile-nav-link { 
        display: block;
        padding: 1.15rem 1.5rem; text-decoration: none !important; color: var(--text-main); 
        font-weight: 600; flex: 1; line-height: 1.6; 
    }
    
    /* Indentação por Profundidade */
    .depth-2 .mobile-nav-link { padding-left: 2.5rem; }
    .depth-3 .mobile-nav-link { padding-left: 4rem; }

    .mobile-nav-toggle { padding: 1.15rem; background: none; border: none; color: var(--text-muted); transition: 0.3s; }
    .mobile-submenu {
        background: var(--bg-page);
        overflow: hidden;
        max-height: 0;
        transition: max-height 0.3s ease-out;
    }
    .mobile-submenu.active {
        max-height: 40rem;
    }

    .mobile-menu-header {
        display: flex;
        justify-content: flex-end;
        align-items: center;
        padding: 0.75rem 1rem;
        border-bottom: 1px solid var(--border);
        flex-shrink: 0;
    }
    .mobile-menu-close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        background: var(--primary-soft);
        border: none;
        color: var(--primary);
        cursor: pointer;
        border-radius: 50%;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.2s ease;
        font-size: 1.5rem;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }
    .mobile-menu-close:hover {
        background: var(--primary);
        color: #fff;
    }
    /* Rotação apenas se NÃO for touch para evitar bugs visuais no clique */
    @media (hover: hover) {
        .mobile-menu-close:hover { transform: rotate(90deg); }
    }
    .mobile-nav {
        overflow-y: auto;
    }
    .h1-col-right, .h2-col-right { display: none !important; }
}

/* Colunas de Texto via Shortcode */
.text-columns {
    column-gap: 4rem;
    column-fill: balance;
    margin: 3rem 0;
    line-height: 1.6;
    display: block;
}

.text-columns.has-bg { margin: 0; }

.text-columns p, 
.text-columns h1, 
.text-columns h2, 
.text-columns h3, 
.text-columns ul, 
.text-columns ol,
.text-columns span,
.text-columns strong,
.text-columns div {
    color: inherit !important;
}

.text-columns > *:first-child {
    margin-top: 0 !important;
}

.text-columns p {
    margin-top: 0;
    margin-bottom: var(--space-md);
    text-align: justify;
    hyphens: none;
    orphans: 2;
    widows: 2;
    break-inside: auto;
}

.text-columns img, 
.text-columns h1, 
.text-columns h2, 
.text-columns h3,
.text-columns .btn,
.text-columns blockquote {
    break-inside: avoid-column;
    display: block;
    margin-top: 0;
    margin-bottom: var(--space-md);
    border-radius: 0 !important;
}

/* Status Pages (404, 500) */
.status-page {
    padding: var(--space-xl) 0;
    text-align: center;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.status-page__icon-box {
    background: var(--primary-soft);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    color: var(--primary);
}

.status-page__icon-box i {
    font-size: 2.5rem;
}

.status-page__code {
    font-size: 8rem;
    line-height: 1;
    margin-bottom: 1rem;
    opacity: 0.1;
    font-weight: var(--weight-black);
    font-family: var(--font-primary);
}

.status-page__title {
    font-size: var(--size-h2);
    margin-bottom: var(--space-md);
    font-weight: var(--weight-bold);
}

.status-page__text {
    color: var(--text-muted);
    font-size: 1.125rem;
    max-width: 500px;
    margin: 0 auto var(--space-lg);
}

/* Post Components */
.post-article-wrapper {
    padding-top: 4rem;
    padding-bottom: 5rem;
}

.post-header {
    margin-bottom: 3.5rem;
    text-align: center;
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
    padding: 0 1.5rem;
}

.post-header__meta {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
    font-size: var(--size-caption);
    font-weight: var(--weight-bold);
    text-transform: uppercase;
    letter-spacing: var(--ls-label);
}

.post-header__category {
    color: var(--primary);
}

.post-header__divider {
    color: var(--border);
}

.post-header__date {
    color: var(--text-muted);
}

.post-header__author {
    font-size: var(--size-body);
    color: var(--text-muted);
}

.post-featured-image {
    margin-bottom: 4rem;
}

.post-featured-image__wrap {
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 21/9;
    box-shadow: 0 15px 45px rgba(0,0,0,0.1);
}

.post-featured-image__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-main-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 4rem;
    align-items: start;
}

.post-sidebar {
    position: sticky;
    top: 120px;
}

.post-sidebar__label {
    font-size: 0.7rem;
    font-weight: var(--weight-extrabold);
    text-transform: uppercase;
    color: var(--text-muted);
    display: block;
    margin-bottom: 1rem;
    letter-spacing: var(--ls-label);
}

.post-sidebar__next {
    margin: 2.5rem 0;
    border-top: 1px solid var(--border);
    padding-top: 2.5rem;
}

.post-sidebar__next-img {
    width: 100%;
    aspect-ratio: 2/1;
    object-fit: cover;
    margin-bottom: 0.75rem;
    border-radius: var(--radius);
}

.post-sidebar__next-title {
    font-size: 0.95rem;
    color: var(--text-main);
    line-height: 1.4;
    transition: 0.2s;
}

/* Post Draft Alert */
.post-draft-alert {
    background: #f59e0b;
    color: #fff;
    text-align: center;
    padding: 10px;
    font-size: 12px;
    font-weight: var(--weight-bold);
    position: sticky;
    top: 0;
    z-index: 10001;
    text-transform: none;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.post-draft-alert a {
    color: #fff;
    text-decoration: none !important;
    margin-left: 15px;
}

/* Related Posts Section */
.post-related {
    background: var(--bg-card);
    padding: 6rem 0;
    border-top: 1px solid var(--border);
    margin: 0;
}

.post-related__title {
    text-align: center;
    margin-bottom: 4rem;
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-family: var(--font-primary);
    text-transform: none;
    letter-spacing: var(--ls-label);
    font-weight: var(--weight-extrabold);
}

.post-related__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
}

.post-related__card {
    text-decoration: none !important;
    color: inherit;
}

.post-related__img-wrap {
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 16/9;
}

.post-related__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.post-related__card:hover .post-related__img-wrap img {
    transform: scale(1.08);
}

.post-related__content {
    padding-top: 1.5rem;
}

.post-related__category {
    font-size: 0.7rem;
    color: var(--primary);
    font-weight: var(--weight-extrabold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.post-related__post-title {
    font-size: 1.25rem;
    line-height: 1.4;
    margin: 0.5rem 0;
    font-weight: var(--weight-bold);
    font-family: var(--font-primary);
    transition: color 0.2s;
}

.post-related__card:hover .post-related__post-title {
    color: var(--primary);
}

/* Post Navigation Footer */
.post-navigation-footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 2rem 0;
    gap: 2rem;
    margin-top: 6rem;
}

/* Header Layouts */
.h1-body { 
    border-bottom: 1px solid var(--border); 
    width: 100%; 
    transition: all 0.3s ease;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.h1-body .mobile-trigger { background: transparent; border: none; cursor: pointer; font-size: 1.5rem; display: none; }
.h1-body .h1-logo { display: flex; align-items: center; color: inherit; text-decoration: none !important; }
.h1-body .h1-logo__img { display: block; }
.h1-body .h1-logo-icon { width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; margin-right: 10px; font-size: 1.2rem; }
.h1-body .h1-nav-wrapper { display: flex; align-items: center; height: 100%; }
.h1-body .h1-col-right { display: flex; align-items: center; }

.h1-container { display: flex; align-items: center; justify-content: space-between; padding: 0.75rem 1.25rem; height: 70px; }

/* Header States */
.h1-body.is-transparent { border-bottom-color: transparent !important; background-color: transparent !important; backdrop-filter: none; -webkit-backdrop-filter: none; }
.h1-body.is-scrolled { box-shadow: var(--shadow-lg); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }

@media (min-width: 768px) { 
    .h1-container { height: 80px; padding: 0 1.5rem; } 
    .h1-nav-wrapper { margin-left: auto; margin-right: 3rem; } 
}

@media (max-width: 767px) {
    .h1-container { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; width: 100%; }
    .h1-body .mobile-trigger { display: flex !important; justify-self: start; }
    .h1-body .h1-logo { justify-self: center; }
    .h1-body .h1-col-right { justify-self: end; }
    .h1-body .h1-nav-wrapper { display: none !important; }
}

/* Footer Layouts */
.site-footer { 
    padding-top: 5rem; 
}
.site-footer a:not(.btn) { 
    text-decoration: none !important; 
    transition: 0.2s; 
    opacity: 0.8;
}

.footer-main { 
    display: grid; 
    gap: 4rem; 
    align-items: start; 
    padding-bottom: 5rem;
}

.footer-header {
    height: 40px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.footer-logo__img { height: 40px; display: block; }

.footer-bio, .footer-custom-text, .footer-newsletter-text {
    font-size: var(--font-base);
    line-height: 1.7;
    opacity: 0.8;
}

.footer-address-list, .footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    font-size: var(--font-base);
    opacity: 0.8;
}

.footer-address-list { gap: 0.5rem; margin-bottom: 1.5rem; }
.footer-contact-list { gap: 0.75rem; align-items: flex-start; }

.footer-contact-list li { display: flex; align-items: center; gap: 8px; }
.footer-contact-list i { width: 14px; opacity: 0.6; }

.footer-newsletter-form { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-newsletter-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.1);
    font-size: var(--font-base);
}

.footer-bottom {
    padding: 2rem 0;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.footer-bottom-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.social-link {
    opacity: 0.6;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-link i {
    width: 22px;
    height: 22px;
    font-size: 22px;
}

.social-link:hover {
    opacity: 1 !important;
    transform: translateY(-3px);
}

/* Ajustes de Responsividade para o Grid */
@media (max-width: 1024px) {
    .footer-main { 
        grid-template-columns: 1fr 1fr !important; 
        gap: 3rem 2rem;
    }
}

@media (max-width: 768px) {
    .footer-main { 
        grid-template-columns: 1fr !important; 
        gap: 2.5rem;
        text-align: center;
    }
    .footer-col { 
        text-align: center; 
        width: 100%;
    }
    .footer-header { justify-content: center; height: auto; }
    .footer-address-list, .footer-contact-list { 
        align-items: center; 
        justify-content: center;
    }
    .footer-bottom-container { 
        justify-content: center; 
        text-align: center; 
    }
}

/* LGPD / Privacy Message */
#spm-close-toggle:checked ~ #sys-p-msg { display: none !important; }

.spm-wrapper { 
    position: fixed !important; 
    bottom: 0 !important; 
    left: 0 !important; 
    right: 0 !important; 
    background: var(--bg-card) !important; 
    border-top: 1px solid var(--border) !important; 
    padding: 1.5rem 0 !important; 
    z-index: 9999999 !important;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.1) !important;
    display: block;
    visibility: visible;
    opacity: 1;
}
.spm-flex { display: flex !important; align-items: center !important; justify-content: space-between !important; gap: 2rem !important; }
.spm-text { font-size: 0.9rem !important; color: var(--text-main) !important; line-height: 1.4 !important; }
.spm-link { color: var(--primary) !important; font-weight: bold !important; text-decoration: none !important; }
.spm-btn { display: inline-flex !important; align-items: center !important; white-space: nowrap !important; padding: 0.5rem 1.5rem !important; cursor: pointer !important; }

@media (max-width: 768px) {
    .spm-flex { flex-direction: column !important; text-align: center !important; gap: 1rem !important; }
}

/* Blog Listing */
.blog-listing { padding: var(--space-xl) 0; }

.post-grid { 
    display: grid; 
    gap: var(--space-lg); 
}

.post-card { 
    background: var(--bg-card); 
    border: 1px solid var(--border); 
    border-radius: var(--radius); 
    overflow: hidden; 
    display: flex; 
    flex-direction: column;
    transition: transform 0.3s ease;
}
.post-card:hover { transform: translateY(-5px); }

.post-meta { 
    padding: var(--space-sm) var(--space-md); 
    display: flex; 
    justify-content: space-between; 
    font-size: 0.75rem; 
    color: var(--text-muted); 
    background: rgba(0,0,0,0.02);
    border-bottom: 1px solid var(--border);
}
.post-category { font-weight: 700; color: var(--primary); text-transform: none; }

.post-thumb { display: block; aspect-ratio: 16/9; overflow: hidden; background: #eee; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.post-card:hover .post-thumb img { transform: scale(1.05); }

.post-content { padding: var(--space-md); flex: 1; display: flex; flex-direction: column; }
.post-title { font-size: 1.25rem; margin-bottom: var(--space-xs); line-height: 1.2; font-family: var(--font-primary); font-weight: var(--weight-bold); }
.post-title a { color: var(--text-main); text-decoration: none !important; }
.post-title a:hover { color: var(--primary); text-decoration: none !important; }

.post-excerpt { 
    font-size: 0.9375rem; 
    color: var(--text-muted); 
    margin-bottom: var(--space-md); 
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.read-more { 
    font-weight: 600; 
    font-size: 0.875rem; 
    color: var(--primary); 
    text-decoration: none !important; 
    display: inline-flex; 
    align-items: center; 
}
.read-more:after { content: ' →'; margin-left: 4px; transition: margin 0.2s; }
.read-more:hover:after { margin-left: 8px; }

.pagination { 
    margin-top: var(--space-xl); 
    display: flex; 
    justify-content: center; 
    gap: 0.5rem; 
}
.page-link { 
    width: 40px; height: 40px; 
    display: flex; align-items: center; justify-content: center; 
    border: 1px solid var(--border); border-radius: var(--radius); 
    text-decoration: none !important; color: var(--text-main); font-weight: 600;
    transition: 0.2s;
}
.page-link:hover { border-color: var(--primary); color: var(--primary); text-decoration: none !important; }
.page-link.active { background: var(--primary); color: white; border-color: var(--primary); }

.no-posts { text-align: center; padding: var(--space-xl); color: var(--text-muted); grid-column: 1/-1; }

@media (max-width: 768px) {
    .post-grid { grid-template-columns: 1fr !important; }
}

/* ============================================================
   PAGE / BLOG HERO — padrão unificado (ph-hero)
   Usado em: page.php, blog.php
   ============================================================ */

.ph-hero {
    position: relative;
    background-color: var(--bg-card);
    border-bottom: 3px solid var(--primary);
    overflow: hidden;
}

/* --- COM imagem de fundo --- */
.ph-hero--has-img {
    background-size: cover;
    background-position: center;
    padding: 5rem 0 4rem;
}

.ph-hero--has-img::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(0,0,0,0.78) 0%,
        rgba(0,0,0,0.45) 55%,
        rgba(0,0,0,0.15) 100%
    );
    z-index: 0;
}

/* --- SEM imagem: compacto, limpo --- */
.ph-hero--no-img {
    padding: 2.5rem 0 2rem;
}

/* Inner */
.ph-hero__inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 820px;
}

/* Título */
.ph-hero__title {
    font-family: var(--font-primary);
    font-weight: var(--weight-black);
    line-height: var(--lh-display);
    letter-spacing: var(--ls-display);
    margin: 0;
}

.ph-hero--has-img .ph-hero__title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: #fff;
    text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

.ph-hero--no-img .ph-hero__title {
    font-size: clamp(1.75rem, 4vw, 3rem);
    color: var(--primary);
}

/* Intro */
.ph-hero__intro {
    font-size: var(--size-body);
    line-height: var(--lh-body);
    margin: 0.25rem 0 0;
    max-width: 600px;
}

.ph-hero--has-img .ph-hero__intro {
    color: rgba(255,255,255,0.85);
    text-shadow: 0 1px 6px rgba(0,0,0,0.3);
}

.ph-hero--no-img .ph-hero__intro {
    color: var(--text-muted);
}

/* Mobile */
@media (max-width: 768px) {
    .ph-hero--has-img { padding: 3.5rem 0 3rem; }
    .ph-hero--no-img  { padding: 1.75rem 0 1.5rem; }
}

/* ============================================================
   PAGE CONTENT
   ============================================================ */
.ph-content {
    padding-top: 0;
    padding-bottom: 0;
}

.ph-content > .prose > p:first-child,
.ph-content > .prose > h1:first-child,
.ph-content > .prose > h2:first-child,
.ph-content > .prose > h3:first-child,
.ph-content > .prose > ul:first-child,
.ph-content > .prose > ol:first-child {
    margin-top: 3.5rem;
}

.ph-content > .prose > p:last-child,
.ph-content > .prose > h1:last-child,
.ph-content > .prose > h2:last-child,
.ph-content > .prose > h3:last-child,
.ph-content > .prose > ul:last-child,
.ph-content > .prose > ol:last-child {
    margin-bottom: 5rem;
}

@media (max-width: 768px) {
    .ph-content > .prose > p:first-child,
    .ph-content > .prose > h1:first-child,
    .ph-content > .prose > h2:first-child,
    .ph-content > .prose > h3:first-child,
    .ph-content > .prose > ul:first-child,
    .ph-content > .prose > ol:first-child  { margin-top: 2rem; }

    .ph-content > .prose > p:last-child,
    .ph-content > .prose > h1:last-child,
    .ph-content > .prose > h2:last-child,
    .ph-content > .prose > h3:last-child,
    .ph-content > .prose > ul:last-child,
    .ph-content > .prose > ol:last-child   { margin-bottom: 3.5rem; }
}

/* Collection Item Page */
.collection-item-page .breadcrumb a { color: inherit; opacity: 0.6; text-decoration: none !important; }
.collection-item-page .breadcrumb a:hover { opacity: 1; color: var(--primary); text-decoration: none !important; }

.highlights-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
}

.highlights-box h4 {
    color: var(--text-main);
    border-bottom: 2px solid var(--primary-soft);
    padding-bottom: 1rem;
}

.highlights-box ul li i {
    color: var(--primary);
    font-size: 1.1rem;
}

/* FAQ Details Accordion */
.faq-box details {
    margin-bottom: 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-card);
    transition: all 0.3s ease;
}

.faq-box details[open] {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.faq-box summary {
    padding: 1.25rem;
    list-style: none;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-box summary::-webkit-details-marker { display: none; }

.faq-box .faq-content {
    padding: 0 1.25rem 1.25rem;
    opacity: 0.8;
    line-height: 1.6;
}

/* CTA Sidebar */
.cta-sidebar {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cta-sidebar h4 {
    font-family: var(--font-primary);
    font-size: 1.125rem;
    font-weight: 800;
    margin: 0;
    color: var(--text-main);
}

.cta-sidebar .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
}

/* Related Items */
.related-items {
    background: rgba(0,0,0,0.02);
    border-top: 1px solid var(--border);
}

/* Page Hero Fixed (New PDP Layout) */
.page-hero-fixed {
    position: relative;
    height: 400px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

.page-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.6));
    z-index: 1;
}

.page-hero-content {
    position: relative;
    z-index: 2;
}

/* Sidebar Sticky Logic */
.collection-sidebar {
    height: 100%;
}

.sticky-sidebar {
    position: sticky;
    top: 120px;
}

@media (max-width: 1024px) {
    .collection-sidebar { display: none; }
}

@media (max-width: 768px) {
    .page-hero-fixed { height: 300px; }
    .sticky-sidebar { position: static; }
}

/* --- TEMPLATES DE LISTAGEM (PLP) --- */

/* 1. Masonry (Portfólio) */
.collection-listing { display: flow-root; }

.masonry-grid {
    display: block;
    column-count: 3;
    column-gap: 1.5rem;
    column-fill: auto;
    width: 100%;
}
.masonry-item {
    display: inline-block;
    width: 100%;
    break-inside: avoid;
    margin-bottom: 1.5rem;
}
.masonry-item .post-thumb { aspect-ratio: auto; }

/* 2. List Rows (Banner Full-Bleed Accordion Flat) */
.rows-listing-full {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 0;
    padding: 0;
}

.row-item-full-bleed {
    position: relative;
    display: block;
    width: 100%;
    height: 150px;
    overflow: hidden;
    text-decoration: none !important;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: width 0.4s ease, height 0.4s ease;
    will-change: height;
}

.row-item-full-bleed:hover {
    height: 300px;
}

.row-item-full-bleed .row-item-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.row-item-full-bleed .row-item-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    filter: grayscale(100%);
    transition: opacity 0.4s ease;
}

.row-item-full-bleed:hover .row-item-bg img {
    opacity: 0.5;
    filter: grayscale(0%);
}

.row-item-full-bleed .row-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    z-index: 2;
    transition: background 0.4s ease;
}

.row-item-full-bleed:hover .row-item-overlay {
    background: rgba(0,0,0,0.5);
}

.row-item-full-bleed .row-item-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 2rem;
    text-align: center;
    color: #ffffff;
}

.row-item-full-bleed .row-item-title {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 700;
    text-transform: none;
    letter-spacing: var(--ls-display);
    margin: 0 !important;
    line-height: 1;
    color: #ffffff;
}

.row-item-full-bleed .row-item-desc {
    font-size: 1.1rem;
    max-width: 700px;
    opacity: 0;
    margin-top: 0;
    height: 0;
    overflow: hidden;
    transition: opacity 0.3s ease, margin 0.4s ease;
}

.row-item-full-bleed:hover .row-item-desc {
    opacity: 0.8;
    height: auto;
    margin-top: 15px;
}

.row-item-full-bleed {
    position: relative;
    display: block;
    width: 100%;
    height: 150px;
    overflow: hidden;
    background: #000;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: height 0.4s ease;
    cursor: pointer;
}

.row-item-full-bleed:hover,
.row-item-full-bleed.active {
    height: 380px;
}

.row-item-details {
    height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.row-item-full-bleed:hover .row-item-details,
.row-item-full-bleed.active .row-item-details {
    height: auto;
    opacity: 1;
    margin-top: 25px;
}

.row-item-actions {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
}

.row-item-link {
    display: inline-flex;
    align-items: center;
    color: #ffffff;
    text-transform: none;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-decoration: none !important;
    padding: 0.6rem 1.75rem;
    border: 1px solid rgba(255,255,255,0.4);
    transition: all 0.3s ease;
}

.row-item-link:hover {
    background: #ffffff;
    color: #000000;
    border-color: #ffffff;
    text-decoration: none !important;
}

@media (max-width: 768px) {
    .row-item-full-bleed { height: 100px; }
    .row-item-full-bleed.active { height: 320px; }
    .row-item-title { font-size: 1.35rem !important; }
}


/* --- TEMPLATES DE DETALHE (PDP) --- */

/* 1. E-commerce Detail */
.product-top-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

@media (max-width: 768px) {
  .product-top-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.product-media-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: sticky;
  top: 100px;
}

.product-media-container {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: zoom-in;
}

.product-gallery-main {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.15s ease;
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  background: rgba(255,255,255,0.9);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.gallery-arrow:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.gallery-arrow--prev { left: 12px; }
.gallery-arrow--next { right: 12px; }

#prod-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

#prod-thumbs .thumb-item {
  width: 80px;
  height: 80px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s;
  opacity: 0.5;
  flex-shrink: 0;
}

#prod-thumbs .thumb-item:hover,
#prod-thumbs .thumb-item.active {
  opacity: 1;
  border-color: var(--accent);
}

#prod-thumbs .thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info-box {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-top: 0.5rem;
}

.product-info-box h1 {
  font-family: var(--font-primary);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 900;
  line-height: 1.15;
  margin: 0;
  color: var(--text-main);
}

.product-info-box > p {
  font-size: 1.0625rem;
  color: var(--text-main);
  opacity: 0.65;
  line-height: 1.6;
  margin: 0;
}

.product-info-box .bg-primary-soft {
  background: var(--primary-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-top: auto;
}

.nav-mini {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none !important;
  color: var(--text-main);
  transition: opacity 0.2s;
  max-width: 240px;
}

.nav-mini:hover { opacity: 0.7; text-decoration: none !important; }

.nav-mini__img {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--border);
}

.nav-mini__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav-mini__content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-mini__label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0.08em;
  opacity: 0.4;
}

.nav-mini__title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-mini-card {
  display: block;
  text-decoration: none !important;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  transition: all 0.2s;
}

.related-mini-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  text-decoration: none !important;
}

.related-mini-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.related-mini-card h4 {
  font-family: var(--font-primary);
  font-size: 0.9rem;
  font-weight: 700;
  margin: 0;
  padding: 0.875rem 1rem;
  color: var(--text-main);
}

/* Prose (conteúdo rico) */
.prose {
  color: var(--text-main);
  line-height: 1.8;
  font-size: 1rem;
}

.prose h2, .prose h3, .prose h4 {
  font-family: var(--font-primary);
  font-weight: 800;
  color: var(--text-main);
  margin: 2rem 0 0.75rem;
}

.prose p { margin-bottom: 1.25rem; }
.prose a { color: var(--accent); text-decoration: none !important; }
.prose a:hover { text-decoration: underline !important; } /* Apenas links no texto corrido ganham underline no hover */
.prose ul, .prose ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.prose li { margin-bottom: 0.5rem; }
.prose img { max-width: 100%; border-radius: var(--radius); }

/* FAQ (details/summary) */
details.group summary::-webkit-details-marker { display: none; }

details.group[open] summary .ph-caret-down {
  transform: rotate(180deg);
}

details.group .ph-caret-down {
  transition: transform 0.2s;
  flex-shrink: 0;
}

/* Lightbox Avançado */
.gallery-lightbox { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.95); z-index: 100000; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: 0.3s; padding: 40px; }
.gallery-lightbox.active { opacity: 1; visibility: visible; }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.1); border: none; color: #fff; width: 60px; height: 60px; border-radius: 50%; font-size: 1.5rem; cursor: pointer; transition: all 0.2s; z-index: 10; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(5px); }
.lightbox-nav:hover { background: rgba(255,255,255,0.2); transform: translateY(-50%) scale(1.1); }
.lightbox-nav.prev { left: 30px; }
.lightbox-nav.next { right: 30px; }
.lightbox-close { position: absolute; top: 30px; right: 30px; color: #fff; width: 50px; height: 50px; border-radius: 50%; background: rgba(255,255,255,0.1); border: none; cursor: pointer; z-index: 20; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(5px); transition: all 0.2s; }
.lightbox-close:hover { background: rgba(255,255,255,0.2); transform: rotate(90deg); }
.lightbox-content { position: relative; max-width: 90%; width: auto; text-align: center; display: flex; flex-direction: column; align-items: center; }
.lightbox-content img { max-width: 100%; max-height: 65vh; border-radius: 4px; box-shadow: 0 0 50px rgba(0,0,0,0.5); object-fit: contain; }
.lightbox-caption { font-family: var(--font-secondary); color: #fff; margin-top: 20px; font-weight: 600; font-size: var(--font-md); max-width: 600px; line-height: 1.4; }
.lightbox-counter { font-family: var(--font-primary); margin-bottom: 15px; color: #fff; opacity: 0.6; font-size: var(--font-xs); font-weight: 700; letter-spacing: 1px; }

/* Animações de Entrada (Reveal on Scroll) */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transition-property: opacity, transform;
    will-change: opacity, transform;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
    .reveal {
        transition: none;
        opacity: 1;
        transform: none;
    }
}
 
 