/* Reset Básico */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Utilitários */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

a { text-decoration: none; }

/* Cabeçalho */
header {
    background: #003366; /* Azul Acadêmico */
    color: #fff;
    padding: 15px 0; /* Reduzi um pouco para ficar mais elegante com o logo */
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo do Cabeçalho */
.logo { font-size: 1.5rem; font-weight: bold; }

.header-logo {
    height: 45px; /* Altura ideal para menu */
    width: auto;
    vertical-align: middle;
    display: block; /* Garante que não tenha espaços extras */
}

nav ul { display: flex; list-style: none; align-items: center; }
nav ul li { margin-left: 20px; }
nav ul li a { color: #fff; font-weight: 300; font-size: 0.95rem; transition: color 0.3s; }
nav ul li a:hover { color: #00aaff; }

.btn-nav { 
    background: #00aaff; 
    padding: 8px 15px; 
    border-radius: 5px; 
    color: #fff !important; 
    font-weight: 500;
}
.btn-nav:hover { background: #0088cc; }

/* Hero Section (CORRIGIDO: Opacidade e Parallax) */
.hero {
    /* Mudei de 0.9 para 0.6. O fundo agora aparece! */
    background: linear-gradient(rgba(0,51,102,0.6), rgba(0,51,102,0.6)), url('fundo.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* A imagem fica fixa enquanto o texto rola */
    height: 80vh;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero h1 { font-size: 3rem; margin-bottom: 10px; text-shadow: 2px 2px 4px rgba(0,0,0,0.5); }
.hero p { font-size: 1.3rem; text-shadow: 1px 1px 2px rgba(0,0,0,0.5); }

/* Botões */
.btn-primary {
    display: inline-block;
    background: #00aaff;
    color: #fff;
    padding: 12px 24px;
    border-radius: 5px;
    margin: 10px;
    transition: 0.3s;
    font-weight: bold;
}

.btn-secondary {
    display: inline-block;
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
    padding: 10px 22px;
    border-radius: 5px;
    margin: 10px;
    transition: 0.3s;
}

.btn-primary:hover { background: #0088cc; transform: translateY(-2px); }
.btn-secondary:hover { background: #fff; color: #003366; transform: translateY(-2px); }

/* Seções */
.section-light { padding: 80px 0; background: #f4f4f4; }
.section-dark { padding: 80px 0; background: #fff; }

h2 { margin-bottom: 40px; color: #003366; font-size: 2.2rem; }

/* Logo da Editora (Estilos Novos) */
.editora-logo {
    max-width: 350px; /* Tamanho máximo do logo azul */
    width: 80%;       /* Responsivo em telas pequenas */
    height: auto;
    margin-bottom: 10px;
}

/* Cards (Grid) */
.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.card {
    background: #fff; /* Fundo branco puro para destaque */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-top: 5px solid #00aaff;
    transition: transform 0.3s;
}

.card:hover { transform: translateY(-5px); }
.card h3 { margin-bottom: 15px; color: #003366; }

/* Footer */
footer {
    background: #002244;
    color: #ccc;
    padding: 40px 0;
    font-size: 0.9rem;
}

footer a { color: #00aaff; text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* Responsividade Mobile */
@media (max-width: 768px) {
    header .container { flex-direction: column; }
    nav ul { margin-top: 20px; flex-direction: column; width: 100%; }
    nav ul li { margin: 10px 0; }
    .hero h1 { font-size: 2.2rem; }
    .header-logo { height: 40px; } /* Logo menor no celular */
}
/* Estilos do Formulário de Contato */
.form-contato {
    max-width: 600px;
    margin: 30px auto 0;
    text-align: left;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    background: #f9f9f9;
}

.form-group input:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: #00aaff;
    background: #fff;
    box-shadow: 0 0 5px rgba(0, 170, 255, 0.2);
}

/* Alertas de Sucesso/Erro */
.alerta {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
}

.alerta.sucesso {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alerta.erro {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}