/* ============================
   SECÇÃO PRINCIPAL
============================ */
.mt-cases {
  background: #f3f6fd;
  padding: 90px 0;
}

.mt-subtitle {
  color: #c4171b;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.9rem;
}

.mt-title {
  color: #fff;
  font-size: 2.4rem;
  font-weight: 350;
}

/* ============================
   CARD
============================ */
.mt-case-card {
  min-width: 360px;
  max-width: 380px;
  background: linear-gradient(145deg, #0A0F1F, #050814);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  flex-shrink: 0;
  transition: transform .35s ease, box-shadow .35s ease;
}

.mt-case-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 60px rgba(0,0,0,0.65);
}

.mt-case-img {
  overflow: hidden;
  position: relative;
}

.mt-case-img img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform .6s ease;
  will-change: transform;
}

.mt-case-card:hover .mt-case-img img {
  transform: scale(1.08);
}

.mt-case-content {
  padding: 20px;
}

.mt-case-content h3 {
  color: #fff;
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.mt-case-content p {
  color: #b8c2d6;
  font-size: 0.95rem;
  margin-bottom: 18px;
}

/* ============================
   BOTÕES DO SLIDER
============================ */
.mt-case-buttons {
  display: flex;
  gap: 8px;
}

.btn-view,
.btn-details {
  flex: 1;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: .25s;
  text-align: center;
}

/* VER PROJETO */
.btn-view {
  background: #E60023;
  color: #fff;
}

.btn-view:hover {
  background: #F28C2A;
}

/* DETALHES — NEON AZUL */
.btn-details {
  background: transparent;
  border: 1px solid #c4171b;
  color: #c4171b;
  box-shadow: 0 0 8px rgba(74,199,232,0.35);
  animation: neonPulse 2.4s infinite ease-in-out;
}

.btn-details:hover {
  background: rgba(74,199,232,0.15);
  box-shadow: 0 0 14px rgba(74,199,232,0.75);
}

@keyframes neonPulse {
  0% { box-shadow: 0 0 6px rgba(74,199,232,0.25); }
  50% { box-shadow: 0 0 14px rgba(74,199,232,0.55); }
  100% { box-shadow: 0 0 6px rgba(74,199,232,0.25); }
}

/* ============================
   NAVEGAÇÃO
============================ */
.mt-nav {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  transition: .25s;
  align-items: center;
  justify-content: center;
  display: flex;
  z-index: 10;
}

.mt-nav:hover {
  background: #c4171b;
  color: #050814;
}

.mt-nav.prev { left: -20px; }
.mt-nav.next { right: -20px; }

/* ============================
   MODAL HORIZONTAL
============================ */
.mt-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(6px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.mt-modal-box.horizontal {
  display: flex;
  gap: 25px;
  max-width: 900px;
  padding: 25px;
  background: #fff;
  border-radius: 14px;
  position: relative;
  border-top: 6px solid #E60023;
  animation: mtSlideUp .35s ease;
}

.close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  font-size: 26px;
  cursor: pointer;
  color: #E60023;
}

/* COLUNA ESQUERDA */
.mt-modal-left {
  width: 40%;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* IMAGEM QUADRADA */
.mt-modal-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 0 25px #c4171baa;
}

.mt-modal-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* CTA HORIZONTAL ESTREITO */
.mt-modal-cta-horizontal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: linear-gradient(90deg, #E60023, #2A2A2A);
  padding: 10px 16px;
  border-radius: 10px;
  width: 100%;
  text-align: center;
  box-shadow: 0 0 18px rgba(230,0,35,0.35);
  border: 1px solid rgba(255,255,255,0.08);
}

.mt-modal-cta-horizontal span {
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.mt-modal-cta-btn {
  padding: 8px 14px;
  background: #ffffff;
  color: #E60023;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: .25s ease;
}

.mt-modal-cta-btn:hover {
  background: #F28C2A;
  color: #fff;
}

/* COLUNA DIREITA */
.mt-modal-right {
  width: 60%;
  display: flex;
  flex-direction: column;
}

.mt-modal-title {
  color: #E60023;
  margin-bottom: 12px;
  font-size: 1.8rem;
}

.mt-modal-info {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
}

.mt-modal-info li {
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.mt-modal-desc {
  font-size: 0.95rem;
  color: #333;
  margin-bottom: 18px;
}

/* BOTÕES DO MODAL */
.mt-modal-buttons {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.mt-modal-link,
.mt-modal-whatsapp {
  padding: 8px 12px;
  font-size: 0.8rem;
  border-radius: 6px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* VER PROJETO */
.mt-modal-link {
  background: #E60023;
  color: #fff;
}

.mt-modal-link:hover {
  background: #F28C2A;
}

/* WHATSAPP */
.mt-modal-whatsapp {
  background: #25D366;
  color: #fff;
}

.mt-modal-whatsapp:hover {
  background: #1EBE5A;
}

/* ============================
   RESPONSIVO
============================ */
@media (max-width: 768px) {
  .mt-modal-box.horizontal {
    flex-direction: column;
    max-width: 95%;
  }

  .mt-modal-left,
  .mt-modal-right {
    width: 100%;
  }
}

/* ============================
   RESPONSIVO PREMIUM (MOBILE)
============================ */
@media (max-width: 768px) {

  /* Fundo do modal */
  .mt-modal {
    padding: 20px;
    align-items: flex-start !important; /* NÃO centraliza verticalmente */
    overflow-y: auto !important;
  }

  /* Caixa do modal compacta */
  .mt-modal-box.horizontal {
    flex-direction: column !important;
    width: 100% !important;
    max-width: 95% !important;
    max-height: 90vh !important; /* impede de estourar */
    overflow-y: auto !important; /* scroll interno */
    padding: 18px;
    gap: 18px;
  }

  /* Coluna esquerda */
  .mt-modal-left {
    width: 100% !important;
    margin-bottom: 10px;
  }

  /* Imagem menor e proporcional */
  .mt-modal-img {
    aspect-ratio: 1 / 1;
    max-height: 260px;
  }

  .mt-modal-img img {
    object-fit: cover;
  }

  /* CTA vira bloco */
  .mt-modal-cta-horizontal {
    flex-direction: column;
    gap: 10px;
    padding: 12px;
  }

  /* Coluna direita */
  .mt-modal-right {
    width: 100% !important;
  }

  .mt-modal-title {
    font-size: 1.4rem;
    margin-bottom: 10px;
  }

  .mt-modal-info li {
    font-size: 0.9rem;
  }

  .mt-modal-desc {
    font-size: 0.95rem;
    line-height: 1.45;
  }

  /* Botões empilhados */
  .mt-modal-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .mt-modal-link,
  .mt-modal-whatsapp {
    width: 100%;
    text-align: center;
  }

  /* Botão fechar */
  .close {
    top: 10px;
    right: 12px;
    font-size: 24px;
  }
}

/* ============================
   PAGINA CASOS DE SUCESSO
============================ */

#casos-de-estudo {
  padding: 80px 0;
  background: #050b12;
  color: #fff;
}

.mt-filter-bar {
  text-align: center;
  margin-bottom: 30px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.mt-filter-btn {
  background: #0b1b2b;
  color: #fff;
  border: 1px solid #1f3b5a;
  padding: 8px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: 0.25s;
}

.mt-filter-btn.active,
.mt-filter-btn:hover {
  background: #0f6fff;
  border-color: #0f6fff;
}
.mt-filter-btn.active,
.mt-filter-btn:hover {
  background: #E60023 !important;
  border-color: #E60023 !important;
}

.mt-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 992px) {
  .mt-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .mt-grid { grid-template-columns: 1fr; }
}

.mt-pagination {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.mt-page-btn {
  background: #0b1b2b;
  color: #fff;
  border: 1px solid #1f3b5a;
  padding: 8px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: 0.25s;
}

.mt-page-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

/* 🔥 HOVER VERMELHO MARCOSTEC */
.mt-page-btn:not(:disabled):hover {
  background: #E60023 !important;
  border-color: #E60023 !important;
  color: #fff !important;
}
/* ============================
   RESPONSIVIDADE – CASOS DE SUCESSO
============================ */

/* Wrapper do slider */
.mt-cases-wrapper {
  overflow: hidden;
  width: 100%;
  position: relative;
}

/* Slider horizontal */
.mt-cases-slider {
  display: flex;
  gap: 20px;
  transition: transform 0.4s ease;
}

/* Card responsivo */
.mt-case-card {
  min-width: 320px;
  max-width: 100%;
  flex: 0 0 auto;
  background: #0b1522;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.05);
}

/* Imagem responsiva */
.mt-case-img img {
  width: 100%;
  height: auto;
  display: block;
}

/* Conteúdo */
.mt-case-content {
  padding: 20px;
}

/* Botões de navegação */
.mt-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.4);
  border: none;
  color: #fff;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 10;
  transition: 0.3s ease;
}

.mt-nav:hover {
  background: #E60023;
}

/* Botão anterior */
.mt-nav.prev {
  left: 10px;
}

/* Botão seguinte */
.mt-nav.next {
  right: 10px;
}

/* ============================
   MOBILE
============================ */

@media (max-width: 768px) {

  /* Cards ocupam 90% da largura */
  .mt-case-card {
    min-width: 90%;
  }

  /* Slider com scroll horizontal */
  .mt-cases-slider {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 10px;
  }

  .mt-case-card {
    scroll-snap-align: center;
  }

  /* Esconder botões de navegação no mobile */
  .mt-nav {
    display: none !important;
  }
}

/* ============================
   MOBILE PEQUENO
============================ */

@media (max-width: 480px) {
  .mt-case-card {
    min-width: 100%;
  }

  .mt-case-content {
    padding: 15px;
  }
}


/* V42: modal único de Casos de Sucesso partilhado com a Home. */

/* Casos V3: modal de evidência comercial */
.mt-modal-box.horizontal{max-width:920px!important;grid-template-columns:320px minmax(0,1fr)!important;gap:0!important;overflow:hidden!important;border:1px solid rgba(230,0,35,.22)!important;box-shadow:0 28px 80px rgba(0,0,0,.24)!important}
.mt-modal-right{padding:30px 32px!important}.mt-modal-title{font-size:25px!important;line-height:1.15!important;margin:0 0 7px!important}.mt-case-modal-kicker{display:block;color:#e60023;font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;margin-bottom:7px}.mt-modal-info{display:flex!important;flex-wrap:wrap!important;gap:7px!important;margin:0 0 20px!important;padding:0!important;list-style:none!important}.mt-modal-info li{font-size:11.5px!important;padding:6px 9px!important;border:1px solid #e5e9ee!important;border-radius:999px!important;background:#f7f9fb!important}.mt-modal-info li strong{font-weight:700!important}.mt-case-story{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:0 0 18px}.mt-case-story article{border-top:1px solid #e6e9ed;padding:12px 0 3px}.mt-case-story article:nth-child(odd){padding-right:12px}.mt-case-story article:nth-child(even){padding-left:12px;border-left:1px solid #eef0f2}.mt-case-story span{display:flex;align-items:center;gap:7px;color:#e60023;font-size:10.5px;font-weight:800;text-transform:uppercase;letter-spacing:.06em;margin-bottom:5px}.mt-case-story h3{font-size:13.5px!important;line-height:1.35!important;margin:0 0 4px!important;color:#111821!important}.mt-case-story p{font-size:12.5px!important;line-height:1.55!important;color:#59616c!important;margin:0!important}.mt-modal-desc{display:none!important}.mt-modal-buttons{padding-top:4px!important}.mt-modal-left{background:#0b141f!important}.mt-modal-cta-horizontal{margin:14px!important;border-radius:9px!important}.mt-modal-img{min-height:320px!important}.mt-modal-img img{height:100%!important;object-fit:cover!important}.mt-case-proof-note{font-size:11px;color:#7b838d;margin:2px 0 15px;line-height:1.45}.mt-case-card .mt-case-content p{min-height:42px}
@media(max-width:760px){.mt-modal-box.horizontal{grid-template-columns:1fr!important;max-height:90vh!important;overflow:auto!important}.mt-modal-img{min-height:210px!important;height:210px!important}.mt-modal-right{padding:22px 18px!important}.mt-case-story{grid-template-columns:1fr!important}.mt-case-story article:nth-child(even){padding-left:0;border-left:0}.mt-case-story article:nth-child(odd){padding-right:0}}


/* Modal de projeto V4: mesma linguagem do modal Solicitar Consultoria */
#mtCaseModal{padding:24px!important;background:rgba(3,8,14,.78)!important;backdrop-filter:blur(8px)}
#mtCaseModal .mt-modal-box.horizontal{display:block!important;position:relative!important;width:min(1040px,96vw)!important;max-width:1040px!important;max-height:90vh!important;overflow:hidden!important;background:#101820!important;border:1px solid #e60023!important;border-radius:18px!important;box-shadow:0 30px 90px rgba(0,0,0,.48)!important;color:#fff!important}
#mtCaseModal .close{position:absolute!important;right:20px!important;top:16px!important;z-index:8!important;width:38px!important;height:38px!important;border:0!important;background:transparent!important;color:#fff!important;font-size:30px!important;line-height:1!important;cursor:pointer!important}
.mt-project-header{padding:24px 66px 18px 26px;border-bottom:1px solid rgba(255,255,255,.09)}
.mt-project-header .mt-case-modal-kicker{color:#ff2746!important;font-size:11px!important;margin-bottom:6px!important}.mt-project-header .mt-modal-title{color:#fff!important;font-size:28px!important;margin:0 0 12px!important}.mt-project-meta{display:flex;flex-wrap:wrap;gap:8px}.mt-project-meta span{font-size:11.5px;color:#c7ced7;border:1px solid rgba(255,255,255,.13);border-radius:999px;padding:6px 9px;background:rgba(255,255,255,.035)}.mt-project-meta strong{color:#fff}
.mt-project-body{display:grid;grid-template-columns:minmax(0,1.02fr) minmax(0,.98fr);min-height:470px;max-height:calc(90vh - 110px);overflow:auto}
.mt-project-gallery{padding:22px;background:#0b121a;border-right:1px solid rgba(255,255,255,.08)}.mt-project-main{height:340px;border-radius:12px;overflow:hidden;background:#070c12;border:1px solid rgba(255,255,255,.08)}.mt-project-main img{width:100%;height:100%;object-fit:cover;display:block}.mt-project-thumbs{display:flex;gap:8px;margin-top:10px;overflow-x:auto;padding-bottom:3px}.mt-project-thumb{flex:0 0 72px;width:72px;height:54px;padding:0;border:1px solid rgba(255,255,255,.14);border-radius:8px;overflow:hidden;background:#0b121a;cursor:pointer;opacity:.7}.mt-project-thumb.active{opacity:1;border-color:#e60023}.mt-project-thumb img{width:100%;height:100%;object-fit:cover}.mt-gallery-count{display:flex;align-items:center;justify-content:space-between;margin-top:11px;color:#8f9aa7;font-size:11px}.mt-gallery-count strong{color:#fff}.mt-gallery-nav{display:flex;gap:6px}.mt-gallery-nav button{width:30px;height:30px;border-radius:7px;border:1px solid rgba(255,255,255,.13);background:rgba(255,255,255,.04);color:#fff;cursor:pointer}.mt-gallery-nav button:hover{border-color:#e60023;color:#ff2746}
.mt-project-content{padding:22px 24px 24px;background:linear-gradient(145deg,#111a24,#0c151e)}.mt-project-intro{font-size:13px;line-height:1.6;color:#aeb8c4;margin:0 0 16px}.mt-case-story{display:block!important;margin:0!important}.mt-case-story article{position:relative!important;padding:13px 0 13px 36px!important;border:0!important;border-top:1px solid rgba(255,255,255,.09)!important}.mt-case-story article:before{position:absolute;left:0;top:14px;width:25px;height:25px;border-radius:7px;background:rgba(230,0,35,.12);border:1px solid rgba(230,0,35,.24);display:grid;place-items:center;color:#ff2746;font-family:'Font Awesome 6 Free';font-weight:900}.mt-case-story article:nth-child(1):before{content:'\f140'}.mt-case-story article:nth-child(2):before{content:'\f7d9'}.mt-case-story article:nth-child(3):before{content:'\f121'}.mt-case-story article:nth-child(4):before{content:'\e098'}.mt-case-story span{color:#ff2746!important;font-size:10px!important;margin-bottom:3px!important}.mt-case-story span i{display:none}.mt-case-story h3{color:#fff!important;font-size:13.5px!important;margin:0 0 3px!important}.mt-case-story p{color:#aeb8c4!important;font-size:12.5px!important;line-height:1.5!important}.mt-case-proof-note{font-size:10.5px!important;color:#7f8a96!important;margin:11px 0 14px!important}.mt-project-actions{display:flex;flex-wrap:wrap;gap:8px;padding-top:14px;border-top:1px solid rgba(255,255,255,.09)}.mt-project-actions a{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:38px;padding:0 13px;border-radius:8px;font-size:12px;font-weight:700;text-decoration:none!important}.mt-modal-link{background:#e60023!important;color:#fff!important;border:1px solid #e60023!important}.mt-modal-whatsapp{background:transparent!important;color:#fff!important;border:1px solid rgba(255,255,255,.18)!important}.mt-modal-project-cta{margin-left:auto;background:#fff!important;color:#101820!important;border:1px solid #fff!important;cursor:pointer}.mt-modal-project-cta:hover{background:#e60023!important;color:#fff!important;border-color:#e60023!important}
@media(max-width:800px){#mtCaseModal{padding:10px!important}.mt-project-header{padding:20px 54px 14px 18px}.mt-project-header .mt-modal-title{font-size:22px!important}.mt-project-body{grid-template-columns:1fr;max-height:calc(90vh - 92px)}.mt-project-gallery{border-right:0;border-bottom:1px solid rgba(255,255,255,.08);padding:14px}.mt-project-main{height:240px}.mt-project-content{padding:18px}.mt-modal-project-cta{margin-left:0}}


/* V5: modal de projeto em visão total, sem rolagem vertical */
#mtCaseModal{padding:18px!important;align-items:center!important;justify-content:center!important}
#mtCaseModal .mt-modal-box.horizontal{
  width:min(1180px,96vw)!important;
  max-width:1180px!important;
  max-height:none!important;
  height:auto!important;
  overflow:visible!important;
}
#mtCaseModal .mt-project-header{padding:22px 64px 17px 26px!important}
#mtCaseModal .mt-project-header .mt-case-modal-kicker{font-size:10.5px!important;margin-bottom:5px!important}
#mtCaseModal .mt-project-header .mt-modal-title{font-size:26px!important;margin:0 0 10px!important}
#mtCaseModal .mt-project-meta{gap:6px!important}
#mtCaseModal .mt-project-meta span{font-size:10.5px!important;padding:5px 8px!important}
#mtCaseModal .mt-project-body{
  grid-template-columns:minmax(0,1.04fr) minmax(0,.96fr)!important;
  min-height:0!important;
  max-height:none!important;
  overflow:visible!important;
}
#mtCaseModal .mt-project-gallery{padding:18px!important;overflow:hidden!important}
#mtCaseModal .mt-project-main{height:285px!important}
#mtCaseModal .mt-project-main img{object-fit:contain!important;background:#070c12}
#mtCaseModal .mt-project-thumbs{margin-top:8px!important;padding-bottom:0!important;scrollbar-width:none!important}
#mtCaseModal .mt-project-thumbs::-webkit-scrollbar{display:none!important}
#mtCaseModal .mt-project-thumb{flex-basis:62px!important;width:62px!important;height:45px!important}
#mtCaseModal .mt-gallery-count{margin-top:8px!important;font-size:10.5px!important}
#mtCaseModal .mt-gallery-nav button{width:27px!important;height:27px!important}
#mtCaseModal .mt-project-content{padding:18px 22px 18px!important;overflow:visible!important}
#mtCaseModal .mt-project-intro{font-size:12.5px!important;line-height:1.48!important;margin:0 0 10px!important}
#mtCaseModal .mt-case-story article{padding:9px 0 9px 32px!important}
#mtCaseModal .mt-case-story article:before{top:10px!important;width:23px!important;height:23px!important}
#mtCaseModal .mt-case-story span{font-size:9.5px!important;margin-bottom:2px!important}
#mtCaseModal .mt-case-story h3{font-size:12.5px!important;margin-bottom:2px!important}
#mtCaseModal .mt-case-story p{font-size:11.5px!important;line-height:1.42!important}
#mtCaseModal .mt-case-proof-note{font-size:10px!important;margin:7px 0 9px!important}
#mtCaseModal .mt-project-actions{gap:7px!important;padding-top:10px!important}
#mtCaseModal .mt-project-actions a{min-height:34px!important;padding:0 11px!important;font-size:11px!important}
#mtCaseModal .mt-modal-close{top:18px!important;right:20px!important}
@media (min-width:801px) and (max-height:720px){
  #mtCaseModal{padding:10px!important}
  #mtCaseModal .mt-project-header{padding-top:15px!important;padding-bottom:12px!important}
  #mtCaseModal .mt-project-main{height:235px!important}
  #mtCaseModal .mt-project-content{padding-top:13px!important;padding-bottom:13px!important}
  #mtCaseModal .mt-case-story article{padding-top:6px!important;padding-bottom:6px!important}
  #mtCaseModal .mt-case-story article:before{top:7px!important}
}
@media(max-width:800px){
  #mtCaseModal{padding:8px!important;align-items:flex-start!important;overflow:auto!important}
  #mtCaseModal .mt-modal-box.horizontal{width:100%!important;overflow:hidden!important}
  #mtCaseModal .mt-project-body{grid-template-columns:1fr!important}
  #mtCaseModal .mt-project-main{height:220px!important}
}


/* V6: galeria ocupa integralmente a coluna esquerda, conforme layout aprovado */
@media (min-width:801px){
  #mtCaseModal .mt-project-body{
    grid-template-columns:minmax(0,1.12fr) minmax(0,.88fr)!important;
    align-items:stretch!important;
  }
  #mtCaseModal .mt-project-gallery{
    display:flex!important;
    flex-direction:column!important;
    min-height:480px!important;
    padding:0!important;
    background:#0b121a!important;
  }
  #mtCaseModal .mt-project-main{
    flex:1 1 auto!important;
    width:100%!important;
    height:auto!important;
    min-height:390px!important;
    border:0!important;
    border-radius:0!important;
    overflow:hidden!important;
    background:#070c12!important;
  }
  #mtCaseModal .mt-project-main img{
    width:100%!important;
    height:100%!important;
    object-fit:cover!important;
    object-position:center top!important;
    display:block!important;
  }
  #mtCaseModal .mt-project-thumbs{
    flex:0 0 auto!important;
    margin:0!important;
    padding:9px 14px 0!important;
    gap:9px!important;
    background:#0b121a!important;
  }
  #mtCaseModal .mt-project-thumbs:empty{display:none!important}
  #mtCaseModal .mt-project-thumb{
    flex:0 0 86px!important;
    width:86px!important;
    height:54px!important;
    border-radius:5px!important;
  }
  #mtCaseModal .mt-gallery-count{
    flex:0 0 auto!important;
    margin:0!important;
    padding:10px 14px 12px!important;
    background:#0b121a!important;
  }
  #mtCaseModal .mt-project-content{display:flex!important;flex-direction:column!important}
  #mtCaseModal .mt-project-actions{margin-top:auto!important}
}
@media (min-width:801px) and (max-height:720px){
  #mtCaseModal .mt-project-gallery{min-height:405px!important}
  #mtCaseModal .mt-project-main{min-height:315px!important}
}


/* V7: delimita o modal dentro do viewport, com margem superior e inferior */
@media (min-width:801px){
  #mtCaseModal{
    padding:28px 24px!important;
    box-sizing:border-box!important;
    align-items:center!important;
    overflow:hidden!important;
  }
  #mtCaseModal .mt-modal-box.horizontal{
    width:min(1180px,96vw)!important;
    max-width:1180px!important;
    max-height:calc(100vh - 56px)!important;
    height:min(690px,calc(100vh - 56px))!important;
    overflow:hidden!important;
    display:flex!important;
    flex-direction:column!important;
  }
  #mtCaseModal .mt-project-header{
    flex:0 0 auto!important;
    padding:18px 64px 13px 26px!important;
  }
  #mtCaseModal .mt-project-header .mt-modal-title{font-size:24px!important;margin-bottom:8px!important}
  #mtCaseModal .mt-project-body{
    flex:1 1 auto!important;
    min-height:0!important;
    height:auto!important;
    max-height:none!important;
    overflow:hidden!important;
  }
  #mtCaseModal .mt-project-gallery{min-height:0!important;height:100%!important}
  #mtCaseModal .mt-project-main{min-height:0!important;flex:1 1 0!important}
  #mtCaseModal .mt-project-content{min-height:0!important;height:100%!important;overflow:hidden!important;padding:14px 20px 14px!important}
  #mtCaseModal .mt-project-intro{margin-bottom:7px!important}
  #mtCaseModal .mt-case-story article{padding-top:7px!important;padding-bottom:7px!important}
  #mtCaseModal .mt-case-story article:before{top:8px!important}
  #mtCaseModal .mt-case-proof-note{margin:5px 0 7px!important}
  #mtCaseModal .mt-project-actions{padding-top:8px!important}
}
@media (min-width:801px) and (max-height:760px){
  #mtCaseModal{padding-top:20px!important;padding-bottom:20px!important}
  #mtCaseModal .mt-modal-box.horizontal{height:calc(100vh - 40px)!important;max-height:calc(100vh - 40px)!important}
  #mtCaseModal .mt-project-header{padding-top:13px!important;padding-bottom:10px!important}
  #mtCaseModal .mt-project-header .mt-modal-title{font-size:22px!important;margin-bottom:6px!important}
  #mtCaseModal .mt-project-meta span{padding:4px 7px!important}
  #mtCaseModal .mt-project-thumbs{padding-top:6px!important}
  #mtCaseModal .mt-project-thumb{height:44px!important;width:72px!important;flex-basis:72px!important}
  #mtCaseModal .mt-gallery-count{padding-top:6px!important;padding-bottom:7px!important}
  #mtCaseModal .mt-project-content{padding-top:10px!important;padding-bottom:10px!important}
  #mtCaseModal .mt-case-story article{padding-top:5px!important;padding-bottom:5px!important}
  #mtCaseModal .mt-case-story article:before{top:6px!important}
}


/* V27 mobile only: success-story modal begins below fixed header and scrolls as one panel */
@media (max-width:800px){
  #mtCaseModal.mt-modal{
    position:fixed!important;inset:0!important;top:0!important;right:0!important;bottom:0!important;left:0!important;
    width:100%!important;height:100vh!important;height:100dvh!important;z-index:2147483000!important;
    padding:calc(8px + env(safe-area-inset-top,0px)) 8px calc(8px + env(safe-area-inset-bottom,0px))!important;
    box-sizing:border-box!important;align-items:flex-start!important;justify-content:center!important;
    overflow-y:auto!important;overflow-x:hidden!important;-webkit-overflow-scrolling:touch!important;
    overscroll-behavior:contain!important;
  }
  #mtCaseModal .mt-modal-box.horizontal{
    position:relative!important;z-index:2147483001!important;width:100%!important;max-width:760px!important;height:auto!important;max-height:none!important;
    margin:0 auto 8px!important;overflow:visible!important;transform:none!important;
  }
  #mtCaseModal .mt-project-body{max-height:none!important;height:auto!important;overflow:visible!important;}
  #mtCaseModal .mt-project-content{height:auto!important;max-height:none!important;overflow:visible!important;}
}

/* V42: etiquetas removidas e CTA discreto, sem alterar o conteúdo dos cartões. */
#cases .mt-cases-eyebrow, #cases .mt-case-recent { display: none !important; }
#cases .mt-case-buttons .btn-details {
  width: auto !important; min-width: 0 !important; max-width: max-content !important;
  padding: 9px 15px !important; line-height: 1.2 !important;
  display: inline-flex !important; align-items: center; justify-content: center;
  font-size: 12px !important; white-space: nowrap;
}
