/* ==========================================================================
   SEUS ESTILOS ORIGINAIS (CONSERVADOS)
   ========================================================================== */
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
    background-image: url("../img/back1.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position:center;
}

.limpa{
    clear: both;
}

.topo{
    width: 100%;
    height: 80px;
    background-color: blue;
}

.topo-centro{
    width: 1200px;
    height: 80px;
    margin: 0 auto;
}

.logo{
    width: 80px;
    height: 80px;
    float: left;
    margin-left: 100px;
}

.logo img{
    width: 80px;
    height: 80px;
}

.titulo{
    width: 800px;
    height: 80px;
    line-height: 80px;
    float: left;
}

.titulo h1{
    text-align:left;
    color: #FFF;
    text-shadow: 2px 2px 4px #000;
    margin-left: 20px;
}

.menu{
    width: 100%;
    height: 35px;
    background-color: rgb(22, 22, 22);
}

.menu-centro{
    width: 1200px;
    height: 35px;
    line-height: 35px;
    margin: 0 auto;
}

.menu-centro a{
    color: #FFF;
    margin-left: 30px;
    cursor: pointer;
    text-decoration: none;
}

.menu-centro a:hover{
    text-decoration: underline;
    color: rgb(50, 100, 240);
}

.corpo{
    width: 1200px;
    height: auto;
    min-height: 400px;
    margin: 0 auto;
    background-color: #f8eeee8e;
    padding: 50px;
}

.formulario{
    width: 500px;
    height: auto;
    background-color: #FFF;
    box-shadow: 10px 10px 20px rgb(9, 83, 243);
    padding: 20px;
    margin: 0 auto;
    border-radius: 10px;
}

.formulario h2{
    font-size: 18px;
    text-align: center;
    margin-bottom: 20px;
}

.formulario form{
    width: 100%;
    height: auto;
    padding: 20px;
    margin: 0 auto;
}

.formulario form input{
    width: 100%;
    height: 35px;
    outline: none;
    margin-top: 5px;
    margin-bottom: 20px;
    border: 1px solid rgb(9, 83, 243);
    border-radius: 10px;
    padding: 5px;
}

.btn{
    background-color: rgb(9, 83, 243);
    color: #FFF;
    cursor: pointer;
}

.btn:hover{
    background-color: rgb(64, 118, 235);
}

.rodape{
    width: 100%;
    height: 120px;
    background-color: blue;
}

.rodape-centro{
    width: 1200px;
    height: 120px;
    line-height: 120px;
    padding: 10px;
    margin: 0 auto;
}

.rodape-centro p{
    color: #FFF;
    text-align: center;
}

/* Estilização do Botão do WhatsApp */
.btn-whatsapp {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 1px 1px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

/* Efeito de aumentar levemente quando passa o mouse */
.btn-whatsapp:hover {
    transform: scale(1.1);
    background-color: #20ba5a;
}

/* Tamanho do ícone dentro do botão */
.btn-whatsapp img {
    width: 35px;
    height: 35px;
}

/* ==========================================================================
   NOVAS REGRAS DE RESPONSIVIDADE (MEDIA QUERIES)
   ========================================================================== */

/* --- TABLETS E TELAS MEDIAS (Até 1220px) --- */
@media screen and (max-width: 1220px) {
    .topo-centro, .menu-centro, .corpo, .rodape-centro {
        width: 100%; /* Remove os 1200px fixos para não quebrar a tela */
        max-width: 100%;
    }

    .logo {
        margin-left: 20px; /* Reduz a margem esquerda que era muito grande */
    }

    .titulo {
        width: calc(100% - 110px); /* Ocupa o restante da tela descontando o logo */
    }
}

/* --- SMARTPHONES (Até 768px) --- */
@media screen and (max-width: 768px) {
    /* Ajustes do Topo */
    .topo {
        height: auto; /* Permite que o topo cresça verticalmente se necessário */
    }
    
    .topo-centro {
        height: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 15px 0;
    }

    .logo {
        float: none;
        margin-left: 0;
        margin-bottom: 10px;
    }

    .titulo {
        float: none;
        width: 100%;
        height: auto;
        line-height: normal;
    }

    .titulo h1 {
        text-align: center;
        margin-left: 0;
        font-size: 24px;
    }

    /* Ajustes do Menu */
    .menu {
        height: auto;
    }

    .menu-centro {
        height: auto;
        line-height: normal;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 10px 0;
    }

    .menu-centro a {
        margin-left: 0;
        margin-bottom: 10px;
        font-size: 16px;
    }
    
    .menu-centro a:last-child {
        margin-bottom: 0;
    }

    /* Ajustes do Corpo e Formulário */
    .corpo {
        padding: 20px 10px;
    }

    .formulario {
        width: 100%; /* O formulário agora se adapta à largura do celular */
        max-width: 450px; /* Mas não passa de 450px para não ficar esticado demais */
        box-shadow: 0px 5px 15px rgb(9, 83, 243);
    }
    
    .formulario form {
        padding: 10px 0; /* Diminui o recuo interno em telas pequenas */
    }

    /* Ajustes do Rodapé */
    .rodape {
        height: auto;
    }

    .rodape-centro {
        height: auto;
        line-height: normal;
        padding: 30px 15px;
    }
}