/* Faixa do topo */
.mostra-topbar {
  padding: 10px 0 6px 0;
  border-bottom: 1px solid #eee;
  border-top: 5px solid #22a8d8;
}

.mostra-topbar .wp-block-social-links .wp-social-link svg {
  width: 28px;
  height: 28px;
}

.mostra-topbar .wp-block-search {
  max-width: 260px;
}

.mostra-topbar .wp-block-columns {
  margin-bottom: 0px !important;
}

.mostra-navwrap {
  background: #ffffff; /* cor de fundo do menu */
  border-bottom: 1px solid #eaeaea;
  padding: 8px 0;
  position: relative;
  z-index: 10;
}

.mostra-navwrap .wp-block-navigation__container {
  display: flex;
  justify-content: center;
  gap: 32px; /* distância entre itens */
  flex-wrap: wrap;
  padding: 0;
  margin: 0;
}

.mostra-navwrap .wp-block-navigation__container a {
  color: #1f2937; /* cinza escuro neutro */
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  position: relative;
  transition: color 0.2s ease-in-out;
}
.mostra-navwrap .wp-block-navigation__container a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background-color: #5a2ea6; /* roxo institucional */
  transition: width 0.2s ease-in-out;
}

.mostra-navwrap .wp-block-navigation__container a:hover {
  color: #5a2ea6;
}

.mostra-navwrap .wp-block-navigation__container a:hover::after {
  width: 100%;
}

/* versão mobile: menu colapsado */
@media (max-width: 768px) {
  .mostra-navwrap {
    padding: 4px 0;
  }
  .mostra-navwrap .wp-block-navigation__container {
    gap: 18px;
  }
  .mostra-navwrap .wp-block-navigation__container a {
    font-size: 15px;
  }
}

/* Grid de cartões */
.mostra-grid {
  display: grid;
  gap: 24px;
}

.mostra-grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mostra-grid-cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mostra-grid-cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

@media (max-width: 640px) {
  .mostra-grid {
    grid-template-columns: 1fr;
  }
}

.mostra-card {
  /* background: #64b3af;
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06); */
}

.mostra-card a{
  text-decoration: none;
  color: #5c5c5c;
}

.mostra-card__header {
  background: #64b3af;
  border-radius: 14px;
  padding: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.mostra-pill {
  background: #f39c12;
  color: white;
  font-weight: 700;
  font-size: 12px;
  padding: 10px 15px;
  border-radius: 5px;
  margin: 15px 0;
  text-transform: uppercase;
}

.mostra-card__title {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin: 0;
  font-size: 22px;
  color: #ffffff;
  text-transform: uppercase;
  margin: 10px 10px 10px 0px;
  line-height: 1;
}

.mostra-card__title a {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 20px 0px;
}
.mostra-card__title .mostra_room {
  font-size: 16px;
  font-style: italic;
  text-align: right !important;
  text-transform: none;
}
.mostra-card__children {
  color: #c58916;
  font-weight: 600;
}

.mostra-card__children .sep {
  color: #c58916;
  opacity: 0.7;
  margin: 0 6px;
}

.mostra-banner img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.mostra-catsbar {
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  padding: 10px 0;
  margin-top: 12px;
}

.mostra-catsbar .wp-block-categories-list {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.mostra-catsbar .wp-block-categories-list a {
  text-decoration: none;
  color: #5a2ea6;
  font-weight: 600;
}

/* Sidebar categorias */
.sidebar-cats .wp-block-categories-list {
  list-style: none;
  margin: 0;
  padding-left: 0;
}

.sidebar-cats .wp-block-categories-list > li {
  padding: 6px 0;
  border-bottom: 1px dashed #eee;
}

.sidebar-cats li ul {
  padding-left: 16px;
  margin-top: 6px;
}

/* Linha da navegação */
.wp-block-navigation {
  font-weight: 600;
  gap: 28px;
}

.wp-block-navigation a {
  text-decoration: none;
}

.wp-block-navigation .is-current > a {
  color: var(--wp--preset--color--primary);
}

/* ===== Search do Header (estilo “pill” com botão azul e ícone) ===== */
.wp-block-search.mostra-search {
  max-width: 420px;
  margin-left: auto; /* gruda à direita na coluna */
}
.wp-block-search.mostra-search .wp-block-search__inside-wrapper {
  display: flex;
  align-items: center;
  border: 2px solid #2e7afe; /* azul da borda */
  border-radius: 14px; /* cantos arredondados */
  overflow: hidden;
  background: #fff;
}
.wp-block-search.mostra-search .wp-block-search__input {
  border: 0;
  padding: 10px 14px;
  font-size: 15px;
  outline: none;
  flex: 1 1 auto;
}
.wp-block-search.mostra-search .wp-block-search__button {
  border: 0;
  padding: 0 16px;
  height: 35px;
  background: #0a84ff; /* azul do botão */
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px; /* deixa o botão arredondado */
  margin: 4px; /* respiro entre botão e borda */
}
.wp-block-search.mostra-search .wp-block-search__button svg {
  width: 18px;
  height: 18px; /* tamanho do ícone */
}
.wp-block-search.mostra-search:focus-within .wp-block-search__inside-wrapper {
  box-shadow: 0 0 0 3px rgba(14, 118, 255, 0.15); /* glow ao focar */
}

/* fallback quando o “botão dentro” não existir */
.wp-block-search.mostra-search .wp-block-search__button.has-icon {
  min-width: 48px;
}

.mostra-topbar {
  padding: 14px 0;
  border-bottom: 1px solid #eee;
}

.mostra-banner,
.mostra-banner .wp-block-cover__image-background,
.mostra-banner img {
  width: 100%;
  height: 281px;
  border-radius: 10px;
}

.mostra-catsbar {
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  padding: 10px 0;
  margin-top: 12px;
}
.mostra-catsbar .wp-block-categories-list {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.mostra-catsbar .wp-block-categories-list a {
  text-decoration: none;
  font-weight: 600;
}

.mostra-frontpage {
  padding: 20px;
}

/* ===== Arquivo: style.css (tema de blocos) ===== */

/* Grade dos cards (já vem do Post Template em grid),
   aqui só ajustamos responsividade */
@media (max-width: 1024px) {
  .wp-block-post-template.is-layout-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .wp-block-post-template.is-layout-grid {
    grid-template-columns: 1fr;
  }
}

.mostra-category {
  margin: 0px;
  padding: 15px 35px;
}

.mostra-category h1.wp-block-query-title {
  text-align: center;
  text-transform: uppercase;
  color: #5c5c5c;
}
.mostra-category .wp-block-post-featured-image {
  display: flex;
  align-items: center;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}
.mostra-category ul li a {
  text-decoration: none;
  color: #5c5c5c;
  font-size: 1.2rem;
}
.mostra-category .post-meta-line {
  /* border-top: 2px solid #db9005;  */
  border-top: 1px solid #5c5c5c;
  padding-top: 10px;
}

.mostra-category .post-meta-line a {
  color: #db9005;
  font-weight: bolder;
}
.mostra-category .post-meta-line .wp-block-post-terms__separator {
  color: #db9005;
  font-weight: bolder;
  padding: 0px 5px;
}

/* .mostra-category ul li.wp-block-post {
  align-items: center;
  background-color: #ffffff;
  border-radius: 14px;
  border: 1px solid #f0f0f0;
  padding: 18px 20px;
  box-shadow: 0 2px 8px rgba(156, 155, 155, 0.06);
} */

/* Paginação */
.query-pagination-wrapper .wp-block-query-pagination-numbers a,
.query-pagination-wrapper .wp-block-query-pagination-numbers span {
  padding: 0.35rem 0.6rem;
  border-radius: 0.4rem;
  margin: 0 0.15rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
}
.query-pagination-wrapper .wp-block-query-pagination-numbers .current {
  background: var(--wp--preset--color--primary, #0d47a1);
  color: #fff;
  border-color: transparent;
}

.single-post-container {
  margin: 0px;
  padding: 35px 35px;
}
.single-post-container .title-single {
  text-decoration: none;
  color: #5c5c5c;
}
.single-post-container .line {
  border-top: 1px solid #5c5c5c;
  padding-top: 10px;
}
.single-post-container .featured-image {
  display: flex;
  align-items: center;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}
.single-post-container .date-post {
  font-style: italic !important;
  text-decoration: none;
  color: #5c5c5c;
}
.single-post-container .wp-block-post-terms__separator {
  color: #db9005;
  font-weight: bolder;
  padding: 0px 5px;
}

.single-post-container .line a {
  color: #db9005;
  font-weight: bolder;
}

/* === Sidebar categorias (hover para abrir) === */

.category-sidebar {
  background-color: #ebebeb;
  border-radius: 14px;
  padding: 1rem;
}

/* Reset / base */
.category-sidebar ul,
.category-sidebar li,
.category-sidebar a {
  text-decoration: none;
  list-style: none;
  padding: 0;
  margin: 0;
}

.category-sidebar li {
  border-bottom: 1px solid #7e7e7e;
}
.category-sidebar li:last-child {
  border-bottom: none !important;
}

.category-sidebar .li_category {
  position: relative;
  padding: 10px 0;
}

/* Título do pai */
.category-sidebar li span,
.category-sidebar li a {
  font-weight: bold;
  text-transform: uppercase;
}

/* Caret (seu <span> “>”) ganha transição */
.category-sidebar .li_category > span {
  display: inline-block;
  padding-right: 10px;
  font-size: 1.2rem; /* um pouco menor para ficar mais próximo do mock */
  line-height: 1;
  transition: transform 0.2s ease;
  vertical-align: middle;
}

/* Submenu fechado por padrão (animável) */
.category-sidebar .sub_category__children {
  /* em vez de display:none, usamos transição com max-height/opacity */
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: max-height 0.25s ease, opacity 0.2s ease;
  margin-left: 0; /* guia vertical e recuo opcional */
  border-left: 2px solid transparent;
}

/* Itens do submenu */
.category-sidebar .sub_category__children li {
  border-bottom: none !important;
}
.category-sidebar .sub_category__children li a {
  display: block;
  color: #7e7e7e !important;
  padding: 8px 0 8px 30px !important; /* recuo à esquerda */
  border: none !important;
  font-weight: 600;
  text-transform: none; /* filhos não precisam ser upper se não quiser */
}

/* ---------- ABRIR NO HOVER (e no foco para teclado) ---------- */
/* Usando :has para só abrir se existir UL de filhos */
.category-sidebar
  .li_category:has(> .sub_category__children):hover
  > .sub_category__children,
.category-sidebar
  .li_category:has(> .sub_category__children):focus-within
  > .sub_category__children,
.category-sidebar .li_category.has-children:hover > .sub_category__children,
.category-sidebar
  .li_category.has-children:focus-within
  > .sub_category__children {
  max-height: 700px; /* suficientemente alto para comportar os filhos */
  opacity: 1;
  pointer-events: auto;
  border-left-color: #d8d8d8;
}

/* Gira o caret APENAS quando existe submenu e está aberto por hover/foco */
.category-sidebar .li_category:has(> .sub_category__children):hover > span,
.category-sidebar
  .li_category:has(> .sub_category__children):focus-within
  > span,
.category-sidebar .li_category.has-children:hover > span,
.category-sidebar .li_category.has-children:focus-within > span {
  transform: rotate(90deg); /* de “>” para “v” */
}

/* Hover do link filho */
.category-sidebar .sub_category__children li a:hover {
  text-decoration: underline;
}

/* Opcional: em telas sem hover, podemos manter abertos para usabilidade */
@media (hover: none) {
  .category-sidebar
    .li_category:has(> .sub_category__children)
    > .sub_category__children,
  .category-sidebar .li_category.has-children > .sub_category__children {
    max-height: 700px;
    opacity: 1;
    pointer-events: auto;
    border-left-color: #d8d8d8;
  }
}

.mostra-search-results li {
  border: 1px solid #ccc;
  border-radius: 14px;
  margin: 0px;
  padding: 15px 35px;
}
.mostra-search-results .post-meta-line {
  margin-bottom: 15px;
}

.mostra-search-results mark {
  background: #ffeb3b;
  padding: 0 0.2em;
  border-radius: 0.2em;
}

/* ======= contato========= */
/* ====== FORMULÁRIO DE CONTATO (classe .mostra-contato) ====== */

/* Container geral */
.mostra-contato {
  max-width: 600px; /* largura máxima do formulário */
  margin: 0 auto; /* centraliza horizontalmente */
  padding: 2rem; /* espaço interno */
  background-color: #ffffff; /* fundo branco */
  border-radius: 12px; /* bordas arredondadas */
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.08); /* sombra suave */
  display: flex;
  flex-direction: column;
  gap: 1rem; /* espaçamento entre os campos */
  font-family: "Inter", sans-serif;
}

/* Ajusta os <p> que envolvem os campos */
.mostra-contato p {
  margin: 0;
  padding: 0px;
}

/* Label */
.mostra-contato label {
  display: block;
  font-weight: 600;
  color: #222;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

/* Campos de texto e textarea */
.mostra-contato input[type="text"],
.mostra-contato input[type="email"],
.mostra-contato textarea {
  width: 100%;
  padding: 0.75rem 0;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  background-color: #f9f9f9;
  transition: border-color 0.2s, box-shadow 0.2s;
}

/* Efeito foco */
.mostra-contato input:focus,
.mostra-contato textarea:focus {
  border-color: #004aad; /* azul do tema */
  box-shadow: 0 0 0 3px rgba(0, 74, 173, 0.15);
  outline: none;
  background-color: #fff;
}

/* Botão de envio */
.mostra-contato input[type="submit"] {
  width: 100%;
  background-color: #004aad;
  color: #fff;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
}

/* Hover e active */
.mostra-contato input[type="submit"]:hover {
  background-color: #003c8a;
}
.mostra-contato input[type="submit"]:active {
  transform: scale(0.98);
}

/* Mensagem de resposta (padrão do CF7) */
.wpcf7-response-output {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.95rem;
}

/* Estados de resposta do Contact Form 7 */
.wpcf7-response-output.wpcf7-mail-sent-ok {
  background-color: #e6f8ec;
  border: 1px solid #3ab45a;
  color: #2c703b;
}
.wpcf7-response-output.wpcf7-validation-errors,
.wpcf7-response-output.wpcf7-mail-sent-ng {
  background-color: #fbeaea;
  border: 1px solid #e64545;
  color: #a30d0d;
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 480px) {
  .mostra-contato {
    padding: 1rem;
    gap: 0.75rem;
  }
  .mostra-contato input,
  .mostra-contato textarea {
    font-size: 0.95rem;
  }
  .mostra-contato input[type="submit"] {
    font-size: 1rem;
  }
}



.mostra-cookie {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  text-align: center;
  padding: 1rem;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: .8rem;
}

.mostra-cookie p {
  margin: 0;
  font-size: 0.95rem;
}

.mostra-cookie a {
  color: #00d1b2; /* Cor no estilo Bulma */
  text-decoration: underline;
}

.mostra-cookie button {
  background: #00d1b2;
  color: white;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s;
}

.mostra-cookie button:hover {
  background: #00bfa0;
}
