/* Estilo geral */
html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
}

body {
    font-family: Arial, sans-serif;
    /* background: url('../imagens/banner.png') no-repeat center center; */
    background-size: cover;
    /* Mantém o fundo cobrindo toda a tela */
    background-attachment: fixed;
    /* Faz a imagem de fundo permanecer fixa ao rolar */
    color: white;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Container principal */
.container {
    text-align: center;
    padding: 120px 0 50px;
    background-size: cover;
    border-radius: 10px;
    margin: 0 auto;
    position: relative;
    background: #000;
}

/* Caixa de busca */
.search-box {
    display: flex;
    justify-content: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 10px;
}

.search-box input {
    padding: 10px;
    font-size: 1em;
    /* border-radius: 5px; */
    border: 1px solid #ccc;
    width: 500px;
    height: 40px;
}


.search-box input[type="submit"] {
    background-color: #000;
    color: white;
    border: none;
    cursor: pointer;
    width: 100px;
}

.search-box input[type="submit"]:hover {
    background-color: #A1372E;
}

/* Galeria de imagens */
.image-gallery {

    padding: 20px;
    /* background-color: rgba(0, 0, 0, 0.7); */
}

.image-gallery img {
    margin: 5px;
    object-fit: cover;
    border-radius: 5px;
}

/* Seção de Empresas em Destaque */
.new-section {
    background: linear-gradient(to bottom, #0a0404 40%, #cd0c0c);
    padding: 40px 20px;
    text-align: center;
}

.new-section h2 {
    margin-bottom: 30px;
    font-size: 2rem;
}

.new-section img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    max-height: 200px;
    display: block;
}

/* Grid de imagens */
.image-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.image-grid .row {
    display: flex;
    justify-content: space-around;
    gap: 20px;
}

.image-grid img {
    width: 300px;
    height: 213px;
    object-fit: cover;
    border-radius: 10px;
}

/* Nova Seção de Categorias */
.category-section {
    background: linear-gradient(to bottom, #cd0c0c 40%, #0a0404);
    padding: 40px 20px;
    text-align: center;
}

.category-section h2 {
    color: white;
    font-size: 2em;
    margin-bottom: 20px;
}

/* Grid de categorias */
.category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(80px, 1fr));
    gap: 5px;
    justify-content: center;
    list-style-type: none;
    padding: 0px 255px;
}

.category-grid div {
    padding: 20px;
    color: white;
    border-radius: 5px;
    text-align: center;
}

/* Estilização do botão */
.category-button {
    text-align: center;
}

.category-button button {
    padding: 10px 20px;
    font-size: 1em;
    background-color: #8C3128;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

.category-button button:hover {
    background-color: #A1372E;
}

/* Rodapé */
footer {
    background-color: #000;
    color: white;
    padding: 20px 0;
}

.footer-container {
    display: flex;
    justify-content: space-around;
    text-align: left;
    padding: 20px 40px;
}

.footer-column {
    width: 22%;
}

.footer-column h3 {
    margin-bottom: 10px;
    font-size: 1.2em;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li {
    margin-bottom: 8px;
}

.footer-column ul li a {
    color: white;
    text-decoration: none;
    font-size: 0.9em;
}

.footer-column ul li a:hover {
    text-decoration: underline;
}

.social-icons {
    display: flex;
    gap: 10px;
}

.social-icons li {
    list-style: none;
}

.social-icons li a {
    color: white;
    font-size: 1.5em;
    text-decoration: none;
}

.footer-bottom {
    text-align: center;
    margin-top: 20px;
    border-top: 1px solid #5B2420;
    padding-top: 10px;
}

.footer-bottom p {
    margin: 0;
}

a {
    text-decoration: none;
    color: inherit;
}

a:hover {
    color: #000;
}

.ad-section {
    background-color: #f8f9fa;
    padding: 40px 0;
}

.ad-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.ad-item {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 20px;
    width: calc(33.333% - 20px);
    /* Para 3 anúncios por linha com margem */
    display: flex;
    flex-direction: column;
}

.ad-header {
    background: url('img_url_aqui.jpg') center center/cover no-repeat;
    height: 180px;
}

.ad-body {
    padding: 20px;
    text-align: center;
}

.ad-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.ad-description {
    color: #666;
    margin-bottom: 15px;
}

.ad-location {
    color: #dc3545;
    font-weight: bold;
    margin-bottom: 20px;
}

.ad-footer {
    display: flex;
    justify-content: space-around;
    padding: 15px;
    background-color: #f1f1f1;
}

.ad-footer a {
    font-size: 1rem;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    color: #fff;
}

.btn-whatsapp {
    background-color: #25d366;
}

.btn-phone {
    background-color: #007bff;
}

.btn-info {
    background-color: #ffc107;
}

@media (max-width: 992px) {
    .ad-item {
        width: calc(50% - 20px);
        /* Para telas médias, 2 anúncios por linha */
    }
}

@media (max-width: 768px) {
    .ad-item {
        width: 100%;
        /* Para telas pequenas, 1 anúncio por linha */
    }
}

.image-gallery .mx-2 img {
    max-width: 100px;
}

/* RESPONSIVO CELULAR */
@media (max-width: 576px) {

    .new-section .col-md-3 {
        margin-bottom: 15px;
    }

    .category-grid {
        grid-template-columns: repeat(4, minmax(80px, 1fr));
        gap: 2px 66px;
        margin-left: -20px;
        margin-bottom: 28px;
    }

    .category-grid div {
        padding: 8px;
    }

    .category-button button {
        width: 100%;
    }

    body {
        background-position: top center;
        /* Ajusta a posição da imagem no mobile */
        overflow-x: hidden;
    }

    .new-section {
        padding: 20px 10px;
        /* Reduz o padding ainda mais para dispositivos pequenos */
    }

    .new-section h2 {
        font-size: 1.5rem;
        /* Reduz o tamanho da fonte para se ajustar melhor ao mobile */
        margin-bottom: 20px;
    }

    .new-section img {
        max-height: 150px;
        /* Reduz a altura máxima das imagens em dispositivos móveis */
    }

    .category-grid {
        grid-template-columns: repeat(1, minmax(80px, 1fr)) !important;
        padding: 0 20px;
    }

    .footer-container {
        display: flex;
        text-align: left;
        padding: 20px 40px;
        flex-direction: column;
        align-items: flex-start;
        font-size: 21px;
    }

    .footer-column {
        width: 100%;
    }

    .footer-column h3 {
        margin-bottom: 10px;
        font-size: 1.2em;
        font-weight: bold;
    }

    .footer-column ul li a {
        color: white;
        text-decoration: none;
        font-size: 1em;
        font-weight: bold;
    }

    .search-box input {
        width: 100%;
    }

    h1,
    .h1 {
        font-size: 2rem;
    }

    .image-gallery {
        padding: 0px;
        background-color: rgba(0, 0, 0, 0.7);
    }

    .search-box {
        display: flex;
        gap: 10px;
        background: rgb(111 8 13);
        padding: 20px;
        margin: 0px 25px;
        border-radius: 0px;
        flex-wrap: wrap;
        flex-direction: column;
        align-items: center;
    }

    .botao-estiloso {
        background-color: #ff0000;
        padding: 10px 20px;
        border-radius: 5px;
        text-align: center;
        color: #ffffff;
        border: none;
        font-size: 16px;
        font-weight: bold;
        cursor: pointer;
        transition: background-color 0.3s ease, transform 0.3s ease;
        display: inline-flex;
        align-items: center;
        box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
        float: right;
    }
}

@media (max-width: 768px) {

    button {
        /* Faz o botão ocupar toda a largura disponível em dispositivos móveis */
        padding: 12px 12px !important;
        /* Ajusta o padding para dispositivos móveis */
        font-size: 18px;
        /* Aumenta o tamanho da fonte para melhor legibilidade */
        margin-top: -40px;
        margin-right: 47px !important;
    }
}   .banner-content .btn-success {
        margin-top: -10px;
        margin-bottom: 30px;
    }

    .banner-image {
        position: relative;
        height: 200px;
        width: 100%;
        margin-top: -20px;
        border-radius: 20px 20px 0 0;
    }

    .service-description-section {
        margin-top: 0;
        border-radius: 20px;
        position: relative;
        z-index: 2;
        background: white;
    }
}