/* 
  Este arquivo contém regras de estilo globais aplicadas a todo o site.
*/

/* 
  Define um espaçamento superior para a rolagem de âncoras.
  Isso garante que, ao clicar em um link para uma seção (ex: #contato),
  o título da seção não fique escondido atrás do cabeçalho fixo.
  Aplica-se a qualquer tag <section> que possua um atributo 'id'.
*/
section[id] {
    scroll-margin-top: 50px; /* Ajustado para 50px conforme solicitado. */
}

/*
  Estilos para as animações de scroll.
  Qualquer elemento com a classe .scroll-animate terá essa animação.
*/
.scroll-animate {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/*
  Quando o JavaScript adicionar a classe .visible, o elemento se tornará visível.
*/
.scroll-animate.visible {
  opacity: 1;
  transform: translateY(0);
}

/*
  ==============================================================================
  CORREÇÃO PARA CABEÇALHO MÓVEL FIXO
  ==============================================================================

  Este bloco de código impede que o conteúdo principal da página fique
  escondido atrás do cabeçalho fixo em dispositivos móveis.

  - A media query `@media (max-width: 768px)` aplica esta regra apenas em
    telas com largura igual ou inferior a 768px (o breakpoint do modo mobile).
  - `padding-top: 80px;` adiciona um espaçamento no topo do corpo da página.
  - O valor de 80px corresponde à altura real do cabeçalho móvel, garantindo que
    todo o conteúdo subsequente comece exatamente abaixo dele.
*/
@media (max-width: 768px) {
    body {
        padding-top: 80px;
    }
}

/* --- RESET GLOBAL --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* --- GARANTIR QUE HTML E BODY OCUPEM A TELA INTEIRA --- */
html, body {
    width: 100%;
    overflow-x: hidden; /* Prevenir rolagem horizontal acidental */
}

/* --- ESTILOS GLOBAIS DO BODY --- */
body {
    font-family: sans-serif;
    line-height: 1.6;
}

/* CLASSE PARA TRAVAR A ROLAGEM */
body.no-scroll {
    overflow: hidden;
}

/* --- CLASSES DE CONTAINER --- */
.container {
    max-width: 1100px;
    margin: 0 auto; 
    padding: 0 20px; 
}

.container-fluid {
    width: 100%;
    padding: 0;
}

/* --- ESTILO PADRÃO DE BOTÃO --- */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
}

/* === Seção de Benefícios === */
:root {
    --beneficios-bg: #FFD700;
    --card-bg: #ffffff;
    --card-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    --abratco-primary: #003366;
    --abratco-secondary: #FFD700;
    --partner-color: #495057;
    --text-color: #495057;
    --icon-color: #0056b3;
}

.beneficios {
    background-color: var(--beneficios-bg);
    padding: 80px 0;
    font-family: 'Poppins', sans-serif;
    scroll-margin-top: 20px;
}

.beneficios .container { text-align: center; }

/* PADRONIZADO: Estilo do título alinhado com a seção Diferenciais */
.beneficios .section-title {
    color: var(--abratco-primary);
    font-size: 3rem;
}

.beneficios .section-subtitle {
    color: #003366;
    opacity: 0.9;
    max-width: 800px;
    margin: 0 auto 50px auto;
}

.beneficios-wrapper { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; justify-content: center; }

.beneficio-card {
    background-color: var(--card-bg);
    border-radius: 15px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
    text-align: left;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.beneficio-card:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12); }

.beneficio-header {
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #e9ecef;
    min-height: 120px;
}

.card-logo-img { height: 50px; max-width: 170px; object-fit: contain; }
.adiante-logo { height: 65px; }
.smart-logo { height: 70px; }

.partner-tag {
    background-color: var(--abratco-secondary);
    color: var(--abratco-primary);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.beneficio-body { padding: 25px; flex-grow: 1; }
.beneficio-body ul { list-style: none; padding: 0; margin: 0; }
.beneficio-body ul li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    line-height: 1.6;
    color: var(--text-color);
}
.beneficio-body ul li:last-child { margin-bottom: 0; }

.beneficio-body ul li i {
    font-family: 'Font Awesome 5 Free' !important;
    font-weight: 900 !important;
    font-size: 1.1rem;
    color: var(--icon-color);
    margin-right: 15px;
    margin-top: 5px;
    width: 20px;
    text-align: center;
}

.abratco-card {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: row;
    align-items: stretch;
}

.abratco-card .beneficio-header {
    flex: 1 1 35%;
    flex-direction: column;
    gap: 15px;
    border-right: 1px solid #e9ecef;
    border-bottom: none;
}

.abratco-card .beneficio-body { flex: 1 1 65%; }
.abratco-card .beneficio-body ul li i { color: var(--abratco-primary); }

.partner-card .beneficio-header { flex-direction: row; justify-content: space-between; }
.partner-card .partner-tag { background-color: #e9ecef; color: #495057; }

/* As regras de animação conflitantes foram removidas daqui. A animação agora é gerenciada exclusivamente pelo global.css */

@media (max-width: 992px) {
    .abratco-card { flex-direction: column; }
    .abratco-card .beneficio-header {
        flex-direction: row;
        justify-content: space-between;
        border-right: none;
        border-bottom: 1px solid #e9ecef;
        min-height: 100px;
    }
}

@media (max-width: 768px) {
    /* PADRONIZADO: Tamanho do título para mobile */
    .beneficios .section-title {
        font-size: 1.8rem;
    }

    .beneficios { scroll-margin-top: 20px; }
    .beneficios-wrapper { grid-template-columns: 1fr; gap: 20px; }
    .beneficio-card:hover { transform: none; }
}

@media (max-width: 480px) {
    .partner-card .beneficio-header, .abratco-card .beneficio-header {
        flex-direction: column;
        gap: 15px;
        min-height: 140px;
    }
    .partner-tag { margin-top: 5px; }
}

/* === Estilos do Modal de Contato === */
.modal {
    opacity: 0;
    visibility: hidden;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

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

.modal-content {
    background-color: #f8f9fa;
    margin: 8% auto;
    padding: 25px 35px;
    border: none;
    width: 90%;
    max-width: 800px;
    border-radius: 15px;
    position: relative;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
    transform: translateY(-50px);
    transition: transform 0.4s ease;
}

.modal.visible .modal-content {
    transform: translateY(0);
}

.modal-content h2 {
    text-align: center;
    color: #003366;
    margin-bottom: 10px;
}

.modal-content p {
    text-align: center;
    margin-bottom: 25px;
    color: #6c757d;
}

.close-button {
    color: #888;
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-button:hover,
.close-button:focus {
    color: #333;
}

/* === NOVO: Layout de Colunas (Padrão = Mobile) === */
.modal-layout-container {
    display: flex;
    flex-direction: column; /* Coluna única no mobile */
}

.form-column {
    width: 100%;
}

.results-column {
    width: 100%;
    margin-top: 20px; /* Espaço entre seções no mobile */
}

/* === Media Query para Desktop (Layout de 2 Colunas) === */
@media (min-width: 768px) {
    .modal-layout-container {
        flex-direction: row; /* Ativa as duas colunas */
        justify-content: space-between;
        gap: 30px; /* Espaço entre as colunas */
    }

    .form-column {
        width: 45%; /* Largura da coluna do formulário */
        border-right: 1px solid #dee2e6; /* Divisor vertical */
        padding-right: 25px;
    }

    .results-column {
        width: 55%; /* Largura da coluna de resultados */
        margin-top: 0;
    }
}

/* === Estilos dos Formulários === */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #003366;
    font-size: 1rem;
}

.form-group select {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #ced4da;
    background-color: #fff;
    font-size: 1rem;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 0.8em;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group select:focus {
    border-color: #FFD700;
    box-shadow: 0 0 0 0.2rem rgba(255, 215, 0, 0.25);
    outline: none;
}

#cidade-group {
    display: none; /* Cidade começa escondida */
}

/* === Estilos da Lista de Consultores === */
#consultores-info h3 {
    color: #003366;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 15px; /* Reduzido de 20px */
    text-align: left;
}

#consultores-info ul {
    list-style: none;
    padding: 0;
    max-height: 200px; /* Mantido para o caso de 5+ consultores */
    overflow-y: auto; 
}

#consultores-info li {
    display: flex;
    justify-content: space-between; 
    align-items: center;
    padding: 6px 8px; /* Reduzido de 8px */
    border-radius: 8px;
    margin-bottom: 6px; /* Reduzido de 8px */
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#consultores-info li:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

.consultor-nome {
    font-weight: 500;
    color: #343a40;
    display: flex;
    align-items: center;
    font-size: 0.85rem; 
}

.consultor-nome i {
    color: #003366;
    margin-right: 10px;
    font-size: 1.1rem;
}

.whatsapp-link {
    display: flex;
    align-items: center;
    background-color: #25D366;
    color: #fff;
    padding: 5px 10px; 
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem; 
    transition: background-color 0.3s ease;
}

.whatsapp-link:hover {
    background-color: #1DA851;
    color: #fff;
}

.whatsapp-link i {
    font-size: 1.1rem;
    margin-right: 8px;
}

.diferenciais {
  padding: 80px 0 80px; /* PADRONIZADO: de 100px para 80px */
  background-color: #004d40;
  color: #ffffff;
  text-align: center;
  scroll-margin-top: 20px;
}

.diferenciais .section-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #ffffff;
  letter-spacing: 2px;
  position: relative;
}

.diferenciais .section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: #ffca28;
  margin: 20px auto 30px;
}

.diferenciais .section-subtitle {
  font-size: 1.2rem;
  margin-bottom: 60px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.diferenciais-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-bottom: 80px;
}

.diferencial-card {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 40px;
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.8s ease-out, transform 0.8s ease-out;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.diferencial-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.diferencial-icon {
  margin-bottom: 20px;
}

.diferencial-icon img {
  height: 60px;
  filter: invert(100%) sepia(0%) saturate(0%) hue-rotate(93deg) brightness(108%) contrast(101%);
}

.diferencial-icon img.no-invert {
  filter: none;
}

.diferencial-card h3 {
  font-size: 1.5rem;
  color: #ffca28;
  margin-bottom: 15px;
}

.diferencial-card p {
  font-size: 1rem;
  line-height: 1.6;
}

.coberturas-exclusivas {
  padding: 40px;
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
}

.coberturas-title {
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 40px;
}

.coberturas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
}

.cobertura-item {
  text-align: center;
}

.cobertura-icon img {
  height: 50px;
  margin-bottom: 15px;
  filter: invert(90%) sepia(33%) saturate(1035%) hue-rotate(330deg) brightness(102%) contrast(101%);
}

.cobertura-icon img.no-invert {
  filter: none;
}

.cobertura-item p {
  font-size: 1.1rem;
  font-weight: 500;
}

.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-animate.animate {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
  .diferenciais {
    padding: 80px 0 60px;
  }

  .diferenciais .section-title {
    font-size: 1.8rem;
  }
}

footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 20px 0;
}
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: background-color 0.3s ease, border-bottom 0.3s ease;
    background-color: transparent;
    border-bottom: 1px solid transparent;
}

header.scrolled {
    background-color: #fff;
    border-bottom: 1px solid #ddd;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo no cabeçalho fica oculta inicialmente */
header .logo {
    opacity: 0;
    transition: opacity 0.3s ease;
}

header.scrolled .logo {
    opacity: 1;
}

header .logo img {
    max-width: 150px;
}

header nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

header nav ul li {
    margin-left: 20px;
}

/* Cor inicial do menu */
header nav ul li a {
    text-decoration: none;
    color: #fff;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    transition: color 0.3s ease;
}

/* Cor do menu ao rolar */
header.scrolled nav ul li a {
    color: #333;
    text-shadow: none;
}

/* Efeito de hover no menu */
header nav ul li a:hover {
    color: #FFD700; /* Amarelo Dourado */
}

/* --- Base do Header Mobile --- */
#header-mobile {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 10px 0;
    transition: transform 0.3s ease-in-out;
}

#header-mobile.hidden {
    transform: translateY(-100%);
}

/* --- Container --- */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 95%;
    margin: 0 auto;
}

/* --- Logo --- */
.logo-img {
    width: 300px;
    height: auto;
    display: block;
}

/* --- Menu Hambúrguer (Botão) --- */
.hamburger-menu {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 45px;
    height: 45px;
    z-index: 1100; /* Garante que o hambúrguer fique acima do menu */
    position: relative;
}

.hamburger-menu .bar {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #333;
    transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease;
}

/* --- Animação do Hambúrguer (X) --- */
.hamburger-menu.active .bar {
    background-color: #ffffff; 
}

.hamburger-menu.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger-menu.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* === MENU LATERAL (CORRIGIDO E FINAL) === */

.mobile-nav {
    position: fixed;
    top: 95px;
    right: 10px;
    width: 280px;
    height: auto;
    background-color: #003366;
    z-index: 1050;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    padding: 15px;
    transform: translateX(150%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.mobile-nav.active {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
}

.mobile-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;           /* Adicionado */
    flex-direction: column;  /* Adicionado: Força a coluna */
    gap: 8px;                /* Adicionado: Espaço entre os itens */
}

.mobile-nav li {
    text-align: center;
    width: 100%; /* Garante que o item da lista ocupe o espaço */
}

.mobile-nav a {
    display: block;
    padding: 12px 15px;
    text-decoration: none;
    color: #ffffff;
    font-size: 1.6rem;
    font-weight: bold;
    transition: background-color 0.2s ease;
    border-radius: 5px;
}

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

/* --- Esconde o header mobile em telas grandes --- */
@media (min-width: 769px) {
    #header-mobile {
        display: none;
    }
}

/* Estrutura principal da seção Hero com 2 Colunas */
.hero.desktop {
    display: flex;
    background-color: #f0f4f8;
    padding-top: 80px;
    padding-bottom: 0;
    min-height: calc(var(--vh, 1vh) * 100);
    box-sizing: border-box;
    align-items: stretch;
    overflow: hidden;
}

/* Coluna da Esquerda: Texto */
.hero-text-column {
    flex: 1;
    padding: 0 0 0 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Alinha o conteúdo à esquerda */
    align-items: flex-start;
}

.hero-text-column .hero-logo {
    width: 422px;
    height: auto;
    margin-bottom: 30px;
    animation: slideInFromLeft 1.2s ease-out forwards;
}

.hero-text-column .hero-title {
    font-size: 2.5rem;
    color: #003366;
    line-height: 1.2;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease-out 0.5s forwards;
    opacity: 0;
}

.hero-text-column p {
    font-weight: bold;
    line-height: 1.5;
    /* Adicionando margem inferior para separar do botão */
    margin-bottom: 40px; 
    animation: fadeInUp 1s ease-out 0.8s forwards;
    opacity: 0;
}

/* --- BOTÃO CTA --- */
.hero-cta {
    background-color: #003366; /* Azul do título */
    color: #ffffff;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
    /* Animação */
    animation: fadeInUp 1s ease-out 1.1s forwards;
    opacity: 0;
}

.hero-cta:hover {
    background-color: #0055a4; /* Um azul um pouco mais claro no hover */
    transform: translateY(-3px);
}

/* Coluna da Direita: Imagem */
.hero-image-column {
    flex: 1;
    display: flex;
}

.hero-image-column img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
    animation: slideInFromRight 1.5s ease-out forwards;
}

/* --- ANIMAÇÕES --- */
@keyframes slideInFromRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes slideInFromLeft {
  from { transform: translateX(-100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

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

/* Estrutura principal da seção Hero Mobile */
#hero-mobile {
    display: flex;
    width: 100%;
    flex-direction: column;
    background-color: #f0f4f8;
    padding-top: 80px;
    height: calc(var(--vh, 1vh) * 100 - 80px);
    box-sizing: border-box;
    overflow: hidden;
}

/* Coluna de Texto */
#hero-mobile .hero-text-column {
    padding: 20px 20px 0 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#hero-mobile .hero-title {
    font-size: 1.8rem;
    color: #003366;
    line-height: 1.2;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease-out 0.5s forwards;
    opacity: 0;
}

#hero-mobile p {
    font-weight: bold;
    line-height: 1.5;
    font-size: 1rem;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease-out 0.8s forwards;
    opacity: 0;
}

/* --- BOTÃO CTA --- */
.hero-cta {
    background-color: #003366;
    color: #ffffff;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
    animation: fadeInUp 1s ease-out 1.1s forwards;
    opacity: 0;
}

.hero-cta:hover {
    background-color: #0055a4;
    transform: translateY(-2px);
}

/* Coluna de Imagem */
#hero-mobile .hero-image-column {
    flex: 1;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    width: 100%;
}

#hero-mobile .hero-image-column img {
    max-width: 100%;
    height: auto;
    animation: slideInFromRight 1.5s ease-out forwards;
}

/* --- ANIMAÇÕES --- */
@keyframes slideInFromRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

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

/* === Configurações Globais da Seção Sobre === */
:root {
    --sobre-bg-dark: #002a54;
    --sobre-bg-light: #003366;
}

.sobre {
    position: relative;
    background: linear-gradient(170deg, var(--sobre-bg-dark) 65%, var(--sobre-bg-light) 65.1%);
    color: #FFFFFF;
    font-family: 'Poppins', sans-serif;
    padding: 80px 0 80px;
    overflow: hidden;
}

.sobre .container {
    position: relative;
    z-index: 1;
    text-align: center;
}

/* PADRONIZADO: Estilo do título alinhado com a seção Diferenciais */
.sobre .section-title {
    font-size: 3rem;
    color: #FFD700;
}

.sobre .section-subtitle {
    font-size: 1.2rem;
    margin-bottom: 50px;
    color: #FFFFFF;
}

/* === Linha do Tempo (Timeline) === */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto 60px auto;
    padding: 20px 0;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 3px;
    background-color: #FFD700;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1.5px;
}

.timeline-item {
    padding: 20px 40px;
    position: relative;
    width: 50%;
}

.timeline-icon {
    position: absolute;
    width: 50px;
    height: 50px;
    right: -25px;
    background-color: var(--sobre-bg-light);
    border: 3px solid #FFD700;
    top: 35px;
    border-radius: 50%;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.timeline-icon i {
    font-size: 20px;
    color: #FFD700;
}

.timeline-item:nth-child(odd) { left: 0; padding-right: 70px; text-align: right; }
.timeline-item:nth-child(even) { left: 50%; padding-left: 70px; text-align: left; }
.timeline-item:nth-child(even) .timeline-icon { left: -25px; }

.timeline-content {
    padding: 20px 30px;
    background-color: rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    width: 100%;
    box-sizing: border-box;
}

.timeline-content h3 { color: #FFD700; }

/* === Missão e Visão === */
.mission-vision {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    text-align: left;
    margin-bottom: 40px;
}

.mission, .vision {
    background-color: rgba(0, 0, 0, 0.15);
    padding: 30px;
    border-radius: 8px;
    border-left: 5px solid #FFD700;
    display: flex;
    flex-direction: column;
}

.mission h3, .vision h3 {
    color: #FFD700;
    margin-bottom: 15px;
}

/* === Valores === */
.values-section { margin-top: 20px; }
.values-title { color: #FFD700; font-size: 2rem; margin-bottom: 30px; }
.values-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.value-item {
    background-color: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    padding: 12px 25px;
    border-radius: 25px;
    border: 1px solid #FFD700;
    transition: background-color 0.3s, color 0.3s;
}

.value-item:hover {
    background-color: #FFD700;
    color: #003366;
}

/* === ANIMAÇÃO DE SCROLL === */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-animate.animate {
    opacity: 1;
    transform: translateY(0);
}

.scroll-animate:nth-child(2) { transition-delay: 0.1s; }
.scroll-animate:nth-child(3) { transition-delay: 0.2s; }
.scroll-animate:nth-child(4) { transition-delay: 0.3s; }
.scroll-animate:nth-child(5) { transition-delay: 0.4s; }
.values-grid .scroll-animate { transition-delay: calc(0.05s * var(--i)); }

/* === AJUSTES RESPONSIVOS === */
@media (max-width: 768px) {
    .sobre {
        background: var(--sobre-bg-dark);
    }

    /* PADRONIZADO: Tamanho do título para mobile */
    .sobre .section-title {
        font-size: 1.8rem;
    }

    .timeline::after { display: none; }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 20px;
        margin-bottom: 30px;
    }

    .timeline-item:nth-child(odd), .timeline-item:nth-child(even) {
        left: 0;
        text-align: left;
    }

    .timeline-icon {
        left: 10px;
    }

    .timeline-item:nth-child(even) .timeline-icon { left: 10px; }
    .timeline-item:nth-child(odd) .timeline-icon { left: 10px; }

    .mission-vision {
        grid-template-columns: 1fr;
    }
}

/* === TELAS PEQUENAS (MOBILES, ATÉ 768px) === */
@media (max-width: 768px) {
    /* --- CONTROLE DE VISIBILIDADE DE COMPONENTES -- */
    #header-desktop, #hero-desktop { display: none !important; }
    #header-mobile, #hero-mobile { display: flex !important; }

    /* --- AJUSTES GERAIS PARA MOBILE --- */
    .beneficios-grid { grid-template-columns: 1fr; }

    /* === AJUSTES NA SEÇÃO SOBRE PARA MOBILE === */
    .sobre {
        background: linear-gradient(170deg, var(--sobre-bg-dark) 48%, var(--sobre-bg-light) 48.1%);
    }

    .section-title { font-size: 2.2rem; }
    .section-subtitle { font-size: 1rem; margin-bottom: 50px; }

    /* --- CORREÇÃO DA LINHA DO TEMPO (TIMELINE) PARA MOBILE --- */

    /* Cria a linha de conexão vertical para a timeline mobile */
    .timeline::after {
        display: block;
        content: '';
        position: absolute;
        width: 3px;
        background-color: #FFD700;
        top: 0;
        bottom: 0;
        /* Posiciona a linha no centro dos ícones (ícone a 15px + 25px do raio - 1.5px da largura da linha) */
        left: 38.5px;
        z-index: 0; /* Garante que a linha fique atrás dos ícones */
    }

    /* Regra unificada para garantir consistência nos cards da timeline */
    .timeline-item,
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        width: 100%;
        left: 0;
        padding: 20px 15px 20px 80px;
        text-align: left !important;
        box-sizing: border-box;
    }

    .timeline-icon {
        left: 15px;
        top: 50%;
        transform: translateY(-50%);
    }

    .timeline-item:nth-child(odd) .timeline-icon,
    .timeline-item:nth-child(even) .timeline-icon {
        left: 15px;
        right: auto;
    }

    .timeline-content { 
        padding: 20px; 
    }

    /* Missão e Visão */
    .mission-vision { grid-template-columns: 1fr; gap: 30px; }

    /* Valores */
    .values-grid { gap: 10px; }
    .value-item { padding: 10px 20px; }
}

/* === TELAS GRANDES (TABLETS E DESKTOPS, A PARTIR DE 769px) === */
@media (min-width: 769px) {
    #header-mobile, #hero-mobile { display: none !important; }
    #header-desktop { display: block !important; }
    #hero-desktop { display: flex !important; }
}

