/* Estilos gerais */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --text-color: #333;
    --light-text: #f8f9fa;
    --bg-color: #f8f9fa;
    --dark-bg: #2c3e50;
    --card-bg: #fff;
    --border-color: #ddd;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --sidebar-width: 300px;
    --header-height: 60px;
    --font-main: 'Roboto', sans-serif;
}

/* Tema escuro */
.dark-theme {
    --primary-color: #1a2639;
    --secondary-color: #2980b9;
    --text-color: #e0e0e0;
    --bg-color: #121212;
    --dark-bg: #1a1a1a;
    --card-bg: #2a2a2a;
    --border-color: #444;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: var(--transition);
    overflow-x: hidden;
}


/* Barra de Progresso */
.progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: transparent;
    z-index: 1000;
}

.progress-bar {
    height: 100%;
    background-color: var(--secondary-color);
    width: 0;
    transition: width 0.3s ease;
}

/* Container Principal */
.page-container {
    display: flex;
    min-height: 100vh;
    position: relative;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    background-color: var(--dark-bg);
    color: var(--light-text);
    padding: 20px;
    position: fixed;
    left: 0;
    top: 0;
    overflow-y: auto;
    transition: transform 0.3s ease;
    z-index: 100;
}

.sidebar-header {
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.sidebar-header h1 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.sidebar-header p {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Pesquisa */
.search-container {
    margin-bottom: 20px;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--light-text);
    font-size: 0.9rem;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--dark-bg);
    border-radius: 0 0 5px 5px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 10;
    display: none;
}

.search-result-item {
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.search-result-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Menu de Navegação */
.nav-menu {
    list-style: none;
    margin-bottom: 20px;
}

.nav-item {
    margin-bottom: 5px;
}

.nav-link {
    display: block;
    padding: 10px;
    color: var(--light-text);
    text-decoration: none;
    border-radius: 5px;
    transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Marcadores */
.bookmarks-list {
    padding: 10px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.bookmark-item {
    display: flex;
    align-items: center;
    padding: 8px;
    margin-bottom: 5px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
    cursor: pointer;
}

.bookmark-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.bookmark-title {
    flex-grow: 1;
    font-size: 0.9rem;
}

.bookmark-remove {
    background: none;
    border: none;
    color: var(--light-text);
    cursor: pointer;
    opacity: 0.5;
}

.bookmark-remove:hover {
    opacity: 1;
}

/* Conteúdo Principal */
.main-content {
    flex-grow: 1;
    margin-left: var(--sidebar-width);
    padding: 20px;
    transition: margin-left 0.3s ease;
    display: flex; /* Mantém o display flex */
    flex-direction: column; /* Mantém a direção de coluna */
    min-height: 100vh; /* Mantém a altura mínima */
    /* REMOVA o 'overflow: hidden;' se ele existir aqui */
}
/* Capítulos */
.chapter {
    max-width: 900px;
    margin: 0 auto 40px;
    background-color: var(--card-bg);
    border-radius: 10px;
    box-shadow: var(--shadow);
    overflow: hidden;
    display: none;
}

.chapter.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chapter-header {
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 20px;
    display: flex;
    align-items: center;
}

.bookmark-button {
    background: none;
    border: none;
    color: var(--light-text);
    font-size: 1.5rem;
    cursor: pointer;
    margin-right: 15px;
    transition: var(--transition);
}

.bookmark-button:hover, .bookmark-button.active {
    color: #f1c40f;
    transform: scale(1.1);
}

.chapter-header h2 {
    margin: 0;
    font-size: 1.8rem;
}

.chapter-content {
    padding: 30px;
}

.chapter-image {
    margin: 20px 0;
    text-align: center;
}
/* Otimização para LCP (Largest Contentful Paint) */
.chapter-image img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.image-caption {
    margin-top: 10px;
    font-style: italic;
    color: #666;
    font-size: 0.9rem;
}

.chapter-content p {
    margin-bottom: 20px;
    text-align: justify;
}

.chapter-content h3 {
    margin: 30px 0 15px;
    color: var(--primary-color);
}

.chapter-content ul, .chapter-content ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.chapter-content li {
    margin-bottom: 10px;
}

.chapter-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid var(--border-color);
    min-height: 100%;
}

.card-header {
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 15px;
    font-weight: bold;
}

.card-body {
    padding: 15px;
    flex-grow: 1;
}

.card-footer {
    padding: 10px 15px;
    background-color: rgba(0, 0, 0, 0.05);
    text-align: center;
    font-size: 0.9rem;
    color: var(--secondary-color);
    margin-top: auto;
}

/* Responsividade */
@media (max-width: 768px) {
    .card-container {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 480px) {
    .card-container {
        grid-template-columns: 1fr;
    }

    .card {
        font-size: 0.95rem;
    }

    .card-header {
        font-size: 1rem;
    }

    .card-footer {
        font-size: 0.85rem;
    }
}

/* Tabela Maturidade IA */
.maturidade-ia {
    margin: 40px 0;
    padding: 20px;
    background-color: #f9fafb;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.maturidade-ia h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: #1f2937;
}

.maturidade-ia p {
    color: #4b5563;
    margin-bottom: 20px;
}

.tabela-maturidade table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.tabela-maturidade thead {
    background-color: #1f2937;
    color: white;
}

.tabela-maturidade th, 
.tabela-maturidade td {
    border: 1px solid #e5e7eb;
    padding: 15px;
    text-align: left;
    vertical-align: top;
}

.tabela-maturidade th {
    background-color: #1f2937;
    color: #fff;
    font-weight: 600;
}

.tabela-maturidade td strong {
    font-size: 1rem;
    color: #111827;
}

.tabela-maturidade td span {
    display: block;
    font-size: 0.85rem;
    color: #6b7280;
    margin-top: 4px;
}

.tabela-maturidade tbody tr:nth-child(even) {
    background-color: #f9fafb;
}

@media (max-width: 768px) {
    .tabela-maturidade table, 
    .tabela-maturidade thead, 
    .tabela-maturidade tbody, 
    .tabela-maturidade th, 
    .tabela-maturidade td, 
    .tabela-maturidade tr {
        display: block;
    }
    .tabela-maturidade thead tr {
        display: none;
    }
    .tabela-maturidade td {
        border: none;
        position: relative;
        padding-left: 50%;
        margin-bottom: 20px;
    }
    .tabela-maturidade td:before {
        position: absolute;
        left: 15px;
        top: 15px;
        width: 45%;
        white-space: nowrap;
        font-weight: 600;
        color: #6b7280;
        content: attr(data-label);
    }
}


/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: var(--card-bg);
    border-radius: 10px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 30px;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
}

/* Notas */
.notes-container {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.note-form {
    margin-bottom: 20px;
}

.note-input {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    margin-bottom: 10px;
    min-height: 100px;
    background-color: var(--bg-color);
    color: var(--text-color);
}

.notes-list {
    margin-top: 20px;
}

.note-item {
    background-color: var(--bg-color);
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 10px;
    border-left: 3px solid var(--secondary-color);
}

.note-date {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 5px;
}

/* Botões */
.btn {
    padding: 10px 20px;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
}

.btn:hover {
    background-color: #2980b9;
}

.btn:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
}

/* Botões Fixos */
.theme-toggle, .back-to-top, .share-button {
    position: fixed;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: var(--transition);
    z-index: 99;
}

.theme-toggle {
    bottom: 30px;
    right: 30px;
}

.back-to-top {
    bottom: 90px;
    right: 30px;
    opacity: 0;
    visibility: hidden;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.share-button {
    bottom: 150px;
    right: 30px;
}

.share-options {
    position: absolute;
    right: 48px;
    background-color: var(--card-bg);
    border-radius: 5px;
    box-shadow: var(--shadow);
    padding: 10px;
    display: none;
}

.share-button:hover .share-options {
    display: block;
}

.share-button:hover .share-options,
.share-options:hover {
    display: block;
}

.share-option {
    display: block;
    padding: 8px 15px;
    color: var(--text-color);
    text-decoration: none;
    white-space: nowrap;
}

.share-option:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

/* Botão de Menu (Mobile) */
.menu-toggle {
    position: fixed;
    top: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    display: none;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 101;
}

/* Notas especiais */
.note {
    background-color: rgba(52, 152, 219, 0.1);
    border-left: 4px solid var(--secondary-color);
    padding: 15px;
    margin: 20px 0;
    border-radius: 0 5px 5px 0;
}

/* vídeos*/
.chapter-video {
    margin: 40px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.chapter-video iframe {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    border: none;
}

.video-caption {
    text-align: center;
    font-style: italic;
    font-size: 1rem;
    color: #444;
    margin-top: 12px;
    max-width: 800px;
}

.chapter-video > div[style*="aspect-ratio"] {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    position: relative;
}


.video-wrapper {
    width: 100%;
    max-width: 960px;
    aspect-ratio: 16 / 9;
    position: relative;
    overflow: hidden;
}





/* Responsividade */
@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .card-container {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .chapter-header h2 {
        font-size: 1.5rem;
    }
    
    .splash-title {
        font-size: 1.8rem;
    }
    
    .chapter-content {
        padding: 20px;
    }
    
    .card-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .chapter-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .bookmark-button {
        margin-bottom: 10px;
    }
    
    .theme-toggle, .back-to-top, .share-button {
        width: 40px;
        height: 40px;
    }
    
    .theme-toggle {
        bottom: 20px;
        right: 20px;
    }
    
    .back-to-top {
        bottom: 70px;
        right: 20px;
    }
    
    .share-button {
        bottom: 120px;
        right: 20px;
    }
}


/* Estilos para justificação de texto */
p, li {
    text-align: justify;
}

/* Estilos específicos para o capítulo "Sobre o Autor" */
.author-profile {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin: 20px 0;
}

.author-image-container {
    text-align: center;
    margin-bottom: 20px;
}

.author-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--secondary-color);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.author-image:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.author-details h3 {
    color: var(--secondary-color);
    font-size: 2rem;
    margin-bottom: 20px;
    text-align: center;
}

.company-logo-container {
    text-align: center;
    margin: 20px 0;
}

.company-logo {
    max-width: 200px;
    height: auto;
    transition: var(--transition);
}

.company-logo:hover {
    transform: scale(1.1);
}

.expertise-areas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.expertise-item {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--secondary-color);
    transition: var(--transition);
}

.expertise-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.expertise-item h4 {
    color: var(--secondary-color);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.expertise-item i {
    font-size: 1.2rem;
}

.certifications-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 15px 0;
}

.certification-badge {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.certification-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 20px 0;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-color);
    transition: var(--transition);
    font-weight: 500;
}

.contact-link:hover {
    border-color: var(--secondary-color);
    background: var(--secondary-color);
    color: white;
    transform: translateX(5px);
}

.contact-link.linkedin:hover {
    background: #0077b5;
    border-color: #0077b5;
}

.contact-link.email:hover {
    background: #ea4335;
    border-color: #ea4335;
}

.contact-link.website:hover {
    background: #28a745;
    border-color: #28a745;
}

.contact-link i {
    font-size: 1.2rem;
}

.author-message {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 25px;
    border-radius: 15px;
    border-left: 5px solid var(--secondary-color);
    margin: 30px 0;
    box-shadow: var(--shadow);
}

.author-message p {
    font-style: italic;
    color: var(--primary-color);
    font-size: 1.1rem;
    line-height: 1.8;
}

/* --- ESTILOS APRIMORADOS PARA O FOOTER --- */

.footer-enhanced {
    position: relative; /* Garante o contexto de empilhamento */
    z-index: 100;      /* Coloca o rodapé em uma camada alta, acima do conteúdo */
    background-color: #f8f9fa; /* Garante um fundo sólido */
    border-top: 1px solid #dee2e6;
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
    font-family: 'Segoe UI', sans-serif;
    width: 100%; /* Garante que ocupe a largura da coluna de conteúdo */
    margin-top: auto; /* Empurra para o final da coluna flexível */
}

.footer-text {
    color: #6c757d;
    font-size: 0.875rem;
    line-height: 1.6;
}

.footer-text strong, .footer-text a {
    color: #1e3c72;
    font-weight: 600;
    text-decoration: none;
}

.footer-text a:hover {
    text-decoration: underline;
}

.footer-links-col h6 {
    color: #1e3c72;
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-links-col .nav-link {
    padding: 0.25rem 0;
    color: #495057;
}

.footer-links-col .nav-link:hover {
    color: #1e3c72;
}

/* Responsividade para o capítulo do autor */
@media (max-width: 768px) {
    .author-profile {
        gap: 20px;
    }
    
    .author-image {
        width: 150px;
        height: 150px;
    }
    
    .author-details h3 {
        font-size: 1.5rem;
    }
    
    .expertise-areas {
        grid-template-columns: 1fr;
    }
    
    .contact-links {
        gap: 10px;
    }
    
    .contact-link {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    .certifications-grid {
        justify-content: center;
    }
    
    .certification-badge {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
}

@media (max-width: 480px) {
    .author-image {
        width: 120px;
        height: 120px;
    }
    
    .company-logo {
        max-width: 150px;
    }
    
    .author-details h3 {
        font-size: 1.3rem;
    }
    
    .expertise-item {
        padding: 15px;
    }
    
    .author-message {
        padding: 20px;
    }
    
    .author-message p {
        font-size: 1rem;
    }
}


/* Estilo para o logo na sidebar */
.sidebar-logo {
    max-width: 120px;
    height: auto;
    margin: 0 auto 15px auto;
    display: block;
    transition: var(--transition);
}

.sidebar-logo:hover {
    transform: scale(1.05);
}

/* Ajustes para o cabeçalho da sidebar com logo */
.sidebar-header {
    text-align: center;
    padding: 20px 15px;
}

.sidebar-header h1 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.sidebar-header p {
    font-size: 0.9rem;
    opacity: 0.8;
}


/* Estilos para a Capa do Ebook (integrada no index.html) */
.cover-container {
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    max-width: 800px;
    width: 90%;
    box-sizing: border-box;
    margin: 40px auto;
    text-align: center;
}

.cover-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    margin-bottom: 30px;
    border-radius: 8px;
}

.cover-container .title {
    font-size: 2.8em;
    color: var(--primary-color);
    margin-bottom: 15px;
    line-height: 1.2;
}

.cover-container .subtitle {
    font-size: 1.6em;
    color: var(--text-color);
    margin-bottom: 25px;
}

.cover-container .author {
    font-size: 1.4em;
    color: var(--secondary-color);
    margin-top: 30px;
    margin-bottom: 10px;
}

.cover-container .author-name {
    font-weight: bold;
}

.cover-container .company-logo {
    width: 150px;
    height: auto;
    margin-top: 20px;
    margin-bottom: 10px;
}

.cover-container .copyright {
    font-size: 0.9em;
    color: #777;
    margin-top: 40px;
    line-height: 1.5;
}

.cover-container {
    display: block;
    margin-top: 20px;
    font-size: 1em;
    color: var(--secondary-color);
    text-decoration: none;
}


/* Garantir justificação para todo o conteúdo de texto */
.chapter-content p, .chapter-content li {
    text-align: justify;
}




/* Estilos para a Capa do Ebook (integrada no index.html) */
.cover-container {
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    max-width: 800px;
    width: 90%;
    box-sizing: border-box;
    margin: 40px auto;
    text-align: center;
}

.cover-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    margin-bottom: 30px;
    border-radius: 8px;
}

.cover-container .title {
    font-size: 2.8em;
    color: var(--primary-color);
    margin-bottom: 15px;
    line-height: 1.2;
}

.cover-container .subtitle {
    font-size: 1.6em;
    color: var(--text-color);
    margin-bottom: 25px;
}

.cover-container .author {
    font-size: 1.4em;
    color: var(--secondary-color);
    margin-top: 30px;
    margin-bottom: 10px;
}

.cover-container .author-name {
    font-weight: bold;
}

.cover-container .company-logo {
    width: 150px;
    height: auto;
    margin-top: 20px;
    margin-bottom: 10px;
}

.cover-container .copyright {
    font-size: 0.9em;
    color: #777;
    margin-top: 40px;
    line-height: 1.5;
}

.cover-container  {
    display: block;
    margin-top: 20px;
    font-size: 1em;
    color: var(--secondary-color);
    text-decoration: none;
}


/* Garantir justificação para todo o conteúdo de texto */
.chapter-content p, .chapter-content li {
    text-align: justify;
}





/* Garantir que o conteúdo principal não seja sobreposto */
.main-content {
    padding-top: 20px; /* Ajuste conforme necessário para evitar sobreposição do header */
}


.chapter {
    position: relative;
    z-index: 2;
}



/* Estilos para a Capa do Ebook */
.cover-container {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: var(--dark-bg);
    color: var(--light-text);
    text-align: center;
    padding: 20px;
    overflow: hidden;
}

.cover-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    z-index: 0;
}

.cover-container .title {
    font-size: 3.5rem;
    margin-bottom: 10px;
    z-index: 1;
    position: relative;
}

.cover-container .subtitle {
    font-size: 1.8rem;
    opacity: 0.9;
    margin-bottom: 30px;
    z-index: 1;
    position: relative;
}

.cover-container .author {
    font-size: 1.5rem;
    margin-bottom: 20px;
    z-index: 1;
    position: relative;
}

.cover-container .author-name {
    font-weight: bold;
    color: var(--secondary-color);
}

.cover-container .company-logo {
    max-width: 250px;
    height: auto;
    margin-top: 30px;
    z-index: 1;
    position: relative;
}

.cover-container .copyright {
    font-size: 0.9rem;
    margin-top: 40px;
    line-height: 1.5;
    max-width: 800px;
    z-index: 1;
    position: relative;
}


/* Ajustes para o rodapé */
.main-content {
    padding-bottom: 60px;
}

/* Estilo para o logo na sidebar */
.sidebar-logo {
    max-width: 150px;
    height: auto;
    margin-bottom: 15px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}



/* Otimização para elementos invisíveis de SEO */
.seo-hidden {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(1px, 1px, 1px, 1px) !important;
    white-space: nowrap !important;
}


/* explicação de termos técnicos */
.tooltip {
  position: relative;
  display: inline-block;
  cursor: help;
  border-bottom: 1px dotted #555;
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: 260px;
  background-color: #333;
  color: #fff;
  text-align: left;
  border-radius: 6px;
  padding: 8px 12px;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s;
  font-size: 0.9rem;
  line-height: 1.4;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}

/* Infográfico */
.infografico-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    font-family: 'Roboto', sans-serif;
}


.infografico-title {
    font-size: 1.2rem; 
    color: #0d47a1;    
    text-align: center;   
    margin-bottom: 16px;
    font-weight: bold;
}


.infografico-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.infografico-card {
    background-color: #e3f2fd;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease;
}

.infografico-card:hover {
    transform: translateY(-4px);
}

.infografico-card img {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
}

.infografico-card h3 {
    font-size: 1.2rem;
    margin: 10px 0;
    color: #0d47a1;
}

.infografico-card p {
    font-size: 1rem;
    color: #444;
    line-height: 1.4;
}

/* Fases FAQ */
.framework-bloco {
  padding: 16px;
  margin-bottom: 20px;
  border-left: 6px solid #ccc;
  border-radius: 8px;
  background-color: #f9f9f9;
}

.fase-1 { border-color: #2ecc71; background-color: #f0fff5; }   /* Verde - Estratégia */
.fase-2 { border-color: #9b59b6; background-color: #faf0ff; }   /* Roxo - Governança */
.fase-3 { border-color: #3498db; background-color: #f0f8ff; }   /* Azul - Compliance */
.fase-4 { border-color: #e67e22; background-color: #fff7f0; }   /* Laranja - Execução */

.framework-bloco h5 {
  margin-top: 0;
  font-size: 1.1em;
  color: #2c3e50;
}

.framework-bloco ul {
  padding-left: 20px;
  margin: 10px 0 0 0;
}

.framework-bloco li {
  margin-bottom: 8px;
  line-height: 1.5;
}



/* Tabela de Riscos FAQ */
.faq-details {
  margin-top: 20px;
}

.risk-block {
  padding: 16px;
  margin-bottom: 20px;
  border-left: 6px solid #ccc;
  border-radius: 8px;
  background-color: #f9f9f9;
}

.risco-operacional { border-color: #e74c3c; background-color: #fff5f5; }
.risco-compliance   { border-color: #f1c40f; background-color: #fffdf0; }
.risco-financeiro   { border-color: #e67e22; background-color: #fff8f2; }
.risco-reputacional { border-color: #2980b9; background-color: #f0f8ff; }

.risk-block h5 {
  margin-top: 0;
  font-size: 1.1em;
  color: #2c3e50;
}

.risk-block ul {
  padding-left: 20px;
  margin: 10px 0 0 0;
}

.risk-block li {
  margin-bottom: 8px;
  line-height: 1.5;
}

