/* Reset e configurações básicas */
@import url('https://fonts.googleapis.com/css2?family=Hanken+Grotesk:wght@200;300;400;500;600;700&display=swap');

* {
  font-family: 'Hanken Grotesk', sans-serif !important;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
:root {
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}
body {
  font-family: 'Hanken Grotesk', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Botões ===== */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 10px;
  transition: all 0.3s ease;
  cursor: pointer;
}
.btn-primary {
  background: #FEB501;
  color: white;
  border: none;
}
.btn-primary:hover {
  background: #e6a301;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(254, 181, 1, 0.3);
}
.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}
.btn-secondary:hover {
  background: white;
  color: #5bb9ba;
  transform: translateY(-2px);
}

/* Header */
.main-header {
  background-color: #fff;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: center;
  border-bottom: 1px solid #ccc;
}
.main-header .container {
  width: 100%;
  max-width: 1200px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.main-header .logo img {
  height: 100px;
}
.main-header .logo {
  order: 1;
}
.main-header .menu-toggle {
  order: 2;
  margin-left: auto;
}

.nav-menu ul {
  list-style: none;
  display: flex;
  gap: 30px;
}
.nav-menu a {
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  color: #009999;
  position: relative;
  transition: color 0.2s ease;
}
.nav-menu a:hover,
.nav-menu a.active {
  color: #f4a300;
}
.nav-menu a.active::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #f4a300;
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: 20px;
}
.nav-menu ul {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
}
.social-icons {
  display: flex;
  gap: 20px;
  margin-left: 60px;
}
.social-icons img {
  width: 48px;
  height: 48px;
  transition: transform 0.2s ease;
}
.social-icons img:hover {
  transform: scale(1.1);
}

/* Logo centralizado */
.logo {
  display: flex;
  align-items: center;
}
.logo-center {
  height: 50px;
}
.logo-img {
  height: 50px;
}

/* Hero Section */
.hero {
    position: relative;
    background-image: url("../images/bg_hero.png");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-color: rgba(0,0,0,0.2);
    background-blend-mode: overlay;
    color: white;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 0 6rem 0;
}
.hero-contact-wrapper {
  display: flex;
  align-items: center;      /* alinha topo com topo */
  justify-content: space-between;
  gap: 2rem;
  padding: 4rem 0;              /* ajuste vertical se quiser */
}
.hero-contact-text,
.hero-contact-wrapper .form-simulador {
  flex: 1;
}
.hero-contact-wrapper .form-simulador {
  max-width: 500px;
}
.hero-subtitle {
  margin-top: 1rem;
  font-size: 1.1rem;
  opacity: 0.9;
}
.hero-wrapper {
    display: grid;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
    justify-content: center;
    grid-template-columns: 100% 0%;
    grid-template-areas:
      "text cards"
      "buttons cards";
    position: relative;
    z-index: 2;
}
.hero-text {
    grid-area: text;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.hero-cards {
    grid-area: cards;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    align-items: flex-start;
    margin-top: 2rem;
}
.hero-buttons {
    grid-area: buttons;
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    padding-top: 2rem;
}
.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}
.highlight {
    color: #FEB501;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
    position: relative;
}
.highlight::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: #FEB501;
    transform: scaleX(0);
    animation: highlightGrow 2s ease-out 1s forwards;
}

@keyframes highlightGrow {
    to {
        transform: scaleX(1);
    }
}
.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.5;
    text-shadow: 2px2px 6px rgba(0, 0, 0, 0.8);
}
.hero .form-success {
  display: none;
}
.hero .blog {
  max-height: 100px;
}

/* Floating Cards */
.floating-card {
    width: -moz-fit-content;
    width: -webkit-fit-content;
    width: 160px;
    min-height: 250px;
    height: auto;
    position: relative;
    top: auto;
    right: auto;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 1rem;
    animation: float 10s ease-in-out infinite;
    transition: transform 0.3s ease;
    height: auto;
    color:#5bb9ba;
    text-decoration: none !important;
    transform-origin: center;
}
.floating-card:hover {
    transform: scale(1.05);
    color:#FEB501;
}
.card-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}
.floating-card:hover .card-inner {
    transform: scale(1.05);
}
.card-1 {
  animation: float 10s ease-in-out infinite;
  animation-delay: -0s;
}
.card-2 {
  animation: float 10s ease-in-out infinite;
  animation-delay: -2.5s;
}
.card-3 {
  animation: float 10s ease-in-out infinite;
  animation-delay: -5s;
}
.card-4 {
  animation: float 10s ease-in-out infinite;
  animation-delay: -7.5s;
}

@keyframes float {
    0%, 100% { transform: translateY(-7.5px); }
    50% { transform: translateY(-22.5px); }
}
.card-icon {
    font-size: 2.2rem;
    width: 60px;
    height: 60px;
    background: rgba(254, 181, 1, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}
.card-text h4 {
    font-size: 1rem;
    margin-bottom: 0rem;
    text-decoration: none !important;
}
.card-text p {
    font-size: 0.9rem;
    opacity: 0.85;
    white-space: normal;
}

/* Section Titles */
.section-title {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: #5bb9ba;
    line-height: 1.1;
}

/* About Section */
.about {
    padding: 6rem 0;
    background: #fff;
}
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.about-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #000;
}
.stats {
    display: flex;
    gap: 2rem;
}
.stat {
    text-align: center;
}
.stat h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #5bb9ba;
    margin-bottom: 0.5rem;
}
.stat p {
    color: #000;
    font-weight: 500;
}
.about-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Services Section */
.services {
    padding: 6rem 0;
    background: white;
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}
.service-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(91, 185, 186, 0.15);
}
.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}
.service-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
}
.service-card p {
    color: #666;
    line-height: 1.6;
}

/* Portfolio Section */
.portfolio {
    padding: 6rem 0;
    background: #f8f9fa;
}
/* ... restante do CSS de portfolio ... */

/* FAQ Section */
.duvidas-inner {
    background-color: #5bb9ba;
    padding: 4rem 2rem;
    color: white;
}
.duvidas-titulo {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: white;
}
.faq-list {
  column-count: 2;
  column-gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}
.faq-item {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: #5bb9ba;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: .5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: box-shadow 0.3s ease;
}
.faq-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}
.faq-inner {
  position: relative;
  width: 100%;
  background-color: transparent;
  border-radius: 8px;
  overflow: hidden;
}
.faq-question {
  background: none;
  border: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: flex-start;
  font-weight: bold;
  cursor: pointer;
  height: 100%;
  width: 100%;
  text-align: left;
  font-size: 1.15rem;
  padding: 0;
  color: white;
}
.faq-question:hover {
  background-color: #5bb9ba;
}
.faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s ease;
  margin-top: 0.8rem;
  font-size: 0.95rem;
  line-height: 1.5;
  padding: 0 0.5rem;
  border-left: 3px solid #5bb9ba;
}
.faq-answer.active {
  max-height: 500px; /* Limite seguro para conteúdo */
}
.emoji {
    transition: transform 0.4s ease;
    font-size: 2rem;
}
.emoji.rotate {
    transform: rotate(45deg);
}

/* Contact Section */
.contact {
    padding: 2rem 0 3rem;
    background-color: #5bb9ba;
    /* background-color: #aa7c09;*/
    color: white;
}
.contact .section-title {
    color: #fff;
}
.contact .section-title .highlight {
    color:#5bb9ba;
}

.pagina-energia-solar .contact {
  background-color: white;
  color: #5bb9ba;
}
.pagina-energia-solar .contact .section-title {
  margin-top: 1rem;
  color: #5bb9ba;
}
.pagina-energia-solar .contact .section-title .highlight {
  color: #FEB501;
}
.form-simulador {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
  color: #333;
  background-color: #fff !important;
  opacity: 1 !important;
  backdrop-filter: none !important;
}
.form-simulador label {
  font-weight: 600;
  font-size: 1rem;
}
.form-simulador input[type="text"],
.form-simulador input[type="tel"],
.form-simulador select {
  padding: 0.75rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 1rem;
  width: 100%;
}
.form-simulador button {
  margin-top: 1rem;
  width: 100%;
  background-color: #5bb9ba;
}
@media (max-width: 768px) {
  .form-simulador {
    padding: 1.5rem;
  }
}
.form-success {
  max-width: 600px;
  margin: 0 auto;
  padding: 1.5rem;
  text-align: center;
  background-color: transparent; /* ou mantenha o que está */
}

.portfolio {
  background-color: #fff;
  color: #5bb9ba;
  padding: 1rem;
}
.portfolio-title {
  text-align: center;
  padding: 3rem;
}
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}
.portfolio-item {
  position: relative;
  border: 8px solid #5bb9ba;
  overflow: hidden;
  z-index: 1;
}
.portfolio-item:hover{
  transform: scale(1.2);
  z-index: 10;
}
.portfolio-item img {
  display: block;
  width: calc(100% - 16px);
  height: auto;
  margin: 8px;
  position: relative;
  z-index: 1;
  transition: transform 0.75s ease;
}
.portfolio-item:hover img {
  transform:scale(1.3);
  z-index: 10;
}
.portfolio-item .info {
  position: absolute;
  top: -0.5px;
  left: -0.5px;
  background-color: #5bb9ba;
  color: #fff;
  padding: 0.75rem 1rem;
  max-width: 70%;
  font-weight: 600;
  line-height: 1.2;
  border-radius: 0 0 10px 0;
  opacity: 1;
  transition: opacity 0.75s ease;
  z-index: 100;
}
.portfolio-item:hover .info {
  display: none;
  opacity: 0;
  pointer-events: none;
}
.portfolio-item .info ul {
  list-style-type: disc inside;
  margin: 0;
  padding: 0.5rem 0;
}
.portfolio-item .info li {
  margin-left: 1.5rem;
  line-height: 1;
}
.portfolio-item .info .p {
  text-align: center;
}
.portfolio-cta {
  text-align: center;
  padding: 3rem;
}
.portfolio-cta p {
  padding: 1rem 1.5rem;
}
.portfolio .btn {
  display: inline-block;
  padding: 1rem 2rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 10px;
  transition: all 0.3s ease;
  cursor: pointer;
  background-color: #fff;
  color: #5bb9ba;
  border: 2px solid #5bb9ba;
  align-items: center;
}
.btn:hover {
  background: #5bb9ba;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(254, 181, 1, 0.3);
  transform: translateY(-2px);
}

/* Footer */
footer {
  background-color: #FEB501;
  color: #fff;
  padding: 20px 15%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  overflow: hidden;
  position: relative;
  z-index: 0;
}
footer .contato {
  flex: 0 0 30%;
  min-width: unset;
  max-width: unset;
}
footer .telefone {
  flex: 0 0 50%;
  min-width: unset;
  max-width: unset;
  text-align: center;
}
footer .redes {
  flex: 0 0 15%;
  min-width: unset;
  max-width: unset;
}
footer label {
  display: block;
  font-weight: 100;
  text-align: center;
  margin-top: 40px;
  margin-bottom: 6px;
}
footer input[type="tel"] {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid #fff;
  border-radius: 6px;
  margin-bottom: 8px;
  font-size: 1rem;
  color: #fff;
  background-color: transparent;
}
footer input::placeholder {
  color: #fff;
  font-family: inherit;
  opacity: 1;
}
footer button {
  display: block;
  width: 80%;
  margin: 0 auto 0;
  background: #fff;
  color: #FEB501;
  border: 2px solid #fff;;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  transition: 0.3s ease;
}
footer button:hover {
  background: #FEB501;
  color: #fff;
}
footer .telefone {
    font-weight: 200 !important;
}
footer .telefone h2 {
  margin-top: 1rem;
  line-height: 1.3;
}
footer .telefone h3 {
    font-weight: 200;
    margin-top: -0.2rem;
    font-size: 1.2rem;
}
footer .telefone .email-link {
    color: inherit;
    font-weight: 400;
    text-decoration: underline;
    transition: opacity 0.2s ease;
}
footer .telefone .email-link:hover {
     color: #FEB501; 
}
footer .telefone h4 {
    font-weight: 700;
  margin-top: 0.85rem;
  font-size: 1.2rem;
  line-height: 1.3;
}
footer .telefone .telefone-link {
  color: inherit;
  text-decoration: underline;
  transition: opacity 0.2s ease;
}
footer .telefone .telefone-link:hover {
     color: #FEB501; 
}
footer .telefone h5 {
  font-weight: 200;
  margin-top: -0.2rem;
  line-height: 1.3;
}
footer .telefone h6 {
  margin-top: 1.5rem;
  font-weight: 200;
}
footer .redes h3 {
  font-weight: 700;
  margin-top: 10px;
}
footer .redes p {
    text-align: center;
    font-size: large;
    margin-top: 10px;
}
footer .redes a {
  margin-right: 12px;
  display: inline-block;
}
a.icon-instagram,
a.icon-whatsapp {
  width: 48px;
  height: 48px;
  background-repeat: no-repeat;
  background-size: contain;
}
footer .redes a.icon-instagram {
  background-image: url("../images/instagram_branco.png") !important;
}
footer .redes a.icon-whatsapp {
  background-image: url("../images/whatsapp_branco.png") !important;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-color: transparent;
  border-radius: 0;
  width: 48px;
  height: 48px;
}
footer .redes .images {
    margin-top: 20px;
    width: 100%;
    text-align: center;
}
footer .redes .images img {
    width: 100%;
    max-width: 15rem;
    height: auto;
    display: block;
    margin: 0 auto;

}
#footer-form,
#footer-success {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  transition: opacity 0.3s ease-in-out;
}
footer .form-success {
  min-height: 170px; /* Garante espaço mínimo semelhante ao do formulário */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

body {
  overflow-x: hidden;
}
/* Botão de menu */
.menu-toggle {
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  display: none;
}

/* Menu normal (desktop) */
.nav-menu {
  display: flex;
  gap: 1rem;
}
.nav-menu ul {
  display: flex;
  gap: 20px;
  list-style: none;
}
.nav-menu li a {
  text-decoration: none;
  color: #000;
}

/* Ícones sociais */
.social-icons {
  display: flex;
  gap: 10px;
}

/*Somente para a página portfolio*/
#contato {
  scroll-margin-top: 4rem;
}
#contato.hero {
  min-height: auto;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem !important;
}
#contato .hero-contact-wrapper {
  padding-top: 1rem !important;
  padding-bottom: 1rem !important;
}
#contato .form-simulador {
  filter: none   !important;
  opacity: 1     !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important; /* opcional, só pra destacar */
}
/* Somente para a página energia solar*/
/** Hero **/
#energia-solar.hero {
  min-height: 0;
  padding: 5rem;
}
#energia-solar .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
#energia-solar .hero-wrapper {
  display: grid;
  align-items: center;
  flex: 1;
  padding: 0 !important;
  margin: 0 !important;
  gap: 0 !important;
}
#energia-solar .hero-text {
  margin: 0;
}
#energia-solar .about-image {
  flex: 1;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 
    0 10px 30px rgba(0, 0, 0, 0.3),
    0 4px 15px rgba(0, 0, 0, 0.2);
  z-index: 1;
  display: flex;
  justify-content: center;
}
#energia-solar .about-image img {
  display: block;
  width: 75%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
  transform: scale(1.5);
}
/** Como funciona **/
.como-funciona {
  padding: 3rem 0 0.5rem 0 ;
  background: #f8f9fa;
}
.etapas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
  position: relative;
}
.etapa-card {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
  position: relative;
}
.etapa-card:hover {
  transform: translateY(-5px);
}
.etapa-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #5bb9ba;
}
.etapa-card h3 {
  font-size: 1.2rem;
  color: #333;
  margin-bottom: 0.5rem;
}
.etapa-card p {
  font-size: 0.95rem;
  color: #666;
}
.comparativo-contas {
  text-align: center;
}
.comparativo-contas h3 {
  font-size: 1.8rem;
  color: #5bb9ba;
  margin-bottom: 2rem;
}
.contas-luz {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}
.conta {
  background: white;
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  width: 280px;
}
.conta h4 {
  color: #333;
  margin-bottom: 1rem;
}
.conta img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}
.cta-como-funciona {
  text-align: center;
  margin: 4rem 0;
}
/** Portfolio - energia solar **/
.portfolio-avaliacoes {
  padding: 2rem 2rem 2rem;
  text-align: center;
  background-color: #FEB501;
  color: white;
}
.portfolio-avaliacoes h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
}
.portfolio-preview {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}
.portfolio-preview img {
  width: 300px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}
.portfolio-content{
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1rem;
}
.avaliacoes-cards {
  display: flex;
  gap: 2rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin: 3rem auto;
  max-width: 2000px;
}
.avaliacao-card {
  background: white;
  color: #5bb9ba;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  width: 100%;
}
.avaliacao-texto {
  font-size: 0.95rem;
  font-weight: 400;
  margin-bottom: 1rem;
}
.avaliacao-nome {
  font-weight: 600;
  color: #333;
}
.nome {
  color: #FEB501;
  text-decoration: none;
}
.nome:hover {
  text-decoration: underline;
}
.nome-estrelas, .avaliacao-nome {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  margin-bottom: 1rem;
}
.estrelas {
  color: #5bb9ba;
  font-size: 1.5rem;
}
.cta-portfolio {
  margin-top: 2rem;
}
.btn-laranja-inverso {
  background-color: #fff;
  color: #FEB501;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s ease;
}
.btn-laranja-inverso:hover {
  background-color: #FEB501;
  color: white;
  border: white solid 2px;
}

/* Somente para a página do blog */
.posts {
  padding: 4rem 1rem;
  background-color: white;
}
.post-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.post-card {
  display: block;
  background-color: white;
  padding: 1.5rem;
  border-radius: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  color: white;
  border: 2px solid #5bb9ba;
}
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}
.post-card h3 {
  margin: 0 0 0.5rem;
  color: #5bb9ba;
  font-size: 1.5rem;
  text-decoration: none;
}
.post-card:hover h3 {
  text-decoration: underline;
}
.post-card a {
  display: block;
  text-decoration: none;
  color: inherit;
}
.post-card p {
  margin: 0;
  font-size: 1.5;
  color: #5bb9ba;
  line-height: 1.5;
}
.pagination {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}
.pagination button {
  padding: 0.5rem 1rem;
  background-color: #f0f9fa;
  border: 1px solid #ccc;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s ease;
}
.pagination button.active {
  background-color: #5bb9ba;
  color: white;
  border-color: #5bb9ba;
}
.post-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 0;
}
.post-content {
  display: block;
  text-align: justify;
  max-width: 1000px;
}
.post-content ul {
  padding-left: 1.5rem;
  list-style: none;
}
.post-content ul li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
}
.post-content ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0.1rem;
  color: #5bb9ba; /* Verde azulado da Mavo */
  font-weight: bold;
  font-size: 0.9rem;
}
.post-container h1 {
  text-align: center;
  font-size: 48px;
}
.post-container .post-date {
  text-align: right;
}
.post-content h2,
.post-content h3 {
  padding-top: 2rem;
}
.post-content .post-image {
  display: block;
  max-height: 50vh;
  margin: 2rem auto;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.eletrica .container {
  padding: 3rem;
}
.eletrica h1 {
  text-align: center;
  font-size: 45px;
  line-height: 1.1;
  padding-bottom: 1rem;
}
.eletrica p {
  text-align: justify;
}
.eletrica h2 {
  padding-top: 2rem;
}
.descricao {
  text-align: center !important;
  margin: 0 auto;
  font-size: 24px;
}
.hero-eletrica {
  background-image: url("../images/obra.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
}
.cards-servicos {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
  margin-top: 2rem;
}
.cards-row {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}
.card-servico {
  background-color: #f8f8f8;
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  width: 280px;
  max-width: 100%;
  text-align: left;
}
.card-servico:hover {
  transform: translateY(-5px);
}
.card-servico h3 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
  color: #5bb9ba;
}
.card-vazio {
  visibility: hidden;
  pointer-events: none;
}

/* Quebra para mobile: empilha, com texto em cima */
@media (max-width: 768px) {
}

/* Responsive Design */
/* Tablet e iPad (até 1024px): empilha hero */
@media (max-width: 1024px) {
  :root{
      --header-height: 12vh;
  }
  
  .hero-wrapper {
      grid-template-columns: 1fr;
      grid-template-areas:
        "text"
        "cards"
        "buttons";
      text-align: center;
      max-width: 90%;
  }
  
  .hero-text {
      text-align: center;
  }
  
  .hero-buttons {
      justify-content: center;
  }
  
  .hero-cards {
      margin: 1rem 0;
      align-items: center;
  }
  footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 1rem;
  }
  /* cada bloco ocupa 100% da largura e ganha espaçamento */
  footer .contato,
  footer .telefone,
  footer .redes {
    flex: none;
    width: 100%;
    margin-bottom: 1.5rem;
  }
  /* ajustes de tipografia para empilhar melhor */
  footer .telefone h2,
  footer .telefone h3,
  footer .telefone h4,
  footer .telefone h5 {
    margin: 0.25rem 0;
    line-height: 1.3;
  }
  /* centraliza ícones com margem menor */
  footer .redes a {
    margin: 0 0.5rem;
  }
}

/* Mobile (até 768px) */
@media (max-width: 768px) {
  :root {
    --header-height: 15vh;
  }

  /* Header e posicionamento do menu */
  .main-header {
    height: var(--header-height);
    position: relative;
  }
  .main-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between; /* logo à esquerda, botão à direita */
    padding: 0 1rem;
  }
  .logo-img {
    display: block !important;
    height: 9vh !important;
  }
  .main-header .menu-toggle {
    display: block;
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #000;
  }
  .dropdown-menu {
    position: absolute;
    top: 5px;
    right: 10px;
  }

  /* Nav menu */
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    background-color: #fff;
    flex-direction: column;
    padding: 1rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    z-index: 1000;
  }
  .nav-menu.active {
    display: flex;
  }
  .nav-menu ul {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }
  .nav-menu ul li {
    width: 100%;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
  }
  .nav-menu .social-icons {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
  }

  /* Hero */
  .hero {
    background-attachment: scroll;
    background-size: auto 100%;
    background-position: center top;
    padding: 2rem 0 2rem;
  }
  .hero-wrapper {
    width: 95%;
    margin: 0 auto;
    text-align: center;
  }
  .hero-text {
    text-align: center;
  }
  .hero-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }
  .hero-subtitle {
    font-size: clamp(0.9rem, 3vw, 1.1rem);
  }
  .hero-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
  }
  .hero-contact-wrapper {
    flex-direction: column;
    text-align: center;
  }
  .hero-contact-wrapper .form-simulador {
    max-width: 100%;
  }

  /* Cards flutuantes */
  @keyframes floatMobile {
    0%, 100% { transform: translateY(0); }
    50%     { transform: translateY(-10px); }
  }
  .hero-cards {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    position: relative;
  }
  .floating-card {
    animation: floatMobile 8s ease-in-out infinite;
  }

  /* Grades e filtros */
  .about-content,
  .contact-content,
  .services-grid {
    display: grid;
    grid-template-columns: 1fr;
  }
  .stats,
  .portfolio-filters {
    display: flex;
    justify-content: center;
  }
  .filter-btn {
    font-size: 0.9rem;
    padding: 0.6rem 1.2rem;
  }

  /* FAQ */
  .faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  .faq-item {
    width: 100%;
  }

  footer {
    padding: 1.5rem 1rem;
    font-size: 1.2rem;
  }

  #contato.hero {
  min-height: auto;
  padding-top: calc(var(--header-height) - 2.5rem) !important;
  padding-bottom: 1.5rem !important;
  }
  header.main-header {
    position: sticky;
    top: 0;
    z-index: 1000;
  }
  .hero-contact-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    padding: 0;
  }
  #contato .form-simulador {
    width: 100%;
    max-width: none;
  }
  .hero-contact-text h1 {
    font-size: 1.8rem;  /* talvez diminuir um pouco */
    margin-bottom: .5rem;
  }
  .hero-contact-text p {
    font-size: 1rem;
    margin-bottom: 1rem;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .portfolio-item {
    border: 4px solid #5bb9ba;
    overflow: visible;
    padding: 0;
  }
  .portfolio-item img {
    width: 100%;
    margin: 0;
    display: block;
    border-radius: 0;
  }
  .portfolio-item .info {
    position: static;
    background: #5bb9ba;
    color: #fff;
    border-radius: 0px;
    max-width: 100%;
    line-height: 1.4;
  }
  .portfolio-item .info ul {
    list-style: disc inside;
    margin: 0.5rem 0 0 0;
    padding: 0;
  }
  .portfolio-item .info li {
    margin-left: 1rem;
    margin-bottom: 0.25rem;
  }
  .portfolio-item:hover img {
    transform: none !important;
  }

  #energia-solar.hero {
    display: flex !important;
    flex-direction: column;
    text-align: center;
    align-items: center;
    padding: 0rem 0 !important;
    gap: 1rem !important;
    justify-content: center;
  }
  #energia-solar .about-image {
    margin-top: 0.1rem;
    margin-bottom: 2rem;
  }
  #energia-solar .container {
    display: grid !important;
    flex-direction: column;
    align-items: center;
    width: 100%;
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
    padding: 2rem;
    justify-content: center;
  }
  #energia-solar .about-image {
    width: 100% !important;
    margin: 0 auto !important;
  }
 #energia-solar .hero-wrapper {
    width: 100%;
    margin: 0 auto;
    text-align: center;
    display: grid !important;
    grid-template-columns: 1fr !important;     /* só uma coluna */
    gap: 1rem !important;                       /* espaço entre texto e imagem */
    padding: 0 1rem !important;                 /* folga igual esquerda/direita */
    margin: 0 auto !important;                  /* centra o bloco */
    max-width: 1200px;                          /* mesmo max-width do desktop */
  }

  /* 2) Hero-text: full width mas sem padding extra que cause overflow */
  #energia-solar .hero-text {
    width: 100% !important;                     /* ocupa 100% do column */
    box-sizing: border-box !important;          /* padding não aumenta a largura */
    padding: 0 !important;                      /* zera padding interno */
    margin: 0 !important;                       /* zera margens externas */
    text-align: center;                         /* se quiser o texto central */
  }

  .post-container h1 {
    text-align: center;
    font-size: 36px;
    line-height: 1.2;
  }
}

/* Mobile extra (até 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-wrapper {
        width: 100%;
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: clamp(1.5rem, 7vw, 2rem);
    }
    
    .hero-subtitle {
        font-size: clamp(0.8rem, 4vw, 1rem);
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }
    
    .floating-card {
        padding: 1rem;
        gap: 0.8rem;
    }
    
    .card-icon {
        width: 60px;
        height: 45px;
        font-size: 1.5rem;
    }
    
    .card-text h4 {
        font-size: 1rem;
    }
    
    .card-text p {
        font-size: 0.9rem;
    }
  footer {
    padding: 1rem 0.5rem;
    font-size: 1rem;
  }
  footer .contato,
  footer .telefone,
  footer .redes {
    margin-bottom: 1rem;
  }
}

/* --- Corrige ordem no desktop --- */
@media (min-width: 1025px) {
  .main-header .menu-toggle {
    display: none !important;
  }
  .main-header .logo {
    order: 0 !important;   /* primeiro elemento visível */
  }
  .main-header .nav-menu {
    display: flex;         /* garante que o menu esteja visível */
    order: 1 !important;   /* segundo elemento visível */
  }
}

.whatsapp-fixo {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  width: 60px;
  height: 60px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  border-radius: 50%;
  overflow: hidden;
}

.whatsapp-fixo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-next {
  margin-top: 2rem;
  text-align: center;
}

.btn-next-post {
  display: inline-block;
  background-color: white;
  color: #000;
  padding: 0.75rem 1.5rem;
  border: 3px solid #5bb9ba;
  border-radius: 5px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.btn-next-post:hover {
  background-color: #5bb9ba;
  color: white;
}
