
/* --- VARIÁVEIS E RESET --- */
:root {
    --cor-azul-premium: #0173fc;
    --cor-azul-escuro: #004bb5;
    --cor-texto-titulo: #1a1a1a;
    --cor-texto-corpo: #555555;
    --cor-fundo-cinza: #f9fbfd;
    --cor-branca: #ffffff;
    --sombra-suave: 0 10px 30px rgba(0, 0, 0, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

html { scroll-behavior: smooth; }
body { color: var(--cor-texto-corpo); overflow-x: hidden; }

/* --- UTILITÁRIOS --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
}

.btn-primario {
    background-color: var(--cor-azul-premium);
    color: var(--cor-branca);
    box-shadow: 0 4px 15px rgba(1, 115, 252, 0.4);
}

.btn-primario:hover {
    background-color: var(--cor-azul-escuro);
    transform: translateY(-2px);
}

.btn-whatsapp-modal {
    background-color: #25d366;
    color: white;
    width: 100%;
    text-align: center;
    margin-top: 20px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.btn-whatsapp-modal:hover {
    background-color: #1ebc57;
    transform: translateY(-2px);
}

.titulo-secao {
    text-align: center;
    font-size: 2.5rem;
    color: var(--cor-texto-titulo);
    margin-bottom: 1rem;
    font-weight: 700;
}

.subtitulo-secao {
    text-align: center;
    margin-bottom: 3rem;
    color: #777;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* --- CABEÇALHO --- */
.cabecalho {
    background-color: var(--cor-branca);
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    height: 80px;
    display: flex;
    align-items: center;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.marca {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--cor-texto-titulo);
    text-decoration: none;
}

.marca span { color: var(--cor-azul-premium); }

.menu-desktop ul {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.menu-desktop a {
    text-decoration: none;
    color: var(--cor-texto-titulo);
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.menu-desktop a:hover { color: var(--cor-azul-premium); }

.btn-mobile {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--cor-texto-titulo);
}

/* --- HERO --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--cor-branca);
    margin-top: 80px; 
    position: relative;
    background: transparent; 
}

.hero::before {
    content: '';
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('fotos/Curso-NR-35-trabalho-em-Altura.jpg');
    background-size: cover;
    background-position: top;
    z-index: -10;
    pointer-events: none; 
}

.conteudo-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    animation: fadeInDown 1s ease;
}

.conteudo-hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.3s backwards;
}

/* --- SOBRE --- */
.secao {
    padding: 70px 0;
    position: relative;
    z-index: 1;
    background-color: var(--cor-branca);
}

.sobre-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.sobre-imagem img {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--sombra-suave);
}

.sobre-imagem { position: relative; }
.sobre-imagem::before {
    content: '';
    position: absolute;
    top: -20px; left: -20px;
    width: 100%; height: 100%;
    border: 5px solid var(--cor-azul-premium);
    border-radius: 20px;
    z-index: -1;
}

.sobre-texto h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--cor-texto-titulo);
}

.lista-diferenciais {
    list-style: none;
    margin-top: 20px;
}

.lista-diferenciais li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 600;
}

.lista-diferenciais i {
    color: var(--cor-azul-premium);
    font-size: 1.2rem;
}

/* --- CURSOS (Cards) --- */
.secao-cinza { background-color: var(--cor-fundo-cinza); }

.grid-cursos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.card-curso {
    background: var(--cor-branca);
    border-radius: 15px;
    box-shadow: var(--sombra-suave);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
    border-top: none;
    display: flex;
    flex-direction: column;
}

.card-curso:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

/* Imagem no topo do card */
.card-imagem-topo {
    width: 100%;
    height: 250px;
    object-fit: cover;
    object-position: center;
    border-bottom: 4px solid var(--cor-azul-premium);
}

.card-corpo {
    padding: 25px 30px 40px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.icone-curso-pequeno {
    color: var(--cor-azul-premium);
    font-size: 1.5rem;
    background: rgba(1, 115, 252, 0.1);
    width: 40px; height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.card-curso h3 {
    font-size: 1.4rem;
    color: var(--cor-texto-titulo);
    line-height: 1.2;
}

.card-curso p {
    font-size: 0.95rem;
    margin-bottom: 25px;
    color: #666;
    flex-grow: 1;
}

.btn-saiba-mais {
    color: var(--cor-azul-premium);
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    font-size: 1rem;
    padding: 0;
}

.btn-saiba-mais:hover {
    gap: 10px;
    transition: gap 0.3s;
}

/* --- MODAL Lightbox --- */
.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 2000;
    display: none; 
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.ativo {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: white;
    width: 100%;
    max-width: 800px;
    max-height: 95vh;
    border-radius: 15px;
    padding: 30px;
    position: relative;
    overflow-y: auto;
    animation: zoomIn 0.3s ease;
}

.btn-fechar-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    color: #333;
    cursor: pointer;
    z-index: 10;
}

.modal-header h3 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--cor-azul-premium);
}

@keyframes zoomIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* ---CSS DO SLIDER (CARROSSEL NO MODAL) --- */
.slider-container {
    position: relative;
    width: 100%;
    height: 400px; /* Altura fixa para a mídia */
    background-color: #000;
    border-radius: 10px;
    overflow: hidden;
    margin: 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-media {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    user-select: none;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    padding: 15px;
    font-size: 20px;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.3s;
    z-index: 5;
}

.slider-btn:hover {
    background: rgba(255, 255, 255, 0.6);
    color: #000;
}

.prev { left: 10px; }
.next { right: 10px; }

.slider-contador {
    position: absolute;
    bottom: 10px;
    right: 15px;
    color: white;
    background: rgba(0,0,0,0.5);
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
}

/* --- GALERIA GERAL --- */
.galeria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 40px;
}

.item-galeria {
    height: 250px;
    overflow: hidden;
    border-radius: 10px;
    position: relative;
    cursor: pointer;
}

.item-galeria img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.item-galeria:hover img { transform: scale(1.1); }

/* --- CONTATO E FORMULÁRIO --- */
.contato-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    background: var(--cor-branca);
    padding: 50px;
    border-radius: 20px;
    box-shadow: var(--sombra-suave);
}

.contato-info h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.item-contato {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 30px;
}

.item-contato i {
    font-size: 1.5rem;
    color: var(--cor-azul-premium);
    margin-top: 5px;
}

.grupo-input { margin-bottom: 20px; }
.grupo-input label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 0.9rem; }

.grupo-input input, .grupo-input select, .grupo-input textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f8f9fa;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.grupo-input input:focus, .grupo-input textarea:focus {
    outline: none;
    border-color: var(--cor-azul-premium);
    background-color: white;
}

/* --- RODAPÉ --- */
footer {
    background-color: #111;
    color: #aaa;
    padding: 60px 0 20px;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 { color: white; margin-bottom: 20px; font-size: 1.2rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a { color: #aaa; text-decoration: none; transition: color 0.3s; }
.footer-col a:hover { color: var(--cor-azul-premium); }

.direitos {
    border-top: 1px solid #333;
    padding-top: 20px;
    text-align: center;
}

/* --- WHATSAPP FLUTUANTE --- */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 32px;
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.4);
    z-index: 1001;
    transition: transform 0.3s;
    text-decoration: none;
}
.whatsapp-float:hover { transform: scale(1.1); }

/* --- ANIMAÇÕES --- */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.animar-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}
.animar-scroll.visivel { opacity: 1; transform: translateY(0); }

/* --- RESPONSIVO --- */
@media (max-width: 900px) {
    .conteudo-hero h1 { font-size: 2.5rem; }
    .sobre-grid, .contato-wrapper { grid-template-columns: 1fr; }
    .contato-wrapper {
        padding: 25px 20px; 
    }
    .sobre-imagem { order: -1; }
    .btn-mobile { display: block; }
    
    .menu-desktop {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 100%;
        background: white;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
        transition: 0.4s;
        text-align: center;
        padding: 20px 0;
    }
    .menu-desktop.ativo { right: 0; }
    .menu-desktop ul { flex-direction: column; }
    .slider-container { height: 250px; } /* Altura menor no celular */
}

@media (max-width: 768px) {
    .galeria-grid { grid-template-columns: 1fr; }
    .item-galeria { height: auto; aspect-ratio: 4 / 3; }
    .item-galeria img { object-position: center; }
    .modal-content { padding: 20px; }
}


/* Alerta pra não quebrar o site se desativar javascript */
.alerta-js {
    width: 100%;
    background: #fff3cd;
    color: #856404;
    padding: 30px;
    text-align: center;
    font-weight: 600;
    z-index: 9999;
    font-family: Montserrat, sans-serif;
}

#conteudoSite {
    display: none;
}
