:root {
    --laranja: #fd8c1e;
    --laranja-escuro: #c96500;
    --tinta: #1c1c1c;
    --suave: #5c5c5c;
    --fundo: #ffffff;
    --fundo-alt: #f6f4f1;
    --linha: #e6e2dc;
    --largura: 1140px;
  }
  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body { margin: 0; background: var(--fundo); color: var(--tinta); font: 17px/1.6 "Nunito Sans", system-ui, sans-serif; }
  img { max-width: 100%; display: block; }
  a { color: inherit; }
  .wrap { width: 100%; max-width: var(--largura); margin: 0 auto; padding: 0 20px; }
  h1, h2, h3 { line-height: 1.15; margin: 0; }
  h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); font-weight: 800; }
  .olho { display: block; color: var(--laranja-escuro); font-weight: 800; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 8px; }
  .intro { color: var(--suave); max-width: 640px; margin: 12px 0 0; }
  section { padding: 72px 0; }
  .alt { background: var(--fundo-alt); }
  .btn { display: inline-block; background: var(--laranja); color: #111; font-weight: 800; text-decoration: none; padding: 12px 22px; border-radius: 6px; }
  .btn:hover { background: #ff9d3c; }
  .btn.linha { background: transparent; border: 2px solid currentColor; padding: 10px 20px; }

  /* Topo: a foto continua atrás do cabeçalho */
  .topo { position: relative; min-height: min(86vh, 760px); display: flex; flex-direction: column; color: #fff;
    background: #222 url(img/hero.jpg) center 40% / cover no-repeat; }
  .topo::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 190px;
    background: linear-gradient(to bottom, rgba(12,12,12,.82), rgba(12,12,12,.55) 55%, rgba(12,12,12,0)); }
  header { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; }
  header img { width: 150px; height: auto; }
  nav { display: flex; align-items: center; gap: 28px; font-weight: 700; }
  nav a { text-decoration: none; }
  nav a:not(.btn):hover { color: var(--laranja); }
  .faixa { position: relative; margin-top: auto; padding-bottom: 56px; }
  .mensagem { background: var(--laranja); color: #111; max-width: 470px; padding: 30px 34px 32px; border-radius: 4px; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
  .mensagem h1 { font-size: clamp(2rem, 4.2vw, 2.9rem); font-weight: 800; letter-spacing: .01em; }
  .mensagem p { margin: 8px 0 20px; font-size: 1.15rem; font-weight: 600; }
  .mensagem .btn { background: #111; color: #fff; }
  .mensagem .btn:hover { background: #333; }

  .grade3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 36px; }
  .cartao { background: #fff; border: 1px solid var(--linha); border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; text-decoration: none; transition: box-shadow .15s, transform .15s; }
  .cartao:hover { box-shadow: 0 10px 26px rgba(0,0,0,.1); transform: translateY(-2px); }
  .cartao img { aspect-ratio: 3/2; object-fit: cover; width: 100%; }
  .cartao div { padding: 18px 20px 22px; border-top: 4px solid var(--laranja); }
  .cartao h3 { font-size: 1.25rem; font-weight: 800; }
  .cartao p { margin: 6px 0 12px; color: var(--suave); font-size: .97rem; }
  .cartao span { color: var(--laranja-escuro); font-weight: 800; }

  .atuacao { position: relative; border-radius: 8px; overflow: hidden; }
  .atuacao img { aspect-ratio: 3/2; object-fit: cover; width: 100%; }
  .atuacao h3 { position: absolute; inset: auto 0 0 0; padding: 40px 16px 14px; color: #fff; font-size: 1.05rem; font-weight: 800;
    background: linear-gradient(to top, rgba(0,0,0,.8), rgba(0,0,0,0)); }
  .atuacao small { display: block; font-weight: 600; font-size: .82rem; opacity: .9; margin-top: 2px; }

  .obras { display: grid; grid-template-columns: 1.5fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px; margin-top: 36px; }
  .obras img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
  .obras img:first-child { grid-row: span 2; }

  .motivos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 32px; margin-top: 36px; }
  .motivos div { border-left: 4px solid var(--laranja); padding-left: 16px; }
  .motivos h3 { font-size: 1.1rem; font-weight: 800; }
  .motivos p { margin: 4px 0 0; color: var(--suave); font-size: .95rem; }

  .parceiros { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 28px; }
  .parceiros img { height: 80px; width: auto; border: 1px solid var(--linha); border-radius: 8px; background: #fff; }

  .contato { background: var(--tinta); color: #fff; }
  .contato .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
  .contato p { margin: 8px 0 0; color: #cfcfcf; }
  .contato .btn.linha { color: #fff; }
  .contato .acoes { display: flex; flex-wrap: wrap; gap: 12px; }
  footer { background: #111; color: #a8a8a8; font-size: .88rem; padding: 22px 0; }
  footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }

  @media (max-width: 820px) {
    section { padding: 52px 0; }
    .grade3, .motivos { grid-template-columns: 1fr; }
    .grade3.dupla { grid-template-columns: 1fr 1fr; gap: 12px; }
    .obras { grid-template-columns: 1fr; grid-template-rows: none; }
    .obras img:first-child { grid-row: auto; }
    .obras img { aspect-ratio: 3/2; }
    header img { width: 104px; }
    nav { gap: 16px; font-size: .95rem; }
    nav .btn { display: none; }
    .topo { min-height: 620px; background-image: url(img/hero-m.jpg); background-position: center; }
    .faixa { padding-bottom: 24px; }
    .mensagem { max-width: none; padding: 22px 22px 24px; }
  }

  /* Slider do topo: as fotos trocam atras da mensagem, que fica fixa */
  .slides { position: absolute; inset: 0; overflow: hidden; z-index: 0; }
  .slides div { position: absolute; inset: 0; background: center / cover no-repeat; opacity: 0; transition: opacity 1.2s ease; }
  .slides div.on { opacity: 1; }
  .slides .s1 { background-image: url(img/hero.jpg); background-position: center 40%; }
  .slides .s2 { background-image: url(img/hero-2.jpg); }
  .slides .s3 { background-image: url(img/hero-3.jpg); }
  .slides .s4 { background-image: url(img/hero-4.jpg); background-position: center 30%; }
  .slides .s5 { background-image: url(img/hero-5.jpg); background-position: center 25%; }
  .topo::before { z-index: 1; }
  .topo header, .topo .faixa { z-index: 2; }
  .pontos { position: absolute; left: 0; right: 0; bottom: 18px; z-index: 2; display: flex; justify-content: flex-end; gap: 8px; }
  .pontos button { width: 12px; height: 12px; padding: 0; border-radius: 50%; border: 2px solid #fff; background: transparent; cursor: pointer; box-shadow: 0 0 4px rgba(0,0,0,.5); }
  .pontos button[aria-current] { background: var(--laranja); border-color: var(--laranja); }
  @media (max-width: 820px) { .slides .s5 { background-position: 68% 25%; } .pontos { bottom: 6px; justify-content: center; } .slides .s1 { background-image: url(img/hero-m.jpg); background-position: center; } }
  @media (prefers-reduced-motion: reduce) { .slides div { transition: none; } }

  /* Paginas internas */
  .topo.interno { min-height: 340px; background-image: url(img/topo-interno.jpg); background-position: center 35%; }
  .conteudo h2.colado { margin-top: 0; }
  .topo.interno .faixa { padding-bottom: 36px; }
  .topo.interno .mensagem { padding: 20px 30px; }
  .topo.interno .mensagem h1 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
  .conteudo h2 { margin-top: 44px; }
  .conteudo h2:first-child { margin-top: 0; }
  .prosa { max-width: 760px; }
  .prosa p { margin: 12px 0 0; }
  .prosa ul { margin: 10px 0 0; padding-left: 22px; }
  .prosa li { margin: 4px 0; }
  .prosa li::marker { color: var(--laranja-escuro); }
  .destaques { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
  .destaques li { background: var(--fundo-alt); border-left: 4px solid var(--laranja); padding: 10px 16px; font-weight: 700; border-radius: 4px; }
  .abas { margin-top: 24px; max-width: 860px; }
  .abas details { border: 1px solid var(--linha); border-radius: 8px; margin-top: 10px; background: #fff; }
  .abas summary { cursor: pointer; font-weight: 800; padding: 16px 20px; list-style-position: inside; }
  .abas summary::marker { color: var(--laranja-escuro); }
  .abas details[open] summary { border-bottom: 1px solid var(--linha); }
  .abas .prosa { padding: 6px 20px 20px; max-width: none; }
  .duas { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
  .acoes { display: flex; flex-wrap: wrap; gap: 12px; }
  .dados { margin: 32px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 14px 24px; }
  .dados dt { font-weight: 800; color: var(--laranja-escuro); }
  .dados dd { margin: 0; }
  .mapa { width: 100%; height: 420px; border: 0; border-radius: 8px; }
  .parceiros img { height: 96px; }
  @media (max-width: 820px) {
    .duas { grid-template-columns: 1fr; }
    nav { flex-wrap: wrap; justify-content: flex-end; gap: 6px 14px; font-size: .9rem; }
    .topo.interno { min-height: 300px; background-image: url(img/topo-interno.jpg); }
    .parceiros img { height: 72px; }
  }
