/* Correção de largura e rolagem lateral */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}

/* Box-sizing para controle mais preciso de largura */
* {
    box-sizing: border-box;
}

/* Estilos gerais */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f8f8f8;
    padding: 0;
}

/* Barra superior */
.top-bar {
    background: #154926;
    color: white;
    text-align: center;
    padding: 10px;
    font-size: 10px;
    width: 100%;
    position: relative;
    margin-top: -10px;
}

/* Navegação */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 15px 30px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    width: 100%;
    box-sizing: border-box;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #154926;
}


nav ul li {
    display: inline;
}

nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 40px; /* distância entre os itens */
}

nav ul li a {
    text-decoration: none;
    color: #2e533f; /* mesma cor do logo */
    font-size: 16px;
}
.navbar {
  background-color: #ffffff;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 26px;
  font-weight: bold;
  color: #154926;
}

.icons {
  display: flex;
  gap: 15px;
}

.icons a {
  color: white;
  text-decoration: none;
  font-size: 20px;
  position: relative;
}

.badge {
  position: absolute;
  top: -6px;
  right: -10px;
  background-color: black;
  color: white;
  border-radius: 50%;
  padding: 2px 5px;
  font-size: 10px;
}

/* Barra de pesquisa no menu */
.search-bar {
    display: flex;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 5px;
    overflow: hidden;
}

.search-bar input {
    border: none;
    padding: 8px;
    outline: none;
}

.search-bar button {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
}

/* Banner */
.banner {
    position: relative;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('Banner.jpg') no-repeat center center;
    background-size: cover;
    width: 100%;
}

/* Cores diferentes para cada categoria */
.categoria1 { background-color: #4CAF50; }  /* Verde clássico */
.categoria2 { background-color: #66BB6A; } /* Verde mais claro */
.categoria3 { background-color: #81C784; } /* Verde médio */
.categoria4 { background-color: #A5D6A7; } /* Verde suave */
.categoria5 { background-color: #C8E6C9; color: black; } /* Verde muito claro */
.categoria6 { background-color: #388E3C; } /* Verde escuro */
.categoria7 { background-color: #2E7D32; } /* Verde mais fechado */
.categoria8 { background-color: #1B5E20; } /* Verde musgo */
.categoria9 { background-color: #43A047; } /* Verde esmeralda */
.categoria10 { background-color: #66BB6A; } /* Verde claro */
.categoria11 { background-color: #4CAF50; } /* Verde vibrante */
.categoria12 { background-color: #66BB6A; } /* Verde azulado */
.categoria13 { background-color: #81C784; } /* Verde água */
.categoria14 { background-color: #A5D6A7; } /* Verde pastel */
.categoria15 { background-color: #C8E6C9; color: black; } /* Verde muito escuro */

.container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Reduzi para 3 colunas para juntar mais os elementos */
    column-gap: 15px; /* Diminui o espaço entre colunas */
    row-gap: 15px; /* Diminui o espaço entre as linhas */
    padding: 20px;
    justify-content: center;
}
.categoria {
    text-decoration: none;
    color: white;
    font-weight: bold;
    text-align: center;
    width: 100px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin: auto;
}


a {
    text-decoration: none;
    color: rgb(238, 235, 235);
    font-weight: bold;
}
/* Efeito ao passar o mouse */
.categoria:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);}

    footer {
        background-color: #154926;
        color: white;
        text-align: center;
        padding: 20px;
        margin-top: 20px;
    }
    
    .footer-container {
        display: flex;
        justify-content: space-around;
        padding-bottom: 12px;
    }
    
    .footer-section h3 {
        font-size: 12px;
        margin-bottom: 12px;
    }
    
    .footer-section p {
        font-size: 12px;
    }
    
    .copyright {
        font-size: 12px;
        margin-top: 10px;
    }
    

    .containe {
        display: flex;
        justify-content: center; /* Centraliza a div na página */
        flex-direction: row; /* Alinha os botões na horizontal */
        gap: 15px; /* Diminui o espaço entre os botões */
        margin-top: 20px; /* Adiciona um pequeno espaçamento do restante */
    }
    
    .containe .categoria {
        flex: 1 1 180px; /* Mantém os botões do mesmo tamanho */
        max-width: 180px; /* Evita que fiquem muito largos */
        text-align: center;
    }
    