/* Paulo Fiorilo | Cards Mandato em Numeros V38
   Camada isolada: nao altera hero, menu, banco, admin ou paginas internas. */

/* O bloco permanece claro como aprovado anteriormente. */
.numbers-showcase{background:#f6f5f2!important;overflow:visible!important}
.numbers-showcase .numbers-grid{gap:20px!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;align-items:stretch!important}

.numbers-showcase .numbers-grid>a.number-card.pf38-card{
  --pf38-red:#f51536;
  display:flex!important;
  position:relative!important;
  flex-direction:column!important;
  justify-content:space-between!important;
  isolation:isolate!important;
  height:298px!important;
  min-height:298px!important;
  min-width:0!important;
  padding:24px 23px 23px!important;
  border-radius:24px!important;
  overflow:hidden!important;
  cursor:pointer!important;
  text-decoration:none!important;
  outline:0;
  color:#fff!important;
  background:linear-gradient(146deg,rgba(79,19,29,.98) 0%,rgba(23,18,22,.98) 27%,rgba(12,14,18,.99) 62%,rgba(38,14,20,.98) 100%)!important;
  border:1px solid rgba(255,209,215,.57)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.17),inset 0 0 16px rgba(255,104,124,.04),0 12px 24px rgba(24,8,13,.15),0 0 0 1px rgba(64,7,20,.14)!important;
  transition:transform .35s cubic-bezier(.2,.8,.2,1),box-shadow .35s ease,border-color .35s ease,background .35s ease!important;
}
.numbers-showcase .numbers-grid>a.number-card.pf38-card *,
.numbers-showcase .numbers-grid>a.number-card.pf38-card svg{cursor:pointer!important}

/* Remove decoracoes herdadas de versoes anteriores, para nao sobrepor o visual. */
.numbers-showcase .numbers-grid>a.number-card.pf38-card::before{
  content:""!important;display:block!important;position:absolute!important;inset:0!important;z-index:0!important;
  background:linear-gradient(90deg,rgba(242,30,51,.16),transparent 24%,transparent 83%,rgba(248,54,80,.10))!important;
  opacity:1!important;transform:none!important;filter:none!important;pointer-events:none!important;
}
.numbers-showcase .numbers-grid>a.number-card.pf38-card::after{
  content:""!important;display:block!important;position:absolute!important;inset:1px!important;z-index:0!important;
  border-radius:23px!important;
  background:radial-gradient(ellipse 78% 45% at 17% 0%,rgba(255,63,78,.11),transparent 76%),linear-gradient(0deg,rgba(225,10,43,.10),transparent 45%)!important;
  opacity:1!important;pointer-events:none!important;transform:none!important;
}

.numbers-showcase .pf38-top-light{
  position:absolute;left:7%;right:9%;top:-1px;height:2px;z-index:4;
  background:linear-gradient(90deg,transparent,#f53346 17%,#ffe7ea 39%,#ff293c 58%,transparent 100%);
  box-shadow:0 0 7px 2px rgba(255,29,52,.87),0 0 17px 3px rgba(255,29,52,.53);
  transition:filter .35s ease,opacity .35s ease;
}
.numbers-showcase .pf38-card-glow{
  position:absolute;bottom:-5px;left:0;right:0;height:24px;z-index:1;pointer-events:none;
  background:radial-gradient(ellipse 65% 65% at 50% 100%,rgba(255,46,65,.62),transparent 100%);
  filter:blur(10px);opacity:.42;transition:opacity .35s ease;
}
/* Architectural lattice suggests the facade, built entirely with CSS. */
.numbers-showcase .pf38-card-architecture{
  position:absolute;bottom:0;right:0;width:76%;height:69%;z-index:0;pointer-events:none;
  background:
    repeating-linear-gradient(90deg,rgba(255,65,83,.16) 0px,rgba(255,65,83,.16) 1px,transparent 1px,transparent 14px),
    repeating-linear-gradient(0deg,rgba(255,61,74,.12) 0px,rgba(255,61,74,.12) 1px,transparent 1px,transparent 20px);
  -webkit-mask-image:linear-gradient(0deg,rgba(0,0,0,.66),transparent 92%);
  mask-image:linear-gradient(0deg,rgba(0,0,0,.66),transparent 92%);
  opacity:.75;
}
.numbers-showcase .pf38-chart{
  position:absolute;top:92px;left:0;right:-6px;height:150px;z-index:1;pointer-events:none;
  opacity:.82;transition:opacity .35s ease,transform .45s cubic-bezier(.2,.8,.2,1);
}
.numbers-showcase .pf38-chart svg{display:block;width:100%;height:100%;overflow:visible}
.numbers-showcase .pf38-chart-shadow{stroke:#ea0e2c;stroke-width:9;filter:blur(7px);opacity:.50}
.numbers-showcase .pf38-chart-line{
  stroke:#fb2941;stroke-width:1.55;filter:drop-shadow(0 0 4px rgba(255,38,62,.75));
  stroke-dasharray:600;stroke-dashoffset:0;transition:stroke .3s ease,stroke-width .3s ease;
}
.numbers-showcase .pf38-chart-arrow{stroke:#ff4058;stroke-width:3;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 0 5px #ff1535)}
.numbers-showcase .pf38-chart-dot{fill:#fff2ef;stroke:#f92643;stroke-width:2;filter:drop-shadow(0 0 5px #ff2439)}

.numbers-showcase .pf38-card-top,
.numbers-showcase .pf38-card-body,
.numbers-showcase .pf38-card-action{position:relative;z-index:3;transform:none!important}
.numbers-showcase .pf38-card-top{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.numbers-showcase .pf38-card-icon{
  display:grid;place-items:center;width:66px;height:66px;flex:none;border-radius:50%;
  background:radial-gradient(circle at 35% 25%,rgba(255,134,144,.40),rgba(183,22,44,.27) 35%,rgba(45,8,15,.89) 100%);
  border:1.5px solid rgba(255,193,196,.86);
  color:#fff;box-shadow:inset 0 1px 4px rgba(255,255,255,.19),0 0 0 5px rgba(245,31,60,.065),0 8px 19px rgba(0,0,0,.25);
  transition:background .3s,box-shadow .3s,transform .3s;
}
.numbers-showcase .pf38-card-icon svg{
  width:34px;height:34px;display:block;stroke:#fff!important;stroke-width:1.9!important;fill:none!important;filter:drop-shadow(0 1px 3px rgba(255,255,255,.17));
}
.numbers-showcase .pf38-signal{display:flex;align-items:flex-end;gap:5px;padding:8px 3px 0 0;height:43px;opacity:.55}
.numbers-showcase .pf38-signal i{width:6px;background:linear-gradient(#e2c9d0,#66565a);border-radius:2px 2px 0 0}
.numbers-showcase .pf38-signal i:nth-child(1){height:15px}.numbers-showcase .pf38-signal i:nth-child(2){height:22px}.numbers-showcase .pf38-signal i:nth-child(3){height:31px}

.numbers-showcase .pf38-card-body{margin:auto 0 0}
.numbers-showcase .pf38-number-row{display:flex;gap:6px;align-items:flex-end;margin-bottom:0}
.numbers-showcase .pf38-number{
  display:block;font:900 clamp(64px,5.1vw,92px)/.89 Poppins,Arial,sans-serif;
  letter-spacing:-4px;color:#fff!important;font-variant-numeric:tabular-nums;
  text-shadow:0 0 3px rgba(255,255,255,.36),0 0 18px rgba(255,32,55,.22),0 6px 14px rgba(0,0,0,.35)!important;
}
.numbers-showcase .pf38-suffix{color:#fff;font:800 16px/1 Inter,Arial,sans-serif;padding-bottom:8px}
.numbers-showcase .pf38-underline{display:block;width:45px;height:3px;margin:9px 0 12px;border-radius:5px;background:#f52142;box-shadow:0 0 10px rgba(255,45,68,.8)}
.numbers-showcase .pf38-card-body h3{
  margin:0 18px 0 0;color:#f8f7f8!important;
  font:750 clamp(13px,1.06vw,17px)/1.26 Inter,Arial,sans-serif;
  letter-spacing:1.2px;text-transform:uppercase;max-width:100%;
  text-shadow:0 2px 5px rgba(0,0,0,.42);
}
.numbers-showcase .pf38-card-action{
  display:flex;justify-content:flex-end;align-items:center;gap:7px;
  position:absolute!important;right:18px;bottom:18px;z-index:6;
  color:#fff;opacity:.7;
  transition:opacity .25s ease,transform .25s ease;
}
.numbers-showcase .pf38-card-action span{font:750 9px Inter,Arial,sans-serif;letter-spacing:1.1px;opacity:0;transform:translateX(4px);transition:opacity .25s ease,transform .25s ease}
.numbers-showcase .pf38-card-action svg{width:24px;height:24px;padding:4px;border:1px solid rgba(255,255,255,.5);border-radius:50%;background:rgba(155,15,36,.24);box-sizing:content-box}

@media(hover:hover) and (pointer:fine){
  .numbers-showcase .numbers-grid>a.number-card.pf38-card:hover{
    transform:translateY(-8px) scale(1.012)!important;
    border-color:rgba(255,184,191,.95)!important;
    background:linear-gradient(145deg,#67212c 0%,#26151a 30%,#101318 66%,#5a1421 100%)!important;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.31),0 24px 42px rgba(34,6,14,.32),0 0 0 1px rgba(255,56,74,.4),0 0 30px rgba(254,31,59,.33)!important;
  }
  .numbers-showcase .pf38-card:hover .pf38-chart{transform:translateY(-4px) scale(1.035)!important;opacity:1}
  .numbers-showcase .pf38-card:hover .pf38-card-glow{opacity:1}
  .numbers-showcase .pf38-card:hover .pf38-top-light{filter:brightness(1.55)}
  .numbers-showcase .pf38-card:hover .pf38-card-icon{transform:translateY(-3px);box-shadow:inset 0 1px 4px rgba(255,255,255,.22),0 0 0 5px rgba(245,31,60,.10),0 0 22px rgba(255,27,54,.42)}
  .numbers-showcase .pf38-card:hover .pf38-card-action{opacity:1;transform:translateX(2px)}
  .numbers-showcase .pf38-card:hover .pf38-card-action span{opacity:1;transform:translateX(0)}
}
.numbers-showcase .numbers-grid>a.number-card.pf38-card:focus-visible{
  outline:3px solid #ff2750!important;outline-offset:5px;
  border-color:#ffd3da!important;
  box-shadow:0 0 0 1px rgba(255,56,74,.35),0 0 28px rgba(255,28,55,.35),0 18px 35px rgba(34,6,14,.3)!important;
}
.numbers-showcase .pf38-card:focus-visible .pf38-card-action span{opacity:1;transform:none}
.numbers-showcase .pf38-card:focus-visible .pf38-card-action{opacity:1}

@media(max-width:1200px){
 .numbers-showcase .numbers-grid{gap:14px!important}
 .numbers-showcase .numbers-grid>a.number-card.pf38-card{padding:20px 19px!important;height:274px!important;min-height:274px!important}
 .numbers-showcase .pf38-card-icon{width:59px;height:59px}
 .numbers-showcase .pf38-card-icon svg{width:30px;height:30px}
 .numbers-showcase .pf38-number{font-size:clamp(58px,5.1vw,78px)}
 .numbers-showcase .pf38-card-body h3{font-size:13px;letter-spacing:.8px}
}
@media(max-width:1120px){
 .numbers-showcase .numbers-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:16px!important;width:calc(100% - 48px)!important}
 .numbers-showcase .numbers-grid>a.number-card.pf38-card{height:285px!important;min-height:285px!important}
 .numbers-showcase .pf38-number{font-size:clamp(66px,9vw,88px)}
 .numbers-showcase .pf38-card-body h3{font-size:15px}
}
@media(max-width:520px){
 .numbers-showcase .numbers-shell{width:calc(100% - 32px)!important}
 .numbers-showcase .numbers-grid{grid-template-columns:1fr!important;width:calc(100% - 36px)!important;gap:15px!important}
 .numbers-showcase .numbers-grid>a.number-card.pf38-card{height:250px!important;min-height:250px!important;padding:19px 21px!important;border-radius:22px!important}
 .numbers-showcase .pf38-card-icon{width:57px;height:57px}
 .numbers-showcase .pf38-card-icon svg{width:30px;height:30px}
 .numbers-showcase .pf38-chart{top:70px;height:135px}
 .numbers-showcase .pf38-number{font-size:75px}
 .numbers-showcase .pf38-card-body h3{font-size:14px;letter-spacing:1.1px;max-width:85%}
 .numbers-showcase .pf38-card-action{right:15px!important;bottom:15px!important}
 .numbers-showcase .pf38-card-action span{display:none}
}
@media(prefers-reduced-motion:reduce){
 .numbers-showcase .numbers-grid>a.number-card.pf38-card,
 .numbers-showcase .pf38-card-icon,.numbers-showcase .pf38-chart,
 .numbers-showcase .pf38-card-action,.numbers-showcase .pf38-top-light{transition:none!important}
 .numbers-showcase .numbers-grid>a.number-card.pf38-card:hover{transform:none!important}
}
