:root{
  --ua-card-radius: 16px;
}

html, body { height: 100%; }

/* === default: usato nella pagina request-link (sfondo con immagine) === */
body{
  min-height: 100vh;
  background-image: url('/assets/img/unitus_bg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

/* overlay scuro per request-link */
.ua-overlay{
  min-height: 100vh;
  background: rgba(10, 20, 40, 0.55);
  display: flex;
  flex-direction: column;
}

.ua-main{
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1rem;
}

.ua-wrapper{
  width: 100%;
  max-width: 720px;
}

.ua-header{
  text-align: center;
  margin-bottom: 1.25rem;
}

.ua-logo{
  width: 250px;
  height: auto;
  display: inline-block;
  margin: 0 auto 0.75rem auto;
  filter: drop-shadow(0 6px 18px rgba(0,0,0,.35));
}

.ua-title{
  color: #fff;
  font-weight: 800;
  letter-spacing: .2px;
  text-shadow: 0 10px 30px rgba(0,0,0,.35);
}

.ua-subtitle{
  color: rgba(255,255,255,.85);
  margin-top: .35rem;
}

.ua-card{
  border-radius: var(--ua-card-radius);
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(0,0,0,.35);
  backdrop-filter: blur(6px);
}

.ua-card .card-content{
  background: rgba(255,255,255,.92);
}

.ua-card + .ua-card{
  margin-top: 1rem;
}

.ua-footer{
  padding: 1rem;
  text-align: center;
  color: rgba(255,255,255,.85);
  font-size: .95rem;
}

.ua-footer a{
  color: rgba(255,255,255,.95);
  text-decoration: underline;
}

/* =========================================================
   FORM PAGE OVERRIDES (leggibilità + footer in fondo pagina)
   ========================================================= */

/* body della pagina /form: bianco, senza sfondo immagine */
body.ua-form{
  background: #ffffff !important;
  background-image: none !important;
  background-attachment: initial !important;
}

/* layout: header + main + footer, footer sempre in basso */
.ua-form-layout{
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.ua-form-main{
  flex: 1;
}

/* footer più compatto (Bulma footer è alto di default) */
.ua-footer-lite{
  padding: 0.9rem 1.25rem !important;
}

/* =========================================================
   HEADER FORM (bianco + sticky + linea + ombra)
   ========================================================= */

.ua-header-bar{
  position: sticky;
  top: 0;
  z-index: 50;

  background: #ffffff;               /* richiesto: bianco come footer */
  border-bottom: 1px solid rgba(10,10,10,.08); /* linea sottile separatrice */
  box-shadow: 0 6px 18px rgba(10,10,10,.08);   /* ombra istituzionale */
}

.ua-header-overlay{
  padding: 0.65rem 1rem; /* altezza ridotta */
}

.ua-header-content{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.ua-header-left{
  display: flex;
  align-items: center;
  gap: .75rem;
  min-width: 0;
}

.ua-header-title{
  color: #1f2937; /* testo scuro leggibile su bianco */
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ua-header-title small{
  font-weight: 500;
  color: #6b7280;
  margin-left: .35rem;
}

/* =========================================================
   Wizard tabs più leggibili e "pro"
   ========================================================= */

.ua-wizard-tabs{
  margin-top: 0.75rem;
  margin-bottom: 1.25rem;
}

.ua-wizard-tabs .tabs.is-toggle li a{
  font-weight: 600;
}

.ua-wizard-tabs .tabs.is-toggle li.is-active a{
  box-shadow: 0 6px 16px rgba(10,10,10,.08);
}
