/*
Theme Name:  Guiafono Child
Theme URI:   https://guiafono.com.br
Description: Identidade visual do portal Guiafono — child de Cream Magazine
Author:      Equipe Guiafono
Template:    cream-magazine
Version:     1.0.0
*/

/* ═══════════════════════════════════════════════
   VARIÁVEIS & RESET BASE
═══════════════════════════════════════════════ */
:root {
  --gf-purple:        #5e17eb;
  --gf-purple-dark:   #4a0fc7;
  --gf-purple-mid:    #7c3aed;
  --gf-purple-light:  #f3f0ff;
  --gf-purple-pale:   #faf8ff;
  --gf-teal:          #0891b2;
  --gf-teal-light:    #e0f2fe;
  --gf-text:          #0f172a;
  --gf-text-secondary:#334155;
  --gf-text-muted:    #64748b;
  --gf-text-faint:    #94a3b8;
  --gf-border:        #e2e8f0;
  --gf-border-light:  #f1f5f9;
  --gf-bg:            #f7f6fd;
  --gf-card:          #ffffff;
  --gf-shadow-xs:     0 1px 2px rgba(0,0,0,.05);
  --gf-shadow-sm:     0 1px 4px rgba(94,23,235,.07), 0 1px 2px rgba(0,0,0,.04);
  --gf-shadow-md:     0 4px 16px rgba(94,23,235,.10), 0 2px 4px rgba(0,0,0,.05);
  --gf-shadow-lg:     0 8px 32px rgba(94,23,235,.13), 0 4px 8px rgba(0,0,0,.06);
  --gf-radius-sm:     4px;
  --gf-radius:        10px;
  --gf-radius-lg:     16px;
  --gf-font-body:     'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --gf-font-head:     'Sora', 'Inter', -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

/* ═══════════════════════════════════════════════
   TIPOGRAFIA BASE
═══════════════════════════════════════════════ */
body {
  font-family: var(--gf-font-body) !important;
  background-color: var(--gf-bg) !important;
  color: var(--gf-text) !important;
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--gf-font-head) !important;
  color: var(--gf-text) !important;
  line-height: 1.25;
  letter-spacing: -.01em;
}

a { color: var(--gf-purple); transition: color .15s; }
a:hover { color: var(--gf-purple-dark); text-decoration: none; }

p { color: var(--gf-text-secondary); }

/* ═══════════════════════════════════════════════
   HEADER
═══════════════════════════════════════════════ */
.site-header {
  background: #ffffff !important;
  border-bottom: 1px solid var(--gf-border) !important;
  box-shadow: 0 1px 12px rgba(94,23,235,.06) !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 999 !important;
}

/* Logo / site title */
.site-branding .site-title,
.site-branding .site-title a {
  font-family: var(--gf-font-head) !important;
  font-size: 22px !important;
  font-weight: 800 !important;
  color: var(--gf-text) !important;
  letter-spacing: -.02em;
}

.site-branding .site-description {
  font-family: var(--gf-font-body) !important;
  font-size: 11px !important;
  color: var(--gf-text-muted) !important;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-weight: 500 !important;
}

/* ── Navegação ── */
.primary-navigation {
  background: transparent !important;
}

.primary-navigation > ul > li > a,
.primary-navigation ul li a {
  font-family: var(--gf-font-body) !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  letter-spacing: .01em;
  color: var(--gf-text-secondary) !important;
  padding: 6px 13px !important;
  border-radius: var(--gf-radius-sm) !important;
  transition: background .15s, color .15s !important;
}

.primary-navigation > ul > li > a:hover,
.primary-navigation ul li a:hover {
  background: var(--gf-purple-light) !important;
  color: var(--gf-purple) !important;
}

/* Submenu */
.primary-navigation ul ul {
  background: #fff !important;
  border: 1px solid var(--gf-border) !important;
  border-radius: var(--gf-radius) !important;
  box-shadow: var(--gf-shadow-md) !important;
  padding: 6px !important;
}

.primary-navigation ul ul li a {
  font-size: 13px !important;
  color: var(--gf-text-secondary) !important;
  border-radius: var(--gf-radius-sm) !important;
  padding: 7px 12px !important;
}

/* CTA "Seja Parceiro" no nav */
.primary-navigation > ul > li > a[href*="seja-parceiro"] {
  background: var(--gf-purple) !important;
  color: #fff !important;
  border-radius: var(--gf-radius-sm) !important;
  padding: 6px 14px !important;
}
.primary-navigation > ul > li > a[href*="seja-parceiro"]:hover {
  background: var(--gf-purple-dark) !important;
  color: #fff !important;
}

/* ── Ticker / barra de destaques ── */
.news_ticker_wrap {
  background: var(--gf-text) !important;
}
.news_ticker_wrap .ticker_head {
  background: var(--gf-purple) !important;
  font-family: var(--gf-font-body) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: .07em !important;
  text-transform: uppercase;
}
.news_ticker_wrap .ticker_items .item a {
  font-family: var(--gf-font-body) !important;
  font-size: 12.5px !important;
  color: #cbd5e1 !important;
}
.news_ticker_wrap .ticker_items .item a:hover { color: #fff !important; }

/* ═══════════════════════════════════════════════
   BANNER / HERO (post em destaque)
═══════════════════════════════════════════════ */
.cm_banner .post_title h2 a,
.cm_banner .post-holder .post_title h2 a {
  font-family: var(--gf-font-head) !important;
  font-size: clamp(22px, 3vw, 32px) !important;
  font-weight: 800 !important;
  color: #fff !important;
  line-height: 1.2 !important;
}

.cm_banner .post_meta li,
.cm_banner .post_meta li a {
  color: rgba(255,255,255,.75) !important;
  font-size: 12px !important;
}

.cm_banner .entry_cats ul.post-categories li a {
  background: rgba(255,255,255,.2) !important;
  color: #fff !important;
  backdrop-filter: blur(4px);
}

/* ═══════════════════════════════════════════════
   CARDS DE POSTS
═══════════════════════════════════════════════ */
.card,
.post-display-grid .card,
.cm-post-widget-two .big-card,
.cm-post-widget-two .small-card,
.cm_post_widget_twelve .card,
.cm_post_widget_seven .card,
.cm_middle_post_widget_six .item .card {
  background: var(--gf-card) !important;
  border-radius: var(--gf-radius) !important;
  overflow: hidden !important;
  box-shadow: var(--gf-shadow-sm) !important;
  transition: box-shadow .2s ease, transform .2s ease !important;
  border: 1px solid var(--gf-border-light) !important;
}

.card:hover,
.post-display-grid .card:hover,
.cm-post-widget-two .big-card:hover,
.cm-post-widget-two .small-card:hover,
.cm_post_widget_twelve .card:hover,
.cm_post_widget_seven .card:hover {
  box-shadow: var(--gf-shadow-md) !important;
  transform: translateY(-3px) !important;
  border-color: transparent !important;
}

/* Card thumbnails — arredonda só topo */
.card .post_thumb,
.post-display-grid .card .post_thumb {
  border-radius: var(--gf-radius) var(--gf-radius) 0 0;
}

/* Card content padding */
.card .card_content,
.card_content {
  padding: 16px 18px 20px !important;
}

/* ── Títulos dos cards ── */
.post_title h2,
.post_title h2 a,
.card .post_title h2 a,
.card_content .post_title h2 a,
.cm-post-widget-two .big-card .post-holder .post_title h2 a {
  font-family: var(--gf-font-head) !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  color: var(--gf-text) !important;
  line-height: 1.35 !important;
  text-decoration: none !important;
}

.post_title h2 a:hover,
.card .post_title h2 a:hover {
  color: var(--gf-purple) !important;
}

/* ── Post meta ── */
ul.post_meta,
.post_meta,
.post_meta li,
.post_meta li a,
.post_meta li span {
  font-family: var(--gf-font-body) !important;
  font-size: 12px !important;
  color: var(--gf-text-faint) !important;
}
.post_meta li a:hover { color: var(--gf-purple) !important; }

/* ── Categoria (badge) ── */
.entry_cats ul.post-categories li a {
  font-family: var(--gf-font-body) !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: .07em !important;
  text-transform: uppercase !important;
  padding: 3px 10px !important;
  border-radius: 20px !important;
  background-color: var(--gf-purple) !important;
  color: #fff !important;
}
.entry_cats ul.post-categories li a:hover {
  background-color: var(--gf-purple-dark) !important;
}

/* Excerpt */
.cm-post-excerpt,
.card .cm-post-excerpt,
.post-display-grid .card_content .cm-post-excerpt {
  font-size: 13.5px !important;
  color: var(--gf-text-muted) !important;
  line-height: 1.55 !important;
  margin-top: 10px !important;
}

/* ═══════════════════════════════════════════════
   TÍTULOS DE SEÇÃO
═══════════════════════════════════════════════ */
.section-title,
.section-title h2 {
  font-family: var(--gf-font-head) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
  color: var(--gf-text-muted) !important;
}

.section-title h2::after,
.sidebar-widget-area .widget .widget-title h2::after,
.footer-widget-container .widget .widget-title h2::after {
  background-color: var(--gf-purple) !important;
  height: 2px !important;
  border-radius: 2px;
}

/* ═══════════════════════════════════════════════
   ÁREAS DE ANÚNCIOS
═══════════════════════════════════════════════ */
.advertisement-area {
  background: var(--gf-purple-pale) !important;
  border-radius: var(--gf-radius) !important;
  border: 1px dashed #d4c5f9 !important;
  padding: 12px !important;
  text-align: center;
}

/* ═══════════════════════════════════════════════
   SIDEBAR / WIDGETS
═══════════════════════════════════════════════ */
.sidebar-widget-area .widget {
  background: var(--gf-card) !important;
  border-radius: var(--gf-radius) !important;
  box-shadow: var(--gf-shadow-sm) !important;
  border: 1px solid var(--gf-border-light) !important;
  overflow: hidden;
  margin-bottom: 20px !important;
  padding: 20px !important;
}

.sidebar-widget-area .widget .widget-title h2,
.sidebar-widget-area .widget-title h2 {
  font-family: var(--gf-font-head) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
  color: var(--gf-text-muted) !important;
  border-bottom: 1px solid var(--gf-border) !important;
  padding-bottom: 10px !important;
  margin-bottom: 14px !important;
}

.sidebar-widget-area .widget ul li {
  border-bottom: 1px solid var(--gf-border-light) !important;
  padding: 7px 0 !important;
  font-size: 13.5px;
  color: var(--gf-text-secondary);
}

.sidebar-widget-area .widget ul li a {
  color: var(--gf-text-secondary) !important;
  font-weight: 500;
}
.sidebar-widget-area .widget ul li a:hover { color: var(--gf-purple) !important; }

/* ── Post relacionados na sidebar ── */
.sidebar-widget-area .post_title h2 a {
  font-family: var(--gf-font-head) !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  color: var(--gf-text) !important;
}

/* ═══════════════════════════════════════════════
   POST ÚNICO (single.php)
═══════════════════════════════════════════════ */
.single .hentry,
.page .hentry {
  background: var(--gf-card) !important;
  border-radius: var(--gf-radius-lg) !important;
  box-shadow: var(--gf-shadow-sm) !important;
  border: 1px solid var(--gf-border-light) !important;
  overflow: hidden;
}

/* Título do post */
.single .post_title h1,
.single .entry-header .post_title h1,
.post_title h1 {
  font-family: var(--gf-font-head) !important;
  font-size: clamp(26px, 4vw, 40px) !important;
  font-weight: 800 !important;
  line-height: 1.18 !important;
  color: var(--gf-text) !important;
  letter-spacing: -.02em !important;
}

/* Conteúdo do post */
.the_content,
.entry-content {
  font-family: var(--gf-font-body) !important;
  font-size: 16.5px !important;
  line-height: 1.82 !important;
  color: #1e293b !important;
}

.the_content h2,
.entry-content h2 {
  font-size: 24px !important;
  margin-top: 2.2em !important;
  margin-bottom: .6em !important;
  padding-bottom: .4em;
  border-bottom: 2px solid var(--gf-purple-light);
}

.the_content h3,
.entry-content h3 {
  font-size: 19px !important;
  margin-top: 1.8em !important;
  color: var(--gf-text) !important;
}

.the_content p,
.entry-content p { margin-bottom: 1.4em; }

/* Links de texto dentro do conteúdo — excluí qualquer <a> que pareça botão */
.the_content a:not([class*="btn"]):not([class*="gf-"]):not([class*="fono-"]):not([class*="wp-block"]),
.entry-content a:not([class*="btn"]):not([class*="gf-"]):not([class*="fono-"]):not([class*="wp-block"]) {
  color: var(--gf-purple) !important;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(94,23,235,.35);
}
.the_content a:not([class*="btn"]):not([class*="gf-"]):not([class*="fono-"]):hover,
.entry-content a:not([class*="btn"]):not([class*="gf-"]):not([class*="fono-"]):hover {
  color: var(--gf-purple-dark) !important;
  text-decoration-color: var(--gf-purple-dark);
}
/* Botões dentro de conteúdo — nunca sublinhados */
.the_content a[class*="btn"],
.the_content a[class*="gf-"],
.the_content a[class*="fono-"],
.entry-content a[class*="btn"],
.entry-content a[class*="gf-"],
.entry-content a[class*="fono-"] { text-decoration: none !important; }

/* Blockquote */
.the_content blockquote,
.entry-content blockquote {
  border-left: 4px solid var(--gf-purple) !important;
  background: var(--gf-purple-pale) !important;
  border-radius: 0 var(--gf-radius-sm) var(--gf-radius-sm) 0 !important;
  padding: 16px 20px !important;
  margin: 1.5em 0 !important;
  font-style: italic;
  color: var(--gf-text-secondary) !important;
}

/* ── Post navigation ── */
.post-navigation .nav-links .nav-previous a,
.post-navigation .nav-links .nav-next a {
  font-family: var(--gf-font-body) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  background: var(--gf-purple) !important;
  color: #fff !important;
  border-radius: var(--gf-radius-sm) !important;
  padding: 8px 16px !important;
}

/* ── Compartilhamento social ── */
.social-share ul li a {
  border-radius: var(--gf-radius-sm) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
}

/* ── Breadcrumb ── */
.breadcrumb,
.breadcrumb ul li,
.breadcrumb ul li a span {
  font-family: var(--gf-font-body) !important;
  font-size: 12.5px !important;
  color: var(--gf-text-faint) !important;
}
.breadcrumb ul li:last-child span {
  color: var(--gf-purple) !important;
  font-weight: 500 !important;
}

/* ═══════════════════════════════════════════════
   COMENTÁRIOS
═══════════════════════════════════════════════ */
#comments h2.comments-title,
#comments div#respond h3#reply-title {
  font-family: var(--gf-font-head) !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  color: var(--gf-text) !important;
}

#comments form input[type="submit"],
#respond input[type="submit"] {
  background-color: var(--gf-purple) !important;
  color: #fff !important;
  font-family: var(--gf-font-body) !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  border-radius: 6px !important;
  padding: 11px 24px !important;
  letter-spacing: .01em !important;
}
#comments form input[type="submit"]:hover,
#respond input[type="submit"]:hover {
  background-color: var(--gf-purple-dark) !important;
}

/* ═══════════════════════════════════════════════
   FORMULÁRIOS (geral + CF7)
═══════════════════════════════════════════════ */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="number"],
input[type="search"],
input[type="password"],
textarea,
select {
  font-family: var(--gf-font-body) !important;
  font-size: 14px !important;
  color: var(--gf-text) !important;
  background: #fff !important;
  border: 1.5px solid var(--gf-border) !important;
  border-radius: 7px !important;
  padding: 10px 14px !important;
  width: 100%;
  transition: border-color .15s, box-shadow .15s !important;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--gf-purple) !important;
  box-shadow: 0 0 0 3px rgba(94,23,235,.12) !important;
  outline: none !important;
}

/* Labels */
.wpcf7 label,
.wpcf7 p > label,
.fono-cadastro-form label {
  font-family: var(--gf-font-body) !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  color: var(--gf-text-secondary) !important;
  display: block;
  margin-bottom: 4px;
}

/* Submit CF7 */
.wpcf7-submit,
input.wpcf7-submit {
  background: var(--gf-purple) !important;
  color: #fff !important;
  font-family: var(--gf-font-body) !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  padding: 13px 32px !important;
  border-radius: 7px !important;
  border: none !important;
  cursor: pointer !important;
  transition: background .15s, transform .1s !important;
  letter-spacing: .01em !important;
}
.wpcf7-submit:hover { background: var(--gf-purple-dark) !important; transform: translateY(-1px); }

/* ── Search form ── */
.widget_search form input[type="search"],
.header-search-container input[type="search"] {
  border-radius: 7px !important;
}

.widget_search form input[type="submit"],
.header-search-container input[type="submit"] {
  font-family: var(--gf-font-body) !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  border-radius: 7px !important;
  padding: 10px 18px !important;
}

/* ═══════════════════════════════════════════════
   PAGINAÇÃO
═══════════════════════════════════════════════ */
.pagination .page-numbers {
  font-family: var(--gf-font-body) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  border-radius: 7px !important;
  padding: 8px 15px !important;
  border: 1.5px solid var(--gf-border) !important;
  background: #fff !important;
  color: var(--gf-text-secondary) !important;
  transition: all .15s !important;
}
.pagination .page-numbers:hover {
  border-color: var(--gf-purple) !important;
  color: var(--gf-purple) !important;
}
.pagination .page-numbers.current {
  background: var(--gf-purple) !important;
  border-color: var(--gf-purple) !important;
  color: #fff !important;
}

/* ═══════════════════════════════════════════════
   PÁGINA 404 / ERROR
═══════════════════════════════════════════════ */
.error_page_top_portion {
  background: linear-gradient(135deg, var(--gf-purple) 0%, var(--gf-purple-mid) 100%) !important;
  border-radius: var(--gf-radius-lg) !important;
}

/* ═══════════════════════════════════════════════
   FOOTER — contraste WCAG AA, hierarquia visual clara
═══════════════════════════════════════════════ */
#colophon,
.site-footer {
  background: #111827 !important;
  border-top: 3px solid var(--gf-purple) !important;
}

.footer-widget-container {
  background: #111827 !important;
  padding-top: 52px !important;
  padding-bottom: 40px !important;
}

.footer-widget-container .widget,
.footer-widget-container .widget_text {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  padding: 0 !important;
}

/* Títulos das seções — brancos e nítidos */
.footer-widget-container .widget .widget-title h2,
.footer-widget-container .widget-title h2 {
  font-family: var(--gf-font-head) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: .1em !important;
  text-transform: uppercase !important;
  color: #ffffff !important;
  border-bottom: 1px solid #2d3748 !important;
  padding-bottom: 10px !important;
  margin-bottom: 18px !important;
}

.footer-widget-container .widget .widget-title h2::after,
.footer-widget-container .widget-title h2::after {
  display: none !important;
}

/* Texto corrido — cinza legível (contraste 7:1 sobre #111827) */
.footer-widget-container p,
.footer-widget-container .textwidget,
.footer-widget-container .widget {
  color: #9ca3af !important;
  font-size: 13.5px !important;
  line-height: 1.7;
}

/* Títulos de posts na sidebar do rodapé */
.footer-widget-container .post_title h2,
.footer-widget-container .post_title h2 a {
  font-family: var(--gf-font-body) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #e5e7eb !important;
  line-height: 1.4;
}
.footer-widget-container .post_title h2 a:hover { color: #c4b5fd !important; }

/* Links — visíveis e com hover persuasivo */
.footer-widget-container a {
  color: #d1d5db !important;
  font-size: 13.5px;
  transition: color .15s;
}
.footer-widget-container a:hover {
  color: #c4b5fd !important;
}

/* Listas de posts/links */
.footer-widget-container ul.post_meta li,
.footer-widget-container ul li {
  border-bottom: 1px solid #1f2937 !important;
  padding: 8px 0 !important;
  font-size: 13.5px;
}
.footer-widget-container ul li a {
  color: #d1d5db !important;
}
.footer-widget-container ul li a:hover { color: #c4b5fd !important; }

/* Post meta (data, autor) */
.footer-widget-container .post_meta li,
.footer-widget-container .post_meta li a,
.footer-widget-container .post_meta li span {
  color: #6b7280 !important;
  font-size: 12px !important;
}

/* Menu de rodapé */
.footer_nav ul li a {
  font-family: var(--gf-font-body) !important;
  font-size: 13px !important;
  color: #d1d5db !important;
}
.footer_nav ul li a:hover { color: #c4b5fd !important; }

/* ── Widget de redes sociais — estilo unificado, sem as cores berrantes ── */
.footer-widget-container .widget ul.social-icons li a,
.footer-widget-container [class*="social"] a,
.footer-widget-container .wp-social-link,
.footer-widget-container .addtoany_list a,
.footer-widget-container .at-share-btn {
  background: #1f2937 !important;
  color: #d1d5db !important;
  border-radius: 6px !important;
  border: 1px solid #374151 !important;
  transition: background .15s, color .15s !important;
}
.footer-widget-container [class*="social"] a:hover,
.footer-widget-container .wp-social-link:hover {
  background: var(--gf-purple) !important;
  color: #fff !important;
  border-color: var(--gf-purple) !important;
}

/* ── Barra de copyright ── */
.copyright_section {
  background: #0d1117 !important;
  border-top: 1px solid #1f2937 !important;
  padding: 18px 0 !important;
}

.copyright_section,
.copyright_section p,
.copyright_section .copyrights {
  font-family: var(--gf-font-body) !important;
  font-size: 12.5px !important;
  color: #6b7280 !important;
}

.copyright_section a,
.copyright_section .copyrights a {
  color: #9ca3af !important;
}
.copyright_section a:hover,
.copyright_section .copyrights a:hover { color: #c4b5fd !important; }

/* ── Esconde widgets de placeholder/host ── */
#media_image-1,
#media_image-2 {
  display: none !important;
}

/* ═══════════════════════════════════════════════
   DIRETÓRIO DE FONOAUDIÓLOGOS (guiafono-directory.php)
═══════════════════════════════════════════════ */
/* Aprimora o formulário de busca */
.fono-search-form {
  background: linear-gradient(135deg, var(--gf-purple) 0%, var(--gf-purple-mid) 100%) !important;
  border-radius: var(--gf-radius-lg) !important;
  padding: 32px !important;
  box-shadow: var(--gf-shadow-lg) !important;
}

.fono-search-form h2 {
  color: #fff !important;
  font-size: 20px !important;
}

.fono-search-form select,
.fono-search-form input[type="submit"] {
  border-radius: 7px !important;
}

.fono-search-form input[type="submit"] {
  background: #fff !important;
  color: var(--gf-purple) !important;
  font-weight: 700 !important;
}
.fono-search-form input[type="submit"]:hover {
  background: var(--gf-purple-light) !important;
}

/* Cards do diretório */
.fono-card {
  border-radius: var(--gf-radius) !important;
  box-shadow: var(--gf-shadow-sm) !important;
  border: 1px solid var(--gf-border-light) !important;
  transition: box-shadow .2s, transform .2s !important;
}
.fono-card:hover {
  box-shadow: var(--gf-shadow-md) !important;
  transform: translateY(-3px) !important;
  border-color: transparent !important;
}

/* Estado vazio do diretório */
.fono-empty-state {
  background: var(--gf-purple-pale) !important;
  border-radius: var(--gf-radius-lg) !important;
  border: 2px dashed #d4c5f9 !important;
  padding: 48px 32px !important;
}

/* ═══════════════════════════════════════════════
   PÁGINA /SEJA-PARCEIRO/
═══════════════════════════════════════════════ */
.page-id-1049 .fono-cadastro-form,
.seja-parceiro-beneficios {
  background: var(--gf-purple-pale) !important;
  border-radius: var(--gf-radius) !important;
  padding: 24px !important;
  border: 1px solid #ddd6fe !important;
}

/* ═══════════════════════════════════════════════
   RESPONSIVO
═══════════════════════════════════════════════ */
@media (max-width: 992px) {
  .site-header { position: relative !important; }
}

@media (max-width: 768px) {
  body { font-size: 14px; }
  .single .the_content, .entry-content { font-size: 15.5px !important; }
  .card_content { padding: 14px 16px 16px !important; }
  .footer-widget-container { padding-top: 36px !important; padding-bottom: 24px !important; }
}

@media (max-width: 480px) {
  .post_title h2 a, .card .post_title h2 a { font-size: 15px !important; }
}

/* ═══════════════════════════════════════════════
   SCROLLBAR (Webkit)
═══════════════════════════════════════════════ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--gf-bg); }
::-webkit-scrollbar-thumb { background: #c4b5fd; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gf-purple); }

/* ═══════════════════════════════════════════════
   NEWSLETTER PAGES
═══════════════════════════════════════════════ */
.gf-newsletter-hero {
  border-radius: var(--gf-radius-lg);
  padding: 52px 40px;
  margin-bottom: 36px;
  text-align: center;
}
.gf-newsletter-hero--familia {
  background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%);
}
.gf-newsletter-hero--pro {
  background: linear-gradient(135deg, #5e17eb 0%, #7c3aed 100%);
}
.gf-newsletter-hero-inner { max-width: 560px; margin: 0 auto; }
.gf-nl-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.75);
  margin-bottom: 12px;
}
.gf-newsletter-hero h1 {
  font-size: clamp(24px, 4vw, 34px) !important;
  color: #fff !important;
  margin-bottom: 12px !important;
}
.gf-newsletter-hero p {
  color: rgba(255,255,255,.85);
  font-size: 16px;
  line-height: 1.6;
}

.gf-newsletter-benefits {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 36px;
}
.gf-nl-benefit {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--gf-card);
  border: 1px solid var(--gf-border-light);
  border-radius: var(--gf-radius);
  padding: 18px;
  box-shadow: var(--gf-shadow-sm);
}
.gf-nl-benefit > span { font-size: 28px; flex-shrink: 0; margin-top: 2px; }
.gf-nl-benefit strong { font-size: 14px; font-weight: 700; color: var(--gf-text); display: block; margin-bottom: 4px; }
.gf-nl-benefit p { font-size: 13px; color: var(--gf-text-muted); margin: 0; line-height: 1.5; }

.gf-newsletter-form { max-width: 520px; margin: 0 auto; }
.gf-newsletter-hint {
  font-size: 12.5px;
  color: var(--gf-text-faint);
  margin-top: -4px;
  line-height: 1.5;
}

/* ═══════════════════════════════════════════════
   MATERIAIS PAGE
═══════════════════════════════════════════════ */
.gf-materiais-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 24px;
}
.gf-material-card {
  background: var(--gf-card);
  border-radius: var(--gf-radius);
  padding: 28px 24px;
  position: relative;
  border: 1px solid var(--gf-border-light);
  box-shadow: var(--gf-shadow-sm);
  transition: box-shadow .2s, transform .2s;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.gf-material-card:hover {
  box-shadow: var(--gf-shadow-md);
  transform: translateY(-3px);
}
.gf-material-card--pro { border-color: #ddd6fe; background: var(--gf-purple-pale); }
.gf-material-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: #dcfce7;
  color: #15803d;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
}
.gf-material-badge--pro { background: #ede9fe; color: #5e17eb; }
.gf-material-icon { font-size: 36px; }
.gf-material-card h3 {
  font-size: 16px !important;
  font-weight: 700 !important;
  color: var(--gf-text) !important;
  margin: 0 !important;
  line-height: 1.3;
}
.gf-material-card p {
  font-size: 13.5px;
  color: var(--gf-text-muted);
  line-height: 1.55;
  margin: 0;
  flex: 1;
}
.gf-material-card .fono-btn { align-self: flex-start; margin-top: 4px; }

@media (max-width: 600px) {
  .gf-newsletter-hero { padding: 36px 20px; }
  .gf-newsletter-benefits { grid-template-columns: 1fr; }
  .gf-materiais-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════
   NAVEGAÇÃO — DROPDOWN REFINADO
═══════════════════════════════════════════════ */

/* Item "#" sem destino — desabilita cursor de link */
.primary-navigation > ul > li > a[href="#"] { cursor: default; }

/* Dropdown: aparece com animação suave */
.primary-navigation ul ul {
  display:    none;
  position:   absolute;
  top:        calc(100% + 4px);
  left:       0;
  min-width:  210px;
  background: #ffffff !important;
  border:     1px solid var(--gf-border) !important;
  border-radius: 10px !important;
  box-shadow: 0 8px 32px rgba(94,23,235,.12), 0 2px 8px rgba(0,0,0,.06) !important;
  padding:    6px !important;
  z-index:    9999;
  animation:  gf-fade-down .15s ease;
}

@keyframes gf-fade-down {
  from { opacity:0; transform:translateY(-6px); }
  to   { opacity:1; transform:translateY(0); }
}

.primary-navigation ul li:hover > ul,
.primary-navigation ul li:focus-within > ul { display: block; }

.primary-navigation ul ul li { display: block; }

.primary-navigation ul ul li a {
  display:       block !important;
  font-size:     13px !important;
  font-weight:   500 !important;
  color:         var(--gf-text-secondary) !important;
  padding:       8px 14px !important;
  border-radius: 6px !important;
  transition:    background .12s, color .12s !important;
  white-space:   nowrap;
}
.primary-navigation ul ul li a:hover {
  background: var(--gf-purple-light) !important;
  color:      var(--gf-purple) !important;
}

/* Seta indicadora nos itens com submenu */
.primary-navigation > ul > li.menu-item-has-children > a::after {
  content:      ' ▾';
  font-size:    10px;
  opacity:      .6;
  margin-left:  2px;
}

/* Especialidades: duas colunas no dropdown (muitos itens) */
.primary-navigation > ul > li.menu-item-has-children:nth-child(3) > ul {
  display:               none;
  grid-template-columns: 1fr 1fr;
  min-width:             380px;
}
.primary-navigation > ul > li.menu-item-has-children:nth-child(3):hover > ul,
.primary-navigation > ul > li.menu-item-has-children:nth-child(3):focus-within > ul {
  display: grid;
}

/* CTA "Seja Parceiro" — último item nav ── */
.primary-navigation > ul > li:last-child > a {
  background:    var(--gf-purple) !important;
  color:         #fff !important;
  border-radius: 6px !important;
  padding:       7px 16px !important;
  font-weight:   700 !important;
  margin-left:   6px;
}
.primary-navigation > ul > li:last-child > a:hover {
  background:    var(--gf-purple-dark) !important;
}

/* Remove estilo de CTA do link "Seja Parceiro" dentro do dropdown */
.primary-navigation ul ul li a[href*="seja-parceiro"] {
  background: transparent !important;
  color:      var(--gf-text-secondary) !important;
  font-weight: 500 !important;
  padding:    8px 14px !important;
  margin-left: 0 !important;
}
.primary-navigation ul ul li a[href*="seja-parceiro"]:hover {
  background: var(--gf-purple-light) !important;
  color:      var(--gf-purple) !important;
}

/* Header: alinha nav verticalmente centralizado */
.site-header .site-branding { align-items: center; }
.header-wrap,
.site-header .container,
.site-header .header-inner {
  display:     flex;
  align-items: center;
}

/* ═══════════════════════════════════════════════
   MENU MOBILE (stellarNav — breakpoint 991px)
═══════════════════════════════════════════════ */

/* Hambúrguer: visível com fundo roxo e ícone branco */
.primary-navigation .menu-toggle {
  display: none !important; /* stellarNav injeta e mostra quando .mobile */
  background: var(--gf-purple) !important;
  border-radius: 8px !important;
  padding: 10px 16px !important;
  width: 100%;
  box-sizing: border-box;
}
.primary-navigation.mobile .menu-toggle {
  display: flex !important;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
}
.primary-navigation .menu-toggle svg {
  fill: #fff !important;
  color: #fff !important;
  width: 22px !important;
  height: 22px !important;
  display: block;
  flex-shrink: 0;
}
/* Label "Menu" ao lado do ícone */
.primary-navigation .menu-toggle::after {
  content: 'Menu';
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--gf-font-body, 'Inter', sans-serif);
  letter-spacing: .02em;
}

/* Painel do menu expandido no mobile — fundo roxo escuro legível */
@media (max-width: 991px) {
  /* Fundo e cor do painel aberto */
  .primary-navigation.mobile > ul {
    background: #1e0a3c !important;
    border-radius: 0 0 12px 12px !important;
    padding: 4px 0 8px !important;
    margin: 0 !important;
  }

  /* Itens do menu: texto branco, separador sutil */
  .primary-navigation.mobile > ul > li > a,
  .primary-navigation.mobile ul li a {
    color: #e9d5ff !important;
    padding: 12px 20px !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    border-bottom: 1px solid rgba(255,255,255,.06) !important;
    display: block;
    background: transparent !important;
  }
  .primary-navigation.mobile ul li a:hover,
  .primary-navigation.mobile ul li a:active {
    background: rgba(255,255,255,.08) !important;
    color: #fff !important;
  }

  /* Último item (Triagens / CTA) mantém destaque roxo */
  .primary-navigation.mobile > ul > li:last-child > a {
    background: var(--gf-purple) !important;
    color: #fff !important;
    margin: 8px 12px 4px !important;
    border-radius: 8px !important;
    border-bottom: none !important;
    text-align: center;
  }

  /* Sub-itens: recuados, fundo ligeiramente diferente */
  .primary-navigation.mobile ul ul {
    position: static !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    animation: none !important;
    border: none !important;
    background: rgba(255,255,255,.04) !important;
    padding: 0 0 4px 0 !important;
  }
  .primary-navigation.mobile ul ul li a {
    padding-left: 36px !important;
    font-size: 13.5px !important;
    color: #c4b5fd !important;
  }

  /* Desfaz colunas de especialidades no mobile */
  .primary-navigation > ul > li.menu-item-has-children:nth-child(3) > ul {
    grid-template-columns: 1fr !important;
    min-width: unset !important;
    display: block !important;
  }

  /* Remove hover-based dropdowns (stellarNav usa click/dd-toggle) */
  .primary-navigation ul li:hover > ul,
  .primary-navigation > ul > li.menu-item-has-children:nth-child(3):hover > ul,
  .primary-navigation > ul > li.menu-item-has-children:nth-child(3):focus-within > ul {
    display: none !important;
  }

  /* stellarNav abre submenus com .active */
  .primary-navigation.mobile ul li.has-sub.active > ul {
    display: block !important;
  }

  /* Ícone "+" do dd-toggle mais visível */
  .primary-navigation.mobile .dd-toggle {
    color: rgba(255,255,255,.6) !important;
    border-left: 1px solid rgba(255,255,255,.1) !important;
  }
}

/* ═══════════════════════════════════════════════
   HERO STRIP — homepage
═══════════════════════════════════════════════ */
.gf-home-hero {
  background: linear-gradient(135deg, #1e0a3c 0%, #5e17eb 55%, #0891b2 100%);
  padding: 52px 24px 44px;
  position: relative;
  overflow: hidden;
}
.gf-home-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.gf-home-hero-inner {
  max-width: 860px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  text-align: center;
}

.gf-home-hero-copy h1 {
  font-family: var(--gf-font-head, 'Sora', sans-serif) !important;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem) !important;
  font-weight: 800 !important;
  color: #fff !important;
  margin: 0 0 12px !important;
  line-height: 1.2 !important;
}
.gf-home-hero-copy h1 span {
  color: #a78bfa;
}
.gf-home-hero-copy p {
  color: rgba(255,255,255,.82);
  font-size: 1rem;
  margin: 0 0 28px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Barra de busca */
.gf-home-hero-search { margin-bottom: 20px; }
.gf-hero-search-row {
  display: flex;
  gap: 8px;
  max-width: 680px;
  margin: 0 auto;
  background: rgba(255,255,255,.14);
  border: 1.5px solid rgba(255,255,255,.28);
  border-radius: 50px;
  padding: 6px 6px 6px 16px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.gf-hero-input {
  flex: 1;
  background: transparent !important;
  -webkit-appearance: none;
  appearance: none;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  color: #fff !important;
  font-size: .95rem;
  font-family: var(--gf-font-body, 'Inter', sans-serif);
  min-width: 0;
  -webkit-text-fill-color: #fff;
}
.gf-hero-input::placeholder { color: rgba(255,255,255,.6) !important; -webkit-text-fill-color: rgba(255,255,255,.6); }
.gf-hero-select {
  background: rgba(255,255,255,.18) !important;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff;
  font-size: .88rem;
  padding: 6px 28px 6px 10px;
  border-radius: 30px;
  cursor: pointer;
  font-family: var(--gf-font-body, 'Inter', sans-serif);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23fff' d='M1 1l5 5 5-5'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 10px center !important;
}
.gf-hero-select option { color: #1f2937 !important; background: #fff !important; -webkit-text-fill-color: #1f2937; }
.gf-hero-btn {
  background: #fff !important;
  color: #5e17eb !important;
  -webkit-appearance: none;
  appearance: none;
  border: none;
  border-radius: 40px;
  padding: 10px 22px;
  font-weight: 700;
  font-size: .9rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s, transform .1s;
  font-family: var(--gf-font-body, 'Inter', sans-serif);
}
.gf-hero-btn:hover { background: #ede9fe !important; transform: scale(1.02); }

/* Atalhos rápidos */
.gf-home-hero-atalhos {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.gf-atalho {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 20px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.9) !important;
  font-size: .82rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s, border-color .15s;
}
.gf-atalho:hover {
  background: rgba(255,255,255,.22);
  border-color: rgba(255,255,255,.4);
  color: #fff !important;
}
.gf-atalho--cta {
  background: rgba(255,255,255,.95);
  color: #5e17eb !important;
  border-color: transparent;
}
.gf-atalho--cta:hover {
  background: #fff;
  color: #4a0fc7 !important;
}

/* Stats bar */
.gf-home-stats-bar {
  background: #fff;
  border-bottom: 1px solid var(--gf-border-light, #f0eef9);
  box-shadow: 0 2px 8px rgba(94,23,235,.06);
}
.gf-stats-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  padding: 14px 0;
}
.gf-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 32px;
  text-align: center;
}
.gf-stat-item strong {
  font-family: var(--gf-font-head, 'Sora', sans-serif);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--gf-purple, #5e17eb);
  line-height: 1;
}
.gf-stat-item span {
  font-size: .75rem;
  color: #6b7280;
  margin-top: 3px;
  white-space: nowrap;
}
.gf-stat-sep {
  width: 1px;
  height: 32px;
  background: var(--gf-border-light, #e5e7eb);
}

@media (max-width: 640px) {
  /* Hero: garante gradiente visível no mobile */
  .gf-home-hero {
    background: linear-gradient(160deg, #1e0a3c 0%, #5e17eb 60%, #0e7490 100%) !important;
    padding: 32px 16px 28px !important;
  }
  .gf-home-hero-copy h1 {
    font-size: 1.6rem !important;
    text-align: left;
  }
  .gf-home-hero-copy p {
    font-size: .9rem;
    text-align: left;
    margin-bottom: 20px;
  }

  /* Formulário em coluna no mobile */
  .gf-hero-search-row {
    flex-direction: column;
    border-radius: 16px !important;
    padding: 12px !important;
    gap: 8px;
    background: rgba(255,255,255,.16) !important;
  }
  .gf-hero-input {
    padding: 10px 4px !important;
    font-size: 1rem !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
  }
  .gf-hero-select {
    padding: 10px 28px 10px 12px !important;
    font-size: .9rem !important;
    width: 100%;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
  }
  .gf-hero-btn {
    width: 100%;
    padding: 12px !important;
    font-size: 1rem !important;
    border-radius: 10px !important;
  }

  /* Atalhos: wrap compacto */
  .gf-home-hero-atalhos {
    gap: 6px;
    justify-content: flex-start;
  }
  .gf-atalho {
    font-size: .78rem;
    padding: 6px 12px;
  }

  /* Stats bar: 2 colunas */
  .gf-stats-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding: 12px 8px;
  }
  .gf-stat-item {
    padding: 8px 12px;
    border-bottom: 1px solid #f3f4f6;
  }
  .gf-stat-item strong { font-size: 1.1rem; }
  .gf-stat-sep { display: none; }
  /* Quebra o nowrap para caber nas 2 colunas */
  .gf-stat-item span {
    white-space: normal !important;
    font-size: .68rem !important;
    line-height: 1.3 !important;
    max-width: 100%;
  }
}

/* ═══════════════════════════════════════════════
   MOBILE GLOBAL — imagens, overflow, contraste
═══════════════════════════════════════════════ */

/* Imagens nunca transbordam o container */
img { max-width: 100% !important; height: auto !important; }
html, body { overflow-x: hidden; }

/* Post thumbnails — preenche a largura correta */
.post_thumb img,
.card .post_thumb img,
.post-display-grid .post_thumb img {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  display: block !important;
}

/* Containers não criam scroll lateral */
.cm-container { max-width: 100%; }
.entry-content, .the_content { overflow-wrap: break-word; word-break: break-word; }

/* Tabelas dentro do conteúdo — scroll interno, não quebra layout */
.entry-content table, .the_content table { display: block; overflow-x: auto; }

/* ─── CTA banner (guiafono-cta.php) — mobile ─── */
@media (max-width: 500px) {
  .gf-home-banner { padding: 32px 16px !important; }
  .gf-home-banner-btns {
    flex-direction: column !important;
    align-items: stretch !important;
  }
  .gf-home-btn-primary,
  .gf-home-btn-outline {
    text-align: center !important;
    padding: 13px 20px !important;
    box-sizing: border-box !important;
  }
}

/* ─── Diretório — card interno estreito ─── */
@media (max-width: 380px) {
  .fono-card-inner {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
  }
  .fono-card-footer {
    justify-content: center !important;
    flex-wrap: wrap !important;
  }
}

/* ─── Conteúdo de artigos — tipografia fluida ─── */
@media (max-width: 640px) {
  .the_content h2, .entry-content h2 {
    font-size: clamp(18px, 5vw, 24px) !important;
    margin-top: 1.6em !important;
  }
  .the_content h3, .entry-content h3 {
    font-size: clamp(16px, 4.5vw, 20px) !important;
  }
  .the_content, .entry-content { font-size: 15px !important; }
  pre, code { max-width: 100%; overflow-x: auto; white-space: pre-wrap; word-break: break-all; }

  /* Busca do diretório — empilha campos */
  .fono-search-form { padding: 20px 16px !important; }
  .fono-search-grid  { grid-template-columns: 1fr !important; }

  /* Formulários CF7 na página seja-parceiro */
  .wpcf7-form .wpcf7-form-control-wrap { display: block; width: 100%; }
}

/* ─── Especialidades inline style override ─── */
@media (max-width: 640px) {
  /* Sobrepõe font-size fixos de páginas criadas programaticamente */
  .entry-content [style*="font-size: 24px"],
  .the_content [style*="font-size: 24px"] {
    font-size: clamp(18px, 5vw, 22px) !important;
  }
  .entry-content [style*="font-size: 20px"],
  .the_content [style*="font-size: 20px"] {
    font-size: clamp(16px, 4.5vw, 20px) !important;
  }
  /* Ícones/avatares com tamanho fixo — garantem responsividade */
  .entry-content [style*="width: 72px"],
  .the_content [style*="width: 72px"] {
    max-width: 56px !important;
    height: auto !important;
  }
}

/* ─── Banner — hero strip extra-estreito (<360px) ─── */
@media (max-width: 360px) {
  .gf-home-hero { padding: 24px 12px 20px !important; }
  .gf-home-hero-copy h1 { font-size: 1.35rem !important; }
  .gf-hero-search-row { padding: 10px !important; }
  .gf-atalho { font-size: .72rem !important; padding: 5px 10px !important; }
}

/* ─── Espaço entre nav e hero ─── */
.gf-home-hero { margin-top: 20px; }

/* ─── Scroll suave global ─── */
html { scroll-behavior: smooth; }

/* ─── WooCommerce — sobrepõe laranja-vermelho do tema com purple Guiafono ─── */
.woocommerce span.onsale,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce .button.alt { background-color: var(--gf-purple) !important; color: #fff !important; }
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce .button.alt:hover { background-color: var(--gf-purple-dark) !important; color: #fff !important; }
.woocommerce-page .wc-block-grid__product-onsale { background-color: var(--gf-purple) !important; }

/* ─── Oculta título duplicado do tema nas páginas com heading próprio ─── */
.page-slug-seja-parceiro .entry-title,
.page-slug-materiais .entry-title,
.page-slug-triagem-infantil .entry-title,
.page-slug-triagem-vocal .entry-title,
.page-slug-triagem-adulto .entry-title,
.page-slug-checklist-fala .entry-title,
.page-slug-newsletter .entry-title,
.page-slug-newsletter-pro .entry-title,
.page-slug-fonoaudiologos .entry-title {
    display: none !important;
}

/* ═══════════════════════════════════════════════
   CODEx UX refresh — 2026-04-30
   Ajustes de polish sem trocar tema ou plugins.
═══════════════════════════════════════════════ */
:root {
  --gf-trust: #0f766e;
  --gf-trust-dark: #115e59;
  --gf-warm: #d97706;
}

.gf-home-hero {
  margin-top: 0 !important;
  padding: clamp(34px, 5vw, 68px) 16px 42px !important;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, .08), rgba(94, 23, 235, .06)),
    #fbfefd !important;
  border-bottom: 1px solid rgba(15, 118, 110, .12);
}

.gf-home-hero-inner {
  max-width: 1120px !important;
  margin: 0 auto !important;
}

.gf-home-eyebrow {
  margin: 0 0 10px !important;
  color: var(--gf-trust-dark) !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
}

.gf-home-hero-copy h1 {
  max-width: 850px !important;
  margin: 0 auto 16px !important;
  font-size: clamp(2rem, 5vw, 4.6rem) !important;
  line-height: 1.04 !important;
  letter-spacing: 0 !important;
  color: #11231f !important;
}

.gf-home-hero-copy p:not(.gf-home-eyebrow) {
  max-width: 720px !important;
  margin: 0 auto !important;
  color: #43534f !important;
  font-size: clamp(1rem, 2vw, 1.18rem) !important;
}

.gf-home-hero-search {
  max-width: 860px !important;
  margin: 28px auto 0 !important;
}

.gf-hero-search-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1.5fr) 160px auto !important;
  gap: 10px !important;
  align-items: center !important;
  padding: 10px !important;
  background: #fff !important;
  border: 1px solid rgba(15, 118, 110, .16) !important;
  border-radius: 12px !important;
  box-shadow: 0 18px 55px rgba(17, 35, 31, .10) !important;
}

.gf-hero-input,
.gf-hero-select {
  min-height: 46px !important;
  border: 1px solid #dbe7e4 !important;
  border-radius: 8px !important;
  background: #f8fbfa !important;
  color: #11231f !important;
  font-size: 15px !important;
}

.gf-hero-input:focus,
.gf-hero-select:focus {
  border-color: var(--gf-trust) !important;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, .16) !important;
  outline: none !important;
}

.gf-hero-btn {
  min-height: 46px !important;
  white-space: nowrap !important;
  border-radius: 8px !important;
  background: var(--gf-trust) !important;
  box-shadow: none !important;
  font-weight: 800 !important;
}

.gf-hero-btn:hover {
  background: var(--gf-trust-dark) !important;
}

.gf-home-hero-atalhos {
  justify-content: center !important;
  gap: 8px !important;
  margin-top: 18px !important;
}

.gf-atalho {
  border: 1px solid rgba(15, 118, 110, .16) !important;
  background: rgba(255, 255, 255, .78) !important;
  color: #29413c !important;
  border-radius: 999px !important;
  font-weight: 750 !important;
  text-decoration: none !important;
}

.gf-atalho:hover {
  border-color: rgba(15, 118, 110, .36) !important;
  color: var(--gf-trust-dark) !important;
}

.gf-atalho--cta {
  background: #fff3dd !important;
  border-color: #f6d28d !important;
  color: #7a4406 !important;
}

.gf-home-stats-bar {
  background: #ffffff !important;
  border-top: 1px solid #e4eeeb !important;
  border-bottom: 1px solid #e4eeeb !important;
}

.gf-stat-item strong {
  color: var(--gf-trust-dark) !important;
}

.fono-search-form {
  background: linear-gradient(135deg, #0f766e 0%, #115e59 100%) !important;
  box-shadow: 0 14px 38px rgba(15, 118, 110, .18) !important;
}

.fono-search-form button {
  color: var(--gf-trust-dark) !important;
}

.fono-tag,
.fono-profile-tags .fono-tag {
  background: #e6f5f1 !important;
  color: var(--gf-trust-dark) !important;
}

.fono-card--premium,
.fono-card:hover {
  border-color: rgba(15, 118, 110, .22) !important;
}

.fono-badge-premium {
  background: linear-gradient(90deg, var(--gf-trust), var(--gf-trust-dark)) !important;
}

.site-content,
.news-area {
  background: #f7faf9 !important;
}

.entry-content a,
.the_content a {
  text-decoration-thickness: 1px !important;
  text-underline-offset: 3px !important;
}

@media (max-width: 720px) {
  .gf-hero-search-row {
    grid-template-columns: 1fr !important;
  }

  .gf-hero-btn {
    width: 100% !important;
  }

  .gf-home-hero-copy h1 {
    font-size: clamp(2rem, 11vw, 2.8rem) !important;
  }
}

/* ─── Menu principal — corrige perda de hover no caminho até o submenu ─── */
.primary-navigation ul li.menu-item-has-children {
  position: relative !important;
}

.primary-navigation ul li.menu-item-has-children > ul.sub-menu {
  top: 100% !important;
  margin-top: 0 !important;
  z-index: 10000 !important;
  pointer-events: auto !important;
}

.primary-navigation ul li.menu-item-has-children > ul.sub-menu::before {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  top: -12px !important;
  height: 12px !important;
  display: block !important;
}

.primary-navigation ul li.menu-item-has-children:hover > ul.sub-menu,
.primary-navigation ul li.menu-item-has-children:focus-within > ul.sub-menu {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

/* ═══════════════════════════════════════════════
   Visual maturity pass — menos cor solta, mais produto
═══════════════════════════════════════════════ */
:root {
  --gf-ink: #12201d;
  --gf-copy: #475955;
  --gf-subtle: #eef6f4;
  --gf-line-soft: #dce9e6;
  --gf-paper: #ffffff;
}

body,
.site-content,
.news-area {
  background: #f6faf8 !important;
}

.site-header {
  box-shadow: 0 1px 0 rgba(18, 32, 29, .08) !important;
}

.site-branding .site-title a {
  color: var(--gf-ink) !important;
}

.primary-navigation > ul > li > a,
.primary-navigation ul li a {
  color: #334642 !important;
  background: transparent !important;
}

.primary-navigation > ul > li > a:hover,
.primary-navigation ul li a:hover,
.primary-navigation > ul > li.current-menu-item > a {
  background: var(--gf-subtle) !important;
  color: var(--gf-trust-dark) !important;
}

.primary-navigation > ul > li > a[href*="seja-parceiro"],
.primary-navigation > ul > li > a[href*="seja-parceiro"]:hover {
  background: #113f3a !important;
  color: #fff !important;
}

.primary-navigation ul ul {
  border: 1px solid var(--gf-line-soft) !important;
  box-shadow: 0 18px 40px rgba(18, 32, 29, .12) !important;
}

.gf-home-hero {
  background:
    linear-gradient(135deg, rgba(15, 118, 110, .11), rgba(255, 255, 255, .72) 46%, rgba(217, 119, 6, .08)),
    #fbfefd !important;
}

.gf-home-hero-copy h1 {
  color: var(--gf-ink) !important;
  max-width: 920px !important;
}

.gf-home-hero-copy p:not(.gf-home-eyebrow),
.lead,
.cm-post-excerpt,
.card .cm-post-excerpt {
  color: var(--gf-copy) !important;
}

.gf-hero-search-row {
  border-color: rgba(15, 118, 110, .22) !important;
  box-shadow: 0 22px 60px rgba(18, 32, 29, .11) !important;
}

.section-title,
.section-title h2,
.sidebar-widget-area .widget .widget-title h2,
.sidebar-widget-area .widget-title h2 {
  color: var(--gf-ink) !important;
  font-size: 16px !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

.section-title h2::after,
.sidebar-widget-area .widget .widget-title h2::after,
.footer-widget-container .widget .widget-title h2::after {
  width: 42px !important;
  height: 3px !important;
  background: var(--gf-warm) !important;
}

.card,
.post-display-grid .card,
.sidebar-widget-area .widget,
.fono-card,
.gf-cad-form,
.gf-lm-card,
.gf-nl-card {
  border-color: var(--gf-line-soft) !important;
  border-radius: 12px !important;
  box-shadow: 0 10px 28px rgba(18, 32, 29, .06) !important;
}

.card:hover,
.post-display-grid .card:hover,
.fono-card:hover {
  box-shadow: 0 18px 42px rgba(18, 32, 29, .10) !important;
}

.post_title h2 a,
.card .post_title h2 a,
.card_content .post_title h2 a,
.fono-card-name a {
  color: var(--gf-ink) !important;
}

.entry_cats ul.post-categories li a,
.badge,
.fono-tag {
  background: var(--gf-subtle) !important;
  color: var(--gf-trust-dark) !important;
}

.news_ticker_wrap,
.ticker_head {
  display: none !important;
}

@media (max-width: 720px) {
  .site-header {
    position: static !important;
  }

  .gf-home-hero {
    padding-top: 34px !important;
  }
}

/* ═══════════════════════════════════════════════
   Institutional health refresh — Einstein-inspired, Guiafono-owned
   2026-04-30
═══════════════════════════════════════════════ */
:root {
  --gf-blue: #0057a8;
  --gf-blue-dark: #003b73;
  --gf-blue-soft: #eaf4ff;
  --gf-aqua: #00a88e;
  --gf-ink: #1f2d3a;
  --gf-copy: #4b5c6b;
  --gf-muted: #6d7d8a;
  --gf-border: #dbe6ef;
  --gf-surface: #ffffff;
  --gf-bg: #f5f8fb;
  --gf-font-body: "Inter", Arial, sans-serif;
  --gf-font-head: "Sora", Arial, sans-serif;
  --gf-purple: var(--gf-blue);
  --gf-trust: var(--gf-blue);
  --gf-trust-dark: var(--gf-blue-dark);
  --gf-warm: var(--gf-aqua);
}

html,
body {
  background: var(--gf-bg) !important;
  color: var(--gf-ink) !important;
  font-family: var(--gf-font-body) !important;
}

.site-content,
.news-area,
.middle-news-area,
.bottom-news-area,
.cm_post_widget_six,
.cm-post-widget-section {
  background: var(--gf-bg) !important;
}

.cm-container {
  max-width: 1180px !important;
}

.site-header,
.main-navigation,
.is-sticky .site-header {
  background: rgba(255, 255, 255, .96) !important;
  border-bottom: 1px solid rgba(0, 87, 168, .10) !important;
  box-shadow: 0 8px 26px rgba(18, 45, 74, .06) !important;
}

.site-title a,
.site-branding .site-title a {
  color: var(--gf-blue-dark) !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
}

.site-description {
  color: var(--gf-muted) !important;
}

.primary-navigation > ul > li > a,
.primary-navigation ul li a {
  color: #2c4053 !important;
  border-radius: 8px !important;
  font-weight: 650 !important;
}

.primary-navigation > ul > li > a:hover,
.primary-navigation ul li a:hover,
.primary-navigation > ul > li.current-menu-item > a,
.primary-navigation > ul > li.current-menu-ancestor > a {
  background: var(--gf-blue-soft) !important;
  color: var(--gf-blue-dark) !important;
}

.primary-navigation > ul > li > a[href*="seja-parceiro"],
.primary-navigation > ul > li > a[href*="cadastro"],
.primary-navigation > ul > li > a[href*="seja-parceiro"]:hover,
.primary-navigation > ul > li > a[href*="cadastro"]:hover {
  background: var(--gf-blue) !important;
  color: #fff !important;
  box-shadow: 0 10px 24px rgba(0, 87, 168, .20) !important;
}

.primary-navigation ul ul {
  background: #fff !important;
  border: 1px solid var(--gf-border) !important;
  border-radius: 10px !important;
  box-shadow: 0 22px 50px rgba(18, 45, 74, .14) !important;
}

.gf-home-hero {
  background:
    radial-gradient(circle at 80% 10%, rgba(0, 168, 142, .12), transparent 30%),
    linear-gradient(135deg, #f8fbff 0%, #edf6ff 48%, #ffffff 100%) !important;
  border-bottom: 1px solid rgba(0, 87, 168, .10) !important;
}

.gf-home-eyebrow,
.entry_cats ul.post-categories li a,
.badge,
.fono-tag {
  background: var(--gf-blue-soft) !important;
  color: var(--gf-blue-dark) !important;
  border: 1px solid rgba(0, 87, 168, .10) !important;
}

.gf-home-hero-copy h1,
h1,
h2,
h3,
.section-title h2,
.sidebar-widget-area .widget-title h2,
.post_title h2 a,
.card .post_title h2 a,
.fono-card-name a {
  color: var(--gf-ink) !important;
  font-family: var(--gf-font-head) !important;
  letter-spacing: 0 !important;
}

.gf-home-hero-copy p:not(.gf-home-eyebrow),
.cm-post-excerpt,
.fono-card-meta,
.fono-result-count,
.post_meta li,
.post_meta li a {
  color: var(--gf-copy) !important;
}

.gf-hero-search-row,
.fono-search-form,
.card,
.post-display-grid .card,
.sidebar-widget-area .widget,
.fono-card,
.gf-cad-form,
.gf-lm-card,
.gf-nl-card {
  background: var(--gf-surface) !important;
  border: 1px solid var(--gf-border) !important;
  border-radius: 10px !important;
  box-shadow: 0 14px 36px rgba(18, 45, 74, .07) !important;
}

.gf-hero-search-row:focus-within,
.fono-search-form:focus-within,
.gf-cad-field input:focus,
.gf-cad-field select:focus,
.gf-cad-field textarea:focus,
.fono-search-form select:focus,
.fono-search-form input[type="text"]:focus {
  border-color: rgba(0, 87, 168, .55) !important;
  box-shadow: 0 0 0 4px rgba(0, 87, 168, .10) !important;
}

button,
input[type="button"],
input[type="reset"],
input[type="submit"],
.gf-hero-btn,
.gf-cad-btn--next,
.gf-cad-btn--submit,
.fono-search-form button,
.wpcf7-submit {
  background: var(--gf-blue) !important;
  border-color: var(--gf-blue) !important;
  color: #fff !important;
  border-radius: 8px !important;
  font-weight: 750 !important;
  box-shadow: 0 10px 22px rgba(0, 87, 168, .18) !important;
}

button:hover,
input[type="submit"]:hover,
.gf-hero-btn:hover,
.gf-cad-btn--next:hover,
.gf-cad-btn--submit:hover:not(:disabled),
.fono-search-form button:hover,
.wpcf7-submit:hover {
  background: var(--gf-blue-dark) !important;
  border-color: var(--gf-blue-dark) !important;
  color: #fff !important;
  transform: translateY(-1px);
}

a,
.the_content a,
.gf-cad-hint a {
  color: var(--gf-blue) !important;
}

a:hover,
.the_content a:hover,
.post_title h2 a:hover,
.card .post_title h2 a:hover,
.fono-card-name a:hover {
  color: var(--gf-blue-dark) !important;
}

.section-title,
.sidebar-widget-area .widget .widget-title,
.footer-widget-container .widget .widget-title {
  border-bottom-color: var(--gf-border) !important;
}

.section-title h2::after,
.sidebar-widget-area .widget .widget-title h2::after,
.footer-widget-container .widget .widget-title h2::after,
#comments div#respond h3#reply-title::after,
#comments h2.comments-title:after {
  background: var(--gf-aqua) !important;
}

.gf-cad-step-indicator.active .gf-cad-step-num,
.gf-cad-step-indicator.done .gf-cad-step-num,
.gf-cad-check:has(input:checked),
.gf-cad-check--optin:has(input:checked) {
  border-color: var(--gf-blue) !important;
  background: var(--gf-blue-soft) !important;
}

.gf-cad-check.checked,
.gf-cad-check input[type="checkbox"]:checked + span {
  color: var(--gf-blue-dark) !important;
}

.fono-search-form {
  background: linear-gradient(135deg, var(--gf-blue-dark), var(--gf-blue)) !important;
}

.fono-search-form select option {
  background: #fff !important;
  color: var(--gf-ink) !important;
}

.news_ticker_wrap,
.ticker_head,
.trending_widget_carousel {
  display: none !important;
}

@media (max-width: 720px) {
  .gf-home-hero-copy h1 {
    font-size: clamp(32px, 10vw, 44px) !important;
    line-height: 1.08 !important;
  }

  .primary-navigation > ul > li > a,
  .primary-navigation ul li a {
    border-radius: 0 !important;
  }
}

/* ═══════════════════════════════════════════════
   Homepage product pass — menos revista, mais plataforma
═══════════════════════════════════════════════ */
.home .banner-area,
.home .bottom-news-area,
.home #secondary.sidebar-widget-area {
  display: none !important;
}

.home .middle-news-area .sticky_portion,
.home .middle-news-area .content-area,
.home .middle-news-area .site-main {
  width: 100% !important;
  max-width: 100% !important;
  flex: 0 0 100% !important;
}

.home .top-news-area,
.home .middle-news-area {
  padding: 34px 0 !important;
}

.home .cm-post-widget-section {
  margin: 0 0 34px !important;
  padding: 0 !important;
}

.home .section-title {
  margin-bottom: 18px !important;
  padding-bottom: 12px !important;
}

.home .section-title h2,
.home .sidebar-widget-area .widget-title h2 {
  font-size: 20px !important;
  line-height: 1.25 !important;
  font-weight: 760 !important;
}

.home .post_thumb img,
.home .card img,
.home .post-holder img {
  border-radius: 8px !important;
  filter: saturate(.86) contrast(.98) !important;
}

.home .card,
.home .post-display-grid .card,
.home .big-card,
.home .small-card,
.home .post_thumb {
  overflow: hidden !important;
}

.home .card_content,
.home .post-holder {
  padding: 16px !important;
}

.home .entry_cats {
  margin-bottom: 8px !important;
}

.home .entry_cats ul.post-categories li a {
  border-radius: 999px !important;
  font-size: 11px !important;
  font-weight: 720 !important;
  padding: 5px 9px !important;
  text-transform: none !important;
}

.home .post_meta,
.home .post_meta li {
  font-size: 12px !important;
  color: var(--gf-muted) !important;
}

.gf-home-hero {
  padding: 58px 16px 42px !important;
}

.gf-home-hero-inner {
  max-width: 1080px !important;
}

.gf-home-eyebrow {
  display: inline-flex !important;
  width: auto !important;
  padding: 7px 12px !important;
  border-radius: 999px !important;
  font-size: 12px !important;
  font-weight: 760 !important;
  text-transform: uppercase !important;
  letter-spacing: .04em !important;
}

.gf-home-hero-copy h1 {
  max-width: 840px !important;
  margin-top: 16px !important;
  font-size: clamp(40px, 5vw, 64px) !important;
  line-height: 1.02 !important;
}

.gf-home-hero-copy p:not(.gf-home-eyebrow) {
  max-width: 720px !important;
  font-size: 18px !important;
  line-height: 1.7 !important;
}

.gf-hero-search-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1.2fr) minmax(150px, .55fr) auto !important;
  gap: 10px !important;
  padding: 10px !important;
}

.gf-hero-input,
.gf-hero-select {
  height: 48px !important;
  border: 1px solid var(--gf-border) !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: var(--gf-ink) !important;
}

.gf-home-hero-atalhos {
  gap: 10px !important;
}

.gf-atalho {
  background: rgba(255, 255, 255, .78) !important;
  border: 1px solid rgba(0, 87, 168, .14) !important;
  border-radius: 999px !important;
  color: var(--gf-blue-dark) !important;
  font-weight: 700 !important;
  padding: 9px 14px !important;
}

.gf-atalho--cta {
  background: var(--gf-blue-dark) !important;
  color: #fff !important;
}

.gf-home-stats-bar {
  background: #fff !important;
  border-top: 1px solid var(--gf-border) !important;
  border-bottom: 1px solid var(--gf-border) !important;
}

.gf-stats-row {
  gap: 0 !important;
}

.gf-stat-item strong {
  color: var(--gf-blue-dark) !important;
}

.gf-stat-item span {
  color: var(--gf-copy) !important;
}

.gf-home-actions {
  background: #fff !important;
  border-bottom: 1px solid var(--gf-border) !important;
  padding: 44px 0 !important;
}

.gf-actions-heading {
  max-width: 720px !important;
  margin-bottom: 22px !important;
}

.gf-actions-heading span {
  color: var(--gf-aqua) !important;
  display: block !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  letter-spacing: .04em !important;
  margin-bottom: 8px !important;
  text-transform: uppercase !important;
}

.gf-actions-heading h2 {
  color: var(--gf-ink) !important;
  font-size: clamp(26px, 3vw, 38px) !important;
  line-height: 1.16 !important;
  margin: 0 !important;
}

.gf-actions-grid {
  display: grid !important;
  gap: 16px !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.gf-action-card {
  background: #f8fbff !important;
  border: 1px solid var(--gf-border) !important;
  border-radius: 10px !important;
  color: var(--gf-ink) !important;
  display: block !important;
  min-height: 190px !important;
  padding: 22px !important;
  text-decoration: none !important;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease !important;
}

.gf-action-card:hover {
  border-color: rgba(0, 87, 168, .35) !important;
  box-shadow: 0 18px 44px rgba(18, 45, 74, .10) !important;
  transform: translateY(-2px) !important;
}

.gf-action-kicker {
  color: var(--gf-blue) !important;
  display: block !important;
  font-size: 12px !important;
  font-weight: 760 !important;
  margin-bottom: 18px !important;
}

.gf-action-card strong {
  color: var(--gf-ink) !important;
  display: block !important;
  font-family: var(--gf-font-head) !important;
  font-size: 22px !important;
  line-height: 1.22 !important;
  margin-bottom: 10px !important;
}

.gf-action-card p {
  color: var(--gf-copy) !important;
  font-size: 15px !important;
  line-height: 1.6 !important;
  margin: 0 !important;
}

.gf-home-banner {
  background: linear-gradient(135deg, var(--gf-blue-dark), var(--gf-blue)) !important;
}

@media (max-width: 860px) {
  .gf-hero-search-row,
  .gf-actions-grid {
    grid-template-columns: 1fr !important;
  }

  .gf-home-hero-copy h1 {
    font-size: clamp(34px, 10vw, 48px) !important;
  }

  .gf-home-actions {
    padding: 34px 0 !important;
  }
}

/* ═══════════════════════════════════════════════
   Card image normalization — grade mais calma
═══════════════════════════════════════════════ */
.home .cm-post-widget-two .big-card .post_thumb,
.home .cm-post-widget-three .post_thumb,
.home .cm_middle_post_widget_one .post_thumb,
.home .cm_middle_post_widget_four .post_thumb,
.home .cm_post_widget_six .post_thumb,
.home .cm_middle_post_widget_six .card.post_thumb {
  aspect-ratio: 16 / 10 !important;
  background-position: center !important;
  background-size: cover !important;
  min-height: 0 !important;
  position: relative !important;
}

.home .cm-post-widget-two .big-card .post_thumb > a,
.home .cm-post-widget-three .post_thumb > a,
.home .cm_middle_post_widget_one .post_thumb > a,
.home .cm_middle_post_widget_four .post_thumb > a,
.home .cm_post_widget_six .post_thumb > a,
.home .small-card .post_thumb > a {
  display: block !important;
  height: 100% !important;
  width: 100% !important;
}

.home .cm-post-widget-two .big-card .post_thumb img,
.home .cm-post-widget-three .post_thumb img,
.home .cm_middle_post_widget_one .post_thumb img,
.home .cm_middle_post_widget_four .post_thumb img,
.home .cm_post_widget_six .post_thumb img,
.home .small-card .post_thumb img {
  aspect-ratio: 16 / 10 !important;
  display: block !important;
  height: 100% !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center !important;
  width: 100% !important;
}

.home .cm-post-widget-two .big-card {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
}

.home .cm-post-widget-two .big-card .post-holder {
  bottom: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-end !important;
  min-height: 38% !important;
}

.home .cm-post-widget-three .card {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
}

.home .cm-post-widget-three .card_content {
  display: flex !important;
  flex: 1 1 auto !important;
  flex-direction: column !important;
}

.home .cm-post-widget-three .post_meta {
  margin-top: auto !important;
}

.home .cm_post_widget_six .post_thumb,
.home .small-card .post_thumb {
  aspect-ratio: 4 / 3 !important;
  flex: 0 0 145px !important;
  width: 145px !important;
}

.home .cm_post_widget_six .post_thumb img,
.home .small-card .post_thumb img {
  aspect-ratio: 4 / 3 !important;
}

@media (max-width: 720px) {
  .home .cm-post-widget-two .big-card .post_thumb,
  .home .cm-post-widget-three .post_thumb,
  .home .cm_middle_post_widget_one .post_thumb,
  .home .cm_middle_post_widget_four .post_thumb,
  .home .cm_middle_post_widget_six .card.post_thumb {
    aspect-ratio: 16 / 11 !important;
  }

  .home .cm_post_widget_six .post_thumb,
  .home .small-card .post_thumb {
    flex-basis: 112px !important;
    width: 112px !important;
  }
}

/* O widget six do tema nasce como lista horizontal; na home ele vira card. */
.home .cm_post_widget_six .box {
  background: #fff !important;
  border: 1px solid var(--gf-border) !important;
  border-radius: 10px !important;
  box-shadow: 0 14px 36px rgba(18, 45, 74, .07) !important;
  height: 100% !important;
  overflow: hidden !important;
}

.home .cm_post_widget_six .box > .row {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  margin: 0 !important;
}

.home .cm_post_widget_six .box > .row > [class*="cm-col-"] {
  flex: 0 0 auto !important;
  max-width: 100% !important;
  padding: 0 !important;
  width: 100% !important;
}

.home .cm_post_widget_six .box .post_thumb {
  aspect-ratio: 16 / 10 !important;
  border-radius: 0 !important;
  flex: none !important;
  width: 100% !important;
}

.home .cm_post_widget_six .box .post_thumb a,
.home .cm_post_widget_six .box .post_thumb figure {
  display: block !important;
  height: 100% !important;
  margin: 0 !important;
  width: 100% !important;
}

.home .cm_post_widget_six .box .post_thumb img {
  aspect-ratio: 16 / 10 !important;
  border-radius: 0 !important;
  display: block !important;
  height: 100% !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center !important;
  width: 100% !important;
}

.home .cm_post_widget_six .box .right_box {
  display: flex !important;
  flex: 1 1 auto !important;
  flex-direction: column !important;
  padding: 16px !important;
}

.home .cm_post_widget_six .box .post_title h2 {
  margin: 0 0 12px !important;
}

.home .cm_post_widget_six .box .post_title h2 a {
  font-size: 17px !important;
  line-height: 1.28 !important;
}

.home .cm_post_widget_six .box .cm-post-meta {
  margin-top: auto !important;
}

/* ═══════════════════════════════════════════════
   Unified news cards — mesmo layout para todas as notícias
═══════════════════════════════════════════════ */
.home .cm-row-large-posts,
.home .cm-post-widget-three > .section_inner > .row,
.home .cm_middle_post_widget_one > .section_inner > .row,
.home .cm_middle_post_widget_four > .section_inner > .row,
.home .bottom-news-area .row {
  align-items: stretch !important;
}

.home .cm-row-large-posts > [class*="cm-col-"],
.home .cm-post-widget-three > .section_inner > .row > [class*="cm-col-"],
.home .cm_middle_post_widget_one > .section_inner > .row > [class*="cm-col-"],
.home .cm_middle_post_widget_four > .section_inner > .row > [class*="cm-col-"] {
  display: flex !important;
  margin-bottom: 24px !important;
}

.home .cm-row-large-posts > [class*="cm-col-"] {
  flex: 0 0 50% !important;
  max-width: 50% !important;
}

.home .cm-row-large-posts .big-card {
  background: #fff !important;
  border: 1px solid var(--gf-border) !important;
  border-radius: 10px !important;
  box-shadow: 0 14px 36px rgba(18, 45, 74, .07) !important;
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  overflow: hidden !important;
  width: 100% !important;
}

.home .cm-row-large-posts .big-card .post_thumb {
  aspect-ratio: auto !important;
  background: transparent !important;
  border-radius: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  overflow: visible !important;
}

.home .cm-row-large-posts .big-card .post_thumb::before,
.home .cm-row-large-posts .big-card .post_thumb::after,
.home .cm-row-large-posts .big-card .post_thumb .mask {
  display: none !important;
}

.home .cm-row-large-posts .big-card .post_thumb > a,
.home .cm-row-large-posts .big-card .post_thumb figure {
  display: block !important;
  height: auto !important;
  margin: 0 !important;
  width: 100% !important;
}

.home .cm-row-large-posts .big-card .post_thumb img {
  aspect-ratio: 16 / 10 !important;
  border-radius: 0 !important;
  display: block !important;
  height: auto !important;
  object-fit: cover !important;
  object-position: center !important;
  width: 100% !important;
}

.home .cm-row-large-posts .big-card .post-holder {
  background: #fff !important;
  bottom: auto !important;
  color: var(--gf-ink) !important;
  display: flex !important;
  flex: 1 1 auto !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  left: auto !important;
  min-height: 176px !important;
  padding: 16px !important;
  position: static !important;
  right: auto !important;
  text-shadow: none !important;
  top: auto !important;
  width: 100% !important;
}

.home .cm-row-large-posts .big-card .post_title h2 {
  margin: 0 0 12px !important;
}

.home .cm-row-large-posts .big-card .post_title h2 a,
.home .cm-row-large-posts .big-card .post_meta a,
.home .cm-row-large-posts .big-card .post_meta li {
  color: var(--gf-ink) !important;
  text-shadow: none !important;
}

.home .cm-row-large-posts .big-card .post_title h2 a {
  font-size: 18px !important;
  line-height: 1.28 !important;
}

.home .cm-row-large-posts .big-card .post_meta,
.home .cm-row-large-posts .big-card .cm-post-meta {
  margin-top: auto !important;
}

.home .cm-row-large-posts .big-card .post_meta li,
.home .cm-row-large-posts .big-card .post_meta a {
  color: var(--gf-copy) !important;
}

.home .cm-post-widget-three .card,
.home .cm-row-large-posts .big-card,
.home .cm_post_widget_six .box {
  min-height: 412px !important;
}

.home .cm-post-widget-three .card .post_title h2 a,
.home .cm_post_widget_six .box .post_title h2 a {
  font-size: 18px !important;
  line-height: 1.28 !important;
}

@media (max-width: 860px) {
  .home .cm-row-large-posts > [class*="cm-col-"] {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }

  .home .cm-post-widget-three .card,
  .home .cm-row-large-posts .big-card,
  .home .cm_post_widget_six .box {
    min-height: 0 !important;
  }
}

/* ═══════════════════════════════════════════════
   Specialty pages — mesma linguagem da home
═══════════════════════════════════════════════ */
.page .the_content:has(.fono-directory-wrap),
.tax-fono_especialidade .cm_archive_page {
  --gf-specialty-max: 980px;
}

.page:has(.fono-directory-wrap) .inner-page-wrapper,
.tax-fono_especialidade .inner-page-wrapper {
  padding-top: 0 !important;
}

.page:has(.fono-directory-wrap) .content-area,
.tax-fono_especialidade .content-area,
.page:has(.fono-directory-wrap) #primary,
.tax-fono_especialidade #primary {
  float: none !important;
  max-width: 100% !important;
  width: 100% !important;
}

.page:has(.fono-directory-wrap) .inner-page-wrapper > .row,
.tax-fono_especialidade .archive-container > .row {
  display: block !important;
}

.page:has(.fono-directory-wrap) .sticky_portion,
.tax-fono_especialidade .sticky_portion {
  max-width: 100% !important;
  width: 100% !important;
}

.page:has(.fono-directory-wrap) #secondary,
.tax-fono_especialidade #secondary,
.page:has(.fono-directory-wrap) .sidebar-widget-area,
.tax-fono_especialidade .sidebar-widget-area {
  display: none !important;
}

.page:has(.fono-directory-wrap) .breadcrumb,
.tax-fono_especialidade .breadcrumb {
  margin: 18px 0 18px !important;
}

.page:has(.fono-directory-wrap) .breadcrumb-trail,
.tax-fono_especialidade .breadcrumb-trail {
  color: var(--gf-muted) !important;
  font-size: 13px !important;
}

.page:has(.fono-directory-wrap) article.page,
.tax-fono_especialidade .content-entry,
.tax-fono_especialidade .nothing-found {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.page:has(.fono-directory-wrap) .entry-header,
.page:has(.fono-directory-wrap) article.page > h1,
.tax-fono_especialidade .section-title {
  background:
    radial-gradient(circle at 88% 10%, rgba(0, 168, 142, .14), transparent 28%),
    linear-gradient(135deg, #f8fbff 0%, #edf6ff 56%, #ffffff 100%) !important;
  border: 1px solid rgba(0, 87, 168, .12) !important;
  border-radius: 12px !important;
  box-shadow: 0 18px 48px rgba(18, 45, 74, .08) !important;
  margin: 0 0 24px !important;
  padding: 38px 38px 34px !important;
}

.page:has(.fono-directory-wrap) article.page > h1,
.tax-fono_especialidade .section-title h1 {
  color: var(--gf-ink) !important;
  font-size: clamp(34px, 5vw, 56px) !important;
  line-height: 1.04 !important;
  margin: 0 !important;
  max-width: 820px !important;
}

.page:has(.fono-directory-wrap) .the_content {
  max-width: var(--gf-specialty-max) !important;
}

.page:has(.fono-directory-wrap) .the_content > h1.wp-block-heading {
  color: var(--gf-blue-dark) !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  letter-spacing: .04em !important;
  line-height: 1.4 !important;
  margin: 0 0 12px !important;
  text-transform: uppercase !important;
}

.page:has(.fono-directory-wrap) .the_content > p:first-of-type {
  color: var(--gf-copy) !important;
  font-size: 18px !important;
  line-height: 1.75 !important;
  margin: 0 0 28px !important;
  max-width: 820px !important;
}

.page:has(.fono-directory-wrap) .the_content > h2.wp-block-heading {
  color: var(--gf-ink) !important;
  font-size: 24px !important;
  line-height: 1.22 !important;
  margin: 30px 0 14px !important;
}

.page:has(.fono-directory-wrap) .the_content > ul.wp-block-list {
  background: #fff !important;
  border: 1px solid var(--gf-border) !important;
  border-radius: 10px !important;
  box-shadow: 0 12px 30px rgba(18, 45, 74, .06) !important;
  display: grid !important;
  gap: 10px !important;
  list-style: none !important;
  margin: 0 0 26px !important;
  padding: 18px !important;
}

.page:has(.fono-directory-wrap) .the_content > ul.wp-block-list li {
  color: var(--gf-copy) !important;
  line-height: 1.6 !important;
  padding-left: 26px !important;
  position: relative !important;
}

.page:has(.fono-directory-wrap) .the_content > ul.wp-block-list li::before {
  background: var(--gf-blue-soft) !important;
  border: 1px solid rgba(0, 87, 168, .18) !important;
  border-radius: 50% !important;
  color: var(--gf-blue) !important;
  content: "";
  height: 9px !important;
  left: 4px !important;
  position: absolute !important;
  top: .62em !important;
  width: 9px !important;
}

.page:has(.fono-directory-wrap) .fono-directory-wrap,
.tax-fono_especialidade .nothing-found,
.tax-fono_especialidade .error_foot {
  margin-top: 34px !important;
}

.page:has(.fono-directory-wrap) .fono-search-form,
.tax-fono_especialidade .cm-search-form {
  background:
    radial-gradient(circle at 94% 0%, rgba(0, 168, 142, .18), transparent 26%),
    linear-gradient(135deg, var(--gf-blue-dark), var(--gf-blue)) !important;
  border: 0 !important;
  border-radius: 12px !important;
  box-shadow: 0 18px 46px rgba(0, 59, 115, .16) !important;
  padding: 24px !important;
}

.page:has(.fono-directory-wrap) .fono-search-form::before {
  color: #fff !important;
  content: "Encontre profissionais nesta especialidade";
  display: block !important;
  font-family: var(--gf-font-head) !important;
  font-size: 22px !important;
  font-weight: 760 !important;
  grid-column: 1 / -1 !important;
  margin-bottom: 4px !important;
}

.page:has(.fono-directory-wrap) .fono-search-grid {
  align-items: end !important;
  gap: 14px !important;
}

.page:has(.fono-directory-wrap) .fono-search-field label {
  color: rgba(255, 255, 255, .88) !important;
  font-weight: 700 !important;
}

.page:has(.fono-directory-wrap) .fono-search-form input[type="text"],
.page:has(.fono-directory-wrap) .fono-search-form select {
  background: #fff !important;
  border: 1px solid rgba(255, 255, 255, .36) !important;
  border-radius: 8px !important;
  color: var(--gf-ink) !important;
  min-height: 46px !important;
}

.page:has(.fono-directory-wrap) .fono-search-form button {
  background: #fff !important;
  border-color: #fff !important;
  color: var(--gf-blue-dark) !important;
  min-height: 46px !important;
}

.page:has(.fono-directory-wrap) .fono-search-form button:hover {
  background: var(--gf-blue-soft) !important;
  color: var(--gf-blue-dark) !important;
}

.page:has(.fono-directory-wrap) .fono-empty-state {
  background: #fff !important;
  border: 1px solid var(--gf-border) !important;
  border-radius: 12px !important;
  box-shadow: 0 14px 36px rgba(18, 45, 74, .07) !important;
  margin-top: 22px !important;
  padding: 34px !important;
}

.page:has(.fono-directory-wrap) .fono-empty-icon {
  background: var(--gf-blue-soft) !important;
  border-radius: 50% !important;
  color: var(--gf-blue) !important;
  display: grid !important;
  height: 54px !important;
  margin: 0 auto 16px !important;
  place-items: center !important;
  width: 54px !important;
}

.page:has(.fono-directory-wrap) .fono-empty-state h3,
.tax-fono_especialidade .nothing-found h1 {
  color: var(--gf-ink) !important;
  font-family: var(--gf-font-head) !important;
}

.page:has(.fono-directory-wrap) .fono-empty-state p,
.tax-fono_especialidade .nothing-found p {
  color: var(--gf-copy) !important;
  line-height: 1.7 !important;
}

.tax-fono_especialidade .nothing-found {
  background: #fff !important;
  border: 1px solid var(--gf-border) !important;
  border-radius: 12px !important;
  box-shadow: 0 14px 36px rgba(18, 45, 74, .07) !important;
  padding: 28px !important;
}

@media (max-width: 720px) {
  .page:has(.fono-directory-wrap) .entry-header,
  .page:has(.fono-directory-wrap) article.page > h1,
  .tax-fono_especialidade .section-title {
    padding: 28px 20px !important;
  }

  .page:has(.fono-directory-wrap) .fono-search-form {
    padding: 20px !important;
  }
}
