@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background: #faf7f2;
    color: #333;
}

header {
    background: linear-gradient(135deg, #aec7f8, #3778fd);
    padding: 10px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: white;
    height: auto; /* deixa o header crescer naturalmente */
}


.logo {
    height: 60px; /* tamanho ideal */
    width: auto;
}

.menu-btn {
    background: transparent;
    padding: 6px 10px;
    color: white;
    font-size: 16px;
    text-decoration: none;
    margin-left: 20px;
    transition: 0.3s;
}

.menu-btn:hover {
    opacity: 0.7;
}

.hero {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 175px 80px;
    background: url('../img/layout.jpg') center/cover no-repeat;
    color: white;
    position: relative;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
}

.hero-content {
    position: relative;
    max-width: 600px;
    z-index: 2;
}

.hero h2 {
    font-size: 42px;
    margin-bottom: 10px;
    font-weight: 700;
}

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

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    justify-content: center;
    align-items: center;
    height: 30px;
    background: #3778fd;
    color: white;
    font-weight: 600;
    font-size: 16px;
}

.section {
    padding: 60px 40px;
}

.section h3 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #3778fd;
}

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

.card {
    background: white;
    padding: 7px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);

    display: flex;
    flex-direction: column;
    height: 100%; /* garante altura igual no grid */
}

/* Caixa fixa para padronizar o espaço dos logos */
.img-box {
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
}

/* Imagem ajustada dentro da caixa */
.img-box img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    display: block;
}

/* Texto cresce para empurrar o botão */
.card p {
    flex-grow: 1;
}

/* Botão sempre no final */
.btn-card {
    display: flex;
    justify-content: center;
    align-items: center;

    height: 45px;
    padding: 0 20px;

    background: #3778fd;
    color: white;
    font-weight: 600;
    font-size: 16px;

    border-radius: 6px;
    text-decoration: none;
    transition: 0.2s ease;
    margin-top: 20px;
}

.btn-card:hover {
    background: #2d63d1;
}
.card img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}



footer {
    background: #3778fd;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}

.contato-botao {
    text-align: center;
    padding: 60px 0;
}

/* noticias */

.ultimas-noticias {
    padding: 60px 40px;
}

.ultimas-noticias h2 {
    font-size: 28px;
    color: #3778fd;
    margin-bottom: 20px;
}

.news-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.news-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.news-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}

.btn-news {
    display: inline-block;
    padding: 10px 18px;
    background: #3778fd;
    color: white;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.2s;
}

.news-card .btn-news {
    margin-top: auto;
}


.btn-news:hover {
    background: #2d63d1;
}

.news-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
