/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      0.1
*/


/* -------------------------------
   GALERIA DE FOTOS
-------------------------------- */
.galeria {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.galeria .item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border-radius: 4px;
}

.galeria .item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    transition: .4s ease;
}

.galeria .item::before{
    content:'';
    position:absolute;
    inset:0;
    background:rgba(0,0,0,.55);
    opacity:0;
    transition:.4s;
    z-index:1;
    pointer-events: none; /* Permite que o clique atravesse a camada escura */
}

.galeria .item::after{
    content:'⌕';
    position:absolute;
    top:50%;
    left:50%;
    transform:translate(-50%,-50%);
    color:#fff;
    font-size:42px;
    opacity:0;
    transition:.4s;
    z-index:2;
    pointer-events: none; /* Permite que o clique atravesse a lupa */
}

.galeria .item:hover::before,
.galeria .item:hover::after{
    opacity:1;
}

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

@media (max-width: 991px) {
    .galeria {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .galeria {
        grid-template-columns: 1fr;
    }
    .galeria .item img {
        height: 250px;
    }
}

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.92);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: .3s;
    z-index: 99999;
}

.lightbox.ativo {
    opacity: 1;
    visibility: visible;
}

.lightbox img {
    max-width: 90%;
    max-height: 85vh;
    border-radius: 8px;
}

/* Fechar */
.lightbox .fechar {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 42px;
    cursor: pointer;
    line-height: 1;
}

/* Setas */
.lightbox .seta {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,.15);
    border: none;
    color: #fff;
    font-size: 40px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    transition: .3s;
    
    /* --- CORREÇÕES ADICIONADAS --- */
    padding: 0; /* Remove o preenchimento padrão do tema que deixa oval */
    display: flex; /* Ativa o Flexbox para alinhamento interno */
    justify-content: center; /* Centraliza a seta horizontalmente */
    align-items: center; /* Centraliza a seta verticalmente */
    line-height: 1; /* Impede que a altura da fonte empurre a seta para baixo */
}

.lightbox .seta:hover {
    background: rgba(255,255,255,.3);
}

.lightbox .anterior {
    left: 30px;
}

.lightbox .proxima {
    right: 30px;
}

@media (max-width: 767px) {
    .lightbox .seta {
        width: 50px;
        height: 50px;
        font-size: 30px;
    }
    .lightbox .anterior {
        left: 10px;
    }
    .lightbox .proxima {
        right: 10px;
    }
}

/* -------------------------------
   FILTRO (EMPRESAS)
-------------------------------- */
.diretorio-empresas {
    width: 100%;
    max-width: 1200px;
    margin: auto;
    padding: 40px 20px;
    font-family: inherit;
    box-sizing: border-box;
}

.diretorio-empresas * {
    box-sizing: border-box;
}

.layout-wrapper {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.sidebar-filtros {
    width: 250px;
    flex-shrink: 0;
    position: sticky;
    top: 20px;
}

.filtro-cabecalho {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    min-height: 30px;
}

.sidebar-filtros h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
}

.filtro-grupo {
    margin-bottom: 25px;
}

.filtro-titulo {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 12px 0;
    color: #111;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-limpar {
    display: none; 
    background: none;
    border: 1px solid #ccc;
    color: #888;
    font-size: 0.75rem;
    text-decoration: none;
    cursor: pointer;
    padding: 5px 12px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.btn-limpar:hover {
    color: #c0392b;
    border-color: #c0392b;
    background-color: #fff5f5;
}

.filtro-opcoes {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.filtro-opcoes label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.95rem;
    color: #333;
    transition: color 0.2s ease;
}

.filtro-opcoes label:hover { 
  color: #111; 
}

.filtro-opcoes input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #111;
}

.qtd-filtro {
    color: #888;
    font-size: 0.85rem;
    margin-left: 4px;
    font-weight: normal;
}

.mobile-only { display: none; }
.desktop-only { display: block; }

.wrapper-tags-ativas {
    display: none;
    margin-bottom: 25px;
    animation: fadeIn 0.25s ease;
}

.titulo-tags-ativas {
    font-size: 0.9rem;
    font-weight: 700;
    color: #555;
    margin: 0 0 10px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.container-tags-ativas {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.filtro-tag-item {
    display: inline-flex;
    align-items: center;
    background-color: #f3f3f3;
    color: #111;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid #e5e5e5;
}

.filtro-tag-item button {
    background: none;
    border: none;
    color: #999;
    margin-left: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.filtro-tag-item button:hover { 
  color: #c0392b; 
}

.btn-limpar-tags-inline {
    background: none;
    border: none;
    color: #c0392b;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
    padding: 6px 10px;
    display: inline-flex;
    align-items: center;
    transition: color 0.2s ease;
}

.btn-limpar-tags-inline:hover { color: #a02d22; }

/* CONTEUDO PRINCIPAL */
.conteudo-principal { flex: 1; min-width: 0; width: 100%; }
.empresas-topo { margin-bottom: 30px; }
.empresas-topo h2 { font-size: 2rem; margin-bottom: 20px; font-weight: 700; }

.busca-empresa { 
    display: flex; 
    gap: 10px; 
    width: 100%;
}

.busca-empresa input {
    flex: 1;
    min-width: 0; 
    width: 100%;
    height: 52px; 
    border: 1px solid #dcdcdc;
    border-radius: 10px; 
    padding: 0 18px; 
    font-size: 16px; 
    outline: none;
    transition: all .3s ease;
}
.busca-empresa input:focus { border-color: #111; }

.busca-empresa button {
    height: 52px; 
    padding: 0 28px; 
    border: none; 
    border-radius: 10px;
    background: #111; 
    color: #fff; 
    font-weight: 600; 
    cursor: pointer;
    transition: all .3s ease;
    flex-shrink: 0;
}
.busca-empresa button:hover { opacity: .9; }
.mensagem-busca { margin-top: 15px; font-size: .95rem; color: #c0392b; font-weight: 500; display: none; }
 
/* A-Z */
.indice-az { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 10px; 
    margin-bottom: 40px; 
    width: 100%;
}
.indice-az a {
    width: 42px; height: 42px; display: flex; align-items: center;
    justify-content: center; border-radius: 8px; background: #f3f3f3;
    text-decoration: none; color: #111; font-weight: 600; transition: all .3s ease;
    flex-shrink: 0;
}
.indice-az a:hover { background: #111; color: #fff; }
 
/* LISTAGEM */
.grupo-letra { margin-bottom: 50px; }
.grupo-letra h3 { font-size: 2rem; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 1px solid #e5e5e5; }
.grupo-letra ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
 
/* CARDS */
.empresa { transition: all .3s ease; }
.empresa-card {
    display: flex; flex-direction: column; gap: 8px; padding: 22px;
    border: 1px solid #ececec; border-radius: 14px; background: #fff;
    transition: all .3s ease; cursor: pointer; height: 100%;
}
.empresa-card:hover { transform: scale(1.03); border-color: #111; box-shadow: 0 10px 30px rgba(0,0,0,.08); }
.empresa strong { color: #111; font-size: 1.05rem; }
.empresa span { color: #666; font-size: .95rem; }
.empresa small { color: #999; font-size: .85rem; }
 
.empresa.highlight .empresa-card { border: 2px solid #111; background: #f8f8f8; transform: scale(1.03); }
.oculto { display: none !important; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}
 
/* RESPONSIVIDADE DE CELULAR */
@media(max-width: 768px) {
    .diretorio-empresas { padding: 30px 15px; }
    
    .layout-wrapper { flex-direction: column; gap: 20px; }
    .sidebar-filtros { width: 100%; position: relative; top: 0; margin-bottom: 0px; border-bottom: 1px solid #e5e5e5; padding-bottom: 20px; }
    
    .desktop-only { display: none !important; }
    .mobile-only { display: block !important; }

    .filtros-mobile-container {
        display: flex;
        flex-direction: column;
        gap: 16px;
        width: 100%;
        margin-top: 10px;
    }

    .select-mobile {
        width: 100%;
        height: 50px;
        border: 1px solid #dcdcdc;
        border-radius: 10px;
        padding: 0 18px;
        font-size: 16px;
        outline: none;
        background-color: #fff;
        color: #111;
        cursor: pointer;
        font-family: inherit;
        appearance: none;
        background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 18px center;
        background-size: 16px;
        padding-right: 48px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.02);
    }
    
    .select-mobile:focus { border-color: #111; }
    .empresas-topo h2 { font-size: 1.6rem; }
    
    .grupo-letra ul { 
        grid-template-columns: 1fr !important; 
    }
    
    .indice-az { 
        flex-wrap: nowrap; 
        overflow-x: auto; 
        padding-bottom: 15px;
        -webkit-overflow-scrolling: touch; 
        justify-content: flex-start;
    }
    .indice-az::-webkit-scrollbar { height: 4px; }
    .indice-az::-webkit-scrollbar-thumb { background: #ccc; border-radius: 4px; }
}

@media(max-width: 480px) {
    .busca-empresa { flex-direction: column; gap: 10px; }
    .busca-empresa input, .busca-empresa button { width: 100%; }
}


/* -------------------------------
   FILTRO (HOME)
-------------------------------- */
.busca-home-box {
    max-width: 800px;
    margin: auto;
}

.busca-home-form {
    display: flex;
    gap: 0px;
    align-items: center;
    flex-wrap: wrap;
}

.busca-home-form input {
    flex: 1;
    min-width: 250px;
    height: 58px;
    border: 1px solid #ddd;
    border-radius: 8px 0px 0px 8px;
    padding: 0 20px;
    font-size: 16px;
    outline: none;
    transition: all .3s ease;
    margin: 0;
}

.busca-home-form input:focus {
    border-color: #111;
}

.busca-home-form button {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 58px;
    padding: 0 40px;
    border: none;
    border-radius: 0px 8px 8px 0px;
    background: #111;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all .3s ease;
    margin: 0;
    line-height: 1;
}

.busca-home-form button:hover {
    opacity: .9;
}

.erro-busca-home {
    width: 100%;
    margin-top: 10px;
    color: #d90429;
    font-size: 14px;
    font-weight: 500;
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease;
    display: block;
}

.erro-busca-home.show {
    opacity: 1;
    visibility: visible;
}



@media (max-width: 768px) {
    .busca-home-form button {
        width: 100%; /* Pega 100% do espaço */
        margin-top: 10px; /* Fica abaixo com margem */
        border-radius: 8px; /* Arredonda todos os lados para combinar com o padrão */
    }
}

@media (max-width: 768px) {
    .busca-empresa {
        width: 100%;
        display: block; /* Garante que a div ocupe a linha toda */
    }

    #buscarEmpresa {
        width: 100%;
        box-sizing: border-box; /* Impede que o padding quebre a tela */
        height: 58px; /* Mesma altura do botão para manter o padrão visual */
        padding: 0 15px; /* Espaço interno para o texto não colar na borda */
        border-radius: 8px; /* Arredondamento combinando com o botão */
        border: 1px solid #ccc; /* Borda sutil (ajuste para a cor do seu layout) */
        font-size: 16px; /* Tamanho de 16px é importante no mobile para evitar que o iOS dê zoom automático ao clicar no campo */
        margin-bottom: 10px; /* Dá um respiro caso haja elementos abaixo */
    }
}

/* -------------------------------
   SLIDER
-------------------------------- */
.slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin: 0 auto;
}

.slider {
    display: flex;
    transition: transform 0.4s ease-in-out;
    will-change: transform;
}

.slide-item {
    box-sizing: border-box;
}

/* -------------------------------
   MODO FADE
-------------------------------- */

.slider-container.fade .slider {
    position: relative;
    display: block;
    transform: none !important;
}

.slider-container.fade .slide-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.8s ease;
    z-index: 1;
}

.slider-container.fade .slide-item.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 2;
}

/* -------------------------------
   COLUNAS
-------------------------------- */

.slide-col-6 {
    flex: 0 0 calc(100% / 6);
    max-width: calc(100% / 6);
}

.slide-col-5 {
    flex: 0 0 calc(100% / 5);
    max-width: calc(100% / 5);
}

.slide-col-4 {
    flex: 0 0 calc(100% / 4);
    max-width: calc(100% / 4);
}

.slide-col-3 {
    flex: 0 0 calc(100% / 3);
    max-width: calc(100% / 3);
}

.slide-col-2 {
    flex: 0 0 calc(100% / 2);
    max-width: calc(100% / 2);
}

.slide-col-1 {
    flex: 0 0 100%;
    max-width: 100%;
}

/* -------------------------------
   BOTÕES
-------------------------------- */

.left-btn,
.right-btn {
    color: #161616;
    cursor: pointer;
    transition: color 0.2s ease;
}

.left-btn:hover,
.right-btn:hover,
.left-btn:focus,
.right-btn:focus {
    color: #007CBA;
}

.left-btn:disabled,
.right-btn:disabled {
    opacity: 0.5;
}

/* -------------------------------
   BOTÕES EXTREMOS
-------------------------------- */

.slider-extreme-buttons .left-btn,
.slider-extreme-buttons .right-btn {
    position: absolute;
    top: 50%;
    color: #161616;
    cursor: pointer;
    transition: color 0.2s ease;
    font-size: 24px;
    z-index: 10;
}

.slider-extreme-buttons .left-btn {
    left: 20px;
    transform: translateY(-50%);
}

.slider-extreme-buttons .right-btn {
    right: 20px;
    transform: translateY(-50%);
}

.slider-extreme-buttons .inverte-svg {
    transform: translateY(-50%) scaleX(-1);
}

/* -------------------------------
   INDICADORES
-------------------------------- */

.indicators {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    position: relative;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
}

.indicator {
    width: 10px;
    height: 10px;
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background-color: rgba(0, 81, 242, 1);
    width: 10px;
    height: 10px;
    border-radius: 10px;
    transform: scale(1);
}

/* -------------------------------
   RESPONSIVO
-------------------------------- */

@media (max-width: 1024px) {

    .slide-col-6,
    .slide-col-5,
    .slide-col-4,
    .slide-col-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 768px) {

    .slide-col-6,
    .slide-col-5,
    .slide-col-4,
    .slide-col-3,
    .slide-col-2 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .slider-extreme-buttons .left-btn {
        left: 10px;
    }

    .slider-extreme-buttons .right-btn {
        right: 10px;
    }
}

/* -------------------------------
   ACCORDION
-------------------------------- */

.accordion-container {
    display: none;
    padding: 20px;
}
.accordion-container.toggle-open {
    display: block;
}
.accordion-toggle {
    cursor: pointer;

}
h4.accordion-toggle {
    font-size: 20px;
    padding: 10px 20px;
    margin-top: 10px;
}
.accordion-toggle:after {
    content: '\002B';
    color: #545D69
    font-weight: bold;
    float: right;
    margin-right: 20px;
}
h4.accordion-toggle.toggle-open:after {
    content: "\2212";
}


/* -------------------------------
   GOOGLE MAPS (Full Width Seguro)
-------------------------------- */
.mapa-full {
    width: 100vw; 
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    max-width: 100vw;
}

.mapa-full iframe {
    width: 100%;
    height: 450px; 
    display: block;
    filter: grayscale(90%); 
    border: 0; /* Substitui o style="border:0;" direto no CSS */
}

/* -------------------------------
   BOTÃO COM SETA
-------------------------------- */
.svg-container {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  color: inherit;
  position: relative;
}
/* Para garantir tamanho fixo em qualquer situação */
.svg-container::after {
  content: "";
  flex-shrink: 0;
  flex-grow: 0;
  width: 14px !important;
  height: 12px !important;
  min-width: 14px;
  min-height: 12px;
  max-width: 14px;
  max-height: 12px;
  margin-left: 10px;                /* espaçamento entre texto e seta */
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg%20viewBox%3D%220%200%208%2014%22%20height%3D%2214%22%20width%3D%228%22%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%3E%3Cpath%20transform%3D%22translate(0%200)%22%20d%3D%22M1%2C14a1%2C1%2C0%2C0%2C1-.707-1.707L5.586%2C7%2C.293%2C1.708A1%2C1%2C0%2C1%2C1%2C1.707.293l6%2C6a1%2C1%2C0%2C0%2C1%2C0%2C1.415l-6%2C6A1%2C1%2C0%2C0%2C1%2C1%2C14%22%20data-name%3D%22Caminho%203%22%20id%3D%22Caminho_3%22%3E%3C/path%3E%3C/svg%3E") no-repeat center/contain;
  mask: url("data:image/svg+xml,%3Csvg%20viewBox%3D%220%200%208%2014%22%20height%3D%2214%22%20width%3D%228%22%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%3E%3Cpath%20transform%3D%22translate(0%200)%22%20d%3D%22M1%2C14a1%2C1%2C0%2C0%2C1-.707-1.707L5.586%2C7%2C.293%2C1.708A1%2C1%2C0%2C1%2C1%2C1.707.293l6%2C6a1%2C1%2C0%2C0%2C1%2C0%2C1.415l-6%2C6A1%2C1%2C0%2C0%2C1%2C1%2C14%22%20data-name%3D%22Caminho%203%22%20id%3D%22Caminho_3%22%3E%3C/path%3E%3C/svg%3E") no-repeat center/contain;
  transition: transform 0.3s ease-in-out;
}
.svg-container:hover::after {
  transform: translateX(3px);
}


/* -------------------------------
   BACKGROUND OVERLAY
-------------------------------- */

.overlay {
  position: relative;
  overflow: hidden;
}
.overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: inherit;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}
.overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
}
.overlay > * {
  position: relative;
  z-index: 2;
}

/* -------------------------------
   ZOOM-IN
-------------------------------- */

.zoom-in {
  width: 100%; /* Defina a largura desejada */
  height: auto; /* Defina a altura desejada */
  overflow: hidden; /* Oculta a parte que expande além do contêiner */
  position: relative; 
}
.zoom-in img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Garante que a imagem se ajuste corretamente */
  transition: transform 0.3s ease; /* Transição suave para o efeito */
}
.zoom-in:hover img {
  transform: scale(1.1);
}


/* -------------------------------
   ZOOM-IN
-------------------------------- */

.zoom-in {
  width: 100%; /* Defina a largura desejada */
  height: auto; /* Defina a altura desejada */
  overflow: hidden; /* Oculta a parte que expande além do contêiner */
  position: relative; 
}
.zoom-in img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Garante que a imagem se ajuste corretamente */
  transition: transform 0.3s ease; /* Transição suave para o efeito */
}
.zoom-in:hover img {
  transform: scale(1.1);
}

/* -------------------------------
   SCALE
-------------------------------- */
.scale{
     transform: scale(0.97);
     transition: 300ms;
}
.scale:hover{
     transform: scale(1);
}


/* -------------------------------
   RESPONSIVO
-------------------------------- */

@media (max-width: 1024px) {
  .slide-item {
    flex: 0 0 calc(100% / 1); /* Número de colunas configurado aqui */
  }
}  
@media (max-width: 768px) {
  .slide-item {
    flex: 0 0 calc(100% / 1); /* Número de colunas configurado aqui */
  }
}
@media (max-width: 480px) {
  .slide-item {
    flex: 0 0 calc(100% 1); /* Número de colunas configurado aqui */
  }
}

