/* EPROCAD — páginas de projeto (body.eprocad-projeto). Carregado só nelas. */

/* 1) Título do hero vira <h1> (SEO) sem mudar nada no visual: onde o Elementor não define a
      propriedade, o h1 herda igual ao <div> antigo (especificidade menor que a do Elementor). */
.eprocad-projeto h1.elementor-slide-heading {
  font-family: inherit; font-size: inherit; font-weight: inherit; line-height: inherit;
  letter-spacing: inherit; text-transform: inherit; color: inherit;
  margin-top: 0; padding: 0;
}

/* 2) Números de impacto — cartão único, números grandes e coloridos, divisórias, ícones menores. */
.eprocad-projeto .e-con-inner:has(> .elementor-widget-premium-counter),
.eprocad-projeto .e-con:has(> .elementor-widget-premium-counter) {
  background: #fff !important;
  border: 1px solid #e8eef6 !important;
  border-radius: 22px !important;
  box-shadow: 0 14px 40px rgba(20, 40, 80, .10) !important;
  padding: 30px 12px !important;
  display: flex !important; flex-direction: row !important; flex-wrap: nowrap !important;
  align-items: stretch !important; gap: 0 !important;
}
.eprocad-projeto .elementor-widget-premium-counter {
  flex: 1 1 0 !important; width: auto !important; max-width: none !important; min-width: 0 !important;
  margin: 0 !important; padding: 4px 14px !important;
  background: transparent !important; border: 0 !important; box-shadow: none !important; border-radius: 0 !important;
}
.eprocad-projeto .elementor-widget-premium-counter + .elementor-widget-premium-counter { border-left: 1px solid #e6ecf4 !important; }
.eprocad-projeto .elementor-widget-premium-counter .premium-counter-area {
  background: transparent !important; border: 0 !important; box-shadow: none !important;
  padding: 0 !important; margin: 0 !important; text-align: center !important;
  display: flex !important; flex-direction: column !important; align-items: center !important;
}
/* ícone: mantido, menor e discreto */
.eprocad-projeto .premium-counter-icon { margin: 0 0 14px !important; line-height: 1 !important; height: auto !important; position: static !important; transform: none !important; }
.eprocad-projeto .premium-counter-icon .icon,
.eprocad-projeto .premium-counter-icon i { font-size: 24px !important; line-height: 1 !important; width: auto !important; height: auto !important; }
.eprocad-projeto .premium-counter-icon svg { width: 24px !important; height: 24px !important; }
/* número */
.eprocad-projeto .premium-init-wrapper { align-items: center !important; text-align: center !important; }
.eprocad-projeto .premium-counter-value-wrap,
.eprocad-projeto .premium-counter-init {
  font-family: 'Montserrat', sans-serif !important; font-size: 46px !important; font-weight: 800 !important;
  line-height: 1.1 !important; letter-spacing: -0.5px !important; display: inline-block !important;
}
.eprocad-projeto .elementor-widget-premium-counter:nth-child(4n+1) .premium-counter-init { color: #2B6CB0 !important; }
.eprocad-projeto .elementor-widget-premium-counter:nth-child(4n+2) .premium-counter-init { color: #1B7A3D !important; }
.eprocad-projeto .elementor-widget-premium-counter:nth-child(4n+3) .premium-counter-init { color: #A87A00 !important; }
.eprocad-projeto .elementor-widget-premium-counter:nth-child(4n+4) .premium-counter-init { color: #224277 !important; }
/* legenda */
.eprocad-projeto .premium-counter-title { margin-top: 8px !important; }
.eprocad-projeto .premium-counter-title-val {
  font-family: 'Montserrat', sans-serif !important; font-size: 15px !important; font-weight: 600 !important;
  color: #4a5563 !important; margin: 0 !important; line-height: 1.3 !important;
}
.eprocad-projeto .premium-counter-desc {
  font-size: 12.5px !important; color: #8a93a3 !important; margin: 4px 0 0 !important; line-height: 1.4 !important;
}

/* celular: 2 × 2 com divisórias coerentes */
@media (max-width: 767px) {
  .eprocad-projeto .e-con-inner:has(> .elementor-widget-premium-counter),
  .eprocad-projeto .e-con:has(> .elementor-widget-premium-counter) { flex-wrap: wrap !important; padding: 18px 6px !important; }
  .eprocad-projeto .elementor-widget-premium-counter { flex: 0 0 50% !important; padding: 14px 8px !important; }
  .eprocad-projeto .elementor-widget-premium-counter + .elementor-widget-premium-counter { border-left: 0 !important; }
  .eprocad-projeto .elementor-widget-premium-counter:nth-child(2n) { border-left: 1px solid #e6ecf4 !important; }
  .eprocad-projeto .elementor-widget-premium-counter:nth-child(n+3) { border-top: 1px solid #e6ecf4 !important; }
  .eprocad-projeto .premium-counter-value-wrap, .eprocad-projeto .premium-counter-init { font-size: 36px !important; }
}

/* 3) Galeria de parceiros com poucos logos (ex.: Cultura de Paz): a regra global do Personalizar
      (.gallery-item{max-width:20%}) esmaga; aqui devolvemos a largura natural das colunas. */
.eprocad-projeto .elementor-widget-image-gallery .gallery { display: flex !important; flex-wrap: wrap !important; justify-content: center !important; align-items: center !important; }
.eprocad-projeto .gallery-columns-2 .gallery-item,
.eprocad-projeto .gallery-columns-3 .gallery-item { width: auto !important; max-width: none !important; flex: 0 0 auto !important; margin: 6px 22px !important; }
.eprocad-projeto .gallery-columns-2 .gallery-item img,
.eprocad-projeto .gallery-columns-3 .gallery-item img { width: 240px !important; max-width: 70vw !important; height: auto !important; }
