  :root{
    --rail-w: 55px;                 /* largura da barra esquerda */
    --gutter: 45px;
    --title-size: clamp(20px, 17vw, 10vw);
    --subtitle-size: 14px;
    --fade: 700ms;                  /* fade dos banners */
    /* Loader */
    --loader-size: 80px;
    --beat-speed: 1s;               /* velocidade de cada batimento */
    --beat-time: 3000ms;            /* tempo total a “bater” */
    --blast-time: 600ms;            /* duração da expansão final */
    --vh: 1vh;
  }

  *{ box-sizing: border-box }
  html, body{ height:100%; margin:0 }
  body{ font-family: system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Arial,sans-serif; }

/* ===== SPLASH / LOADER ===== */
.splash{
position: fixed; inset: 0;
display: grid; place-items: center;
background: #fff;            /* fundo branco */
z-index: 9999999999;
overflow: hidden;
}
.splash img{
width: var(--loader-size);
height: auto;
transform-origin: center;
will-change: transform, opacity;
}
@keyframes heartbeat{
0%{transform:scale(1)}
25%{transform:scale(1.1)}
45%{transform:scale(1)}
65%{transform:scale(1.1)}
100%{transform:scale(1)}
}
.heartbeat{ animation: heartbeat var(--beat-speed) ease-in-out infinite }
@keyframes blast{ to{ transform: scale(18); opacity: 0 } }
.blast{ animation: blast var(--blast-time) ease-out forwards }

/* ===== STAGE ===== */
.stage{
position:relative;
min-height:100vh;
overflow:hidden;
background:#000;
}
.credit a{color:#fff!important;text-decoration:none!important;}
.banner{
position:absolute; inset:0;
width:100%; height:100%;
object-fit:cover; object-position:center;
opacity:0; transform: scale(1.02);
transition: opacity var(--fade) ease, transform var(--fade) ease;
}
.banner.show{ opacity:1; transform: scale(1) }

/* ===== Barra esquerda ===== */
.rail{
position:fixed; inset:0 auto 0 0;
width:var(--rail-w);
z-index: 999;
pointer-events:none;
background-color:#ffffff42;
box-shadow: 0px 4px 3px #ccc;
}
.rail-line{
position:absolute; inset:0 auto 0 calc(var(--rail-w) - 2px);
width:2px; background:rgba(255,255,255,.85);
}
.hamburger {
    position: absolute;
    padding: 14px 0!important;
    width: 100%;
    height: 52px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    pointer-events: auto;
    border-bottom: 2px solid #fff;
}
.hamburger span{ height:5px; width:35px;margin:0 auto;border:1px solid #989898; display:block;border-radius: 5px; }
.hamburger:focus-visible{ outline:2px solid #fff; outline-offset:3px }

.logo-stack{
position:absolute; left:0; bottom:0;
width:var(--rail-w);
background:#ffffff00;
display:flex; flex-direction:column; align-items:center; gap:20px;
padding:0 0 70px;
height:auto;
pointer-events:auto;
}
.stack-item{ display:grid; place-items:center; width:55px; height:48px; transition: transform .25s ease }
.stack-item img{ max-width:100%; max-height:100%; display:block; transition: filter .25s ease }
.stack-item:hover,.stack-item:focus-visible{ transform: translateY(-2px) }
.stack-item:hover img,.stack-item:focus-visible img{ filter: drop-shadow(0 2px 0 rgba(0,0,0,.06)) }

/* ===== Header ===== */
header.site{
position:absolute; top:0; left:0; right:0; height:76px;
display:grid; grid-template-columns: var(--rail-w) 1fr var(--rail-w);
align-items:center; z-index:4; pointer-events:none;
}
.site .center{ pointer-events:auto; display:flex; justify-content:center; align-items:center }
.site .center img{ height:46px; width:auto; }

/* ===== Títulos ===== */
.titles{
position:absolute; left:calc(var(--rail-w) + var(--gutter));
bottom: clamp(24px, 6Vh, 84px);
color:#fff; z-index:3;
}
.caption{ font-size: var(--subtitle-size); text-transform: uppercase; letter-spacing:.08em; margin-bottom:8px; opacity:.9 }
.headline{ font-size: var(--title-size); font-weight:800;font-family: sans-serif; line-height:1.03; margin:0; position:relative; display:inline-block }
.headline::after{
content:""; position:absolute; left:0; bottom:-10px; height:3px; width:0; background:#fff; transition: width 450ms ease
}
.logo-stack a.stack-item {
    padding: 25px 0;
}
body.view-modelares .headline.modelares::after{ width: 140px }
body.view-renovacoes .headline.renovacoes::after{ width: 160px }

/* acessibilidade: reduz movimento */
@media (prefers-reduced-motion: reduce){
.heartbeat,.blast{ animation:none !important }
.splash{ display:none !important }
.banner{ opacity:1 !important; transform:none !important }
}
.about--btn {
  writing-mode: vertical-rl;     /* texto na vertical */
  transform: rotate(180deg);     /* faz ler de baixo para cima */
  text-transform: uppercase;
  font-size: 13px;
  color: #000;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  height: auto;
  pointer-events: auto;
  border-top: 1px solid #ccc;
  border-bottom:3px solid #fff;
    padding-top: 30px;
}
.about--btn:hover,
.about--btn:focus-visible {  
  background-color:#204a87;
  transition:background-color 2s, color 1s;
  color: #fff;                   /* assegura que não fica cinza */
  transform: rotate(180deg);     /* mantém a orientação, NÃO MOVES */
}
.about--btn.active,
.about--btn.active:hover,
.about--btn.active:focus,
.about--btn.active:focus-visible {
  background-color:#204a87;
  color:#fff;
  transform: rotate(180deg); /* mantém a orientação */
}

h1 {
-webkit-text-stroke: 4px #fff;
color: transparent;
font-size: 26vh;
}
.stack-item img {
    max-height: 50px;
}

/* ===== ABOUT SECTION ===== */
.about {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #204a87;
  color: #fff;
  overflow: hidden;
  padding: 14vh 100px 14vh 155px;
}
.casas-modulares h2,
.casas-modulares p,
.casas-modulares span {
  color: #204a87 !important;
}
.casas-modulares {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fcfcfc;
  color: #204a87;
  overflow: hidden;
  padding: 14vh 100px 12vh 155px;
}
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  align-items: center;
  max-width: 1500px;
  width: 100%;
  position: relative;
  padding:0;
}

.about-left h2 {
  font-size: 3.8rem;             /* +30% */
  line-height: 1;
  color: #fff;
  margin: 0;
  opacity: 0;
  transform: translateX(-104px); /* +30% deslocação */
  transition: all 1s cubic-bezier(.4, 0, .2, 1);
}

.about-left h2 small {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: .08em;
}

.about-right {
  opacity: 0;
}

.about-right p {
  margin: 0 0 1em 0;
  color:#fff;
  font-size: 22px;
}

.about-symbol {
  position: absolute;
  right: 0;
  width: 48%;                    /* +20–30% tamanho */
  max-width: 540px;
  opacity: 0;
  transform: translateX(156px);  /* +30% deslocação */
  transition: all 1.2s cubic-bezier(.4, 0, .2, 1);
  z-index: 0;
}

/* estado visível */
.about.visible .about-left h2 {
  opacity: 1;
  transform: translateX(0);
  display: flex;
  flex-direction: column;
}

.about.visible .about-symbol {
  opacity: 0.1;
  transform: translateX(0);
}

.about.visible .about-right {
  opacity: 1;
  transform: translateY(0);
  font-size:22px;
  line-height: 1.6;
}
#remodelacoes{background:#fff!important}
/* ===== ANNOUNCEMENT BAR — marquee contínuo ===== */
.announcement{
  width:100%;
  background:#fff;
  color:#0e2e55;
  border-top:1px solid rgba(0,0,0,.08);
  border-bottom:1px solid rgba(0,0,0,.08);
  max-height:111px;
  overflow:hidden;
}

.marquee{
  display:flex;
  align-items:center;
  gap:var(--gap, 64px);
  will-change: transform;
  /* arranque seguro */
  transform: translateX(0);
  animation: marquee linear infinite;
  animation-duration: var(--dur, 20s);
}

.announcement .msg {
    margin: 0;
    padding: 8px 0;
    font-size: clamp(35px, 7vw, 81px);
    font-weight: 900;
    text-transform: uppercase;
    white-space: nowrap;
    flex: 0 0 auto;
    color: transparent;
    -webkit-text-stroke: 2px #204a87;
    font-family: sans-serif;
}

/* pausa opcional ao hover (remover se não quiseres) */
.announcement:hover .marquee{ animation-play-state: paused; }

@keyframes marquee {
  to { transform: translateX(calc(-1 * var(--loopw, 50%))); }
}

/* acessibilidade: reduz movimento */
@media (prefers-reduced-motion: reduce){
  .marquee{ animation: none; }
}
.about-left h2,
.about-right,
.about-symbol { will-change: transform, opacity; }
/* ===== FOOTER ===== */
.footer {
    background: #fff;
    color: #0e2e55;
    border-top: 1px solid rgba(0, 0, 0, .08);
    width: 100%;
}

.footer-inner{
  margin:0 auto;
  display:grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap:32px;
  align-items:start;
}

/* animação de entrada (usa .visible na section) */
.footer .reveal{
  opacity:0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.footer.visible .reveal{ opacity:1; transform:none }
.footer.visible .reveal:nth-child(1){ transition-delay:.0s }
.footer.visible .reveal:nth-child(2){ transition-delay:.12s }
.footer.visible .reveal:nth-child(3){ transition-delay:.24s }

.foot-logo{ height:44px; width:auto; margin-bottom:12px }
.muted{ color:#4a5b76; margin:0 }

h3{ margin:0 0 10px 0; font-size:16px; text-transform:uppercase;  }

.foot-list{ list-style:none; margin:0; padding:0; }
.foot-list a{
  color:#0e2e55; text-decoration:none; font-weight:700; text-transform:uppercase;display:inline-block; padding:6px 0;
}
.foot-list a:hover{ text-decoration:underline }

.btn-primary {
    border: 1px solid #fff;
    background:#efefef;
    color: #204a87;
    padding: 0.5rem 1.1rem;
    cursor: pointer;
    transition: background .18s ease, color .18s ease, transform .12s ease;
}
.btn-primary:hover{ filter:brightness(1.1) }

.social{ display:flex; gap:12px }
.social-btn{
  inline-size:44px; block-size:44px; display:grid; place-items:center;
  border:1px solid rgba(0,0,0,.1); border-radius:50%; text-decoration:none;
  color:#0e2e55; background:#fff;
  transition: transform .2s ease, background .2s ease;
}
.social-btn:hover{ transform: translateY(-2px); background:#f5f7fb }
.ico{ width:22px; height:22px; fill:currentColor }

.foot-bottom{
  margin-top:22px; padding-top:14px; border-top:1px solid rgba(0,0,0,.08);
  text-align:center; color:#4a5b76; font-size:13px;
}
.gallery-container {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  overflow: hidden;
  z-index: 3;
}

.gallery-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.gallery-track img {
  min-width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: transparent;
    font-size: 2rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    z-index: 1;
    -webkit-text-stroke: 1px #fff !important;
    font-family: sans-serif;
}

.gallery-nav.prev {
  left: 10px;
}

.gallery-nav.next {
  right: 10px;
}
.logo-stack {
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.logo-stack.hidden {
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}
/* Container dos cartões (ajusta largura conforme layout geral) */
.cards-wrap {
  display: grid;
  gap: 1rem;
  /* por defeito, 1 coluna (mobile) */
  grid-template-columns: 1fr;
  align-items: start;
}

/* cartões */
.rem-card {
  background: rgba(255,255,255,0.03); /* semi-transparente */
  border-radius: 20px;
  padding: 0;
  position: relative;
  overflow: hidden;
  cursor: default;
  border: none!important; /* linha branca discreta */
  transition: transform .35s cubic-bezier(.2,.9,.3,1), box-shadow .35s ease, background .25s ease;
  will-change: transform, opacity;
  box-shadow: 0px 5px 13px 0px rgba(0, 0, 0, 0.25);
  min-height: 400px;
  display:flex;
}

/* efeito dupla linha interior (estética) */
.rem-card::before,
.rem-card::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.06);
  pointer-events: none;
}
.rem-card::after { inset: 14px; opacity: .5; }

/* conteúdo interno */
.rem-card-inner {
  position: relative;
  z-index: 2;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #fff;
}
.rem-card-inner h3 span{font-size: 10vh;}
.rem-card h3 {
  margin: 0 0 0.4rem 0;
  font-size: 1.05rem;
  letter-spacing: .02em;
  color: #da6c27;
  display:flex;
  flex-direction: column;
}
.rem-card p {
  margin: 0;
  color: #da6c27;
  font-size: 0.95rem;
  line-height: 1.45;
}
#remodelacoes .about-left h2, p {
    color: #da6c27;
}
section#footer h4, address {
    color: #204a87 !important;
}
section#footer h4 {
    font-size: 22px;
}
.footer-form textarea, input {
    background: #fcfcfc !important;
    border-color: #204a87 !important;
    border-radius: 0 !important;
}
/* hover */
.rem-card:hover {
  transform: translateY(-8px) scale(1.01);
  background: rgba(255,255,255,0.04);
  box-shadow: 0 16px 40px rgba(0,0,0,0.40);
}

/* layout responsivo: 2 colunas a partir de 640px */
@media (min-width: 640px) {
  .cards-wrap { grid-template-columns: 1fr 1fr; }
}

/* 2 columns to 3 columns on wider screens if wanted */
@media (min-width: 1024px) {
  .cards-wrap { grid-template-columns: 1fr 1fr 1fr 1fr; } /* mantem 2, altera se preferires 2/3 */
}

/* estado base - oculto */
[data-anim] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .55s cubic-bezier(.2,.9,.3,1), transform .55s cubic-bezier(.2,.9,.3,1);
  will-change: transform, opacity;
  /* reset delay para controlo via JS */
  transition-delay: 0s;
}

/* estado visível */
[data-anim].in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Se o elemento for um container com filhos que queremos stagger,
  os filhos também receberão a classe .child-anim para animarem. */
[data-anim] .child-anim {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .45s ease, transform .45s ease;
  transition-delay: 0s; /* será ajustado via JS */
}

[data-anim].in-view .child-anim {
  opacity: 1;
  transform: translateY(0);
}

/* Exemplo do stagger já com nth fallback (não obrigatório) */
[data-anim] .child-anim:nth-child(1) { transition-delay: var(--delay-0, 0s); }
[data-anim] .child-anim:nth-child(2) { transition-delay: var(--delay-1, 0s); }
[data-anim] .child-anim:nth-child(3) { transition-delay: var(--delay-2, 0s); }
[data-anim] .child-anim:nth-child(4) { transition-delay: var(--delay-3, 0s); }

/* Manter regras visuais dos cartões/galeria como já tens */

#remodelacoes .about-inner {
    display: flex;
    flex-direction: column;
    row-gap: 40px;
}
#remodelacoes .about-left {
    text-align: center;
}
section{padding:0 50px;}
/* --- Footer grande, clean e responsivo --- */
.footer-large {
  background: #fcfcfc;
  color: #0b1320; /* texto escuro para contraste */
  padding: 4rem 1.25rem 5rem;
  border-top: 1px solid rgba(0,0,0,0.05);
  box-sizing: border-box;
  position: relative;
  overflow: visible;
  font-family: inherit;
  padding: 10vh 100px 12vh 155px;
}
/* container (centraliza e limita largura) */
.footer-large .container {
  max-width: 1500px;
  margin: 0 auto;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
}

/* left column: contactos + form */
.footer-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  z-index: 2;
}

/* contactos */
.footer-contact h4 {
  margin: 0 0 .35rem 0;
  font-weight: 600;
  color: #222;
}
.footer-contact address,
.footer-contact p.muted {
  margin: 0 0 .8rem 0;
  color: rgba(0,0,0,0.65);
  line-height: 1.4;
  font-style: normal;
}
.footer-contact p {
  margin-top:0!important;
}
/* form */
.footer-form {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

/* inputs */
.footer-form input[type="text"],
.footer-form input[type="email"],
.footer-form textarea {
  width: 100%;
  padding: 0.9rem 0.9rem;
  border: 1px solid rgba(0,0,0,0.12);
  background: #fff;
  border-radius: 4px;
  box-shadow: none;
  font-size: 0.95rem;
  color: #111;
  outline: none;
  transition: box-shadow .18s ease, border-color .18s ease;
}

.footer-form input:focus,
.footer-form textarea:focus {
  border-color: rgba(16,115,125,0.9);
  box-shadow: 0 6px 18px rgba(16,115,125,0.06);
}

/* textarea */
.footer-form textarea {
  resize: vertical;
  min-height: 120px;
  max-height: 300px;
}

/* actions / botão */
.footer-form-actions {
  display: flex;
  justify-content: flex-start;
  margin-top: .25rem;
}

/* right column: big symbol */
.footer-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  position: relative;
  z-index: 1;
  pointer-events: none; /* decorativo */
  column-gap: 70px;
}
.footer-symbol {
  width: 80%;
  max-width: 420px;
  opacity: 0.1;
  display: block;
}

/* bottom bar */
.footer-bottom{
  left: 0;
  right: 0;
  bottom: 0; /* se precisares manter posição */
  position: absolute;
  box-sizing: border-box;   /* faz o padding caber dentro da largura */
  padding: 10px 100px 10px 150px;            /* padding simples - já não aumenta a largura total */
  background: #204a87;
  color:#ffffff40;
}

.footer-bottom .credit {
  float: right;
  color:#ffffff40;
}
/* utility: visually hidden (for labels) */
.visually-hidden {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
  border: 0; padding: 0; margin: -1px;
}
p.muted a {
    color: #204a87 !important;
}
.footer-form textarea::placeholder {
  color: #204a87;
}
.footer-form input::placeholder {
    color: #204a87;
}
a.secondary-btn{
  color:#fff!important;
}
.footer-contact a {
  line-height: 1.6;
}
.logos-grupo img{
  max-height: 50px;
}
.logos-grupo {
    display: flex;
    flex-direction: column;
    row-gap: 30px;
}
/* Estilos: botão sem fundo, borda branca, ícone branco */
.social-ghost {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
}

/* Botão base */
.social-ghost-btn{
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  background: transparent;
  border: 2px solid #204a87;
  text-decoration: none;
  color: #204a87;                     /* ícone usa currentColor */
  transition: transform .16s ease, background .18s ease, box-shadow .18s ease;
  box-shadow: none;
  outline: none;
  -webkit-text-stroke: 0;
}
section#casasModulares a {
    color: #204a87 !important;
    border-color: #204a87!important;
    margin-bottom: 30px;
}
/* ícone SVG */
.social-ghost-btn .social-ico{
  width: 30px;
  height: 30px;
  display: block;
  fill: currentColor;              /* garante que seja branco */
}

/* hover / focus */
.social-ghost-btn:hover,
.social-ghost-btn:focus {
  background: rgba(255,255,255,0.06); /* leve realce */
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.18);
}

/* foco visível acessível */
.social-ghost-btn:focus-visible{
  box-shadow: 0 0 0 3px rgba(32,74,135,0.22); /* outline suave */
  border-color: #ffffff;
}
/* reduz movimento para preferências de acessibilidade */
@media (prefers-reduced-motion: reduce){
  .social-ghost-btn{ transition: none; transform: none !important; }
}

/* ===== Styles para a secção "Missão" (corrigida) ===== */
:root{
  --mission-max-h: 30vh;
  --circle-min: 120px;
  --circle-preferred: 20vh;
  --circle-max: 260px;
  --accent: #204a87;           /* cor do traço / texto do anel e label */
  --ring-w: 3px;
  --inner-ring-w: 10px;
  --spin-duration: 12s;
}

/* Container da secção */
.mission-section{
  padding: 3vh 100px 3vh 155px ;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent); /* adapta se quiseres cor de fundo */
  color: #fff;
  box-sizing: border-box;
}

/* wrapper interno: coluna centrada */
.mission-inner{
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: row; /* obrigatoriamente vertical: círculo acima, texto abaixo */
  gap: 8rem;
  text-align: center;
  padding: 0 1rem;
  box-sizing: border-box;
  margin: 0 auto;
}

/* wrap do svg para posicionar label no centro */
.mission-circle-wrap{
  position: relative;
  width: clamp(var(--circle-min), var(--circle-preferred), var(--circle-max));
  height: clamp(var(--circle-min), var(--circle-preferred), var(--circle-max));
  display: inline-block;
  flex: 0 0 auto;
}

/* SVG responsivo ocupa todo o wrap */
.mission-svg{
  width: 100%;
  height: 100%;
  display: block;
  color: #fff; /* currentColor será usado para strokes e texto */
  line-height: 0;
  overflow: visible;
}

/* rings */
.mission-svg .ring {
  stroke: currentColor;
  stroke-width: #fff;
  stroke-linecap: round;
  fill: none;
  opacity: 0.95;
}
.mission-svg .ring-inner { stroke-width: var(--inner-ring-w); }

/* centro decorativo */
.mission-svg .center-dot {
  fill: currentColor;
  opacity: 0.08;
}

/* grupo que roda: centra no meio do svg */
.mission-svg .rotor{
  transform-origin: 120px 120px;
  animation: spin var(--spin-duration) linear infinite;
}

/* Texto do path usa currentColor */
.mission-svg text { fill: currentColor; text-transform: uppercase; font-weight:700; }

/* Label central (HTML) — permite melhor controlo tipográfico */
.mission-center-label{
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none; /* decorativo */
  text-align: center;
  width: 60%;
  height: 60%;
}
.mission-center-label span{
  display:block;
  font-weight:700;
  text-transform:uppercase;
  font-size: clamp(0.7rem, 2.8vw, 1.05rem);
  color: #fff;
  letter-spacing: .06em;
  line-height:1;
}

/* Texto em baixo, com largura controlada para não tocar o círculo */
.mission-copy{ width: min(880px, 94%); }
.mission-text{
  margin: 0;
  font-size: clamp(0.9rem, 1.45vh, 1rem);
  line-height: 1.6;
  color: #fff;
  /* garante separação para não colar ao círculo */
  margin-top: 0.25rem;
  font-size: 22px;
  text-align: left;
}

/* animação de rotação */
@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* reduz movimento */
@media (prefers-reduced-motion: reduce) {
  .mission-svg .rotor { animation: none !important; }
}

/* === Estilos e correções para mobile num único bloco === */
@media (max-width: 768px) {
  :root{ --rail-w:50px }
  #remodelacoes .about-right {
    width: 100%;
    overflow: hidden;
  }

  #remodelacoes .cards-wrap {
    display: flex !important;
    flex-direction: row !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;

    -webkit-overflow-scrolling: touch;
    padding-bottom: 25px;
  }

  #remodelacoes .cards-wrap::-webkit-scrollbar {
    display: none;
  }

  #remodelacoes .rem-card {
    flex: 0 0 85%;
    min-width: 85%;
    scroll-snap-align: center;
  }
  .mission-inner{ gap: 0.9rem; flex-direction: column;padding:0}
  .mission-center-label{ width: 68%; height: 68%;}
  .mission-text {
      margin: 1em 0;
      font-size: 16px;
      line-height: 1.6 !important;
      text-align: center!important;
  }
  .social-ghost-btn{ width:40px; height:40px }
  .social-ghost-btn .social-ico{ width:18px; height:18px }
  .footer-large {
    padding: 14vh 20px 14vh 75px !important;
  }
  .footer-large .container {
    flex-direction: column;
    gap: 1.5rem;
    align-items: stretch;
  }
  .footer-right {
    order: 2;
    justify-content: flex-end;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-symbol {
    width: 46%;
    max-width: 240px;
    opacity: 0.85;
    margin-left: auto;
  }
  .footer-left {
    order: 1;
  }
  #footer h2.in-view {
      font-size: 2.8rem!important;
  }
  .footer-bottom .credit {
    float: none;
    display: block;
    margin-top: 0.5rem;
  }
  .footer-form input, .footer-form textarea {
    padding: 0.85rem;
    font-size: 0.95rem;
  }
  .btn-primary {
    padding: .6rem 1rem;
  }
  .footer-inner{ grid-template-columns: 1fr; gap:24px }
  .foot-logo{ height:38px }
  .site .center img{ height:40px }
  .hamburger{height:50px;}
  .stack-item img { max-height: 35px!important; }
  .about--btn{font-size:11px;margin-bottom:30px;}
  .hamburger span{height: 4px;width: 30px;}
  .logo-stack{gap:10px}
  .titles{bottom: clamp(27px, 23vh, 500px);left:70px;}
  h1 { -webkit-text-stroke: 0!important; color:#fff!important}
  .about-inner{ display:flex!important; flex-direction: column!important; row-gap: 40px; padding:0!important; }
  .about-symbol{width:100%!important;}
  .stack-item{width:50px;}
  .about-right p{font-size: 16px;}
  .about{padding: 14vh 20px 14vh 75px!important;}
  .casas-modulares{padding: 14vh 20px 14vh 75px!important;}
  .about-right p{font-size: 16px!important;}
  .about.visible .about-right{font-size: 16px!important;padding:0;margin-top:50px;}
  .about-left h2{font-size: 1.8rem!important;}
  .about-left h2, .about-right, .about-symbol { will-change: transform, opacity; }

  .stack-item img { max-height: 50px; }

  /* Button .secondary-btn padrão mobile */
  .secondary-btn {
    display: inline-block;
    text-decoration: none;
    border-bottom: 1px solid #fff;
    background: transparent;
    color: #fff;
    padding: 0;
    font-weight: 700;
    text-transform: uppercase;
    transition: background .18s ease, color .18s ease, transform .12s ease;
    cursor: pointer;
    margin-top: 1rem;
    pointer-events: auto;
  }
  .headline {
    font-size: clamp(28px, 8vw, 48px);
    line-height: 1.1;
    max-width: calc(100vw - 90px);
    word-break: break-word;
  }
  /* Força comportamento column no casas-modulares e remodelacoes em mobile */
  .casas-modulares .about-inner,
  #remodelacoes .about-inner,
  .about-inner {
    display: flex !important;
    flex-direction: column;
    gap: 1.5rem;
    padding: 8vh 20px 10vh 55px;
    align-items: flex-start!important;
  }

  .casas-modulares .about-left,
  .casas-modulares .about-right,
  #remodelacoes .about-left,
  #remodelacoes .about-right {
    width: 100%;
  }

  /* evita que a galeria empurre a secção seguinte: reserva espaço até carregar imagens */
  .gallery-container {
    max-width: 100%;
    width: 100%;
    overflow: hidden;
    min-height: 180px; /* reserva espaço até as imagens carregarem */
  }

  .gallery-track img {
    width: 100%;
    height: auto;       /* evita esticar verticalmente */
    display: block;
    object-fit: cover;
  }

  /* Força visibilidade de textos principais caso observer atrase */
  #remodelacoes .about-left h2,
  #remodelacoes .about-left p,
  #remodelacoes .about-right,
  .casas-modulares .about-left h2,
  .casas-modulares .about-left p,
  .casas-modulares .about-right {
    opacity: 1 !important;
    transform: none !important;
  }

  /* cards empilhados */
  #remodelacoes .cards-wrap {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  /* Botões da galeria ficam visíveis e táteis */
  .gallery-nav {
    color: #fff;
    -webkit-text-stroke: 0;
    opacity: .95;
    pointer-events: auto;
    font-size: 1rem!important;
  }

  /* Footer adjustments */
  .footer-bottom{ padding: 12px 20px 12px 20px; display: flex; z-index: 9999;flex-direction: column; align-items: center; font-size: 12px;}
  .footer-bottom .credit { float:none; display:block; margin-top:8px; text-align:right; }
  #casasModulares p {
      font-size: 16px!important;
      padding: 0;
  }
  #remodelacoes .about-left p {
      font-size: 16px!important;
  }
  .about.visible .about-left h2{
      padding: 0;
  }
  .gallery-nav.prev{
    left: 0;
  }
  .gallery-nav.next{
    right: 0;
  }
  #remodelacoes .about-left{
    text-align:left!important;
  }
  .mission-section{
    padding: 14vh 20px 14vh 75px !important;
  }
  .announcement .msg {
      color: #204a87;
      -webkit-text-stroke: 0;
      font-size:30px!important;
  }
  .social-ghost{
    justify-content: flex-start;
  }
}
#casasModulares p {
    margin: 1em 0;
    font-size: 22px;
    line-height: 1.6 !important;
}
#remodelacoes .about-left p {
    margin: 1em 0;
    font-size: 22px;
    line-height: 1.6 !important;
}
.main--btn {
    text-decoration: none !important;
    border: 1px solid #fff;
    padding: 10px 20px;
    color: #fff;
}