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

:root {
  --fundo: #000918;
  --fundo-c: #f9fafb;
  --destaques: #6f2bcd;
  --icones:#e9e6fc;
  --botao-principal: #2563eb;
  --hover: #3b82f6;
  --highlight: #fbc531;
}

nav img {
    width: 100px;
    height: auto;
}

.logo {
    font-size: 1.2em;
    font-weight: bold;
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    background-color: var(--fundo-c);
    width: 100%;
    margin-bottom: 20px;
}

header{
    padding-top: 30px;
}

.perfil {
    background-color: var(--fundo);
    width: 100%;
}

#titulo-perfil{
    font-size: 1em;
    margin: 10px auto;
}
.hero {
    width: 100%;
    text-align: justify;
}

.botao-principal{
    width: 50%;
    margin: 10px auto;
    text-align: center;
}

.botao-wpp-principal{
    text-align: center;
    padding: 7px;
    
    border: 3px solid var(--destaques);
    border-radius: 20px;
    box-shadow: 3px 2px 5px var(--hover);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
    opacity: 0.9;
    min-width: 300px
}
.botao-wpp-principal:hover{
    color: var(--highlight);
    background-color: var(--botao-principal);
    transition: 0.8s;
}

.botao-wpp-principal i, .parcela-modal-content i{
    color: #25D366;
    font-size: 1.3rem;
}

.banner {
    display: none;
}

.parcela-modal{

    display:none;
    position:fixed;
    padding: 10px;

    top:50%;
    left:50%;
    transform:translate(-50%, -50%);

    width:70vw;
    height:70vh;  

    background: var(--botao-principal);
    z-index:99999;

    border-radius: 20px;
    text-align: center;
    box-shadow: 1px 1px 12px var(--highlight);

}

.parcela-modal input{
    border-radius: 20px;
    border: none;
    height: 30px;
    margin-top: 20px;
    padding: 10px;
}
.parcela-modal button{
    border: none;
    border-radius: 30px;
    padding: 5px;
    color: var(--fundo);
    font-weight: bold;
    background-color: var(--highlight);
    border: 2px solid var(--icones);
}

.parcela-modal button:hover{
    background-color: var(--destaques);
    transition: 0.8s;
}

.parcela-modal span{
    color: var(--fundo);
    font-weight: bolder;
    font-size: 1em;
}
.parcela-modal p{
    text-align: center;
}
.parcela-modal small{
    font-size: 0.8em;
    padding: 5px;
    color: var(--fundo);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}


.parcela-modal-content{

    background: var(--icones);
    width:90%;
    max-width:220px;
    margin:30px auto;
    padding:5px;
    border-radius:15px;
    text-align:center;
    position:relative;
    animation:parcelaFade .3s;
    box-shadow: 3px 2px 5px var(--hover);

}
.parcela-modal-content a{
    text-decoration: none;
    font-weight: bold;
    color: var(--fundo);
}
.parcela-modal-content a:hover{
    color: var(--highlight);
    transition: 0.5s;
}

@keyframes parcelaFade{

    from{
        transform:translateY(-20px);
        opacity:0;
    }

    to{
        transform:translateY(0);
        opacity:1;
    }

}

.parcela-fechar{

    position:absolute;
    right:10px;
    top:10px;
    cursor:pointer;

}

#parcelaResultado{

    margin-top:20px;

}

#whatsapp {
    position: fixed;
    bottom: 80px;
    right: 20px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0px 4px 5px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    font-size: 2rem;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    z-index: 1000;
}

#whatsapp.show {
  opacity: 1;
  pointer-events: auto;
}

#whatsapp:hover {
  transform: scale(1.1);
  background-color: var(--hover);
  color: var(--icones);
}

h2 {
    color: var(--hover);
    font-size: 2rem;
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    text-align: center;
}


.main-produtos {
    display: grid;
    justify-items: center;
    gap: 25px;
    width: 80%;
    max-width: 1400px;
    margin: 0 auto;
}

.produto {
    width: 80%;
    display: flex;
    flex-direction: column;
    align-items: center; 
    background: var(--fundo-c); 
    padding: 15px;
    border-radius: 15px;
    box-shadow: 0px 4px 5px rgba(0, 0, 0, 0.05);
}
.produto:hover {
    transform: translateY(-5px);
    box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: rgba(108, 108, 108, 0.052);
}

.produto h3 {
    color: var(--fundo);
    font-size: 1.4rem;
    margin-bottom: 15px;
    text-align: center;
    transition: color 0.3s ease;
}

.produto h3:hover {
    color: var(--highlight);
}

.produto p {
    color: var(--hover);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-top: 15px;
    margin-bottom: 15px;
    text-align: justify;
}

.produto > img {
    width: 100%;         
    height: 50%;         
    object-fit: contain;  
    background-color: #f5f5f5; 
    border-radius: 10px 10px 0 0; 
    box-shadow: 1px 5px 5px rgba(0, 0, 0, 0.1);
}

.logos-imoveis > .logo-mcmv, .produto > .logo-riva {
    width: 50px;
    height: auto;
    margin-top: 10px;
    object-fit: contain;
    background: transparent;
    box-shadow: none;
}


.produto {
    cursor: pointer;
}

/* Estilização da Janela Modal */
.modal {
    display: none; 
    position: fixed;
    z-index: 2000; 
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto; 
    background-color: rgba(0, 9, 24, 0.85); 
    backdrop-filter: blur(5px);
    padding: 20px 10px;
}

.modal-content {
    background-color: #ffffff;
    margin: 5% auto;
    padding: 10px;
    border-radius: 15px;
    width: 90%;
    max-width: 850px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    color: #333;
}

/* Botão Fechar */
.close-modal {
    position: absolute;
    right: 25px;
    top: 15px;
    color: #aaa;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}
.close-modal:hover {
    color: var(--destaques);
}

#modal-titulo {
    color: var(--fundo);
    font-size: 1.8rem;
    margin-bottom: 20px;
    padding-right: 30px;
}

.galeria-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}

.foto-principal {
    width: 100%;
    height: 350px; 
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f5f5f5;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.foto-principal img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.miniaturas {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.miniaturas img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s, border 0.2s;
    border: 2px solid transparent;
}

.miniaturas img.ativa, .miniaturas img:hover {
    opacity: 1;
    border-color: var(--botao-principal);
}

.detalhes-texto h3 {
    color: var(--botao-principal);
    margin-bottom: 10px;
}

#modal-descricao-longa {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
    text-align: justify;
    margin-bottom: 25px;
}

.modal {
    display: none; 
    position: fixed;
    z-index: 2000; 
    left: 0; top: 0;
    width: 100%; height: 100%;
    overflow-y: auto; 
    background-color: rgba(0, 9, 24, 0.85); 
    backdrop-filter: blur(5px);
    transition: opacity 0.3s ease;
}

.modal-content {
    background-color: #ffffff;
    margin: 5% auto;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 850px;
    position: relative;
    color: #333;
}

.miniaturas img {
    width: 80px; height: 60px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid transparent;
}

.miniaturas img.ativa {
    border-color: var(--botao-principal);
}

.btn-interesse {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #25D366;
    color: white;
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 30px;
    font-weight: bold;
    font-size: 1.05rem;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
    transition: transform 0.2s, background-color 0.2s;
}

.btn-interesse:hover {
    transform: translateY(-2px);
    background-color: #20ba59;
}

.divisoria{
    width:90%;
    margin: 50px auto;
    height: 5px;
    background-color: var(--highlight);
}

.financiamento{
    width: 70%;
    max-width: 800px;
    margin: 0 auto;
    color: var(--fundo);
    text-align: justify;
    border-radius: 10px;
}

.financiamento h3 {
    color: var(--destaques);
    margin-bottom: 10px;
    margin: 20px 0 10px 0;
}
.financiamento p {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
    text-align: justify;
    margin-bottom: 25px;
}
.financiamento span {
    color: var(--hover);
    font-weight: bold;
    margin-bottom: 25px 0;
}
.financiamento ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 25px;
}
.financiamento a, .financiamento i{
    color: var(--destaques);
    margin-right: 10px;
    margin-bottom: 30px;
    text-decoration: none;
    color: var(--highlight);
    font-weight: bold;
    font-size: 1.05rem;
}

.financiamento i{
    color: #3bad74;
    font-size: 2rem;
}

.financiamento a:hover {
    color: var(--hover);
    text-decoration: underline;
}

.pagamento{
    box-shadow: 0px 4px 5px rgba(0, 0, 0, 0.05);
    padding: 20px;
    border-top: 2px solid var(--destaques);
    border-bottom: 2px solid var(--destaques);
    margin-bottom: 20px;
    border-radius: 20px;
}

.formulario{
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 20px;
    border-radius: 20px;
    width: 80vw;
    max-width: 550px;
    margin: 0 auto;
    box-shadow: 0 4px 12px rgba(37, 150, 211, 0.3);
}
.formulario .input-form {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.formulario .input-form input {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}
.formulario .input-form input:focus {
    border-color: var(--botao-principal);
    outline: none;
}
.formulario .botoes-form {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 15px;
}
.formulario p{
    color: var(--icones);
    font-weight: bolder;
    text-shadow: 2px 2px 2px rgb(0, 0, 0);
}
.formulario  input::placeholder, .formulario textarea::placeholder{
    color: #03112a80;
}
.mensagem{
    width: 100%;
    height: 150px;
    padding: 7px;
    border: none;
    resize: none;
    box-shadow: 2px 2px 12px rgba(37, 141, 211, 0.307);
    font-family: sans-serif;
    font-size: 0.9em;
}
.botoes-form button{
    background-color: var(--hover);
    border: none;
    padding: 10px;
    border-radius: 10px;
    color: var(--highlight);
    font-weight: bolder;
    box-shadow: 2px 4px 5px rgba(40, 37, 211, 0.345);
}
.botoes-form button:hover{
    background-color: var(--highlight);
    color: var(--fundo-c);
    transition: 0.8s;
}

.mensagem-formulario{
    display: none;
    text-align: center;
    padding: 60px 20px;
}
.mensagem-formulario p {
    color: var(--destaques);
    opacity: 0.4;
    font-weight: bolder;
}
.btn-contato{
    width: 100%;
    text-align: center;
}
.btn-contato i {
    color: #3bad74;
    font-size: 2rem;
}
.btn-contato a{
    color: var(--destaques);
    margin-right: 10px;
    margin-bottom: 30px;
    text-decoration: none;
    color: var(--highlight);
    font-weight: bold;
    font-size: 1.05rem;
}
.btn-contato a:hover {
    color: var(--hover);
    text-decoration: underline;
}

/* Responsividade */

@media (min-width: 768px) {
    #titulo-perfil{
        font-size: 2em;
    }
     .hero {
        flex: 0 0 70%;
        width: 70%;
        padding: 30px;
    }
    .dashboard {
        flex: 0 0 35%;
        width: 30vw;
    }
    .parcela-modal{
        max-height: 500px;
        max-width: 500px;
    }
    .banner {
        display: block;
        position: absolute;
        bottom: -0;
        right: 0;
        width: 30%;
        max-width: 300px;
        overflow: hidden;
        box-shadow: 0px 4px 5px rgba(0, 0, 0, 0.1);
    }

    .main-produtos {
        grid-template-columns: repeat(3, 1fr);
        width: 95%;
        max-width: 1400px;
    }

    .produto {
        width: 100%;
    }
    .foto-principal {
        height: 400px; 
    }
}
@media (max-width: 1024px) {
    .main-produtos {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .main-produtos {
        grid-template-columns: 1fr;
    }
    .botao-wpp-principal, .simulador a{
        font-size: 1rem;
    }

    .botao-wpp-principal i{
        font-size: 1.2rem;
    }
    .parcela-modal{
        width: 95%;
        height: 95%;
        padding: 10px;
    }
    .hero p{
        text-align: center;
    }