/* ============================================================================
   Layout das páginas de palavra-chave (/produtos/, /solucoes/, /atendimento/).
   Vem por último (depois de paginas/palavra-chave e paginas/t1): só layout,
   nenhum texto muda. Identidade do site: --main, --main-strong, --secondary,
   cartões creme (#fffcee) e o banner verde das páginas novas.
   ============================================================================ */

/* ---------- Topo: banner verde com breadcrumb, H1 e botões ---------- */
.barra-titulo.kw-hero {
  background: linear-gradient(135deg, var(--main) 0%, var(--main-strong) 100%);
  border-bottom: 6px solid var(--secondary);
  box-shadow: none;
  padding: 34px 0 30px;
}

.kw-hero .container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 16px 30px;
}

.kw-hero #breadcrumb {
  grid-column: 1 / -1;
  justify-self: start;
  display: block;
  width: auto;
  margin: 0;
  padding: 2px 14px;
  border-radius: 50px;
  background: rgba(255, 255, 255, .1);
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255, 255, 255, .85);
}

/* os níveis vêm em <div> aninhadas: ficam na mesma linha, quebrando só entre palavras */
.kw-hero #breadcrumb div {
  display: inline;
}

.kw-hero #breadcrumb .fa-house {
  margin-right: 5px;
}

.kw-hero #breadcrumb a {
  color: rgba(255, 255, 255, .85);
  text-decoration: none;
}

.kw-hero #breadcrumb a:hover {
  color: var(--secondary);
}

main.main-content .kw-hero h1 {
  width: auto;
  text-align: left;
  margin: 0;
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  line-height: 1.2;
  color: #fff;
}

.kw-hero .box-btn-modal-orcamento {
  position: static;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.kw-hero .box-btn-modal-orcamento .btn,
.kw-hero .box-btn-modal-orcamento button {
  width: auto;
  margin: 0;
  padding: 11px 20px;
  border: 2px solid transparent;
  border-radius: 8px;
  box-shadow: none;
  font-weight: 600;
}

.kw-hero .box-btn-modal-orcamento button {
  background: var(--secondary);
  color: var(--main-strong);
}

.kw-hero .box-btn-modal-orcamento button:hover {
  background: #fff;
}

.kw-hero .box-btn-modal-orcamento a.whatsapp {
  background: transparent;
  border-color: rgba(255, 255, 255, .7);
  color: #fff;
}

.kw-hero .box-btn-modal-orcamento a.whatsapp:hover {
  background: #fff;
  color: var(--main);
}

/* ---------- Corpo: texto + coluna lateral ---------- */
.row.kw-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 0 48px;
  margin: 0;
  padding: 45px 0 30px;
}

.row.kw-layout::before,
.row.kw-layout::after {
  display: none;
}

.row.kw-layout > .col-md-12 {
  grid-column: 1 / -1;
  width: auto;
  padding: 0;
}

/* texto */
.corpo-artigo.kw-artigo {
  min-width: 0;
  padding: 0;
  text-align: left;
  font-size: 17px;
  color: #3a3a3a;
}

.kw-artigo p,
.corpo-artigo.kw-artigo p {
  line-height: 1.75;
  margin: 0 0 18px;
}

.kw-artigo > h2,
.kw-artigo .t1-bloco > h2,
main.main-content .kw-artigo h2 {
  position: relative;
  margin: 42px 0 16px;
  padding-left: 16px;
  font-size: 26px;
  line-height: 1.25;
  color: var(--main-strong);
}

main.main-content .kw-artigo h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 5px;
  border-radius: 3px;
  background: var(--secondary);
}

main.main-content .kw-artigo h3 {
  margin: 26px 0 10px;
  font-size: 20px;
  color: var(--main);
}

.kw-artigo strong {
  color: var(--main-strong);
}

.kw-artigo a {
  color: var(--main);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.kw-artigo ul:not(.lista-beneficios):not(.t1-processo):not([class]) {
  padding-left: 0;
  list-style: none;
}

.kw-artigo ul:not([class]) > li {
  position: relative;
  padding: 4px 0 4px 26px;
  line-height: 1.65;
}

.kw-artigo ul:not([class]) > li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 14px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--secondary);
}

/* resumo (TL;DR) e benefícios */
.kw-artigo .resposta-direta {
  margin: 0 0 24px;
  padding: 20px 24px;
  border-left: 5px solid var(--main);
  border-radius: 0 12px 12px 0;
  background: #fffcee;
  font-size: 18px;
  line-height: 1.65;
  color: #333;
}

.kw-artigo .lista-beneficios {
  gap: 10px;
  margin: 0 0 30px;
}

.kw-artigo .lista-beneficios li {
  width: calc(50% - 5px);
  padding: 12px 14px 12px 40px;
  border-radius: 10px;
  background: var(--dark-white);
  font-size: 15px;
}

.kw-artigo .lista-beneficios li::before {
  left: 14px;
  top: 12px;
}

/* blocos do guia T1, FAQ e família */
.kw-artigo .t1-bloco {
  margin-top: 10px;
}

/* o texto divide a largura com a lateral: cards em 2 colunas, não 3 estreitas */
.kw-artigo .t1-cards {
  grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
}

/* tabelas do texto (comparativos): cabeçalho verde, linhas separadas, 1ª coluna em destaque */
.kw-artigo table {
  width: 100%;
  margin: 22px 0 26px;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid #e3e7e2;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 14px rgba(6, 64, 31, .07);
  font-size: 15px;
  line-height: 1.5;
  text-align: left;
}

.kw-artigo th,
.kw-artigo td {
  padding: 12px 16px;
  vertical-align: top;
  border-bottom: 1px solid #e9ece8;
}

.kw-artigo th {
  background: var(--main);
  color: #fff;
  font-weight: 600;
  white-space: nowrap;
}

.kw-artigo tbody tr:nth-child(even) td {
  background: #fffcee;
}

.kw-artigo tbody tr:last-child td {
  border-bottom: 0;
}

.kw-artigo tbody td:first-child {
  font-weight: 600;
  color: var(--main-strong);
}

.kw-artigo .t1-card {
  border-radius: 12px;
}

main.main-content .kw-artigo .t1-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.3;
}

.kw-artigo .faq-accordion {
  margin-top: 6px;
}

.kw-artigo .familia-produto {
  margin: 34px 0;
  padding: 16px 20px;
  border-radius: 0 12px 12px 0;
}

/* contato no meio do texto */
.kw-artigo .contato-meio-texto {
  display: block;
  margin: 26px 0;
  padding: 18px 22px;
  border: 0;
  border-left: 5px solid var(--main);
  border-radius: 0 12px 12px 0;
  background: var(--dark-white);
  font-family: inherit;
  font-weight: 600;
  color: var(--main-strong);
}

.kw-artigo .contato-meio-texto div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-top: 8px;
  font-family: inherit;
  font-weight: 400;
  color: #444;
}

.kw-artigo .contato-meio-texto div a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: 0;
  border-radius: 8px;
  background: var(--main);
  box-shadow: none;
  color: #fff;
  font-family: inherit;
  font-weight: 600;
  text-decoration: none;
}

.kw-artigo .contato-meio-texto div a.mm-whatsapp {
  background: #25d366;
  color: #053118;
}

/* ---------- Coluna lateral (fixa ao rolar) ---------- */
aside.aside-artigo.kw-aside {
  position: static;
  width: auto;
  right: auto;
  top: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* a foto rola com a página; só orçamento + Informações ficam fixos,
   e nunca passam da altura da tela (em telas baixas a lateral era cortada) */
.kw-aside-fixo {
  position: sticky;
  top: 115px; /* logo abaixo do header encolhido (97px) ao rolar */
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-height: calc(100vh - 130px);
}

.kw-foto {
  overflow: hidden;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(6, 64, 31, .12);
}

.kw-foto img {
  display: block;
  width: 100%;
  height: auto;
}

.kw-cta {
  padding: 20px;
  border-radius: 14px;
  background: #fffcee;
  border-top: 5px solid var(--secondary);
  box-shadow: 0 6px 18px rgba(6, 64, 31, .08);
}

.kw-cta .box-btn-modal-orcamento {
  position: static;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.kw-cta .box-btn-modal-orcamento .btn,
.kw-cta .box-btn-modal-orcamento button {
  width: 100%;
  margin: 0;
  padding: 12px 16px;
  border: 0;
  border-radius: 8px;
  box-shadow: none;
  font-weight: 600;
}

.kw-cta .box-btn-modal-orcamento button {
  background: var(--main);
  color: #fff;
}

.kw-cta .box-btn-modal-orcamento button:hover {
  background: var(--main-strong);
}

.kw-cta .box-btn-modal-orcamento a.whatsapp {
  background: #25d366;
  color: #fff;
}

.kw-cta .kw-tel {
  display: block;
  margin-top: 12px;
  text-align: center;
  font-weight: 700;
  color: var(--main-strong);
  text-decoration: none;
}

.kw-aside .sidebar-main {
  overflow: hidden;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .08);
}

.kw-aside .sidebar-main h3 {
  margin: 0;
  border-radius: 0;
}

.kw-aside .sidebar-main ul {
  max-height: max(160px, calc(100vh - 430px));
  overflow-y: auto;
}

/* ---------- Responsivo ---------- */
@media screen and (max-width: 1100px) {
  .row.kw-layout {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 0 32px;
  }
}

/* até 1060px o header não encolhe ao rolar (scroll.js): fica com 147px */
@media screen and (max-width: 1060px) {
  .kw-aside-fixo {
    top: 165px;
    max-height: calc(100vh - 180px);
  }
}

@media screen and (max-width: 991px) {
  .row.kw-layout {
    grid-template-columns: minmax(0, 1fr); /* 1fr sozinho deixa o carrossel esticar a coluna e cortar o texto */
    padding-top: 30px;
  }

  /* lateral abaixo do texto: foto e orçamento lado a lado, Informações embaixo */
  aside.aside-artigo.kw-aside {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    margin-top: 20px;
  }

  .kw-aside-fixo {
    display: contents;
  }

  .kw-aside .sidebar-main {
    grid-column: 1 / -1;
  }
}

@media screen and (max-width: 640px) {
  .barra-titulo.kw-hero {
    padding: 24px 0;
  }

  .kw-hero .container {
    grid-template-columns: 1fr;
  }

  .kw-hero .box-btn-modal-orcamento {
    width: 100%;
  }

  .kw-hero .box-btn-modal-orcamento .btn,
  .kw-hero .box-btn-modal-orcamento button {
    flex: 1 1 100%;
  }

  .corpo-artigo.kw-artigo {
    font-size: 16px;
  }

  main.main-content .kw-artigo h2 {
    font-size: 22px;
  }

  .kw-artigo .resposta-direta {
    padding: 16px 18px;
    font-size: 16px;
  }

  /* tabela mais larga que a tela rola na horizontal em vez de ser cortada */
  .kw-artigo table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    font-size: 14px;
  }

  .kw-artigo th,
  .kw-artigo td {
    padding: 10px 12px;
    min-width: 120px;
  }

  .kw-artigo .lista-beneficios li {
    width: 100%;
  }

  aside.aside-artigo.kw-aside {
    grid-template-columns: minmax(0, 1fr);
  }
}
