/*REGRA UNIVAERSAL DE PADRONIZAÇÃO DE TAMANHOS*/
* {
    box-sizing: border-box;
}

/* =====================================================================
   TEMA DO SITE — única parte do CSS que muda entre Patos (laranja) e Ita (azul)
   ===================================================================== */
:root {
    --cor-tema: #162d60;                  /* cor da marca: topo do degradê e sombra dos cards premium */
    --cor-tema-escura: #162d60;           /* botões e textos de destaque (contraste ok com branco) */
    --cor-tema-hover: #0d1c3f;            /* botão voltar ao topo ao passar o mouse */
    --cor-tema-rgb: 22, 45, 96;           /* a cor da marca em RGB, para sombras com transparência */
    --cor-tema-escura-rgb: 22, 45, 96;
    --cor-texto-cabecalho: #ffffff;       /* texto do cabeçalho sobre o degradê */
    --degrade-altura: max(50vh, 400px);               /* até onde o degradê desce (ex.: 40vh, 400px) */
}


/* Escolha da font do site */
body {
  font-family: 'Montserrat', Arial, sans-serif;
  margin: 0;
  padding: 0;
  /* Degradê do topo da página: laranja da marca -> cor de fundo do site.
     Termina exatamente em #f4f4f9, então não existe linha de fronteira. */
  background-color: #f4f4f9;
  background-image: linear-gradient(to bottom, var(--cor-tema) 0, #f4f4f9 var(--degrade-altura));
  background-repeat: no-repeat;
}

button, input, select, textarea {
  font-family: inherit;
}

h1, h2, h3 {
  font-weight: 600;
}

button, .footer-contact a {
  font-weight: 500;
  letter-spacing: 0.3px;
}

/* Banner rotativo mobile */
.banner-container {
    position: relative;
    width: 100%;
    height: 200px; /* Ajuste conforme necessário */
    overflow: hidden;
    border-radius: 12px;
    margin-top: 16px; /* Distância entre o header e o banner */
    margin-bottom: 12px; /* Distância entre o banner e o filtro de cidades*/
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.8s ease-in-out; /* Efeito de fade suave */
    pointer-events: none; /* não permite clique */
}

.slide.active {
    opacity: 1;
    pointer-events: auto; /* somente o ativo pode ser clicado */
}

/* link ocupa todo banner */
.banner-container a.slide{
    display:block;
    width:100%;
    height:100%;
}

/* imagem dentro do link */
.banner-container a.slide img{
    width:100%;
    height:100%;
    object-fit:cover;
    
}

/* Mostrar apenas no mobile */
@media (min-width:768px){
    .banner{
        display:none;
    }
}


/* Texto "Filtrar por categoria" */
.filter label {
  color: #000000; /* branco */
  font-weight: 500;
}

/* Texto "Exibindo todos os itens" */
.feedback {
  color: #041e3d; /* cinza claro elegante */
  font-size: 14px;
  margin-top: 8px;
}


header {
    /* Sem fundo próprio: o degradê vem do body e continua abaixo do cabeçalho */
    color: var(--cor-texto-cabecalho);
    padding: 0.2rem 0;
    text-align: center;
}

.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
    margin-top: 0px; /* Dá um respiro entre o header e o banner */
}

/* Estilo base (Mobile - um embaixo do outro) */
.filter-search-container {
    display: flex;
    flex-direction: column; 
    gap: 8px;
    margin-bottom: 1.5rem;
    width: 100%;
    box-sizing: border-box;
}

/* Estilo unificado para Barra de Busca e Selects */
#searchBar, #categoryFilter, #cityFilter {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    padding-left: 45px; /* Abre o mesmo espaço para ícone/seta */
    font-size: 16px;
    font-family: 'Montserrat', Arial, sans-serif;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    background-color: #ffffff;
    color: #333;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);

    box-sizing: border-box; /* Garante que a borda esteja dentro dos 48px */
    vertical-align: top;    /* Alinha todos pelo topo da linha */
    margin: 0;              /* Remove margens invisíveis do navegador */
    
    /* Reset de aparência para customizar o ícone */
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    
    background-repeat: no-repeat;
    background-position: 12px center; /* Mesma posição horizontal (12px) */
}

/* Ícone da Lupa (Busca) */
#searchBar {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="%23999" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8"></circle><line x1="21" y1="21" x2="16.65" y2="16.65"></line></svg>');
}

/* Ícone da Setinha Cinza (Filtros) */
#categoryFilter, #cityFilter {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="%23999" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><path d="M6 9l6 6 6-6"/></svg>');
    cursor: pointer;
}

/* Ajuste dos contêineres para ocupar 100% no mobile */
.filter, .search {
    width: 100%;
    max-width: 100%; 
    flex: none;
}

 .search {
    margin-top: 5px;
 }

/* Ajuste para Desktop (Telas maiores que 768px) */
@media (min-width: 768px) {
    .filter-search-container {
        flex-direction: row; /* Coloca um ao lado do outro */
        align-items: center;
	      justify-content: center; /* Centraliza o conjunto na tela */
        gap: 12px;
        max-width: 1200px; /* Impede que estique demais em monitores gigantes */
        margin-left: auto;
        margin-right: auto;
        margin-top: 16px;
    }

    .search {
        flex: 1; /* A barra de busca fica mais larga que os filtros */
        max-width: 400px;
        transform: translateY(-1px);
    }

    .filter {
        flex: 1; /* Os selects ficam menores e iguais */
        max-width: 400px;
    }
}

/*------------------------------------*/
/*           SEÇÃO DE CARDS           */
/*------------------------------------*/

/* Animação ao filtrar ou pesquisar */
.card {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.card.show {
    opacity: 1;
    transform: translateY(0);
}

.card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}


/* Foco nos inputs */
#searchBar:focus, #categoryFilter:focus, #cityFilter:focus,
#searchBar:focus-visible, #categoryFilter:focus-visible, #cityFilter:focus-visible {
    outline: none;
    border-color: #e6e6e6;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);   /* sombra cinza (normal: 0.05) */
}

/* ============================= */
/* BOTÃO EXIBIR MAIS             */
/* ============================= */
.load-more-btn {
    display: block;
    margin: 24px auto 8px;
    padding: 14px 40px;
    background-color: #162d60;
    color: #ffffff;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 14px rgba(22, 45, 96, 0.3);
    transition: background-color 0.25s ease, transform 0.2s ease, box-shadow 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.load-more-btn:hover {
    background-color: #1f4090;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(22, 45, 96, 0.4);
}

.load-more-btn:active {
    transform: scale(0.97);
    box-shadow: 0 3px 10px rgba(22, 45, 96, 0.25);
}

.hidden-btn {
    display: none !important;
}

@media (max-width: 600px) {
    .load-more-btn {
        width: 90%;
        padding: 14px 20px;
        font-size: 14px;
    }
}

/* Estilos dos cards */
.catalog {
  display: grid;
  grid-template-columns: repeat(4, 250px);
  gap: 1.5rem;
  justify-content: center;
}


/* Animação dos cards */
.item {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);

    opacity: 0;                    /* ← novo */
    transform: translateY(15px);   /* ← novo */

    transition: opacity 0.3s ease, transform 0.3s ease;
    
}

/* Estado visível*/
.item.show {
    opacity: 1;
    transform: translateY(0);
}

/* Estado oculto */
.item.hidden {
    opacity: 0;
    transform: translateY(20px);
    visibility: hidden;
    pointer-events: none;
}

/* Hover */
.item:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transform: translateY(-5px);
}

/* Lista com ícone check verde */
.lista-check {
  list-style: none; /* remove a bolinha */
  padding-left: 0;
  margin: 6px 0 10px;
  text-align: left;
}

.lista-check li {
  position: relative;
  padding-left: 22px; /* espaço pro ícone */
  margin: 4px 0;
  line-height: 1.4;
}

.lista-check li::before {
  content: "✅";
  position: absolute;
  left: 0;
  top: 0;
  color: #22c55e; /* verde bonito */
  font-weight: bold;
}



/* Imagens dentro dos itens */
.item img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

/* Estilização de textos */
.item h3 {
    margin: 0.5rem 0;
}

.feedback {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    font-weight: bold;
}

/* Melhorando a usabilidade de botões */
button:hover {
    background-color: #162d60;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.somente-esse {
    text-align: left;
}


/* ============================= */
/* AJUSTES PARA TELAS MENORES */
/* ============================= */
@media (max-width: 600px) {
    .filter-search-container {
        display: flex;
        flex-direction: column;
        gap: 4px; /* Aumentei um pouco para não ficarem grudados */
        align-items: stretch;
        width: 100%;
    }

    /* Removemos os tamanhos fixos (400px/340px) e usamos 100% */
    .filter, .search {
        max-width: 100%; 
        width: 100%;
    }

    /* Força o select e o input a ocuparem toda a largura da div pai */
    .filter select, 
    .search input {
        width: 100%;
        display: block;
        box-sizing: border-box; /* Garante que o padding não aumente a largura */
        height: 45px; /* Opcional: deixa ambos com a mesma altura visual */
        font-size: 16px; /* Evita o zoom automático no iPhone ao clicar */
    }

    /* Ajuste para o label não ficar desalinhado */
    .filter label {
        display: block;
        margin-bottom: 5px;
    }

    .catalog {
        grid-template-columns: 1fr;
    }
}

/* ============================= */
/* CONTEINER DAS REDES SOCIAIS */
/* ============================= */
.social {
  display: flex;
  justify-content: center;
  gap: 10px; /* aproxima as cápsulas */
  margin-top: 10px;
  flex-wrap: wrap;
}

/* Cápsula */
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  padding: 8px 14px; /* cápsula menor */
  background: #f8f8fa; /* branco creme */
  border-radius: 999px;

  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  color: #162d60;

  box-shadow: 0 4px 10px rgba(0,0,0,0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Hover elegante */
.social-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.18);
}

/* Ícones */
.social-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/*Sombras das logos*/
.social-link.whatsapp {
  box-shadow: 0 4px 10px rgba(37, 211, 102, 0.25);
}

.social-link.instagram {
  box-shadow: 0 4px 10px rgba(225, 48, 108, 0.25);
}

/* Mobile */
@media (max-width: 600px) {
  .social {
    gap: 8px;
  }

  .social-link {
    padding: 8px 12px;
  }
}


/* Textos das redes sociais pretos e em negrito */
.social-link span {
  color: #000000;     /* preto */
  font-weight: 700;   /* negrito */
}

/* Texto com link sem cápsula */
.link-texto {
  margin-top: 10px;
  text-align: center;
  font-family: 'Montserrat', Arial, sans-serif;
}

.link-texto a {
  font-family: inherit;   /* garante herança */
  text-decoration: none;
  color: #162d60;
  font-weight: 700;       /* negrito Montserrat */
}

.link-texto a:hover {
  text-decoration: underline;
}


/* ============================= */
/* RODAPÉ */
/* ============================= */
.site-footer {
  background: #162d60;
  color: #fff;
  padding: 30px 16px;
  margin-top: 40px;
}

/* Conteiner pai*/
.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  font-family: 'Montserrat', Arial, sans-serif;
}

/* Conteiners filhos*/
.footer-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px; /* aproxima título + conteúdo */
  margin: 0;
}

/* título ita serviços */
.footer-heading--brand {
  font-size: 0.85rem;      /* um tiquinho maior */
  opacity: 0.9;            /* um pouco mais visível */
  letter-spacing: 0.6px;   /* ajuste fino */
  text-transform: none;
  line-height: 1.5;
}
/* sobre o ita serviços */
.footer-about {
  font-size: 15px;
  line-height: 1.5;
  margin-top: 0;
}
/* título parceiro e contatos */
.footer-heading {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 0.75rem;
  text-transform: uppercase;  /* texto normal: none; , primeira letra maiúscula: capitalize; , caixa alta: uppercase;*/
  letter-spacing: 1px;
  font-weight: 400;   /* remove o negrito */
  opacity: 0.7;
  margin: 0;
  line-height: 1.2;
}
/* conteiner logo do parceiro */
.footer-partners {
  display: flex;
  flex-direction: column; /* título em cima */
  align-items: center;
  gap: 0px; /* aproxima título + conteúdo */
  font-size: 1rem;
  opacity: 1;
  margin: 0;;
}
/* logo do filial */
.filial-logo {
  height: 94px;
  width: auto;
  filter: brightness(1.05);
}
/* logo do parceiro */
.partner-logo {
  height: 48px;
  width: auto;
  filter: brightness(1.05);
}
/* conteiner dos canais de contato */
.footer-section-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px; /* aproxima título + conteúdo */
  margin: 0;
}

/* ícones dos canais de contato */
.footer-contact {
  display: flex;
  gap: 16px;
}

/* Efeitos na logomarca do Patos Serviços */
a .filial-logo {
  transition: transform 0.2s ease, opacity 0.2s ease;
}

a:hover .filial-logo {
  transform: scale(1.05);
  opacity: 0.9;
}

/* Efeitos na logomarca da Shineray */
a .partner-logo {
  transition: transform 0.2s ease, opacity 0.2s ease;
}

a:hover .partner-logo {
  transform: scale(1.05);
  opacity: 0.9;
}

.social-icon-footer {
  width: 28px;
  height: 28px;
  transition: transform 0.2s ease, opacity 0.2s ease;
  filter: brightness(0) invert(1);
}
.footer-contact a:hover .social-icon-footer {
  transform: scale(1.1);
  opacity: 0.8;
}

/* Ajuste do rodapé no celular */
@media (max-width: 600px) {
  .footer-contact {
    flex-direction: flex;
    gap: 16px;
  }
}

.footer-copy {
  font-size: 13px;
  opacity: 0.8;
  margin-top: 8px;
}

/* Ajuste opcional: forçar footer descer*/
html, body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
}

.page-wrapper {
  flex: 1;
}

/* Fim de ajuste do rodapé no celular */

/* ============================= */
/* POLÍTICA DE PRIVACIDADE */
/* ============================= */

.footer-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.site-footer p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-links a {
    color: #ffffff; /* Azul claro para destaque */
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #3498db;
}

/* Ajuste para telas pequenas */
@media (max-width: 600px) {
    .site-footer {
        padding: 15px 10px;
    }
}

/* ============================= */
/* CONTAINER DOS BOTÕES FLUTUANTES */
/* ============================= */

.float-buttons {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;

  display: flex;
  flex-direction: column;
  gap: 10px; /* espaço entre os botões */
}

/* ============================= */
/* BOTÕES (CADASTRO + INSTALAR) */
/* ============================= */

.float-buttons img {
  width: 134px;
  max-width: 70vw;
  height: auto;
  display: block;
  cursor: pointer;

  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.308);

  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: pulse 2.5s infinite;
}

.float-buttons img:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

/* ============================= */
/* Botões flutuantes no celular */
/* ============================= */

@media (max-width: 600px) {
  .float-buttons img {
    width: 120px;
    border-radius: 32px;
  }
}

/* ============================= */
/* ANIMAÇÃO */
/* ============================= */

@keyframes pulse {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.04); }
  100% { transform: scale(1); }
}

/* ============================= */
/* BOTÃO INSTALAR (CONTROLADO VIA JS) */
/* ============================= */

.install-float {
  display: none;
}

/* Mostrar somente no mobile quando o JS liberar */
@media (max-width: 600px) {
  .install-float.show {
    display: block;
  }
}


/* ============================= */
/* BOTÃO COMPARTILHAR */
/* ============================= */
/* Botão compartilhar – padrão visual das redes */
.share-card {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;

  background-color: #f8f8fa; /* branco creme */
  color: #333;

  border: none;
  outline: none;

  height: 36px;              /* força mesma altura */
  padding: 0 18px;           /* remove variação vertical */
  border-radius: 999px;

  display: inline-flex;
  align-items: center;
  gap: 8px;

  cursor: pointer;

  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;

  /* Remove estilos nativos */
  -webkit-appearance: none;
  appearance: none;

  /* Remove highlight azul no mobile */
  -webkit-tap-highlight-color: transparent;
}

/* Hover */
.share-card:hover {
  background-color: #ffffff;
  color: #333;

  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
}

/* Clique */
.share-card:active {
  background-color: #ffffff;
  color: #333;

  transform: scale(0.97);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

/* Foco (remove azul do Chrome) */
.share-card:focus,
.share-card:focus-visible {
  outline: none;
  background-color: #ffffff;
  color: #333;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}




/* ================================== */
/* AJUSTES FINOS NO CARTÃO DE VISITAS */
/* ================================== */
.cartao-container {
    width: 1200px; /* Tamanho real da sua imagem do Photoshop */
    height: 750px;
    position: relative;
    overflow: hidden;
}

.fundo-card {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.perfil-moldura {
    position: absolute;
    top: 180px;
    left: 80px;
    width: 400px;
    height: 400px;
    border: none;
    border-radius: 25px; /* Deixa o card moderno */
    z-index: 0;
    overflow: hidden;
}

/* =====================================================================
   MELHORIAS VISUAIS
   (este bloco vem por último de propósito: ajusta regras anteriores)
   ===================================================================== */

:root {
    --foto-proporcao: 1 / 1;       /* só do esqueleto de carregamento (a capa real mantém a proporção da imagem) */
}

/* ---------- 1. Cards premium em destaque ---------- */
.item { position: relative; }

.item[data-secao="premium"] {
    box-shadow: 0 4px 14px rgba(var(--cor-tema-rgb), 0.22);
}
.item[data-secao="premium"]:hover {
    box-shadow: 0 8px 20px rgba(var(--cor-tema-rgb), 0.32);
}
.item[data-secao="premium"]::before {
    content: "⭐ Destaque";
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1;
    padding: 3px 10px;
    border-radius: 999px;
    background: #447fe4;
    color: #fff;
    font: 700 12px/1.4 'Montserrat', Arial, sans-serif;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

/* ---------- 2. Textos longos alinhados à esquerda ---------- */
/* (a classe .texto-longo é colocada pelo script em parágrafos com mais de 90 caracteres) */
.item .texto-longo {
    text-align: left;
    line-height: 1.55;
    hyphens: auto;
}

/* ---------- 3. Capas dos cards ---------- */
/* Tamanho original: a capa respeita as margens do card, ocupa no máximo a largura
   disponível e mantém a proporção natural da imagem (regra ".item img" lá em cima). */

/* ---------- 4. Barra de filtros fixa ---------- */
#filtrosSentinela { height: 1px; margin-bottom: -1px; }

.filter-search-container {
    position: sticky;
    top: 0;
    z-index: 30;
    transition: transform 0.25s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}
.filter-search-container.fixa {
    padding: 8px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.94);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}
.filter-search-container.escondida { transform: translateY(-120%); }

/* Botão "Limpar filtros" */
.clear-filters {
    height: 48px;
    padding: 0 18px;
    border: 1.5px solid var(--cor-tema-escura);
    border-radius: 8px;
    background: #fff;
    color: var(--cor-tema-escura);
    font: 600 15px 'Montserrat', Arial, sans-serif;
    white-space: nowrap;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.clear-filters:hover,
.clear-filters:focus-visible {
    background: var(--cor-tema-escura);
    color: #fff;
}

@media (max-width: 600px) {
    .clear-filters { width: 100%; height: 44px; }

    /* Barra compacta quando está fixa no topo do celular */
    .filter-search-container.fixa {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }
    .filter-search-container.fixa .search,
    .filter-search-container.fixa .clear-filters { grid-column: 1 / -1; margin-top: 0; }
    /* (usa #id porque as regras originais dos campos também usam, e id tem prioridade) */
    .filter-search-container.fixa #cityFilter,
    .filter-search-container.fixa #categoryFilter,
    .filter-search-container.fixa #searchBar { height: 40px; }
    /* seta à direita para sobrar espaço ao texto das opções */
    .filter-search-container.fixa #cityFilter,
    .filter-search-container.fixa #categoryFilter {
        padding-left: 10px;
        padding-right: 26px;
        background-position: right 6px center;
        text-overflow: ellipsis;
    }
    .filter-search-container.fixa .clear-filters { height: 38px; }
    .filter-search-container.fixa .filter label { display: none; }
}

/* ---------- Aviso de "sem resultados" ---------- */
.sem-resultados {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    max-width: 420px;
    margin: 1.5rem auto;
    padding: 2rem 1rem;
    text-align: center;
}
.sem-resultados p { margin: 0; }
.sem-resultados-titulo { font-size: 1.1rem; font-weight: 700; color: #041e3d; }
.sem-resultados-dica   { font-size: 0.95rem; color: #555; }
.sem-resultados .clear-filters { width: auto; margin-top: 6px; }

/* ---------- 5. Esqueleto de carregamento ---------- */
.esqueleto {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 340px;
    padding: 1rem;
    background: #fff;
    border: 1px solid #e5e5ea;
    border-radius: 8px;
}
.esqueleto > span {
    display: block;
    border-radius: 6px;
    background: linear-gradient(90deg, #ececf1 25%, #f7f7fa 37%, #ececf1 63%);
    background-size: 400% 100%;
    animation: esqueleto-brilho 1.4s ease infinite;
}
.esqueleto .foto   { aspect-ratio: var(--foto-proporcao); }
.esqueleto .linha  { height: 14px; }
.esqueleto .titulo { height: 20px; width: 70%; margin: 4px auto 0; }
.esqueleto .curta  { width: 45%; margin: 0 auto; }
.esqueleto .botao  { height: 44px; width: 60%; margin: auto auto 0; border-radius: 999px; }

@keyframes esqueleto-brilho {
    0%   { background-position: 100% 50%; }
    100% { background-position: 0 50%; }
}
@media (max-width: 600px) {
    .esqueleto:nth-child(n+3) { display: none; }
}

/* Mensagem de erro ao carregar os dados */
.catalogo-erro {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 2rem 1rem;
    text-align: center;
    color: #041e3d;
}
.catalogo-erro p { margin: 0; }

/* ---------- Banner: indicadores (bolinhas) ---------- */
.banner-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 2px;
    z-index: 2;
    display: flex;
    justify-content: center;
    pointer-events: none;
}
.banner-dots button {
    position: relative;
    width: 24px;
    height: 32px;                  /* área de toque confortável */
    padding: 0;
    border: none;
    background: transparent;
    pointer-events: auto;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.banner-dots button::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 8px;
    height: 8px;
    transform: translate(-50%, -50%);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.65);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3);
    transition: width 0.25s ease, background-color 0.25s ease;
}
.banner-dots button[aria-current="true"]::before { width: 20px; background: #fff; }
.banner-dots button:hover,
.banner-dots button:focus-visible { background: transparent; }
.banner-dots button:hover::before { background: #fff; }

/* ---------- Botão voltar ao topo ---------- */
.voltar-topo {
    position: fixed;
    left: 16px;
    bottom: 20px;
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: var(--cor-tema-escura);
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.voltar-topo:hover,
.voltar-topo:focus-visible { background: var(--cor-tema-hover); color: #fff; }

/* ---------- Botões de contato com área de toque de 44px ---------- */
.social-link,
.share-card { min-height: 44px; }

/* ---------- Foco visível para teclado ---------- */
.clear-filters:focus-visible,
.voltar-topo:focus-visible,
.banner-dots button:focus-visible,
.load-more-btn:focus-visible,
.social-link:focus-visible {
    outline: 3px solid #041e3d;
    outline-offset: 2px;
}

/* =====================================================================
   DESCRIÇÃO RECORTÁVEL ("Mostrar completo")
   A altura máxima da descrição é --corpo-max. O script só ativa o corte
   (.recortavel) quando o texto passa bem desse limite.
   ===================================================================== */
.item { --corpo-max: 176px; scroll-margin-top: 96px; }

.card-corpo { position: relative; }

.card-corpo.recortavel {
    max-height: var(--corpo-max);
    overflow: hidden;
    overflow: clip;                /* recorta sem criar bloco próprio: o espaçamento fica igual ao dos cards sem corte */
    transition: max-height 0.3s ease;
}
.card-corpo.recortavel.expandido { max-height: none; }

/* degradê que "apaga" a última linha cortada */
.card-corpo.recortavel:not(.expandido)::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 56px;
    background: linear-gradient(rgba(255, 255, 255, 0), #fff 85%);
    pointer-events: none;
}

.card-expandir {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
    min-height: 40px;
    margin-top: 2px;
    padding: 6px 8px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--cor-tema-escura);
    font: 600 13px 'Montserrat', Arial, sans-serif;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.card-expandir[hidden] { display: none; }
.card-expandir:hover,
.card-expandir:focus-visible {
    background: rgba(var(--cor-tema-escura-rgb), 0.08);
    color: var(--cor-tema-escura);
}
.card-expandir:focus-visible { outline: 3px solid #041e3d; outline-offset: 2px; }

/* mesma setinha dos filtros */
.card-expandir-seta {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.25s ease;
}
.card-expandir[aria-expanded="true"] .card-expandir-seta { transform: rotate(180deg); }

/* ---------- Respeitar quem prefere menos movimento ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}
