* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  color: #444;
  font-size: 1rem;
  background: #f7f7f7;
}

.load {
  z-index: 2;
  position: absolute;
  height: 100%;
  width: 100%;
  background: #fff;
  animation: 1.5s load forwards ease-out;
}

.load img {
  position: fixed;
  width: 120px;
  height: 120px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

@keyframes load {
  to {
    opacity: 0;
    display: none;
    z-index: -2;
  }
}

header {
  background: #fff;
  text-align: center;
}

p {
  line-height: 140%;
  color: #666;
  font-weight: 100;
  font-size: 1em;
}

/* Removido padding global em h1,p (causava desalinhamentos) */

hr {
  border: none;
  border-bottom: 1px #ccc solid;
}

header nav {
  padding: 1.8rem 0;
}

nav a {
  text-decoration: none;
  color: #444;
  padding: .5rem 1rem;
  font-weight: 600;
  font-size: .85em;
}

.logo img {
  padding-top: 1rem;
}

.logo {
  max-height: 70px;
}

.img-responsive {
  max-width: 100%;
}

h1 {
  font-size: 2rem;
}

h2 {
  color: #6e8765;
}

h3 {
  font-size: 1.1em;
}

.hero {
  background: url('medias/bg-hero.jpg') repeat center top;
}

.btn {
  padding: .7rem 2.6rem;
  margin-bottom: 1rem;
  background: #ccc;
  color: #fff;
  text-decoration: none;
  display: inline-block;
  font-size: .8rem;
}

.link-btn {
  padding: 2rem 1rem;
}

.btn-more {
  background: #6E8765;
}

.btn-orcamento {
  background: #505550;
}

.hero_img {
  text-align: center;
}

.txt_sec_1_display p {
  text-align: right;
  margin: 1rem 0 2rem 1rem;
  font-weight: 100;
}

.section_1 {
  margin: 3rem 1rem;
}

.section_2 h2,
.section_2 p {
  text-align: center;
  margin: 0 1.1rem;
}

.t_mesa {
  text-align: center;
}

.img_sec_2 {
  margin-top: 3rem;
}

.section_2_bg {
  background: url('medias/bg_section_1_2.png') repeat-x center bottom;
  padding-bottom: 4rem;
}

.section_display {
  max-width: 1150px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.section_display h2 {
  margin: 0 0 0 1rem;
}

.section_display p {
  margin: 1rem 0;
}

.section_2 {
  text-align: center;
}

.section_ask {
  margin: 3rem 1rem;
}

.section_ask h2,
.section_ask p {
  text-align: center;
  margin-bottom: 1rem;
}

.section_ask p {
  text-align: left;
  margin-bottom: 1rem;
}

.btn-ask {
  text-align: center;
  margin: 2rem 0;
}

.news {
  margin: 1rem;
}

.news h2,
.news p {
  text-align: left;
}

.news p {
  margin-bottom: 2rem;
}

/* ==== GRID moderno para os artigos ==== */
.new_display {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  /* respiro entre cards */
}

.new_display img {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 1rem;
}

@media (min-width: 49rem) {
  .new_display {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    align-items: start;
  }

  .new_display article {
    max-width: none;
  }

  /* se existir regra antiga */
}

/* Cartões de artigo */
.article-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.article-card h3 {
  margin: .5rem 1rem 0;
  font-size: 1.22rem;
  line-height: 1.28;
}

.article-card .excerpt {
  margin: .25rem 1rem 1rem;
  color: #555;
}

/* Botão de abrir/fechar */
.collapse-toggle {
  display: inline-flex;
  text-align: left;
  align-items: center;
  gap: .5rem;
  background: #6E8765;
  color: #fff;
  border: none;
  padding: .9rem 1.1rem;
  margin: 0 1rem 1rem;
  border-radius: 0;
  font-weight: 600;
  cursor: pointer;
  transition: background .25s ease, transform .15s ease, box-shadow .25s ease;
  box-shadow: none;
}

.collapse-toggle::after {
  content: "▾";
  font-size: 1rem;
  transform: translateY(-1px);
  transition: transform .2s ease;
}

.collapse-toggle.is-open::after {
  transform: rotate(180deg);
}

.collapse-toggle:hover {
  background: #587050;
  transform: translateY(-1px);
}

.collapse-toggle:active {
  transform: translateY(0);
}

/* Conteúdo expansível premium */
.collapse-content {
  overflow: hidden;
  max-height: 0;
  padding: 0 1rem;
  background: #fafafa;
  border-top: 1px solid #eee;
  transition: max-height .45s ease, padding .3s ease, box-shadow .3s ease;
  will-change: max-height;
  border-radius: 0 0 10px 10px;
}

.collapse-content.is-open {
  /* max-height é setado via JS com scrollHeight */
  padding: 1rem 1.25rem 1.25rem;
  box-shadow: inset 0 1px 0 rgba(0, 0, 0, .02);
}

.collapse-content h4 {
  margin-top: 1rem;
  margin-bottom: .5rem;
  color: #6E8765;
}

.collapse-content h4+p,
.collapse-content h4+ul,
.collapse-content h4+ol {
  margin-top: .25rem;
  /* pequeno respiro adicional */
}

.collapse-content ol,
.collapse-content ul {
  margin: 0 0 1rem 1.25rem;
  /* margem esquerda padrão */
  padding-left: 0;
  /* evita recuo duplo */
}

.collapse-content ol {
  list-style: decimal;
}

.collapse-content ul {
  list-style: disc;
}

.collapse-content li {
  margin-bottom: .4rem;
}

/* (opcional) Título e resumo do card com respiro consistente */
.article-card h3 {
  margin: .5rem 1rem .35rem;
}

.article-card .excerpt {
  margin: 0 1rem 1rem;
}

/* CTA dentro do artigo */
.cta-box {
  background: #e9f3ec;
  border: 1px solid #d6e8da;
  border-left: 5px solid #6E8765;
  padding: 1rem 1rem 1.1rem;
  margin-top: 1.5rem;
  border-radius: 8px;
  font-size: .95rem;
}

.cta-link {
  display: inline-block;
  margin-top: .6rem;
  color: #fff;
  background: #6E8765;
  padding: .55rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
}

.cta-link:hover {
  background: #587050;
}

footer {
  background: url('medias/bg_attacmment_orcamento.png') no-repeat center top;
  text-align: center;
}

footer .container {
  max-width: 40rem;
  padding: 3rem 0;
  margin: 0 auto;
}

.copy {
  background: #333;
  padding: 1rem 0;
  color: #fff;
}

.copy h3 {
  padding-bottom: 1rem;
}

.copy span {
  display: block;
  font-weight: 100;
  font-size: .8rem;
  line-height: 140%;
}

.wpp {
  z-index: 1;
  position: fixed;
  bottom: 0;
  right: 20px;
  cursor: pointer;
}

.disablelink {
  pointer-events: none;
  cursor: default;
}

/* ====== Desktop ====== */
@media (min-width: 49rem) {
  .container_header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 0 auto;
    max-width: 1150px;
  }

  .hero_display {
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    margin: 0 auto;
    max-width: 1150px;
  }

  .hero_txt {
    max-width: 50%;
    margin-top: 100px;
  }

  .section_1 {
    display: flex;
    max-width: 1150px;
    margin: 4rem auto;
  }

  .txt_sec_1_display {
    max-width: 50%;
    padding-left: 1rem;
  }

  .txt_sec_1_display p {
    text-align: left;
    margin: 1rem 0 2rem 0;
    line-height: 118%;
    font-weight: 100;
    padding-left: 0;
  }

  .t_mesa {
    min-width: 50%;
    text-align: right;
  }

  .section_2 {
    max-width: 1170px;
    margin: 4rem auto 0;
    text-align: center;
  }

  .section_2 h2 {
    max-width: 600px;
    margin: 1rem auto;
    font-weight: 600;
  }

  .section_2 p {
    max-width: 800px;
    margin: 1rem auto;
  }

  .section_display p {
    max-width: 630px;
    text-align: left;
    margin: 0;
    padding: 1rem 0 0 0;
  }

  .section_display {
    padding: 1rem;
    margin: 0 auto;
  }

  .section_display h2 {
    max-width: 800px;
    text-align: left;
    margin: 0;
  }

  .section_bg_3 {
    background: url('medias/bg_section_3.png') no-repeat center right;
  }

  .section_ask_display {
    max-width: 800px;
    margin: 1rem auto;
    text-align: left;
  }

  .section_ask_display article p {
    text-align: left;
  }

  .news {
    max-width: 1150px;
    margin: 3rem auto;
  }

  .news p {
    margin-bottom: 1rem;
  }

  .news .article-card h3,
  .news .article-card .excerpt,
  .news .article-card p,
  .news .article-card li {
    text-align: left;
  }

  /* GRID responsivo com colunas fluídas */
  .new_display {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    align-items: start;
  }
}

/* Grid de modelos (fica 1 coluna no mobile, 2 no desktop) */
.templates-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: .75rem;
  margin: .5rem 0 1rem;
}

@media (min-width: 49rem) {
  .templates-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Cartão do modelo de mensagem */
.msg-template {
  background: #f8f9f8;
  border: 1px solid #e6ebe6;
  border-left: 4px solid #6E8765;
  border-radius: 6px;
  padding: .75rem .9rem;
}

.msg-template strong {
  display: block;
  margin-bottom: .35rem;
  color: #333;
}

.msg-template pre {
  margin: 0;
  white-space: pre-wrap;
  word-wrap: break-word;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: .92rem;
  line-height: 1.35;
}

/* Tabela de metas */
.goals-table {
  width: 100%;
  border-collapse: collapse;
  margin: .5rem 0 1rem;
  font-size: .95rem;
}

.goals-table th,
.goals-table td {
  text-align: left;
  padding: .6rem .7rem;
  border-bottom: 1px solid #eee;
  vertical-align: top;
}

.goals-table thead th {
  background: #f1f5f1;
  color: #333;
}

.goals-table tbody tr:hover {
  background: #fafafa;
}

/* Botão copiar dentro dos modelos */
.msg-template {
  position: relative;
}

.copy-btn {
  position: absolute;
  top: .6rem;
  right: .6rem;
  -webkit-appearance: none;
  appearance: none;
  background: #6E8765;
  color: #fff;
  border: 0;
  padding: .45rem .7rem;
  font-size: .8rem;
  line-height: 1;
  font-weight: 700;
  cursor: pointer;
  border-radius: 0;
  /* sem arredondado */
  transition: background .2s ease, transform .1s ease, box-shadow .2s ease;
  box-shadow: 0 4px 10px rgba(110, 135, 101, .25);
}

.copy-btn:hover {
  background: #587050;
  transform: translateY(-1px);
}

.copy-btn:active {
  transform: translateY(0);
}

.copy-btn.is-success {
  background: #505550;
}

/* cor quando copiado */