/* style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
}

header {
    background-color: #333;
    color: #fff;
    padding: 15px 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 10;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
}

.logo img {
    border-radius: 50%;
    max-width: 25%;
}

nav ul {
    list-style: none;
    display: flex;
}

nav li {
    margin-left: 30px;
}

nav a {
    text-decoration: none;
    color: #fff;
    font-weight: bold;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #007bff;
}

/* Hero Section */
.hero {
    position: relative;
    height: 500px;
}

.carousel {
    position: relative;
    height: 100%;
    overflow: hidden;
    margin-top: 3%;
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: none;
}

.carousel-item:first-child {
    display: block;
}

.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    z-index: 2;
    border-radius: 20px;
}

.carousel-next:hover {
    background-color: #183cdae0;
    transition: 0.5s;
    opacity: 0.7;
}

.carousel-prev:hover {
    background-color: #183cdae0;
    transition: 0.5s;
    opacity: 0.7;
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

/* Sections */
.section {
    padding: 80px 0;
}

.section h2 {
    text-align: center;
    margin-bottom: 30px;
}

/* Blog */
.blog-posts {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.blog-post {
    width: 30%;
    margin-bottom: 30px;
}

.blog-post img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 15px;
    border-radius: 12px;
}

.zoom-img {
    transition: transform 0.3s ease;
}

.zoom-img:hover {
    transform: scale(1.1);
}


/* Contato */
form {
    display: flex;
    flex-direction: column;
}

form input,
form textarea {
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 12px;
}

form textarea {
    height: 150px;
}

form button {
    padding: 10px 20px;
    background-color: #007bff;
    color: #fff;
    border: none;
    cursor: pointer;
    border-radius: 12px;
}

form button:hover {
    background-color: #018d08e0;
    transition: 0.5s;
    opacity: 0.7;
}

/* Footer */
footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 15px 0;
}

/* Botão Voltar ao Topo */
#voltarTopo {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

#voltarTopo:hover {
    opacity: 1;
}

/* Responsividade */
@media (max-width: 768px) {
    .blog-post {
        width: 45%;
    }

    nav ul {
        display: none;
        /* Esconde o menu em telas menores */
    }
}

@media (max-width: 500px) {
    .blog-post {
        width: 100%;
    }
}