:root {
    --bg: #fafafa;
    --text: #111;
    --accent: #cd2a50;
    --accent-dark: #6624a9;
    --muted: #777;
    --dark-bg: #0a0a0a;
    --dark-card: #1a1a1a;
    --vermelho: #870b0b;
    --creme: #f9f7ef;
    --radius: 16px;
    --max: 1200px;
    --gap: 2rem;
    /* Cores do Blog Slider */
    --blog-bg: #252525;
    --blog-bege: #a18034;
    --blog-marrom: #422e1c;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

/* =====================================================
   HEADER FIXO
   ===================================================== */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 2rem;
    max-width: 100%;
    margin: auto;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    transition: all 0.4s ease;
}

header.scrolled {
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.8rem 2rem;
}

header.scrolled .logo,
header.scrolled nav a {
    color: #fff;
}

header .logo {
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: -0.5px;
    transition: color 0.3s;
    white-space: nowrap;
}

header nav {
    display: flex;
    gap: 2rem;
    font-size: .95rem;
    color: var(--muted);
}

header nav a {
    position: relative;
    transition: color 0.3s;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

header nav a:hover {
    color: var(--accent);
}

header nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s;
}

header nav a:hover::after {
    width: 100%;
}

/* Esconde o checkbox e o hambúrguer no desktop */
.menu-toggle,
.hamburger {
    display: none;
}

/* =====================================================
   APRESENTAÇÃO (HERO)
   ===================================================== */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    min-height: 100vh;
    padding: 100px 2rem 60px;
    max-width: var(--max);
    margin: 0 auto;
    gap: 3rem;
    background: linear-gradient(135deg, #fafafa 0%, #f0f0f0 100%);
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero h1 {
    font-size: clamp(2.2rem, 4.5vw, 3.5rem);
    line-height: 1.1;
    margin-bottom: 1.2rem;
    font-weight: 700;
}

.hero h1 span {
    color: var(--accent);
}

.hero p {
    font-size: 1.1rem;
    color: var(--muted);
    max-width: 480px;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--accent);
    color: #fff;
    padding: 0.9rem 2rem;
    border-radius: var(--radius);
    font-weight: 600;
    transition: all 0.3s;
}

.btn:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
}

.hero-foto {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-foto img {
    width: 100%;
    height: 100%;
    max-width: 500px;
    max-height: 750px;
    object-fit: cover;
    object-position: center top;
    border-radius: 20px;
}

/* =====================================================
   SEÇÃO 1: LABORATÓRIO CRIATIVO (FUNDO VERMELHO)
   ===================================================== */
.laboratorio {
    background: var(--vermelho);
    color: #fff;
    padding: 100px 2rem;
}

.laboratorio .container {
    max-width: var(--max);
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
    font-weight: 700;
}

.section-header p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
}

.temas-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.tema-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    padding: 2.5rem;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.tema-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.tema-card .numero {
    font-size: 3rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.2);
    position: absolute;
    top: 1rem;
    right: 1.5rem;
}

.tema-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
    font-weight: 700;
}

.tema-card .subtitulo {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.7;
    margin-bottom: 1rem;
    display: block;
}

.tema-card p {
    font-size: 0.95rem;
    line-height: 1.7;
    opacity: 0.9;
}

.tema-card p b {
    color: #fff;
    font-weight: 600;
}

/* =====================================================
   SEÇÃO 2: ASSINATURA AUTORAL (FUNDO CREME)
   ===================================================== */
.assinatura {
    background: var(--creme);
    color: var(--text);
    padding: 100px 2rem;
}

.assinatura .container {
    max-width: var(--max);
    margin: 0 auto;
}

.assinatura .section-header h2 {
    color: var(--vermelho);
}

.assinatura .section-header p {
    color: var(--muted);
}

.assinatura-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.assinatura-card {
    background: #fff;
    border: 1px solid #e0ddd0;
    border-radius: var(--radius);
    padding: 2.5rem;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.assinatura-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

.assinatura-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent);
}

.assinatura-card .numero {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    opacity: 0.3;
    position: absolute;
    top: 1rem;
    right: 1.5rem;
}

.assinatura-card h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
    color: var(--vermelho);
    font-weight: 700;
}

.assinatura-card p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--muted);
}

/* =====================================================
   SEÇÃO 3: LIVROS (CURTO)
   ===================================================== */
.livros-curto {
    background: var(--dark-bg);
    color: #fff;
    padding: 100px 2rem;
}

.livros-curto .container {
    max-width: var(--max);
    margin: 0 auto;
}

.livros-curto .section-header h2 {
    color: #fff;
}

.livros-curto .section-header p {
    color: #aaa;
}

.livros-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 50px;
}

.livro-card {
    background: var(--dark-card);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.3s;
    border: 1px solid #2a2a2a;
}

.livro-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
}

.livro-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

.livro-card-content {
    padding: 1.5rem;
}

.livro-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.livro-card p {
    font-size: 0.85rem;
    color: #aaa;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.btn-livro {
    display: inline-block;
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 8px 20px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-livro:hover {
    background: var(--accent);
    color: #fff;
}

.cta-central {
    text-align: center;
    margin-top: 40px;
}

.btn-todos {
    background: var(--accent);
    color: #fff;
    padding: 16px 40px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-todos:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
}

/* =====================================================
   SEÇÃO 4: PORTFOLIO DE ARTE
   ===================================================== */
.portfolio-arte {
    background: var(--dark-card);
    padding: 100px 2rem;
}

.portfolio-arte .container {
    max-width: var(--max);
    margin: 0 auto;
}

.portfolio-arte .section-header {
    text-align: center;
    margin-bottom: 60px;
}

.portfolio-arte .section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: #fff;
    font-weight: 700;
}

/* =====================================================
   SEÇÃO 5: SOBRE MIM - DESTAQUES EM BRANCO, BOTÃO ROSA
   ===================================================== */
.sobre-mim {
    background: #0a0a0a;
    padding: 100px 2rem;
    overflow: hidden;
}

.sobre-mim .container {
    max-width: var(--max);
    margin: 0 auto;
}

.sobre-grid {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 60px;
    align-items: start;
    min-height: 475px;
}

.sobre-imagem {
    width: 350px;
    height: 475px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
    margin-top: 20px;
}

.sobre-imagem img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.sobre-imagem:hover img {
    transform: scale(1.05);
}

.sobre-conteudo {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.sobre-tag {
    display: inline-block;
    color: #fff;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    font-weight: 600;
}

.sobre-titulo {
    color: var(--accent);
    /* MUDADO PARA VERMELHO/MAGENTA */
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 25px;
}

.sobre-texto {
    color: #fff;
    font-size: 0.95rem;
    line-height: 1.9;
    opacity: 0.9;
    margin-bottom: 20px;
}

.sobre-texto p {
    margin-bottom: 15px;
}

.sobre-texto strong {
    color: #fff;
    font-weight: 700;
}

.sobre-texto em {
    font-style: italic;
    color: #ccc;
}

.sobre-texto a {
    color: #fff;
    text-decoration: underline;
    transition: opacity 0.3s;
}

.sobre-texto a:hover {
    opacity: 0.8;
}

.sobre-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent);
    /* BOTÃO ROSA/MAGENTA */
    color: #fff;
    /* TEXTO BRANCO */
    padding: 14px 32px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: 2px solid var(--accent);
    /* BORDA ROSA */
    align-self: flex-start;
    margin-top: 10px;
}

.sobre-cta:hover {
    background: var(--accent-dark);
    /* ROXO ESCURO NO HOVER */
    border-color: var(--accent-dark);
    color: #fff;
    transform: translateY(-2px);
}

/* =====================================================
   SEÇÃO 6: BLOG SLIDER
   ===================================================== */
.blog-slider {
    background: var(--blog-bg);
    padding: 100px 2rem;
    overflow: hidden;
    border-top: 1px solid #333;
}

.blog-slider .container {
    max-width: var(--max);
    margin: 0 auto;
}

.blog-slider-header {
    text-align: center;
    margin-bottom: 50px;
}

.blog-slider-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--blog-bege);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.blog-slider-header p {
    color: #888;
    font-size: 1rem;
}

/* Swiper Blog Custom */
.blogSwiper {
    width: 100%;
    padding: 20px 0 60px;
}

.blog-slide {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 60px;
    align-items: center;
    min-height: 475px;
}

.blog-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 20px;
}

.blog-tag {
    display: inline-block;
    color: var(--blog-bege);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    font-weight: 600;
}

.blog-title {
    color: var(--blog-bege);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.4em;
}

.blog-excerpt {
    color: #fff;
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 30px;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    opacity: 0.9;
}

.blog-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--blog-marrom);
    color: #fff;
    padding: 14px 32px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    align-self: flex-start;
    border: 2px solid var(--blog-marrom);
}

.blog-btn:hover {
    background: var(--blog-bege);
    border-color: var(--blog-bege);
    color: #1c1c1c;
    transform: translateY(-2px);
}

.blog-image {
    width: 350px;
    height: 475px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-slide:hover .blog-image img {
    transform: scale(1.05);
}

/* Swiper Navigation Custom */
.blogSwiper .swiper-button-next,
.blogSwiper .swiper-button-prev {
    color: var(--blog-bege);
    width: 50px;
    height: 50px;
    background: rgba(161, 128, 52, 0.1);
    border-radius: 50%;
    transition: all 0.3s;
}

.blogSwiper .swiper-button-next:hover,
.blogSwiper .swiper-button-prev:hover {
    background: var(--blog-bege);
    color: #252525;
}

.blogSwiper .swiper-button-next:after,
.blogSwiper .swiper-button-prev:after {
    font-size: 20px;
    font-weight: bold;
}

.blogSwiper .swiper-pagination-bullet {
    background: #555;
    opacity: 1;
    width: 10px;
    height: 10px;
}

.blogSwiper .swiper-pagination-bullet-active {
    background: var(--blog-bege);
    width: 30px;
    border-radius: 5px;
}

/* =====================================================
   RODAPÉ
   ===================================================== */
.rodape {
    background: var(--dark-card);
    padding: 60px 2rem 30px;
}

.rodape .container {
    max-width: var(--max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.rodape h6 {
    font-size: 1rem;
    margin-bottom: 20px;
    color: var(--accent);
    font-weight: 700;
}

.rodape ul {
    list-style: none;
}

.rodape li {
    margin-bottom: 10px;
}

.rodape a {
    font-size: 0.9rem;
    color: #bbb;
    transition: all 0.3s;
}

.rodape a:hover {
    color: var(--accent);
}

.newsletter input[type=email] {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 4px;
    margin-bottom: 10px;
    font-family: inherit;
}

.newsletter button {
    width: 100%;
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 4px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
}

.newsletter button:hover {
    background: var(--accent-dark);
}

.copy {
    text-align: center;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #333;
    font-size: 0.85rem;
    color: #666;
}

/* =====================================================
   RESPONSIVO
   ===================================================== */

@media(max-width:1100px) {

    /* Lógica do Menu Hambúrguer antecipada para 1100px */
    .hamburger {
        display: flex;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
    }

    .hamburger span {
        width: 25px;
        height: 3px;
        background: #111;
        /* Cor escura para o header transparente */
        transition: 0.3s;
    }

    /* Ajuste de contraste para o hambúrguer no header com fundo escuro */
    header.scrolled .hamburger span {
        background: #fff;
    }

    header nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fff;
        /* Fundo do menu aberto */
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }

    /* Opcional: Se quiser o menu escuro quando a página rolar */
    header.scrolled nav {
        background: var(--dark-bg);
    }

    .menu-toggle:checked~nav {
        display: flex;
    }

    .logo {
        white-space: nowrap;
    }

    /* Outras adaptações do 1100px */
    .temas-grid {
        grid-template-columns: 1fr;
    }

    .assinatura-grid {
        grid-template-columns: 1fr;
    }

    .livros-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .rodape .container {
        grid-template-columns: repeat(2, 1fr);
    }

    .blog-slide {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .blog-image {
        width: 100%;
        height: 400px;
        order: -1;
    }

    .blog-content {
        padding-left: 0;
        text-align: center;
    }

    .blog-btn {
        align-self: center;
    }

    .sobre-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .sobre-imagem {
        width: 100%;
        height: 400px;
        order: -1;
        margin-top: 0;
    }

    .sobre-conteudo {
        padding-top: 0;
        text-align: center;
    }

    .sobre-cta {
        align-self: center;
    }
}

@media(max-width:900px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        align-items: center;
    }

    .hero-foto {
        min-height: 400px;
        order: -1;
    }

    .hero-foto img {
        max-height: 400px;
    }
}

@media(max-width:768px) {
    header {
        padding: 1rem;
    }

    header.scrolled {
        padding: 0.6rem 1rem;
    }

    /* Removido o conflito de display/gap do menu anterior */
    header nav a {
        padding: 12px 0;
        /* Espaçamento ideal para toque no mobile */
        font-size: 0.9rem;
    }

    .livros-grid-4 {
        grid-template-columns: 1fr;
    }

    .rodape .container {
        grid-template-columns: 1fr;
    }

    .blog-image {
        height: 350px;
    }

    .blog-title {
        font-size: 1.5rem;
    }

    .sobre-imagem {
        height: 350px;
    }

    .sobre-titulo {
        font-size: 1.5rem;
    }
}
