/* Adicione isso no início do seu CSS para resetar margens e paddings */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Mantenha o restante do CSS existente e modifique a seção inicio */
section.inicio {
    position: relative;
    width: 100%;
    height: 80vh;
    background-image: url('../imagens/03.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin: 0; /* Garante que não há margens */
    padding: 0; /* Garante que não há padding */
    overflow: hidden; /* Esconde qualquer conteúdo que ultrapasse */
}

section.inicio h2 {
    font-size: 4rem;
    margin-bottom: 2rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.4);
}

section.inicio p {
    font-size: 2rem;
    line-height: 1.6;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
    max-width: 800px;
    padding: 0 20px;
}

.overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 1;
}

.inicio-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 20px;
    color: white;
    animation: fadeIn 1.5s ease-out;
}

section.certificado {
    padding: 60px 30px;
    max-width: 1200px;
    margin: 0 auto;
}

section.certificado h1 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.8rem;
    color: #222;
    font-weight: 600;
    letter-spacing: 0.5px;
    position: relative;
    padding-bottom: 15px;
}

section.certificado h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: #4a90e2;
}

.content-wrapper {
    display: flex;
    gap: 50px;
    align-items: center;
    margin-bottom: 70px;
}

.content-wrapper img {
    width: 380px;
    border-radius: 10px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
    object-fit: contain;
    transition: transform 0.3s ease;
}

.content-wrapper img:hover {
    transform: scale(1.02);
}

.content-wrapper p {
    flex: 1;
    font-size: 1.3rem;
    line-height: 1.8;
    color: #444;
    text-align: justify;
    padding: 15px 0;
}

/* Media Queries Consolidados */
@media (max-width: 992px) {
    section.inicio h2 {
        font-size: 2.8rem;
    }
    section.inicio p {
        font-size: 1.4rem;
    }
    section.certificado h1 {
        font-size: 2.4rem;
    }
    .content-wrapper p {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    section.inicio {
        height: 60vh;
        background-attachment: scroll;
    }
    section.inicio h2 {
        font-size: 2.2rem;
    }
    section.inicio p {
        font-size: 1.2rem;
    }
    .content-wrapper {
        flex-direction: column;
        gap: 30px;
    }
    .content-wrapper img {
        width: 100%;
        max-width: 380px;
    }
    section.certificado h1 {
        font-size: 2rem;
        padding: 0 15px 15px;
    }
    section.certificado h1::after {
        width: 80px;
    }
}