body {
    font-family: 'Jost', sans-serif;
    margin: 0;
}

@media (min-width: 768px) {
    *, html {
        scroll-behavior: smooth !important;
    }
    * {
        padding: 0;
        margin: 0;
    }  
    html, body {
        height: 100%;
        width: 100%;
    }  
    body {
        font-family: 'Jost', sans-serif;
        scroll-behavior: smooth;
    }
    main {
        display: flex;
        flex-wrap: wrap;
        width: 100vw;
        height: 100%;
        overflow: auto;
        scroll-snap-type: y mandatory;    
        scroll-behavior: smooth !important;
    }
    section {
        margin: 0 auto;
        height: 100vh;
        width: 100vw;
    }
    main section {
        scroll-snap-align: start;
    }
}

/* Sessão 1 e 2: Estilos para o Cabeçalho e Título Principal */
.hero-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0; /* Remove padding da seção */
    background-color: #dde0e4;
    height: 100vh; /* Altura da seção igual à altura da tela */
    box-sizing: border-box;
}


.hero-section .container {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    width: 100%;
    height: 100%;
}

.hero-section .content {
    max-width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 80px; /* Adiciona padding ao conteúdo para espaçamento */
    box-sizing: border-box;
}

.hero-section .content .logo {
    height: 200px; /* Define a altura fixa do logotipo */
    width: auto; /* A largura será proporcional à altura */
    margin-bottom: 25px;
    align-self: flex-start; /* Garante que o logotipo fique no topo */
}

.hero-section .content .description {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centraliza verticalmente */
    opacity: 0; /* Inicialmente invisível */
    transform: translateY(50px); /* Começa 20px abaixo da sua posição final */
    animation: hero-section-show 1s ease-out forwards; /* Aplica a animação */
}
/* Animação de aparição */
@keyframes hero-section-show {
    to {
        opacity: 1; /* Torna o elemento visível */
        transform: translateY(0); /* Move o elemento para a posição final */
    }
}

.hero-section .content h1 {
    font-size: 2.5em;
    color: #2f2f2f;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-section .content h1 span {
    color: #1d1d1d;
    font-weight: bold;
}

.hero-section .content p {
    font-size: 1.2em;
    color: #5a5a5a;
    margin-bottom: 30px;
}

.hero-section .buttons {
    display: flex;
    gap: 20px;
}

.hero-section .btn {
    padding: 12px 24px;
    font-size: 1em;
    border: 2px solid #2f2f2f;
    background-color: transparent;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s;
}

.hero-section .btn-servicos {
    color: #2f2f2f;
}

.hero-section .btn-contato {
    color: white;
    background-color: #1d5cb2;
    border-color: #1d5cb2;
}

.hero-section .btn:hover {
    background-color: #2f2f2f;
    color: white;
}

.hero-section .image {
    width: 50%;
    height: 100%;
    padding: 0; /* Remove padding da imagem */
    margin: 0; /* Remove margin da imagem */
    box-sizing: border-box;
}

.hero-section .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 768px) {
    .hero-section {
        flex-direction: column; /* Alinha os elementos em coluna */
        height: auto;
    }

    .hero-section .container {
        display: flex;
        flex-direction: column; /* Garante que os elementos fiquem em coluna */
        align-items: center; /* Centraliza os elementos */
    }

    .hero-section .image {
        order: 2; /* Garante que a imagem apareça depois do conteúdo */
        width: 100%;
        margin-top: 20px;
    }

    .hero-section .image img {
        width: 100%; /* Garante que a imagem ocupe toda a largura disponível */
        height: auto;
    }

    .hero-section .content {
        max-width: 100%;
        padding: 20px;
        text-align: center;
        order: 1; /* Garante que o conteúdo apareça antes da imagem */
    }

    .hero-section .content .logo {
        height: auto; 
        width: 100%; 
        margin-bottom: 0;
        align-self: flex-start; /* Garante que o logotipo fique no topo */
    }

    .hero-section .buttons{
        flex-direction: column;
    }
}

/* Aumenta o tamanho do texto em 25% quando a largura da página for maior que 1280px */
@media (min-width: 1560px) {
    body {
        font-size: 125%; /* Aumenta o tamanho do texto em 25% */
    }

    .hero-section .content h1 {
        font-size: 3.125em; /* Aumenta proporcionalmente o tamanho do h1 */
    }

    .hero-section .content p {
        font-size: 1.5em; /* Aumenta proporcionalmente o tamanho do parágrafo */
    }

    .hero-section .btn {
        font-size: 1.25em; /* Aumenta proporcionalmente o tamanho dos botões */
    }
}






/* Estilos para a seção Nossos Serviços */
.services-section {
    padding: 0 15%; /* Define padding lateral de 15% da largura da página */
    background-color: white;
    text-align: center;
    min-height: 100vh; /* Define a altura mínima da seção para ocupar 100% da altura da tela */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.services-section h2 {
    font-size: 2.5em;
    color: #2f2f2f;
    margin-bottom: 40px;
    text-align: left; /* Alinha o título à esquerda */
}

.services-section .services {
    display: flex;
    justify-content: space-between;
    gap: 40px; /* Adiciona gap de 40px entre os itens */
    flex-grow: 1;
}

.services-section .service-item {
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    flex: 1;
    color: #fff;
    text-align: left;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    aspect-ratio: 1 / 1.5; /* Define a proporção de 1:1.5 */
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    max-height: 600px; /* Define a altura máxima de 600px */
}

.services-section .service-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
    flex-grow: 1;
}

.services-section .service-info {
    background: rgba(0, 0, 0, 0.7);
    padding: 20px;
    transition: background 0.3s ease;
}

.services-section .service-info h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.services-section .service-info p {
    font-size: 1em;
    margin-bottom: 0;
}

.services-section .service-item:hover {
    transform: translateY(-5px);
}

@media (max-width: 768px) {
    .services-section {
        padding: 0 20px; /* Ajusta o padding lateral no modo responsivo */
        min-height: auto; /* Remove a altura fixa para que a seção cresça conforme o conteúdo */
    }

    .services-section .services {
        flex-direction: column;
    }

    .services-section .service-item {
        margin-bottom: 20px;
    }
}



/* Estilos para a seção Sobre Nós */
.about-section {
    display: flex;
    align-items: center;
    padding: 0 15%; /* Ajusta o padding apenas nas laterais */
    height: 100vh; /* Define a altura da seção para ocupar 100% da altura da tela */
    background-color: white;
}

.about-section .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 100%; /* Garante que o container ocupe toda a altura */
}

.about-section .about-image {
    position: relative;
    width: 50%; /* Limita a largura da imagem para 50% */
    padding-bottom: 50%; /* Cria uma altura proporcional para manter a imagem quadrada */
    margin-right: 40px; /* Espaçamento entre a imagem e o texto */
    border-radius: 10px;
    overflow: hidden;
}

.about-section .about-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.about-section .about-content {
    flex: 1;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-section .about-content h2 {
    font-size: 2.5em;
    color: #2f2f2f;
    margin: 0px;
}

.about-section .about-content p {
    font-size: 1em;
    color: #5a5a5a;
    margin-bottom: 20px;
}

.about-section .btn {
    margin-top: 20px;
    padding: 12px 24px;
    font-size: 1em;
    color: white;
    background-color: #1d5cb2;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s;
    align-self: flex-start;
}

.about-section .btn:hover {
    background-color: #0c3a72;
}

@media (max-width: 768px) {
    .about-section {
        flex-direction: column;
        height: auto;
        padding: 50px 20px; /* Ajusta o padding no modo responsivo */
    }

    .about-section .container {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .about-section .about-image {
        order: 1;
        width: 100%;
        margin-right: 0;
        margin-bottom: 20px;
        padding-bottom: 10px;
    }

    .about-section .about-image img {
        width: 100%;
        height: auto;
        display: block;
        position: relative;
    }

    .about-section .about-content {
        max-width: 100%;
        order: 2;
        text-align: center;
        align-items: center;
    }

    .about-section .btn {
        align-self: center;
    }
}



/* Estilos para a seção Galeria de Imagens */
.gallery-section {
    position: relative;
    width: 100%;
    height: 100vh; /* Altura da seção */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background-color: #f4f4f4;
}

.carousel-container {
    width: 60%; /* Ajusta a largura do container */
    height: auto;
    display: flex;
    align-items: center;
    position: relative;
}

.carousel {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 20px; /* Mantém o espaçamento entre os itens */
    padding: 0 10px; /* Adiciona um pequeno padding para manter a centralização */
}

.carousel-item {
    min-width: calc(100%); /* Ajusta a largura dos itens para considerar o gap */
    aspect-ratio: 3 / 2; /* Mantém a proporção 3:2 */
    transition: transform 0.5s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0.5; /* Define a opacidade padrão para todos os itens */
}

.carousel-item.active {
    opacity: 1; /* Mantém a opacidade completa para o item ativo */
}

.carousel-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

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

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

.dot-container {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
}

.dot {
    height: 15px;
    width: 15px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
}

.dot.active {
    background-color: #717171;
}

@media (max-width: 768px) {
    .gallery-section {
        flex-direction: column;
        height: auto;
        padding: 50px 0; /* Ajusta o padding no modo responsivo */
    }

    .carousel-item img {
        width: 100%;
        height: 200px;
        object-fit: cover;
    }

    .carousel-container {
        width: 100%;;
    }

    .dot-container {
        display: none;
    }    
}

/* Estilos para a Seção Rolagem de Clientes */
.clients-section {
    width: 100%;
    background-color: white;
    padding: 50px 0;
    overflow: hidden;
}

.clients-carousel {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 200px;
    animation: scroll 30s linear infinite;
}

.client-logo {
    flex: 0 0 auto;
}

.client-logo img {
    max-width: 300px;
    height: auto;
}

@media (max-width: 768px) {
    .clients-section {
        padding: 30px 0;
    }
    .clients-carousel {
        gap: 50px;
    }    
    .client-logo img {
        max-width: 150px;
        height: auto;
    }
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}


/* Estilos para a Seção Mapa e Contato */
.location-section {
    position: relative;
    width: 100%;
    height: 100hv;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.map-container {
    width: 100%;
    height: 50%;
    position: relative;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.contact-info {
    position: relative;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 20px;
    margin-left: 80px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    width: 400px;
    order: 1;
}

.contact-info h2, .contact-info h3 {
    margin: 0 0 10px 0;
    color: #333;
}

.contact-info p {
    margin: 0 0 15px 0;
    color: #666;
}


/* Estilos para o Rodapé */
.site-footer {
    display: flex;
    justify-content: left; /* Centraliza horizontalmente */
    align-items: center; /* Centraliza verticalmente */
    width: 100%;    
    height: 50%;
    background-color: #333;
}

.site-footer .logo-container{
    order: 2;
    width:70%;
}

.site-footer .logo {
    float: right;
    margin-right: 80px;
    max-width: 100%;
    height: 200px;
}

@media (max-width: 768px) {
    .site-footer {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .contact-info { 
        margin: 0;
        width: 50%;
        padding: 25px;
        margin: 25px 0;
    }

    .site-footer .logo {
        margin: 0;
        width: 100%;
        height: auto;
    }

    .site-footer .logo-container{
        order: 2;
        width:auto;
    }

    .map-container{
        height: 250px;
    }

}

/* Estilo básico para os ícones */
.icon-whatsapp,
.icon-phone {
    display: inline-block;
    width: 20px; /* Largura do ícone */
    height: 20px; /* Altura do ícone */
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
}

/* Ícone do WhatsApp */
.icon-whatsapp {
    background-image: url('src/icon/wpp-icon.png'); /* Caminho para a imagem do WhatsApp */
}

/* Ícone do telefone */
.icon-phone {
    background-image: url('src/icon/phone-icon.png'); /* Caminho para a imagem do telefone */
}