﻿/* --- Reset e Estilos Gerais --- */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }
body { background-color: #000; color: #ccc; line-height: 1.6; overflow-x: hidden; }

h1, h2, h3 { 
    color: #fff; 
    margin-bottom: 15px; 
    font-weight: 400; 
    text-transform: uppercase;
    letter-spacing: 1px;
}
p { margin-bottom: 20px; font-size: 0.95rem; color: #a0a0a0; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
a:hover { color: #fff; }

.container { max-width: 1100px; margin: 0 auto; padding: 40px 20px; }

img { max-width: 100%; height: auto; }

/* --- Header / Navbar --- */
header { 
    padding: 20px 40px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    background-color: rgba(0,0,0,0.9);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0; 
    z-index: 500;
    border-bottom: 1px solid #222;
}
.menu-icon { font-size: 1.5rem; cursor: pointer; color: #fff; padding: 5px; }
.nav-icons { display: flex; gap: 20px; align-items: center; }
.phone-number { font-size: 0.8rem; margin-right: 15px; }

/* Wrapper para logo/menu em publicacoes.html */
.menu-wrapper { display: flex; align-items: center; }
.logo-text { font-size: 1.2rem; color: #fff; font-weight: bold; margin-left: 20px; text-transform: uppercase; letter-spacing: 1px;}

/* --- SIDEBAR MENU --- */
.sidebar-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.7); z-index: 998;
    display: none;
}
.sidebar {
    position: fixed; top: 0; left: 0; width: 280px; height: 100%;
    background-color: #f4f4f4; color: #111; z-index: 999;
    padding: 30px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    box-shadow: 2px 0 10px rgba(0,0,0,0.5);
    text-align: left;
}
.sidebar.open { transform: translateX(0); }
.close-btn { 
    position: absolute; top: 20px; right: 20px; 
    font-size: 1.5rem; cursor: pointer; color: #333; 
}
.sidebar-nav { margin-top: 60px; display: flex; flex-direction: column; gap: 25px; }
.sidebar-nav a { font-size: 1.1rem; color: #333; font-weight: 500; transition: 0.2s; }
.sidebar-nav a.active { border-bottom: 2px solid #000; display: inline-block; width: fit-content; }
.sidebar-nav a:hover { color: #000; }

/* --- Hero Section --- */
.hero { text-align: center; padding: 60px 20px 80px 20px; border-bottom: 1px solid #222; }
.hero-logo { margin-bottom: 25px; display: flex; justify-content: center; align-items: center; }
.hero-logo img { max-width: 1500px; height: auto; }
.hero h1 { font-size: 2.5rem; margin-bottom: 10px; }
.hero h2 { font-size: 1.2rem; color: #ccc; margin-bottom: 40px; text-transform: none; letter-spacing: 0; }
.btn { 
    background-color: #444; 
    color: #fff; 
    padding: 12px 30px; 
    border: none; 
    cursor: pointer; 
    font-size: 1rem; 
    transition: all 0.3s;
    border-radius: 50px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(255,255,255,0.05);
}
.btn:hover { 
    background-color: #fff; 
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,255,255,0.2);
}

/* --- Seções de Conteúdo --- */
.content-section { padding: 40px 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; margin-bottom: 60px; }
.text-content { padding: 0 20px; }
.img-placeholder { 
    width: 100%; height: 300px; background-color: #333; 
    display: flex; align-items: center; justify-content: center; 
    color: #777; object-fit: cover; 
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* --- Publicações Layout --- */
.ebook-layout { display: grid; grid-template-columns: 300px 1fr; gap: 50px; align-items: start; }
.ebook-cover { 
    width: 100%; height: auto; 
    box-shadow: 0 0 15px rgba(255,255,255,0.1); 
    border-radius: 8px;
}

/* --- Galeria --- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.gallery-item { 
    height: 200px; background-color: #222; overflow: hidden; 
    border-radius: 8px;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gallery-item:hover img { 
    transform: scale(1.1);
    opacity: 0.8;
}

/* --- Styles from publicacoes.html (Merged) --- */
.book-hero { text-align: center; padding: 40px 0; }
.book-title { color: #d4a055; font-size: 1.8rem; margin-bottom: 10px; }
.book-subtitle { font-size: 1.1rem; color: #fff; margin-bottom: 10px; text-transform: uppercase; letter-spacing: 2px;}
.download-link-main { display: inline-block; color: #888; font-size: 0.9rem; margin-bottom: 30px; }
.book-cover-img { max-width: 100%; width: 450px; height: auto; box-shadow: 0 0 20px rgba(255,255,255,0.05); border-radius: 8px; }

.chapters-section { margin-top: 60px; }
.section-title { text-align: center; color: #fff; font-size: 1.5rem; margin-bottom: 10px; }
.chapter-sub { text-align: center; color: #666; margin-bottom: 30px; font-size: 0.9rem; }
.chapter-list { list-style: none; background-color: #0a0a0a; border: 1px solid #222; border-radius: 8px; overflow: hidden; }
.chapter-item { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; border-bottom: 1px solid #222; }
.chapter-item:last-child { border-bottom: none; }
.chapter-item:hover { background-color: #151515; }
.chapter-name { font-weight: 500; color: #ddd; }
.download-btn { display: flex; align-items: center; gap: 8px; color: #777; font-size: 0.9rem; cursor: pointer; transition: 0.2s; }
.download-btn:hover { color: #fff; }

.info-section { margin-top: 80px; border-top: 1px solid #222; padding-top: 40px; }
.info-title { color: #fff; font-size: 1.4rem; margin-bottom: 20px; }
.info-text { color: #999; margin-bottom: 20px; font-size: 0.95rem; max-width: 700px; }


/* --- Footer --- */
.contact-section { background-color: #000; padding-top: 20px; }
.schedule-banner { background-color: #111; text-align: center; padding: 20px; margin-bottom: 40px; border-radius: 8px; }
.map-wrapper { width: 100%; height: 400px; background: #222; border-radius: 8px; overflow: hidden; }
footer { border-top: 1px solid #222; padding: 60px 20px; text-align: center; margin-top: 40px; }

.newsletter-form { 
    max-width: 600px; 
    margin: 0 auto 40px auto; 
    display: flex; 
    align-items: center;
    gap: 10px; 
    border-bottom: 1px solid #444; 
    padding-bottom: 10px;
}
.newsletter-form h3 { margin-bottom: 0; margin-right: 15px; font-size: 1.1rem; white-space: nowrap; }
.newsletter-form input { flex: 1; background: transparent; border: none; padding: 10px; color: #fff; outline: none; }
.newsletter-form button { 
    background-color: #666; 
    color: #fff; 
    border: none; 
    padding: 10px 25px; 
    cursor: pointer; 
    border-radius: 50px;
    font-size: 0.9rem;
    text-transform: uppercase;
    font-weight: bold;
}
.newsletter-form button:hover { background-color: #fff; color: #000; }
.footer-bottom { font-size: 0.8rem; color: #666; margin-top: 40px; }
.footer-link { display: inline-block; margin-top: 15px; color: #888; border-bottom: 1px solid #444; padding-bottom: 2px; }

@media (max-width: 768px) {
    .grid-2, .ebook-layout, .gallery-grid { grid-template-columns: 1fr; }
    .nav-icons { display: none; }
    
    /* Typography Adjustments */
    h1 { font-size: 1.8rem; }
    .hero h1 { font-size: 2rem; }
    h2 { font-size: 1.3rem; }
    .hero h2 { font-size: 1rem; }
    
    /* Layout Adjustments */
    .container { padding: 20px 15px; }
    header { padding: 15px 20px; }
    
    .hero { padding: 40px 15px; }
    .hero-logo img { max-width: 80%; }
    
    .ebook-cover { width: 100%; max-width: 250px; margin: 0 auto; display: block; }
    
    .newsletter-form { flex-direction: column; border-bottom: none; gap: 15px; }
    .newsletter-form input { width: 100%; border-bottom: 1px solid #444; text-align: center; }
    .newsletter-form h3 { margin-right: 0; margin-bottom: 10px; }
    .newsletter-form button { width: 100%; margin-top: 10px; }
    
    /* Gallery */
    .gallery-grid { gap: 10px; }
    .gallery-item { height: 250px; }

    /* Map */
    .map-wrapper { height: 300px; }
    
    /* Search Box */
    .search-box { width: 100%; }
    .search-input { padding: 12px 45px 12px 15px; font-size: 1rem; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.6rem; }
    .book-title { font-size: 1.5rem; }
    .chapter-item { padding: 15px 10px; flex-direction: column; align-items: flex-start; gap: 10px; }
    .download-btn { align-self: flex-start; background: #222; padding: 5px 10px; border-radius: 4px; }
}
