/* =======================
   RESET
   ======================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    text-align: center;

    /* background da imagem */
    background: url("../images/banner.jpg") no-repeat center center fixed;
    background-size: cover;
}

/* =======================
   MENU
   ======================= */
.menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #2e7d32;
    padding: 10px 20px;
    flex-wrap: wrap;
}

.menu-left {
    display: flex;
    align-items: center;
}

.site-logo {
    height: 30px;
    width: auto;
}

.menu ul {
    list-style: none;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.menu a {
    text-decoration: none;
    color: #fff;
    font-weight: bold;
    transition: color 0.2s;
}

.menu a:hover,
.menu a.active {
    color: #ffd700;
}

/* =======================
   HEADER (INDEX)
   ======================= */
header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 900px;
    margin: 30px auto;
    padding: 20px;
    background: #e8f5e9;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

header h1 {
    font-size: 2rem;
    margin-bottom: 12px;
    color: #2e7d32;
}

header p {
    color: #555;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

/* =======================
   SOBRE
   ======================= */
.about-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 30px 20px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    text-align: center;
}

.about-container h1 {
    color: #2e7d32;
    font-size: 2rem;
    margin-bottom: 20px;
}

.about-container p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 15px;
}

/* =======================
   FILTROS (INDEX)
   ======================= */
.filtro-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 16px;
}

#toggle-filters {
    padding: 8px 14px;
    border: none;
    background: #2e7d32;
    color: #fff;
    border-radius: 6px;
    cursor: pointer;
}

#filtros {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

#filtros.hidden {
    display: none;
}

.filter-btn {
    padding: 8px 12px;
    border: none;
    background: #2e7d32;
    color: #fff;
    border-radius: 6px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.filter-btn:hover {
    opacity: 0.9;
}

/* =======================
   MAPA (INDEX)
   ======================= */
#map {
    width: 70%;
    height: 250px;
    margin: 16px auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    background: #e0e0e0;
}

/* =======================
   IDEIAS CRIATIVAS (INDEX)
   ======================= */
.reciclagem-ideias {
    max-width: 1100px;
    margin: 24px auto 40px;
    padding: 0 16px;
}

.reciclagem-ideias h2 {
    text-align: center;
    color: #2e7d32;
    margin-bottom: 16px;
    font-size: 1.6rem;
}

.ideias-lista {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.ideia {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    text-align: center;
    padding-bottom: 10px;
}

.ideia img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.ideia p {
    padding: 10px 12px;
    font-weight: 600;
    color: #444;
}

/* =======================
   ARTIGOS
   ======================= */
.artigos-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 20px;
}

.artigos-container h1 {
    color: #2e7d32;
    font-size: 2rem;
    margin-bottom: 30px;
    text-align: center;
}

.artigo-card {
    background: #ffffff;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    text-align: left;
}

.artigo-card h2 {
    color: #2e7d32;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.data-artigo {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 12px;
}

.artigo-card p {
    font-size: 1rem;
    color: #555;
    margin-bottom: 15px;
}

.btn-leia-mais {
    display: inline-block;
    padding: 8px 14px;
    background: #2e7d32;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: opacity 0.2s;
}

.btn-leia-mais:hover {
    opacity: 0.9;
}

/* =======================
   RESPONSIVO
   ======================= */
@media (max-width: 900px) {
    .ideias-lista { grid-template-columns: repeat(2, 1fr); }
    .menu ul { gap: 15px; }
}

@media (max-width: 520px) {
    .menu { flex-direction: column; }
    .site-logo { height: 20px; margin-bottom: 10px; }
    .ideias-lista { grid-template-columns: 1fr; }
    #map { height: 220px; }
    .artigo-card { padding: 15px; }
}
