/* ==========================================================================
   Polimed - folha de estilo do projeto
   Complementa os widgets nativos do Elementor free.
   ========================================================================== */

:root {
  --pol-azul: #1D2B9E;
  --pol-azul-esc: #141C7A;
  --pol-vermelho: #E62B2B;
  --pol-texto: #4A4A5A;
  --pol-fundo: #F4F5FA;
  --pol-borda: #E1E4F0;
  --pol-grad: linear-gradient(90deg, var(--pol-vermelho) 0%, var(--pol-azul-esc) 100%);
  --pol-raio: 18px;
}

body { background-color: var(--pol-fundo); overflow-x: hidden; }

/* --------------------------------------------------------------- HEADER -- */
.pol-header {
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 2px 18px rgba(20, 28, 122, .07);
}

/* Botao com gradiente vermelho -> azul (Elementor free nao faz gradiente em botao) */
.pol-btn-grad .elementor-button {
  background-image: var(--pol-grad) !important;
  background-color: transparent !important;
  border: 0;
  transition: filter .25s ease, transform .25s ease;
}
.pol-btn-grad .elementor-button:hover { filter: brightness(1.12); transform: translateY(-2px); }

/* Botao contornado azul */
.pol-btn-outline .elementor-button {
  background-color: transparent !important;
  border: 2px solid var(--pol-azul);
  color: var(--pol-azul);
  transition: background-color .25s ease, color .25s ease;
}
.pol-btn-outline .elementor-button:hover {
  background-color: var(--pol-azul) !important;
  color: #fff;
}
/* Contorno branco, para uso sobre fundo azul */
.pol-btn-outline-branco .elementor-button {
  background-color: transparent !important;
  border: 2px solid #fff;
  color: #fff;
}
.pol-btn-outline-branco .elementor-button:hover {
  background-color: #fff !important;
  color: var(--pol-azul);
}

/* ---------------------------------------------------------------- CARDS -- */
.pol-card {
  background: #fff;
  border: 1px solid var(--pol-borda);
  border-radius: var(--pol-raio);
  box-shadow: 0 6px 24px rgba(20, 28, 122, .06);
  transition: transform .25s ease, box-shadow .25s ease;
}
.pol-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(20, 28, 122, .13);
}
/* Card com o filete vermelho a esquerda, como nos mockups */
.pol-card-filete { border-left: 3px solid var(--pol-vermelho); }

/* Selo/label vermelho acima dos titulos de secao */
.pol-label .elementor-heading-title {
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Sublinhado vermelho curto sob titulo de secao */
.pol-underline .elementor-heading-title::after {
  content: "";
  display: block;
  width: 54px;
  height: 4px;
  border-radius: 2px;
  background: var(--pol-vermelho);
  margin-top: 14px;
}

/* ------------------------------------------------------------ DECORACAO -- */
/* Padrao de bolinhas (halftone) usado nos fundos azuis dos mockups */
.pol-dots::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.16) 2px, transparent 2px);
  background-size: 22px 22px;
  pointer-events: none;
}
.pol-dots { position: relative; }
.pol-dots > .e-con-inner, .pol-dots > .elementor-widget-wrap { position: relative; z-index: 1; }

/* Forma organica (blob) nas fotos - canto arredondado assimetrico */
.pol-blob img {
  border-radius: 120px 24px 120px 24px;
  object-fit: cover;
}

/* Secao branca flutuante sobre fundo azul */
.pol-flutua { box-shadow: 0 18px 50px rgba(20, 28, 122, .10); }

/* --------------------------------------------------------------- FOOTER -- */
.pol-footer a { transition: color .2s ease; }
.pol-footer a:hover { color: var(--pol-vermelho) !important; }

.pol-horarios {
  background: var(--pol-azul-esc);
  border-radius: 14px;
  color: #fff;
}
.pol-horarios p, .pol-horarios strong { color: #fff; }

/* ------------------------------------------------------------ RESPONSIVO -- */
@media (max-width: 1024px) {
  .pol-blob img { border-radius: 80px 20px 80px 20px; }
}
@media (max-width: 767px) {
  .pol-blob img { border-radius: 48px 16px 48px 16px; }
  .pol-card { border-radius: 14px; }
  .pol-underline .elementor-heading-title::after { margin-left: auto; margin-right: auto; }
}

/* Acessibilidade: foco visivel em todos os interativos */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
.elementor-button:focus-visible {
  outline: 3px solid var(--pol-vermelho);
  outline-offset: 2px;
}

/* ------------------------------------------------------------ HERO HOME -- */
.pol-hero-media { position: relative; }
.pol-hero-photo img { border-radius: 20px; }
.pol-hero-card { position: absolute; width: 196px; z-index: 3; box-shadow: 0 10px 30px rgba(20,28,122,.16); }
.pol-hero-card-1 { top: 6%; left: -3%; }
.pol-hero-card-2 { top: 12%; right: -4%; }
.pol-hero-card-3 { top: 47%; left: -7%; }
.pol-hero-card-4 { bottom: 8%; right: -4%; }
.pol-hero-media::after { content: ''; position: absolute; z-index: 0; top: 4%; right: 4%; width: 74%; height: 84%; border-radius: 46% 54% 42% 58% / 52% 44% 56% 48%; background: linear-gradient(135deg, rgba(29,43,158,.10), rgba(230,43,43,.10)); }
.pol-hero-media > * { position: relative; z-index: 1; }
.pol-hero-card { z-index: 3; }

/* Selo dourado sobreposto a foto */
.pol-selo-wrap { position: relative; }
.pol-selo { position: absolute; top: -14px; left: -6px; z-index: 4; width: 110px; }

/* 'Saiba mais' como link, nao como botao */
.pol-link .elementor-button { background-color: transparent !important; padding: 0; border: 0; }
.pol-link .elementor-button:hover { color: var(--pol-vermelho) !important; }
.pol-stats { text-align: center; }

/* --- Hero responsivo --- */
@media (max-width: 1024px) {
  .pol-hero-card { width: 168px; }
  .pol-hero-card-1 { left: -1%; }
  .pol-hero-card-3 { left: -3%; }
}
@media (max-width: 767px) {
  .pol-hero-media { display: flex; flex-wrap: wrap; gap: 12px; }
  .pol-hero-media::after { display: none; }
  .pol-hero-photo { flex: 0 0 100%; }
  .pol-hero-card { position: static; width: calc(50% - 6px); }
  .pol-selo { width: 78px; top: -8px; left: 0; }
}

/* --- Correcoes de QA --- */
@media (max-width: 767px) {
  .pol-hero-media { --flex-direction: row; --flex-wrap: wrap; --justify-content: space-between; --gap: 12px 12px; }
}
/* Alvos de toque com altura minima acessivel */
.pol-footer .elementor-icon-list-item > a { display: flex; align-items: center; min-height: 32px; }
.pol-link .elementor-button { min-height: 32px; display: inline-flex; align-items: center; }

/* === Correcoes QA rodada 2 === */
/* Elementor aplica position:relative em .e-con; precisamos de mais especificidade */
.pol-hero-media > .e-con.pol-hero-card { position: absolute; }
@media (max-width: 767px) {
  .pol-hero-media > .e-con.pol-hero-card { position: static; width: calc(50% - 6px); }
}
/* CookieYes: o painel de preferencias fica oculto porem ocupa 845px e estoura a pagina no mobile */
.cky-modal, .cky-preference-center { max-width: 100vw !important; box-sizing: border-box; }
.cky-preference-body-wrapper, .cky-preference-content-wrapper { max-width: 100% !important; box-sizing: border-box; }
/* Alvo de toque dos icones sociais */
.pol-footer .elementor-social-icon { min-width: 34px; min-height: 34px; }

.cky-preference-center { width: auto !important; max-width: calc(100vw - 24px) !important; }

/* Header: menu em linha unica, sem quebra */
/* Só no desktop: abaixo de 1025px o menu vira sanfona e o nowrap estouraria a tela */
@media (min-width: 1025px) {
  .pol-header .elementor-widget-navigation-menu { flex: 1 1 auto; }
  .pol-header .hfe-nav-menu { flex-wrap: nowrap !important; }
  .pol-header .hfe-nav-menu > li > a { white-space: nowrap; }
}
@media (max-width: 1200px) and (min-width: 1025px) {
  .pol-header .hfe-nav-menu > li > a { font-size: 13px; }
}

/* ------------------------------------------------------- LINHA DO TEMPO -- */
.pol-timeline { position: relative; }
.pol-timeline::before { content: ''; position: absolute; top: 9px; left: 9px; right: 9px; height: 2px; background: var(--pol-vermelho); z-index: 0; }
.pol-tl-item { position: relative; padding-top: 36px !important; }
.pol-tl-item::before { content: ''; position: absolute; top: 0; left: 0; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 5px solid var(--pol-azul); z-index: 2; box-sizing: border-box; }
@media (max-width: 767px) {
  .pol-timeline::before { top: 9px; bottom: 9px; left: 9px; right: auto; width: 2px; height: auto; }
  .pol-tl-item { padding-left: 34px !important; padding-top: 4px !important; }
  .pol-tl-item::before { top: 4px; }
}

/* Header em telas estreitas: logo + sanfona + botao SESMO cabendo em 390px */
@media (max-width: 480px) {
  .pol-header .pol-btn-grad .elementor-button { font-size: 11px; padding: 9px 11px; }
  .pol-header .elementor-widget-image img { max-width: 112px; }
}

/* Header mobile: logo + sanfona + botao na MESMA linha.
   O widget de menu vem com largura 100%; aqui ele passa a ocupar so o necessario. */
@media (max-width: 1024px) {
  .pol-header .elementor-widget-navigation-menu { flex: 0 0 auto !important; width: auto !important; }
  .pol-header .hfe-nav-menu-icon { margin: 0; }
  .pol-header .elementor-widget-button { flex: 0 0 auto !important; width: auto !important; }
  .pol-header .elementor-widget-image { flex: 0 0 auto !important; width: auto !important; }
}

/* Header mobile: o <nav> do HFE continua ocupando a largura toda mesmo recolhido,
   o que jogava o botao SESMO para uma terceira linha. Aqui ele sai do fluxo. */
@media (max-width: 1024px) {
  .pol-header .hfe-nav-menu.hfe-layout-horizontal { width: auto !important; }
  .pol-header nav.hfe-nav-menu__layout-horizontal {
    position: absolute; top: 100%; left: 0; right: 0; width: auto !important;
    background: #fff; box-shadow: 0 12px 26px rgba(20,28,122,.12);
    border-radius: 0 0 14px 14px; padding: 6px 0; z-index: 998;
  }
  .pol-header .elementor-widget-navigation-menu > .elementor-widget-container { position: static; }
  .pol-header .hfe-nav-menu__toggle { flex: 0 0 auto; }
}

/* ----------------------------------------------- FORMULARIO DE CONTATO -- */
.pol-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.pol-form .pol-f { margin: 0 0 12px; }
.pol-form label { display: block; font-weight: 600; color: var(--pol-azul); font-size: 13px; margin-bottom: 6px; }
.pol-form .pol-req { color: var(--pol-vermelho); margin-left: 2px; }
.pol-form input[type=text], .pol-form input[type=email], .pol-form input[type=tel], .pol-form textarea {
  width: 100%; box-sizing: border-box; font-family: Poppins, sans-serif; font-size: 14px;
  color: var(--pol-texto); background: #fff; border: 1px solid var(--pol-borda);
  border-radius: 10px; padding: 12px 14px; transition: border-color .2s ease, box-shadow .2s ease;
}
.pol-form input:focus, .pol-form textarea:focus { border-color: var(--pol-azul); box-shadow: 0 0 0 3px rgba(29,43,158,.10); outline: none; }
.pol-form textarea { min-height: 118px; resize: vertical; }
.pol-form ::placeholder { color: #A9AEC4; }
.pol-form .pol-submit { margin: 6px 0 8px; }
.pol-form input[type=submit] {
  width: 100%; cursor: pointer; border: 0; border-radius: 10px; padding: 14px 20px;
  font-family: Poppins, sans-serif; font-size: 15px; font-weight: 600; color: #fff;
  background-image: var(--pol-grad); transition: filter .25s ease, transform .25s ease;
}
.pol-form input[type=submit]:hover { filter: brightness(1.12); transform: translateY(-2px); }
/* honeypot: invisivel para humanos, presente para bots */
.pol-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.pol-form-nota { font-size: 11px; line-height: 1.6; color: #7A7F96; margin: 0; }
.pol-form-nota a { color: var(--pol-azul); text-decoration: underline; }
.pol-form .wpcf7-not-valid-tip { color: var(--pol-vermelho); font-size: 12px; margin-top: 4px; }
.pol-form .wpcf7-response-output { border-radius: 10px; border-width: 1px; font-size: 13px; margin: 8px 0 0; padding: 12px 14px; }
@media (max-width: 600px) { .pol-form-grid { grid-template-columns: 1fr; } }

/* -------------------------------------------------- CONTATO: ICONES/MAPA -- */
.pol-ico-circ .elementor-icon { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; }
.pol-ico-circ { flex: 0 0 auto; }
/* Card 'Como chegar' sobreposto ao mapa */
.pol-mapa-wrap { position: relative; }
.pol-mapa-card { position: absolute; top: 56px; left: 7%; max-width: 330px; z-index: 5; }
.pol-mapa-wrap .elementor-widget-google_maps iframe { display: block; filter: saturate(.92); }
@media (max-width: 900px) {
  .pol-mapa-card { position: static; max-width: none; width: auto !important; margin: -40px 16px 0; box-sizing: border-box; }
}
/* Sublinhado do titulo sobre fundo azul fica branco */
.pol-underline-claro .elementor-heading-title::after { background: var(--pol-vermelho); }
