/* Estilos da página pública. Tudo prefixado com .lp- para poder ser reutilizado
   dentro da pré-visualização do painel sem conflitar com o CSS do admin. */
.lp-root {
  min-height: 100vh;
  min-height: 100dvh;
  box-sizing: border-box;
  background: linear-gradient(165deg, var(--lp-bg) 0%, var(--lp-bg2) 100%);
  color: var(--lp-text);
  font-family: var(--lp-font), system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.45;
}
.lp-root *, .lp-root *::before, .lp-root *::after { box-sizing: border-box; }

.lp-wrap {
  max-width: 560px;
  margin: 0 auto;
  padding: 40px 18px calc(36px + env(safe-area-inset-bottom));
}

/* Cabeçalho */
.lp-header { text-align: center; margin-bottom: 28px; }
.lp-avatar {
  width: 108px; height: 108px; margin: 0 auto 18px;
  border-radius: 50%; overflow: hidden;
  display: grid; place-items: center;
  background: rgba(var(--lp-text-rgb), 0.12);
  border: 1.5px solid var(--lp-btn-bg);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .10);
  font-size: 34px; font-weight: 600; letter-spacing: 1px;
}
.lp-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lp-title { margin: 0 0 10px; font-family: var(--lp-title-font), var(--lp-font), Georgia, serif; font-size: 25px; font-weight: 600; line-height: 1.2; letter-spacing: .01em; text-wrap: balance; }
.lp-bio { margin: 0 auto; max-width: 44ch; font-size: 14.5px; opacity: .85; text-wrap: pretty; }
/* filete dourado sob o cabeçalho, como nas artes da marca */
.lp-header::after { content: ''; display: block; width: 72px; height: 1.5px; margin: 20px auto 0; background: var(--lp-btn-bg); opacity: .7; }

/* Blocos */
.lp-blocks { display: flex; flex-direction: column; gap: 14px; }
.lp-block { position: relative; }
.lp-block--off { opacity: .45; }
.lp-badge {
  display: inline-flex; align-items: center; gap: 5px; margin-bottom: 6px;
  font: 600 11px/1 system-ui, sans-serif; padding: 5px 8px; border-radius: 99px;
  background: #fde68a; color: #713f12;
}
.lp-badge--warn { background: #fee2e2; color: #7f1d1d; white-space: normal; line-height: 1.3; border-radius: 10px; }
.lp-placeholder {
  border: 1.5px dashed rgba(var(--lp-text-rgb), 0.35);
  border-radius: var(--lp-card-radius); padding: 22px 16px; text-align: center; font-size: 13px; opacity: .7;
}
.lp-h2 { margin: 6px 0 10px; font-family: var(--lp-title-font), var(--lp-font), Georgia, serif; font-size: 19px; font-weight: 600; text-align: center; }

/* Botões */
.lp-btn {
  display: grid; grid-template-columns: 26px 1fr 26px; align-items: center; gap: 8px;
  min-height: 58px; padding: 12px 18px;
  border-radius: var(--lp-radius); border: 1.5px solid transparent;
  font-size: 15.5px; font-weight: 600; text-align: center; text-decoration: none;
  cursor: pointer; transition: transform .15s ease, filter .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.lp-btn:hover { transform: translateY(-1px); filter: brightness(1.05); }
.lp-btn:active { transform: scale(.985); }
.lp-root a:focus-visible { outline: 3px solid var(--lp-text); outline-offset: 3px; }
.lp-btn-ic { display: grid; place-items: center; }
.lp-btn-tx { overflow-wrap: anywhere; }
.lp-btn--fill { background: var(--lp-btn-bg); color: var(--lp-btn-text); }
.lp-btn--outline { background: transparent; color: var(--lp-text); border-color: var(--lp-btn-bg); }
.lp-btn--soft { background: rgba(var(--lp-btn-rgb), 0.22); color: var(--lp-text); border-color: rgba(var(--lp-btn-rgb), 0.45); }
.lp-btn--shadow { box-shadow: 0 6px 18px rgba(0, 0, 0, .18); }
.lp-btn--caps { text-transform: uppercase; letter-spacing: .09em; font-size: 13.5px; }
.lp-btn--caps.lp-btn--sm { font-size: 12px; letter-spacing: .07em; }
.lp-btn--wa, .lp-btn--wa.lp-btn--outline, .lp-btn--wa.lp-btn--soft { background: #25d366; color: #05270f; border-color: transparent; }
.lp-btn--sm { display: inline-flex; justify-content: center; min-height: 42px; padding: 8px 14px; font-size: 13.5px; flex: 1; }
.lp-btn--hl { animation: lp-pulse 2.4s ease-in-out infinite; }
@keyframes lp-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.025); }
}
@media (prefers-reduced-motion: reduce) { .lp-btn--hl { animation: none; } .lp-btn { transition: none; } }

/* Banner */
.lp-banner {
  display: block; overflow: hidden; text-decoration: none; color: inherit;
  border-radius: var(--lp-card-radius);
  background: rgba(var(--lp-text-rgb), 0.08);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .2);
  transition: transform .15s ease;
}
a.lp-banner:hover { transform: translateY(-1px); }
.lp-banner img { display: block; width: 100%; height: auto; }
.lp-banner-cap { display: block; padding: 12px 16px; text-align: center; font-size: 13.5px; font-weight: 600; letter-spacing: .3px; }

/* Mapa */
.lp-map iframe, .lp-video iframe {
  display: block; width: 100%; border: 0;
  border-radius: var(--lp-card-radius);
  background: rgba(var(--lp-text-rgb), 0.1);
}
.lp-map iframe { height: 250px; }
.lp-map-addr { display: flex; justify-content: center; align-items: center; gap: 6px; margin: 10px 0 0; font-size: 13px; opacity: .8; text-align: center; }
.lp-map-addr .ic { flex: none; }
.lp-map-routes { display: flex; gap: 8px; margin-top: 10px; }

/* Vídeo, texto, redes */
.lp-video iframe { aspect-ratio: 16 / 9; height: auto; }
.lp-text { text-align: center; padding: 4px 6px; }
.lp-text p { margin: 0; font-size: 14.5px; opacity: .88; }
.lp-social { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; padding: 6px 0; }
.lp-social a {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  color: var(--lp-text); text-decoration: none;
  background: rgba(var(--lp-text-rgb), 0.1);
  border: 1px solid rgba(var(--lp-text-rgb), 0.18);
  transition: transform .15s ease, background .15s ease;
}
.lp-social a:hover { transform: translateY(-2px); background: rgba(var(--lp-text-rgb), 0.18); }

.lp-footer { margin-top: 34px; text-align: center; font-size: 11.5px; letter-spacing: 1.5px; text-transform: uppercase; opacity: .5; }

/* Estados da página pública (carregando, não encontrada) — marfim e dourado da marca */
.lp-state { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px; text-align: center; color: #17130d; font-family: system-ui, sans-serif; background: #fdfaf5; }
.lp-state img { width: 84px; height: 84px; border-radius: 50%; margin-bottom: 14px; }
.lp-state h1 { font-family: 'Playfair Display', Georgia, serif; font-weight: 600; font-size: 22px; margin: 0 0 8px; }
.lp-state p { margin: 0 0 18px; opacity: .7; font-size: 14px; }
.lp-state a { color: #956928; font-weight: 600; }
.lp-spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid rgba(149, 105, 40, .2); border-top-color: #956928; animation: lp-spin .8s linear infinite; }
@keyframes lp-spin { to { transform: rotate(360deg); } }

/* Aviso de cookies (LGPD) */
.lp-consent {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 50;
  max-width: 536px; margin: 0 auto; padding: 14px 16px; border-radius: 14px;
  background: #fff; color: #1f1f1f; box-shadow: 0 10px 40px rgba(0, 0, 0, .35);
  font: 13px/1.4 system-ui, sans-serif; display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
}
.lp-consent p { margin: 0; flex: 1 1 220px; }
.lp-consent button { border: 0; border-radius: 99px; padding: 9px 16px; font: 600 13px system-ui, sans-serif; cursor: pointer; }
.lp-consent .ok { background: #17130d; color: #fff; }
.lp-consent .no { background: #ececec; color: #333; }
body.has-consent-bar .lp-wrap { padding-bottom: 150px; }
