/* Uniformização visual — AMA Avelar. Carregada depois de todos os outros CSS. */
:root {
  --ama-font: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --ama-text: #2b2e33;
  --ama-gold: #8f5a0c;
  --ama-gold-hover: #5e3a05;
  --ama-alert: #b3261e;
}

body, button, input, select, textarea,
h1, h2, h3, h4, h5, h6, p, li, a, span, td, th, label,
.elementor-widget-container, .elementor-heading-title,
[style*="font-family"] {
  font-family: var(--ama-font) !important;
}

body, p, li, td { color: var(--ama-text); }

.wpforms-submit, .wpforms-container .wpforms-form button[type=submit] {
  background: var(--ama-gold) !important; border: 0 !important; color: #fff !important;
  border-radius: 4px; padding: 12px 24px; cursor: pointer; font-weight: 600;
}
.wpforms-submit:hover { background: var(--ama-gold-hover) !important; }
.ama-form-msg { margin-top: 12px; padding: 10px 14px; border-radius: 4px; }
.ama-form-msg.ok { background: #e6f2e6; color: #1f5a22; }
.ama-form-msg.err { background: #fbe9e7; color: var(--ama-alert); }
body { line-height: 1.65; -webkit-font-smoothing: antialiased; }

/* Títulos e destaques inline em dourado da marca, legível sobre o fundo creme */
h1, h2, h3, h4, h5, h6, .elementor-heading-title,
[style*="color: rgb(192, 127, 35)"], [style*="color:#c07f23"], [style*="color: #c07f23"] {
  color: var(--ama-gold) !important;
}

/* Ligações coerentes (substitui azul / preto inline) */
a, .elementor a, [style*="color: rgb(15, 87, 251)"], [style*="color:#0f57fb"] {
  color: var(--ama-gold) !important;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
a:hover, a:focus-visible { color: var(--ama-gold-hover) !important; }
.main-header-menu a, .ast-builder-menu a { color: var(--ama-text) !important; text-decoration: none; }
.main-header-menu a:hover, .main-header-menu .current-menu-item > a { color: var(--ama-gold) !important; }

/* Vermelho puro → vermelho de alerta mais suave */
[style*="color: rgb(255, 0, 0)"], [style*="color:#ff0000"], [style*="color: #ff0000"] { color: var(--ama-alert) !important; }

img { max-width: 100%; height: auto; }

/* Cabeçalho: 5 fotografias em "montanha" — 1=5, 2=4, centro maior */
.ama-hero {
  --u: min(1px, 0.1vw);
  display: flex; justify-content: center; align-items: center;
  gap: calc(12 * var(--u)); padding: 14px 0; margin: 0;
}
.ama-hero > img {
  display: block; max-width: none; object-fit: cover; border-radius: 6px;
  filter: sepia(.3) contrast(1.04);
  box-shadow: 0 3px 10px rgba(60, 40, 10, .28);
  transition: transform .3s ease, filter .3s ease;
}
.ama-hero > img:hover { transform: scale(1.05); filter: none; }
.ama-hero > img:nth-child(1), .ama-hero > img:nth-child(5) { width: calc(150 * var(--u)); height: calc(110 * var(--u)); }
.ama-hero > img:nth-child(2), .ama-hero > img:nth-child(4) { width: calc(190 * var(--u)); height: calc(150 * var(--u)); }
.ama-hero > img:nth-child(3) { width: calc(230 * var(--u)); height: calc(200 * var(--u)); object-position: center 30%; }

/* Contador de visitas */
.ama-visits { display: flex; justify-content: center; gap: 4px; margin: 6px 0 18px; min-height: 40px; }
.ama-digit {
  display: inline-block; min-width: 28px; padding: 6px 4px; text-align: center;
  font: 700 1.4rem/1 var(--ama-font); color: #fff; background: var(--ama-gold);
  border-radius: 4px; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .2);
}
:focus-visible { outline: 2px solid var(--ama-gold); outline-offset: 2px; }
