/* Definição de Variáveis CSS */
:root {
    /* Cores */
    --primary-color: #2C3E50; /* Azul escuro */
    --secondary-color: #3498DB; /* Azul vibrante */
    --background-color: #FFFFFF;
    --light-gray: #ECF0F1;
    --text-color: #2C3E50;
    --cta-color: #27AE60; /* Verde */
    --cta-hover-color: #219d55;

    /* Fontes */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Poppins', sans-serif;

    /* Transições e Animações */
    --transition-speed: 0.3s;
    --fade-in-duration: 0.8s;
}

/* Estilos Globais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.6;
    overflow-x: hidden; /* Evita a barra de rolagem horizontal em transições */
}

h1, h2, h3 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-weight: 700;
}

h1 { font-size: clamp(2.5rem, 6vw, 4rem); }
h2 { font-size: clamp(2rem, 5vw, 2.5rem); }
h3 { font-size: clamp(1.5rem, 4vw, 2rem); }

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Animações de Entrada */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity var(--fade-in-duration) ease-out, transform var(--fade-in-duration) ease-out;
}
.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Botões CTA */
.cta-button {
    display: inline-block;
    background-color: var(--cta-color);
    color: #FFFFFF;
    font-family: var(--font-heading);
    font-weight: 600;
    text-decoration: none;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1.2rem;
    transition: all var(--transition-speed) ease;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    transform: translateY(-5px) scale(1.05);
    background-color: var(--cta-hover-color);
    box-shadow: 0 8px 15px rgba(39, 174, 96, 0.3);
}

/* 1. Hero Section */
#hero-section {
  position: relative;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #FFFFFF;
  background-image: linear-gradient(rgba(44, 62, 80, 0.8), rgba(44, 62, 80, 0.8)), url('Imagens/Fundo_header.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.hero-content {
  padding: 0 15px;
}

.hero-title {
  font-size: 3.5rem;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: #FFFFFF;
}

.hero-title .highlight {
  color: var(--secondary-color);
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  color: var(--light-gray);
}

.header-buttons {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin-top: 2rem;
}

.secondary-cta {
  background-color: white;
  border: 2px solid var(--secondary-color);
  color: var(--secondary-color);
  transition: background-color 0.3s ease, color 0.3s ease;
}

.secondary-cta:hover {
  background-color: rgb(147, 176, 255);
  color: white;
}

/* Seções de Conteúdo */
.content-section {
  padding: 6rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  font-size: 2.5rem;
}

.section-text {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}


/* --- CÓDIGO PARA TELAS MENORES (RESPONSIVIDADE) --- */

/* Media query para telas com largura máxima de 768px (smartphones e tablets em modo retrato) */
@media screen and (max-width: 768px) {
  /* Adaptação da seção principal (Hero Section) */
  #hero-section {
    height: auto; /* A altura se ajusta ao conteúdo */
    padding: 100px 15px; /* Adiciona um padding para manter o espaçamento */
    background-attachment: scroll;
  }

  .hero-title {
    font-size: 2.5rem; /* Diminui o tamanho do título principal */
    line-height: 1.1;
  }

  .hero-subtitle {
    font-size: 1.2rem; /* Diminui o tamanho do subtítulo */
    margin-bottom: 1.5rem;
  }

  /* Adaptação dos botões de cabeçalho */
  .header-buttons {
    flex-direction: column; /* Alinha os botões verticalmente */
    align-items: center; /* CORREÇÃO: CENTRALIZA OS BOTÕES NA TELA */
    gap: 20px; /* Reduz o espaçamento entre os botões */
    margin-top: 1.5rem;
  }
  
  .header-buttons a {
    text-align: center; /* CENTRALIZA O TEXTO DENTRO DE CADA BOTÃO */
    width: 100%; /* Faz com que os botões ocupem a largura total disponível */
    max-width: 300px; /* Adiciona um limite para que os botões não fiquem excessivamente largos */
  }

  /* Adaptação das seções de conteúdo */
  .section-title {
    font-size: 2rem; /* Diminui o tamanho do título das seções */
    margin-bottom: 2rem;
  }
}

/* Media query adicional para telas ainda menores, como smartphones pequenos */
@media screen and (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }
}

/* --- Estilos para a Nova Seção de Preview (Atualizada) --- */
#preview-section {
    background: radial-gradient(circle at 50% 50%, #1a2333 0%, #0a111a 100%);
    background-attachment: fixed;
    padding: 60px 0;
    color: var(--text-color);
}

.preview-container {
    padding: 0;
}

.preview-box-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    background-color: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.preview-box-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

#preview-section .section-title {
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
}

#preview-section .section-text {
    margin-bottom: 30px;
    color: white;
    font-size: 1.15rem;
    line-height: 1.8;
}

.button-wrapper {
    margin-top: 30px;
    text-align: center;
}

.cta-button {
    display: inline-block;
    padding: 15px 30px;
    font-size: 1em;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    text-align: center;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.primary-cta {
    background-color: var(--primary-color);
    color: var(--white);
}

.primary-cta:hover {
    background-color: var(--dark-blue);
}

/* Media Queries */
@media (max-width: 768px) {
    #preview-section {
        padding: 40px 0;
    }
    
    .preview-box-wrapper {
        padding: 20px;
    }

    #preview-section .section-title {
        font-size: 2rem;
    }

    #preview-section .section-text {
        font-size: 1rem;
    }

    .cta-button {
        padding: 12px 24px;
        font-size: 1rem;
    }
}



/*
 * 3. Seção do Problema
 */
#problema-section {
    background-color: #FFFFFF;
    color: var(--primary-color);
    text-align: center;
    padding: 6rem 0; /* padding padrão para desktop */
}

#problema-section .section-title {
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.highlight-text-problem {
    color: var(--secondary-color);
    font-weight: 700;
}

.section-text strong {
    color: var(--secondary-color);
}

.section-text {
    max-width: 800px;
    margin: 0 auto 1.5rem;
    font-size: 1.2rem; /* Tamanho padrão para desktop */
    line-height: 1.6;
}

.section-text:last-of-type {
    margin-bottom: 0;
}

/*
 * Media Queries para a Seção de Problema
 */
@media (max-width: 768px) {
    #problema-section {
        padding: 4rem 1rem; /* Diminui o padding e adiciona um padding lateral */
    }

    #problema-section .section-title {
        font-size: 2rem; /* Ajusta o tamanho do título */
    }

    .section-text {
        font-size: 1rem; /* Reduz o tamanho do texto para melhor leitura */
    }
}

/* Seção Mapa */
#solucao-section {
    background-color: var(--light-gray);
    position: relative;
    overflow: hidden;
    padding: 6rem 0;
}

#solucao-section .section-title {
    color: #FFFFFF;
    font-size: 2.5rem; /* Padrão para desktop */
}

.carousel-wrapper {
    position: relative;
    z-index: 1;
}

#solucao-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('Imagens/Fundo_1_mapa.png') no-repeat center center/cover;
    opacity: 0.93;
    z-index: 0;
    background-attachment: fixed; /* Efeito Parallax */
}

.carousel-container {
    position: relative;
    height: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    align-items: center;
    position: relative;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.solution-card {
    background-color: #FFFFFF;
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    min-width: 350px;
    margin: 0 2rem;
    cursor: pointer;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1;
    position: relative;
    transform: scale(0.65); 
    opacity: 0.7;
}

.solution-card.active {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
    z-index: 2;
    opacity: 1;
}

.icon-circle {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 80px;
    height: 80px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    margin-bottom: 1rem;
    box-shadow: 0 4px 10px rgba(52, 152, 219, 0.4);
    transition: all 0.3s ease;
    font-size: 50px;
}

.solution-card.active .icon-circle {
    transform: scale(1.1);
}

.solution-card h3 {
    font-size: 1.8rem; /* Padrão para desktop */
    margin-bottom: 0.8rem;
}

.solution-card.active h3 {
    font-size: 2.2rem;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.7);
    border: none;
    cursor: pointer;
    padding: 1rem;
    border-radius: 50%;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.carousel-button:hover {
    background-color: #FFFFFF;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

#prev-button { left: 2rem; }
#next-button { right: 2rem; }

.carousel-button svg {
    color: var(--primary-color);
    width: 24px;
    height: 24px;
}

/* Media Queries para a Seção de Mapa */
@media (max-width: 992px) {
    #solucao-section .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
}
/* Media Queries para a Seção de Mapa (Revisada para cards quadrados) */
@media (max-width: 768px) {
    #solucao-section::before {
        background-attachment: scroll; /* Desativa o efeito parallax */
    }

    .carousel-container {
        height: 350px; /* Altura do container para acomodar os cards */
        overflow: hidden;
    }

    .solution-card {
        width: 280px; /* Define uma largura fixa para o card */
        height: 280px; /* Define uma altura igual para manter a proporção quadrada */
        min-width: unset; /* Remove a largura mínima que estava esticando o card */
        margin: 0 1rem;
        padding: 1.5rem;
        
        /* Centraliza o conteúdo dentro do card */
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        
        /* Ajuste nas escalas para telas menores */
        transform: scale(0.85); 
        opacity: 0.8;
    }

    /* O card ativo */
    .solution-card.active {
        transform: scale(1);
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
    }
    
    .solution-card h3 {
        font-size: 1.2rem;
    }

    .solution-card.active h3 {
        font-size: 1.4rem;
    }
    
    .solution-card p {
        font-size: 0.9rem;
    }

    .icon-circle {
        width: 50px;
        height: 50px;
        font-size: 30px;
        margin-bottom: 0.5rem;
    }

    .carousel-button {
        display: block;
        top: 50%;
        transform: translateY(-50%);
        padding: 0.8rem;
    }

    #prev-button {
        left: 0.5rem;
    }

    #next-button {
        right: 0.5rem;
    }
}

/* Detalhes dos E-books */
#ebooks-section {
    padding: 6rem 0;
}

.ebook-item {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-bottom: 6rem;
}

@media (max-width: 992px) {
    .ebook-item {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
        margin-bottom: 4rem; /* Reduz o espaçamento entre os e-books */
    }
}

.ebook-item.reverse-layout {
    flex-direction: row-reverse;
}

@media (max-width: 992px) {
    .ebook-item.reverse-layout {
        flex-direction: column;
    }
}

.ebook-cover {
    max-width: 450px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.4s ease-in-out, box-shadow 0.4s ease-in-out;
}

.ebook-cover:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.ebook-details h3 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}
.ebook-details p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
    text-align: left;
}

.ebook-features {
    list-style: none;
    padding: 0;
}

.ebook-features li {
    display: flex;
    align-items: flex-start;
    font-family: var(--font-body);
    font-weight: 600;
    margin-bottom: 0.8rem;
    font-size: 1rem;
}

.check-icon {
    color: var(--cta-color);
    margin-right: 0.8rem;
    font-size: 1.4rem;
    line-height: 1;
    transform: translateY(2px);
}

/* Media Queries para a Seção de E-books */
@media (max-width: 992px) {
    .ebook-details h3 {
        font-size: 2rem;
    }
    .ebook-cover {
        max-width: 350px;
    }
}

@media (max-width: 768px) {
    #ebooks-section {
        padding: 4rem 1rem;
    }
    .ebook-item {
        margin-bottom: 3rem;
    }
    .ebook-cover {
        max-width: 280px; /* Reduz ainda mais a largura da capa */
    }
    .ebook-details {
        padding: 0 1rem;
    }
    .ebook-details h3 {
        font-size: 1.5rem; /* Ajusta o tamanho do título do e-book */
        margin-bottom: 1rem;
    }
    .ebook-details p {
        font-size: 1rem; /* Ajusta o tamanho do parágrafo */
        margin-bottom: 1rem;
    }
    .ebook-features li {
        font-size: 0.9rem; /* Ajusta o tamanho do texto da lista */
    }
    .check-icon {
        font-size: 1.2rem; /* Ajusta o tamanho do ícone */
    }
}

/* 5. Seção de Autoridade */
#sobre-ape-section {
    background-color: var(--light-gray);
    padding: 6rem 0;
}

#sobre-ape-section .section-title {
    text-align: center;
    margin-bottom: 4rem;
    font-size: 2.5rem;
    line-height: 1.2;
}

.highlight-title {
    color: var(--secondary-color);
    display: block;
    font-size: 1.5rem;
    font-weight: 500;
    margin-top: 0.5rem;
}

.author-block {
    display: flex;
    align-items: center;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
    background-color: #FFFFFF;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

@media (max-width: 992px) {
    .author-block {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
        padding: 2rem; /* Reduz o padding interno do bloco */
        margin: 0 1rem; /* Adiciona margem lateral para não grudar nas bordas */
    }
}

.author-info p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    text-align: left;
}

.author-info p:last-child {
    margin-bottom: 0;
}

.author-link {
    text-decoration: none;
    color: var(--secondary-color);
    transition: color 0.3s ease, border-bottom 0.3s ease;
    font-weight: 700;
}

.author-link:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.author-image-link {
    display: inline-block;
    transition: transform 0.4s ease;
}

.author-image {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s ease-in-out, box-shadow 0.4s ease-in-out;
}

.author-image-link:hover .author-image {
    transform: scale(1.08);
    box-shadow: 0 0 0 5px var(--secondary-color), 0 0 0 8px rgba(52, 152, 219, 0.5);
}

@media (max-width: 768px) {
    #sobre-ape-section .section-title {
        font-size: 2rem; /* Reduz o tamanho do título principal */
    }
    .highlight-title {
        font-size: 1.2rem; /* Reduz o tamanho do subtítulo destacado */
    }
    .author-image {
        width: 200px; /* Reduz ainda mais o tamanho da imagem */
        height: 200px;
    }
    .author-info p {
        font-size: 1rem; /* Reduz o tamanho do texto do parágrafo */
        margin-bottom: 1rem;
    }
}

/* Nova Seção: Autoridade Final */
#autoridade-final-section {
    background-color: white;
    padding: 6rem 0;
    text-align: center;
}

.final-autoridade-block {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row; /* Essa regra garante que a imagem (primeiro elemento no HTML) fique à esquerda */
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
    background-color: #FFFFFF;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

@media (max-width: 992px) {
    .final-autoridade-block {
        flex-direction: column; 
        gap: 2rem;
        padding: 2rem;
        margin: 0 0.8rem;
    }
    .final-autoridade-text {
        order: -1; /* Essa regra só é ativada em telas menores */
        text-align: center;
    }
}

.final-autoridade-text {
    text-align: left;
}

.final-autoridade-text h2.section-title {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.final-autoridade-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.final-autoridade-image-wrapper {
    flex-shrink: 0;
    position: relative;
    width: 350px;
    height: 350px;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.final-autoridade-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.final-autoridade-image-wrapper:hover .final-autoridade-image {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    #autoridade-final-section {
        padding: 4rem 1rem;
    }
    .final-autoridade-block {
        padding: 1.5rem;
    }
    .final-autoridade-text h2.section-title {
        font-size: 1.8rem;
    }
    .final-autoridade-text p {
        font-size: 1rem;
    }
    .final-autoridade-image-wrapper {
        width: 250px;
        height: 250px;
    }
}

/* 7. CTA Final */
#cta-final-section {
    background-color: var(--primary-color);
    color: #FFFFFF;
    text-align: center;
    padding: 6rem 0; /* Padding padrão para desktop */
}

#cta-final-section .section-title {
    color: #FFFFFF;
    font-size: 3rem; /* Título maior para mais impacto */
    margin-bottom: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.highlight-text-cta {
    color: var(--secondary-color);
}

#cta-final-section .section-text {
    color: #FFFFFF;
    max-width: 700px;
    margin: 0 auto 2.5rem;
    font-size: 1.2rem;
    line-height: 1.6;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1.2rem 3rem;
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.4s ease-in-out;
    animation: pulsate 2s infinite ease-in-out;
}

@keyframes pulsate {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(52, 152, 219, 0.4); }
    50% { transform: scale(1.05); box-shadow: 0 0 0 20px rgba(52, 152, 219, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(52, 152, 219, 0.4); }
}

.primary-cta {
    background-color: var(--secondary-color);
    color: #FFFFFF;
    border: 2px solid var(--secondary-color);
}

.primary-cta:hover {
    background-color: #1d63ad;
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/*
 * Media Queries para a Seção de CTA Final
 */
@media (max-width: 768px) {
    #cta-final-section {
        padding: 4rem 1rem; /* Reduz o padding vertical e adiciona padding lateral */
    }

    #cta-final-section .section-title {
        font-size: 2rem; /* Reduz o tamanho do título */
        margin-bottom: 1rem;
    }

    #cta-final-section .section-text {
        font-size: 1rem; /* Reduz o tamanho do texto */
        margin-bottom: 2rem;
    }

    .cta-button {
        padding: 1rem 2.5rem; /* Reduz o padding do botão */
        font-size: 1rem; /* Reduz o tamanho da fonte do botão */
    }
}

/* Estilo do Scrollbar para navegadores WebKit (Chrome, Safari, Edge) */
::-webkit-scrollbar {
    width: 12px; /* Largura da barra de rolagem vertical */
    height: 12px; /* Altura da barra de rolagem horizontal */
}

::-webkit-scrollbar-track {
    background: var(--light-gray); /* Cor de fundo da trilha */
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background-color: var(--secondary-color); /* Cor do "polegar" */
    border-radius: 10px;
    border: 3px solid var(--light-gray); /* Adiciona uma borda para um efeito 3D sutil */
    transition: background-color 0.3s ease; /* Transição suave */
}

::-webkit-scrollbar-thumb:hover {
    background-color: var(--primary-color); /* Cor do "polegar" no hover */
}

/* Estilo do Scrollbar para Firefox */
body {
    scrollbar-width: thin; /* Define a largura como fina */
    scrollbar-color: var(--secondary-color) var(--light-gray); /* Cor do "polegar" e da trilha */
}