html {
    scroll-behavior: smooth;
}

/* --- RESET BÁSICO E VARIÁVEIS DE COR --- */
:root {
    --cor-primaria: #00AEEF; /* Azul ciano do logo */
    /* ... resto do seu código ... */
}
/* --- RESET BÁSICO E VARIÁVEIS DE COR --- */
:root {
    --cor-primaria: #00AEEF; /* Azul ciano do logo */
    --cor-secundaria: #0f172a; /* Azul-chumbo bem escuro */
    --cor-texto: #334155;     /* Cinza para textos */
    --cor-fundo-claro: #f8fafc;
    --cor-texto-claro: #ffffff;
}

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

body {
    font-family: 'Roboto', sans-serif;
    color: var(--cor-texto);
    background-color: #fff;
}

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

/* --- CABEÇALHO --- */
.main-header {
    background-color: var(--cor-secundaria);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.logo img {
    height: 50px;
}

.main-menu {
    list-style: none;
    display: flex;
}

.main-menu li {
    margin-left: 35px;
}

.main-menu a {
    text-decoration: none;
    color: var(--cor-texto-claro);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.main-menu a:hover {
    color: var(--cor-primaria);
    border-bottom-color: var(--cor-primaria);
}

/* --- SEÇÃO HERO --- */
#hero {
    background-size: cover;
    background-position: center;
    color: var(--cor-texto-claro);
    height: 90vh; 
    display: flex;
    align-items: center;
    text-align: center;
}

.hero-content {
    max-width: 800px;
}

.hero-content h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 3.5rem; 
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.4);
}

.hero-content p {
    font-size: 1.25rem; 
    margin-bottom: 40px;
    opacity: 0.9;
}

.cta-button {
    background-color: var(--cor-primaria);
    color: var(--cor-texto-claro);
    padding: 18px 40px;
    border-radius: 50px; 
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 174, 239, 0.4);
}

.cta-button:hover {
    background-color: #0095cc; 
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 174, 239, 0.5);
}


/* --- ANIMAÇÃO CONTROLADA POR JS --- */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Deixa os elementos invisíveis por padrão, antes da imagem carregar */
#hero-title, #hero-subtitle, #hero-button {
    opacity: 0;
}

/* As animações só serão aplicadas quando a classe '.hero-loaded'
  for adicionada ao <body> pelo JavaScript, após a imagem de fundo carregar.
*/

.hero-loaded #hero-title {
    animation: fadeUp 1.2s ease-out 0.2s forwards;
}

.hero-loaded #hero-subtitle {
    animation: fadeUp 1.2s ease-out 0.5s forwards;
}

.hero-loaded #hero-button {
    animation: fadeUp 1s ease-out 0.8s forwards;
}

/* --- SEÇÃO SOBRE NÓS --- */
.section-padding {
    padding: 100px 0;
}

.bg-light {
    background-color: #f8fafc;
}

.section-title {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 60px;
    font-family: 'Montserrat', sans-serif;
    color: var(--cor-secundaria);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--cor-primaria);
    margin: 20px auto 0;
    border-radius: 2px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: stretch;
}

.story-card {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.story-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

/* ESTILO CORRIGIDO PARA AS IMAGENS NOS CARDS */
.story-card img {
    display: block;
    max-height: 325px;  /* Define uma ALTURA MÁXIMA para a imagem (tamanho médio) */
    width: 100%;        /* A largura se ajusta para manter a proporção */
    max-width: 90%;    /* Garante que a imagem nunca ultrapasse a largura do card */
    object-fit: contain;/* Garante que a imagem inteira apareça, sem cortes */
    margin: 30px auto;  /* Centraliza a imagem e dá um respiro em cima e embaixo */
    border-radius: 8px; /* Adiciona bordas arredondadas na própria foto */
}

.card-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-content h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    color: var(--cor-secundaria);
    margin-bottom: 20px;
text-align: center; /* Centraliza o título */
}

.card-content p {
    margin-bottom: 15px;
    font-size: 1rem;
    color: #555;
    line-height: 1.7;
}

/* Responsivo para celular */
@media(max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
}
/* --- ESTILO PARA AS CITAÇÕES (QUOTES) --- */
.quote {
    font-style: italic;
    color: #555;
    border-left: 4px solid var(--cor-primaria);
    padding: 15px 20px;
    margin-top: auto; /* Empurra a citação para o final do card */
    background-color: var(--cor-fundo-claro); /* Usa o mesmo fundo da seção para integrar */
    border-radius: 0 8px 8px 0;
}

.quote p {
    margin-bottom: 10px;
    font-size: 1.05rem; /* Um pouco maior para dar destaque */
}

.quote span {
    display: block;
    font-weight: bold;
    font-style: normal;
    color: var(--cor-secundaria);
    text-align: right;
}
/* --- SEÇÃO SOLUÇÕES --- */
#solucoes {
    border-top: 1px solid #e9ecef;
}

/* Regra para o subtítulo da seção, com a letra aumentada */
#solucoes .section-subtitle {
    text-align: center;
    font-size: 1.2rem; /* <-- Letra aumentada */
    max-width: 700px;
    margin: 0 auto 50px auto;
    color: #555;
    line-height: 1.7;
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Três colunas */
    gap: 30px; /* Espaço entre as colunas */
    margin-top: 70px; /* <-- ESPAÇAMENTO AUMENTADO */
}

.solution-card {
    background-color: #ffffff;
    padding: 40px 30px;
    text-align: center;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.04);
    transition: all 0.3s ease-in-out;
}

.solution-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 20px rgba(45, 59, 80, 0.1);
    border-color: var(--cor-primaria);
}

.solution-icon {
    font-size: 3.5rem; /* Tamanho do ícone (emoji) */
    margin-bottom: 20px;
    line-height: 1;
}

.solution-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    color: var(--cor-secundaria);
    margin-bottom: 15px;
}

.solution-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: #6c757d;
}

/* Ajustes para telas menores (tablets e celulares) */
@media(max-width: 992px) {
    .solutions-grid {
        grid-template-columns: 1fr; /* Vira uma coluna só */
    }
}
/* --- SEÇÃO TREINAMENTOS --- */
.training-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.training-description h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.2rem;
    color: var(--cor-secundaria);
    margin-bottom: 20px;
}

.training-description p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    line-height: 1.7;
}

.training-description ul {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.training-description ul li {
    font-size: 1.1rem;
    color: var(--cor-texto);
    margin-bottom: 15px;
    padding-left: 25px;
    position: relative;
}

.training-description ul li::before {
    content: '✓';
    color: var(--cor-primaria);
    position: absolute;
    left: 0;
    font-weight: bold;
}
/* --- Slideshow de Imagens (VERSÃO FINAL E CORRIGIDA) --- */
.slideshow-container {
    height: 450px;
    border-radius: 8px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    overflow: hidden; /* Essencial para o efeito funcionar */
    position: relative;
    background-color: #e9ecef; /* Fundo para caso a imagem seja pequena */
}

.slideshow-inner {
    width: 100%;
    height: 100%;
    position: relative;
}

.slideshow-inner img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain; /* Garante que a imagem inteira apareça, sem cortar */
    opacity: 0;
    /* Duração total: 54 fotos * 3 segundos cada = 162 segundos */
    animation: fade-slideshow 162s infinite; 
}

/* ANIMAÇÃO CORRIGIDA para o intervalo de 3 segundos */
@keyframes fade-slideshow {
    0%    { opacity: 0; }
    0.3%  { opacity: 1; }  /* Aparece rapidamente (em ~0.5s) */
    1.5%  { opacity: 1; }  /* Fica totalmente visível (por ~2s) */
    1.8%  { opacity: 0; }  /* Desaparece completamente (em ~0.5s) */
    100%  { opacity: 0; }  /* Permanece invisível até seu próximo ciclo */
}

/* Atraso para cada uma das 55 imagens, criando a sequência */
.slideshow-inner img:nth-child(1) { animation-delay: 0s; }
.slideshow-inner img:nth-child(2) { animation-delay: 3s; }
.slideshow-inner img:nth-child(3) { animation-delay: 6s; }
.slideshow-inner img:nth-child(4) { animation-delay: 9s; }
.slideshow-inner img:nth-child(5) { animation-delay: 12s; }
.slideshow-inner img:nth-child(6) { animation-delay: 15s; }
.slideshow-inner img:nth-child(7) { animation-delay: 18s; }
.slideshow-inner img:nth-child(8) { animation-delay: 21s; }
.slideshow-inner img:nth-child(9) { animation-delay: 24s; }
.slideshow-inner img:nth-child(10) { animation-delay: 27s; }
.slideshow-inner img:nth-child(11) { animation-delay: 30s; }
.slideshow-inner img:nth-child(12) { animation-delay: 33s; }
.slideshow-inner img:nth-child(13) { animation-delay: 36s; }
.slideshow-inner img:nth-child(14) { animation-delay: 39s; }
.slideshow-inner img:nth-child(15) { animation-delay: 42s; }
.slideshow-inner img:nth-child(16) { animation-delay: 45s; }
.slideshow-inner img:nth-child(17) { animation-delay: 48s; }
.slideshow-inner img:nth-child(18) { animation-delay: 51s; }
.slideshow-inner img:nth-child(19) { animation-delay: 54s; }
.slideshow-inner img:nth-child(20) { animation-delay: 57s; }
.slideshow-inner img:nth-child(21) { animation-delay: 60s; }
.slideshow-inner img:nth-child(22) { animation-delay: 63s; }
.slideshow-inner img:nth-child(23) { animation-delay: 66s; }
.slideshow-inner img:nth-child(24) { animation-delay: 69s; }
.slideshow-inner img:nth-child(25) { animation-delay: 72s; }
.slideshow-inner img:nth-child(26) { animation-delay: 75s; }
.slideshow-inner img:nth-child(27) { animation-delay: 78s; }
.slideshow-inner img:nth-child(28) { animation-delay: 81s; }
.slideshow-inner img:nth-child(29) { animation-delay: 84s; }
.slideshow-inner img:nth-child(30) { animation-delay: 87s; }
.slideshow-inner img:nth-child(31) { animation-delay: 90s; }
.slideshow-inner img:nth-child(32) { animation-delay: 93s; }
.slideshow-inner img:nth-child(33) { animation-delay: 96s; }
.slideshow-inner img:nth-child(34) { animation-delay: 99s; }
.slideshow-inner img:nth-child(35) { animation-delay: 102s; }
.slideshow-inner img:nth-child(36) { animation-delay: 105s; }
.slideshow-inner img:nth-child(37) { animation-delay: 108s; }
.slideshow-inner img:nth-child(38) { animation-delay: 111s; }
.slideshow-inner img:nth-child(39) { animation-delay: 114s; }
.slideshow-inner img:nth-child(40) { animation-delay: 117s; }
.slideshow-inner img:nth-child(41) { animation-delay: 120s; }
.slideshow-inner img:nth-child(42) { animation-delay: 123s; }
.slideshow-inner img:nth-child(43) { animation-delay: 126s; }
.slideshow-inner img:nth-child(44) { animation-delay: 129s; }
.slideshow-inner img:nth-child(45) { animation-delay: 132s; }
.slideshow-inner img:nth-child(46) { animation-delay: 135s; }
.slideshow-inner img:nth-child(47) { animation-delay: 138s; }
.slideshow-inner img:nth-child(48) { animation-delay: 141s; }
.slideshow-inner img:nth-child(49) { animation-delay: 144s; }
.slideshow-inner img:nth-child(50) { animation-delay: 147s; }
.slideshow-inner img:nth-child(51) { animation-delay: 150s; }
.slideshow-inner img:nth-child(52) { animation-delay: 153s; }
.slideshow-inner img:nth-child(53) { animation-delay: 156s; }
.slideshow-inner img:nth-child(54) { animation-delay: 159s; }
.slideshow-inner img:nth-child(55) { animation-delay: 162s; }
/* --- SEÇÃO CLIENTES --- */
#clientes {
    padding: 80px 0;
    border-top: 1px solid #e9ecef;
}

.client-logos-slider {
    overflow: hidden; /* Esconde o que sai da tela */
    position: relative;
    width: 100%;
    margin-top: 40px;
    /* As linhas de "mask-image" que causavam o fade foram REMOVIDAS. */
}

.client-logos-slide {
    display: flex; /* Coloca as imagens em linha */
    width: fit-content; /* Largura baseada no conteúdo */
    align-items: center; /* Centraliza verticalmente */
    animation: scroll-logos 45s linear infinite; /* Animação de rolagem contínua, tempo ajustado */
}

.client-logos-slide img {
    height: 60px; /* Altura padrão para todos os logos */
    margin: 0 50px; /* Espaçamento entre os logos */
    opacity: 1; /* Leve transparência para integrar melhor */
    transition: all 0.3s ease-in-out;
}

.client-logos-slide img:hover {
    opacity: 1; /* Opacidade total ao passar o mouse */
    transform: scale(1.1); /* Efeito de zoom */
}

@keyframes scroll-logos {
    from {
        transform: translateX(0%);
    }
    to {
        /* Move a "esteira" exatamente pela metade do seu tamanho */
        transform: translateX(-50%);
    }
}
/* --- SEÇÃO CONTATO (VERSÃO FINAL) --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr; /* Coluna do formulário maior */
    gap: 40px;
    align-items: stretch;
    margin-top: 40px; 
}

.contact-card {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

.contact-card h3 {
    font-family: 'Montserrat', sans-serif;
    color: var(--cor-secundaria);
    font-size: 1.8rem;
    margin-bottom: 25px;
}

.contact-card p.contact-intro-text {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 30px; /* ESPAÇO entre o texto e o formulário */
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    background-color: var(--cor-fundo-claro);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--cor-primaria);
    box-shadow: 0 0 0 3px rgba(0, 174, 239, 0.2);
}

.contact-form button {
    border: none;
    cursor: pointer;
    margin-top: 10px;
}

.info-block {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 30px;
}

.info-icon {
    color: var(--cor-primaria);
}

.info-icon svg {
    width: 24px;
    height: 24px;
    margin-top: 5px;
}

.info-text h4 {
    font-family: 'Montserrat', sans-serif;
    color: var(--cor-texto);
    font-size: 0.9rem;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-text p,
.info-text a {
    font-size: 1.1rem;
    color: var(--cor-secundaria);
    text-decoration: none;
    line-height: 1.5;
    font-weight: 500;
}

.info-text a:hover {
    text-decoration: underline;
    color: var(--cor-primaria);
}

/* --- RODAPÉ --- */
.main-footer {
    background-color: var(--cor-secundaria);
    color: #adb5bd;
    padding: 40px 0;
    font-size: 0.9rem;
}

.main-footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; 
    gap: 20px;
}
.footer-info p {
    margin: 0;
}
.footer-social-links {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-social-links a {
    color: #adb5bd;
    transition: color 0.3s ease;
}

.footer-social-links a:hover {
    color: var(--cor-primaria);
}

.footer-social-links svg {
    stroke: currentColor;
    width: 24px;
    height: 24px;
}

/* Ajustes Responsivos Finais */
@media(max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}
@media(max-width: 768px) {
    .main-footer .container {
        flex-direction: column;
        text-align: center;
    }
}
/* --- CONTATO WHATSAPP FLUTUANTE --- */
.whatsapp-contact {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s ease; /* Transição suave */
    transform-origin: bottom right;
}

.whatsapp-contact.hidden {
    opacity: 0;
    visibility: hidden;
    transform: scale(0.5); /* Efeito de encolher ao sumir */
}

.whatsapp-contact img {
    width: 80px;
    height: 80px;
    border-radius: 70%;
    box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
}

.whatsapp-contact:hover img {
    transform: scale(1.1);
}

.whatsapp-hover-box {
    position: absolute;
    bottom: 15px; /* Alinhado com o centro do ícone */
    right: 100%; /* Posiciona à esquerda do ícone */
    margin-right: 15px; /* Espaço entre o balão e o ícone */
    background-color: #fff;
    color: var(--cor-texto);
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
    
    /* Novo layout horizontal com Flexbox */
    display: flex;
    align-items: center;
    gap: 15px;
    
    /* Controla a aparição do balão */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
    transform-origin: right center;
    transform: translateX(10px);
    width: max-content; /* Largura automática baseada no conteúdo */
}

.whatsapp-contact:hover .whatsapp-hover-box {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.whatsapp-hover-box p {
    margin: 0; /* Remove margens do parágrafo */
    font-size: 0.9rem;
    line-height: 1.2;
    font-weight: 500;
}

.whatsapp-hover-box .whatsapp-link {
    color: #25D366; /* Cor do WhatsApp */
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: bold;
    
    /* Alinha o ícone e o texto */
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}

.whatsapp-hover-box .whatsapp-link:hover {
    color: #128C7E; /* Tom mais escuro do WhatsApp */
}

/* Estilo para o ícone SVG */
.whatsapp-link svg {
    width: 24px;
    height: 24px;
}
.whatsapp-contact {
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
}

/* --- DESTAQUE EXCLUSIVO PARA NOMES DOS CURSOS (ÁREA DE TREINAMENTO) --- */
.training-button .title {
    color: #0B1A3A !important;
    font-weight: bold;
    font-size: 1.12em;
}
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.news-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

.news-card h3 {
    margin: 10px 0;
    font-size: 1.1rem;
}

.news-card a {
    text-decoration: none;
    color: #0f172a;
}

.news-card a:hover {
    color: #007bff;
}

.news-source {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: bold;
    color: #007bff;
    margin-bottom: 10px;
}