/* ==== Personalização FCT Vasfer — Consolidado ==== */

/* Layout base */
html, body {
  height: 100%;
  margin: 0;
  background: #000;
}
.main {
  position: relative;
  width: 100%;
  min-height: 100vh;           /* ocupa sempre o ecrã */
  background-size: cover;
  background-position: center center;
}

/* Overlay escurecido por trás do conteúdo */
.cover {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: 1;
}
.cover.black { background-color: rgba(0,0,0,.58); }

/* Conteúdo à frente do overlay */
.main .container,
.main .logo,
.footer { position: relative; z-index: 5; }

/* Tipografia geral */
.main .container { text-align: center; }
.main .logo{
  margin-top: 120px;
  font-size: clamp(48px, 6vw, 72px);
  font-weight: 400;
  color: #fff;
  text-shadow: 0 3px 8px rgba(0,0,0,.6);
  /* small caps */
  text-transform: lowercase;
  font-variant: small-caps;
  letter-spacing: 2px;
}
.lead{
  color: #fff;
  font-size: 20px;
  line-height: 1.6;
  max-width: 800px;
  margin: 20px auto;
  text-shadow: 0 2px 4px rgba(0,0,0,.45);
}
a{ color: #9fd3ff; text-decoration: underline; }

/* Título do ano (opcional) */
.year-title{
  font-size: 25px;
  text-transform: uppercase;
  color: #f8f8f8;
  margin: 20px 0 10px;
  text-shadow: 0 1px 3px rgba(0,0,0,.4);
}

/* Botões de disciplinas (Bootstrap) — grelha 2x2 */
.subject-buttons{
  display: grid;
  grid-template-columns: repeat(2, minmax(200px, 320px));
  gap: 15px 25px;
  justify-content: center;
  margin: 35px auto 20px;
  position: relative;
  z-index: 5;
}
.subject-buttons .btn{
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  font-size: 16px;
  text-shadow: 0 1px 2px rgba(0,0,0,.3);
  transition: transform .15s ease-in-out, box-shadow .15s;
  text-decoration: none !important;   /* sem sublinhado nos botões */
}
.subject-buttons .btn:hover{
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0,0,0,.3);
  color: #fff;
}
.subject-buttons i{ font-size: 18px; }

/* Mantém sublinhado nos links dentro do texto */
.lead a{ text-decoration: underline; }

/* Aviso importante */
.notice{
  display: block;
  width: clamp(320px, 90vw, 860px);
  margin: 40px auto 0;
  padding: 22px 28px;
  border-radius: 12px;
  background: rgba(0,0,0,.78);
  color: #fff;
  text-align: left;
  line-height: 1.6;
  box-shadow: 0 6px 24px rgba(0,0,0,.35);
  box-sizing: border-box;
  z-index: 5;
  /* Vidro fosco (podes comentar se não quiseres) */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.badge-warn{
  display: inline-flex;
  justify-content: center;
  align-items: center;
  background: #ffcc00;
  color: #000;
  font-weight: 700;
  border-radius: 8px;
  padding: 6px 12px;
  margin: 0 auto 12px auto;  /* centra horizontalmente */
  font-size: 16px;
  text-align: center;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}
.badge-warn i{ margin-right: 8px; }

/* Rodapé */
.footer{
  position: fixed;
  bottom: 20px; right: 0;
  width: 100%;
  color: #bbb;
  font-size: 14px;
  z-index: 5;
  text-align: right;
}
.footer a{ color: #fff; text-decoration: none; }
.footer a:hover{ color: #ffcc00; }

/* Responsivo */
@media (max-width: 768px){
  .main .logo{ margin-top: 80px; font-size: 42px; }
  .lead{ font-size: 18px; padding: 0 15px; }
  .subject-buttons{ grid-template-columns: 1fr; gap: 10px; }
  .notice{ margin-top: 24px; padding: 18px; }
}
