/* v7.37.4 — refinamento visual da História + cards de veículos */

/* aplica tanto na historia.html quanto na portfolio-historia.html */
body[data-nat-context="historia"],
body.nt-history{
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

body[data-nat-context="historia"] .hero,
body.nt-history .hero{
  min-height:clamp(600px,82vh,860px)!important;
}

body[data-nat-context="historia"] .hero::after,
body.nt-history .hero::after{
  background:
    linear-gradient(90deg,rgba(0,8,20,.92),rgba(3,22,45,.72) 48%,rgba(3,22,45,.18)),
    linear-gradient(0deg,rgba(3,22,45,.96),transparent 60%)!important;
}

body[data-nat-context="historia"] .hero-copy,
body.nt-history .hero-copy{
  width:min(940px,90vw)!important;
  max-width:940px!important;
  padding:clamp(108px,15vh,148px) 6vw clamp(42px,8vh,74px)!important;
}

body[data-nat-context="historia"] .hero h1,
body.nt-history .hero h1{
  margin:16px 0 18px!important;
  line-height:.94!important;
}

body[data-nat-context="historia"] .hero p,
body.nt-history .hero p{
  max-width:760px!important;
  color:#f1f5fb!important;
  font-size:clamp(19px,2.1vw,28px)!important;
  line-height:1.42!important;
  text-shadow:0 2px 10px rgba(0,0,0,.18);
}

body[data-nat-context="historia"] .intro,
body.nt-history .intro{
  padding:34px 0!important;
}

body[data-nat-context="historia"] .intro .inner p,
body.nt-history .intro .inner p{
  color:#e8eef7!important;
}

body[data-nat-context="historia"] .timeline,
body.nt-history .timeline{
  padding:clamp(20px,3vw,38px) 4vw clamp(30px,4vw,50px)!important;
}

body[data-nat-context="historia"] .chapter,
body.nt-history .chapter{
  margin:0 auto 20px!important;
}

body[data-nat-context="historia"] .chapter .inner,
body.nt-history .chapter .inner{
  padding:clamp(22px,3vw,36px)!important;
  gap:clamp(22px,3vw,42px)!important;
  border-radius:26px!important;
}

body[data-nat-context="historia"] .chapter-grid,
body.nt-history .chapter-grid{
  align-items:start!important;
}

body[data-nat-context="historia"] .copy,
body.nt-history .copy{
  align-self:start!important;
}

body[data-nat-context="historia"] .number,
body.nt-history .number{
  display:inline-block!important;
  margin-bottom:8px!important;
  color:#a97928!important;
  font-weight:800!important;
  letter-spacing:.16em!important;
}

body[data-nat-context="historia"] .chapter h2,
body.nt-history .chapter h2{
  margin:6px 0 10px!important;
  color:#081b30!important;
  line-height:1.04!important;
}

body[data-nat-context="historia"] .chapter h3,
body.nt-history .chapter h3{
  margin:0 0 16px!important;
  color:#344e69!important;
  font-size:clamp(16px,1.5vw,20px)!important;
  line-height:1.4!important;
}

body[data-nat-context="historia"] .chapter p,
body.nt-history .chapter p{
  color:#536476!important;
  opacity:1!important;
  font-size:clamp(16px,1.28vw,18px)!important;
  line-height:1.74!important;
  margin:0 0 14px!important;
}

body[data-nat-context="historia"] .quote,
body.nt-history .quote{
  margin-top:18px!important;
  padding:18px 20px!important;
  background:#08264c!important;
  color:#fff!important;
  border-left:4px solid #d2a44f!important;
  border-radius:0 14px 14px 0!important;
  box-shadow:0 14px 32px rgba(3,22,45,.16)!important;
}

body[data-nat-context="historia"] .visual,
body.nt-history .visual{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:10px!important;
  min-height:0!important;
  border-radius:24px!important;
  overflow:hidden!important;
  background:#fff!important;
}

body[data-nat-context="historia"] .visual img,
body.nt-history .visual img{
  display:block!important;
  width:100%!important;
  height:auto!important;
  min-height:0!important;
  max-height:420px!important;
  object-fit:cover!important;
  object-position:center center!important;
  border-radius:18px!important;
  box-shadow:none!important;
}

/* nos cards dos carros, eliminar sobra branca e aproximar melhor a foto */
body[data-nat-context="historia"] .visual.contain,
body.nt-history .visual.contain{
  padding:0!important;
  background:#fff!important;
}

body[data-nat-context="historia"] .visual.contain img,
body.nt-history .visual.contain img{
  width:100%!important;
  height:clamp(220px,24vw,340px)!important;
  max-height:none!important;
  object-fit:cover!important;
  object-position:center center!important;
  border-radius:0!important;
}

body[data-nat-context="historia"] .closing,
body.nt-history .closing{
  margin-top:26px!important;
}

@media (max-width:850px){
  body[data-nat-context="historia"] .chapter .inner,
  body.nt-history .chapter .inner{
    padding:22px 18px!important;
    gap:18px!important;
  }

  body[data-nat-context="historia"] .visual img,
  body.nt-history .visual img{
    max-height:360px!important;
  }
}

@media (max-width:560px){
  body[data-nat-context="historia"] .hero,
  body.nt-history .hero{
    min-height:540px!important;
  }

  body[data-nat-context="historia"] .hero-copy,
  body.nt-history .hero-copy{
    padding:100px 6vw 38px!important;
  }

  body[data-nat-context="historia"] .hero h1,
  body.nt-history .hero h1{
    font-size:clamp(48px,14vw,66px)!important;
    margin:12px 0 14px!important;
  }

  body[data-nat-context="historia"] .hero p,
  body.nt-history .hero p{
    font-size:17px!important;
    line-height:1.46!important;
  }

  body[data-nat-context="historia"] .intro,
  body.nt-history .intro{
    padding:26px 0!important;
  }

  body[data-nat-context="historia"] .timeline,
  body.nt-history .timeline{
    padding:16px 14px 30px!important;
  }

  body[data-nat-context="historia"] .chapter,
  body.nt-history .chapter{
    margin-bottom:16px!important;
  }

  body[data-nat-context="historia"] .chapter .inner,
  body.nt-history .chapter .inner{
    padding:18px 16px!important;
    border-radius:22px!important;
  }

  body[data-nat-context="historia"] .chapter h2,
  body.nt-history .chapter h2{
    font-size:clamp(28px,8.9vw,40px)!important;
  }

  body[data-nat-context="historia"] .chapter h3,
  body.nt-history .chapter h3{
    font-size:15px!important;
    margin-bottom:12px!important;
  }

  body[data-nat-context="historia"] .chapter p,
  body.nt-history .chapter p{
    font-size:15.5px!important;
    line-height:1.7!important;
    color:#5d6d7f!important;
  }

  body[data-nat-context="historia"] .quote,
  body.nt-history .quote{
    padding:14px 16px!important;
    font-size:clamp(20px,6vw,26px)!important;
  }

  body[data-nat-context="historia"] .visual,
  body.nt-history .visual{
    padding:0!important;
    border-radius:18px!important;
  }

  body[data-nat-context="historia"] .visual img,
  body.nt-history .visual img{
    max-height:300px!important;
    border-radius:0!important;
  }

  body[data-nat-context="historia"] .visual.contain img,
  body.nt-history .visual.contain img{
    height:220px!important;
  }
}


/* v7.37.5 — selo comemorativo: exibição integral, sem recorte em mobile/tablet/desktop */
body[data-nat-context="historia"] .visual.anniversary-seal,
body.nt-history .visual.anniversary-seal{
  overflow:visible!important;
  padding:clamp(10px,1.4vw,18px)!important;
  background:#fff!important;
  border-radius:26px!important;
  box-shadow:0 18px 46px rgba(3,22,45,.12)!important;
}

body[data-nat-context="historia"] .visual.anniversary-seal img,
body.nt-history .visual.anniversary-seal img{
  display:block!important;
  width:min(100%,810px)!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  aspect-ratio:1 / 1!important;
  object-fit:contain!important;
  object-position:center center!important;
  margin:0 auto!important;
  border-radius:0!important;
  box-shadow:none!important;
}

@media(max-width:850px){
  body[data-nat-context="historia"] .visual.anniversary-seal,
  body.nt-history .visual.anniversary-seal{
    padding:12px!important;
    overflow:visible!important;
  }
  body[data-nat-context="historia"] .visual.anniversary-seal img,
  body.nt-history .visual.anniversary-seal img{
    width:100%!important;
    height:auto!important;
    max-height:none!important;
    object-fit:contain!important;
  }
}

@media(max-width:560px){
  body[data-nat-context="historia"] .visual.anniversary-seal,
  body.nt-history .visual.anniversary-seal{
    padding:8px!important;
    border-radius:20px!important;
  }
  body[data-nat-context="historia"] .visual.anniversary-seal img,
  body.nt-history .visual.anniversary-seal img{
    width:100%!important;
    height:auto!important;
    max-height:none!important;
    aspect-ratio:1 / 1!important;
    object-fit:contain!important;
    border-radius:0!important;
  }
}
