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

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  color: #222;
  background-color: #efedea;
  background-image:
    linear-gradient(rgba(239, 237, 234, 0.9), rgba(239, 237, 234, 0.9)),
    url('img-prod/Imagem fundo.jpeg');
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
  background-repeat: no-repeat;
  line-height: 1.5;
}

body.modal-aberto {
  overflow: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Header */

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 2rem;
  background-color: #0047ab;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-esquerda {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
  font-size: 1.3rem;
  font-weight: 700;
  white-space: nowrap;
}

.logo img {
  height: 64px;
  width: auto;
  border-radius: 6px;
  display: block;
}

.header-beneficios {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.header-beneficio {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 1.05rem;
  color: #dce6f2;
  white-space: nowrap;
}

.header-contato {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.1rem;
  font-size: 0.85rem;
  color: #cddcee;
  text-align: right;
}

/* Seção Calculadora */

.secao-calculadora {
  max-width: 700px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  text-align: center;
}

.secao-calculadora h1 {
  font-size: 1.9rem;
  margin-bottom: 0.8rem;
  color: #0d4f9e;
}

.secao-calculadora > p {
  color: #6b675f;
  margin-bottom: 2rem;
}

.calc-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(13, 79, 158, 0.1);
  padding: 2rem;
  text-align: left;
  border: 1px solid #e2dfda;
}

/* Card teaser da calculadora */

.calc-card-teaser {
  display: block;
  width: 100%;
  padding: 1.5rem 2rem;
  font-family: inherit;
  cursor: pointer;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.calc-card-teaser:hover,
.calc-card-teaser:focus-visible {
  box-shadow: 0 6px 20px rgba(13, 79, 158, 0.2);
  border-color: #0d4f9e;
}

.teaser-conteudo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.teaser-texto {
  display: flex;
  flex-direction: column;
}

.teaser-texto-titulo {
  font-size: 1.2rem;
  color: #2b2b2b;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.teaser-link {
  color: #0d4f9e;
  font-size: 0.95rem;
  text-decoration: underline;
}

.calc-card-teaser:hover .teaser-link {
  color: #0a3d7a;
}

.teaser-icone {
  width: 44px;
  height: 52px;
  color: #0d4f9e;
  flex-shrink: 0;
  font-size: 2rem;
}

/* Demais estilos da calculadora */

.calc-etapa-titulo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
  color: #0d4f9e;
}

.calc-instrucao {
  color: #6b675f;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.calc-campo {
  margin-bottom: 1.5rem;
}

.calc-campo label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
  color: #0a3d7a;
}

.opcoes-grupo {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.calc-datas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.calc-datas > div {
  flex: 1;
  min-width: 140px;
}

.label-pequeno {
  display: block;
  font-weight: 400 !important;
  font-size: 0.8rem !important;
  color: #6b675f !important;
  margin-bottom: 0.3rem !important;
}

.calc-datas input[type="date"] {
  width: 100%;
  padding: 0.6rem;
  border: 1px solid #a8a29a;
  border-radius: 8px;
  font: inherit;
  background: #fff;
  box-sizing: border-box;
}

.calc-datas input[type="date"]:disabled {
  background: #f2f0ec;
  color: #6b675f;
  cursor: not-allowed;
}

.periodo-resultado-info {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  color: #0d4f9e;
  font-weight: 600;
}

.periodo-resultado-info.periodo-resultado-erro {
  color: #b3261e;
  font-weight: 400;
}

.periodo-resultado-total {
  margin-top: 0.2rem;
  font-size: 1rem;
}

.opcao-btn {
  padding: 0.6rem 1rem;
  border: 1px solid #a8a29a;
  border-radius: 8px;
  background: #fff;
  color: #3d3a35;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.opcao-btn:hover {
  border-color: #5b84a8;
}

.opcao-selecionada {
  background-color: #0d4f9e;
  border-color: #0d4f9e;
  color: #fff;
  font-weight: 600;
}

.periodo-item-aviso {
  font-size: 0.8rem;
  color: #6b675f;
  font-style: italic;
  margin-top: 0.5rem;
}

.link-esvaziar-carrinho {
  background: none;
  border: 1px solid #c9433f;
  border-radius: 6px;
  color: #c9433f;
  font-size: 0.78rem;
  font-style: normal;
  padding: 0.2rem 0.5rem;
  margin-left: 0.4rem;
  margin-top: 0.3rem;
  cursor: pointer;
  white-space: nowrap;
}

.link-esvaziar-carrinho:hover {
  background: #fdeceb;
}

.contador {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contador-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #a8a29a;
  background: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.contador-btn:hover {
  background-color: #0d4f9e;
  border-color: #0d4f9e;
  color: #fff;
}

.contador-valor {
  min-width: 24px;
  text-align: center;
  font-weight: 600;
  font-size: 1rem;
}

.btn-calcular {
  width: 100%;
  padding: 0.9rem;
  border: none;
  border-radius: 8px;
  background-color: #0d4f9e;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: background 0.2s;
}

.btn-calcular:hover {
  background-color: #0a3d7a;
}

.voltar-etapa {
  border: none;
  background: none;
  color: #5b84a8;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.9rem;
}

.voltar-etapa:hover {
  text-decoration: underline;
  color: #0d4f9e;
}

.itens-titulo {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: #0d4f9e;
}

.item-resultado {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid #e2dfda;
}

.item-resultado-img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  background-color: #efedea;
}

.item-resultado-info {
  flex: 1;
}

.item-resultado-nome {
  font-weight: 600;
  font-size: 0.95rem;
  color: #0a3d7a;
}

.item-resultado-preco {
  font-size: 0.85rem;
  color: #6b675f;
  margin-top: 0.2rem;
}

.item-resultado-controles {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.item-remover {
  border: none;
  background: none;
  color: #b3453f;
  font-size: 0.8rem;
  cursor: pointer;
  margin-left: 0.5rem;
}

.item-remover:hover {
  text-decoration: underline;
}

.adicionar-item-container {
  margin-top: 1.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid #e2dfda;
}

.adicionar-item-container label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.6rem;
  font-size: 0.9rem;
  color: #0a3d7a;
}

.adicionar-item-linha {
  display: flex;
  gap: 0.6rem;
}

.adicionar-item-dropdown {
  position: relative;
  flex: 1;
  min-width: 0;
}

.adicionar-item-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.7rem;
  border: 1px solid #a8a29a;
  border-radius: 8px;
  background: #fff;
  color: #3d3a35;
  font-size: 0.9rem;
  font: inherit;
  cursor: pointer;
  text-align: left;
}

.adicionar-item-toggle img,
.adicionar-item-opcao img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  background: #f2f0ec;
  border-radius: 4px;
  flex-shrink: 0;
}

.adicionar-item-opcao-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.adicionar-item-opcao-nome {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.adicionar-item-opcao-preco {
  font-size: 0.78rem;
  color: #6b675f;
}

.adicionar-item-opcao-selecionada .adicionar-item-opcao-preco {
  color: #0d4f9e;
}

.adicionar-item-seta {
  color: #6b675f;
  flex-shrink: 0;
}

.adicionar-item-lista {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 20;
  max-height: 260px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #a8a29a;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  list-style: none;
  margin: 0;
  padding: 0.3rem;
  display: none;
}

.adicionar-item-dropdown.adicionar-item-aberto .adicionar-item-lista {
  display: block;
}

.adicionar-item-opcao {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.88rem;
  color: #3d3a35;
}

.adicionar-item-opcao:hover {
  background: #f2f0ec;
}

.adicionar-item-opcao-selecionada {
  background: #eaf1fb;
  font-weight: 600;
  color: #0d4f9e;
}

.btn-adicionar-item {
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 8px;
  background-color: #0d4f9e;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.btn-adicionar-item:hover {
  background-color: #0a3d7a;
}

.adicionar-item-vazio {
  font-size: 0.85rem;
  color: #6b675f;
  font-style: italic;
}

.resumo-total {
  margin-top: 1.5rem;
  padding-top: 1.2rem;
  border-top: 2px solid #e2dfda;
  font-size: 0.95rem;
  color: #0a3d7a;
}

.nota-economia {
  margin-top: 0.7rem;
  padding: 0.6rem 0.7rem;
  background: #fff6e0;
  border: 1px solid #e8d391;
  border-radius: 8px;
  font-size: 0.82rem;
  color: #6b5a1a;
}

.btn-orcamento {
  width: 100%;
  margin-top: 1.5rem;
  padding: 0.9rem;
  border: none;
  border-radius: 8px;
  background-color: #28a745;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-orcamento:hover {
  background-color: #218838;
}

.btn-novo-calculo {
  display: block;
  width: 100%;
  margin-top: 0.6rem;
  padding: 0.55rem;
  border: 1px solid #0d4f9e;
  border-radius: 8px;
  background: none;
  color: #0d4f9e;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.btn-novo-calculo:hover {
  background: #0d4f9e;
  color: #fff;
}

/* Seção Benefícios */

/* Seção Produtos */

.secao-produtos {
  padding: 1.5rem 1.5rem 3rem;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.secao-produtos h2 {
  font-size: 1.6rem;
  margin-bottom: 2rem;
  color: #0d4f9e;
}

.galeria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  text-align: left;
}

/* Seção de conteúdo (Aluguel de Andaimes) */

.secao-conteudo {
  padding: 1.5rem 1.5rem 3rem;
  max-width: 900px;
  margin: 0 auto;
}

.conteudo-card {
  background: #f4f3f1;
  border-radius: 16px;
  padding: 2.5rem 2rem;
}

.conteudo-card h2 {
  font-size: 1.7rem;
  color: #0a3d7a;
  margin-bottom: 1.2rem;
}

.conteudo-card h3 {
  font-size: 1.2rem;
  color: #0d4f9e;
  margin: 2rem 0 0.8rem;
}

.conteudo-card h4 {
  font-size: 1rem;
  color: #3d3a35;
  margin: 1.4rem 0 0.5rem;
}

.conteudo-card p {
  color: #6b675f;
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.conteudo-card ul,
.conteudo-card ol {
  color: #6b675f;
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0 0 1rem 1.3rem;
}

.conteudo-card li {
  margin-bottom: 0.35rem;
}

.conteudo-card strong {
  color: #3d3a35;
}

.produto-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(13, 79, 158, 0.1);
  display: flex;
  flex-direction: column;
  border: 1px solid #e2dfda;
}

.produto-card img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  object-position: center center;
  background-color: #fff;
  padding: 0.75rem;
  box-sizing: border-box;
  font-size: 0;
  color: transparent;
}

.produto-info {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.produto-nome {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.4rem;
  color: #0a3d7a;
}

.produto-descricao {
  font-size: 0.85rem;
  color: #6b675f;
  margin-bottom: 0.8rem;
  flex: 1;
}

.produto-preco {
  font-weight: 600;
  color: #0d4f9e;
  margin-bottom: 1rem;
}

.produto-preco .preco-label {
  display: block;
  font-weight: 400;
  font-size: 0.8rem;
  color: #6b675f;
}

.produto-preco .preco-valor {
  font-size: 1.15rem;
}

.produto-preco .preco-nota {
  font-weight: 400;
  font-size: 0.72rem;
  font-style: italic;
  color: #948f85;
  margin-top: 0.15rem;
}

.produto-botoes {
  display: flex;
  gap: 0.6rem;
}

.produto-botoes .btn {
  width: 100%;
}

.btn {
  flex: 1;
  padding: 0.6rem;
  border: none;
  border-radius: 6px;
  background-color: #0d4f9e;
  color: #fff;
  cursor: pointer;
  font-size: 0.85rem;
  transition: background 0.2s;
}

.btn:hover {
  background-color: #0a3d7a;
}

.btn-secondary {
  background-color: #5b84a8;
}

.btn-secondary:hover {
  background-color: #46698a;
}

/* Footer */

.footer {
  text-align: center;
  padding: 2rem 1.5rem;
  background-color: #0a3d7a;
  color: #d7e0ea;
  font-size: 0.9rem;
}

.footer p {
  margin-bottom: 0.3rem;
}

/* Modal */

.modal {
  display: none;
  position: fixed;
  z-index: 200;
  inset: 0;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.6);
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-conteudo {
  background-color: #fefefe;
  margin: auto;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  width: 90%;
  max-width: 450px;
  position: relative;
  text-align: left;
}

.modal-conteudo h2 {
  color: #0d4f9e;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.modal-conteudo p {
  color: #6b675f;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.modal-conteudo .calc-campo {
  margin-bottom: 1.5rem;
}

.modal-conteudo .calc-campo label {
  font-size: 0.9rem;
}

.modal-conteudo select {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #a8a29a;
  border-radius: 8px;
  background: #fff;
  color: #3d3a35;
  font-size: 0.95rem;
  appearance: none;
  background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%230a3d7a%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13%205.4L146.2%20200.6%2018.4%2074.9a17.6%2017.6%200%200%200-25.3%2023.8l130.4%20126.7a17.6%2017.6%200%200%200%2025.3%200l130.4-126.7a17.6%2017.6%200%200%200-12.9-23.8z%22%2F%3E%3C%2Fsvg%3E');
  background-repeat: no-repeat;
  background-position: right 0.8rem center;
  background-size: 12px;
}

.modal-conteudo .btn-calcular {
  margin-top: 1.5rem;
}

.fechar-modal {
  color: #aaa;
  position: absolute;
  top: 15px;
  right: 25px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  border: none;
  background: transparent;
  line-height: 1;
}

.fechar-modal:hover,
.fechar-modal:focus {
  color: #000;
}

/* Responsividade */

@media (max-width: 600px) {
  .header {
    position: relative;
    justify-content: space-between;
  }

  .header-beneficios {
    display: none;
  }

  .header-contato {
    display: none;
  }

  .calc-card {
    padding: 1.2rem;
  }

  .item-resultado {
    flex-wrap: wrap;
  }

  .item-resultado-controles {
    width: 100%;
    justify-content: flex-start;
    margin-top: 0.5rem;
  }

  .adicionar-item-linha {
    flex-direction: column;
  }

  .btn-adicionar-item {
    width: 100%;
  }

  .modal {
    padding: 0.5rem;
  }

  .modal-conteudo {
    padding: 1.5rem;
    width: 100%;
  }

  .modal-conteudo h2 {
    font-size: 1.3rem;
  }
}

/* Carrinho lateral */
.carrinho {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 180;
  width: min(390px, 92vw);
  height: 100vh;
  padding: 1.5rem;
  background: #fff;
  box-shadow: -8px 0 24px rgba(0, 0, 0, 0.18);
  transform: translateX(105%);
  transition: transform 0.25s ease;
  display: flex;
  flex-direction: column;
}

.carrinho.carrinho-aberto { transform: translateX(0); }
.carrinho-cabecalho { display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 1px solid #e2dfda; padding-bottom: 1rem; }
.carrinho-kicker { color: #6b675f; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.carrinho h2 { color: #0d4f9e; font-size: 1.35rem; }
.carrinho-fechar { border: 0; background: transparent; color: #6b675f; font-size: 2rem; line-height: 1; cursor: pointer; }
.carrinho-lista { flex: 1; overflow-y: auto; padding: .5rem 0; }
.carrinho-vazio { color: #6b675f; text-align: center; padding: 2rem 0; }
.carrinho-item { display: flex; gap: .75rem; padding: 1rem 0; border-bottom: 1px solid #e2dfda; }
.carrinho-item-img { width: 58px; height: 58px; object-fit: cover; border-radius: 8px; background: #efedea; flex-shrink: 0; }
.carrinho-item-info { min-width: 0; flex: 1; }
.carrinho-item-info strong { display: block; color: #0a3d7a; font-size: .88rem; line-height: 1.3; }
.carrinho-item-info > span { display: block; color: #6b675f; font-size: .78rem; margin-top: .25rem; }
.carrinho-item-controles { display: flex; align-items: center; gap: .45rem; margin-top: .6rem; }
.carrinho-item-controles .contador-btn { width: 28px; height: 28px; font-size: 1rem; }
.carrinho-item-controles .item-remover { margin-left: auto; font-size: .76rem; }
.carrinho-resumo { border-top: 2px solid #e2dfda; padding-top: 1rem; color: #0a3d7a; font-size: .9rem; }
.carrinho-resumo small { display: block; color: #6b675f; margin-top: .35rem; }
.carrinho-resumo-linha { margin-bottom: .5rem; }
.carrinho-resumo-periodo { margin-top: .75rem; }
.carrinho-resumo-periodo > label { display: block; font-size: .85rem; font-weight: 600; color: #0a3d7a; margin-bottom: .4rem; }
.carrinho-resumo-periodo .calc-datas { font-size: .85rem; }
.carrinho-resumo-periodo .periodo-resultado-info { font-size: .8rem; margin-top: .4rem; color: #6b675f; }
.carrinho-resumo-total-periodo { font-size: 1rem; margin-top: .75rem; margin-bottom: 0; color: #0a3d7a; }
.carrinho-resumo-total-geral { font-size: 1.05rem; font-weight: 700; margin-top: .5rem; margin-bottom: 0; color: #0a3d7a; }
.carrinho-esvaziar { display: block; width: 100%; margin-top: .75rem; padding: .5rem; background: none; border: 1px solid #c9433f; border-radius: 8px; color: #c9433f; font-size: .82rem; cursor: pointer; }
.carrinho-esvaziar:hover { background: #fdeceb; }
.carrinho-orcamento { margin-top: 1rem; }
.carrinho-orcamento:disabled { opacity: .5; cursor: not-allowed; }
.carrinho-toggle { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 170; border: 0; border-radius: 999px; padding: .8rem 1rem; background: #0d4f9e; color: #fff; box-shadow: 0 4px 14px rgba(0,0,0,.2); cursor: pointer; font-size: 1rem; }
.carrinho-toggle:hover { background: #0a3d7a; }
.carrinho-toggle span { display: inline-flex; align-items: center; justify-content: center; min-width: 1.35rem; height: 1.35rem; margin-left: .25rem; border-radius: 50%; background: #28a745; font-size: .75rem; }
.quantidade-modal-conteudo input { width: 100%; padding: .8rem; border: 1px solid #a8a29a; border-radius: 8px; font: inherit; }

@media (max-width: 600px) {
  .carrinho { width: 100%; padding: 1.2rem; }
  .carrinho-toggle { right: .8rem; bottom: .8rem; }
  .produto-botoes { flex-direction: column; }
}
