/* styles.css */

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f8f8;
}

header {
    background-color: rgb(12, 7, 98);
    color: rgb(12, 7, 98);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    /* centraliza a imagem */
    height: 200px;
    /* ajuste a altura conforme necessário */
    width: 100%;
}

header img {
    width: 100%;
    height: 100%;
}


nav {
    margin: 0 auto;
    background-color: rgb(12, 7, 98);
    display: flex;
    justify-content: space-between;
    border-top: 3px solid white;
}

nav ul {
    display: flex;
    justify-content: left;
}

nav ul li {
    cursor: pointer;
    list-style: none;
    padding: 10px 0;
    margin-right: 50px;
    color: white;
    background: none;
}

nav ul li:hover {
    border-bottom: 1px solid yellow;
}

main {
    padding: 2em 0;
}

button {
    width: 100%;
    padding: 1em;
    background-color: rgb(12, 7, 98);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1em;
    cursor: pointer;
}

button:hover {
    background-color: rgba(12, 7, 98, 0.5);
    color: white;
}

#atividades {
    margin: auto;
    width: 97%;
    display: flex;
    justify-content: space-between;
}

.atividades h2 {
    color: rgb(238, 255, 0);
    font-size: 1rem;
    font-family: Arial, Helvetica, sans-serif;
    text-transform: uppercase;
    display: none;
    z-index: 999;
}

.atividades h3 {
    padding: 3px;
    margin: auto;
    display: none;
    font-size: 0.9rem;
    width: 100%;
    text-align: center;
    color: white;
    z-index: 999;
}

.atividades:hover h3 {
    display: block;
}

.atividades:hover h2 {
    display: block;
}

.atividades:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease-in-out;
    background-color: #555;
}

.atividades {
    position: relative;
    /* Necessário para posicionar o pseudo-elemento */
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    width: 250px;
    height: 250px;
    border-radius: 10px;
    background-size: cover;
    transition: background-color 0.3s ease;
}

.atividades::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0);
    /* Começa transparente */
    border-radius: 10px;
    /* Para seguir o contorno do elemento */
    transition: background-color 0.3s ease;
    /* Transição suave */
}

.atividades:hover::after {
    background-color: rgba(0, 0, 0, 0.5);
    /* Camada preta semi-transparente ao passar o mouse */
}



.container {
    width: 98%;
    margin: 0.5rem auto;
    background: rgb(255, 255, 255);
    padding: 0;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.company-card {
    background: #d3d1d1;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    flex: 1 1 calc(33% - 2rem);
    margin: 1rem 0;
    text-align: center;
}

.company-card h2 {
    margin-top: 0;
}

.company-card a {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: rgb(12, 7, 98);
    color: white;
    text-decoration: none;
    border-radius: 4px;
}

.company-card a:hover {
    background: rgba(12, 7, 98, 0.5);
}


.company-profile h2 {
    margin-top: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    text-transform: uppercase;
    font-size: 13pt;

}

.company-card h2 span {
    width: 100%;
    height: 10px;
}

.company-profile ul {
    list-style-type: none;
    padding: 0;
}

.company-profile ul li {
    padding: 0.5rem 0;
}

.photos {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.photo {
    flex: 1 1 calc(33% - 1rem);
}

.photo img {
    width: 100%;
    border-radius: 8px;
}

.botoes {
    display: flex;
    justify-content: space-between;
    border-bottom: rgba(12, 7, 98, 1) 2px solid;
}

.botoes button {
    background: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: rgb(249, 245, 245);
}

.botoes a {
    background-color: rgb(12, 7, 98);
    width: 90px;
    text-decoration: none;
    border-radius: 10px;
    margin: 10px;
}

.botoes button i {
    font-size: 20pt;
}

.botoes button span {
    margin: 5px 0;
    font-size: 10px;
}

.botoes a:hover {
    background-color: rgb(196, 196, 212);
}

.company-card h3 {
    text-align: left;
    display: flex;
    flex-direction: column;
    font-size: 9pt;
    font-family: Arial, Helvetica, sans-serif;
    gap:1px;
}

.company-card h3 span {
    font-size: 0.9rem;
    margin-top: 10px;
    text-align: left;
}

.company-card h4 {
    font-size: 0.7rem;
    margin-top: 10px;
    text-align: left;
}

.dados {
    background: transparent;
    margin: 10px auto;
    width: 99%;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.dados h2 {
    text-align: left;
    font-size: 14pt;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    color: rgb(12, 7, 98);
    text-transform: uppercase;
}

.company-card {
    font-family: Arial, sans-serif;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin: 0 auto;
    background-color: #f9f9f9;
}

.info-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.hours-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.hours-list li {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    border-bottom: 1px solid #dddcdc;
}

.hours-list li:last-child {
    border-bottom: none;
}

.day {
    font-weight: bold;
    width: 150px;
    /* Define a mesma largura para todos os dias */
}

.time {
    font-style: italic;
    color: #555;
    flex: 1;
    /* Faz com que o horário ocupe o espaço restante */
}

.status {
    padding: 2px 8px;
    border-radius: 4px;
    color: #fff;
    font-weight: bold;
}

.status.open {
    background-color: #5cb85c;
    /* Verde */
}

.status.closed {
    background-color: #d9534f;
    /* Vermelho */
}

p {
    color: #d9534f;
    font-weight: bold;
}

.map-container {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.map-container img {
    height: 450px;
    width: 40%;
    border-radius: 10px;
    object-fit: cover;

}

.map-container iframe {
    width: 100%;
    /* Ajusta a largura do iframe para 100% do contêiner */
    height: 450px;
    /* Altura fixa do iframe */
    border: 0;
    /* Remove a borda */
    border-radius: 5px;
    /* Adiciona cantos arredondados */
}

#logo {
    width: 100px;
    height: 100px;
}

.gallery-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    max-width: 100%;
    overflow: hidden;
}

.gallery {
    display: flex;
    gap: 10px;
    transition: transform 0.3s ease-in-out;
    overflow: hidden;
    scroll-behavior: smooth;
}

.gallery img {
    max-width: 150px;
    height: auto;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.2s;
}

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

.nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 100;
}

.nav-button.left {
    left: 0;
    width: 30px;
}

.nav-button.right {
    right: 0;
    width: 30px;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0, 0, 0);
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
}

.modal-content,
#caption {
    animation-name: zoom;
    animation-duration: 0.6s;
}

@keyframes zoom {
    from {
        transform: scale(0)
    }

    to {
        transform: scale(1)
    }
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

@media screen and (max-width:800px) {

    body {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
    }

    main {
        width: 90vw;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
    }

    header {
        height: 100px;
        width: 100%;
        padding: 0;
        top: 0;
        /* ou 'contain', dependendo do efeito desejado */
    }

    header img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        /* A imagem se adapta sem cortar */
        object-position: center;
        padding: 0;
    }

    .botoes {
        background: none;
        width: 100%;
        margin-top: 10px;
        margin-bottom: 0;
    }

    .botoes a {
        padding: 0;
        margin: 5px;
        background-color: rgb(12, 7, 98);
    }

    .botoes a button {
        padding: 5px 2px;
        font-size: 6pt;
        width: 50px;
        color: white;
        margin: auto;
        text-align: center;
        font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    }

    .botoes a button i {
        font-size: 12pt;
        color: white;
    }

    nav {
        display: flex;
        flex-direction: column;
        background: none;
    }

    nav ul {
        display: flex;
        align-items: flex-start;
        justify-content: flex-start;
        background-color: rgb(12, 7, 98);
        margin: 0;
        top: 0;
    }

    nav ul li {
        font-size: 10pt;
        margin: 5px 15px;
    }

    #atividades {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        /* Define 3 colunas com largura igual */
        grid-auto-flow: row;
        /* Define o fluxo automático para próximas linhas */
        width: 95%;
        margin: auto;
        gap: 10px;
    }

    .atividades {
        width: 130px;
        height: 130px;
        background-size: fill;
    }

    .full-width {
        width: 100%;
    }

    .company-profile {
        margin: 0 auto;
    }

    .nav-button {
        transform: translateY(-50%);
        background-color: rgba(0, 0, 0, 0.5);
        color: white;
        border: none;
        cursor: pointer;
        padding: 15px;
        z-index: 100;
        width: 100%;
        position: absolute;
    }

    .nav-button.left {
        left: 0;
        width: 20px;
    }

    .nav-button.right {
        right: 0;
        width: 20px;
    }

    .dados {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width:90%;
        padding: 0;

    }

    .dados .company-card {
        width:93%;
        padding:10px;
    }

    #img01 {
        max-height: 100%;
        max-width: 100%;
    }

    .gallery-container {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 10px;
        padding: 10px;
    }

    .maps-midia{
        display: flex;
        flex-direction: column;
        padding: 0;
    }

    .maps-midia img{
        width:100%;
        height:200px;
        object-fit: fill;
    }

    .maps-midia iframe{
        width: 100%;
        height: 100px;
    }

}

.module {
    display: none;
    padding: 20px;
    transition: opacity 0.4s;
}

.active {
    display: block;
    opacity: 1;
}

/* Estilo da Galeria */
.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 2fr));
    gap: 15px;
    padding: 20px;
}

#gallery img {
    width: 80%;
    height: 80%;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Efeito ao passar o mouse */
#gallery img:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
}

/* Lightbox (Modal de Tela Cheia) */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    width: auto;
    height: auto;
    max-width: 1050px;
    max-height: 1050px;
    object-fit: contain;
    /* Garante que a imagem não seja cortada */
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    transition: color 0.3s;
}

.close-lightbox:hover {
    color: #ff4757;
}