@import url('https://fonts.googleapis.com/css2?family=Barlow+Semi+Condensed:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

/* Header e Banner */
header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 5000;
  transition: background 0.3s;
}

.banner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background-color: #f5f5f58a;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.banner.apagado {
  background-color: #fff;
  padding: 0;
  height: 80px;
  overflow: hidden;
  width: 100%;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.banner-img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  margin-right: 20px;
  border: 2px solid #0063ba;
  border-radius: 12px;
}

/* Menu principal */
.main-menu {
  background: linear-gradient(to right, #0063ba 0%, #83c2ff 100%);
  padding: 0 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  border-radius: 12px;
  width: 100%;
  box-sizing: border-box;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  height: 65px;
}

.main-menu li { margin-right: 10px; }
.main-menu li:last-child { margin-right: 0; }

.main-menu a {
  color: #fff;
  text-decoration: none;
  font-family: "Barlow", Arial, sans-serif;
  font-weight: 600;
  font-size: 22px;
  transition: color 0.2s;
  padding: 8px 0;
  display: block;
}

.menu-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 8px;
  transition: background-color 0.3s, transform 0.3s, box-shadow 0.3s;
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  font-family: "Barlow", Arial, sans-serif;
}

.ml-auto { margin-left: auto; }

.menu-btn .menu-icon {
  object-fit: cover;
  width: 48px;
  height: 48px;
  transition: transform 0.5s cubic-bezier(0.42, 0, 0.58, 1), box-shadow 0.5s cubic-bezier(0.42, 0, 0.58, 1), filter 0.5s cubic-bezier(0.42, 0, 0.58, 1);
}

.menu-btn:hover .menu-icon { transform: rotate(-360deg) scale(1.15); }

.menu-texto {
  display: inline-block;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  white-space: nowrap;
  transition: max-width 0.5s cubic-bezier(0.77, 0, 0.18, 1), opacity 0.3s, color 0.2s;
  margin-top: 4px;
  color: #ffffff;
  font-family: "Barlow", Arial, sans-serif;
  font-weight: 600;
  font-size: 22px;
  text-align: center;
}

.menu-btn:hover .menu-texto,
.menu-texto.menu-texto-visivel {
  max-width: 120px;
  opacity: 1;
}

/* WhatsApp flutuante */
.whatsapp-float {
  position: fixed;
  width: 100px;
  height: 100px;
  bottom: 30px;
  right: 30px;
  z-index: 100;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s, border 0.3s;
}

.whatsapp-float img {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
}

.whatsapp-float:hover { transform: scale(1.15); }

/* Efeitos de scroll */
.efeito-scroll { transition: transform 0.8s, opacity 0.8s; }

.scroll .scroll-img,
.scroll .scroll-menu { transition: transform 0.8s; }

.scroll .scroll-img.escalado { transform: scale(0.6); }
.scroll .scroll-menu.escalado { transform: scale(0.8); }

/* Grid principal */
.wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr 3fr;
  grid-template-rows: auto auto auto auto auto auto;
  grid-gap: 0;
  height: auto;
  margin-bottom: 30px;
}

/* Boxes base */
.box1, .box2, .box3 {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.box1 {
  grid-column: 1/3;
  grid-row: 1;
  background-color: #0063ba;
}

.box1 h1 {
  color: #ffffff;
  font-family: "Barlow Semi Condensed", Arial, sans-serif;
  font-weight: 700;
  font-size: 64px;
  text-align: center;
}

.box2 {
  grid-column: 1/3;
  grid-row: 2;
  background-color: #0063ba;
}

.box2 h2 {
  color: #ffffff;
  font-family: "Barlow Semi Condensed", Arial, sans-serif;
  font-weight: 700;
  font-size: 48px;
  text-align: center;
}

.box3 {
  grid-row: 1/3;
  grid-column: 3;
  background-color: #0063ba;
}

.box3 img {
  width: 800px;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  display: block;
}

/* Boxes com conteúdo adicional */
.box4 {
  grid-column: 1 / 4;
  grid-row: 3;
  background-color: #e6f0fa;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 10px; /* Espaço acima */
}

.box4 h3 {
  color: #0063ba;
  font-family: "Barlow Semi Condensed", Arial, sans-serif;
  font-weight: 700;
  font-size: 36px;
  text-align: center;
  margin: 0;
}

.box5 {
  grid-column: 1 / 4;
  grid-row: 4;
  background-color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 32px 24px;
  margin-top: 10px; /* Espaço acima */
}

.box5 p {
  color: #0063ba;
  font-family: "Barlow Semi Condensed", Arial, sans-serif;
  font-size: 28px;
  text-align: center;
  margin: 0;
}

.box6 {
  grid-column: 1 / 4;
  grid-row: 5;
  background-color: #e6f0fa;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 24px 12px 32px 12px;
  margin-top: 10px; /* Espaço acima */
  margin-bottom: 20px; /* Espaço após a box6 */
}

.box6 h3 {
  color: #0063ba;
  font-family: "Barlow Semi Condensed", Arial, sans-serif;
  font-weight: 700;
  font-size: 32px;
  text-align: center;
  margin-bottom: 18px;
}

/* box7: formulário de orçamento */
.box7 {
  grid-column: 1 / 4;
  grid-row: 6;
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 15px;
  margin-top: 5px;
  border-radius: 12px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
}

.box7 h3 {
  color: #0063ba;
  font-family: "Barlow Semi Condensed", Arial, sans-serif;
  font-weight: 700;
  font-size: 32px;
  text-align: center;
  margin-bottom: 16px;
}

/* Formulário */
.form-orcamento {
  width: 100%;
  max-width: 600px;
  background-color: #f7fbff;
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 3px 15px rgba(0, 99, 186, 0.1);
}

.form-row {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
}

.form-group {
  margin-bottom: 14px;
  flex: 1;
}

.form-group.full-width { flex: 1 1 100%; }

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-family: "Barlow Semi Condensed", Arial, sans-serif;
  font-weight: 600;
  color: #0063ba;
  font-size: 16px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid #c8e0f5;
  border-radius: 8px;
  font-family: "Barlow Semi Condensed", Arial, sans-serif;
  font-size: 16px;
  transition: border-color 0.3s, box-shadow 0.3s;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #0063ba;
  box-shadow: 0 0 0 3px rgba(0, 99, 186, 0.2);
}

.btn-enviar {
  background: linear-gradient(to right, #0063ba 0%, #83c2ff 100%);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 14px 24px;
  font-family: "Barlow Semi Condensed", Arial, sans-serif;
  font-weight: 600;
  font-size: 18px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  width: 100%;
  margin-top: 8px;
}

.btn-enviar:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 99, 186, 0.3);
}

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

.form-status {
  margin-top: 16px;
  padding: 12px;
  border-radius: 8px;
  font-family: "Barlow Semi Condensed", Arial, sans-serif;
  text-align: center;
  display: none;
}

.form-status.success {
  background-color: #e0f5e9;
  color: #0a6b39;
  border: 1px solid #0a6b39;
  display: block;
}

.form-status.error {
  background-color: #ffebee;
  color: #c62828;
  border: 1px solid #c62828;
  display: block;
}

/* Mapa */
.mapa-container {
  width: 100%;
  max-width: 700px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

/* Animações */
.fade-in { opacity: 0; transition: opacity 0.8s ease, transform 0.8s ease; }

.box1.fade-in, .box2.fade-in { transform: translateX(-60px); }
.box1.fade-in.show, .box2.fade-in.show { opacity: 1; transform: translateX(0); }

.box3.fade-in { transform: translateX(60px); }
.box3.fade-in.show { opacity: 1; transform: translateX(0); }

.box4.fade-in, .box5.fade-in, .box6.fade-in, .box7.fade-in, .quadro-container.fade-in { transform: translateY(60px); }
.box4.fade-in.show, .box5.fade-in.show, .box6.fade-in.show, .box7.fade-in.show, .quadro-container.fade-in.show { opacity: 1; transform: translateY(0); }

/* Footer */
.footer {
  background: linear-gradient(90deg, #0063ba 60%, #83c2ff 100%);
  color: #fff;
  padding: 32px 16px 16px 16px;
  margin-top: 32px;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.07);
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-section {
  min-width: 220px;
  flex: 1 1 220px;
}

.footer-section h4 {
  font-size: 1.2em;
  margin-bottom: 12px;
  color: #fff;
  font-weight: 700;
}

.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: #fff; text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: #83c2ff; text-decoration: underline; }

.footer-social { display: flex; gap: 16px; margin-top: 8px; }
.footer-icon { width: 32px; height: 32px; transition: transform 0.2s; }
.footer-icon:hover { transform: scale(1.4); }

.footer-copy {
  text-align: center;
  margin-top: 24px;
  font-size: 0.95em;
  color: #e0e0e0;
  letter-spacing: 0.5px;
}

/* Responsivo: 1200px */
@media (max-width: 1200px) {
  .main-menu { padding: 0 12px; }
  .main-menu ul { flex-wrap: wrap; height: auto; gap: 6px 12px; }
  .main-menu a { font-size: 20px; padding: 6px 0; }

  .box1 h1 { font-size: 48px; }
  .box2 h2 { font-size: 38px; }
  .box4 h3 { font-size: 32px; }
  .box5 p  { font-size: 24px; }
  .box6 h3 { font-size: 28px; }
}

/* Responsivo: 900px */
@media (max-width: 900px) {
  body { overflow-x: hidden; }

  .wrapper {
    grid-template-columns: 1fr;
    grid-gap: 10px;
  }

  .box1, .box2, .box3 { grid-column: 1; }
  .box1 { grid-row: 1; }
  .box2 { grid-row: 2; }
  .box3 { grid-row: 3; }
  .box4 { grid-row: 4; }
  .box5 { grid-row: 5; }
  .box6 { grid-row: 6; }
  .box7 { grid-row: 7; }

  .banner { padding: 12px; }
  .banner.apagado { height: 68px; }
  .banner-img { width: 72px; height: 72px; margin-right: 12px; }

  .main-menu a { font-size: 18px; }

  /* Evita encolhimento excessivo no mobile ao rolar */
  .scroll .scroll-img.escalado { transform: scale(0.75); }
  .scroll .scroll-menu.escalado { transform: scale(0.9); }

  .box1 h1 { font-size: 40px; }
  .box2 h2 { font-size: 32px; }
}

/* Responsivo: 768px */
@media (max-width: 768px) {
  /* Mostrar texto do menu sem depender de hover */
  .menu-texto { max-width: none; opacity: 1; }
  .menu-btn:hover .menu-icon { transform: none; }

  .whatsapp-float { width: 64px; height: 64px; bottom: 20px; right: 20px; }

  .box7 { padding: 15px 10px; }
  .form-orcamento { padding: 12px; }

  .form-row { flex-direction: column; gap: 0; }
  .form-group { margin-bottom: 12px; }

  .footer-content { justify-content: center; text-align: center; gap: 20px; }
  .footer-section { flex: 1 1 100%; }
}

/* Responsivo: 480px */
@media (max-width: 480px) {
  .banner { padding: 8px; }
  .banner.apagado { height: 56px; }
  .banner-img { width: 60px; height: 60px; margin-right: 10px; }

  .main-menu a { font-size: 16px; }

  .box1 h1 { font-size: 28px; }
  .box2 h2 { font-size: 24px; }
  .box4 h3 { font-size: 24px; }
  .box5 p  { font-size: 18px; }
  .box6 h3 { font-size: 22px; }

  .btn-enviar { padding: 12px 18px; font-size: 16px; }

  .whatsapp-float { width: 56px; height: 56px; bottom: 16px; right: 16px; }

  .footer { padding: 24px 12px 12px 12px; }
}