body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
position: relative; /* Necessário para o posicionamento do pseudo-elemento */
color: #333;
height: 100%;
width: 100%;
color: #333;
overflow-x: hidden; /* Evita possíveis scrolls horizontais indesejados */
}

body::before {
content: "";
background: url('img/capa.jpg') no-repeat center center;
background-size: cover; /* Cobre a tela toda */
position: fixed; /* Fixa a imagem no lugar */
top: 0;
left: 0;
width: 100%;
height: 100vh; /* Usa viewport height para evitar problemas no Safari */
z-index: -1; /* Mantém o pseudo-elemento no fundo */
transform: translateZ(0); /* Hack para forçar o Safari a renderizar corretamente */
-webkit-transform: translateZ(0); /* Prefixo para Safari */
}

section {
position: relative;
z-index: 1; /* Garante que o conteúdo esteja acima da imagem de fundo */
max-width: 100%;
margin: auto;
text-align: left;
background: rgba(252, 252, 252, 0.9); /* Fundo branco translúcido para o texto */
padding: 20px; /* Adiciona algum espaçamento para melhor visualização */
}

section #about p {
text-align: justify;
}

h1 {
text-align: center;
color: white;
}

header, footer {
width: 100%;
}

#introducing {
padding-left: 5%;
padding-right: 5%;
text-align: justify;
}

.navbar {
background-color: #333;
overflow: hidden;
position: relative;
}

.navbar .dropbtn {
font-size: 16px;
color: white;
padding: 14px 16px;
background-color: inherit;
border: none;
cursor: pointer;
}

.navbar {
/* overflow: hidden; */
/* background-color: #333; */
display: flex;
align-items: center;
}

.navbar a {
float: left;
font-size: 16px;
color: white;
text-align: center;
padding: 14px 16px;
text-decoration: none;
}

.sidenav {
height: 100%;
width: 0;
position: fixed;
z-index: 1;
top: 0;
left: 0;
background-color: #333;
overflow-x: hidden;
transition: 0.5s;
padding-top: 60px;
opacity: 80%;
}

.sidenav a {
padding: 8px 8px 8px 32px;
text-decoration: none;
font-size: 30px;
width: 350px;
color: white;
display: block;
transition: 0.3s;
}

.sidenav a:hover {
background-color: #575757;
}

.sidenav .closebtn {
position: absolute;
top: 0;
right: 25px;
font-size: 36px;
margin-left: 50px;
color: white;
}

#title-menu-side {
color: white;
}

.dropdown {
float: left;
overflow: hidden;
}

.dropdown .dropbtn {
font-size: 16px;
border: none;
outline: none;
color: white;
padding: 14px 16px;
background-color: inherit;
font-family: inherit;
margin: 0;
cursor: pointer;
}

.navbar a:hover,
.dropdown:hover .dropbtn {
background-color: #ddd;
color: black;
}

.dropdown-content {
display: none;
position: absolute;
background-color: #f9f9f9;
min-width: 160px;
box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
z-index: 1;
}

.dropdown-content a {
float: none;
color: black;
padding: 12px 16px;
text-decoration: none;
display: block;
text-align: left;
}

.dropdown-content a:hover {
background-color: #ddd;
}

.dropdown:hover .dropdown-content {
display: block;
}

#image-modal {
display: none;
position: fixed;
z-index: 1000;
left: 0;
top: 0;
width: 100%;
height: 100%;
overflow: auto;
background-color: rgba(0, 0, 0, 0.8);
align-items: center;
justify-content: center;
}

#image-modal img {
margin: auto;
display: block;
max-width: 90%;
max-height: 90%;
}

.close {
position: absolute;
top: 20px;
right: 35px;
color: #fff;
font-size: 40px;
font-weight: bold;
cursor: pointer;
}

.modal {
display: flex;
align-items: center;
justify-content: center;
}

.modal .prev, .modal .next {
position: absolute;
top: 50%;
transform: translateY(-50%);
z-index: 1;
background-color: rgba(0, 0, 0, 0.5);
color: white;
border: none;
padding: 10px;
cursor: pointer;
}

.modal .prev {
left: 10px;
}

.modal .next {
right: 10px;
}

.modal .close {
position: absolute;
top: 20px;
right: 35px;
color: #fff;
font-size: 20px;
font-weight: bold;
cursor: pointer;
}

.modal img {
max-width: 90%;
max-height: 90%;
}

#image-modal {
display: none;
position: fixed;
z-index: 1000;
left: 0;
top: 0;
width: 100%;
height: 100%;
overflow: auto;
background-color: rgba(0, 0, 0, 0.8);
align-items: left;
justify-content: left;
}

#image-modal img {
margin: auto;
display: block;
}


#contact {
background-color: #333;  /* Fundo escuro */
color: #fff;  /* Texto branco */
padding: 20px;  /* Espaçamento interno */
text-align: left;
opacity: 90%;
}

#contact a {
color: #1e90ff;  /* Cor dos links */
text-decoration: none;
}

#contact a:hover {
text-decoration: underline;
}

#contact img {
vertical-align: left;
margin-right: 10px;  /* Espaçamento entre o ícone e o texto */
}

#instagram-icon {
width: 24px;  
height: 24px;  
vertical-align: middle;
margin-right: 10px;
}

#instagram-link:hover {
background-color: #C13584;
}

#seta-para-cima-icon {
width: 24px;  
height: 24px;  
vertical-align: center;
padding-left: 7px;
/* margin-right: 5px; */
}


@media (min-width: 768px) {
section {
    padding: 20px;
    /* max-width: 100%; */
    margin: auto;
}

h1 {
    text-align: center;
}

h2 {
    text-align: left;
    /* color: #333; */
}

#contact-title {
    color: white;
}

.service, .work-gallery {
    display: block;
    justify-content: space-around;
    margin: 20px 0;
}

.service {
    padding-left: 20px;
}

.work-gallery img {
    width: 30%;
    height: auto;
    border: 1px solid #ccc;
}

#contact {
    padding-bottom: 2%;
    align-items: left;
    justify-content: space-between;
    width: 100%;
    padding: 25px;
}


footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 10px 0;
    bottom: 0;
    min-height: 50px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    /* box-sizing: border-box; */
}

footer img {
    width: 70px;
    height: auto;
    margin-right: 10px;
    padding-left: 10px;
}

footer p {
    margin: 0;
    display: inline;
    margin-top: 15px;
    align-items: center;
}

#title-menu-side{
    color: white;
    padding-left: 2%;
}

/* Estilos para o formulario de contato */
form#contact-form input,
form#contact-form textarea,
form#contact-form button {
    display: block;
    width: 30%;
    margin-bottom: 5px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

form#contact-form textarea {
    padding: 60px;
    width: 50%;
}

form#contact-form textarea {
    height: 150px; /* Altura da textarea */
    resize: vertical; /* Permite redimensionar verticalmente */
    overflow: auto; /* Permite scroll interno */
    padding: 15px; /* Garante espaço entre o texto e as bordas */
    box-sizing: border-box; /* Inclui padding e border no width e height */
}

form#contact-form button {
    background-color: #007bff;
    width: 15%;
    color: white;
    border: none;
    cursor: pointer;
    margin-bottom: 0; /* Remove margin for the last element */
}

#h3-contact {
    padding-bottom: 10px;
}

.carousel-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 300px;
    width: 85%; /* Ajusta a largura do container do carrossel */
    margin: 0 auto; /* Centraliza horizontalmente */
    padding: 0 1%;
    position: relative;
}

.carousel {
    width: 90%; /* Define a largura do carrossel como 100% do container */
    height: 200px; /* Altura do carrossel */
    overflow: hidden;
    border: 2px solid #333;
}

.carousel-inner {
    display: flex;
    transition: transform 0.5s ease-in-out;
    cursor: grab;
}

.carousel-inner img {
    width: 250px; /* Ajusta a largura das imagens */
    height: 200px;
    padding-left: 5px;
    padding-right: 5px;
    flex-shrink: 0; /* Garante que as imagens não encolham */
}


/* .carousel-inner img.active {
    opacity: 1;
} */

.prev, .next {
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
}

.prev {
    left: 0px;
    font-size: larger;
}

.next {
    right: 0px;
    font-size: larger;
}

.logo img{
        width: 70px;
        height: 50px;
        margin-right: 10px;
        padding-left: 28px;
        margin-top: 5px;
}

#home {
    padding-bottom: 20%;
    margin-bottom: 20%;
}

section {
    width: 100%;
}

.scroll-to-top {
    display: none; 
    position: fixed;
    bottom: 10px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: white;
    color: black;
    border-radius: 50%;
    text-align: center;
    line-height: 50px;
    cursor: pointer;
    font-size: 24px;
    z-index: 1000;
    transition: opacity 0.3s ease-in-out;
    opacity: 0.5; 
}

.dropbtn, .dropdown {
    padding-left: 500px;
}

}


/* Media query para telas menores que 767 pixels */
@media (max-width: 767px) {
section {
    padding: 10px;
    max-width: 100%;
}

.sidenav {
    padding-top: 15px;
}
.sidenav a {
    font-size: 18px;
}

.service, .work-gallery {
    display: block;
    margin: 10px 0;
}

.work-gallery img {
    width: 100%;
    margin-bottom: 10px;
}

footer {
    background: #333;
    color: #fff;
    text-align: center;
    align-items: center;
    padding: 10px 0;
    /* position: fixed; */
    width: 100%;
    height: auto;
    min-height: 60px;
    bottom: 0;
    /* display: flex; */
}

footer img {
    width: 70px;
    height: auto;
    margin-right: 10px;
    padding-left: 10px;
}

footer p {
    margin: 0;
    display: inline;
    margin-top: 25px;
    align-items: center;
    text-align: justify;
}

.dotted-line {
    border: 0;
    border-top: 1px dotted #ccc;
    margin: 20px 0;
}

#info-stonemates {
    font-size: 0.9em;
}

#title-menu-side{
    padding-left: 10%;
}

.carousel-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    /* width: 500px; */
    width: fit-content;
    position: relative;
    padding-left: 5%;
}

.carousel {
    position: relative;
    width: 330px;  /* Width of one image */
    height: 200px;  /* Height of one image */
    overflow: hidden;
    border: 2px solid #333;
}

.carousel-inner {
    display: flex;
    transition: transform 0.5s ease-in-out;
    cursor:touch;
}

.carousel-inner img {
    width: 150px;
    height: 200px;
    padding-left:5px;
    padding-right:5px;
}

.prev, .next {
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    padding-left: 5%;
    padding-right: 5%;
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
}

.prev {
    left: 5%;
    font-size: larger;
}

.next {
    right: 0px;
    font-size: larger;
}

#carousel-container {
    padding-right: 10px;
}

.close {
    font-size: 30px;
    top: 10px;
    right: 20px;
}

#image-modal img {
    max-width: 80%;
    max-height: 80%;
}

.modal .prev, .modal .next {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    transform: none;
    margin: 5px;
}

.modal .close {
    font-size: 30px;
    top: 10px;
    right: 10px;
}

form#contact-form input,
form#contact-form textarea,
form#contact-form button {
    /* display: block; */
    width:95%;
    margin-bottom: 5px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

form#contact-form textarea {
    padding: 50px;
    width: 100%;
}

form#contact-form textarea {
    height: 150px; /* Altura da textarea */
    resize: vertical; /* Permite redimensionar verticalmente */
    overflow: auto; /* Permite scroll interno */
    padding: 10px; /* Garante espaço entre o texto e as bordas */
    box-sizing: border-box; /* Inclui padding e border no width e height */
}

form#contact-form button {
    background-color: #007bff;
    width: 40%;
    color: white;
    border: none;
    cursor: pointer;
    margin-bottom: 0; /* Remove margin for the last element */
}

#contact {
    width: 90%;
}

.logo img{
    width: 70px;
    height: 50px;
    margin-right: 10px;
    padding-left: 10px;
    margin-top: 5px;
}

#home {
    padding-bottom: 250px;
}

section {
    width: 95%;
}

.scroll-to-top {
    display: none; 
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: white;
    color: black;
    border-radius: 50%;
    text-align: center;
    line-height: 50px;
    cursor: pointer;
    font-size: 14px;
    z-index: 1000;
    transition: opacity 0.3s ease-in-out;
    opacity: 0.5; 
}

.dropbtn, .dropdown  {
    padding-left: 50px;
}

}

@media(max-width:400px){
.navbar {
background-color: #333;
overflow: hidden;
position: relative;
}

.navbar .dropbtn {
    font-size: 16px;
    color: white;
    padding: 14px 16px;
    background-color: inherit;
    border: none;
    cursor: pointer;
}

.navbar {
    /* overflow: hidden; */
    /* background-color: #333; */
    display: flex;
    align-items: center;
}

.navbar a {
    float: left;
    font-size: 16px;
    color: white;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
}
.carousel {
    position: relative;
    width: 300px;  /* Width of one image */
    height: 200px;  /* Height of one image */
    overflow: hidden;
    border: 2px solid #333;
}

.carousel-inner img {
    width: 150px;
    height: 200px;
}

.prev, .next {
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    padding-left: 5%;
    padding-right: 5%;
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
}

.prev {
    left: 5%;
    font-size: larger;
}

.next {
    right: 0%;
    font-size: larger;
}

form#contact-form input,
form#contact-form textarea,
form#contact-form button {
    /* display: block; */
    width: 93%;
    margin-bottom: 5px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

form#contact-form textarea {
    padding: 50px;
    width: 100%;
}

form#contact-form textarea {
    height: 150px; /* Altura da textarea */
    resize: vertical; /* Permite redimensionar verticalmente */
    overflow: auto; /* Permite scroll interno */
    padding: 10px; /* Garante espaço entre o texto e as bordas */
    box-sizing: border-box; /* Inclui padding e border no width e height */
}

form#contact-form button {
    background-color: #007bff;
    width: 40%;
    color: white;
    border: none;
    cursor: pointer;
    margin-bottom: 0; /* Remove margin for the last element */
}

.logo img{
    width: 70px;
    height: auto;
    margin-right: 10px;
    padding-left: 10px;
}
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    position: relative; /* Necessário para o posicionamento do pseudo-elemento */
    color: #333;
    height: 100%;
    width: 100%;
    color: #333;
    overflow-x: hidden; /* Evita possíveis scrolls horizontais indesejados */
}

body::before {
    content: "";
    background: url('img/capa.jpg') no-repeat center center;
    background-size: cover; /* Cobre a tela toda */
    position: fixed; /* Fixa a imagem no lugar */
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh; /* Usa viewport height para evitar problemas no Safari */
    z-index: -1; /* Mantém o pseudo-elemento no fundo */
    transform: translateZ(0); /* Hack para forçar o Safari a renderizar corretamente */
    -webkit-transform: translateZ(0); /* Prefixo para Safari */
}

section {
    position: relative;
    z-index: 1; /* Garante que o conteúdo esteja acima da imagem de fundo */
    max-width: 100%;
    margin: auto;
    text-align: left;
    background: rgba(252, 252, 252, 0.9); /* Fundo branco translúcido para o texto */
    padding: 20px; /* Adiciona algum espaçamento para melhor visualização */
}
section #about p {
    text-align: justify;
}

h1 {
    text-align: center;
    color: white;
}

header, footer {
    width: 100%;
}

.navbar {
    background-color: #333;
    overflow: hidden;
    position: relative;
}

.navbar .dropbtn {
    font-size: 16px;
    color: white;
    padding: 14px 16px;
    background-color: inherit;
    border: none;
    cursor: pointer;
}

.navbar {
    /* overflow: hidden; */
    /* background-color: #333; */
    display: flex;
    align-items: center;
}

.navbar a {
    float: left;
    font-size: 16px;
    color: white;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
}

.sidenav {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 1;
    top: 0;
    left: 0;
    background-color: #333;
    overflow-x: hidden;
    transition: 0.5s;
    padding-top: 60px;
    opacity: 80%;
}

.sidenav a {
    padding: 8px 8px 8px 32px;
    text-decoration: none;
    font-size: 35px;
    width: 350px;
    color: white;
    display: block;
    transition: 0.3s;
}

.sidenav a:hover {
    background-color: #575757;
}

.sidenav .closebtn {
    position: absolute;
    top: 0;
    right: 25px;
    font-size: 36px;
    margin-left: 50px;
    color: white;
}

#title-menu-side {
    color: white;
}

.dropdown {
    float: left;
    overflow: hidden;
}

.dropdown .dropbtn {
    font-size: 16px;
    border: none;
    outline: none;
    color: white;
    padding: 14px 16px;
    background-color: inherit;
    font-family: inherit;
    margin: 0;
    cursor: pointer;
}

.navbar a:hover,
.dropdown:hover .dropbtn {
    background-color: #ddd;
    color: black;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.dropdown-content a {
    float: none;
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
}

.dropdown-content a:hover {
    background-color: #ddd;
}

.dropdown:hover .dropdown-content {
    display: block;
}

#image-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    align-items: center;
    justify-content: center;
}

#image-modal img {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.modal {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal .prev, .modal .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
}

.modal .prev {
    left: 10px;
}

.modal .next {
    right: 10px;
}

.modal .close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
}

.modal img {
    max-width: 90%;
    max-height: 90%;
}

#image-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    align-items: left;
    justify-content: left;
}

#image-modal img {
    margin: auto;
    display: block;
}


#contact {
    background-color: #333;  /* Fundo escuro */
    color: #fff;  /* Texto branco */
    padding: 20px;  /* Espaçamento interno */
    text-align: left;
    opacity: 90%;
}

#contact a {
    color: #1e90ff;  /* Cor dos links */
    text-decoration: none;
}

#contact a:hover {
    text-decoration: underline;
}

#contact img {
    vertical-align: left;
    margin-right: 10px;  /* Espaçamento entre o ícone e o texto */
}

#instagram-icon {
    width: 24px;  
    height: 24px;  
    vertical-align: middle;
    margin-right: 10px;
}

#instagram-link:hover {
    background-color: #C13584;
}

#seta-para-cima-icon {
    width: 24px;  
    height: 24px;  
    vertical-align: center;
    /* margin-right: 5px; */
}


@media (min-width: 768px) {
    section {
        padding: 20px;
        /* max-width: 100%; */
        margin: auto;
    }
    
    h1 {
        text-align: center;
    }

    h2 {
        text-align: left;
        /* color: #333; */
    }

    #contact-title {
        color: white;
    }

    .service, .work-gallery {
        display: block;
        justify-content: space-around;
        margin: 20px 0;
    }

    .service {
        padding-left: 20px;
    }
    
    .work-gallery img {
        width: 30%;
        height: auto;
        border: 1px solid #ccc;
    }
    
    #contact {
        padding-bottom: 2%;
        align-items: left;
        justify-content: space-between;
        width: 100%;
        padding: 25px;
    }


    footer {
        background: #333;
        color: #fff;
        text-align: center;
        padding: 10px 0;
        bottom: 0;
        min-height: 50px;
        text-align: center;
        display: flex;
        justify-content: center;
        align-items: center;
        /* box-sizing: border-box; */
    }

    footer img {
        width: 70px;
        height: auto;
        margin-right: 10px;
        padding-left: 10px;
    }

    footer p {
        margin: 0;
        display: inline;
        margin-top: 15px;
        align-items: center;
    }
    
    #title-menu-side{
        padding-left: 2%;
    }
    
    /* Estilos para o formulario de contato */
    form#contact-form input,
    form#contact-form textarea,
    form#contact-form button {
        display: block;
        width: 30%;
        margin-bottom: 5px;
        padding: 10px;
        border: 1px solid #ccc;
        border-radius: 5px;
    }

    form#contact-form textarea {
        padding: 60px;
        width: 50%;
    }

    form#contact-form textarea {
        height: 150px; /* Altura da textarea */
        resize: vertical; /* Permite redimensionar verticalmente */
        overflow: auto; /* Permite scroll interno */
        padding: 15px; /* Garante espaço entre o texto e as bordas */
        box-sizing: border-box; /* Inclui padding e border no width e height */
    }

    form#contact-form button {
        background-color: #007bff;
        width: 15%;
        color: white;
        border: none;
        cursor: pointer;
        margin-bottom: 0; /* Remove margin for the last element */
    }
    
    #h3-contact {
        padding-bottom: 10px;
    }

    .carousel-container {
        display: flex;
        justify-content: center;
        align-items: center;
        height: 300px;
        width: 85%; /* Ajusta a largura do container do carrossel */
        margin: 0 auto; /* Centraliza horizontalmente */
        padding: 0 1%;
        position: relative;
    }
    
    .carousel {
        width: 90%; /* Define a largura do carrossel como 100% do container */
        height: 200px; /* Altura do carrossel */
        overflow: hidden;
        border: 2px solid #333;
    }
    
    .carousel-inner {
        display: flex;
        transition: transform 0.5s ease-in-out;
        cursor: grab;
    }
    
    .carousel-inner img {
        width: 250px; /* Ajusta a largura das imagens */
        height: 200px;
        padding-left: 5px;
        padding-right: 5px;
        flex-shrink: 0; /* Garante que as imagens não encolham */
    }
    

    /* .carousel-inner img.active {
        opacity: 1;
    } */
    
    .prev, .next {
        background-color: rgba(0, 0, 0, 0.5);
        color: white;
        border: none;
        padding: 10px;
        cursor: pointer;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1;
    }
    
    .prev {
        left: 0px;
        font-size: larger;
    }
    
    .next {
        right: 0px;
        font-size: larger;
    }

    .logo img{
            width: 70px;
            height: auto;
            margin-right: 10px;
            padding-left: 28px;
    }

    #home {
        padding-bottom: 20%;
        margin-bottom: 20%;
    }

    section {
        width: 100%;
    }

    .scroll-to-top {
        display: none; 
        position: fixed;
        bottom: 10px;
        right: 20px;
        width: 50px;
        height: 50px;
        background-color: white;
        color: black;
        border-radius: 50%;
        text-align: center;
        line-height: 50px;
        cursor: pointer;
        font-size: 24px;
        z-index: 1000;
        transition: opacity 0.3s ease-in-out;
        opacity: 0.5; 
    }

    .dropbtn, .dropdown {
        padding-left: 570px;
    }

    .sidenav {
        height: 100%;
        width: 0;
        position: fixed;
        z-index: 1;
        top: 0;
        left: 0;
        background-color: #333;
        overflow-x: hidden;
        transition: 0.5s;
        padding-top: 60px;
        opacity: 80%;
    }

    .sidenav a {
        padding: 8px 8px 8px 32px;
        text-decoration: none;
        font-size: x-large;
        width: 380px;
        color: white;
        display: block;
        transition: 0.3s;
    }
    
}


/* Media query para telas menores que 767 pixels */
@media (max-width: 767px) {
    section {
        padding: 10px;
        max-width: 100%;
    }

    .sidenav {
        padding-top: 15px;
    }
    .sidenav a {
        font-size: 18px;
    }

    .service, .work-gallery {
        display: block;
        margin: 10px 0;
    }

    .work-gallery img {
        width: 100%;
        margin-bottom: 10px;
    }

    footer {
        background: #333;
        color: #fff;
        text-align: center;
        padding: 10px 0;
        /* position: fixed; */
        width: 100%;
        height: auto;
        bottom: 0;
        /* display: flex; */
    }

    footer img {
        width: 70px;
        height: auto;
        margin-right: 10px;
        padding-left: 10px;
    }

    footer p {
        margin: 0;
        display: inline;
        margin-top: 15px;
        align-items: center;
    }

    .dotted-line {
        border: 0;
        border-top: 1px dotted #ccc;
        margin: 20px 0;
    }

    #info-stonemates {
        font-size: 0.9em;
    }

    #title-menu-side{
        padding-left: 10%;
    }

    .carousel-container {
        display: flex;
        justify-content: center;
        align-items: center;
        height: 200px;
        /* width: 500px; */
        width: fit-content;
        position: relative;
        padding-left: 5%;
    }
    
    .carousel {
        position: relative;
        width: 330px;  /* Width of one image */
        height: 200px;  /* Height of one image */
        overflow: hidden;
        border: 2px solid #333;
    }
    
    .carousel-inner {
        display: flex;
        transition: transform 0.5s ease-in-out;
        cursor:touch;
    }
    
    .carousel-inner img {
        width: 150px;
        height: 200px;
        padding-left:5px;
        padding-right:5px;
    }
    
    .prev, .next {
        background-color: rgba(0, 0, 0, 0.5);
        color: white;
        border: none;
        padding: 10px;
        padding-left: 5%;
        padding-right: 5%;
        cursor: pointer;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1;
    }
    
    .prev {
        left: 5%;
        font-size: larger;
    }
    
    .next {
        right: 0px;
        font-size: larger;
    }

    #carousel-container {
        padding-right: 10px;
    }

    .close {
        font-size: 30px;
        top: 10px;
        right: 20px;
    }

    #image-modal img {
        max-width: 80%;
        max-height: 80%;
    }

    .modal .prev, .modal .next {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        transform: none;
        margin: 5px;
    }

    .modal .close {
        font-size: 30px;
        top: 10px;
        right: 10px;
    }

    form#contact-form input,
    form#contact-form textarea,
    form#contact-form button {
        /* display: block; */
        width:95%;
        margin-bottom: 5px;
        padding: 10px;
        border: 1px solid #ccc;
        border-radius: 5px;
    }

    form#contact-form textarea {
        padding: 50px;
        width: 100%;
    }

    form#contact-form textarea {
        height: 150px; /* Altura da textarea */
        resize: vertical; /* Permite redimensionar verticalmente */
        overflow: auto; /* Permite scroll interno */
        padding: 10px; /* Garante espaço entre o texto e as bordas */
        box-sizing: border-box; /* Inclui padding e border no width e height */
    }

    form#contact-form button {
        background-color: #007bff;
        width: 40%;
        color: white;
        border: none;
        cursor: pointer;
        margin-bottom: 0; /* Remove margin for the last element */
    }

    #contact {
        width: 90%;
    }

    .logo img{
        width: 70px;
        height: auto;
        margin-right: 10px;
        padding-left: 10px;
    }

    #home {
        padding-bottom: 250px;
    }

    section {
        width: 95%;
    }

    .scroll-to-top {
        display: none; 
        /* position: fixed; */
        bottom: 10px;
        right: 30px;
        width: 40px;
        height: 40px;
        background-color: white;
        color: black;
        border-radius: 50%;
        text-align: center;
        line-height: 50px;
        cursor: pointer;
        font-size: 24px;
        z-index: 1000;
        transition: opacity 0.3s ease-in-out;
        opacity: 0.5; 
        /* padding-bottom: 20px; */
    }

    .dropbtn, .dropdown  {
        padding-left: 50px;
    }

}

@media(max-width:440px){
    .carousel {
        position: relative;
        width: 300px;  /* Width of one image */
        height: 200px;  /* Height of one image */
        overflow: hidden;
        border: 2px solid #333;
    }

    .carousel-inner img {
        width: 150px;
        height: 200px;
    }
    
    .prev, .next {
        background-color: rgba(0, 0, 0, 0.5);
        color: white;
        border: none;
        padding: 10px;
        padding-left: 5%;
        padding-right: 5%;
        cursor: pointer;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1;
    }
    
    .prev {
        left: 5%;
        font-size: larger;
    }
    
    .next {
        right: 0%;
        font-size: larger;
    }

    form#contact-form input,
    form#contact-form textarea,
    form#contact-form button {
        /* display: block; */
        width: 93%;
        margin-bottom: 5px;
        padding: 10px;
        border: 1px solid #ccc;
        border-radius: 5px;
    }

    form#contact-form textarea {
        padding: 50px;
        width: 100%;
    }

    form#contact-form textarea {
        height: 150px; /* Altura da textarea */
        resize: vertical; /* Permite redimensionar verticalmente */
        overflow: auto; /* Permite scroll interno */
        padding: 10px; /* Garante espaço entre o texto e as bordas */
        box-sizing: border-box; /* Inclui padding e border no width e height */
    }

    form#contact-form button {
        background-color: #007bff;
        width: 40%;
        color: white;
        border: none;
        cursor: pointer;
        margin-bottom: 0; /* Remove margin for the last element */
    }

    .logo img{
        width: 70px;
        height: auto;
        margin-right: 10px;
        padding-left: 10px;
    }

    .dropbtn, .dropdown  {
        padding-left: 70px;
    }

    #introducing {
        padding-left: 5%;
        padding-right: 10%;
        text-align: justify;
    }

}

/* Específico para garantir compatibilidade com Safari iOS */
@media screen and (-webkit-min-device-pixel-ratio:0) and (min-resolution:.001dpcm) {
    body::before {
        background-attachment: scroll; /* Fallback para versões de Safari mais antigas */
    }
}