/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Layout Global */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #FFFFFF;
    color: #0a2f51;
}

html, body {
    overflow-x: hidden; /* Evita overflow lateral */
    margin: 0;
    padding: 0;
    height: 100%; /* Certifique-se de que o conteúdo preencha a tela */
}

/* Cabeçalho */
.main-header {
    background-color: #0a2f51;
    padding: 5px 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 100;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    max-width: 100px;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

.main-nav ul li {
    display: inline;
}

.main-nav ul li a {
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 1rem;
    padding: 10px;
    transition: color 0.3s ease;
}

.main-nav ul li a:hover {
    background-color: #f5a623;
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
}

/* Adicionando espaçamento ao conteúdo para não ficar embaixo do cabeçalho fixo */
body {
    padding-top: 80px;
}

/* Container */
.container {
    width: 90%;
    margin: 0 auto;
    max-width: 1200px;
}

/* Hero Section */
.hero-section {
    background-color: #f5a623;
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero-section .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-section h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    animation: fadeIn 1.5s ease-in-out;
}

.hero-section p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.cta-button {
  background-color: #0a2f51;
    color: white;
    padding: 12px 25px;
    font-size: 1rem;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 25px;
    transition: background-color 0.3s ease, color 0.3s ease;
    display: block;
    margin: 0 auto; /* Adiciona centralização */
    text-align: center;
    width: fit-content;
}

.cta-button:hover {
    background-color: #f5a623;
    color: #0a2f51;
}

/* Animações keyframes */
@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounceIn {
    0%, 20%, 40%, 60%, 80%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Seção de Serviços */
.services-section {
    padding: 60px 0;
    background-color: #FFFFFF;
    text-align: center;
}

.services-section h2 {
    margin-bottom: 40px;
    font-size: 2.5rem;
    color: #0a2f51;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.service-item {
    background-color: #f8f8f8;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center; /* Centraliza os itens horizontalmente */
    text-align: center; /* Centraliza o texto dentro do bloco */
}

.service-item .service-icon {
    max-width: 50px;
    margin-bottom: 15px;
}

.service-item h3 {
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: #f5a623;
}

.service-item p {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.cta-button {
    background-color: #0a2f51;
    color: white;
    padding: 12px 25px;
    font-size: 1rem;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 25px;
    transition: background-color 0.3s ease, color 0.3s ease;
    display: block;
    margin: 0 auto;
    text-align: center;
    width: fit-content;
}

.cta-button:hover {
    background-color: #f5a623;
    color: #0a2f51;
}

/* Efeito de hover */
.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Seção de Depoimentos */
.testimonials-section {
    padding: 50px 0;
    background-color: #f8f8f8;
    text-align: center;
}

.testimonials-section h2 {
    font-size: 2.5rem;
    color: #0a2f51;
    margin-bottom: 40px;
}

.testimonials-grid {
    display: flex;
    gap: 40px;
    justify-content: center;
}

.testimonial-item {
    background-color: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    text-align: left;
}

.testimonial-item p {
    font-style: italic;
    color: #666;
}

.testimonial-item h4 {
    text-align: right;
    color: #f5a623;
    margin-top: 20px;
}

/* Seção de Contato */
.contact-section {
    padding: 50px 0;
    background-color: #f5a623;
    color: white;
    text-align: center;
}

.contact-section form {
    display: flex;
    flex-direction: column;
    max-width: 600px;
    margin: 0 auto;
}

.contact-section input,
.contact-section textarea {
    padding: 15px;
    margin-bottom: 15px;
    border: none;
    border-radius: 5px;
}

.contact-section input:focus, 
.contact-section textarea:focus {
    outline: none;
    border: 2px solid #0a2f51;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.contact-section button {
    background-color: #0a2f51;
    color: white;
    padding: 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.contact-section button:hover {
    background-color: #FFFFFF;
    color: #0a2f51;
}

/* Feedback de envio de formulário */
form:after {
    content: 'Mensagem enviada com sucesso!';
    display: none;
    color: white;
    background-color: #0a2f51;
    padding: 10px;
    border-radius: 5px;
    margin-top: 15px;
    text-align: center;
}

form.submitted:after {
    display: block;
}

/* Footer */
footer {
      background-color: #0a2f51;
    color: white;
    padding: 40px 0;
    margin-bottom: 0; 
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    text-align: left;
}

.footer-section {
    flex: 1;
    margin: 10px;
}

.footer-section h3, .footer-section h4 {
    margin-bottom: 15px;
    color: #f5a623;
}

.footer-section p {
    margin-bottom: 10px;
    line-height: 1.6;
    color: #cccccc;
}

.footer-section a {
    color: #f5a623;
    text-decoration: none;
}

.footer-section a:hover {
    text-decoration: underline;
}

.social-icon {
    width: 30px;
    height: 30px;
    margin-top: 10px;
}

.footer-bottom {
      text-align: center;
    padding: 20px 0;
    background-color: #08273a;
    color: #cccccc;
    font-size: 0.9rem;
    margin-bottom: 0;
}

.footer-bottom p {
    margin: 0;
}

/* Responsividade */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-section {
        margin-bottom: 20px;
    }
}


/* Responsividade */
@media (max-width: 768px) {
    .main-nav ul {
        flex-direction: column;
        text-align: center;
    }

    .main-nav ul li {
        margin: 10px 0;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* Seção de Parceiros */
.partners-section {
    padding: 50px 0;
    background-color: #f8f8f8;
    text-align: center;
}

.partners-section h2 {
    font-size: 2.5rem;
    color: #0a2f51;
    margin-bottom: 40px;
}

.carousel {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.carousel-slide {
    display: flex;
    width: 100%;
    animation: slide 20s infinite linear;
}

.carousel-slide img {
    width: 200px;
    margin: 0 15px;
    transition: transform 0.3s ease;
}

.carousel-slide img:hover {
    transform: scale(1.1);
}

@keyframes slide {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Responsividade para o carrossel */
@media (max-width: 768px) {
    .carousel-slide {
        flex-direction: row;
    }

    .carousel-slide img {
        width: 150px;
        margin: 0 10px;
    }
}

#whatsapp-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 100;
}
#whatsapp-btn img {
    width: 50px;
    height: 50px;
}

/* Seção do Blog */
.blog-hero-section {
    background-color: #f5a623;
    color: white;
    padding: 60px 0;
    text-align: center;
}

.blog-hero-section h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.blog-hero-section p {
    font-size: 1.2rem;
}

.blog-list-section {
    padding: 60px 0;
    background-color: #FFFFFF;
    text-align: center;
}

.blog-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.blog-post {
    background-color: #f8f8f8;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.blog-image {
    width: 100%;
    height: auto;
    margin-bottom: 20px;
    border-radius: 10px;
}

.blog-snippet {
    color: #666;
    font-size: 1rem;
    margin-bottom: 20px;
}

.cta-button {
    background-color: #0a2f51;
    color: white;
    padding: 10px 20px;
    text-transform: uppercase;
    text-decoration: none;
    font-size: 1rem;
    border-radius: 5px;
}

.cta-button:hover {
    background-color: #f5a623;
    color: #0a2f51;
}

/* Seção do Post */
.post-hero-section {
    background-color: #f5a623;
    color: white;
    padding: 60px 0;
    text-align: center;
}

.post-hero-section h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.post-hero-section p {
    font-size: 1.2rem;
}

.post-content-section {
    padding: 60px 0;
    background-color: #FFFFFF;
}

.post-content {
    max-width: 800px;
    margin: 0 auto;
}

.post-banner-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 20px;
}

.post-content h2 {
    color: #0a2f51;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.post-content p, .post-content ul {
    font-size: 1rem;
    line-height: 1.6;
    color: #666;
    margin-bottom: 20px;
}

.post-content ul {
    list-style-type: disc;
    padding-left: 40px;
}

blockquote {
    background-color: #f5f5f5;
    padding: 20px;
    margin: 20px 0;
    border-left: 5px solid #f5a623;
    font-style: italic;
    color: #666;
}

.cta-button {
    background-color: #0a2f51;
    color: white;
    padding: 12px 25px;
    font-size: 1rem;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 25px;
    transition: background-color 0.3s ease, color 0.3s ease;
    display: block;
    margin: 40px 0;
    text-align: center;
    width: fit-content;
}

.cta-button:hover {
    background-color: #f5a623;
    color: #0a2f51;
}

/* Seção do Blog com Carrossel */
.blog-section {
    padding: 60px 0;
    background-color: #FFFFFF;
    text-align: center;
}

.blog-carousel {
    display: flex;
    overflow-x: auto; /* Permite rolagem horizontal */
    scroll-behavior: smooth;
    gap: 20px;
    padding: 20px 0;
    max-width: 100%;
    margin: 0 auto;
    white-space: nowrap; /* Evita quebra de linha nos posts */
}


.blog-post {
    min-width: 300px;
    max-width: 320px;
    background-color: #f8f8f8;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: auto; /* Permite que o card aumente de tamanho */
    min-height: 320px; /* Define um tamanho mínimo */
    overflow: hidden;
}


.blog-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Força os textos dentro dos cards a quebrarem corretamente */
.blog-post h3 {
    font-size: 1.2rem;
    font-weight: bold;
    color: #0a2f51;
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 60px; /* Garante altura mínima fixa para títulos */
    max-height: 80px; /* Evita que títulos muito grandes quebrem o layout */
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-snippet {
    color: #666;
    font-size: 1rem;
    line-height: 1.5;
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 80px; /* Ajusta altura mínima para evitar cortes */
    max-height: 100px; /* Mantém um limite para evitar desorganização */
    flex-grow: 1; /* Permite que o texto ocupe mais espaço */
    display: flex;
    align-items: center;
    justify-content: center;
}


.blog-post .cta-button {
    margin-top: auto;
    padding: 12px 20px;
}

.cta-button {
    background-color: #0a2f51;
    color: white;
    padding: 10px 20px;
    text-transform: uppercase;
    text-decoration: none;
    font-size: 1rem;
    border-radius: 5px;
    display: block;
    width: fit-content;
    margin: auto;
}

.blog-carousel {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    overflow-x: auto;
    scroll-behavior: smooth;
    max-width: 100%;
}

/* Ajuste para telas menores */
@media (max-width: 768px) {
    .blog-post {
        min-width: 250px;
        max-width: 280px;
        height: 350px; /* Aumenta a altura mínima para comportar mais texto */
    }

    .blog-snippet {
        max-height: 80px; /* Ajuste para maior responsividade */
    }
}

/* Estilos para os botões de navegação do carrossel */
.carousel-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

.carousel-prev,
.carousel-next {
    background-color: #0a2f51;
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 24px;
    border-radius: 50%;
    transition: background-color 0.3s ease;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-prev:hover,
.carousel-next:hover {
    background-color: #f5a623;
    color: #0a2f51;
}


/* Ajusta o contêiner do carrossel para estar entre os botões */
.blog-carousel {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 20px;
    padding: 20px 0;
    max-width: 90%;
    margin: 0 auto;
}

/* Responsividade para melhor exibição */
@media (max-width: 768px) {
    .blog-carousel {
        flex-direction: row;
        overflow-x: scroll;
        gap: 10px;
    }

    .blog-post {
        min-width: 250px;
        max-width: 280px;
    }
}