body {
    background-color: #f4f4f4;
    font-family: 'Nunito', sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
}

header {
    font-family: 'Nunito', sans-serif;
    font-size: large;
    background-color: #333333;
    color: #fff;
    padding: 0.5rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

header img {
    max-height: 6vh;
}

nav {
    display: flex;
    align-items: center;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav ul li {
    margin-left: 3rem;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.3s ease, color 0.3s ease;
}

nav ul li a:hover {
    transform: scale(1.1);
    color: #64949c;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    width: 30px;
    height: 30px;
}

.menu-toggle div {
    width: 100%;
    height: 4px;
    background-color: #fff;
    margin: 3px 0;
    transition: all 0.3s ease;
}

nav ul {
    display: flex;
}

@media (max-width: 768px) {


    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        right: 0;
        background-color: #333;
        width: 100%;
        padding: 1rem 0;
        z-index: 100;
    }

    nav ul.active {
        display: flex;
    }

    nav ul li {
        margin: 1rem 0;
        text-align: center;
    }

    .menu-toggle {
        display: flex;
        margin-left: 7vh;
    }

    .menu-toggle.active div:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .menu-toggle.active div:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active div:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
}

main {
    text-align: center;
}

html {
    scroll-behavior: smooth;
}

.cta {
    background-color: #858789;
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    margin-top: 1rem;
}

footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 1rem;
    margin-top: 2rem;
}

footer p {
    margin: 0;
}

.whatsapp-button {
    z-index: 9999; /* Coloca o elemento acima de outros elementos */
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    font-size: 2rem;
}

.swiper-container {
    width: 100%;
    height: 80vh;
    /* Ajusta a altura para ocupar a tela inteira */
    overflow: hidden;
    /* Remove barras de rolagem */
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Ajusta a imagem sem distorção */
    display: block;
    /* Remove gaps causados por imagens inline */
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    z-index: 10;
    background: rgba(0, 0, 0, 0.829);
    /* Fundo semi-transparente */
    padding: 1rem 2rem;
    border-radius: 10px;
}

.slide-content h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.slide-content p {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.slide-button {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    font-weight: bold;
    color: #fff;
    background-color: #64949c;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.slide-button:hover {
    background-color: #557a82;
    transform: scale(1.05);
}

.whatsapp-button:hover {
    background-color: #1ebe5b;
}

.services {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 2rem;
padding: 3rem 1rem;
background-color: #f4f4f4;
}

.service-card {
background: #fff;
padding: 2rem;
border-radius: 8px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
text-align: center;
transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
transform: translateY(-10px);
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.service-card .icon {
width: 80px;
height: 80px;
margin: 0 auto 1rem;
}

.service-card .icon img {
width: 100%;
height: 100%;
object-fit: contain;
}

.service-card h3 {
margin: 1rem 0 0.5rem;
font-size: 1.5rem;
color: #333;
}

.service-card p {
font-size: 1rem;
color: #666;
line-height: 1.6;
}

.carrossel-atendidos-container {
    margin-top: 0;
    padding: 0;
    background-color: #333;
    width: 100%;
    overflow: hidden;
}

/* Carrossel principal */
.carrossel-atendidos-container {
    margin-top: 0;
    padding: 0;
    background-color: #333;
    width: 100%;
    overflow: hidden;
}

/* Carrossel principal */
.carrossel-atendidos {
    display: flex;
    animation: scroll-loop 20s linear infinite; /* Animação contínua */
    will-change: transform; /* Otimização para animações */
}

/* Itens do carrossel */
.carrossel-atendidos-item {
    min-width: 220px; /* Tamanho fixo dos itens */
    padding: 10px;
    text-align: center;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    margin: 0 10px;
    border-radius: 8px;
}

.carrossel-atendidos-item img {
    width: 100%;
    height: 150px; /* Altura fixa */
    object-fit: contain;
    border-radius: 8px;
}

.carrossel-atendidos-item div {
    margin-top: 10px;
    margin-bottom: 5px;
    font-weight: bold;
}

/* Animação de loop contínuo */
@keyframes scroll-loop {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-220px * 9)); /* Multiplique pelo número de itens originais */
    }
}

/* Animação para o movimento do carrossel */
@keyframes scroll-large {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%); /* Move todo o carrossel */
    }
}

/* Responsividade */
@media (max-width: 768px) {
    .carrossel-atendidos {
        animation: scroll-medium 15s linear infinite; /* Animação mais rápida para telas menores */
    }

    .carrossel-atendidos-item {
        min-width: 150px; /* Itens menores */
    }
}

@media (max-width: 480px) {
    .carrossel-atendidos {
        animation: scroll-small 10s linear infinite; /* Animação ainda mais rápida */
    }

    .carrossel-atendidos-item {
        min-width: 120px; /* Itens ainda menores */
    }

    .carrossel-atendidos-item img {
        height: 100px; /* Reduz altura da imagem */
    }
}

/* Animações ajustadas para telas menores */
@keyframes scroll-medium {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

@keyframes scroll-small {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

.seg{
    color: #f0f0f0;
}

.containerc {
    padding-top: 5vh;
    display: flex;
    justify-content: space-between;
    width: 100%;
    min-width: 100%; /* Para limitar o tamanho total */
    margin: 0 auto;
}

/* Container do formulário */
.contact-container {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    padding: 40px;
    border-radius: 50px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 50%; /* Ocupa metade da largura da tela */
    box-sizing: border-box;
}

#contact-form{
    flex-direction: column;
    display: flex;
    width: 70%;
}

.contact-img{
    max-width: 50%;
    border-radius: 50px;
    filter: brightness(50%); 
}

.send{
    align-self: center;
}

/* Título */
.contact-container h1 {

    font-size: 48px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
}

/* Estilo dos campos do formulário */
form {
    gap: 20px; /* Aumentado o espaço entre os campos */
}

/* Estilo de cada campo do formulário */
input, textarea {
    padding: 14px;
    font-size: 16px;
    border-radius: 5px;
    border: 1px solid #ddd;
    background-color: #fafafa;
    width: 100%; /* Campos agora ocupam 100% do tamanho disponível */
    box-sizing: border-box; /* Para garantir que o padding não quebre o layout */
    transition: all 0.3s ease;
    border-radius: 30px; /* Arredondamento dos cantos */
}

/* Foco nos campos */
input:focus, textarea:focus {
    border-color: #4CAF50;
    outline: none;
    background-color: #fff;
}

/* Estilo do botão de envio */
button {
    max-width: 30vh;
    padding: 14px 20px;
    background-color: #4CAF50;
    color: white;
    font-size: 16px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border-radius: 30px; /* Arredondamento dos cantos */
}

/* Efeito ao passar o mouse sobre o botão */
button:hover {
    background-color: #45a049;
}

/* Estilo para os labels */
label {
    font-size: 14px;
    color: #333;
    font-weight: 500;
    text-align: left;
    margin-bottom: 5px; /* Espaço entre o label e o campo */
    
}

/* Espaçamento entre os campos */
textarea {
    min-height: 150px; /* Aumentado o tamanho da área de texto */
    resize: vertical; /* Permitido o redimensionamento na vertical */
    border-radius: 30px; /* Arredondamento dos cantos */
}

/* Responsividade para telas menores */
@media (max-width: 768px) {
    .containerc {
        flex-direction: column;
        align-items: center;
    }

    .contact-img{
        filter: brightness(50%); 
        max-width: 100%;
        object-fit: cover;
    }

    .contact-container {
        width: 100%;
        margin-bottom: 20px;
    }

    button {
        width: 100%;
    }
}

/* Para telas menores que 600px (celulares médios) */
@media (max-width: 600px) {
    .contact-container {
        width: 90%; /* Mantém um pouco de margem lateral */
    }

    .contact-img{
        filter: brightness(50%); 
        max-width: 95%;
        min-height: 500px;
    }
}

/* Para telas menores que 480px (celulares pequenos) */
@media (max-width: 480px) {
    .contact-container {
        width: 95%; /* Ajuste para melhor legibilidade */
    }

    .contact-img{
        filter: brightness(50%); 
        max-width: 100%;
        min-height: 500px;
    }

    button {
        font-size: 16px; /* Aumenta a fonte para melhor usabilidade */
        padding: 12px;
    }
}

/* Para telas menores que 360px (celulares muito pequenos) */
@media (max-width: 360px) {
    .contact-container {
        width: 100%;
    }

    .contact-img{
        filter: brightness(50%); 
        max-width: 100%;
        min-height: 500px;
    }

    button {
        font-size: 14px;
        padding: 10px;
    }
}

.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
.spinner {
    width:20px;
    height: 20px;
    border: 5px solid #ccc;
    border-top: 5px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.serv{
    color: #333;
    margin-bottom: 0;
    font-size: 44px;
}


