/* Reseta margens e paddings para todos os elementos */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Corpo da página */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f4e1c1;
    padding: 10px 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar ul {
    display: flex;
    list-style-type: none;
}

.navbar ul li {
    margin: 0 15px;
}

.navbar ul li a {
    color: #4E4A40;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.navbar ul li a:hover {
    color: #6b5f52;
}

.navbar .logo img {
    height: 150px;
    max-width: 100%;
    transition: transform 0.3s ease;
}

.navbar .logo img:hover {
    transform: scale(1.05);
}

/* Slider Styles - Velocidade Controlada */
.carousel {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 40px auto;
    overflow: hidden;
}

.carousel__viewport {
    display: flex;
    width: 100%;
    height: 700px;
    will-change: transform;
}

.carousel__slide {
    flex: 0 0 100%;
    min-width: 100%;
    position: relative;
}

.carousel__snapper {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.carousel__snapper img {
    max-width: 95%;
    max-height: 95%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Navigation */
.carousel__navigation {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 10;
}

.carousel__navigation-button {
    width: 14px;
    height: 14px;
    background-color: rgba(78, 74, 64, 0.5);
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.carousel__navigation-button.active {
    background-color: rgba(78, 74, 64, 0.9);
}

/* Responsividade */
@media (max-width: 768px) {
    .carousel__viewport {
        height: 500px;
    }
}

@media (max-width: 480px) {
    .carousel__viewport {
        height: 400px;
    }
}
/* Gallery Section */
#gallery {
    padding: 50px 20px;
    background-color: #f0f0f0;
}

#gallery h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #4E4A40;
    font-size: 2rem;
}

.gallery-images {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.gallery-item {
    flex: 1 1 250px;
    max-width: 100%;
    margin-bottom: 20px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.03);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

/* Form Section */
#contact {
    padding: 50px 20px;
    background-color: #fff;
}

#contact h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #4E4A40;
    font-size: 2rem;
}

.form-box {
    max-width: 800px;
    margin: 0 auto;
    background-color: #fafafa;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

form label {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: #4E4A40;
}

form input, form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

form input:focus, form textarea:focus {
    border-color: #4E4A40;
    outline: none;
}

.checkbox-group {
    margin-bottom: 20px;
}

.checkbox-group input {
    margin-right: 10px;
}

.checkbox-group label {
    display: inline-block;
    margin-right: 15px;
    font-size: 1rem;
}

form button {
    width: 100%;
    padding: 12px;
    background-color: #4E4A40;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

form button:hover {
    background-color: #6b5f52;
}

/* Footer */
footer {
    text-align: center;
    background-color: #4E4A40;
    color: #fff;
    padding: 30px 0;
}

footer p {
    margin-bottom: 10px;
}

footer a {
    color: #f4e1c1;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #fff;
    text-decoration: underline;
}

/* Back to top button */
#backToTopButton {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #4E4A40;
    color: white;
    border: none;
    padding: 10px 15px;
    font-size: 14px;
    border-radius: 5px;
    cursor: pointer;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

#backToTopButton.visible {
    opacity: 1;
    visibility: visible;
}

#backToTopButton:hover {
    background-color: #6b5f52;
}

/* Responsividade */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        padding: 15px;
    }
    
    .navbar ul {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .navbar ul li {
        margin: 5px 10px;
    }
    
    .navbar .logo img {
        height: 120px;
    }
    
    .carousel__snapper img {
        max-height: 60vh;
    }
    
    .service-item {
        padding: 20px 15px;
    }
    
    .form-box {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .navbar ul li a {
        font-size: 1rem;
    }
    
    #services h2, #gallery h2, #contact h2 {
        font-size: 1.8rem;
    }
    
    .carousel__snapper img {
        max-height: 50vh;
    }
    
    .gallery-item {
        flex: 1 1 100%;
    }
}