/* VM cabeçalho: nome, locais, Ensaios e menu — v3, 2026-11-05 */

/* ---------- Base comum ---------- */
.vm-hlocais,
.vm-hensaios {
  font-family: "VM Jost", "VM Grego", "VM Jost fallback", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: .9rem;
  font-weight: 300;
  letter-spacing: .3em;
  line-height: 1.5;
  text-transform: uppercase;
  -webkit-font-smoothing: antialiased;
}
.vm-hlocais { margin: 0; color: #2a2925; }
html body .vm-hlocais a,
html body a.vm-hensaios {
  color: #141413;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color .18s ease, color .18s ease;
}
html body .vm-hlocais a:hover,
html body .vm-hlocais a:focus-visible,
html body a.vm-hensaios:hover,
html body a.vm-hensaios:focus-visible { border-bottom-color: currentColor; }
html body .vm-hlocais a[aria-current="page"],
html body a.vm-hensaios[aria-current="page"] { border-bottom-color: rgba(20,20,19,.55); }
.vm-hlocais__sep { padding: 0 1.4em; color: #7a756b; letter-spacing: 0; }
html body .vm-hensaios,
html body #ensaios-em-psiquiatria a.vm-hensaios { font-weight: 200; white-space: nowrap; }
.vm-hensaios { margin-right: -.3em; font-size: 1rem; }

/* Nome: VINICIUS MOTTER em cima, maior e extrafino; MÉDICO PSIQUIATRA abaixo */
html body .vm-brand .vm-brand__copy strong,
html body #ensaios-em-psiquiatria .vm-brand .vm-brand__copy strong,
html body #vm-lp .vm-nav-id .vm-nav-name {
  display: block;
  max-width: none;
  overflow: visible;
  font-family: "VM Jost", "VM Grego", "VM Jost fallback", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1.5rem;
  font-weight: 200;
  letter-spacing: .4em;
  line-height: 1.15;
  color: #141413;
  margin: 0 0 6px;
  white-space: nowrap;
}
html body .vm-brand .vm-brand__copy .vm-brand__role,
html body #ensaios-em-psiquiatria .vm-brand .vm-brand__copy .vm-brand__role,
html body #vm-lp .vm-nav-id .vm-nav-role {
  display: block;
  color: #141413;
  font-size: .625rem;
  font-weight: 300;
  letter-spacing: .30em;
}

/* Cargo e CRMs com o mesmo espaçamento da Home */
html body .vm-brand .vm-brand__copy > span,
html body #ensaios-em-psiquiatria .vm-brand .vm-brand__copy > span { line-height: 1.7; letter-spacing: .28em; }

/* ---------- Computador e tablet (acima de 640 px) ---------- */
@media (min-width: 641px) {
  /* Menu maior (o dobro), traços finos */
  html body .vm-local .vm-nav-toggle,
  html body .vm-local .vm-nav-toggle:hover,
  html body .vm-local .vm-nav-toggle:focus,
  html body .vm-local .vm-nav-toggle:active,
  html body #vm-lp button.vm-hamburger,
  html body #vm-lp button.vm-hamburger:hover,
  html body #vm-lp button.vm-hamburger:focus,
  html body #vm-lp button.vm-hamburger:focus-visible,
  html body #vm-lp button.vm-hamburger:active { width: 92px; min-width: 92px; height: 70px; }
  html body .vm-local .vm-nav-toggle span,
  html body #vm-lp button.vm-hamburger > i { left: 14px; width: 64px; height: 2px; }
  html body .vm-local .vm-nav-toggle span:nth-child(1),
  html body #vm-lp button.vm-hamburger > i:nth-of-type(1) { top: 24px; }
  html body .vm-local .vm-nav-toggle span:nth-child(2),
  html body #vm-lp button.vm-hamburger > i:nth-of-type(2) { top: 44px; }
  html body .vm-local .vm-nav-toggle span:nth-child(3),
  html body #vm-lp button.vm-hamburger > i:nth-of-type(3) { top: 64px; }
  html body .vm-local .vm-nav-toggle[aria-expanded="true"] span,
  html body .vm-local .vm-nav-toggle.is-open span,
  html body #vm-lp button.vm-hamburger[aria-expanded="true"] > i { top: 44px; }

  /* Páginas locais e Ensaios: última linha = locais + Ensaios + menu */
  .vm-local .vm-header__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    column-gap: 0;
    row-gap: 12px;
    align-items: start;
  }
  .vm-local .vm-header__row > .vm-brand { grid-column: 1; grid-row: 1; align-self: start; }
  .vm-local .vm-header__row > .vm-hlocais { grid-column: 1; grid-row: 2; align-self: end; }
  .vm-local .vm-header__row > .vm-hensaios { grid-column: 2; grid-row: 2; align-self: end; margin: 0 40px 0 0; }
  .vm-local .vm-header__row > .vm-nav-toggle { grid-column: 3; grid-row: 1 / 3; align-self: end; justify-self: end; margin: 0 -14px -2px 0; }
  :root { --vm-header-height: 148px; }

  /* Home */
  html body #vm-lp .vm-nav { flex-wrap: wrap; align-items: flex-start; row-gap: 12px; padding-left: 4.2vw; padding-right: 4.2vw; }
  body #vm-lp .vm-nav > .vm-nav-id { flex: 0 0 100%; padding-right: 0; }
  body #vm-lp .vm-nav > .vm-hlocais { flex: 1 1 auto; }
  html body #vm-lp button.vm-hamburger,
  html body #vm-lp button.vm-hamburger:hover,
  html body #vm-lp button.vm-hamburger:focus,
  html body #vm-lp button.vm-hamburger:focus-visible,
  html body #vm-lp button.vm-hamburger:active { top: auto; bottom: calc(1.05rem - 2px); right: calc(4.2vw - 14px); transform: none; }
  body #vm-lp .vm-nav > .vm-hensaios { position: absolute; top: auto; bottom: 1.05rem; right: calc(4.2vw - 14px + 92px + 40px); }
}

/* ---------- Celular (até 640 px) ---------- */
@media (max-width: 640px) {
  .vm-hlocais, .vm-hensaios { font-size: clamp(.64rem, 3.05vw, .72rem); letter-spacing: .2em; }
  .vm-hensaios { margin-right: -.2em; font-size: clamp(.7rem, 3.4vw, .8rem); }
  .vm-hlocais__sep { padding: 0 .8em; }
  .vm-hlocais__sep--rn { display: block; height: 0; overflow: hidden; }
  .vm-hlocais__sep--rn + a { display: inline-block; margin-top: 2px; }
  html body .vm-brand .vm-brand__copy strong,
  html body #ensaios-em-psiquiatria .vm-brand .vm-brand__copy strong,
  html body #vm-lp .vm-nav-id .vm-nav-name { font-size: .95rem; letter-spacing: .22em; }

  /* Páginas locais e Ensaios: Ensaios logo abaixo do menu */
  .vm-local .vm-header__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 0;
    row-gap: 8px;
    align-items: start;
  }
  .vm-local .vm-header__row > .vm-brand { grid-column: 1 / -1; grid-row: 1; align-self: start; }
  .vm-local .vm-header__row > .vm-nav-toggle { grid-column: 2; grid-row: 1; align-self: start; justify-self: end; margin-right: -7px; position: relative; z-index: 2; }
  .vm-local .vm-header__row > .vm-hensaios { grid-column: 2; grid-row: 1; align-self: start; justify-self: end; margin: 54px -.2em 0 0; position: relative; z-index: 2; }
  .vm-local .vm-header__row > .vm-hlocais { grid-column: 1 / -1; grid-row: 2; }
  :root { --vm-header-height: 152px; }

  /* Home */
  html body #vm-lp .vm-nav { flex-wrap: wrap; align-items: flex-start; row-gap: 10px; padding-left: 30px; padding-right: 30px; }
  body #vm-lp .vm-nav > .vm-nav-id { flex: 0 0 100%; padding-right: calc(46px + .5rem - 7px); }
  body #vm-lp .vm-nav > .vm-hlocais { flex: 1 1 auto; }
  html body #vm-lp button.vm-hamburger,
  html body #vm-lp button.vm-hamburger:hover,
  html body #vm-lp button.vm-hamburger:focus,
  html body #vm-lp button.vm-hamburger:focus-visible,
  html body #vm-lp button.vm-hamburger:active { top: 10px; right: 23px; transform: none; }
  body #vm-lp .vm-nav > .vm-hensaios { position: absolute; top: 62px; right: 30px; }
}
/* v5 — celular mais baixo, cidades em uma linha, CRMs mais juntos */
html body .vm-brand .vm-brand__copy > span:not(.vm-brand__role),
html body #ensaios-em-psiquiatria .vm-brand .vm-brand__copy > span:not(.vm-brand__role) { letter-spacing: .2em; line-height: 1.45; }
html body #vm-lp .vm-nav-id .vm-nav-reg { letter-spacing: .2em; line-height: 1.45; }
@media (max-width: 640px) {
  html body .vm-brand .vm-brand__copy > span:not(.vm-brand__role),
  html body #ensaios-em-psiquiatria .vm-brand .vm-brand__copy > span:not(.vm-brand__role) { letter-spacing: .1em; line-height: 1.35; }
  html body #vm-lp .vm-nav-id .vm-nav-reg { letter-spacing: .1em; line-height: 1.35; }
  .vm-hlocais { white-space: nowrap; font-size: clamp(.56rem, 2.6vw, .66rem); letter-spacing: .1em; }
  .vm-hlocais__sep { padding: 0 .55em; }
  .vm-hlocais__sep--rn { display: inline; height: auto; overflow: visible; }
  .vm-hlocais__sep--rn + a { display: inline; margin-top: 0; }
  .vm-local .vm-header__row { row-gap: 6px; }
  :root { --vm-header-height: 128px; }
}

/* =====================================================================
   v6 — 2026-11-06 — cabeçalho padronizado e alvos de toque acessíveis
   Linha 1: nome (único link para a Home) + "Médico psiquiatra" ao lado
   Linha 2: CRM/PR · RQE | CRM/SC · RQE
   Linha 3: cidades · Ensaios · menu (alinhados à direita)
   ===================================================================== */

/* --- Identificação (páginas locais, Ensaios e Home) --- */
html body .vm-header .vm-brand,
html body #vm-lp .vm-nav > .vm-nav-id {
  display: block; text-decoration: none; text-transform: uppercase; color: #141413;
}
html body .vm-header .vm-brand .vm-brand__copy { display: block; }
html body .vm-brand .vm-brand__line,
html body #vm-lp .vm-nav-id .vm-nav-line {
  display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 1.1rem; row-gap: 2px; margin: 0;
}
/* nome = único link */
html body .vm-brand a.vm-brand__home,
html body #vm-lp .vm-nav-id a.vm-nav-name {
  display: inline-flex; align-items: center; min-height: 32px; color: #141413; text-decoration: none;
  border-bottom: 1px solid transparent;
}
html body .vm-brand a.vm-brand__home:hover,
html body .vm-brand a.vm-brand__home:focus-visible,
html body #vm-lp .vm-nav-id a.vm-nav-name:hover,
html body #vm-lp .vm-nav-id a.vm-nav-name:focus-visible { border-bottom-color: currentColor; }
html body .vm-brand a.vm-brand__home strong,
html body #ensaios-em-psiquiatria .vm-brand a.vm-brand__home strong,
html body #vm-lp .vm-nav-id a.vm-nav-name {
  display: inline; margin: 0; max-width: none; overflow: visible;
  font-family: "VM Jost", "VM Grego", "VM Jost fallback", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1.5rem; font-weight: 200; letter-spacing: .4em; line-height: 1.15; white-space: nowrap; color: #141413;
}
/* especialidade ao lado, metade do tamanho, fina */
html body .vm-brand .vm-brand__line .vm-brand__role,
html body #ensaios-em-psiquiatria .vm-brand .vm-brand__line .vm-brand__role,
html body #vm-lp .vm-nav-id .vm-nav-line .vm-nav-role {
  display: inline; margin: 0; color: #141413;
  font-family: "VM Jost", "VM Grego", "VM Jost fallback", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: .75rem; font-weight: 300; letter-spacing: .3em; line-height: 1.2; white-space: nowrap;
}
/* registros lado a lado */
html body .vm-brand .vm-brand__regs,
html body #vm-lp .vm-nav-id .vm-nav-regs {
  display: flex; flex-wrap: wrap; column-gap: 2.2em; row-gap: 0; margin: 2px 0 0;
  font-family: "VM Jost", "VM Grego", "VM Jost fallback", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: .68rem; font-weight: 300; letter-spacing: .2em; line-height: 1.5; color: #4a4741;
}
html body .vm-brand .vm-brand__regs > span,
html body #vm-lp .vm-nav-id .vm-nav-regs > span {
  display: inline; color: inherit; font-size: inherit; letter-spacing: inherit; line-height: inherit; font-weight: inherit; white-space: nowrap;
}

/* --- Cidades e Ensaios: alvos com no mínimo 32 px de altura --- */
html body .vm-hlocais a,
html body a.vm-hensaios { display: inline-flex; align-items: center; min-height: 32px; padding-bottom: 0; }
html body .vm-hlocais { display: flex; flex-wrap: wrap; align-items: center; margin: 0; }

/* Desktop: locais discretamente menores; demais elementos preservados. */
@media (min-width: 641px) {
  html body .vm-hlocais { font-size: .78rem; }
}

/* --- Menu: ícone 20% menor; área de toque preservada --- */
html body .vm-local .vm-nav-toggle,
html body .vm-local .vm-nav-toggle:hover,
html body .vm-local .vm-nav-toggle:focus,
html body .vm-local .vm-nav-toggle:active,
html body .vm-header .vm-nav-toggle,
html body #vm-lp button.vm-hamburger,
html body #vm-lp button.vm-hamburger:hover,
html body #vm-lp button.vm-hamburger:focus,
html body #vm-lp button.vm-hamburger:focus-visible,
html body #vm-lp button.vm-hamburger:active {
  position: relative; top: auto; right: auto; bottom: auto; transform: none;
  width: 74px; min-width: 74px; height: 52px; margin: 0 -11px 0 0;
}
html body .vm-header .vm-nav-toggle span,
html body #vm-lp button.vm-hamburger > i { left: 11px; width: 52px; height: 1.5px; }
html body .vm-header .vm-nav-toggle span:nth-child(1),
html body #vm-lp button.vm-hamburger > i:nth-of-type(1) { top: 10px; }
html body .vm-header .vm-nav-toggle span:nth-child(2),
html body #vm-lp button.vm-hamburger > i:nth-of-type(2) { top: 25px; }
html body .vm-header .vm-nav-toggle span:nth-child(3),
html body #vm-lp button.vm-hamburger > i:nth-of-type(3) { top: 40px; }
html body .vm-header .vm-nav-toggle[aria-expanded="true"] span,
html body .vm-header .vm-nav-toggle.is-open span,
html body #vm-lp button.vm-hamburger[aria-expanded="true"] > i,
html body #vm-lp button.vm-hamburger.open > i { top: 25px; }

/* --- Grade: páginas locais, índice e posts --- */
html body .vm-header .vm-header__row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto;
  grid-template-areas: "brand brand brand" "locais ensaios menu";
  column-gap: 0; row-gap: 10px; align-items: center;
  padding-top: 12px; padding-bottom: 6px; min-height: 0;
}
/* Home: a mesma grade */
html body #vm-lp .vm-nav {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto;
  grid-template-areas: "brand brand brand" "locais ensaios menu";
  column-gap: 0; row-gap: 10px; align-items: center;
  padding: 12px 4.2vw 6px; min-height: 0;
}
html body .vm-header .vm-header__row > .vm-brand,
html body #vm-lp .vm-nav > .vm-nav-id { grid-area: brand; align-self: start; margin: 0; padding: 0; position: static; }
html body .vm-header .vm-header__row > .vm-hlocais,
html body #vm-lp .vm-nav > .vm-hlocais { grid-area: locais; align-self: center; }
html body .vm-header .vm-header__row > .vm-hensaios,
html body #vm-lp .vm-nav > .vm-hensaios { grid-area: ensaios; align-self: center; position: static; margin: 0 64px 0 32px; z-index: auto; }
html body .vm-header .vm-header__row > .vm-nav-toggle,
html body #vm-lp .vm-nav > .vm-hamburger { grid-area: menu; align-self: center; justify-self: end; }
html body .vm-header .vm-header__row > .vm-nav { grid-area: auto; }
:root { --vm-header-height: 128px; }

/* --- Celular --- */
@media (max-width: 640px) {
  html body .vm-header .vm-header__row,
  html body #vm-lp .vm-nav {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "brand menu" "regs ensaios" "locais locais";
    row-gap: 2px; padding-top: 8px; padding-bottom: 4px;
  }
  html body #vm-lp .vm-nav { padding-left: 30px; padding-right: 30px; }
  /* o bloco de identificação ocupa duas áreas: nome em "brand", registros em "regs" */
  html body .vm-header .vm-header__row > .vm-brand,
  html body #vm-lp .vm-nav > .vm-nav-id { display: contents; }
  html body .vm-header .vm-brand .vm-brand__copy { display: contents; }
  html body .vm-brand .vm-brand__line,
  html body #vm-lp .vm-nav-id .vm-nav-line { grid-area: brand; align-self: center; column-gap: .7rem; }
  html body .vm-brand .vm-brand__regs,
  html body #vm-lp .vm-nav-id .vm-nav-regs { grid-area: regs; align-self: center; flex-direction: row; column-gap: .9em; margin: 0; font-size: .625rem; letter-spacing: .1em; line-height: 1.45; }
  html body .vm-brand a.vm-brand__home strong,
  html body #ensaios-em-psiquiatria .vm-brand a.vm-brand__home strong,
  html body #vm-lp .vm-nav-id a.vm-nav-name { font-size: .86rem; letter-spacing: .16em; }
  html body .vm-brand .vm-brand__line .vm-brand__role,
  html body #ensaios-em-psiquiatria .vm-brand .vm-brand__line .vm-brand__role,
  html body #vm-lp .vm-nav-id .vm-nav-line .vm-nav-role { font-size: .625rem; letter-spacing: .08em; }
  html body .vm-header .vm-header__row > .vm-hensaios,
  html body #vm-lp .vm-nav > .vm-hensaios { align-self: center; justify-self: end; margin: 0 -.2em 0 0; }
  html body .vm-header .vm-header__row > .vm-nav-toggle,
  html body #vm-lp .vm-nav > .vm-hamburger { align-self: start; }
  html body .vm-hlocais,
  html body .vm-hensaios { font-size: .625rem; letter-spacing: .1em; }
  html body .vm-hlocais { flex-wrap: nowrap; white-space: nowrap; }
  html body .vm-header .vm-nav-toggle,
  html body .vm-local .vm-nav-toggle,
  html body #vm-lp button.vm-hamburger,
  html body #vm-lp button.vm-hamburger:hover,
  html body #vm-lp button.vm-hamburger:focus,
  html body #vm-lp button.vm-hamburger:focus-visible,
  html body #vm-lp button.vm-hamburger:active { width: 46px; min-width: 46px; height: 40px; margin: 0 -8px 0 0; }
  html body .vm-header .vm-nav-toggle span,
  html body #vm-lp button.vm-hamburger > i { left: 8px; width: 30px; }
  html body .vm-header .vm-nav-toggle span:nth-child(1),
  html body #vm-lp button.vm-hamburger > i:nth-of-type(1) { top: 10px; }
  html body .vm-header .vm-nav-toggle span:nth-child(2),
  html body #vm-lp button.vm-hamburger > i:nth-of-type(2) { top: 19px; }
  html body .vm-header .vm-nav-toggle span:nth-child(3),
  html body #vm-lp button.vm-hamburger > i:nth-of-type(3) { top: 28px; }
  html body .vm-header .vm-nav-toggle[aria-expanded="true"] span,
  html body .vm-header .vm-nav-toggle.is-open span,
  html body #vm-lp button.vm-hamburger[aria-expanded="true"] > i,
  html body #vm-lp button.vm-hamburger.open > i { top: 19px; }
  :root { --vm-header-height: 120px; }
}
html body #vm-lp .vm-nav > br, html body #vm-lp .vm-hamburger > br { display: none; }
/* Home: parágrafo automático do WordPress não deve virar item da grade */
html body #vm-lp .vm-nav > p { display: contents; margin: 0; }
html body #vm-lp .vm-nav > p > br { display: none; }
html body #vm-lp .vm-nav > p > .vm-hlocais { grid-area: locais; align-self: center; }
html body #vm-lp .vm-nav > p > .vm-hensaios { grid-area: ensaios; align-self: center; position: static; margin: 0 64px 0 32px; z-index: auto; }
html body #vm-lp .vm-nav > p > .vm-hamburger { grid-area: menu; align-self: center; justify-self: end; }
@media (max-width: 640px) {
  html body #vm-lp .vm-nav > p > .vm-hensaios { justify-self: end; margin: 0 -.2em 0 0; }
  html body #vm-lp .vm-nav > p > .vm-hamburger { align-self: start; }
}
