/* ==========================================================================
   EDITORA SEJA LUZ - MASTER STYLESHEET (FINAL VERSION)
   ==========================================================================
   1. Variáveis & Configurações (:root)
   2. Reset & Tipografia Base
   3. Header & Navegação
   4. Hero Section (Parallax & Premium CTA)
   5. Componentes Globais
   6. Seções (Sobre, Livros, Autores)
   7. Formulário de Contato
   8. Rodapé
   9. Responsividade (Mobile)
   ========================================================================== */

/* 1. VARIÁVEIS & CONFIGURAÇÕES
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Lato:wght@300;400;700;900&display=swap');

:root {
    /* Paleta de Cores */
    --color-gold: #c29128;
    --color-gold-hover: #c29128;
    --color-dark: #111111;
    --color-text: #444444;
    --color-light: #ffffff;
    --color-bg-offwhite: #f9f8f4;
    
    /* Tipografia */
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Lato', sans-serif;
    
    /* Layout */
    --max-width: 1200px;
    
    /* Transições */
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

html { scroll-behavior: smooth; }

body {
    margin: 0; padding: 0;
    font-family: var(--font-sans);
    color: var(--color-dark);
    background-color: var(--color-bg-offwhite);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* 2. RESET & UTILITÁRIOS
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition-smooth); }
ul { list-style: none; padding: 0; margin: 0; }

/* 3. HEADER & NAVEGAÇÃO
   ========================================================================== */
#main-header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    z-index: 1000;
    transition: background-color 0.5s cubic-bezier(0.25, 0.8, 0.25, 1),
                padding 0.5s cubic-bezier(0.25, 0.8, 0.25, 1),
                box-shadow 0.5s ease;
    padding: 25px 0; 
}

.header-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* O Logo (Flutuante & Gigante) */
.logo-container {
    position: absolute;
    left: 50%;
    z-index: 10;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.brand-logo { display: block; line-height: 0; }

.logo-img {
    display: block;
    width: auto;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
}

/* Estado 1: Transparente (Topo) */
.header-transparent { background-color: transparent; box-shadow: none; }

.header-transparent .logo-container {
    top: 0; 
    transform: translateX(-50%);
    padding-top: 15px; 
}

.header-transparent .logo-img {
    height: 260px; /* Tamanho Gigante */
    filter: brightness(0) invert(1);
    opacity: 1;
}

/* Estado 2: Scrolled (Barra Fina) */
.header-scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    padding: 8px 0; 
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    backdrop-filter: blur(10px);
}

.header-scrolled .logo-container {
    top: 50%; 
    transform: translate(-50%, -50%);
    padding-top: 0;
}

.header-scrolled .logo-img {
    height: 65px; 
    filter: none; 
}

/* Links e Cores */
.header-transparent .main-nav a { color: rgba(255, 255, 255, 0.95); text-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.header-transparent .btn-nav-highlight { border-color: rgba(255, 255, 255, 0.6); color: #fff; }

.header-scrolled .main-nav a { color: var(--color-dark); text-shadow: none; }
.header-scrolled .btn-nav-highlight { border-color: var(--color-gold); color: var(--color-gold); }

/* Menu Desktop */
.main-nav ul { display: flex; gap: 30px; margin: 0; padding: 0; }

.main-nav a {
    position: relative;
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.main-nav a::after {
    content: ''; position: absolute; left: 0; bottom: -25px;
    width: 120%; left: -10%; height: 2px;
    background-color: var(--color-gold);
    opacity: 0; transition: opacity 0.3s ease; pointer-events: none;
}
.main-nav a:hover, .main-nav a.active { color: var(--color-gold); }
.main-nav a:hover::after, .main-nav a.active::after { opacity: 1; }

/* Botão Contato */
.btn-nav-highlight {
    border: 1px solid; padding: 8px 25px; border-radius: 2px;
    font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
    transition: all 0.3s ease;
}
.btn-nav-highlight:hover { background: var(--color-gold); border-color: var(--color-gold) !important; color: #fff !important; }

/* Mobile Toggle (Base) */
.mobile-toggle { display: none; font-size: 1.5rem; color: #fff; cursor: pointer; }
.header-scrolled .mobile-toggle { color: var(--color-dark); }

/* =========================================
   MASTER DESIGNER FIX: HEADER INTERNO
   ========================================= */

/* Quando o header é transparente MAS estamos numa página interna:
   1. O logo deve ser pequeno (não gigante).
   2. Deve manter-se branco (para contraste com a foto de fundo).
   3. Deve estar centrado verticalmente na barra.
*/
.header-transparent.header-internal .logo-container {
    top: 50% !important;              /* Centra verticalmente na barra */
    transform: translate(-50%, -50%) !important; /* Ajuste fino do centro */
    padding-top: 0 !important;        /* Remove o padding gigante da Home */
}

.header-transparent.header-internal .logo-img {
    height: 85px !important;          /* Tamanho elegante (nem gigante, nem minúsculo) */
    filter: brightness(0) invert(1);  /* Mantém o logo BRANCO puro */
    opacity: 1;
}

/* Ajuste Responsivo para Mobile nas páginas internas */
@media (max-width: 991px) {
    .header-transparent.header-internal .logo-container {
        top: 0 !important;
        transform: none !important;
        padding-top: 15px !important;
        left: 0; 
        right: 0;
        margin: auto;
    }
    
    .header-transparent.header-internal .logo-img {
        height: 60px !important; /* Ainda mais discreto no mobile */
    }
}

/* 4. HERO SECTION (PARALLAX FIXO)
   ========================================================================== */
.hero {
    position: relative; width: 100%;
    background-image: url('../img/livro.webp') !important;
    background-attachment: scroll;
    background-position: center top;
    background-size: cover;
    background-repeat: no-repeat;
}

.hero::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.2); z-index: 1;
}

.hero-spacer { height: 100vh; display: block; }

.hero-content-wrapper {
    min-height: 80vh; display: flex; align-items: center; 
    
    /* ALINHAMENTO GERAL DO BLOCO (ESQUERDA) */
    justify-content: flex-start; 
    padding-left: 10%; /* Margem lateral elegante */
    padding-bottom: 40px; /* Respiro inferior para evitar cortes */
    
    position: relative; z-index: 2;
}

.hero-text-box {
    text-align: left; /* Títulos à esquerda */
    color: #fff; 
    padding: 0; 
    margin: 0;
    max-width: 850px; /* Grande o suficiente para a linha de estatísticas inteira */
}

/* Título */
.hero-text-box h1 {
    font-family: var(--font-serif); font-size: 4rem;
    line-height: 1.1; margin: 20px 0;
}

/* Subtítulo Pequeno */
.hero-text-box span {
    text-transform: uppercase; letter-spacing: 4px; font-size: 0.9rem;
    color: var(--color-gold); font-weight: 700;
}

/* PARÁGRAFO: Estilo Editorial Justificado */
.hero-text-box p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 30px;
    opacity: 0.9;
    
    /* Geometria Perfeita */
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
    
    /* Restrição de largura SÓ para o texto */
    max-width: 580px; 
}

/* =========================================
   NOVO BLOCO DE CONVERSÃO
   ========================================= */

.hero-conversion-wrapper {
    margin-top: 45px;
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Alinha tudo à esquerda (botões e linhas) */
    width: 100%;
}

/* --- Linha 1: Botão e Link --- */
.hero-cta-row {
    display: flex;
    align-items: center;
    gap: 35px;
    margin-bottom: 35px; /* Espaço até a linha divisória */
}

.btn-premium-gold {
    background-color: var(--color-gold);
    color: #fff;
    padding: 16px 38px;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 0;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid var(--color-gold);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.link-how-it-works {
    color: rgba(255, 255, 255, 0.9);
    font-family: var(--font-sans);
    font-size: 1.1rem;
    font-weight: 500;
    text-decoration: none;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.link-how-it-works:hover { color: var(--color-gold); }
.link-how-it-works i { transition: transform 0.3s ease; }
.link-how-it-works:hover i { transform: translateX(5px); }

/* --- Linha Divisória Horizontal (Fade-Out) --- */
.hero-stats-separator {
    width: 100%;
    height: 1px;
    /* Gradiente que começa branco sólido na esquerda e some na direita */
    background: linear-gradient(
        90deg, 
        rgba(255, 255, 255, 0.4) 0%, 
        rgba(255, 255, 255, 0.1) 60%, 
        transparent 100%
    );
    margin-bottom: 22px;
    margin-left: 0;
}

/* --- Linha 2: Estatísticas (Prova Social) --- */
.hero-stats-row {
    display: flex;
    justify-content: flex-start; /* Alinhado ao início */
    align-items: center;
    gap: 25px;
    width: 100%;
    
    color: #ffffff;
    font-family: var(--font-sans);
    font-size: 0.95rem; 
    font-weight: 300; 
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    
    /* PREVENÇÃO DE QUEBRAS */
    white-space: nowrap; 
    flex-wrap: nowrap;
}

.hero-stats-row strong {
    font-weight: 900;
    color: #fff;
}

/* Barra Vertical Fina */
.stat-divider {
    display: block;
    width: 1px;
    height: 16px;
    background-color: rgba(255, 255, 255, 0.4);
    transform: translateY(1px);
}

/*  PHYSICS BOOK 
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Lato:wght@300;400;700;900&display=swap');

:root {
    /* Dimensões & Estrutura */
    --book-width: 480px;
    --book-height: 640px;
    
    /* Materiais & Cores */
    --paper-color: #fdfbf7; /* Pólen Suave */
    --paper-texture: url('https://www.transparenttextures.com/patterns/cream-paper.png');
    --gold-accent: #c29128;
    --text-color: #2c2c2c;
    
    /* Física do Papel (Inércia Realista) */
    --turn-duration: 1.5s;
    /* Curva "Slow-Start, Fast-Middle, Soft-Landing" para peso real */
    --turn-curve: cubic-bezier(0.645, 0.045, 0.355, 1); 
}

/* CENÁRIO (STAGE)
   ========================================= */
.book-experience-section {
    padding: 100px 0 140px;
    background-color: #f4f1ea;
    background-image: radial-gradient(circle at center, #fff 0%, #f4f1ea 70%);
    overflow: hidden;
    /* Perspetiva profunda (2500px) para evitar distorção excessiva em Desktop */
    perspective: 2500px; 
}

.virtual-book-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: var(--book-height);
    margin-top: 20px;
    /* Ângulo de leitura elegante */
    transform: rotateX(10deg) translateY(-10px);
    transform-style: preserve-3d;
    transition: transform 0.5s ease;
}

.virtual-book {
    position: relative;
    width: var(--book-width);
    height: var(--book-height);
    max-height: 90vh;
    transform-style: preserve-3d;
    /* Sombra de contacto suave (Ambient Occlusion) */
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.2);
}

/* Contra-capa (Base Fixa) */
.book-back-cover {
    position: absolute; inset: 0;
    background: #fff;
    border-radius: 2px 10px 10px 2px;
    z-index: 0;
    box-shadow: 
        inset 5px 0 10px rgba(0,0,0,0.05), /* Lombada interna */
        10px 10px 30px rgba(0,0,0,0.15);  /* Sombra externa */
}

/* =========================================
   PÁGINAS COM FÍSICA DE CURVATURA
   ========================================= */
.book-page {
    position: absolute; inset: 0;
    transform-origin: left center;
    transform-style: preserve-3d;
    transition: transform var(--turn-duration) var(--turn-curve);
    cursor: grab;
    z-index: 1;
}

.book-page:active { cursor: grabbing; }

/* CAMADA 1: O VERSO (COSTAS DA FOLHA)
   Quando a página vira, esta camada simula a curvatura convexa */
.book-page::after {
    content: '';
    position: absolute; inset: 0;
    background-color: var(--paper-color);
    background-image: var(--paper-texture);
    
    transform: rotateY(180deg);
    backface-visibility: hidden;
    
    border-radius: 2px 10px 10px 2px;
    z-index: 1;

    /* ILUSÃO DE CURVATURA NO VERSO 
       Um gradiente suave que sugere que a folha não é plana enquanto roda */
    background: 
        linear-gradient(to right, rgba(0,0,0,0.08) 0%, rgba(0,0,0,0) 20%), 
        var(--paper-texture);
}

/* CAMADA 2: A FRENTE (CONTEÚDO)
   Base sólida que esconde o verso */
.page-front {
    position: absolute; inset: 0;
    background-color: var(--paper-color);
    background-image: var(--paper-texture);
    backface-visibility: hidden;
    
    /* Layout */
    padding: 60px 45px;
    display: flex; flex-direction: column; justify-content: space-between;
    
    z-index: 2;
    border-radius: 2px 10px 10px 2px;
    
    /* Iluminação Estática (Sombra da Lombada) */
    box-shadow: inset 15px 0 25px -10px rgba(0,0,0,0.06);
}

.page-front::before {
    content: ''; 
    position: absolute; 
    inset: 0;
    
    /* GRADIENTE COMPLEXO (HIGHLIGHT + SHADOW)
       0% - 15%: Sombra escura (onde a folha sai da lombada)
       15% - 40%: Luz/Brilho (o topo da curva do papel)
       40% - 100%: Transparente
    */
    background: linear-gradient(
        to right, 
        rgba(0,0,0,0.25) 0%, 
        rgba(255,255,255,0.15) 25%, 
        rgba(0,0,0,0.05) 50%, 
        transparent 100%
    );
    
    opacity: 0;
    /* A transição sincronizada com a viragem */
    transition: opacity 0.5s ease-in-out; 
    pointer-events: none;
    z-index: 10;
    
    /* Mistura a sombra com a textura do papel para realismo */
    mix-blend-mode: multiply; 
}

/* Quando a página vira, a sombra aparece */
.book-page.flipped .page-front::before { opacity: 1; }

/* ESTADO: VIRADO */
.book-page.flipped {
    transform: rotateY(-180deg);
    pointer-events: none;
}

/* =========================================
   3. DESIGN DA CAPA 
   ========================================= */
/* Z-Index manual para as primeiras páginas */
.book-page[data-index="0"] { z-index: 10; }
.book-page[data-index="1"] { z-index: 9; }
.book-page[data-index="2"] { z-index: 8; }
.book-page[data-index="3"] { z-index: 7; }
.book-page[data-index="4"] { z-index: 6; }

.book-cover-design {
    display: flex; align-items: center; justify-content: center; padding: 30px;
}

.cover-border {
    width: 100%; height: 100%;
    border: 3px double var(--gold-accent); /* Borda dupla elegante */
    padding: 30px;
    display: flex; flex-direction: column; justify-content: space-between; align-items: center;
    text-align: center; position: relative;
}

.cover-subtitle { 
    font-family: 'Lato', sans-serif; 
    text-transform: uppercase; 
    letter-spacing: 4px; 
    font-size: 0.7rem; 
    color: #999; 
}

/* --- LOGO REFINADO (MAIOR E SEM FILTRO) --- */
.cover-logo { 
    width: 180px; 
    height: auto; 
    filter: none; 
    margin: 0 auto 15px auto; /* Adicionado 'auto' para centralizar */
    display: block; /* Garante que respeita as margens (já herdado do global, mas bom reforçar) */
}

.cover-title { 
    font-family: 'Playfair Display', serif; 
    font-size: 3.2rem; 
    line-height: 1; 
    color: var(--text-color); 
    margin: 0; 
    letter-spacing: -1px; 
}

.cover-ornament { 
    color: var(--gold-accent); 
    font-size: 0.8rem; 
    opacity: 0.6; 
    margin-top: 10px; 
}

/* --- FOOTER DA CAPA (BOTÃO NO TOPO) --- */
.cover-footer {
    display: flex;
    flex-direction: column; /* Empilha verticalmente */
    align-items: center;
    gap: 15px; /* Espaço entre botão e texto */
    width: 100%;
}

.publisher-mark { 
    font-family: 'Playfair Display', serif; 
    font-style: italic; 
    font-size: 0.9rem; 
    color: #666; 
    order: 2; /* Garante que fique em baixo */
}

.btn-open-book {
    order: 1; /* Garante que fique em cima */
    background: var(--text-color); 
    color: #fff; 
    border: none; 
    padding: 12px 30px;
    font-family: 'Lato', sans-serif; 
    font-size: 0.75rem; 
    text-transform: uppercase; 
    letter-spacing: 2px; 
    font-weight: 700;
    cursor: pointer; 
    transition: 0.3s;
}

.btn-open-book:hover { 
    background: var(--gold-accent); 
    transform: translateY(-2px); 
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* =========================================
   4. TIPOGRAFIA INTERNA
   ========================================= */
.chapter-number {
    display: block; text-align: center;
    font-family: 'Lato', sans-serif; font-size: 0.65rem; font-weight: 700;
    letter-spacing: 4px; text-transform: uppercase; color: #9c9486;
    margin-bottom: 25px;
}

.chapter-title {
    font-family: 'Playfair Display', serif; font-size: 2.4rem; color: var(--text-color);
    text-align: center; margin: 0 0 40px 0; line-height: 1.1;
}

.text-body {
    font-family: 'Georgia', serif; font-size: 1.1rem; line-height: 1.8;
    color: var(--text-color); text-align: justify; text-justify: inter-word;
    hyphens: auto;
}

.drop-cap {
    float: left; font-family: 'Playfair Display', serif; font-size: 3.8rem;
    line-height: 0.8; margin: 4px 12px 0 0; color: var(--gold-accent); font-style: italic;
}

.page-footer {
    display: flex; justify-content: space-between; align-items: center;
    padding-top: 20px; border-top: 1px solid rgba(0,0,0,0.06);
    font-size: 0.75rem; color: #999; font-family: 'Lato', sans-serif; margin-top: auto;
}

.nav-hint {
    background: none; border: none; cursor: pointer; color: var(--text-color);
    font-family: 'Lato', sans-serif; font-weight: 700; text-transform: uppercase;
    font-size: 0.7rem; letter-spacing: 1px; display: flex; align-items: center; gap: 8px;
    transition: color 0.3s ease;
}
.nav-hint:hover { color: var(--gold-accent); }

@media (max-width: 1024px) {
    :root {
        /* Largura quase total */
        --book-width: 94vw; 
        /* Altura agressiva: 80% da altura do ecrã */
        --book-height: 80vh; 
    }
    
    .book-experience-section { 
        /* Reduzir padding da secção para o livro caber sem scroll na página */
        padding: 20px 0 40px;
        perspective: 1500px !important; 
        overflow: hidden;
        perspective-origin: center center;
    }
    
    .virtual-book-wrapper {
        transform: none; 
        height: auto;
        display: flex;
        justify-content: center;
    }
    
    .virtual-book {
        margin: 0 auto;
        /* Força a altura definida no :root */
        height: var(--book-height);
        /* Garante um tamanho mínimo digno (550px) para não esmagar em ecrãs pequenos */
        min-height: 550px;
        /* Segurança para não ultrapassar o ecrã em paisagem */
        max-height: 70vh;
        
        box-shadow: 0 10px 30px rgba(0,0,0,0.2);
        transform-style: preserve-3d; /* Mantém as camadas 3D */
    }

    /* Ajuste da sombra interna (Shader) para ser mais subtil */
    .page-front::before {
        background: linear-gradient(
            to right, 
            rgba(0,0,0,0.15) 0%,   
            rgba(255,255,255,0.1) 10%, 
            rgba(0,0,0,0.02) 30%, 
            transparent 100%
        );
        pointer-events: none; /* Garante que não interfere com o toque */
    }
    
    .page-front { 
        /* UI: Padding reduzido. Ganhamos espaço para o texto. */
        padding: 20px 15px; 
        border: 1px solid #eaeaea;
        
        /* FLEXBOX: Organização vertical perfeita */
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
    
    /* Cabeçalho do Capítulo Compacto */
    .chapter-header {
        margin-bottom: 10px;
        flex-shrink: 0;
    }

    .chapter-number {
        margin-bottom: 10px;
        font-size: 0.6rem;
    }

    .chapter-title { 
        font-size: 1.5rem; 
        margin: 0 0 5px 0; 
        line-height: 1.1;
    }
    
    /* Logo na capa (ajuste proporcional) */
    .cover-logo { width: 120px; } 

    /* CORPO DO TEXTO (ÁREA DE LEITURA) */
    .text-body {
        font-size: 1.05rem;
        line-height: 1.5;
        
        /* Ocupa todo o espaço livre disponível */
        flex-grow: 1; 
        height: auto;
        max-height: none; /* Remove limites antigos */
        
        overflow-y: auto; 
        padding-right: 5px;
        margin-bottom: 10px;
        
        /* Configuração de toque e scroll */
        touch-action: pan-y;
        
        /* Gradiente de fade apenas nos últimos 5% */
        mask-image: linear-gradient(to bottom, black 95%, transparent 100%);
        -webkit-mask-image: linear-gradient(to bottom, black 95%, transparent 100%);
        
        /* Esconder scrollbar */
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    .text-body::-webkit-scrollbar { display: none; }

    /* Rodapé da Página Compacto */
    .page-footer {
        padding-top: 10px;
        border-top: 1px solid rgba(0,0,0,0.05);
        flex-shrink: 0; 
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .nav-hint {
        padding: 10px 14px;
        font-size: 0.75rem;
        background-color: #f7f7f7;
        border-radius: 4px;
        color: #333;
        font-weight: 700;
        border: 1px solid #ddd;
    }

    .book-page {
        transform-origin: center left;
    }
}

/* SECÇÃO DE DESTAQUE (LANÇAMENTO PREMIUM)
   ========================================================================== */
.highlight-section {
    padding: 40px 0 20px;
    background-color: #fff;
    overflow: hidden;
}

.highlight-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

/* Coluna Imagem */
.highlight-image {
    position: relative;
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

.book-mockup {
    position: relative;
    width: 100%;
    max-width: 400px;
    transition: transform 0.5s ease;
}

.book-mockup img {
    width: 100%;
    border-radius: 4px;
    box-shadow: -20px 20px 60px rgba(0,0,0,0.15);
    display: block;
}

.book-mockup:hover { transform: translateY(-10px) scale(1.02); }

@keyframes floatBadge {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Coluna Conteúdo */
.highlight-content { padding-right: 20px; }

.section-subtitle {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: 5px;
    font-weight: 700;
}

.highlight-content h2 {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    line-height: 1.1;
    margin: 0 0 10px 0;
    color: var(--color-dark);
    text-align: left;
}

.author-name {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 30px;
}

.gold-text { color: var(--color-gold); }

.synopsis { margin-bottom: 40px; }

.synopsis p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--color-text);
    margin-bottom: 20px;
}

/* Botões da Secção */
.highlight-actions {
    display: flex;
    gap: 20px;
    margin-bottom: 50px;
}

.btn-primary {
    padding: 15px 40px;
    background-color: var(--color-dark);
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    border: 1px solid var(--color-dark);
}

.btn-primary:hover {
    background-color: var(--color-gold);
    border-color: var(--color-gold);
    color: #fff;
    box-shadow: 0 10px 30px rgba(194, 145, 40, 0.2);
}

.btn-secondary {
    padding: 15px 40px;
    background-color: transparent;
    color: var(--color-dark);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    border: 1px solid #ddd;
}

.btn-secondary:hover { border-color: var(--color-dark); background-color: #f9f9f9; }

/* Meta Data (ISBN, Páginas) */
.meta-item { display: flex; flex-direction: column; }
.meta-item .label {
    font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1px; color: #999; margin-bottom: 5px;
}
.meta-item .value {
    font-family: var(--font-serif); font-size: 1.1rem; font-weight: 700; color: var(--color-dark);
}

/* SECÇÃO AMOSTRA DE LIVROS
   ========================================================================== */

.catalog-sample-section {
    padding: 40px 0;
    background-color: #fff;
}

.sample-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    gap: 30px;
    margin-top: 50px;
}

/* O Card */
.book-sample-card {
    display: flex;
    flex-direction: column;
    text-align: left;
    transition: transform 0.3s ease;
}

.book-sample-card:hover {
    transform: translateY(-5px);
}

/* O Contentor da Imagem */
.sample-image-box {
    width: 100%;
    aspect-ratio: 3 / 4; 
    background-color: #f9f9f9;
    margin-bottom: 15px;
    overflow: hidden;
    border-radius: 2px;
}

.sample-image-box img {
    width: 100%;
    height: 100%;
    object-fit: contain; 
    transition: transform 0.6s ease;
}

.book-sample-card:hover .sample-image-box img {
    transform: scale(1.05);
}

/* Informações */
.sample-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.sample-title {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    color: #111;
    margin: 0 0 10px 0;
    min-height: 2.8em;
    width: 100%; /* O título pode ocupar a largura toda */
    
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sample-title a { text-decoration: none; color: inherit; }
.sample-title a:hover { color: var(--color-gold); }

/* Categoria (Estilo "EM DESTAQUE, TESTEMUNHOS") */
.sample-category {
    font-size: 0.7rem; /* Pequeno */
    text-transform: uppercase; /* Caixa Alta */
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #777; /* Cinzento */
    margin-bottom: 20px; /* Espaço até o botão */
    display: block;
}

.btn-view-product {
    margin-top: auto;
    /* Garante que o botão obedece ao tamanho do conteúdo */
    align-self: flex-start; 
    display: inline-block;
    width: auto; 
    
    /* Tamanho idêntico ao botão "Adicionar" da referência */
    min-width: 120px; 
    padding: 12px 25px; 
    
    background-color: #000; /* Preto Sólido */
    color: #fff;
    
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: capitalize; /* "Ver Mais" e não "VER MAIS" */
    text-align: center;
    text-decoration: none;
    
    border: 1px solid #000;
    border-radius: 0;
    transition: all 0.3s ease;
}

.btn-view-product:hover {
    background-color: #333;
    border-color: #333;
    color: #fff;
    transform: translateY(-2px);
}

/* Mobile: Aqui sim, permitimos que estique para facilitar o toque */
@media (max-width: 600px) {
    .sample-info {
        align-items: stretch; /* Volta a esticar no telemóvel */
    }
    .btn-view-product {
        width: 100%;
        text-align: center;
    }
}

/* Responsividade */
@media (max-width: 1024px) {
    .sample-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
}

@media (max-width: 600px) {
    .sample-grid { grid-template-columns: 1fr; max-width: 320px; margin: 50px auto 0; }
}

/* 5. COMPONENTES GLOBAIS
   ========================================================================== */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }
h2, h3 { font-family: var(--font-serif); color: var(--color-dark); }
h2 { font-size: 2.5rem; text-align: center; margin-top: 0; margin-bottom: 20px; }
h3 { font-size: 2rem; margin-bottom: 40px; }
.divider { width: 60px; height: 3px; background-color: var(--color-gold); margin: 0 auto 40px; }

/* 6. OUTRAS SEÇÕES (Sobre, Livros, Autores, etc)
   ========================================================================== */
.invite-section, .services-section, .about-section, .books-section, .authors-section {
    padding: 40px 0;
}
.invite-section { background-color: var(--color-bg-offwhite); text-align: center; border-bottom: 1px solid rgba(0,0,0,0.05); padding: 120px 0; }
.invite-content h2 { font-family: var(--font-serif); font-size: 2.5rem; margin-bottom: 15px; }
.invite-content p { font-size: 1.1rem; color: #666; max-width: 600px; margin: 0 auto 30px; }

.section-header { margin-bottom: 60px; text-align: center; }

.services-section { background-color: var(--color-dark); color: #fff; padding: 40px 0;}
.light-text { color: #fff; }
.services-intro { color: rgba(255,255,255,0.7); max-width: 700px; margin: 0 auto; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 50px; }
.service-card {
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.1); padding: 40px; transition: all 0.4s ease;
}
.service-card:hover { background: rgba(255,255,255,0.06); border-color: var(--color-gold); transform: translateY(-5px); }
.main-service {
    grid-column: span 2; background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02)); border-color: rgba(194, 145, 40, 0.3);
}
.service-icon { font-size: 2rem; color: var(--color-gold); margin-bottom: 25px; }
.service-card h3 { font-size: 1.3rem; color: #fff; margin-bottom: 15px; }
.service-card p { font-size: 0.95rem; color: rgba(255,255,255,0.6); line-height: 1.6; }
.services-cta { text-align: center; margin-top: 60px; }
.btn-gold-outline {
    display: inline-block; padding: 15px 40px; border: 1px solid var(--color-gold); color: var(--color-gold); text-transform: uppercase; font-weight: 700; font-size: 0.85rem; letter-spacing: 1px;
}
.btn-gold-outline:hover { background-color: var(--color-gold); color: #fff; }

.books-section { background-color: var(--color-light); }
.books-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 40px; }
.book-card { display: flex; flex-direction: column; align-items: center; text-align: center; transition: var(--transition-smooth); }
.book-card:hover { transform: translateY(-10px); }
.book-cover img { box-shadow: 10px 10px 30px rgba(0,0,0,0.1); border-radius: 2px; margin-bottom: 25px; }
.book-info h4 { font-family: var(--font-serif); font-size: 1.4rem; margin: 10px 0 5px; }
.book-info .author { color: #888; font-style: italic; font-size: 0.95rem; }
.btn-interest {
    display: inline-block; margin-top: 15px; color: var(--color-gold); font-weight: 700; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 1px; border-bottom: 1px solid transparent;
}
.btn-interest:hover { border-color: var(--color-gold); }

.authors-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; text-align: center; }
.author-img { width: 160px; height: 160px; border-radius: 50%; overflow: hidden; margin: 0 auto 20px; border: 3px solid var(--color-gold); }
.author-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.author-card:hover .author-img img { transform: scale(1.1); }

/* 7. CONTATO E RODAPÉ
   ========================================================================== */
.contact-section { padding: 40px 0; background-color: var(--color-light); border-top: 1px solid #eee; }
.contact-container { display: flex; flex-wrap: wrap; gap: 60px; max-width: 1000px; margin: 0 auto; }
.contact-text { flex: 1; min-width: 300px; }
.contact-text h3 { font-size: 2.5rem; margin-bottom: 20px; }
.contact-text p { font-size: 1.1rem; line-height: 1.6; color: #555; }

.form-group { margin-bottom: 20px; }
.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 60px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px; /* Margem de segurança lateral */
}

/* 2. O Cartão do Formulário (Papel) */
.clean-form {
    flex: 1;
    min-width: 320px; /* Largura mínima segura */
    background: #fff;
    padding: 50px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.05); /* Sombra difusa premium */
    border-radius: 0;
}

/* 3. Inputs & Textarea (Toque Editorial) */
.form-group label {
    display: block;
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 0.8rem;
    margin-bottom: 10px;
    color: var(--color-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 18px 20px; /* Mais espaço interno */
    background-color: #fcfcfc;
    border: 0 solid #e0e0e0;
    border-radius: 0; /* Design clean */
    font-family: var(--font-sans);
    font-size: 1rem;
    color: #333;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Estado de Foco (A "Luz") */
.form-group input:focus, 
.form-group textarea:focus {
    background-color: #fff;
    border-color: var(--color-gold);
    outline: none;
    box-shadow: 0 5px 20px rgba(194, 145, 40, 0.15);
    transform: translateY(-2px); /* Ligeiro levantar */
}

/* 4. Botão de Envio */
.btn-submit {
    width: 100%;
    padding: 18px;
    background-color: var(--color-dark);
    color: #fff;
    border: none;
    font-family: var(--font-sans);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn-submit:hover {
    background-color: var(--color-gold);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(194, 145, 40, 0.3);
}

@media (max-width: 991px) {
    .contact-section {
        padding: 60px 0; /* Mais ar */
    }

    .contact-container {
        flex-direction: column; /* Empilha texto e form */
        gap: 40px;
    }

    .contact-text {
        text-align: center; /* Centraliza a introdução */
        padding: 0 10px;
    }
    
    .contact-text h3 {
        font-size: 2rem;
    }

    /* Formulário Mobile */
    .clean-form {
        padding: 30px 25px; /* Menos padding lateral para ganhar espaço */
        width: 100%;
        min-width: auto; /* Remove restrição rígida */
        box-shadow: 0 10px 30px rgba(0,0,0,0.05); /* Sombra mais leve */
    }

    /* Aumentar área de toque para dedos */
    .form-group input, 
    .form-group select {
        height: 55px; /* Altura generosa para toque */
        font-size: 16px; /* Evita zoom automático no iOS */
    }
    
    .form-group textarea {
        min-height: 120px;
    }
}

.editora-footer {
    background-color: var(--color-dark); color: #888; text-align: center; padding: 60px 20px; font-size: 0.9rem;
}
.editora-footer h3 { color: var(--color-light); margin-bottom: 10px; }

/* 9. RESPONSIVIDADE
   ========================================================================== */
@media (max-width: 991px) {
    #main-header { padding: 15px 0; }
    
    .header-container { padding: 0 25px; justify-content: flex-end; }
    
    /* LOGOTIPO: Configuração Base */
    .logo-container { 
        position: absolute; 
        left: 0; right: 0; margin: 0 auto; /* Centraliza Horizontalmente */
        width: fit-content; 
        z-index: 10; 
        transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); 
    }

    /* ESTADO 1: TRANSPARENTE (Topo da página) */
    .header-transparent .logo-container { 
        top: 0 !important; 
        transform: none !important; 
        padding-top: 20px; /* Mais espaço no topo */
    }
    .header-transparent .logo-img { height: 150px; } /* Tamanho grande original */

    /* ESTADO 2: BARRA BRANCA (Ao rolar) */
    .header-scrolled {
        padding: 20px 0; 
    }

    .header-scrolled .logo-container { 
        top: 0 !important; 
        transform: none !important; 
        padding-top: 0;
        height: 100%;
        display: flex;
        align-items: center;
    }
    
    .header-scrolled .logo-img { 
        height: 62px; 
        margin-top: 5px; /* Ajuste fino ótico */
    }

    /* Menu Hambúrguer */
    .mobile-toggle { display: block; margin-right: 0; }
    .main-nav, .desktop-only, .btn-nav-highlight { display: none; }

    /* --- B. HERO SECTION (COM RESPIRO) --- */
    .hero { 
        background-image: url('../img/planner-seja-luz.webp') !important;
        background-attachment: scroll !important; /* Fix do "pulo" no iPhone */
        background-position: center center !important;
        background-size: cover;
    }

    .hero-spacer { display: none !important; }
    
    .hero-content-wrapper {
        min-height: 100svh; /* Usa altura real da viewport do mobile */
        display: flex;
        align-items: flex-start; 
        justify-content: center;
        padding-top: 180px; 
        padding-bottom: 100px;
        padding-left: 20px; 
        padding-right: 20px;
        
        background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.1) 40%, rgba(0,0,0,0.85) 100%);
    }

    .hero-text-box {
        text-align: center;
        max-width: 100%;
        margin-top: 0; 
    }
    
    .hero-text-box h1 { 
        font-size: 2.3rem; /* Tamanho equilibrado para iPhone */
        margin-bottom: 15px;
        text-shadow: 0 4px 15px rgba(0,0,0,0.6); 
    } 
    
    .hero-text-box p {
        font-size: 1.1rem;
        text-align: center;
        max-width: 100%;
        margin-bottom: 35px;
        text-shadow: 0 2px 5px rgba(0,0,0,0.8);
        -webkit-hyphens: none;
        -ms-hyphens: none;
        hyphens: none; /* Impede a criação de hífens automáticos */
    }

    /* --- C. BLOCO DE CONVERSÃO MOBILE --- */
    .hero-conversion-wrapper { align-items: center; width: 100%; }
    .hero-cta-row { flex-direction: column; gap: 20px; margin-bottom: 30px; }
    .btn-premium-gold { width: 100%; text-align: center; }
    
    .hero-stats-separator { width: 100%; margin-left: 0; opacity: 0.6; }
    
    .hero-stats-row {
        flex-direction: column;
        gap: 8px;
        font-size: 0.75rem; /* Pode reduzir para 0.7rem se o texto for muito grande */
        letter-spacing: 1px;
        white-space: normal; /* Permite que o texto quebre para a linha de baixo */
        line-height: 1.5; /* Dá espaço entre as linhas se o texto quebrar */
        text-align: center; /* Garante que as linhas fiquem centralizadas */
        padding: 0 10px; /* Garante uma margem de segurança nas laterais */
    }
    
    /* Proteção para telas muito pequenas (iPhone SE/Mini) */
    @media (max-width: 375px) {
        .hero-stats-row { white-space: normal; line-height: 1.4; }
        .hero-text-box h1 { font-size: 2rem; }
        .hero-content-wrapper { padding-top: 150px; } /* Ajuste proporcional */
    }

    .stat-divider { 
        width: 30px; height: 1px; background: rgba(255,255,255,0.4); margin: 5px 0; 
    }

    /* --- D. OUTRAS SEÇÕES (Layout Mobile) --- */
    .container { padding: 0 25px; }
    .highlight-wrapper { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .highlight-content { padding-right: 0; }
    .highlight-content h2 { text-align: center; }
    .highlight-actions { flex-direction: column; }
    
    .services-grid { grid-template-columns: 1fr; }
    .main-service { grid-column: span 1; }
    .contact-container { flex-direction: column; }
}

@media (max-width: 480px) {
    .hero-text-box h1 {
        font-size: 1.9rem; /* Ligeiramente menor */
        line-height: 1.2;
    }
    
    .hero-content-wrapper {
        padding-top: 140px; /* Reduzir padding superior */
    }
    
    /* Botão em largura total para facilitar o toque */
    .hero-cta-row {
        width: 100%;
    }
    .btn-premium-gold {
        width: 100%;
        text-align: center;
        padding: 14px 20px;
    }
}

/* Animações */
.fade-in-up { animation: fadeInUp 0.8s cubic-bezier(0.25, 0.8, 0.25, 1) forwards; opacity: 0; will-change: transform, opacity; }
@keyframes fadeInUp { from { opacity: 0; transform: translate3d(0, 40px, 0); } to { opacity: 1; transform: translate3d(0, 0, 0); } }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.5s; }
.delay-4 { animation-delay: 0.7s; }

/* SECÇÃO IMERSIVA: O RITUAL DE CRIAÇÃO
   ========================================================================== */

.process-section-immersive {
    padding: 100px 0;
    background-color: #fff;
    overflow: hidden;
}

.journey-container {
    position: relative;
    max-width: 1000px;
    margin: 60px auto 0;
    padding: 20px 0;
}

/* --- O FEIXE DE LUZ (Linhas Centrais) --- */
.journey-line-bg, 
.journey-line-progress {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    bottom: 0;
    border-radius: 10px;
}

/* 1. O Trilho (Caminho Discreto) */
.journey-line-bg {
    width: 1px;
    background-color: rgba(0, 0, 0, 0.03); /* Quase invisível */
    z-index: 0;
}

/* 2. A Energia (Luz Orgânica) */
.journey-line-progress {
    width: 3px; /* Ligeiramente mais largo que o trilho */
    z-index: 1;
    
    /* Gradiente "Energia Líquida" */
    background: linear-gradient(
        to bottom,
        rgba(194, 145, 40, 0) 0%,       /* Transparente no topo */
        var(--color-gold) 20%,          /* Ouro Sólido */
        var(--color-gold) 80%,          /* Ouro Sólido */
        rgba(194, 145, 40, 0.5) 100%    /* Fade no final */
    );
    
    /* A "Aura" da Luz */
    filter: drop-shadow(0 0 6px rgba(194, 145, 40, 0.6));
    
    /* Transição imediata para acompanhar o dedo no scroll */
    transition: height 0.1s linear; 
}

/* --- O PASSO (A Célula do Ritual) --- */
.journey-step {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 120px; /* Muito ar para cada momento */
    z-index: 2;

    /* ESTADO INICIAL: ADORMECIDO */
    opacity: 0.3; 
    transform: scale(0.96); 
    filter: grayscale(100%); 
    transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1); /* Despertar lento */
}

.journey-step:last-child { margin-bottom: 0; }

/* ESTADO ATIVO: O DESPERTAR (Via JS) */
.journey-step.step-active {
    opacity: 1;
    transform: scale(1);
    filter: grayscale(0%);
}

/* --- O MARCADOR (Coração) --- */
.step-marker {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    
    /* Estado Neutro (Papel) */
    background-color: #fdfbf7; 
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #ccc;
    
    transition: all 0.6s ease;
    z-index: 3;
}

/* Marcador Ativo (Pulsante) */
.journey-step.step-active .step-marker {
    background-color: #fff;
    border-color: var(--color-gold);
    color: var(--color-gold);
    
    /* O Halo de Luz */
    box-shadow: 
        0 0 0 6px rgba(255, 255, 255, 1), /* Espaço Branco */
        0 0 30px rgba(194, 145, 40, 0.4); /* Brilho Dourado */
        
    transform: translateX(-50%) scale(1.15);
}

/* --- CONTEÚDO (Texto) --- */
.step-content {
    width: 42%;
    padding: 10px 30px;
    /* Removemos background/shadow duros para ficar mais etéreo */
    background: transparent; 
}

/* Tipografia Ritualística */
.step-number {
    display: block;
    font-family: var(--font-serif); /* Serifado para elegância */
    font-style: italic;
    font-size: 0.85rem;
    color: var(--color-gold);
    margin-bottom: 10px;
    
    /* Animação de Entrada */
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.6s ease 0.2s;
}

.journey-step.step-active .step-number {
    opacity: 1;
    transform: translateY(0);
}

.step-content h3 {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    margin: 0 0 15px 0;
    color: var(--color-dark);
    line-height: 1.1;
    transition: opacity 0.6s ease;
}

.step-content p {
    font-family: var(--font-sans);
    font-size: 1.05rem;
    line-height: 1.8;
    color: #666;
    margin: 0;
}

/* --- ALTERNÂNCIA (ZIG-ZAG DESKTOP) --- */
.journey-step:nth-child(odd) { flex-direction: row; }
.journey-step:nth-child(odd) .step-content { text-align: right; }

.journey-step:nth-child(even) { flex-direction: row-reverse; }
.journey-step:nth-child(even) .step-content { text-align: left; }

/* --- RESPONSIVIDADE MOBILE (TIMELINE LATERAL) --- */
@media (max-width: 900px) {
    .journey-container { 
        padding-left: 20px; 
        padding-right: 20px; 
        margin-top: 40px;
    }
    
    /* Mover a linha para a esquerda */
    .journey-line-bg, 
    .journey-line-progress {
        left: 40px; /* Posição fixa */
    }

    /* Resetar Flex para coluna */
    .journey-step {
        flex-direction: row !important;
        justify-content: flex-start;
        margin-bottom: 60px;
    }

    /* Marcador na esquerda */
    .step-marker, 
    .journey-step.step-active .step-marker {
        left: 40px;
        transform: translateX(-50%); /* Apenas centraliza no eixo dele mesmo */
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }
    
    /* Correção do Scale no Mobile para não quebrar alinhamento */
    .journey-step.step-active .step-marker {
        transform: translateX(-50%) scale(1.1);
    }

    /* Conteúdo empurrado para a direita */
    .step-content {
        width: 100%;
        padding: 0 0 0 50px; /* Margem da esquerda do ícone */
        margin-left: 30px; /* Espaço extra */
        text-align: left !important;
    }
    
    .step-content h3 { font-size: 1.5rem; }
}

/* FOOTER 
   ========================================= */
:root {
    --color-gold: #c29128; /* Ajuste para o seu dourado exato */
    --color-dark-bg: #1a1a1a;
    --color-text-grey: #a0a0a0;
}

.site-footer {
    background-color: var(--color-dark-bg);
    color: var(--color-text-grey);
    padding: 80px 0 30px;
    border-top: 4px solid var(--color-gold);
    font-family: 'Montserrat', sans-serif; /* Ou a sua fonte padrão */
}

/* Grid Layout */
.footer-main {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 3rem;
    margin-bottom: 60px;
}

/* Títulos das Colunas */
.footer-column h4 {
    color: #fff;
    font-family: 'Playfair Display', serif; /* Fonte Serifada para elegância */
    font-size: 1.2rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--color-gold);
}

/* Links */
.footer-column ul { list-style: none; padding: 0; margin: 0; }
.footer-column ul li { margin-bottom: 12px; }
.footer-column a {
    text-decoration: none;
    color: var(--color-text-grey);
    transition: all 0.3s ease;
}
.footer-column a:hover {
    color: var(--color-gold);
    padding-left: 5px;
}

/* ANIMAÇÃO DA TAGLINE */
.footer-tagline {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-top: 20px;
    font-style: italic;
    color: #666;
    /* Começa invisível até o JS ativar */
    opacity: 0; 
    transition: opacity 0.5s ease;
}

/* Estado Ativado (pelo Javascript) */
.footer-tagline.is-animated {
    opacity: 1;
}
/* Estilo de cada palavra (span) - ESTADO DE RESET (INVISÍVEL) */
.footer-tagline span {
    display: inline-block;
    opacity: 0;
    transform: translateY(15px);
    margin-right: 4px;
    /* Transição rápida ao sair (reset) para preparar a próxima entrada */
    transition: opacity 0.2s ease, transform 0.2s ease;
}

/* Quando ativado (ENTRADA) */
.footer-tagline.is-animated span {
    opacity: 1;
    transform: translateY(0);
    /* Transição lenta e elegante na entrada */
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ATRASOS SEQUENCIAIS (Para o efeito de escrita) */
.footer-tagline.is-animated span:nth-of-type(1)  { transition-delay: 0.1s; }
.footer-tagline.is-animated span:nth-of-type(2)  { transition-delay: 0.15s; }
.footer-tagline.is-animated span:nth-of-type(3)  { transition-delay: 0.2s; }
.footer-tagline.is-animated span:nth-of-type(4)  { transition-delay: 0.25s; }
.footer-tagline.is-animated span:nth-of-type(5)  { transition-delay: 0.3s; }
.footer-tagline.is-animated span:nth-of-type(6)  { transition-delay: 0.35s; }
.footer-tagline.is-animated span:nth-of-type(7)  { transition-delay: 0.4s; }
.footer-tagline.is-animated span:nth-of-type(8)  { transition-delay: 0.45s; }
.footer-tagline.is-animated span:nth-of-type(9)  { transition-delay: 0.5s; }
.footer-tagline.is-animated span:nth-of-type(10) { transition-delay: 0.55s; }
.footer-tagline.is-animated span:nth-of-type(11) { transition-delay: 0.6s; }
.footer-tagline.is-animated span:nth-of-type(12) { transition-delay: 0.65s; }
.footer-tagline.is-animated span:nth-of-type(13) { transition-delay: 0.7s; }
/* Adicione mais se a frase for mais longa */

/* Estilo do link do Criador */
.creator a:hover {
    color: #fff !important; /* Muda para branco no hover */
    text-shadow: 0 0 5px var(--color-gold);
    transition: all 0.3s ease;
}

/* Redes Sociais */
.social-icons { display: flex; gap: 10px; margin-top: 15px; }
.social-icons a {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    transition: 0.3s;
}
.social-icons a:hover {
    background: var(--color-gold);
    transform: translateY(-3px);
    color: #fff;
}

/* Livro de Reclamações */
.complaints-book-link img {
    width: 140px;
    opacity: 0.7;
    transition: 0.3s;
}
.complaints-book-link:hover img { opacity: 1; }

/* Contactos */
.footer-contact-link {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 10px;
}
.footer-contact-link i { color: var(--color-gold); width: 20px; text-align: center;}

/* Copyright */
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
}

/* COOKIES E PRIVACIDADE
   ========================================= */
/* O Banner (Faixa) que aparece ao entrar */
.cookie-banner {
    position: fixed; 
    bottom: 0; 
    left: 0; 
    width: 100%;
    z-index: 9999; /* Garante que fica acima de tudo */
    transform: translateY(100%); /* Começa escondido abaixo do ecrã */
    transition: transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1); /* Animação suave */
    box-shadow: 0 -10px 40px rgba(0,0,0,0.1);
    pointer-events: none; /* Não bloqueia cliques enquanto está invisível */
}

/* Quando esta classe é adicionada pelo JS, o banner sobe */
.cookie-banner.show { 
    transform: translateY(0); 
    pointer-events: all; /* Ativa os cliques */
}

.cookie-banner-content {
    background: #fff;
    border-top: 4px solid var(--color-gold);
    padding: 30px 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.cookie-text p {
    margin: 0;
    font-size: 0.95rem;
    color: #555;
    max-width: 600px;
    line-height: 1.5;
}

.cookie-text a {
    color: var(--color-gold);
    font-weight: 700;
    border-bottom: 1px solid var(--color-gold);
}

.cookie-actions { display: flex; gap: 15px; }

/* Botões do Banner e Modal */
.btn-primary {
    background: var(--color-dark); color: #fff; border: 1px solid var(--color-dark);
    padding: 12px 30px; border-radius: 2px; cursor: pointer;
    font-weight: 700; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 1px;
    transition: all 0.3s ease;
}
.btn-primary:hover { background: var(--color-gold); border-color: var(--color-gold); }

.btn-secondary-cookie {
    background: transparent; color: #666; border: 1px solid #ccc;
    padding: 12px 25px; border-radius: 2px; cursor: pointer;
    font-weight: 700; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 1px;
    transition: all 0.3s ease;
}
.btn-secondary-cookie:hover { border-color: var(--color-dark); color: var(--color-dark); }

/* O Modal de Definições (Escondido inicialmente) */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(17, 17, 17, 0.85); backdrop-filter: blur(5px);
    display: flex; justify-content: center; align-items: center;
    z-index: 10000;
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: 0.3s;
}
.modal-overlay.is-visible { opacity: 1; visibility: visible; pointer-events: all; }

.cookie-modal-content {
    background: #fff; padding: 50px; border-radius: 4px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    max-width: 550px; width: 90%;
    border-top: 4px solid var(--color-gold);
    position: relative;
    max-height: 85vh; /* Nunca ocupa mais de 85% da altura da tela */
    overflow-y: auto; /* Adiciona scroll interno se o conteúdo for longo */
    display: flex;
    flex-direction: column;
}

/* Garante que os botões tenham espaço no final */
.cookie-modal-actions {
    padding-top: 20px;
    margin-top: auto; /* Empurra para o fundo, mas dentro do scroll */
    padding-bottom: 10px;
}

.cookie-modal-content h3 { font-family: var(--font-serif); font-size: 1.8rem; margin-top: 0; color: var(--color-dark); margin-bottom: 10px; }
.cookie-category { margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid #eee; }
.cookie-category:last-of-type { border-bottom: none; }
.cookie-category-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.cookie-category h4 { margin: 0; font-size: 1rem; color: var(--color-dark); }

.modal-close { position: absolute; top: 20px; right: 20px; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: #999; }
.modal-close:hover { color: var(--color-dark); }

/* Switch Toggle */
.switch { position: relative; display: inline-block; width: 46px; height: 24px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #ccc; transition: .4s; border-radius: 34px; }
.slider:before { position: absolute; content: ""; height: 16px; width: 16px; left: 4px; bottom: 4px; background-color: white; transition: .4s; border-radius: 50%; }
input:checked + .slider { background-color: var(--color-gold); }
input:checked + .slider:before { transform: translateX(22px); }

/* 10. PÁGINAS INTERNAS POLÍTICA E TERMOS
   ========================================================================== */

/* Internal Hero: Versão reduzida do Hero Principal para sub-páginas */
.internal-hero {
    position: relative;
    width: 100%;
    height: 40vh; /* Altura menor que o index */
    min-height: 300px;
    /* Reutiliza a imagem de textura do site, mas foca no detalhe */
    background-image: url('../img/planner-seja-luz.webp'); 
    background-size: cover;
    background-position: center 30%; /* Ajuste para focar em área neutra */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 60px;
}

/* Camada escura para garantir contraste do Menu Branco e Título */
.internal-hero .hero-overlay {
    position: absolute; inset: 0;
    background: rgba(17, 17, 17, 0.7); /* Dark overlay */
    z-index: 1;
}

.internal-hero-content {
    position: relative; z-index: 2;
    color: #fff;
    max-width: 800px;
    margin: 0 auto;
    padding-top: 60px; /* Compensação visual para o Header fixo */
}

.internal-hero-content h1 {
    font-family: var(--font-serif);
    font-size: 3rem;
    margin-bottom: 15px;
    color: #fff;
}

.internal-hero-content p {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.9);
    text-transform: uppercase;
}

/* Conteúdo Legal - Foco em Leitura (Reading UX) */
.legal-content-section {
    padding-bottom: 80px;
    background-color: var(--color-bg-offwhite); /* Fundo suave para descanso dos olhos */
}

.legal-container {
    /* Largura restrita para evitar linhas muito longas (melhor legibilidade) */
    max-width: 800px; 
    margin: 0 auto;
    background: #fff;
    padding: 60px;
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.03);
}

.legal-block {
    margin-bottom: 40px;
}

.intro-text {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--color-dark);
    margin-bottom: 20px;
}

.last-updated {
    font-size: 0.8rem;
    color: #999;
    font-style: italic;
    margin-top: -10px;
    margin-bottom: 30px;
    display: block;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

/* Títulos das Seções Legais */
.legal-content-section h2 {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    color: var(--color-dark);
    text-align: left; /* Alinhamento à esquerda facilita leitura de documentos */
    margin-bottom: 20px;
    position: relative;
    padding-left: 20px;
    border-left: 3px solid var(--color-gold); /* Detalhe visual da marca */
}

.legal-content-section p {
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 15px;
    text-align: justify; /* Justificado para ar formal, mas cuidado com mobile */
}

.legal-content-section a {
    color: var(--color-gold);
    font-weight: 700;
    border-bottom: 1px dotted var(--color-gold);
}
.legal-content-section a:hover {
    color: var(--color-dark);
    border-bottom-style: solid;
}

/* Listas Legais */
.legal-list {
    list-style: none;
    padding-left: 20px;
    margin-bottom: 20px;
}

.legal-list li {
    position: relative;
    margin-bottom: 12px;
    padding-left: 20px;
    line-height: 1.6;
    color: #555;
}

.legal-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--color-gold);
    font-size: 1.2rem;
    line-height: 1.4;
}

/* Responsividade para Páginas Internas */
@media (max-width: 768px) {
    .internal-hero { height: 35vh; min-height: 250px; }
    
    .internal-hero-content h1 { font-size: 2rem; }
    .internal-hero-content p { font-size: 0.9rem; padding: 0 20px; }

    .legal-container {
        padding: 30px 20px; /* Menos padding no mobile */
        width: 100%;
        box-shadow: none; /* Remove sombra para parecer nativo */
        background: transparent;
    }

    .legal-content-section { background: #fff; } /* Fundo branco direto no mobile */

    .legal-content-section h2 { font-size: 1.5rem; }
    
    /* Remove justificado no mobile para evitar buracos no texto */
    .legal-content-section p { text-align: left; } 
}
@media (max-width: 991px) {
    /* Esconde o menu por padrão */
    .main-nav {
        position: fixed;
        top: 0; right: -100%; /* Fora da tela */
        width: 80%;
        height: 100vh;
        background: #fff;
        padding-top: 80px;
        transition: 0.4s ease;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        z-index: 999;
        display: block !important; /* Força display block para animação funcionar */
    }

    /* Classe ativada pelo JS */
    .main-nav.nav-active {
        right: 0;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }
    
    .main-nav a {
        color: var(--color-dark) !important;
        font-size: 1.2rem;
    }
}

@media (max-width: 991px) {
    
    /* 1. Transforma o Grid de 4 colunas em 1 coluna vertical */
    .footer-main {
        display: flex;
        flex-direction: column;
        gap: 40px; /* Espaço entre cada bloco */
        text-align: center; /* Centraliza textos */
    }

    /* 2. Centraliza os títulos e o traço dourado */
    .footer-column h4 {
        margin-bottom: 20px;
    }
    
    .footer-column h4::after {
        left: 50%;
        transform: translateX(-50%); /* Traz o traço para o meio */
    }

    /* 3. Ajustes de alinhamento dos ícones e contactos */
    .contact-info-block {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .social-icons {
        justify-content: center;
    }

    /* 4. Ajuste da parte final (Copyright e Created by) */
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    /* Ajuste extra para o logo não ficar gigante */
    .footer-logo img {
        margin: 0 auto;
    }

    .complaints-book-link img {
        margin: 0 auto !important; /* Garante que centra a imagem bloco */
        display: block;
    }
}

/* MENU MOBILE PREMIUM
   ========================================= */

/* 1. O Overlay (Fundo Escuro) */
.mobile-menu-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* 2. Bloqueio de Scroll */
body.menu-open { overflow: hidden; }

@media (max-width: 991px) {
    /* 1. Esconder o botão "Aceder à Loja" original do cabeçalho */
    .header-actions .btn-nav-highlight {
        display: none !important;
    }

    /* 2. Menu Lateral (Gaveta) */
    .main-nav {
        position: fixed;
        top: 0; 
        right: 0;
        width: 85%;
        max-width: 400px;
        height: 100vh;
        background: #fff; /* Fundo Creme/Papel para toque editorial */
        padding: 100px 40px 40px; /* Mais padding lateral */
        
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
        z-index: 999;
        display: block !important;
        
        /* Física do Movimento */
        transform: translateX(100%); 
        transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
        visibility: visible;
        
        /* Organização Vertical */
        display: flex !important;
        flex-direction: column;
        justify-content: flex-start; /* Alinha tudo ao topo */
    }

    /* Estado Ativo */
    .main-nav.nav-active {
        transform: translateX(0) !important;
    }

    /* Lista de Links */
    .main-nav ul {
        display: flex;
        flex-direction: column;
        align-items: center; /* Centralizado */
        gap: 30px;
        width: 100%;
    }
    
    /* 3. FONTE REFINADA (Consistência Editora) */
    .main-nav li:not(.mobile-menu-btn) a {
        color: var(--color-dark) !important;
        font-family: var(--font-serif); /* Playfair Display */
        font-size: 1.8rem; /* Tamanho grande e legível */
        font-weight: 400;  /* Peso elegante */
        letter-spacing: -0.5px;
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.4s ease;
        text-transform: none; /* Remove caixa alta forçada */
        text-decoration: none;
    }

    /* Hover no link */
    .main-nav li:not(.mobile-menu-btn) a:hover {
        color: var(--color-gold) !important;
        padding-left: 10px; /* Pequeno deslize à direita */
    }

    /* 4. ESTILO DO NOVO BOTÃO LOJA */
    .mobile-menu-btn {
        margin-top: 20px; /* Separação dos links normais */
        width: 100%;
        opacity: 0; /* Para animar entrada */
        transform: translateY(20px);
        transition: all 0.4s ease;
    }

    .mobile-menu-btn a {
        display: block;
        width: 100%;
        padding: 18px 0;
        text-align: center;
        background-color: var(--color-dark);
        color: #fff !important;
        font-family: var(--font-sans); /* Lato para legibilidade do botão */
        font-size: 0.9rem;
        text-transform: uppercase;
        font-weight: 700;
        letter-spacing: 2px;
        border: 1px solid var(--color-dark);
        transition: all 0.3s ease;
    }

    .mobile-menu-btn a:hover {
        background-color: var(--color-gold);
        border-color: var(--color-gold);
        color: #fff !important;
    }

    /* Animação Sequencial (Cascata) */
    .main-nav.nav-active li:not(.mobile-menu-btn) a { opacity: 1; transform: translateY(0); }
    .main-nav.nav-active .mobile-menu-btn { opacity: 1; transform: translateY(0); }

    /* Delays para efeito escada */
    .main-nav.nav-active li:nth-child(1) a { transition-delay: 0.1s; }
    .main-nav.nav-active li:nth-child(2) a { transition-delay: 0.15s; }
    .main-nav.nav-active li:nth-child(3) a { transition-delay: 0.2s; }
    .main-nav.nav-active li:nth-child(4) a { transition-delay: 0.25s; }
    .main-nav.nav-active .mobile-menu-btn   { transition-delay: 0.35s; } /* Botão entra por último */

    /* Botão Toggle */
    .mobile-toggle {
        position: relative;
        z-index: 1000; 
        width: 40px; height: 40px;
        display: flex; align-items: center; justify-content: center;
        cursor: pointer;
    }
    
    .mobile-toggle.active i { color: #111 !important; }
}

@media (min-width: 992px) {
    .mobile-menu-btn { display: none; }
}
/* ==========================================================================
   FIX CRÍTICO DE ANIMAÇÃO 3D
   ========================================================================== */
/* Garante que a página em movimento flutue SEMPRE acima das outras */
.book-page.is-animating {
    z-index: 9999 !important;
    will-change: transform; /* Otimização de performance */
}
/* ==========================================================================
   CORREÇÃO DE BUG DE VOLTAR PÁGINA (Z-INDEX FIX)
   ========================================================================== */
/* Garante que a página em movimento fica SEMPRE no topo da pilha visual */
.book-page.is-animating {
    /* Força a página a ficar no topo de TUDO durante a animação */
    z-index: 99999 !important; 
    
    /* Força renderização na GPU para evitar piscadas */
    will-change: transform;
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
}

/* =========================================
   FAQ / ACCORDION STYLES
   ========================================= */
.faq-section {
    background-color: #fff;
    padding: 80px 0;
}

.accordion-wrapper {
    max-width: 800px; /* Largura ideal para leitura */
    margin: 0 auto;
    border-top: 1px solid #e0e0e0;
}

.accordion-item {
    border-bottom: 1px solid #e0e0e0;
}

/* O Botão (Pergunta) */
.accordion-trigger {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 10px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: all 0.3s ease;
}

.accordion-trigger:hover {
    background-color: #fcfcfc; /* Feedback subtil ao passar o rato */
}

/* Tipografia da Pergunta */
.accordion-title {
    font-family: var(--font-serif); /* Playfair Display */
    font-size: 1.2rem;
    color: var(--color-dark);
    padding-right: 20px;
    font-weight: 700;
}

.accordion-trigger[aria-expanded="true"] .accordion-title {
    color: var(--color-gold); /* Fica dourado quando aberto */
    font-weight: 700;
}

/* O Ícone (+/-) */
.accordion-icon {
    font-size: 1rem;
    color: #ccc;
    transition: transform 0.3s ease, color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

/* Rotação do Ícone quando ativo */
.accordion-trigger[aria-expanded="true"] .accordion-icon {
    transform: rotate(45deg); /* O '+' vira um 'x' (ou roda se for seta) */
    color: var(--color-gold);
}

/* A Resposta (Escondida por defeito) */
.accordion-content {
    height: 0;
    overflow: hidden;
    transition: height 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); /* Animação suave "Seja Luz" */
    will-change: height;
}

.content-inner {
    padding: 0 10px 30px 10px;
}

.content-inner p {
    font-family: var(--font-sans); /* Lato */
    font-size: 1rem;
    line-height: 1.7;
    color: #555;
    margin: 0;
}

/* ==========================================================================
   AUTHORS SLIDER (VERSÃO REFINADA - FASE 3)
   ========================================================================== */

/* Configurações Locais */
.authors-section {
    /* Ajuste: Gap menor para mobile, maior para desktop */
    --slider-gap: clamp(0px, 2vw, 30px); 
    --slider-transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    --card-shadow: 0 10px 30px rgba(0,0,0,0.04);
    --card-shadow-hover: 0 25px 50px rgba(194, 145, 40, 0.15);
    
    position: relative;
    background-color: #fff;
    padding: 80px 0 120px;
    overflow: hidden;
}

.authors-slider-wrapper {
    position: relative;
    display: flex;
    /* PONTO 3: Garante alinhamento vertical central dos botões e da track */
    align-items: center; 
    justify-content: center;
    max-width: 1400px;
    margin: 0 auto;
}

/* Viewport */
.authors-viewport {
    width: 100%;
    overflow: hidden;
    padding: 40px 0 60px;
    /* Máscara opcional para suavizar bordas no desktop, removida no mobile */
    mask-image: linear-gradient(to right, transparent 0%, black 2%, black 98%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 2%, black 98%, transparent 100%);
}

/* Track */
.authors-track {
    display: flex;
    gap: var(--slider-gap);
    will-change: transform;
    transition: var(--slider-transition);
    
    /* PONTO 4: Cursor padrão (seta) em repouso */
    cursor: default;
    padding-left: 0;
}

/* PONTO 4: Apenas muda para 'agarrando' durante o clique/arraste ativo */
.authors-track:active {
    cursor: grabbing;
}

/* O Cartão do Autor */
.author-card-slide {
    flex: 0 0 calc(33.333% - var(--slider-gap)); 
    
    background: #fff;
    border: 1px solid rgba(0,0,0,0.04);
    border-radius: 8px;
    padding: 50px 30px;
    text-align: center;
    box-shadow: var(--card-shadow);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    
    user-select: none;
    -webkit-user-drag: none;
    
    /* Estado Inicial */
    opacity: 1;
    transform: scale(1);
}

/* Efeito Spotlight (Desktop apenas) */
@media (min-width: 1025px) {
    .authors-track:hover .author-card-slide {
        opacity: 0.5;
        transform: scale(0.98);
    }

    .authors-track .author-card-slide:hover {
        opacity: 1;
        transform: scale(1) translateY(-10px); 
        box-shadow: var(--card-shadow-hover);
        border-color: rgba(194, 145, 40, 0.3);
        z-index: 2;
    }
    
    .authors-track .author-card-slide:hover .author-photo-wrapper img {
        transform: scale(1.1); /* Zoom de 10% DENTRO do círculo */
    }
}

/* Foto Circular */
.author-photo-wrapper {
    width: 150px;
    height: 150px;
    margin: 0 auto 30px;
    border-radius: 50%;
    padding: 6px;
    border: 1px solid var(--color-gold); 
    position: relative;
    background: #fff;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.05);
    overflow: hidden;
}

.author-photo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    backface-visibility: hidden;       /* Evita tremura */
    -webkit-font-smoothing: subpixel-antialiased; /* Renderização de texto/img */
    transform: translateZ(0);          /* Força GPU */
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Movimento suave */
}

/* Tipografia */
.author-card-slide h4 {
    font-family: var(--font-serif);
    font-size: clamp(1.2rem, 1vw + 1rem, 1.6rem); 
    color: var(--color-dark);
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.author-bio {
    font-family: var(--font-sans);
    font-size: clamp(0.9rem, 0.5vw + 0.8rem, 1rem);
    line-height: 1.7;
    color: #666;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-width: 90%;
    margin: 0 auto;
}

/* Botões de Navegação */
.slider-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #eee;
    color: var(--color-dark);
    
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    /* PONTO 4: Cursor pointer apenas nos botões clicáveis */
    cursor: pointer; 
    
    transition: all 0.3s ease;
    z-index: 10;
    flex-shrink: 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    
    /* PONTO 3: Garante alinhamento vertical próprio */
    align-self: center;
}

/* Margens negativas para sobreposição no Desktop */
.prev-btn { margin-right: -20px; }
.next-btn { margin-left: -20px; }

.slider-btn:hover {
    background: var(--color-dark);
    border-color: var(--color-dark);
    color: var(--color-gold);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    transform: scale(1.1);
}

/* Indicadores */
.slider-indicators {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 10px;
}

.indicator-dot {
    width: 40px;
    height: 3px;
    background-color: #e0e0e0;
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.4s ease;
}

.indicator-dot.active {
    background-color: var(--color-gold);
    width: 60px;
}

/* ==========================================================================
   RESPONSIVIDADE & ACESSIBILIDADE (VERSÃO FINAL)
   ========================================================================== */

/* 1. Redução de Movimento (Acessibilidade) */
@media (prefers-reduced-motion: reduce) {
    .authors-track, 
    .author-card-slide, 
    .author-photo-wrapper img, 
    .slider-btn {
        transition: none !important;
        transform: none !important;
        animation: none !important;
    }
}

/* 2. Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
    .author-card-slide {
        /* 2 Slides por vez */
        flex: 0 0 calc(50% - var(--slider-gap)); 
    }
    
    /* Remove margens negativas de sobreposição usadas no desktop */
    .prev-btn { margin-right: 20px; }
    .next-btn { margin-left: 20px; }
}

/* 3. Mobile (max-width: 600px) */
@media (max-width: 600px) {
    .authors-section {
        /* Remove gap no mobile para garantir 100% de largura limpa */
        --slider-gap: 0px;
    }
    
    .authors-viewport {
        mask-image: none;
        -webkit-mask-image: none;
        padding: 20px 0 40px;
    }

    /* PONTO 2: 1 Card por vez, ocupação total, sem cortes */
    .author-card-slide {
        flex: 0 0 100%; 
        max-width: 100%;
        padding: 30px 20px;
        
        /* Desativa efeitos de hover complexos (Spotlight) no touch */
        opacity: 1 !important; 
        transform: none !important;
        box-shadow: var(--card-shadow) !important;
        filter: none !important;
    }
    
    /* PONTO 3: Botões flutuantes alinhados no Mobile */
    .slider-btn {
        position: absolute;
        top: 50%;
        /* Centralização vertical exata */
        transform: translateY(-50%);
        width: 45px;
        height: 45px;
        background: rgba(255,255,255,0.95);
        border: none;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        margin: 0; /* Remove margens antigas do desktop */
        z-index: 20;
    }

    /* CORREÇÃO CRÍTICA DE INTERAÇÃO (FIX "PULO")
       Garante que o botão mantém o alinhamento vertical (-50%) 
       mesmo quando pressionado (:active) ou focado. */
    .slider-btn:hover,
    .slider-btn:active,
    .slider-btn:focus {
        transform: translateY(-50%) scale(1.05) !important;
        background: #fff;
        color: var(--color-dark);
        outline: none;
    }
    
    /* PONTO 3: Distância simétrica das bordas */
    .prev-btn { left: 10px; }
    .next-btn { right: 10px; }
}

/* =========================================
   MODAL DE SUCESSO (Extensão do Modal Cookies)
   ========================================= */

/* Ajuste de layout específico para mensagens de sucesso */
.success-modal-layout {
    text-align: center; /* Centraliza tudo */
    align-items: center; /* Alinha flex items ao centro */
    max-width: 480px; /* Um pouco mais compacto que o de cookies */
}

/* O Ícone de "Check" Dourado */
.success-icon-wrapper {
    width: 70px;
    height: 70px;
    background-color: #f9f8f4; /* Fundo creme suave */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px; /* Margem inferior */
    border: 1px solid var(--color-gold);
}

.success-icon-wrapper i {
    font-size: 1.8rem;
    color: var(--color-gold);
}

/* Ajuste fino do texto */
.success-text {
    font-size: 1.05rem !important;
    color: #555;
    margin-bottom: 10px;
}