/* ================================================================= 
   DETALHES DA PELAGEM (EDITORIAL / BLOG STYLE)
   ================================================================= */

/* 1. LAYOUT RESET */
body {
    display: block !important; 
    padding: 0 !important;
    background: var(--bg);
    min-height: 100vh;
    font-family: 'Merriweather', serif;
    line-height: 1.8;
}

.container { 
    max-width: 900px; 
    margin: 0 auto; 
    padding: 0 20px; 
    position: relative; 
    z-index: 2; 
}

/* 2. HERO SECTION */
.hero-section {
    position: relative;
    height: 850px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    margin-bottom: 50px;
    background: transparent;
}

.hero-bg-center {
    position: absolute; 
    top: 0; left: 0;
    width: 100%; height: 75%;
    background-size: cover; 
    background-position: center top;
    z-index: 1;
    -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
    transition: opacity 0.2s;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(21,16,12,0.8) 70%, rgba(21,16,12,1) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
    text-align: center;
    padding-bottom: 20px;
   }

.blog-tag {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 10px;
    display: block;
}

.logo-hero {
    height: 56px;
    margin-bottom: 20px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

.hero-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 5px;
    font-weight: 700;
}

.hero-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 42px;
    line-height: 1.1;
    font-weight: 900;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 0 4px 15px rgba(0,0,0,0.8);
    margin: 0 20px;
}

/* ================================================================= 
   BOT?O VOLTAR - ABSOLUTO (Rola junto com o Hero)
   ================================================================= */

.btn-back {
    /* 1. POSICIONAMENTO ABSOLUTO */
    /* Ele fica preso dentro da .hero-section e rola com a p?gina */
    position: absolute !important; 
    z-index: 100 !important; /* Acima da imagem e do overlay */
    
    /* 2. LOCALIZA??O (Abaixo do Menu) */
    /* Menu est? no top:25px + 48px altura + margem = ~90px */
    top: 75px !important; 
    left: 19px !important; 
    right: auto !important; 

    /* 3. FORMA PERFEITA (Trava para n?o ficar oval) */
    width: 45px !important;
    height: 45px !important;
    min-width: 45px !important;  
    min-height: 45px !important; 
    border-radius: 50% !important;
    flex-shrink: 0; /* Impede que o flexbox esmague o bot?o */
    
    /* 4. ESTILO VISUAL */
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all 0.3s ease;
    text-decoration: none;
    backdrop-filter: blur(4px);
}

.btn-back:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: #15100c;
    transform: scale(1.1);
}

.btn-back svg { 
    width: 22px; 
    height: 22px; 
    fill: currentColor; 
}

/* AJUSTES RESPONSIVOS (MOBILE) */
@media(max-width: 480px) {
    .btn-back {
        /* Ajuste fino para mobile */
        top: 80px !important; 
        left: 20px !important;
        
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        min-height: 40px !important;
    }
}

/* 3. CONTE?DO GEN?TICO (BOXES) */
.gene-box-destaque {
    text-align: center;
    background: rgba(30, 24, 20, 0.8);
    border: 1px solid var(--gold);
    padding: 30px;
    border-radius: 16px;
    margin: 40px 0 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
}

.gene-label {
    display: block;
    font-family: 'Montserrat';
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #aaa;
    margin-bottom: 10px;
}

.gene-formula {
    font-family: 'Montserrat';
    font-size: 28px;
    font-weight: 800;
    color: var(--gold);
    letter-spacing: 1px;
}

/* Varia??es */
.genotype-list { text-align: center; margin-bottom: 50px; }
.genotype-title {
    display: block;
    font-family: 'Montserrat';
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #777;
    margin-bottom: 12px;
    font-weight: 700;
}
.genotype-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #332b26;
    color: #ccc;
    padding: 8px 14px;
    margin: 4px;
    border-radius: 8px;
    font-family: 'Montserrat';
    font-size: 13px;
    font-weight: 600;
    transition: 0.2s;
}
.genotype-badge:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(212, 175, 55, 0.05);
    transform: translateY(-2px);
}

/* 4. BOX DE ORIGEM */
.origin-box {
    background: #191410;
    border-left: 4px solid var(--gold);
    padding: 25px 30px;
    border-radius: 8px;
    margin: 40px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.origin-title {
    font-family: 'Montserrat';
    font-size: 18px;
    font-weight: 800;
    color: var(--gold);
    margin-bottom: 15px;
    text-transform: uppercase;
}
.origin-list { margin: 0; padding-left: 20px; }
.origin-list li { margin-bottom: 10px; color: #ddd; font-size: 16px; }
.origin-list strong { color: #fff; font-weight: 700; }

/* 5. TIPOGRAFIA */
article p {
    margin-bottom: 30px;
    color: #ccc;
    font-weight: 300;
    font-size: 18px;
    line-height: 1.8;
}
article strong { color: #fff; font-weight: 700; }

article h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: #f3e5ab;
    margin: 60px 0 30px;
    border-left: 5px solid var(--gold);
    padding-left: 20px;
    line-height: 1.2;
}

/* Gloss?rio */
.glossary-box {
    background: rgba(255,255,255,0.03);
    padding: 35px;
    border-radius: 12px;
    border-left: 4px solid #555;
    margin: 40px 0;
    font-size: 1rem;
}
.glossary-box li { margin-bottom: 15px; }

/* 6. CTAS E RODAP? */
.cta-wrapper { margin: 80px 0 50px; text-align: center; }

.btn-main {
    display: inline-block;
    background: var(--gold);
    color: #15100c;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    padding: 20px 45px;
    border-radius: 50px;
    border: none;
    font-size: 16px;
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.3);
    margin-top: 25px;
    text-decoration: none;
    transition: all 0.3s;
}
.btn-main:hover {
    transform: translateY(-3px);
    background: #e0d4be;
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.4);
}

.sticky-cta-wrapper {
    position: fixed;
    bottom: 0; left: 0; width: 100%;
    display: flex; justify-content: center;
    pointer-events: none;
    z-index: 999;
    background: rgba(37, 21, 8, 0.95);
    backdrop-filter: blur(5px);
    padding: 20px;
    opacity: 0;
    transition: opacity 0.4s ease;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.sticky-cta-wrapper.visible { opacity: 1; pointer-events: auto; }

.btn-gold {
    pointer-events: auto;
    background: #cba363;
    color: #241b14;
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 30px;
    border-radius: 20px;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: transform 0.2s, background 0.2s;
    border: 2px solid rgba(255,255,255,0.2);
    text-align: center;
    width: 100%;
}
.btn-gold:hover {
    transform: translateY(-3px) scale(1.05);
    background: #deb97b;
}
.subtitulo_botao { font-size: 10px; font-weight: 600; opacity: 0.8; display: block; margin-bottom: 2px;}

.insta-box { text-align: center; margin: 40px 0 10px; }
.insta-link {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 18px;
    border-radius: 30px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    text-decoration: none;
    font-family: 'Montserrat';
    font-size: 14px;
    transition: 0.2s ease;
}
.insta-link:hover { background: rgba(255,255,255,0.15); }
.insta-ico { height: 22px; }

@media(max-width: 768px) {
    .hero-section { height: 520px;}
    .hero-title { font-size: 32px; }
    .gene-box-destaque { padding: 20px; }
    .gene-formula { font-size: 22px; }
    article p { font-size: 16px; }
}
