/*
 * Complementos de CSS do site novo.
 * O visual do site vem dos CSS originais do tema e do Elementor (copiados sem alteração);
 * aqui ficam só o que o JavaScript dos plugins fazia via estilo inline.
 */

/* Popups do Elementor: o JavaScript do Elementor posicionava o diálogo. */
.elementor-popup-modal { position: fixed; inset: 0; z-index: 9999; }
.elementor-popup-modal .dialog-widget-content { position: relative; }
html.pp-popup-open, html.pp-popup-open body { overflow: hidden; }

/* Fluent Forms: campos condicionais visíveis */
.fluentform .has-conditions.ff_cond_v { display: block; }
.frm-fluent-form .ff-t-container.has-conditions.ff_cond_v { display: flex !important; }
.fluentform .ff_submitting .ff-btn-submit { opacity: .7; cursor: wait; }

/* Dica (tooltip) dos campos do Fluent Forms */
.pp-ff-tooltip {
  position: absolute; z-index: 10000; max-width: 320px; padding: 12px 14px;
  background: #fff; color: #333; border-radius: 4px; font-size: 14px; line-height: 1.4;
  box-shadow: 0 4px 18px rgba(0, 0, 0, .18);
}
.pp-ff-tooltip img { max-width: 100%; height: auto; }
.pp-ff-tooltip h3 { font-size: 16px; margin: 0 0 6px; }

/* Campo anti-spam invisível */
.pp-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; opacity: 0; }

/* Contact Form 7: mensagens */
.wpcf7-response-output:empty { display: none; }

/* ---------------------------------------------------------------------
 * Banner de cookies — reproduz o Real Cookie Banner configurado no WordPress
 * (layout "banner" no rodapé, conteúdo em 1024px, texto 13px #2b2b2b,
 * botões #bf1a46, link #15779b, sombra 0 0 17px rgba(0,0,0,.2)).
 * Não aparece na página de política de privacidade nem para robôs, como no original.
 * ------------------------------------------------------------------- */
.pp-cookie {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 999999;
  max-height: 500px; overflow: auto;
  background: #fff; color: #2b2b2b; font-size: 13px; line-height: 1.5; text-align: left;
  box-shadow: 0 0 17px 0 rgba(0, 0, 0, .2);
  transform: translateY(100%); transition: transform .5s ease;
}
.pp-cookie[hidden] { display: none; }
.pp-cookie--in { transform: none; }
.pp-cookie__inner { max-width: 1064px; margin: 0 auto; padding: 0 20px; box-sizing: border-box; }
.pp-cookie__header { border-bottom: 1px solid #efefef; padding: 17px 0 15px; }
.pp-cookie__headline { font-size: 20px; font-weight: normal; color: #2b2b2b; line-height: 1.3; }
.pp-cookie__body { padding: 15px 0 5px; }
.pp-cookie__cols { display: flex; gap: 30px; align-items: flex-start; }
.pp-cookie__text { flex: 1 1 auto; }
.pp-cookie__description { margin: 0; }
.pp-cookie__description a { color: inherit; text-decoration: underline; }
.pp-cookie__teachings {
  margin-top: 15px; padding-top: 10px; position: relative; font-size: 12px; color: #757575;
}
.pp-cookie__teachings::before {
  content: ""; position: absolute; top: 0; left: 0; width: 50px; height: 1px; background: #15779b;
}
.pp-cookie__group { margin-top: 12px; padding: 15px; background: #f4f4f4; border-radius: 5px; }
.pp-cookie__group strong { display: block; font-size: 16px; font-weight: normal; }
.pp-cookie__group p { margin: 4px 0 0; font-size: 14px; color: #757575; }
.pp-cookie__actions { flex: 0 0 300px; display: flex; flex-direction: column; gap: 10px; text-align: center; padding-bottom: 10px; }
.pp-cookie .pp-cookie__btn,
.pp-cookie .pp-cookie__btn:hover,
.pp-cookie .pp-cookie__btn:focus {
  display: block; width: 100%; margin: 0; padding: 10px; border: 0 !important; border-radius: 0 !important;
  background: #bf1a46 !important; color: #fff !important; font-family: inherit; font-size: 18px; font-weight: normal;
  line-height: 1.4; text-transform: none; cursor: pointer;
}
.pp-cookie .pp-cookie__btn:hover { background: #a3163c !important; }
.pp-cookie .pp-cookie__btn[hidden] { display: none; }
.pp-cookie a.pp-cookie__individual { color: #15779b !important; font-size: 16px; text-decoration: underline; padding: 5px 0; white-space: nowrap; }
.pp-cookie a.pp-cookie__individual:hover { color: #11607d !important; }
.pp-cookie a.pp-cookie__individual[hidden] { display: none; }
.pp-cookie__description a { color: #2b2b2b !important; }
.pp-cookie__footer { border-top: 1px solid #efefef; background: #fcfcfc; padding: 10px 0 12px; font-size: 14px; }
.pp-cookie__footer a { color: #757474 !important; text-decoration: underline; }
.pp-cookie__footer a:hover { color: #2b2b2b !important; }
@media (max-width: 767px) {
  .pp-cookie { max-height: 400px; }
  .pp-cookie__cols { flex-direction: column; gap: 15px; }
  .pp-cookie__actions { flex-basis: auto; width: 100%; }
}
