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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    background-color: #f0fff0; 
    color: #333;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

section {
    padding: 40px 20px;
    text-align: center;
}

header {
    background-color: #556b2f; 
    padding: 1rem 0;
    text-align: center;
    border-bottom: 2px solid #8fbc8f; 
}

.menu a {
    color: white;
    text-decoration: none;
    margin: 0 15px;
    font-size: 1.1rem;
    font-weight: bold;
}

footer {
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    background-color: #556b2f; 
    color: white;
    border-top: 2px solid #8fbc8f; 
}


.hero {
    background-color: #8fbc8f;
    color: #191970;
    padding: 80px 20px;
    border-radius: 8px;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    border-radius: 8px;
}

.destaques {
    display: flex;
    justify-content: center;
    gap: 30px;
    align-items: stretch; 
}

.destaques div {
    flex: 1;
    max-width: 450px;
    background-color: #e0eee0;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #98fb98;
    display: flex;
    flex-direction: column;
}

.destaques h2 {
    margin-bottom: 15px;
    color: #2e8b57;
}

.destaques img {
    width: 100%; 
    aspect-ratio: 16 / 9; 
    object-fit: cover;
    margin-bottom: 15px;
}

.destaques p {
    flex-grow: 1;
}

.destaques a {
    display: block; 
    margin-top: auto;
    padding: 10px 20px;
    background-color: #3cb371;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    border-bottom: 2px solid #2e8b57;
}

.destaques a:hover {
    background-color: #2e8b57;
}

.sobre {
    background-color: #f5f5dc;
}

.galeria {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.galeria a {
    display: block;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05); 
    border: 1px solid #98fb98; 
}

.galeria img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.galeria a:hover img {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .hero {
        padding: 60px 20px;
    }
    .hero h1 {
        font-size: 2rem;
    }
    .menu a {
        display: block;
        margin: 10px 0;
    }
    .destaques {
        flex-direction: column;
        align-items: center;
    }
    .destaques div {
        margin-bottom: 20px;
    }
}

.biblioteca {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    padding: 40px 20px;
}

.biblioteca a {
    display: block; 
    border-radius: 8px; 
    overflow: hidden; 
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); 
    transition: transform 0.3s ease, box-shadow 0.3s ease; 
}

.biblioteca a:hover {
    transform: translateY(-5px); 
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); 
}

.biblioteca img {
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    display: block; 
}