

/* CFN revisão dinâmica: logo corrigida, miniaturas em movimento e performance equilibrada */
.logo-img,.brand-logo,.floating-logo,.footer-logo .logo-img{
  background-image:url("../img/image-01-52b174c072.webp") !important;
  background-position:center !important;
  background-size:contain !important;
  background-repeat:no-repeat !important;
}
.brand-logo{width:96px;height:82px;min-width:96px;display:block}
.footer-logo .logo-img{width:86px;height:76px;display:block}
.dynamic-gallery{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:18px;
  align-items:stretch;
}
.gallery-card.cfn-motion-card,
.gallery-card.cfn-image-card{
  cursor:pointer;
  overflow:hidden;
  border-radius:22px;
  background:linear-gradient(180deg,rgba(255,255,255,.075),rgba(255,255,255,.035));
  border:1px solid rgba(0,217,255,.20);
  box-shadow:0 14px 38px rgba(0,0,0,.25), inset 0 0 0 1px rgba(255,255,255,.03);
  transform:translateZ(0);
  transition:transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.gallery-card.cfn-motion-card:hover,
.gallery-card.cfn-image-card:hover{
  transform:translateY(-4px);
  border-color:rgba(0,217,255,.55);
  box-shadow:0 18px 48px rgba(0,217,255,.12),0 16px 40px rgba(0,0,0,.35);
}
.cfn-thumb-shell{
  position:relative;
  width:100%;
  aspect-ratio:16/10;
  overflow:hidden;
  border-radius:20px 20px 0 0;
  background:radial-gradient(circle at 30% 20%,rgba(0,217,255,.20),transparent 44%),rgba(1,6,18,.82);
}
.gallery-card video.cfn-thumb-video,
.gallery-card img.cfn-thumb-img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  object-position:center;
  filter:saturate(1.08) contrast(1.04);
  transform:scale(1.01);
}
.gallery-card video.cfn-thumb-video{background:#020711}
.cfn-thumb-shell::after{
  content:"";
  position:absolute;inset:0;
  background:linear-gradient(180deg,transparent 50%,rgba(1,6,18,.62));
  pointer-events:none;
}
.cfn-thumb-shell .play-badge{
  position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);
  width:56px;height:56px;border-radius:999px;display:grid;place-items:center;
  background:linear-gradient(135deg,#50f4e6,#b9ff4d);
  color:#061426;font-weight:950;box-shadow:0 0 30px rgba(0,217,255,.44);z-index:4;
}
.cfn-video-label{position:absolute;left:12px;bottom:12px;z-index:5;padding:7px 10px;border-radius:999px;background:rgba(2,7,19,.72);border:1px solid rgba(255,255,255,.16);font-size:12px;font-weight:800;color:#fff;backdrop-filter:blur(10px)}
.gallery-info{padding:15px 16px 18px}.gallery-info small{color:var(--cyan,#00d9ff);font-weight:800;text-transform:uppercase;letter-spacing:.08em}.gallery-info h4{margin:7px 0 7px}.gallery-info p{min-height:38px}
#portfolioVideoThumb,#portfolioConviteThumb{position:relative;overflow:hidden}
#portfolioVideoThumb video,#portfolioConviteThumb video{width:100%;height:100%;object-fit:cover;display:block;border-radius:inherit}
.gallery-modal{z-index:999999!important}.gallery-modal-content{z-index:1000000!important;max-width:min(1120px,94vw)!important}.gallery-modal-media{width:100%;max-height:78vh;object-fit:contain;border-radius:18px;background:#030816}.gallery-modal video.gallery-modal-media{max-height:76vh}.portfolio-modal-grid{max-height:72vh;overflow:auto;padding-right:6px}
@media (max-width:768px){
  .brand-logo{width:74px;height:64px;min-width:74px}.dynamic-gallery{grid-template-columns:1fr;gap:14px}.cfn-thumb-shell{aspect-ratio:16/9;border-radius:18px 18px 0 0}.gallery-info{padding:13px 14px 16px}.gallery-info p{min-height:auto}.cfn-thumb-shell .play-badge{width:48px;height:48px;font-size:14px}.floating-logo{display:none!important}.gallery-card.cfn-motion-card:hover,.gallery-card.cfn-image-card:hover{transform:none}
}
@media (min-width:900px){.portfolio-modal-grid.dynamic-gallery{grid-template-columns:repeat(3,minmax(0,1fr))}.portfolio-inline-preview .dynamic-gallery{grid-template-columns:repeat(3,minmax(0,1fr))}}
