:root{--blue:#19a43a;--blue-dark:#087b28;--green:#0757a6;--green-dark:#06366b;--navy:#087b28;--text:#17202a;--muted:#64748b}*{box-sizing:border-box}html{scroll-behavior:smooth}body{font-family:Montserrat,sans-serif;color:var(--text);background:#fff}.topbar{background:#fff;font-size:12px;padding:9px 0;color:var(--blue);border-bottom:1px solid #edf1f5}.main-nav{background:#fff;border-bottom:1px solid #e5eaf0;box-shadow:0 3px 15px rgba(0,0,0,.04)}.navbar-brand img{width:205px;height:76px;object-fit:contain}.nav-link{font-size:14px;font-weight:700;text-transform:uppercase;color:var(--blue)!important;padding:28px 9px!important;transition:.2s}.nav-link:hover,.nav-link.active{color:var(--green)!important}.hero-slider{overflow:hidden}.hero-slide{min-height:590px;background-position:center;background-size:cover;position:relative}.hero-slide.active{animation:heroZoom 7s ease-in-out both}.hero-overlay{position:absolute;inset:0;background:linear-gradient(90deg,rgba(8,123,40,.94),rgba(25,164,58,.78) 48%,rgba(25,164,58,.30));}.hero-content{position:relative;z-index:2;min-height:590px;display:flex;align-items:center}.hero-copy{max-width:780px;color:#fff;padding-top:20px}.hero-kicker{display:inline-block;font-size:13px;font-weight:800;letter-spacing:2px;margin-bottom:16px;color:#dcecff}.hero h1{font-family:Poppins,sans-serif;font-size:56px;line-height:1.1;color:#fff;font-weight:700;margin-bottom:20px}.hero p{color:#fff;font-size:19px;max-width:720px;margin-bottom:28px}.btn{font-weight:700;letter-spacing:.2px;border-radius:5px}.btn-blue{background:var(--blue);color:#fff;border:1px solid var(--blue);padding:12px 24px}.btn-blue:hover{background:var(--blue-dark);border-color:var(--blue-dark);color:#fff}.btn-outline-light2{background:transparent;color:#fff;border:1px solid #fff;padding:12px 24px}.btn-outline-light2:hover{background:#fff;color:var(--blue)}.carousel-control-prev,.carousel-control-next{width:7%}.feature-section{position:relative;margin-top:-65px;z-index:5}.feature-strip{background:#fff;border-radius:8px;overflow:hidden}.feature-card{padding:28px 20px;text-align:center;border-right:1px solid #e7ebef!important}.feature-card:last-child{border-right:0!important}.feature-card h6{font-size:15px;color:var(--blue);font-weight:800}.feature-card p{font-size:12px;color:#64748b;margin:0}.icon{width:54px;height:54px;border:1px solid var(--green);border-radius:50%;display:grid;place-items:center;color:var(--green);margin:0 auto 15px;font-size:20px}.section{padding:78px 0}.section-title{text-align:center;margin-bottom:42px}.section-title h2{font-family:Poppins;font-weight:700;color:var(--blue-dark);font-size:34px}.section-title .line{width:60px;height:4px;background:var(--green);margin:14px auto}.eyebrow{font-size:12px;font-weight:800;letter-spacing:2px;color:var(--green);text-transform:uppercase}.service-carousel{padding:0 45px}.service-card,.product-card,.project-card,.news-card,.team-card,.testimonial{border:1px solid #e3e7ea;border-radius:8px;background:#fff;height:100%;transition:.25s;overflow:hidden}.service-card:hover,.product-card:hover,.project-card:hover,.news-card:hover{transform:translateY(-5px);box-shadow:0 12px 30px rgba(25,164,58,.12)}.service-card{padding:28px}.featured-service{border-top:4px solid var(--blue)}.service-icon{width:55px;height:55px;border-radius:10px;background:#e8f6ec;color:var(--blue);display:grid;place-items:center;font-size:25px}.service-card h5{color:var(--blue-dark);font-weight:800}.service-card p{color:#5c6773;line-height:1.7}.service-link{font-size:12px;font-weight:800;color:var(--blue);text-decoration:none}.service-link:hover{color:var(--green)}.service-control{width:35px;background:var(--blue);height:44px;top:45%;margin-top:-22px;border-radius:5px;opacity:1}.service-control.carousel-control-prev{left:0}.service-control.carousel-control-next{right:0}.page-head{background:linear-gradient(90deg,rgba(8,123,40,.96),rgba(25,164,58,.84)),url('../images/projetos/agua.jpg') center/cover;padding:65px 0;color:#fff}.page-head h1{font-family:Poppins;font-weight:700;font-size:40px}.page-head small{color:#d6e7fa}.card-img{height:210px;width:100%;object-fit:cover}.news-featured .card-img{height:260px}.news-card h5{color:var(--blue-dark);font-weight:800}.news-card p{color:#5c6773}.news-date{color:var(--green);font-weight:700}.product-img{height:180px;object-fit:cover;background:#f2f3f4}.gallery-img{height:220px;width:100%;object-fit:cover;border-radius:7px}.footer{background:#063b20;color:#dfe8ef;border-top:4px solid var(--green);padding:55px 0 0}.footer-logo{width:180px;background:#fff;padding:3px;border-radius:5px;margin-bottom:15px}.footer h6{color:#fff;font-weight:700;margin-bottom:18px}.footer a{display:block;color:#dfe8ef;text-decoration:none;font-size:13px;margin-bottom:10px}.footer a:hover{color:#0b8a9e}.social i{margin-right:12px}.copyright{border-top:1px solid #174b2a;margin-top:35px;padding:18px 0;font-size:11px}.whatsapp{position:fixed;right:22px;bottom:20px;background:#25d366;color:#fff;width:52px;height:52px;border-radius:50%;display:grid;place-items:center;font-size:28px;z-index:1000;text-decoration:none;box-shadow:0 6px 18px rgba(0,0,0,.2)}.about-img{width:100%;height:360px;object-fit:cover;border-radius:8px}/* Interactive statistics bar: static until mouse/keyboard interaction */
.statbar{background:var(--navy);color:#fff;padding:22px 0}
.statbar-row{align-items:stretch}
.stat-item{height:100%;padding:14px 18px;border:1px solid transparent;border-radius:10px;cursor:pointer;transition:transform .25s ease,background-color .25s ease,box-shadow .25s ease,border-color .25s ease}
.stat-item strong{font-size:30px;line-height:1.1;display:block;color:#fff;font-weight:800;transition:color .25s ease,transform .25s ease}
.stat-item small{color:#dce8f3;font-size:14px;display:block;margin-top:8px;transition:color .25s ease}
.stat-item:hover,.stat-item:focus-visible{transform:translateY(-5px);background:rgba(255,255,255,.10);border-color:rgba(255,255,255,.32);box-shadow:0 10px 24px rgba(0,0,0,.16);outline:none}
.stat-item:hover strong,.stat-item:focus-visible strong{color:#fff;transform:scale(1.06)}
.stat-item:hover small,.stat-item:focus-visible small{color:#fff}
.stat-item::after{content:"";display:block;width:0;height:3px;margin:9px auto 0;background:var(--green);border-radius:3px;transition:width .25s ease}
.stat-item:hover::after,.stat-item:focus-visible::after{width:38px}.form-control,.form-select{border-radius:5px;padding:12px;border-color:#d8e0e8}.form-control:focus,.form-select:focus{border-color:var(--blue);box-shadow:0 0 0 .2rem rgba(25,164,58,.12)}.testimonial{padding:28px}.stars{color:#f5b400}.career-callout{background:linear-gradient(100deg,var(--blue-dark),var(--blue));border-radius:10px;color:#fff;padding:32px 38px;display:flex;justify-content:space-between;align-items:center;gap:25px}.career-callout h3{font-family:Poppins;margin-bottom:8px}.career-card{border:1px solid #dfe6ed;border-radius:10px;padding:28px;background:#fff;height:100%;box-shadow:0 5px 20px rgba(0,0,0,.04)}.career-card h3{color:var(--blue-dark);font-weight:800}.career-top{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:15px}.career-top span{background:#e8f6ec;color:var(--blue);font-size:11px;font-weight:800;padding:6px 10px;border-radius:30px}.career-form-wrap{background:#f7fafc;border:1px solid #e1e8ef;border-radius:10px;padding:35px}.empty-state{text-align:center;padding:45px;background:#f7fafc;border-radius:10px}.news-highlight .news-card{height:100%}@keyframes heroZoom{0%{background-size:100% 100%;transform:scale(1)}50%{background-size:108% 108%;transform:scale(1.01)}100%{background-size:100% 100%;transform:scale(1)}}@media(max-width:991px){.nav-link{padding:12px!important}.navbar-brand img{width:175px;height:65px}.hero h1{font-size:40px}.hero-slide,.hero-content{min-height:510px}.topbar{display:none}.feature-section{margin-top:-30px}.feature-card{border-right:0!important;border-bottom:1px solid #e7ebef!important}.service-carousel{padding:0}.service-control{display:none}.career-callout{flex-direction:column;align-items:flex-start}}@media(max-width:575px){.hero h1{font-size:34px}.hero p{font-size:16px}.section{padding:58px 0}.section-title h2{font-size:28px}.hero-copy{padding:20px}.hero-content{min-height:500px}.news-featured .card-img{height:210px}}

/* Global brand color swap: BLUE <-> GREEN */
.btn-green{background:var(--green);color:#fff;border:1px solid var(--green);padding:12px 24px}.btn-green:hover{background:var(--green-dark);border-color:var(--green-dark);color:#fff}.btn-blue{background:var(--blue);color:#fff;border-color:var(--blue)}.btn-blue:hover{background:var(--blue-dark);border-color:var(--blue-dark);color:#fff}.text-primary{color:var(--green)!important}.bg-primary{background-color:var(--green)!important}.border-primary{border-color:var(--green)!important}.link-primary{color:var(--green)!important}

/* Bootstrap/theme colors follow the same global BLUE <-> GREEN swap */
.text-success{color:var(--blue)!important}.bg-success{background-color:var(--blue)!important}.border-success{border-color:var(--blue)!important}.alert-info{border-color:#b8ddc2;color:#0757a6;background:#eef9f1}


/* V8 professional refinements */
/* Quality / Trust / Innovation / Commitment icons: static by default, animated only on mouse over */
.feature-card .icon{
  border-color:var(--green);
  color:var(--green);
  transition:transform .35s ease, box-shadow .35s ease, background-color .35s ease;
}
.feature-card:hover .icon{
  transform:translateY(-6px) scale(1.08) rotate(3deg);
  box-shadow:0 8px 20px rgba(7,87,166,.18);
  background:#f4f9ff;
}
.feature-card:hover .icon i{
  animation:featureIconAction .65s ease both;
}
@keyframes featureIconAction{
  0%{transform:scale(1) rotate(0)}
  45%{transform:scale(1.18) rotate(-8deg)}
  100%{transform:scale(1) rotate(0)}
}

.news-card .card-img,.news-highlight .news-card .card-img{height:260px;width:100%;object-fit:cover;object-position:center;display:block}
.news-highlight .news-card{display:flex;flex-direction:column}.news-highlight .news-card>div{flex:1}


/* Equipa: cartões centralizados abaixo do título da secção */
.team-grid{
  justify-content:center;
}
.team-grid > [class*="col-"]{
  display:flex;
  justify-content:center;
}
.team-grid .team-card{
  width:100%;
  max-width:220px;
}
.team-grid .team-photo-placeholder{
  margin-left:auto;
  margin-right:auto;
}

/* Fotografias da equipa: moldura classica, dimensao uniforme e preenchimento total. */
.team-card{overflow:hidden}
.team-photo-placeholder{
  height:200px;
  width:100%;
  background:#f4f4f4;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  padding:0;
  border:2px solid #8f969d;
  border-radius:4px;
  box-shadow:inset 0 0 0 2px #ffffff;
}
.team-photo-placeholder .card-img{
  width:100%;
  height:100% !important;
  max-width:none;
  max-height:none;
  object-fit:cover !important;
  object-position:center center !important;
  background:#f4f4f4;
  display:block;
  padding:0;
  border:0;
  border-radius:0;
}
.team-photo-placeholder:empty:before{content:'Fotografia do membro';color:#7b8794;font-size:13px;font-weight:700}
.team-photo-placeholder img[src='']{display:none}
.team-card .p-3{min-height:190px;padding-left:14px;padding-right:14px}

.service-card .service-image{height:210px;width:100%;object-fit:cover;display:block;border-radius:8px;margin-bottom:20px}
.service-card.has-image{padding:0}.service-card.has-image .service-body{padding:0 24px 24px}
.service-card.has-image .service-icon{margin:0 24px 18px;transform:translateY(-16px);border:4px solid #fff}
.product-img{height:220px;object-fit:cover}.project-card .card-img{height:250px;object-fit:cover}.gallery-img{height:220px;width:100%;object-fit:cover;border-radius:8px}
.career-card{transition:.25s}.career-card:hover{transform:translateY(-4px);box-shadow:0 14px 30px rgba(0,0,0,.08)}
.career-apply-panel{display:none;margin-top:28px}.career-apply-panel.is-visible{display:block;animation:careerReveal .35s ease both}@keyframes careerReveal{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:575px){.news-card .card-img,.news-highlight .news-card .card-img{height:220px}.team-photo-placeholder{height:150px}.team-grid .team-card{max-width:190px}.service-card .service-image{height:190px}}


.produto-card{
    display:block;
    transition:.3s;
}

.produto-card:hover{
    transform:translateY(-8px);
}

.produto-card img{
    height:240px;
    object-fit:cover;
    border-radius:10px 10px 0 0;
}

.banner-page.produtos-banner{
    background:#0B7A3E;
    color:#fff;
    padding:60px 0;
}


/* CORREÇÃO DAS IMAGENS DOS PRODUTOS */
.produto-card .card-img-top{
    width:100%;
    height:240px;
    object-fit:cover;
    object-position:center;
    display:block;
    background:#f5f5f5;
}

/* Efeito de mouse over igual ao dos cartões da página de projetos */
.service-card:hover,
.produto-card:hover,
.project-card:hover,
.news-card:hover,
.team-card:hover,
.testimonial:hover,
.career-card:hover,
.feature-card:hover,
.card.h-100:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(25, 164, 58, .12);
}

.service-card,
.produto-card,
.project-card,
.news-card,
.team-card,
.testimonial,
.career-card,
.feature-card,
.card.h-100 {
    transition: transform .25s ease, box-shadow .25s ease;
}

/* Newsletter and career detail */
.newsletter-card{background:#fff;border:1px solid #dfe7ec;border-radius:12px;padding:38px;box-shadow:0 8px 24px rgba(0,0,0,.05)}
.newsletter-card h2{font-family:Poppins,sans-serif;font-weight:800;color:var(--blue-dark)}
.newsletter-form .form-text{display:block;margin-top:8px;color:#6c7782}
.newsletter-page-card{max-width:850px}
.career-detail-card,.career-side-card{background:#fff;border:1px solid #dfe7ec;border-radius:12px;padding:36px;box-shadow:0 8px 24px rgba(0,0,0,.05)}
.career-detail-card h2{color:var(--blue-dark);font-weight:800;margin-bottom:18px}
.career-detail-card h5{font-weight:800;color:var(--blue-dark);margin-top:28px}
.career-side-card{position:sticky;top:90px;background:#f7fafc}
.career-side-card h4{color:var(--blue-dark);font-weight:800;margin:10px 0}
@media(max-width:767px){.newsletter-card,.career-detail-card,.career-side-card,.career-form-wrap{padding:24px}.career-side-card{position:static}}

/* Cartões de projetos e serviços com o mesmo padrão visual dos produtos */
.produto-card .card-img-top {
    width: 100%;
    height: 220px;
    object-fit: cover;
    object-position: center;
    display: block;
}

.produto-card .card-body {
    min-height: 180px;
}

.produto-card .card-footer {
    padding: 0 20px 20px;
}

.detail-product-image {
    width: 100%;
    height: 430px;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
    display: block;
}

@media (max-width: 575px) {
    .produto-card .card-img-top {
        height: 200px;
    }
    .detail-product-image {
        height: 280px;
    }
}

/* Página de confirmação dos formulários */
.confirmation-page {
    padding: 72px 0 90px;
}

.confirmation-card {
    max-width: 880px;
    margin: 0 auto;
    padding: 56px 48px;
    text-align: center;
    background: #ffffff;
    border: 1px solid #dfe7ec;
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
}

.confirmation-icon {
    width: 76px;
    height: 76px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #19a43a;
    color: #ffffff;
    font-size: 46px;
    line-height: 1;
    font-weight: 700;
}

.confirmation-card h1 {
    margin-bottom: 18px;
}

.confirmation-lead {
    max-width: 700px;
    margin: 0 auto 30px;
    font-size: 18px;
    line-height: 1.7;
}

.confirmation-details {
    max-width: 700px;
    margin: 0 auto 30px;
    padding: 24px 28px;
    text-align: left;
    background: #eef8f0;
    border: 1px solid #b8dfc0;
    border-radius: 12px;
}

.confirmation-details h3 {
    margin-bottom: 10px;
}

.confirmation-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

@media (max-width: 767.98px) {
    .confirmation-card {
        padding: 40px 22px;
    }

    .confirmation-page {
        padding: 44px 0 64px;
    }
}


/* Pesquisa global no navbar */
.navbar-search{display:flex;align-items:center;max-width:220px;width:100%;background:#fff;border:1px solid #dbe3ea;border-radius:7px;overflow:hidden;box-shadow:0 2px 8px rgba(0,0,0,.04)}
.navbar-search input{flex:1;min-width:0;border:0;outline:0;padding:10px 12px;font-size:13px;color:var(--text);background:#fff}
.navbar-search input::placeholder{color:#7a8794}
.navbar-search button{width:42px;height:42px;border:0;background:var(--blue);color:#fff;display:grid;place-items:center;cursor:pointer;transition:.2s}
.navbar-search button:hover{background:var(--blue-dark)}
.search-section{padding:65px 0 80px}
.search-results-heading{margin-bottom:28px}
.search-result-card{height:100%;border:1px solid #e3e7ea;border-radius:8px;background:#fff;overflow:hidden;transition:.25s;box-shadow:0 4px 16px rgba(0,0,0,.04)}
.search-result-card:hover{transform:translateY(-5px);box-shadow:0 12px 30px rgba(25,164,58,.12)}
.search-result-card img{width:100%;height:210px;object-fit:cover;object-position:center;display:block;background:#f3f5f7}
.search-result-body{padding:20px}
.search-result-type{font-size:11px;font-weight:800;text-transform:uppercase;color:var(--green);letter-spacing:1px}
.search-result-body h3{font-family:Poppins,sans-serif;font-size:21px;font-weight:700;color:var(--blue-dark);margin:7px 0 10px}
.search-result-body p{margin:0 0 16px;color:#5c6773;line-height:1.65}
.search-result-link{display:inline-block;font-size:12px;font-weight:800;color:var(--blue);text-decoration:none}
.search-result-link:hover{color:var(--green)}
.search-empty{padding:45px 25px;background:#f7fafc;border:1px solid #e1e8ef;border-radius:10px;text-align:center}
@media(max-width:991px){.navbar-search{max-width:none;margin-left:0!important;margin-bottom:10px}.navbar-search input{padding:9px 12px}.navbar-search button{height:40px}}

/* Estrutura profissional da página Sobre Nós */
.about-intro-section{padding-top:72px;padding-bottom:72px}
.about-intro-card{display:grid;grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr);gap:52px;align-items:center;background:#fff;border:1px solid #e3e7ea;border-radius:14px;padding:28px;box-shadow:0 10px 28px rgba(0,0,0,.06)}
.about-intro-image{min-height:420px;overflow:hidden;border-radius:10px;background:#eef2f4}
.about-intro-image img{display:block;width:100%;height:100%;min-height:420px;object-fit:cover;object-position:center}
.about-intro-content{padding:12px 16px 12px 0}
.about-intro-content h2{font-family:Poppins,sans-serif;font-size:34px;line-height:1.2;color:var(--blue-dark);font-weight:700;margin:10px 0 22px}
.about-intro-content p{color:#52606d;line-height:1.8;margin-bottom:16px}
.about-cta{margin-top:10px}
.about-pillars-section{padding-top:70px;padding-bottom:70px}
.about-pillars-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.about-pillar-card{background:#fff;border:1px solid #e3e7ea;border-radius:12px;padding:28px;box-shadow:0 8px 22px rgba(0,0,0,.05);height:100%;transition:transform .25s ease,box-shadow .25s ease}
.about-pillar-card:hover{transform:translateY(-5px);box-shadow:0 12px 30px rgba(25,164,58,.12)}
.about-pillar-icon{width:52px;height:52px;border-radius:50%;display:grid;place-items:center;background:#eef8f1;color:var(--blue);font-size:20px;margin-bottom:16px}
.about-pillar-card h3{font-family:Poppins,sans-serif;color:var(--blue-dark);font-weight:700;margin-bottom:14px}
.about-pillar-card p{color:#5c6773;line-height:1.7;margin:0}
.about-pillar-card ul{margin:0;padding-left:20px;color:#5c6773;line-height:1.65}
.about-pillar-card li{margin-bottom:9px}
.about-team-section{padding-top:78px;padding-bottom:78px}
.team-card-content{min-height:190px}
.about-areas-section{padding-top:70px;padding-bottom:78px}
.about-area-list .list-group-item{border-color:#e3e7ea;background:#fff;color:#4f5d69;padding:14px 16px;line-height:1.5}
@media(max-width:991px){.about-intro-card{grid-template-columns:1fr;gap:28px}.about-intro-image,.about-intro-image img{min-height:320px}.about-intro-content{padding:0 8px 8px}.about-pillars-grid{grid-template-columns:1fr 1fr}}
@media(max-width:767px){.about-intro-card{padding:18px}.about-intro-content h2{font-size:28px}.about-pillars-grid{grid-template-columns:1fr}.about-intro-image,.about-intro-image img{min-height:260px}}


/* Ajustes de consistência visual e cartões */
.about-pillar-card { position: relative; display: flex; flex-direction: column; height: 100%; padding: 28px; }
.about-pillar-card h3 { margin-bottom: 14px; }
.about-pillar-card p, .about-pillar-card ul { margin-bottom: 0; line-height: 1.75; }
.team-grid > [class*="col-"] { display: flex; }
.team-card { width: 100%; display: flex; flex-direction: column; }
.team-card .team-photo-placeholder { flex: 0 0 auto; }
.team-card-content { flex: 1 1 auto; display: flex; flex-direction: column; text-align: left; }
.team-card-content h5 { text-align: center; }
.team-card-content p { text-align: justify; line-height: 1.7; }
.team-card-content small { text-align: center; }
.about-pillars-grid > .about-pillar-card { height: 100%; }
.service-card, .produto-card .card, .project-card .card, .news-card, .career-card { display: flex; flex-direction: column; height: 100%; }
.service-card .card-body, .produto-card .card-body, .project-card .card-body, .news-card .card-body, .career-card .card-body { flex: 1 1 auto; }
.produto-card .card-footer, .project-card .card-footer, .service-card .card-footer { margin-top: auto; }
.gallery-card { height: 100%; display: flex; flex-direction: column; }
.gallery-card .gallery-card-body { flex: 1 1 auto; display: flex; flex-direction: column; }
.gallery-card .gallery-card-body .btn { margin-top: auto; }
.gallery-detail-image { width: 100%; height: 520px; object-fit: cover; object-position: center; border-radius: 8px; }
.gallery-detail-shell { max-width: 1050px; margin: 0 auto; }
.card-description { line-height: 1.75; color: #56616d; text-align: justify; }
.detail-back { margin-bottom: 24px; }
@media (max-width: 575px) { .gallery-detail-image { height: 320px; } }

.detail-news{max-width:950px}.news-detail-image{width:100%;max-height:480px;object-fit:cover;border-radius:8px}.news-detail-content{font-size:1rem;line-height:1.9}

.team-role{display:block;text-align:center}.about-pillars-grid{align-items:stretch}.about-pillars-grid .about-pillar-card{min-height:100%}.team-grid{align-items:stretch}.search-result-card{height:100%;display:flex;flex-direction:column}.search-result-card .search-result-body{flex:1 1 auto;display:flex;flex-direction:column}.search-result-card .search-result-link{margin-top:auto}

/* Grelhas: todos os cartões de uma linha ficam alinhados pelo cartão mais alto. */
.produto-card{height:100%;display:flex;flex-direction:column}.produto-card .card{width:100%}.produto-card .card-body{display:flex;flex-direction:column}.produto-card .card-body .card-description{flex:1 1 auto}

.service-detail{max-width:1180px}.detail-information{border-top:1px solid #e5eaf0;padding-top:40px}.detail-information>h2{font-family:Poppins,sans-serif;color:var(--blue-dark);font-weight:700;margin-bottom:14px}.detail-info-card{height:100%;padding:26px;border:1px solid #e1e7ec;border-radius:10px;background:#fff;box-shadow:0 6px 20px rgba(0,0,0,.04)}.detail-info-card h3{font-size:19px;color:var(--blue-dark);font-weight:800;margin-bottom:12px}.detail-info-card p{margin:0;color:#56616d;line-height:1.8;text-align:justify}.detail-source-description{color:#64748b;line-height:1.8}.service-detail .detail-product-image{display:block;width:100%;min-height:420px;object-fit:cover;border-radius:10px}


.about-pillars-grid-4{grid-template-columns:repeat(4,minmax(0,1fr))}
.about-philosophy-card{align-items:center}
.about-security-card{display:flex;gap:28px;align-items:flex-start;background:#fff;border:1px solid #e3e7ea;border-radius:12px;padding:28px;box-shadow:0 8px 22px rgba(0,0,0,.05)}
.about-security-card>i{font-size:32px;color:var(--green);flex:0 0 auto;margin-top:4px}
.about-security-card p,.about-code-card p,.about-code-card li{color:#52606d;line-height:1.8}
.about-code-card{background:#fff;border:1px solid #e3e7ea;border-radius:12px;padding:30px;box-shadow:0 8px 22px rgba(0,0,0,.05)}
.about-code-card ul{margin:0;padding-left:22px}
@media(max-width:1199px){.about-pillars-grid-4{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:767px){.about-pillars-grid-4{grid-template-columns:1fr}.about-security-card{flex-direction:column;gap:15px}}

/* Ajuste da secção de filosofia: o conteúdo deve aproveitar toda a largura do cartão. */
.about-philosophy-card{display:block;}
.about-philosophy-card .about-intro-content{width:100%;padding:0;}


/* ==========================================================
   MENU MOBILE - CONTROLO LOCAL
   O menu inicia fechado em smartphones e abre apenas quando
   o utilizador toca no botão dos três traços.
========================================================== */
.main-nav-collapse {
    display: flex;
    align-items: center;
    flex-basis: auto;
}

.mobile-nav-toggle {
    display: none;
}

@media (max-width: 991.98px) {
    .main-nav .container {
        position: relative;
    }

    .mobile-nav-toggle {
        display: block;
        margin-left: auto;
        padding: 8px 10px;
        border: 1px solid #d8e0e8;
        border-radius: 6px;
        background: #fff;
    }

    .main-nav-collapse {
        display: none !important;
        width: 100%;
        flex-basis: 100%;
        margin-top: 10px;
        padding-bottom: 12px;
    }

    .main-nav-collapse.is-open {
        display: block !important;
    }

    .main-nav-collapse .navbar-nav {
        width: 100%;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .main-nav-collapse .nav-item {
        width: 100%;
    }

    .main-nav-collapse .nav-link {
        display: block;
        width: 100%;
        padding: 12px 4px !important;
        border-bottom: 1px solid #eef2f5;
    }

    .main-nav-collapse .navbar-search {
        max-width: none;
        margin-left: 0 !important;
        margin-top: 14px !important;
        margin-bottom: 0 !important;
    }
}

/*
==========================================================
AJUSTE DO CABEÇALHO DESKTOP
O menu mobile existente não é alterado.
==========================================================
*/
@media (min-width: 992px) {
    /* Margens laterais iguais às do logótipo e da pesquisa */
    .main-nav > .container {
        width: calc(100% - 120px);
        max-width: none;
        margin-left: auto;
        margin-right: auto;
        padding-left: 0;
        padding-right: 0;
    }

    .main-nav .navbar-brand {
        flex: 0 0 auto;
        margin-right: 28px;
    }

    .main-nav .navbar-brand img {
        width: 205px;
        height: 76px;
        object-fit: contain;
    }

    .main-nav .main-nav-collapse {
        display: flex !important;
        align-items: center;
        justify-content: flex-end;
        min-width: 0;
    }

    .main-nav .nav-menu-compact {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        margin: 0;
        white-space: nowrap;
    }

    .main-nav .nav-menu-compact .nav-item {
        flex: 0 0 auto;
    }

    .main-nav .nav-menu-compact .nav-link {
        font-size: 13px;
        line-height: 1.2;
        white-space: nowrap;
        padding: 28px 7px !important;
    }

    .main-nav .navbar-search {
        flex: 0 0 275px;
        width: 275px;
        max-width: 275px;
        height: 42px;
        margin-left: 20px !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        align-self: center;
    }

    .main-nav .navbar-search input {
        height: 40px;
    }

    .main-nav .navbar-search button {
        width: 42px;
        height: 42px;
    }
}
