/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
}

/* Seção do Cabeçalho */
#header {
    text-align: center;
    padding: 40px 20px;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

#header h1 {
    font-size: 2.5em;
    color: #2c3e50;
}

#header p {
    font-size: 1.2em;
    color: #7f8c8d;
}

/* Seção Hero */
#hero {
    position: relative;
    text-align: center;
}

.hero-img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
}

.hero-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.8);
    padding: 20px;
    border-radius: 10px;
}

.hero-text h2 {
    font-size: 1.8em;
    margin-bottom: 20px;
}

.cta-button {
    display: inline-block;
    padding: 15px 30px;
    background-color: #3498db;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.2em;
}

.cta-button:hover {
    background-color: #2980b9;
}

/* Seção de Diferenciais */
#features {
    padding: 40px 20px;
    text-align: center;
}

#features h2 {
    font-size: 2em;
    margin-bottom: 30px;
}

.feature-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.feature-item {
    background: #fff;
    padding: 20px;
    width: 250px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.feature-item img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    margin-bottom: 10px;
    border-radius: 5px;
}

.feature-item p {
    font-size: 1.1em;
}

/* Seção da Galeria */
#gallery {
    padding: 40px 20px;
    text-align: center;
}

#gallery h2 {
    font-size: 2em;
    margin-bottom: 30px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
}

/* Seção do Rodapé */
#footer {
    text-align: center;
    padding: 20px;
    background-color: #2c3e50;
    color: #fff;
}

#footer a {
    color: #3498db;
    text-decoration: none;
}

#footer a:hover {
    text-decoration: underline;
}

/* Modal (Carrossel) */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

.modal-content {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.7);
    border: none;
    font-size: 30px;
    padding: 10px;
    cursor: pointer;
    color: #333;
}

.prev { left: 20px; }
.next { right: 20px; }

.nav-button:hover {
    background: rgba(255, 255, 255, 1);
}

/* Botão Flutuante do WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
    width: 60px;
    height: 60px;
    background-color: #25D366; /* Verde oficial do WhatsApp */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    text-decoration: none;
    transition: transform 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

.whatsapp-icon {
    width: 40px;
    height: 40px;
}

/* Botão e Modal de Investimento */
.investment-button-container {
    text-align: center;
    padding: 20px 0;
}

.info-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #e74c3c; /* Vermelho para destacar */
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.2em;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

.info-button:hover {
    background-color: #c0392b;
}

.investment-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    background-image: url('assets/img/14.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 1; /* Controlado pelo JS */
}

.investment-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9); /* 90% branco para 10% da imagem visível */
    z-index: -1;
}

.investment-modal-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    text-align: justify; /* Justifica o texto */
}

.investment-close {
    position: absolute;
    top: 10px;
    right: 20px;
    color: #333;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
}

.investment-modal-content h2 {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: #2c3e50;
    text-align: center; /* Título centralizado */
}

.investment-modal-content p {
    font-size: 1.1em;
    margin-bottom: 15px;
}

.investment-modal-content ul {
    list-style-type: disc;
    text-align: left; /* Lista alinhada à esquerda */
    margin: 0 0 20px 20px;
}

.investment-modal-content li {
    font-size: 1.1em;
    margin-bottom: 10px;
}

.investment-modal-content .cta-button {
    margin-top: 20px;
    display: block; /* Torna o botão um bloco */
    margin-left: auto; /* Centraliza horizontalmente */
    margin-right: auto; /* Centraliza horizontalmente */
    width: fit-content; /* Ajusta a largura ao conteúdo */
}

/* Media Queries para Responsividade */

/* Tablets e telas médias (até 768px) */
@media (max-width: 768px) {
    #header h1 {
        font-size: 2em;
    }
    #header p {
        font-size: 1em;
    }

    .hero-img {
        max-height: 300px;
    }
    .hero-text h2 {
        font-size: 1.5em;
    }
    .cta-button {
        font-size: 1em;
        padding: 10px 20px;
    }

    #features h2 {
        font-size: 1.8em;
    }
    .feature-item {
        width: 100%;
        max-width: 300px;
    }

    #gallery h2 {
        font-size: 1.8em;
    }
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    .gallery-img {
        height: 150px;
    }

    .close {
        font-size: 30px;
        right: 20px;
    }
    .nav-button {
        font-size: 25px;
        padding: 8px;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
    }
    .whatsapp-icon {
        width: 30px;
        height: 30px;
    }

    .info-button {
        font-size: 1em;
        padding: 8px 15px;
    }
    .investment-modal-content {
        max-width: 90%;
    }
    .investment-modal-content h2 {
        font-size: 1.6em;
    }
    .investment-modal-content p, .investment-modal-content li {
        font-size: 1em;
    }
}

/* Celulares (até 480px) */
@media (max-width: 480px) {
    #header {
        padding: 20px 10px;
    }
    #header h1 {
        font-size: 1.5em;
    }
    #header p {
        font-size: 0.9em;
    }

    .hero-img {
        max-height: 200px;
    }
    .hero-text {
        padding: 10px;
    }
    .hero-text h2 {
        font-size: 1.2em;
        margin-bottom: 10px;
    }
    .cta-button {
        font-size: 0.9em;
        padding: 8px 15px;
    }

    #features {
        padding: 20px 10px;
    }
    #features h2 {
        font-size: 1.5em;
    }
    .feature-item {
        padding: 15px;
    }
    .feature-item img {
        width: 80px;
        height: 80px;
    }
    .feature-item p {
        font-size: 1em;
    }

    #gallery {
        padding: 20px 10px;
    }
    #gallery h2 {
        font-size: 1.5em;
    }
    .gallery-img {
        height: 120px;
    }

    #footer {
        padding: 15px;
        font-size: 0.9em;
    }

    .modal-content {
        max-width: 95%;
        max-height: 85vh;
    }
    .close {
        font-size: 25px;
        top: 10px;
        right: 15px;
    }
    .nav-button {
        font-size: 20px;
        padding: 5px;
    }
    .prev { left: 10px; }
    .next { right: 10px; }

    .whatsapp-float {
        width: 40px;
        height: 40px;
        bottom: 10px;
        left: 10px;
    }
    .whatsapp-icon {
        width: 25px;
        height: 25px;
    }

    .info-button {
        font-size: 0.9em;
        padding: 6px 12px;
    }
    .investment-modal-content {
        max-width: 95%;
        padding: 15px;
    }
    .investment-modal-content h2 {
        font-size: 1.4em;
    }
    .investment-modal-content p, .investment-modal-content li {
        font-size: 0.9em;
    }
    .investment-close {
        font-size: 25px;
        right: 15px;
    }
}