body {
    margin: 0;
    padding: 0;
    height: 100vh;
    width: 100%;
    font-family: "Nunito Sans", sans-serif;
    line-height: 1.5;
    font-weight: 400;
    color-scheme: light dark;
    color: rgba(255, 255, 255, 0.87);
    font-synthesis: none;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: #4e5649;
}

h1,
h2,
h3,
h4,
span {
    margin: 0;
    padding: 0;
}

header {
    width: auto;
    padding: 5px 40px;
    background-color: #4e5649;
}

header .container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

header .logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

header .logo img {
    height: 50px;
    object-fit: contain;
}

header .menu {
    display: flex;
    align-items: center;
    justify-content: center;
}

header .menu ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

header .menu ul li {
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.25rem;
    cursor: pointer;
    color: #121212;
}

header .menu ul li a {
    position: relative;
    display: inline-block;
    text-decoration: none;
    color: #fff;
    padding: 10px 0;
}

header .menu ul li a:hover {
    color: #f6ba4d;
}

header .menu ul li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: #f6ba4d;
    transition: width 0.3s ease;
}

header .menu ul li a:hover::after {
    width: 100%;
}

header .menu-mobile {
    display: none;
}

header .call_to_action {
    padding: 7px 25px;
    background-color: #f6ba4d;
    color: #4e5649;
    margin: 0 20px;
    border-radius: 9999px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.3s ease;
    gap: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-decoration: none;
    letter-spacing: 1px;
}

header .call_to_action svg {
    width: 18px;
    fill: #fff;
}

header .call_to_action:hover {
    background-color: #dfa335;
    transform: scale(1.05);
}

.banner {
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 15px;
    background-image: url('https://images.unsplash.com/photo-1560066984-138dadb4c035?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1674&q=80');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh);
    overflow: hidden;
}

/* Pseudo-elemento que adiciona a sobreposição */
.banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6));
    z-index: 0;
    opacity: 0;
    animation: fadeInOverlay 3s ease-in-out forwards;
}

/* Garante que os elementos de texto fiquem acima da sobreposição */
.banner>* {
    position: relative;
    z-index: 1;
}

@keyframes fadeInOverlay {
    from {
        opacity: 0.2;
    }

    to {
        opacity: 0.9;
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeOutLeft {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(-50px);
    }
}

.banner .text-animated {
    animation: fadeInLeft 2s ease-out forwards;
}

.banner span {
    font-size: 1.5em;
    font-weight: 500;
    color: #f6ba4d;
}

.banner h1 {
    font-size: 6.5em;
    color: #f6ba4d;
    margin: 0;
    text-transform: uppercase;
}

.banner h2 {
    font-size: 6.5em;
    margin: 0;
    color: #f6ba4d;
    text-transform: uppercase;
}

.servicos-prestados {
    background-color: #4e5649;
}


.servicos-prestados .container-titulo {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    height: 150px;
}

.servicos-prestados .container-titulo h2 {
    font-size: 2.3em;
    font-weight: 500;
    letter-spacing: 1.7px;
}

.bloco-imagens {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 300px 300px 300px 300px;
    margin: 0 25px;
}

.bloco-imagens img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bloco-imagens .imagem1 {
    object-position: 50% 20%;
}

.bloco-imagens .imagem2 {
    object-position: 50% 0%;
}

.bloco-imagens .imagem3 {
    object-position: 50% 50%;
}

.bloco-imagens .div3 {
    grid-row: span 2 / span 2;
}

.bloco-imagens .div6 {
    grid-column-start: 3;
    grid-row-start: 3;
    grid-row: span 2 / span 2;
}

.bloco-imagens .div7 {
    grid-column-start: 1;
    grid-row-start: 3;
}

.bloco-imagens .div8 {
    grid-column-start: 2;
    grid-row-start: 3;
}

.bloco-imagens .texto {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0 0 50px 50px;
    background-color: #fff;
    gap: 17px;
    align-items: baseline;
}

.bloco-imagens .texto h3 {
    text-transform: uppercase;
    letter-spacing: 3px;
}

.bloco-imagens .texto h3 {
    font-size: 1.2em;
    font-weight: 500;
    color: #2e2d2d;
    text-align: center;
}

.bloco-imagens .texto h3:last-child {
    font-size: 1em;
    font-weight: 500;
    color: #f6ba4d;
    position: relative;
    display: inline-block;
}

.bloco-imagens .texto h3:last-child::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 2px;
    background: #f6ba4d;
}

.bloco-call-to-action {
    width: 100%;
    height: 200px;
    display: flex;
    background-color: #4e5649;
    justify-content: center;
    align-items: center;
}

@keyframes pulse-animation {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }

    100% {
        transform: scale(1);
    }
}

.bloco-call-to-action a {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5em;
    background-color: #f6ba4d;
    padding: 15px 40px;
    border-radius: 9999px;
    animation: pulse-animation 3s infinite;
    cursor: pointer;
}

.galeria {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 400px 400px;
    background-color: #4e5649;
}

.galeria img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

footer {
    flex: 1;
    display: flex;
    flex-direction: row;
    height: 250px;
    background-color: #fff;
}

footer .item {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    flex: 1;
}

footer .item svg {
    width: 35px;
    fill: #fff;
}

footer .item span:nth-child(2) {
    font-size: 1.4em;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 400;
}

footer .item1 {
    background-color: rgba(78, 86, 73, 1);
}

footer .item2 {
    background-color: rgba(78, 86, 73, 0.95);
}

footer .item3 {
    background-color: rgba(78, 86, 73, 0.9);
}

/* Estado inicial: os elementos começam invisíveis e deslocados para baixo */
.animate {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Estado visível: quando a classe "visible" for adicionada, o elemento fica visível e sem deslocamento */
.animate.visible {
    opacity: 1;
    transform: translateY(0);
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    /* Ajuste a opacidade conforme preferir */
    z-index: 900;
    /* Deve ficar abaixo do menu mobile */
}

/* Estilos Mobile agrupados */
@media screen and (max-width: 768px) {

    /* Header */
    header {
        position: fixed;
        top: 0;
        /* Centraliza o header */
        left: 50%;
        transform: translateX(-50%);
        width: 95%;
        background-color: #4e5649;
        z-index: 9999;
        padding: 20px;
    }

    header .container {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        height: 100%;
    }


    header .menu {
        display: none;
        position: fixed;
        top: 73px;
        left: 0;
        width: 100%;
        height: 260px;
        flex-direction: column;
        background: #4e5649;
        z-index: 1000;
        align-items: center;
        justify-content: flex-start;
    }

    header .menu-active {
        display: flex;
        animation: fadeInLeft 1s ease-out forwards;
    }

    header .menu-hide {
        animation: fadeOutLeft 1s ease-out forwards;
    }

    header .menu ul {
        flex-direction: column;
        padding: 0 20px;
        width: 100%;
        justify-content: center;
        align-items: center;
        gap: 0;
    }

    header .menu a {
        font-size: 1.2em;
        letter-spacing: 1.5px;
    }

    header .menu-mobile {
        display: flex;
        position: absolute;
        top: 0;
        right: 0;
        z-index: 10;
        width: 50px;
        height: 80px;

        svg {
            margin-top: 10px;
            margin-right: 25px;
            width: 30px;
            fill: #dfa335;
        }
    }

    header .container {
        height: 100%;
    }

    header .logo {
        width: 100%;
        justify-content: center;
        align-items: center;
    }

    .banner h1 {
        letter-spacing: 5px;
        font-size: 4.2em;
    }

    /* Serviços Prestados */
    .servicos-prestados .container-titulo h2 {
        font-size: 1.7em;
        text-align: center;
        letter-spacing: 1.5px;
    }

    .servicos-prestados .container-titulo {
        margin-top: -100px;
        background-color: #4e5649;
        padding: 0 25px;
    }

    /* Bloco Imagens */
    .bloco-imagens .texto {
        padding: 0;
        justify-content: center;
        align-items: center;

    }

    .bloco-imagens .texto h3 {
        font-size: 0.9em;
    }

    .bloco-imagens {
        grid-template-columns: 50% 50%;
        grid-template-rows: repeat(4, 300px);
    }

    .bloco-imagens span:nth-child(1) {
        font-size: 1em;
    }

    /* Bloco Call-to-Action */
    .bloco-call-to-action {
        height: 150px;
    }

    .bloco-call-to-action a {
        font-size: 1.2em;
        text-decoration: none;
        color: #fff;
        letter-spacing: 2px;
    }

    .bloco-call-to-action svg {
        width: 20px;
        fill: #fff;
    }

    .bloco-call-to-action span {
        display: none;
    }

    /* Galeria */
    .galeria {
        grid-template-columns: 50% 50%;
        grid-template-rows: repeat(4, 400px);
        background-color: #4e5649;
    }

    /* Footer */
    footer .item span {
        text-align: center;
    }

    footer .item span:nth-child(2) {
        font-size: 1.2em;
    }

    footer {
        flex-direction: column;
        height: 600px;
    }

    footer .item1 {
        padding: 10px 20px;
    }


}