/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: linear-gradient(to bottom, #fff5e6, #f8f9fa);
    color: #333;
    line-height: 1.6;
}

/* Cabeçalho */
.cabecalho {
    background-color: #ff6600;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    padding: 20px;
}

.cabecalho .logo {
    max-width: 100px;
}

.titulo {
    color: white;
    font-size: 36px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1.3;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.lema {
    color: #fff;
    font-size: 18px;
    font-style: italic;
    font-family: 'Georgia', serif;
}

/* Menu */
nav.menu {
    background-color: #000;
    padding: 15px 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
}

.menu a {
    text-decoration: none;
    color: #fff;
    font-weight: bold;
    font-size: 18px;
    padding: 8px 12px;
    transition: background 0.3s ease, color 0.3s ease;
    border-radius: 4px;
}

.menu a:hover {
    background-color: #c85900;
    color: #fff5e6;
}

.login-btn,
.login-topo {
    background: #ff6600;
    color: #fff;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    margin-left: 10px;
}

.login-btn:hover,
.login-topo:hover {
    background: #cc5200;
    transform: scale(1.05);
}


/* Slideshow */
.slideshow {
    position: relative;
    max-width: 900px;
    height: 400px;
    margin: 40px auto;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

/* Cards */
.cards {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.card {
    background-color: #fff;
    border: 2px solid #ff6600;
    border-radius: 8px;
    padding: 20px;
    width: 280px;
    text-align: center;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.card h3 {
    color: #ff6600;
    margin-bottom: 10px;
    font-size: 22px;
}

/* Notícias */
.noticias {
    max-width: 1000px;
    margin: 50px auto;
    text-align: center;
}


.noticia-card {
    min-width: 300px;
    background-color: #fff;
    border: 2px solid #ff6600;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.noticia-card:hover {
    transform: translateY(-5px);
}

.noticia-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
}

.noticia-card p {
    font-size: 16px;
    margin-top: 10px;
    color: #333;
}

.carrossel-noticias {
    display: flex;
    gap: 30px;
    animation: deslizar 20s linear infinite;
}


@keyframes deslizar {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Cursos */
.cursos-home {
    text-align: center;
    margin: 50px auto;
    max-width: 1200px;
}

.cursos-home h2 {
    font-size: 32px;
    color: #c85900;
    margin-bottom: 30px;
}

.cursos-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.curso-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    background-color: #fff;
    border: 2px solid #ff6600;
    border-radius: 10px;
    overflow: hidden;
    width: 280px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.curso-card:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.curso-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.curso-card h3 {
    font-size: 20px;
    color: #333;
    padding: 15px;
    background-color: #fff5e6;
    width: 100%;
    text-align: center;
}

/* Formulário */
.contato {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.1);
    margin: 40px auto;
    max-width: 600px;
}

.contato h2 {
    color: #ff6600;
    margin-bottom: 20px;
    text-align: center;
}

.contato form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contato input,
.contato textarea {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
}

.contato button {
    background-color: #ff6600;
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 6px;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.contato button:hover {
    background-color: #c85900;
}

/* Mapa */
.mapa {
    padding: 20px;
    text-align: center;
}

/* Botão WhatsApp */
.whatsapp {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.whatsapp img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    animation: pulse 2s infinite;
    /* animação sempre ativa */
    transition: filter 0.3s ease;
}

.whatsapp img:hover {
    filter: brightness(1.2);
    /* dá destaque no hover sem cancelar o pulse */
}


/* Animação pulse */
@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.25);
    }

    /* mais visível */
    100% {
        transform: scale(1);
    }
}

/* Rodapé */
footer {
    background-color: #000;
    color: #fff;
    text-align: center;
    padding: 20px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

/* Fade-in animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease, transform 1s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}



/* Responsividade para tablets */
@media (max-width: 768px) {
    .titulo {
        font-size: 28px;
    }

    nav.menu {
        gap: 20px;
    }

    .slideshow {
        height: 250px;
    }

    .cards {
        flex-direction: column;
        align-items: center;
    }

    .cursos-grid {
        flex-direction: column;
        align-items: center;
    }
}

/* Responsividade para celulares */
@media (max-width: 480px) {
    .titulo {
        font-size: 22px;
        line-height: 1.2;
    }

    .lema {
        font-size: 14px;
    }

    nav.menu {
        flex-direction: column;
        gap: 10px;
        padding: 10px;
    }

    .menu a {
        font-size: 16px;
        padding: 8px;
        width: 100%;
        text-align: center;
    }

    .slideshow {
        height: 180px;
        max-width: 100%;
        margin: 20px auto;
    }

    .cards {
        flex-direction: column;
        gap: 15px;
        margin: 20px 0;
    }

    .card {
        width: 90%;
    }

    .carrossel-noticias {
        flex-direction: column;
        animation: none;
        /* desativa o deslizar automático em telas pequenas */
    }

    .noticia-card {
        width: 90%;
        margin: 0 auto;
    }

    .cursos-grid {
        flex-direction: column;
        gap: 15px;
    }

    .curso-card {
        width: 90%;
    }

    .contato {
        width: 95%;
        padding: 20px;
    }

    .contato input,
    .contato textarea {
        font-size: 14px;
    }

    .contato button {
        font-size: 16px;
        padding: 10px;
    }

    footer {
        font-size: 14px;
        padding: 15px;
    }

    .whatsapp img {
        width: 50px;
        height: 50px;
    }
}