/* HERO / SLIDESHOW */

.home-anchor{
  height: 1px;
}

#home{
  scroll-margin-top: 20px;
}


.hero{
  position: relative;
  width: 100%;
  height: 86vh;
  min-height: 520px;
  overflow: hidden;
  background: #000;
}
.hero-slide{
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease;
}
.hero-slide.active{ opacity: 1; }

.hero::after{
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.32);
  pointer-events: none;
}

.hero-content{ position: absolute; inset: 0; z-index: 3; }
.hero-pad{ position: absolute; inset: 0; padding: 60px 110px; }

.hero-top{
  position: absolute;
  top: 34px;
  left: 100px;
  right: 100px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 4;
}
.hero-btn{
  display: inline-block;
  padding: 10px 18px;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,.65);
  color: #fff;
  text-decoration: none;
  font-size: 18px;
  background: rgba(0,0,0,.10);
}
.hero-btn:hover{ background: rgba(255,255,255,.10); }

.hero-brand{
  position: absolute;
  left: 100px;
  top: 250px;
  z-index: 4;
  color: #fff;
  max-width: 460px;
}
.hero-brand .kicker{ font-size: 22px; opacity: .9; margin-bottom: 14px; }
.hero-brand .logo {
  font-family: 'Raleway-Medium', serif;
  font-weight: 500;
  letter-spacing: 0.5px;
  line-height: 1.0;
  margin: 10px 0 20px 0;
  font-size: 86px;
}
.hero-brand .sub{ font-size: 18px; line-height: 1.35; opacity: .95; }

/* a coluna toda fica centrada pelo centro do "botão" */
.hero-actions{
  position: absolute;
  right: 100px;
  bottom: 74px;
  z-index: 4;

  display: flex;
  flex-direction: column;
  align-items: center;   /* ✅ antes: flex-end */
  gap: 10px;
  color: #fff;
}

/* botão login-info com texto centrado */
.hero-login-info{
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,.65);
  background: rgba(0,0,0,.18);
  color: #fff;

  text-align: center;   /* ✅ antes: left */
  min-width: 410px;
}

/* centrar as linhas internas */
.hero-login-info-label,
.hero-login-info-user{
  text-align: center;
}

/* link por baixo centrado */
.hero-exit{
  display: inline-block;
  padding: 0;
  margin: 0;
  text-align: center;   /* ✅ */
  color: rgba(255,255,255,.85);
  text-decoration: none;
}

.hero-exit:hover{ text-decoration: underline; }


/* Cards home */
.home-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1100px;
  margin: 50px auto 70px auto;
  padding: 0 20px;
}
.home-card {
  display: block;
  text-align: center;
  text-decoration: none;
  color: #fff;
  background: #000;
  border-radius: 6px;
  overflow: hidden;
}
.home-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}
.home-card h3 { margin: 18px 0 6px; font-size: 20px; font-weight: 600; }
.home-card p { margin: 0 0 20px; font-size: 14px; opacity: 0.9; }
/* Se .home-card for <button>, remove estilos nativos do browser */
button.home-card{
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
}


@media (max-width: 768px) {
  .home-actions { grid-template-columns: 1fr; }
  .hero-top{ left: 12px; right: 12px; }
  .hero-brand{ left: 12px; top: 200px; }
  .hero-actions{ right: 12px; }
}

/* ================================
   HOME – textos (título + parágrafos)
   ================================ */

.intro, .footer-text{
  max-width: 1000px;
  margin: 0 auto;
  padding: 28px 18px;
  text-align: center;
}

.intro h2{
  margin: 0 0 16px;
  font-size: 30px;
  color: #a0a0a0;
  font-weight: 500;
}

.intro .intro-text{
  max-width: 720px;
  margin: 0 auto 40px;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
}

/* ================================
   HOME – Simples de usar / Sigilo
   ================================ */

.home-info{
  max-width: 1100px;
  margin: -60px auto 60px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 40px;
}

.home-info > div{
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.home-info h3{
  font-size: 30px;
  font-weight: 500;
  margin: 0;
  color: #a0a0a0;
}

.home-info p{
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  width: auto;
  max-width: none;
}

/* Desktop alinhamentos */
.home-info-left{ text-align: left; }
.home-info-right{ text-align: right; }

/* Mobile */
@media (max-width: 768px){
  .home-info{
    grid-template-columns: 1fr;
    text-align: left;
  }
  .home-info-right{ text-align: left; }
  .home-info h3{ text-align: center; }
  .home-info p{ text-align: center; }
}
/* Badge de alertas sobre o cartão */
.alertas-badge{
  position:absolute;
  left:22px;
  right:22px;
  top:184px;
  z-index:3;

  padding:10px 12px;
  border-radius:10px;
  border:1px solid rgba(0,0,0,.15);

  background: rgba(0,0,0,.40);
  color:#a3a3a3;
  font-weight:700;
  text-align:center;

  cursor:pointer;
  box-shadow: 0 6px 18px rgba(0,0,0,.12);
}
/* garantir que o link de login fica sempre com aspeto de botão */
.hero-actions .hero-login{
  display: inline-block !important;
  padding: 12px 22px !important;
  border-radius: 999px !important;
  border: 2px solid rgba(255,255,255,.65) !important;
  color: #fff !important;
  text-decoration: none !important;
  font-size: 18px !important;
  background: rgba(0,0,0,.18) !important;
}

.hero-actions .hero-login:hover{
  background: rgba(255,255,255,.10) !important;
  text-decoration: none !important;
}
/* ===== FIX: quando um elemento tem hidden, tem de desaparecer mesmo com !important ===== */
.hero-actions [hidden],
.hero-actions .hero-login[hidden],
#heroLoginLink[hidden],
#heroLoggedInBox[hidden],
#btnLogout[hidden]{
  display: none !important;
}

/* Logo à esquerda do botão Informações (fora do botão) */
.hero-info-wrap{
  display:flex;
  align-items:center;
  gap: 14px;
}

.hero-info-logo-out{
  height: 62px;   /* depois ajustamos */
  width: auto;
  display:block;
  filter: drop-shadow(0 6px 16px rgba(0,0,0,.25));
}

/* Em mobile, baixar um pouco */
@media (max-width: 768px){
  .hero-info-logo-out{
    height: 64px;
  }
}

/* Exit temporário (quando NÃO está logado) — só texto discreto */
.hero-exit-link{
  display:inline-block;
  color: rgba(255,255,255,.85);
  text-decoration: none;
  font-size: 16px;
  font-weight: 200;
  padding: 0;
  margin-left: 10px;
  margin-right: 30px;
}

.hero-exit-link:hover{
  color: #fff;
  text-decoration: underline;
}

/* ===== Pending users ===== */
.hero-pending-notice{
  display: inline-block;
  padding: 0;
  margin: 0 0 14px 0;

  border: 0;
  background: transparent;

  color: rgba(255,255,255,.92);
  text-decoration: underline;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .2px;

  cursor: pointer;
  opacity: .92;
}

.hero-pending-notice:hover{
  color: #fff;
  opacity: 1;
}

