

.empresas-page{
  width:min(calc(100% - 32px), 1280px);
  margin:0 auto;
  padding:38px 0 72px;
}

.empresas-hero{
  text-align:center;
  padding:8px 0 26px;
  animation:fadeUp .9s ease both;
}

.logo-grupo{
  width:min(320px, 72vw);
  margin:0 auto 8px;
  display:block;
  filter:drop-shadow(0 18px 28px rgba(48,110,242,.12));
  animation:floatLogo 5s ease-in-out infinite;
}

.empresas-hero h1{
  margin:0;
  font-size:clamp(3rem, 8vw, 6rem);
  line-height:.92;
  letter-spacing:-.05em;
  font-weight:800;
  color:#081126;
}

.empresas-hero h1 span{
  display:block;
  font-size:clamp(1.45rem, 3.2vw, 2.9rem);
  font-weight:400;
  letter-spacing:.02em;
}

.timeline-diagram{
  position:relative;
  padding-top:120px;
  margin-top:6px;
  min-height:520px;
}

.timeline-line{
  position:absolute;
  top:42px;
  left:7%;
  right:7%;
  height:3px;
  background:rgba(8,17,38,.12);
  overflow:hidden;
}

.timeline-line::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(90deg, rgba(48,110,242,.15), rgba(48,110,242,.95), rgba(48,110,242,.15));
  transform:scaleX(0);
  transform-origin:left center;
  animation:drawLine 1.6s cubic-bezier(.22,1,.36,1) .15s forwards;
  box-shadow:0 0 18px rgba(48,110,242,.22);
}

.timeline-node{
  position:absolute;
  top:36px;
  width:14px;
  height:14px;
  border-radius:50%;
  background:#081126;
  border:3px solid #eef2f7;
  transform:translateX(-50%) scale(0);
  animation:popNode .42s ease forwards;
}

.node-1{left:17%; animation-delay:.85s;}
.node-2{left:39.5%; animation-delay:1.05s;}
.node-3{left:61%; animation-delay:1.25s;}
.node-4{left:82.5%; animation-delay:1.45s;}

.timeline-stem{
  position:absolute;
  top:49px;
  width:3px;
  height:74px;
  background:linear-gradient(180deg, rgba(8,17,38,.45), rgba(8,17,38,.12));
  transform:translateX(-50%) scaleY(0);
  transform-origin:top center;
  animation:growStem .45s ease forwards;
}

.stem-1{left:17%; animation-delay:1s;}
.stem-2{left:39.5%; animation-delay:1.2s;}
.stem-3{left:61%; animation-delay:1.4s;}
.stem-4{left:82.5%; animation-delay:1.6s;}

.empresas-grid{
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:24px;
  align-items:start;
}

.empresa{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:220px;
  padding:28px 20px;
  border-radius:28px;
  background:rgba(255,255,255,.72);
  border:1px solid rgba(8,17,38,.08);
  box-shadow:0 18px 45px rgba(8,17,38,.08);
  overflow:hidden;
  transition:transform .35s ease, box-shadow .35s ease, border-color .35s ease;
  opacity:0;
  transform:translateY(28px) scale(.97);
  animation:logoReveal .8s cubic-bezier(.22,1,.36,1) forwards;
  backdrop-filter:blur(10px);
}

.empresa-1{animation-delay:1.15s;}
.empresa-2{animation-delay:1.35s;}
.empresa-3{animation-delay:1.55s;}
.empresa-4{animation-delay:1.75s;}

.empresa:hover{
  transform:translateY(-10px);
  box-shadow:0 24px 56px rgba(8,17,38,.14);
  border-color:rgba(48,110,242,.18);
}

.empresa-logo-wrap{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:88px;
}

.empresa img{
  max-width:86%;
  max-height:82px;
  width:auto;
  height:auto;
  object-fit:contain;
  transition:transform .35s ease, opacity .35s ease, filter .35s ease;
}

.apoio-locacoes-fallback{
  flex-direction:column;
  gap:10px;
}

.apoio-locacoes-fallback img{
  max-height:58px;
}

.apoio-locacoes-fallback strong{
  font-size:1.35rem;
  color:#081126;
  transition:opacity .35s ease, transform .35s ease;
}

.historia{
  position:absolute;
  inset:0;
  padding:26px 22px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  background:
    linear-gradient(180deg, rgba(8,17,38,.96), rgba(17,34,67,.95)),
    radial-gradient(circle at top right, rgba(48,110,242,.24), transparent 35%);
  color:#fff;
  opacity:0;
  transform:translateY(18px);
  transition:opacity .35s ease, transform .35s ease;
  text-align:left;
}

.historia h3{
  margin:0 0 10px;
  font-size:1.4rem;
  line-height:1.05;
}

.historia p{
  margin:0;
  font-size:.98rem;
  line-height:1.6;
  color:rgba(255,255,255,.84);
  font-weight:600;
}

.cta{
  margin-top:16px;
  display:inline-flex;
  width:max-content;
  padding:8px 14px;
  border-radius:999px;
  background:rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.12);
  font-weight:800;
  font-size:.9rem;
}

.empresa:hover .historia{
  opacity:1;
  transform:translateY(0);
}

.empresa:hover img,
.empresa:hover .apoio-locacoes-fallback strong{
  opacity:.08;
  transform:scale(.96);
  filter:blur(2px);
}

@keyframes drawLine{
  0%{transform:scaleX(0); opacity:.8;}
  100%{transform:scaleX(1); opacity:1;}
}

@keyframes popNode{
  0%{transform:translateX(-50%) scale(0);}
  75%{transform:translateX(-50%) scale(1.15);}
  100%{transform:translateX(-50%) scale(1);}
}

@keyframes growStem{
  to{transform:translateX(-50%) scaleY(1);}
}

@keyframes logoReveal{
  0%{
    opacity:0;
    transform:translateY(28px) scale(.97);
    filter:blur(6px);
  }
  60%{
    opacity:1;
    transform:translateY(-6px) scale(1.02);
    filter:blur(0);
  }
  100%{
    opacity:1;
    transform:translateY(0) scale(1);
    filter:blur(0);
  }
}

@keyframes fadeUp{
  from{opacity:0; transform:translateY(18px);}
  to{opacity:1; transform:translateY(0);}
}

@keyframes floatLogo{
  0%,100%{transform:translateY(0);}
  50%{transform:translateY(-10px);}
}

@media (max-width: 1100px){
  .empresas-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
    row-gap:84px;
  }

  .timeline-diagram{
    padding-top:90px;
  }

  .timeline-line{
    left:10%;
    right:10%;
  }

  .node-1,.stem-1{left:26%;}
  .node-2,.stem-2{left:74%;}
  .node-3,.stem-3{left:26%; top:auto;}
  .node-4,.stem-4{left:74%; top:auto;}
}

@media (max-width: 760px){
  .empresas-page{
    width:min(calc(100% - 24px), 560px);
    padding:24px 0 48px;
  }

  .timeline-diagram{
    padding-top:20px;
    min-height:auto;
  }

  .timeline-line,
  .timeline-node,
  .timeline-stem{
    display:none;
  }

  .empresas-grid{
    grid-template-columns:1fr;
    gap:18px;
  }

  .empresa{
    min-height:240px;
    opacity:1;
    transform:none;
    animation:none;
  }

  .historia{
    position:static;
    opacity:1;
    transform:none;
    margin-top:18px;
    border-radius:20px;
  }

  .empresa{
    display:block;
    padding:22px;
  }

  .empresa:hover{
    transform:none;
  }

  .empresa:hover img,
  .empresa:hover .apoio-locacoes-fallback strong{
    opacity:1;
    transform:none;
    filter:none;
  }
}




.btn-voltar{
  position:fixed;
  top:22px;
  left:22px;
  z-index:1200;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:48px;
  padding:0 18px;
  border-radius:999px;
  background:rgba(255,255,255,.86);
  color:#081126;
  border:1px solid rgba(8,17,38,.10);
  box-shadow:0 14px 30px rgba(8,17,38,.10);
  text-decoration:none;
  font-weight:800;
  backdrop-filter:blur(12px);
  transition:transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.btn-voltar:hover{
  transform:translateY(-2px);
  box-shadow:0 18px 34px rgba(8,17,38,.14);
  border-color:rgba(48,110,242,.30);
}

.logo-link{
  display:inline-flex;
  flex-direction:column;
  align-items:center;
  text-decoration:none;
  color:inherit;
}

.logo-link:hover .logo-grupo{
  transform:translateY(-4px) scale(1.02);
  filter:drop-shadow(0 22px 34px rgba(48,110,242,.18));
}

.logo-link h1{
  transition:transform .25s ease, opacity .25s ease;
}

.logo-link:hover h1{
  transform:translateY(-2px);
}

.empresas-page{
  min-height:100vh;
}

.timeline-diagram{
  background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.18);
  border-radius:36px;
  backdrop-filter:blur(6px);
  padding-left:20px;
  padding-right:20px;
}

@media (max-width:760px){
  .btn-voltar{
    top:14px;
    left:14px;
    min-height:42px;
    padding:0 14px;
  }
}


/* Correção de visibilidade das logos */
.empresas-grid{
  position:relative;
  z-index:2;
}

.empresa{
  opacity:1 !important;
  transform:none;
  animation:logoReveal .8s cubic-bezier(.22,1,.36,1) forwards;
}

.empresa-logo-wrap{
  width:100%;
  min-height:112px;
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
  z-index:2;
}

.logo-empresa{
  display:block !important;
  width:auto !important;
  height:auto !important;
  max-width:78% !important;
  max-height:76px !important;
  opacity:1 !important;
  visibility:visible !important;
  filter:none !important;
}

.logo-apoio-engenharia{max-width:72% !important; max-height:72px !important;}
.logo-wq{max-width:52% !important; max-height:64px !important;}
.logo-apbvix{max-width:78% !important; max-height:58px !important;}
.logo-locacoes{max-width:82% !important; max-height:62px !important;}

.historia{
  z-index:3;
}

@media (max-width:760px){
  .empresa-logo-wrap{
    min-height:96px;
  }
  .logo-empresa{
    max-height:64px !important;
    max-width:78% !important;
  }
}


/* Fundo escuro com montanha */


/* Fundo cinematográfico escurecido */
body{
  background:
    linear-gradient(
      180deg,
      rgba(0,0,0,0.35),
      rgba(0,0,0,0.55),
      rgba(0,0,0,0.75)
    ),
    url('../img/plano-de-fundo.png');

  background-size: cover;
  background-position: center 20%;
  background-repeat: no-repeat;
  background-attachment: fixed;
}
