/* --- Layout principal --- */
.sa-lista-associados {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  align-content: flex-start;
  gap: 20px;
  width: 100%;
  max-width: 1400px;
  margin-right: auto;
  box-sizing: border-box;
  padding-left: 20px;
}



/* --- Inputs do meta box de associados --- */
.sa-meta-input {
  width: 100%;
  padding: 6px 10px;
  margin: 4px 0 12px 0;
  box-sizing: border-box;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
}

.sa-meta-input:focus {
  border-color: #B74351;
  outline: none;
  box-shadow: 0 0 3px rgba(183, 67, 81, 0.5);
}

/* Container */
.sa-filtro-categorias {
    margin-bottom: 20px;
    text-align: left;
}

/* Título SEO */
.sa-filtro-titulo {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 10px;
    color: #222;
}

/* Botões */
.sa-filtro-btn {
    display: inline-block;
    margin: 0 6px 10px 0;
    padding: 6px 15px;
    background: #fff;
    border: 2px solid #E5E7EB;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

/* Texto dentro do botão (H3 resetado) */
.sa-filtro-btn h3 {
    margin: 0;
    padding: 0;
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    color: inherit; /* herda a cor do botão */
}

/* Hover / Active */
.sa-filtro-btn.active,
.sa-filtro-btn:hover {
    background: var(--wp--preset--color--custom-color-1);
    color: #fff;
    border-color: var(--wp--preset--color--custom-color-1);
}


/* --- Cada box de associado --- */
.sa-associado {
  flex: 0 0 calc(25% - 20px);
  max-width: calc(25% - 20px);
  min-width: 300px;
  position: relative;
  box-sizing: border-box;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;

  background: #fff;
  border: 1px solid #BCBABA;
  border-radius: 10px;
  padding: 12px;
  overflow: hidden;
}

.sa-associado:hover {
  transition: 0.3s ease;
  transform: translateY(-5px);
}

/* --- Nome da empresa --- */
.sa-nome-empresa {
  margin: 20px 0 10px 0;
  font-size: 16px !important;
  color: #333;
  font-weight: 600;
}

/* --- Informações do associado --- */
.sa-info {
  text-align: left;
  margin-top: 10px;
  margin-bottom: 20px;
  flex-grow: 1; 
}

.sa-info strong {
  color: var(--wp--preset--color--custom-color-2);
}

.sa-info p {
  margin: 4px 0;
  font-size: 15px;
  line-height: 1.4;
}

/* --- Redes sociais --- */
.sa-socials {
  text-align: center;
  border-top: 1px solid #ccc;
  padding-top: 20px;
  margin-top: auto;
  position: relative;
  left: -12px;
  width: calc(100% + 24px);
}



.sa-socials img:hover {
  transform: scale(1.1);
}

/* LOGO PADRÃO – LISTA DE ASSOCIADOS */
.sa-logo-wrap {
  width: 100%;
  height: 200px;                 
  border-radius: 10px 10px 0 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}

.sa-logo-wrap img,
.sa-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;           
  object-position: center;
  display: block;
}

.sa-logo-default svg{
    fill: currentColor;
    display: block;
}

.sa-logo-default .sa-logo {
    width: 80px;
    height: auto;
}

.sa-logo-wrap svg {
  height: auto;
  max-height: 80%;
  fill: currentColor;
}

.sa-nome-empresa {
  text-align: center;
  margin-bottom: 10px;
}

.sa-social-link {
  margin: 0 10px;
  display: inline-block;
  transition: transform 0.3s ease;
}

.sa-social-link:hover {
  transform: scale(1.1);
}

.sa-social-icon svg {
    width: 30px;
    height: 30px;
    fill: currentColor;
    display: block;
}

/* Cor padrão */
.sa-social-icon, .sa-logo-default {
    color: var(--wp--preset--color--custom-color-1);
}

.sa-social-icon {
    transition: 0.3s ease;
}





/* --- Container principal dos associados --- */
.sa-associados-container {
  width: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  transition: opacity 0.3s ease;
}

/* --- Efeito de carregamento --- */
.sa-associados-container.sa-loading {
  opacity: 0.6;
  pointer-events: none;
}



/* CARROSSEL DE LOGOS E TITULOS */

.logo-carrossel {
  position: relative;
  background: #ffff;
  padding: 0;
  overflow: hidden;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Contêiner principal das logos */
.logos-container {
  overflow-x: auto;
  scroll-behavior: smooth;
  display: flex;
  justify-content: flex-start;
  width: 100%;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Remove qualquer barra de rolagem */
.logos-container::-webkit-scrollbar {
  display: none;
}

/* Área interna das logos */
.logos {
  display: flex;
  gap: 20px;
  padding: 30px 20px 40px 0px;
  width: max-content;
}

/* Cada item (logo + nome) */
.logo-item {
  flex: 0 0 auto; 
  width: 200px;   
  display: flex;
  flex-direction: column;
  align-items: center; 
  justify-content: flex-start;
  text-align: center;
  gap: 5px !important;
  padding: 10px;
  border-radius: 10px;
}

/* LOGO PADRÃO – CARROSSEL */
.logo-item img {
  width: 100%;
  height: 160px;                 
  object-fit: contain;
  object-position: center;
  background-color: #fff;
  border-radius: 10px;
}

.logo-item .sa-logo-default {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.logo-item .sa-logo-default svg {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.logo-carrossel h3 {
  font-size: 14px;
  line-height: 1.2;
  word-wrap: break-word;
}

/* Setas de navegação */
.arrow {
  position: absolute;
  background-color: transparent;
  border: none;
  color: #333;
  font-size: 25px;
  z-index: 9999; 
  cursor: pointer;
  outline: none;
  box-shadow: none;
  -webkit-tap-highlight-color: transparent;
}

.arrow:focus,
.arrow:focus-visible,
.arrow:active {
  outline: none;
  box-shadow: none;
}

.logos-container {
    cursor: grab;
}

.logos-container.active {
    cursor: grabbing;
}


.arrow.left {
  left: 15px;
}

.arrow.right {
  right: 15px;
}

.logo-item {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  /* Adiciona suavidade à transformação */
}

.logo-item:hover {
  transform: scale(1.05); /* aumenta ligeiramente o tamanho */
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2); /* sombra para destaque */
}




/* --- Responsividade --- */

@media (max-width: 1482px) {
.sa-associado {
  min-width: 270px;
} 
}

@media (max-width: 1365px) {
.sa-associado {
  min-width: 250px;
} 
}

@media (max-width: 1280px) {
.sa-associado {
  min-width: 200px;
} 
}
  
@media (max-width: 1024px) {
  .sa-associado {
    flex: 1 1 calc(33.333% - 20px);
    max-width: calc(33.333% - 20px);
  }
}

@media (max-width: 768px) {
  .sa-lista-associados {
    flex-direction: column;
    padding-left: 0;
  }

  .sa-associado {
    flex: 1 1 calc(50% - 20px);
    max-width: calc(50% - 20px);
  }

.sa-logo-wrap svg {
    width: 30% !important;
}

/* CARROSSEL DE LOGOS E TITULOS */
  .logos {
    gap: 20px;
    padding: 10px 20px;
  }
  
  .logo-carrossel .sa-logo-wrap {
    height: 100px;
   }
    
   .logo-carrossel .sa-logo-wrap svg {
        width: 50% !important;
   }

  .logo-item {
    width: 100px;
  }

  .logo-item img {
    width: 90px;
    height: 90px;
  }

  .logo-item h3 {
    font-size: 12px;
  }

  .arrow {
    font-size: 24px;
    padding: 8px;
  }
 
 
 .sa-btn-filtro {
  width: 100%;
}

 .sa-filtro-modal-wrap {
    align-items: flex-start;
    flex-direction: column;
    width: 100%;
 }
 
    
}


@media (max-width: 480px) {
  .sa-associado {
    flex: 1 1 100%;
    max-width: 100%;
  }
}


