/* =========================================================
   Correcção de CSS
   ========================================================= */

#content, .container-custom {
    width: 100% !important;
    max-width: 100% !important;
    padding:0px !important;
}

.site-header {
    margin-bottom: 0px !important;
}
.thumbnail-single {
    border-bottom: 2px solid #000000;
}


/* =========================================================
   ÁREA DE ATUAÇÃO - Bootstrap 3.4.1
   ========================================================= */

.area-atuacao {
    padding-bottom: 50px;
}

/* HERO */
.area-hero {
    padding: 55px 0;
    margin-bottom: 45px;
    margin-top:0px;
    background-color: #4A3E31;
    color: #ffffff;
}

.area-hero h1 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 38px;
    line-height: 1.2;
    color: #ffffff;
}

.area-hero .area-intro {
    max-width: 800px;
    margin-bottom: 25px;
    font-size: 18px;
    line-height: 1.7;
}

/* SECÇÕES */
.area-section {
    padding: 45px 0;
}

.area-section + .area-section {
    border-top: 0px solid #eeeeee;
}

.area-section:nth-child(odd) {
  background-color: #eeeeee;
}

.area-section:nth-child(even) {
  background: #ffffff;
}

.area-section h2 {
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 30px;
    line-height: 1.3;
}

.area-section h3 {
    margin-top: 20px;
    margin-bottom: 15px;
}

/* BOTÕES */
.area-atuacao .btn-area {
    display: inline-block;
    /* padding: 12px 24px; */
    font-weight: 600;
    text-decoration: none;
    border-radius: 3px;
}

/* CATEGORIAS */
.area-category {
    margin-bottom: 30px;
    text-align: center;
}

.area-category-image {
    margin-bottom: 18px;
    overflow: hidden;
}

.area-category-image img {
    display: block;
    width: 100%;
    max-width:300px;
    height: auto;
    margin: 0 auto;
    object-fit: cover; 
    aspect-ratio: 16 / 9; 
    
}

.area-category h3 {
    margin-top: 0;
    font-size: 21px;
}

.area-category p {
    line-height: 1.6;
}

/* PROCESSO */

/* Centrar as 5 colunas e dar mesma altura */
@media (min-width: 992px) {
    .row-flex-5 {
        display: flex;
        justify-content: center; /* Centra horizontalmente as 5 colunas */
        flex-wrap: wrap;
    }

    /* Cada uma das 5 colunas ocupa exatamente 20% da largura */
    .row-flex-5 > [class*="col-md-"] {
        width: 20%;
        float: none; /* Remove o float do Bootstrap */
        display: flex;
    }
}

/* Garante que todas as caixas têm exatamente a mesma altura e largura */
.step-card {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 10px;
    background: #fff; /* Opcional */
    text-align: center;
}

/* Estilo do círculo do número */
.step-number {
    width: 50px;
    height: 50px;
    line-height: 50px;
    border-radius: 50%;
    background-color: #ededed;
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* LISTAS */
.area-lista {
    padding-left: 20px;
}

.area-lista li {
    margin-bottom: 10px;
}

/* FAQ */
.area-faq {
    margin-bottom: 20px;
}

.area-faq h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.area-faq p {
    line-height: 1.7;
}

/* CTA FINAL */
.area-cta {
    display: flex;
    flex-direction: column;    
    padding: 50px 30px;
    margin-top: 20px;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
}

.area-cta h2 {
    margin-top: 0;
}


/* MOBILE */
@media (max-width: 767px) {

    .area-hero {
        padding: 35px 0;
    }

    .area-hero h1 {
        font-size: 30px;
    }

    .area-hero .area-intro {
        font-size: 16px;
    }

    .area-section {
        padding: 35px 0;
    }

    .area-section h2 {
        font-size: 26px;
    }

}

.content-area {
    margin-top:0px;
    width:100%;
}




/* Contentor dos botões MLE */
.mle-contactos {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin: 28px auto 8px;
    text-align: center;
}

.cta-hero {
    display: flex;
    flex-direction: row;
    justify-content: left !important;
    align-items: left !important;
}


/* Estilo comum */
.mle-contactos .mle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 58px;
    padding: 15px 22px;
    border: 1px solid transparent;
    border-radius: 8px;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.2s ease,
                color 0.2s ease,
                transform 0.2s ease;
}

.mle-contactos .mle-btn i {
    flex-shrink: 0;
    font-size: 30px;
    line-height: 1;
}

.mle-contactos .mle-btn:hover {
    text-decoration: none;
    transform: translateY(-2px);
}

/* Orçamento */
.mle-contactos .mle-btn-orcamento {
    background: #ffffff;
    border-color: #ffffff;
    color: #493c30;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
    text-transform: uppercase;
}

.mle-contactos .mle-btn-orcamento:hover {
    background: #f0e9e0;
    border-color: #f0e9e0;
    color: #493c30;
}

/* Telefone */
.mle-contactos .mle-btn-telefone {
    background: #493c30;
    border-color: rgba(255, 255, 255, 0.65);
    color: #ffffff;
}

.mle-contactos .mle-btn-telefone:hover {
    background: #5b4a3a;
    border-color: #ffffff;
    color: #ffffff;
}

/* WhatsApp */
.mle-contactos .mle-btn-whatsapp {
    background: #20b95a;
    border-color: #20b95a;
    color: #ffffff;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
}

.mle-contactos .mle-btn-whatsapp:hover {
    background: #179b49;
    border-color: #179b49;
    color: #ffffff;
}

/* Foco acessível */
.mle-contactos .mle-btn:focus {
    outline: 2px solid #ffffff;
    outline-offset: 3px;
}

/* Computadores: telefone oculto */
@media (min-width: 768px) {
    .mle-contactos .mle-btn-telefone {
        display: none;
    }
}

/* Telemóveis: todos centrados e empilhados */
@media (max-width: 767px) {
    .mle-contactos {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        margin-top: 22px;
    }

    .mle-contactos .mle-btn {
        display: flex;
        width: 100%;
        max-width: 360px;
        min-height: 54px;
        padding: 14px 18px;
    }

    .mle-contactos .mle-btn-telefone {
        display: flex;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mle-contactos .mle-btn {
        transition: none;
    }

    .mle-contactos .mle-btn:hover {
        transform: none;
    }
}

/**
 Como funciona
*/

.como-funciona-section {
  background-color: #f9f9f9;
  padding: 60px 20px;
  font-family: inherit;
}

.como-funciona-section .container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.como-funciona-section h2 {
  font-size: 2rem;
  color: #333;
  margin-bottom: 50px;
  font-weight: 600;
}

/* Grelha de 5 colunas */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  position: relative;
}

/* Linha conectora de fundo em desktop */
.steps-grid::before {
  content: '';
  position: absolute;
  top: 35px;
  left: 50px;
  right: 50px;
  height: 2px;
  background-color: #e0e0e0;
  z-index: 1;
}

/* Estilo do Cartão */
.step-card {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 30px 20px;
  position: relative;
  z-index: 2;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Efeito Hover Lift (já utilizado no seu design) */
.step-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

/* Círculo do Número do Passo */
.step-number {
  width: 45px;
  height: 45px;
  background-color: #f0f0f0;
  color: #333;
  font-weight: bold;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin: 0 auto 20px auto;
  border: 2px solid #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.step-card h3 {
  font-size: 1.15rem;
  color: #222;
  margin-bottom: 12px;
  font-weight: 600;
}

.step-card p {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.5;
  margin: 0;
}

/* --- RESPONSIVIDADE --- */

@media (max-width: 1024px) {
  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .steps-grid::before {
    display: none; /* Remove a linha em tablets/telemóveis para evitar quebras visuais */
  }
}

@media (max-width: 768px) {
  .steps-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }
}