/* ==========================================================================
   HM2 FACTORY — DOBRA DIFERENCIAIS (neutro, V8)
   Seletores: .h2-secao--diferenciais  e  .view-hm2-lp-diferenciais
   ========================================================================== */

body:not(.path-admin) .h2-secao--diferenciais .view-hm2-lp-diferenciais,
body:not(.path-admin) .view-hm2-lp-diferenciais {
  background-color: transparent;
}

/* Respeita alinhamento da seção */
body:not(.path-admin) .view-hm2-lp-diferenciais .views-view-responsive-grid {
  justify-content: flex-start;
}
body:not(.path-admin) .h2-secao.text-center .view-hm2-lp-diferenciais .views-view-responsive-grid {
  justify-content: center;
}
body:not(.path-admin) .h2-secao.text-end .view-hm2-lp-diferenciais .views-view-responsive-grid {
  justify-content: flex-end;
}

/* Card individual */
body:not(.path-admin) .view-hm2-lp-diferenciais .views-view-responsive-grid__item-inner {
  background-color: var(--hm2-surface-light, #f8f9fa);
  border-radius: var(--hm2-border-radius-card, 6px);
  padding: 28px 24px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

body:not(.path-admin) .view-hm2-lp-diferenciais .views-view-responsive-grid__item-inner:hover {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.10);
  transform: translateY(-2px);
}

/* Ícone imagem (PNG) */
body:not(.path-admin) .view-hm2-lp-diferenciais .views-field-field-diferencial-icone {
  display: flex;
  justify-content: center;
  margin-bottom: 6px;
}

body:not(.path-admin) .view-hm2-lp-diferenciais .views-field-field-diferencial-icone .field-content {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background-color: var(--hm2-on-surface-icon-bg, rgba(26,86,219,0.10));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

body:not(.path-admin) .view-hm2-lp-diferenciais .views-field-field-diferencial-icone img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

/* Ícone SVG inline */
body:not(.path-admin) .view-hm2-lp-diferenciais .views-field-field-diferencial-icone-svg {
  display: flex;
  justify-content: center;
  margin-bottom: 6px;
}

body:not(.path-admin) .view-hm2-lp-diferenciais .views-field-field-diferencial-icone-svg svg {
  width: 44px;
  height: 44px;
  color: var(--hm2-on-surface-accent, var(--hm2-color-primary, var(--bs-primary, #0d6efd)));
}

/* Ícone biblioteca (ui_icons Bootstrap Icons) */
body:not(.path-admin) .view-hm2-lp-diferenciais .views-field-field-diferencial-icone-id {
  display: flex;
  justify-content: center;
  margin-bottom: 6px;
}

body:not(.path-admin) .view-hm2-lp-diferenciais .views-field-field-diferencial-icone-id .field-content {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background-color: var(--hm2-on-surface-icon-bg, rgba(26,86,219,0.10));
  display: flex;
  align-items: center;
  justify-content: center;
}

body:not(.path-admin) .view-hm2-lp-diferenciais .views-field-field-diferencial-icone-id svg {
  width: 44px;
  height: 44px;
  color: var(--hm2-on-surface-accent, var(--hm2-color-primary, var(--bs-primary, #0d6efd)));
}

/* Título */
body:not(.path-admin) .view-hm2-lp-diferenciais .views-field-title {
  position: relative;
  padding-bottom: 12px;
  margin-bottom: 4px;
}

body:not(.path-admin) .view-hm2-lp-diferenciais .views-field-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 2px;
  background-color: var(--hm2-on-surface-accent, var(--hm2-color-primary, var(--bs-primary, #0d6efd)));
}

body:not(.path-admin) .view-hm2-lp-diferenciais .views-field-title .field-content,
body:not(.path-admin) .view-hm2-lp-diferenciais .views-field-title a {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--hm2-on-surface-title, var(--hm2-color-heading, #1a1a2e));
  text-decoration: none;
  display: block;
}

/* Descrição */
body:not(.path-admin) .view-hm2-lp-diferenciais .views-field-field-diferencial-descricao .field-content {
  font-size: 0.875rem;
  color: var(--hm2-on-surface-muted, #6b7280);
  line-height: 1.6;
}

/* Número destaque com gradiente (stat grande) */
body:not(.path-admin) .view-hm2-lp-diferenciais .views-field-field-diferencial-numero .field-content {
  font-size: 3rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--hm2-color-primary) 0%, var(--hm2-pal-brand-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  display: block;
}

/* =======================================================================
   MODIFICADOR com-icone: círculo sólido + ícone branco no topo do card
   Automaticamente adicionado pelo motor V8 quando nós têm ícone.
   ======================================================================= */

/* Exibe campo SVG (primário) */
body:not(.path-admin) .h2-secao--diferenciais.com-icone .views-field-field-diferencial-icone-svg {
  display: flex !important;
  justify-content: center;
  margin-bottom: 6px;
}

/* SVG existente esconde PNG */
body:not(.path-admin) .h2-secao--diferenciais.com-icone .views-field-field-diferencial-icone-svg ~ .views-field-field-diferencial-icone {
  display: none !important;
}

/* Container do ícone — círculo sólido primary */
body:not(.path-admin) .h2-secao--diferenciais.com-icone .views-field-field-diferencial-icone-svg .field-content,
body:not(.path-admin) .h2-secao--diferenciais.com-icone .views-field-field-diferencial-icone .field-content {
  width: 64px !important;
  height: 64px !important;
  border-radius: 50% !important;
  background-color: var(--hm2-color-primary, var(--bs-primary)) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
}

/* SVG branco dentro do círculo */
body:not(.path-admin) .h2-secao--diferenciais.com-icone .views-field-field-diferencial-icone-svg svg {
  width: 32px !important;
  height: 32px !important;
  color: #ffffff !important;
  flex-shrink: 0 !important;
}

/* PNG branco dentro do círculo */
body:not(.path-admin) .h2-secao--diferenciais.com-icone .views-field-field-diferencial-icone img {
  width: 36px !important;
  height: 36px !important;
  object-fit: contain !important;
  filter: brightness(0) invert(1) !important;
}
