/* static/css/home.css */

.hero {
    position: relative;
    height: calc(100vh - 80px);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 80px 20px 0;
    background: url('/static/img/background_II.jpg') no-repeat center center/cover;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 80%;
    padding: 40px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.hero-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-text h1 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.about, .testimonials, .cta {
    padding: 40px 20px;
    text-align: center;
}

.about p, .testimonials p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.testimonials {
    background-color: #f9f9f9;
}

.testimonial {
    margin-bottom: 20px;
}

.testimonial p {
    font-style: italic;
}

.testimonial strong {
    display: block;
    margin-top: 10px;
}

.testimonial img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid #206A8D;
}

/* Estilos para o carrossel de depoimentos */
.testimonial-carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 10px;
}

.testimonial {
    flex: 0 0 280px;
    scroll-snap-align: start;
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    min-height: 320px;
    max-height: 320px;
    overflow: hidden;
    /* Isolando o conteúdo para não afetar o layout */
    overflow-y: auto;
    max-width: 280px;
}

/* Estilo do texto dos depoimentos */
.testimonial p {
    font-style: italic;
    font-size: 0.95rem;
    line-height: 1.4;
    max-height: 120px;
    overflow-y: auto;
    margin-bottom: 10px;
}

.testimonial img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid #206A8D;
}

.stars {
    color: #FFD700;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.testimonial strong {
    margin-top: auto;
    font-weight: bold;
    font-size: 1rem;
}

/* Estilos de chamada para ação (CTA) */
.cta {
    background-color: #1D4F73;
    color: white;
}

.cta h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.cta a {
    padding: 12px 20px;
    background-color: #206A8D;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.cta a:hover {
    background-color: #1D4F73;
}

/* Responsividade para telas menores */
@media (max-width: 768px) {
    .hero {
        background-position: top center;
        background-size: contain;
        height: auto;
        padding: 100px 20px;
    }

    .hero::before {
        background: rgba(0, 0, 0, 0.5);
    }

    .hero-content {
        padding: 20px;
        max-width: 95%;
    }

    .hero-text h1 {
        font-size: 1.8rem;
    }

    .hero-text p {
        font-size: 1rem;
    }

    /* Ajuste no carrossel para telas menores */
    .testimonial-carousel {
        overflow-x: scroll;
        justify-content: flex-start;
        gap: 10px;
        padding-bottom: 10px;
    }

    .testimonial {
        flex: 0 0 100%;
        scroll-snap-align: start;
    }

    /* Ajustes no CTA */
    .cta h2 {
        font-size: 1.6rem; /* Reduzir o tamanho da fonte no CTA */
    }

    .cta a {
        font-size: 1rem; /* Tamanho de fonte ajustado para telas menores */
        padding: 10px 18px; /* Ajuste no espaçamento */
    }
}

/* Em telas maiores mostra mais cards por vez */
@media (min-width: 768px) {
    .testimonial-carousel {
        justify-content: center;
        overflow-x: visible;
        flex-wrap: wrap;
        gap: 20px;
    }

    .testimonial {
        flex: 0 0 280px;  /* Ajuste para 1-2 depoimentos por vez em telas médias */
    }
}

/* Em telas extra grandes, exibe até 4 depoimentos ao mesmo tempo */
@media (min-width: 1200px) {
    .testimonial {
        flex: 0 0 22%; /* Ajuste para exibir 4 depoimentos por vez */
    }
}

