/* Estilos básicos reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    color: #333;
    line-height: 1.6;
}

/* Estilos do header */
.top-bar {
    background-color: #213e33;
    color: white;
    padding: 8px 0;
    font-size: 14px;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    
    
}


.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-icons a {
    color: white;
    margin-left: 15px;
    text-decoration: none;
    font-size: 18px;
}

/* Header principal */
.main-header {
    background-color: white;
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    /* Coloca os itens em linha */
    align-items: center;
    /* Alinha verticalmente o texto e a imagem */
    gap: 15px;
    /* Espaço entre a imagem e o texto */
}

.logo img {
    height: 50px
}

.main-menu ul {
    display: flex;
    list-style: none;
}

.main-menu li {
    margin: 0 15px;
}

.main-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.main-menu a:hover {
    color: #4a8c2b;
}

.mobile-menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* Hero Section */
.hero {
    background:
        linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
        url(../imgs/fundo_top.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    padding: 100px 0;
    text-align: left;
}

.hero-content {
    max-width: 600px;
}

.hero h4 {
    font-size: 18px;
    margin-bottom: 15px;
}

.hero h2 {
    font-size: 42px;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    margin-bottom: 30px;
    font-size: 18px;
}

.btn {
    display: inline-block;
    background-color: #02451C;

    color: white;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #3a6e20;
}



/* Seção de recursos */
/* ====== Estrutura principal ====== */
.painel-noticias {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  padding: 60px 20px;
  background: #f9f9f9;
}

.painel-container {
  max-width: 1100px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ====== Título ====== */
.section-title h2 {
  font-size: 2rem;
  color: #1565c0;
  margin-bottom: 25px;
  text-transform: uppercase;
  font-weight: bold;
  letter-spacing: 1px;
  text-align: center;
}

/* ====== Grid de Cards ====== */
.features-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  width: 100%;
  min-height: 420px;
}

/* ====== Card ====== */
.feature-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  width: 280px;
  height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* ====== Imagem do Card ====== */
.feature-img {
  flex: 0 0 180px;
  overflow: hidden;
}

.feature-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;       /* mantém proporção cortando fora */
  object-position: top;    /* 🔹 começa mostrando de cima pra baixo */
  display: block;
}

/* ====== Conteúdo ====== */
.feature-content {
  flex: 1;
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.feature-content h3 {
  font-size: 16px;
  color: #0d47a1;
  margin-bottom: 8px;
}

.feature-content p {
  font-size: 14px;
  color: #444;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}

/* ====== Abas ====== */
.abas {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 25px;
}

.aba-btn {
  background: #1565c0;
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
}

.aba-btn:hover {
  background: #0d47a1;
}

.aba-btn.ativo {
  background: #0d47a1;
  box-shadow: 0 0 6px rgba(0,0,0,0.25);
}

/* ====== Botão Mostrar Mais ====== */
.btn-mais {
  background: #2e7d32;
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  font-size: 16px;
  margin-top: 30px;
  transition: all 0.3s;
}

.btn-mais:hover {
  background: #1b5e20;
}

/* ====== Responsivo ====== */
@media (max-width: 768px) {
  .feature-card {
    width: 90%;
    height: 360px;
  }

  .features-grid {
    min-height: 380px;
  }

  .section-title h2 {
    font-size: 1.6rem;
  }
}
/* ====== Responsivo ====== */
@media (max-width: 768px) {
  .feature-card {
    width: 70%;
    height: 300px;
  }

  .features-grid {
    min-height: 380px;
  }

  .section-title h2 {
    font-size: 1.6rem;
  }
}



/* Estilo do modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
}

.modal-conteudo {
    margin: auto;
    display: block;
    max-width: 80%;
    max-height: 80%;
}

#caption {
    margin: 15px auto;
    text-align: center;
    color: #ccc;
}

.fechar {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.fechar:hover {
    color: red;
}

/* Seção Sobre */
.about {
    background:
        linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
        url(../imgs/fundo_credito.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    padding: 100px 0;
    text-align: left;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text h2 {
    font-size: 36px;
    color: #213e33;
    margin-bottom: 20px;
}






/* Seção Produtos */
.slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.slides {
    position: relative;
    overflow: hidden;
}

.slide {
    display: none;
    animation: fade 0.6s;
}

.slide.active {
    display: block;
}

.slide img {
    width: 100%;
    height: 500px; /* 🔹 altura fixa */
    object-fit: cover; /* 🔹 mantém proporção e corta excesso */
    border-radius: 10px;
    margin-bottom: 10px;
    object-position: center;
}


.dots {
    display: flex;              /* coloca os itens em linha */
    justify-content: center;    /* centraliza horizontalmente */
    gap: 20px;                  /* espaço entre cada item */
    margin-top: 15px;
}

.dots .dot {
    display: flex;              /* bolinha + texto na mesma linha */
    align-items: center;
    padding: 5px 10px;
    cursor: pointer;
    transition: color 0.3s;
    color: #000;                /* cor do texto normal */
    white-space: nowrap;        /* impede quebra de linha */
}

.dots .dot::before {
    content: "";
    display: inline-block;
    border: 1px solid #02451C;
    width: 15px;
    height: 15px;
    background-color:white;     /* cor da bolinha normal */
    border-radius: 50%;
    margin-right: 8px;
    transition: background-color 0.3s;
}

/* Hover */
.dots .dot:hover {
    color: #213e33;
}

.dots .dot:hover::before {
    background-color: #213e33;
}

/* Selecionado / ativo */
.dots .dot.active {
    color: #213e33;             /* texto verde */
}

.dots .dot.active::before {
    background-color: #213e33;  /* bolinha verde */
}



@keyframes fade {
    from {opacity: 0.4}
    to {opacity: 1}
}
/* Seção Clientes */
.testimonials {

    background:
        linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
        url(../imgs/fundo-avaliacao-clientes.png);
    padding: 20px 0;
    background-size: cover; 
    background-repeat: no-repeat;
    object-position: top;

    ;
}

.testimonial {
    background: transparent;
    padding: 50px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    color: white;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
    position: relative;
    padding-left: 30px;
}

.testimonial-text:before {

    position: absolute;
    left: 0;
    top: -15px;
    font-size: 60px;
    color: #4a8c2b;
    font-family: Arial;
}

.testimonial-author {
    font-weight: bold;
}

.testimonial-location {
    color: #777;
}

/* Seção Entrega */
.informe {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.informe-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.informe-features {
    margin-top: 30px;
}

.informe-feature {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.informe-feature i {
    color: #4a8c2b;
    margin-right: 15px;
    font-size: 20px;
}

/* fomulario*/
.formulario {
    padding: 40px 20px;
    background: #f9f9f9;
}

.formulario h2 {
    text-align: center;
    margin-bottom: 10px;
}

.formulario p {
    text-align: center;
    margin-bottom: 30px;
    color: #555;
}

.form-content {
    max-width: 600px;
    margin: auto;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.1);
}

.credito-rural {
    text-align: center;
    margin: 30px auto;
    max-width: 500px;
    background: #f9f9f9;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.credito-rural .titulo {
    color: #213e33;
    margin-bottom: 10px;
}

.credito-rural .subtitulo {
    margin-bottom: 20px;
    color: #444;
    font-size: 14px;
}

.form-group {
    text-align: left;
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: #213e33;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 14px;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #213e33;
    outline: none;
}

.btn-enviar {
    background: #213e33;
    color: white;
    padding: 12px 20px;
    font-size: 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-enviar:hover {
    background: #02451C;
}

.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 14px;
    background: white;
}

.form-group select:focus {
    border-color: #213e33;
    outline: none;
}

/**/
.tab-buttons {
    text-align: center;
    margin-bottom: 20px;
}

.tab-btn {
    background: #eee;
    border: none;
    padding: 10px 20px;
    margin: 0 5px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 6px;
    transition: 0.3s;
}

.tab-btn.active {
    background: #02451C;
    color: #fff;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.form-content {
    max-width: 500px;
    margin: auto;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.1);
}

/* Footer */
.footer {
    background-color: #02451C;
    color: white;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;

}

.footer-col h4:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: #4a8c2b;
}

.footer-contact li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.footer-contact i {
    margin-right: 10px;
    color: #4a8c2b;
}

.footer-col a {
    pointer-events: none;
    /* desativa clique */
    color: inherit;
    /* pega a cor do texto normal */
    text-decoration: none;
    /* remove sublinhado */
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    text-align: left;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);

}

.footer-bottom p {
    font-size: 14px;

}

.footer-bottom a {
    font-size: 14px;
    text-decoration: none;
    color: white;
}

/*BOTAO WHATSAP*/
.wts {
    position: fixed;
    bottom: 30px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: #02451C;
    /* verde WhatsApp */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: transform 0.3s;
    text-decoration: none;
    color: white;
    font-size: 30px;

}
.wts img{
    width: 100%;
}
.wts:hover {
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.5);
}
    .alerta {
        text-align: center;
        margin: 15px auto;
        padding: 10px 20px;
        border-radius: 6px;
        font-family: "Poppins", sans-serif;
        font-weight: 600;
        width: fit-content;
    }

    .alerta.sucesso {
        background: #c8f7c5;
        color: #0a4;
        border: 1px solid #0a4;
    }

    .alerta.erro {
        background: #ffcdd2;
        color: #b71c1c;
        border: 1px solid #b71c1c;
    }
/* Responsividade */
@media (max-width: 992px) {

    .features-grid,
    .products-grid,
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-content,
    .informe-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {

    .features-grid,
    .products-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .main-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: white;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        padding: 20px;
    }

    .main-menu.active {
        display: block;
    }

    .main-menu ul {
        flex-direction: column;
    }

    .main-menu li {
        margin: 10px 0;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .hero h2 {
        font-size: 32px;
    }

}