
/* MF CONNECT v204 — revisão visual e mobile */
:root{
  --mf-cement:#292b2b;
  --mf-cement-2:#343737;
  --mf-cement-3:#202222;
  --mf-white:#ffffff;
  --mf-bg:#f5f5f3;
  --mf-card:#ffffff;
  --mf-gray:#777c7f;
  --mf-gray-light:#e2e4e4;
  --mf-black:#111314;
  --mf-bronze:#b1844b;
  --mf-bronze-light:#d0aa77;
  --mf-radius:20px;
  --mf-shadow:0 16px 42px rgba(22,25,26,.08);
  --font-cofo:"CoFo Sans","Helvetica Neue",Arial,sans-serif;
  --font-supper:"BD Supper","CoFo Sans","Helvetica Neue",Arial,sans-serif;
}
html,body{max-width:100%;overflow-x:hidden}
body.v204-modern{
  margin:0!important;
  background:var(--mf-bg)!important;
  color:var(--mf-black)!important;
  font-family:var(--font-cofo)!important;
  -webkit-font-smoothing:antialiased;
}
body.v204-modern *{box-sizing:border-box}
body.v204-modern p,
body.v204-modern a,
body.v204-modern li,
body.v204-modern span,
body.v204-modern label,
body.v204-modern input,
body.v204-modern select,
body.v204-modern textarea,
body.v204-modern button,
body.v204-modern small{
  font-family:var(--font-cofo)!important;
}
body.v204-modern h1,
body.v204-modern h2,
body.v204-modern h3,
body.v204-modern h4{
  font-family:var(--font-supper)!important;
  letter-spacing:-.035em!important;
}
body.v204-modern .container{width:min(1200px,calc(100% - 40px))!important;margin-inline:auto!important}

/* HEADER ÚNICO */
.v204-header{
  position:sticky;
  top:0;
  z-index:100;
  background:
    radial-gradient(circle at 20% 20%,rgba(255,255,255,.045),transparent 32%),
    radial-gradient(circle at 75% 65%,rgba(255,255,255,.025),transparent 35%),
    linear-gradient(115deg,var(--mf-cement-3),var(--mf-cement-2) 50%,var(--mf-cement-3));
  border-bottom:1px solid rgba(255,255,255,.08);
  box-shadow:0 5px 20px rgba(0,0,0,.12);
}
.v204-header:after{
  content:"";
  pointer-events:none;
  position:absolute;inset:0;
  opacity:.18;
  background-image:
    repeating-linear-gradient(14deg,rgba(255,255,255,.018) 0 1px,transparent 1px 5px),
    repeating-linear-gradient(102deg,rgba(0,0,0,.024) 0 1px,transparent 1px 7px);
}
.v204-nav{
  min-height:112px;
  display:flex;
  align-items:center;
  gap:26px;
  position:relative;
  z-index:2;
}
.v204-brand{display:flex;align-items:center;margin-right:auto}
.v204-brand img{
  display:block;
  width:285px;
  max-width:31vw;
  max-height:84px;
  object-fit:contain;
}
.v204-menu{display:flex;align-items:center;gap:24px}
.v204-menu a{
  color:#f7f6f3!important;
  font-size:13px;
  font-weight:650;
  text-decoration:none;
  white-space:nowrap;
}
.v204-menu a:hover{color:var(--mf-bronze-light)!important}
.v204-contact,
body.v204-modern .menu-cta{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:46px;
  padding:12px 22px!important;
  color:var(--mf-bronze-light)!important;
  background:var(--mf-cement)!important;
  border:1px solid var(--mf-bronze)!important;
  border-radius:999px!important;
  font-weight:800!important;
  text-decoration:none!important;
}
.v204-mobile-toggle{
  display:none;
  width:46px;height:46px;border-radius:50%;
  border:1px solid rgba(208,170,119,.65);
  color:var(--mf-bronze-light);
  background:rgba(255,255,255,.03);
  font-size:21px;align-items:center;justify-content:center;
}

/* PADRÃO DE BOTÕES */
body.v204-modern .btn,
body.v204-modern .quick-quote-cta,
body.v204-modern .btn-primary,
body.v204-modern .btn-secondary,
body.v204-modern .form-btn,
body.v204-modern form button[type="submit"],
body.v204-modern .v202-next,
body.v204-modern .v202-back,
body.v204-modern .partner-site-link,
body.v204-modern .v204-command{
  color:var(--mf-bronze-light)!important;
  background:var(--mf-cement)!important;
  border:1px solid var(--mf-bronze)!important;
  border-radius:999px!important;
  padding:12px 21px!important;
  min-height:46px!important;
  font-weight:800!important;
  box-shadow:none!important;
  text-decoration:none!important;
  transition:.18s ease!important;
}
body.v204-modern .btn:hover,
body.v204-modern .quick-quote-cta:hover,
body.v204-modern .btn-primary:hover,
body.v204-modern .btn-secondary:hover,
body.v204-modern .form-btn:hover,
body.v204-modern form button[type="submit"]:hover,
body.v204-modern .v202-next:hover,
body.v204-modern .v202-back:hover,
body.v204-modern .partner-site-link:hover,
body.v204-modern .v204-command:hover{
  color:#fff!important;
  background:#1d1f1f!important;
  transform:translateY(-1px);
}

/* HERO IMAGENS SEM FAIXAS */
body.v204-modern .hero,
body.v204-modern .page-hero{
  position:relative!important;
  overflow:hidden!important;
  width:100%!important;
  max-width:none!important;
  min-height:555px!important;
  display:flex!important;
  align-items:center!important;
  background:#f5f4f1!important;
  border-bottom:1px solid var(--mf-gray-light)!important;
}
body.v204-modern .hero:before,
body.v204-modern .page-hero:before{
  content:"";
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  background:
    linear-gradient(90deg,rgba(250,250,248,.995) 0%,rgba(250,250,248,.96) 37%,rgba(250,250,248,.43) 58%,rgba(250,250,248,0) 100%),
    var(--v202-hero) center right / cover no-repeat!important;
}
body.v204-modern .hero > *,
body.v204-modern .page-hero > *{position:relative;z-index:2}
body.v204-modern .hero-grid{
  min-height:555px!important;
  grid-template-columns:minmax(0,710px) 1fr!important;
  gap:20px!important;
  align-items:center!important;
}
body.v204-modern .hero-panel{display:none!important}
body.v204-modern .eyebrow,
body.v204-modern .form-kicker,
.v204-kicker{
  color:var(--mf-bronze)!important;
  text-transform:uppercase!important;
  letter-spacing:.2em!important;
  font-size:11px!important;
  font-weight:850!important;
}
body.v204-modern .hero h1,
body.v204-modern .page-hero h1{
  color:var(--mf-black)!important;
  font-size:clamp(54px,6.2vw,84px)!important;
  line-height:.94!important;
  max-width:750px!important;
  margin:12px 0 18px!important;
}
body.v204-modern .hero .lead,
body.v204-modern .page-hero .lead{
  color:var(--mf-gray)!important;
  max-width:520px!important;
  font-size:16px!important;
  line-height:1.5!important;
}
body.v204-modern .hero-actions{
  display:flex!important;
  gap:12px!important;
  flex-wrap:wrap!important;
  margin-top:24px!important;
}

/* HOME */
.v204-services{padding:20px 0 24px;background:var(--mf-bg);border-bottom:1px solid var(--mf-gray-light)}
.v204-services-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
.v204-service{
  display:flex;align-items:center;gap:15px;
  min-height:105px;padding:20px;
  background:#fff;border:1px solid var(--mf-gray-light);border-radius:18px;
  color:var(--mf-black);text-decoration:none;transition:.18s ease
}
.v204-service:hover{transform:translateY(-2px);box-shadow:var(--mf-shadow)}
.v204-service-icon{
  width:42px;height:42px;flex:0 0 auto;border-radius:50%;
  display:grid;place-items:center;background:#eee7dc;color:var(--mf-bronze);
  font-size:20px;font-weight:900
}
.v204-service h3{margin:0!important;font-size:18px!important;color:var(--mf-black)!important}
.v204-service span{font-size:12px;color:var(--mf-gray)}
.v204-dark-section{
  background:
    radial-gradient(circle at 20% 25%,rgba(255,255,255,.035),transparent 28%),
    linear-gradient(120deg,#222424,#343737)!important;
  color:#fff!important;
}
.v204-dark-section h2,.v204-dark-section h3{color:#fff!important}
.v204-dark-section p{color:#c8cbcb!important}
.v204-dark-grid{display:grid;grid-template-columns:.92fr 1.08fr;gap:48px;align-items:center}
.v204-dark-copy h2{font-size:clamp(38px,5vw,62px)!important;line-height:1!important;margin:10px 0 17px}
.v204-dark-copy h2 span{color:#aeb1b2}
.v204-dark-image{
  min-height:390px;border-radius:24px;
  background:var(--v202-hero) center/cover no-repeat!important;
  box-shadow:0 20px 46px rgba(0,0,0,.2)
}
.v204-benefits{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:26px}
.v204-benefit{padding-top:16px;border-top:1px solid rgba(255,255,255,.16)}
.v204-benefit b{display:block;color:#fff;font-size:13px;margin-bottom:4px}
.v204-benefit span{font-size:12px;color:#bec2c3}

/* PÁGINAS DE PRODUTO MAIS DIRETAS */
.v204-product-main > .page-layout,
.v204-product-main > .section:not(.v204-keep),
.v204-product-main > .v203-dark-section{display:none!important}
.v204-product-main .embedded-form-section,
.v204-product-main .home-equity-form-section,
.v204-product-main .empresa-form-section{display:block!important}
body.v204-modern .embedded-form-section,
body.v204-modern .home-equity-form-section,
body.v204-modern .empresa-form-section,
.v204-simple-form-section{
  padding:54px 0 72px!important;
  background:#eef0ef!important;
}
.v204-form-heading{margin-bottom:20px}
.v204-form-heading h2{
  margin:7px 0 0!important;
  font-size:clamp(32px,4vw,48px)!important;
  color:var(--mf-black)!important;
}
.v204-form-heading p{display:none!important}

/* FORMULÁRIOS */
body.v204-modern .embedded-form-wrap,
body.v204-modern .home-equity-form-wrap,
body.v204-modern .empresa-form-wrap,
body.v204-modern form.premium-form,
body.v204-modern form.home-equity-form,
body.v204-modern form.empresa-form{
  background:#fff!important;
  border:1px solid #d8dbda!important;
  border-radius:24px!important;
  box-shadow:var(--mf-shadow)!important;
}
body.v204-modern form.premium-form,
body.v204-modern form.home-equity-form,
body.v204-modern form.empresa-form{
  padding:26px!important;
}
body.v204-modern .form-intro p{display:none!important}
body.v204-modern .form-intro h3{font-size:28px!important;color:var(--mf-black)!important;margin:6px 0!important}
body.v204-modern .form-group-title{color:var(--mf-bronze)!important;border-bottom:1px solid var(--mf-gray-light)!important}
body.v204-modern .field label{font-size:12px!important;color:#4c5153!important;font-weight:750!important}
body.v204-modern input,
body.v204-modern select,
body.v204-modern textarea{
  background:#fbfbfa!important;color:#171919!important;
  border:1px solid #d6dada!important;border-radius:11px!important;
  padding:13px 14px!important;min-height:48px!important;
  box-shadow:none!important;
}
body.v204-modern input:focus,
body.v204-modern select:focus,
body.v204-modern textarea:focus{
  border-color:#a4aaac!important;
  box-shadow:0 0 0 3px rgba(52,55,55,.06)!important;
}
body.v204-modern .v202-progress-fill{background:var(--mf-bronze)!important}
body.v204-modern .v202-stepper-label{color:#4d5254!important}
body.v204-modern .form-note,
body.v204-modern .home-equity-form-note,
body.v204-modern .empresa-form-note{display:none!important}

/* COTAÇÃO/SIMULAÇÃO SEM BLOCO ESCURO */
.v204-quote-intro{
  padding:48px 0 22px;
  background:var(--mf-bg);
}
.v204-quote-intro h1{
  font-size:clamp(38px,5vw,62px)!important;
  margin:8px 0 0!important;color:var(--mf-black)!important
}

/* PARCEIROS */
.v204-partner-main{background:var(--mf-bg)!important}
.v204-partner-hero{padding:48px 0 34px;background:var(--mf-bg)}
.v204-partner-grid{
  display:grid;grid-template-columns:380px 1fr;gap:42px;align-items:center
}
.v204-partner-stage{
  min-height:260px;border-radius:24px;padding:30px;
  display:grid;place-items:center;
  background:
    radial-gradient(circle at 25% 20%,rgba(255,255,255,.06),transparent 35%),
    linear-gradient(135deg,#252727,#3a3d3d);
  border:1px solid rgba(177,132,75,.45);
}
.v204-partner-stage img{
  width:100%;height:190px;object-fit:contain;
  filter:drop-shadow(0 5px 11px rgba(0,0,0,.22))
}
.v204-partner-copy h1{
  font-size:clamp(36px,4.6vw,58px)!important;
  line-height:1!important;margin:9px 0 12px!important;color:var(--mf-black)!important
}
.v204-partner-copy p{font-size:15px;color:var(--mf-gray);margin:0 0 18px}
.v204-partner-actions{display:flex;gap:10px;flex-wrap:wrap}
.v204-partner-form{
  padding:28px 0 72px;background:#eef0ef
}
.v204-partner-form .section-head{margin-bottom:18px!important}
.v204-partner-form .section-head h2{font-size:clamp(30px,4vw,44px)!important;margin:5px 0 0!important}
.v204-partner-form .section-head p{display:none!important}

/* HISTÓRIA */
body.v204-modern img[src*="marcelo-fantini"]{
  object-fit:cover!important;
  object-position:center 22%!important;
}

/* FOOTER */
body.v204-modern .footer{
  background:
    radial-gradient(circle at 20% 30%,rgba(255,255,255,.035),transparent 30%),
    linear-gradient(110deg,#222424,#303333)!important;
  color:#fff!important;
  border-top:1px solid rgba(255,255,255,.08)!important;
}
body.v204-modern .footer p,
body.v204-modern .footer a{color:#c7caca!important}
body.v204-modern .footer h3,
body.v204-modern .footer h4{color:#fff!important}

/* MOBILE */
@media(max-width:980px){
  body.v204-modern .container{width:min(100% - 28px,720px)!important}
  .v204-nav{min-height:90px}
  .v204-brand img{width:225px;max-width:58vw;max-height:70px}
  .v204-menu{
    display:none;
    position:absolute;
    top:89px;left:14px;right:14px;
    background:#272929;
    border:1px solid rgba(255,255,255,.1);
    border-radius:18px;
    padding:12px 18px;
    flex-direction:column;
    align-items:stretch;
    gap:0;
    box-shadow:0 18px 44px rgba(0,0,0,.26);
  }
  .v204-menu.v204-open{display:flex}
  .v204-menu a{padding:14px 4px;border-bottom:1px solid rgba(255,255,255,.08)}
  .v204-contact{display:none}
  .v204-mobile-toggle{display:inline-flex}
  body.v204-modern .hero,
  body.v204-modern .page-hero{min-height:640px!important;align-items:flex-start!important}
  body.v204-modern .hero:before,
  body.v204-modern .page-hero:before{
    background:
      linear-gradient(180deg,rgba(250,250,248,.995) 0%,rgba(250,250,248,.97) 44%,rgba(250,250,248,.48) 64%,rgba(250,250,248,0) 100%),
      var(--v202-hero) center bottom / cover no-repeat!important;
  }
  body.v204-modern .hero-grid{display:block!important;min-height:640px!important;padding-top:40px!important}
  body.v204-modern .hero h1,
  body.v204-modern .page-hero h1{font-size:48px!important;max-width:95%!important}
  body.v204-modern .hero .lead,
  body.v204-modern .page-hero .lead{max-width:92%!important}
  .v204-services-grid{grid-template-columns:1fr 1fr}
  .v204-dark-grid{grid-template-columns:1fr}
  .v204-dark-image{min-height:300px}
  .v204-partner-grid{grid-template-columns:1fr;gap:22px}
  .v204-partner-stage{min-height:210px}
  .v204-partner-stage img{height:150px}
  .v204-partner-copy{text-align:center}
  .v204-partner-actions{justify-content:center}
}
@media(max-width:600px){
  body.v204-modern .container{width:min(100% - 24px,540px)!important}
  .v204-nav{min-height:82px}
  .v204-brand img{width:200px;max-width:64vw;max-height:62px}
  .v204-menu{top:81px}
  body.v204-modern .hero,
  body.v204-modern .page-hero{min-height:590px!important}
  body.v204-modern .hero h1,
  body.v204-modern .page-hero h1{font-size:41px!important}
  body.v204-modern .hero .lead,
  body.v204-modern .page-hero .lead{font-size:15px!important}
  body.v204-modern .hero-actions{display:grid!important;grid-template-columns:1fr!important}
  body.v204-modern .hero-actions a{width:100%!important}
  .v204-services-grid{grid-template-columns:1fr}
  .v204-service{min-height:88px}
  .v204-benefits{grid-template-columns:1fr}
  body.v204-modern form.premium-form,
  body.v204-modern form.home-equity-form,
  body.v204-modern form.empresa-form{padding:17px 13px!important}
  .v202-step{grid-template-columns:1fr!important}
  .v202-step>*{grid-column:1!important}
  .v202-step-nav{
    position:sticky;bottom:0;background:rgba(255,255,255,.97);
    padding:12px 0 3px;z-index:8
  }
  .v202-step-nav button{min-width:0!important;flex:1}
  .v204-partner-hero{padding-top:30px}
  .v204-partner-stage{padding:20px}
}
