@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:wght,FILL@100..700,0..1&display=swap');

/* Ocultar o título de acessibilidade padrão do WP */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
  /* Compensa a altura do seu menu fixo */
}

.screen-reader-text {
  display: none !important;
}

.site-logo img {
  max-height: 68px;
  width: auto;
  display: block;
}

/* Estilos da Paginação */
.pagination {
  margin-top: 4rem;
  display: flex;
  justify-content: center;
}

.pagination .nav-links {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #f5f3f0;
  padding: 0.5rem;
  border-radius: 0.75rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 1rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: #495f82;
  border-radius: 0.5rem;
  transition: all 0.2s ease-in-out;
  text-decoration: none;
}

.pagination .page-numbers:hover {
  background-color: #e4e2df;
  color: #000b1f;
}

.pagination .page-numbers.current {
  background-color: #072242;
  color: #ffffff;
}

.pagination .page-numbers.next,
.pagination .page-numbers.prev {
  padding: 0 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
}

/* Estilo de Lista: Checklist */
.wp-block-list.is-style-checklist {
  list-style-type: none !important;
  padding-left: 0 !important;
}

.wp-block-list.is-style-checklist li {
  position: relative;
  padding-left: 2.25rem !important;
  margin-bottom: 0.75rem;
  line-height: 1.5;
  display: block;
}

/* Ícone do Checklist */
.wp-block-list.is-style-checklist li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.15em;
  width: 1.5rem;
  height: 1.5rem;
  background-color: #495f82;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960'%3E%3Cpath d='m424-312 282-282-56-56-226 226-114-114-56 56 170 170Zm56 232q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-80q134 0 227-93t93-227q0-134-93-227t-227-93q-134 0-227 93t-93 227q0 134 93 227t227 93Zm0-320Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960'%3E%3Cpath d='m424-312 282-282-56-56-226 226-114-114-56 56 170 170Zm56 232q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-80q134 0 227-93t93-227q0-134-93-227t-227-93q-134 0-227 93t-93 227q0 134 93 227t227 93Zm0-320Z'/%3E%3C/svg%3E");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
}

/* Estilo de Citação: Editorial */
.wp-block-quote.is-style-editorial {
  background-color: #f5f3f0;
  padding: 2.5rem 2.5rem 2.5rem 3.5rem;
  border-left: 6px solid #072242;
  border-top: none;
  border-right: none;
  border-bottom: none;
  margin-top: 3rem;
  margin-bottom: 3rem;
}

.wp-block-quote.is-style-editorial p {
  font-family: 'Manrope', sans-serif;
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.6;
  color: #000b1f;
  font-weight: 500;
  margin: 0;
}

.wp-block-quote.is-style-editorial cite {
  display: block;
  margin-top: 1rem;
  font-size: 0.875rem;
  font-style: normal;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #495f82;
}

/* --- Navegação Global --- */
.nav-global ul li a {
  font-family: 'Manrope', sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #495f82;
  transition: all 0.3s ease;
  padding-bottom: 4px;
}

.nav-global ul li a:hover {
  color: #000b1f;
}

/* Item Ativo */
.nav-global ul li.current-menu-item a {
  color: #072242;
  border-bottom: 2px solid #072242;
}

/* Botão CTA (Links com #) */
.nav-global a[href*="/contato/#Formulario-contato"] {
  background-color: #072242 !important;
  color: #ffffff !important;
  padding: 0.6rem 1.5rem !important;
  border-radius: 0.5rem !important;
  border-bottom: none !important;
  font-size: 0.875rem !important;
  transition: all 0.3s ease !important;
}

.nav-global a[href*="/contato/#Formulario-contato"]:hover {
  background-color: #000b1f !important;
  transform: scale(1.02);
}

/* Empurrar o botão para a direita em telas grandes e adicionar mais espaço */
@media (min-width: 1100px) {
  .nav-global ul {
    display: flex;
    align-items: center;
  }

  .nav-global ul li:has(a[href*="/contato/#Formulario-contato"]) {
    margin-left: auto !important;
    padding-left: 3rem;
    /* Espaço extra entre o menu e o botão */
  }
}

/* --- Menu Mobile (Padrão Pontomix) --- */
@media (max-width: 1100px) {
  .nav-global.open {
    display: flex !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #fbf9f6;
    z-index: 9999;
    /* Garante que fique acima de tudo */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
  }

  .nav-global.open ul {
    flex-direction: column;
    gap: 2rem;
    width: 100%;
    text-align: center;
    display: flex;
    align-items: center;
  }

  .nav-global.open ul li {
    margin: 0 !important;
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .nav-global.open ul li a {
    font-size: 1rem !important;
    display: inline-block;
    width: auto;
  }

  /* Ajuste específico para o botão no mobile */
  .nav-global.open a[href*="#"] {
    width: 100% !important;
    max-width: 260px;
    text-align: center;
    padding: 0.8rem 1.25rem !important;
    margin: 0 auto !important;
    font-size: 0.875rem !important;
    /* Um pouco menor para o botão */
  }
}

/* --- Carrossel de Parceiros --- */
.parceiros-track-wrapper {
  overflow: hidden;
  width: 100%;
}

.partner-carousel-container {
  width: 100%;
}

#partner-slider-track {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  will-change: transform;
}

.parceiro-item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  background: #f5f3f0;
  border: 1px solid #e4e2df;
  border-radius: 0.5rem;
  width: 180px;
  height: 72px;
}

.parceiro-logo {
  max-height: 44px;
  max-width: 140px;
  width: auto;
  object-fit: contain;
  transition: filter 0.3s ease, opacity 0.3s ease;
  mix-blend-mode: multiply;
}

/* Animação das Barrinhas -> X */
.btn-mobile.open span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.btn-mobile.open span:nth-child(2) {
  opacity: 0;
}

.btn-mobile.open span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* --- Tipografia do conteúdo do blog (single post) --- */
.prose img {
  border-radius: 0.5rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.prose figure figcaption {
  font-family: 'Manrope', sans-serif;
  font-size: 0.8125rem;
  color: #5e5e5e;
  text-align: center;
  margin-top: 0.5rem;
}

.prose .wp-block-image {
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.prose .wp-block-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.prose .wp-block-table td,
.prose .wp-block-table th {
  padding: 0.75rem 1rem;
  border: 1px solid #e4e2df;
  vertical-align: top;
}

.prose .wp-block-table th {
  background-color: #f5f3f0;
  font-weight: 700;
  color: #000b1f;
}

.prose .wp-block-separator {
  border-color: #e4e2df;
  margin: 2.5rem 0;
}

.prose .wp-block-pullquote {
  border-top: 4px solid #072242;
  border-bottom: 4px solid #072242;
  padding: 2rem 0;
  text-align: center;
}

.prose .wp-block-pullquote blockquote p {
  font-family: 'Libre Baskerville', serif;
  font-size: 1.375rem;
  font-style: italic;
  color: #000b1f;
  line-height: 1.6;
}

/* ============================================================
   Contact Form 7 — Estilos Globais do Tema SLPG
   ============================================================ */

.wpcf7-form input[type="submit"],
.wpcf7-submit {
  cursor: pointer;
  transition: opacity 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.wpcf7-form input[type="submit"]:hover,
.wpcf7-submit:hover {
  opacity: 0.88;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
  transform: translateY(-1px);
}

.wpcf7-form input[type="submit"]:active,
.wpcf7-submit:active {
  opacity: 1;
  transform: translateY(0);
  box-shadow: none;
}

.wpcf7-form input[type="submit"]:disabled,
.wpcf7-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ============================================================
   Contact Form 7 — Estilos de Layout & Formulários
   ============================================================ */

/* Container da Grade do Formulário de Contato */
.form-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 1.5rem !important; /* gap-6 */
}

/* Garante que os inputs padrão ocupem 1 coluna no grid */
.form-grid .wpcf7-form-control-wrap {
  display: block !important;
  width: 100% !important;
  grid-column: span 1 !important;
}

/* Textarea ocupa 2 colunas */
.form-grid textarea,
.form-grid .wpcf7-form-control-wrap:has(textarea),
.form-grid .your-message {
  grid-column: span 2 !important;
}

/* Container de Formulários Simples (Coluna Única) */
.custom-form {
  width: 100% !important;
}

.custom-form .wpcf7-form-control-wrap {
  display: block !important;
  width: 100% !important;
}

/* Estilo visual dos inputs */
.custom-form input[type="text"],
.custom-form input[type="email"],
.custom-form input[type="tel"],
.custom-form select,
.custom-form textarea,
.form-grid input[type="text"],
.form-grid input[type="email"],
.form-grid input[type="tel"],
.form-grid select,
.form-grid textarea {
  width: 100% !important;
  box-sizing: border-box !important;
  background-color: #ffffff !important;
  border: none !important;
  border-bottom: 1px solid #c4c6cf !important;
  padding: 0.75rem 1rem !important;
  border-top-left-radius: 0.375rem !important;
  border-top-right-radius: 0.375rem !important;
  transition: all 0.2s ease-in-out !important;
  color: #072242 !important;
}

.custom-form input:focus,
.custom-form select:focus,
.custom-form textarea:focus,
.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus {
  outline: none !important;
  border-color: #495f82 !important;
}

/* Botão Submit do Contato */
.form-grid button[type="submit"],
.form-grid .wpcf7-submit {
  grid-column: span 2 !important;
  justify-self: start !important;
}

/* Alinhamento Flex da Newsletter */
.newsletter-flex,
.newsletter-flex p {
  display: flex !important;
  flex-direction: row !important;
  width: 100% !important;
  align-items: stretch !important;
  margin: 0 !important;
  padding: 0 !important;
}

.newsletter-flex .wpcf7-form-control-wrap {
  display: inline-block !important;
  width: auto !important;
  flex-grow: 1 !important;
}

.newsletter-flex br {
  display: none !important;
}

/* Manter o campo de newsletter do rodapé escuro */
footer .wpcf7-form input[type="email"] {
  background-color: #072242 !important;
  color: #ffffff !important;
  border: none !important;
}
