/* Page structure: header, footer, page container, entrance (login) grid.
   Header and footer span the whole window; the page content is centred. */

/* ── Site header ───────────────────────────────────────────────────────── */

.site-header {
  position: relative;
  background: var(--bianco);
  border-bottom: 1px solid var(--line);
  z-index: 2;
}
/* The UniMORE gradient as a line along the top of every page. */
.site-header::before {
  content: '';
  display: block;
  height: 5px;
  background: var(--gradient);
}
.site-header__inner {
  padding: .6rem var(--gutter);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--text); }
.brand:hover { color: var(--text); }
/* A small Granato→Rosso ring: the circular element of the visual identity. */
.brand__mark {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: var(--gradient);
  -webkit-mask: radial-gradient(circle closest-side, transparent 58%, #000 60%);
          mask: radial-gradient(circle closest-side, transparent 58%, #000 60%);
  flex: none;
}
.brand__text { display: flex; flex-direction: column; line-height: 1.2; }
.brand__name { font-size: 1.2rem; font-weight: 500; letter-spacing: -0.01em; }
.brand__name strong { font-weight: 750; color: var(--granato); }
.brand__sub { font-size: .75rem; color: var(--text-muted); letter-spacing: .02em; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.nav form { margin: 0; }
.nav__link { color: var(--text); text-decoration: none; font-weight: 500; font-size: .9375rem; }
.nav__link:hover { color: var(--granato); }
.nav__user { color: var(--text-muted); font-size: .875rem; overflow-wrap: anywhere; }

@media (max-width: 760px) {
  .site-header__inner { gap: .5rem 1rem; }
  .brand__sub { display: none; }
  .nav__user { display: none; }
}

/* ── Page ──────────────────────────────────────────────────────────────── */

.page { flex: 1; width: 100%; max-width: var(--page-width); margin: 0 auto; padding: 2.5rem var(--gutter) 4rem; }

@media (max-width: 760px) {
  .page { padding-top: 1.5rem; }
}

/* ── Site footer ───────────────────────────────────────────────────────── */

.site-footer { border-top: 1px solid var(--line); background: var(--bianco); }
.site-footer__inner {
  padding: .75rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  flex-wrap: wrap;
}
.site-footer__brand { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
/* The logo as supplied, no smaller than the brandbook's minimum, with its clear space. */
.site-footer__logo { display: block; padding: .5rem 0; line-height: 0; }
.site-footer__logo img { width: 130px; height: auto; }
/* "Servizio offerto da" + AImageLab logo, as on the other AImageLab services. */
.site-footer__powered {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding-left: 1.5rem;
  border-left: 1px solid var(--line);
  color: var(--text-muted);
  text-decoration: none;
}
.site-footer__powered:hover { color: var(--granato); }
.site-footer__powered-label { font-size: .75rem; letter-spacing: .02em; }
.site-footer__powered img { height: 25px; width: auto; border-radius: 4px; }
.site-footer__text { flex: 1 1 26rem; max-width: 72ch; text-align: right; }
.site-footer__compact { display: none; margin: 0; font-size: .75rem; color: var(--text-muted); }
.site-footer__compact a { color: var(--text-muted); font-weight: 600; text-decoration: none; }
.site-footer__compact a:hover { color: var(--granato); text-decoration: underline; }
.site-footer__note { color: var(--text-muted); font-size: .75rem; line-height: 1.5; margin: 0 0 .35rem; }
.site-footer__credits { font-size: .8125rem; margin: 0; }
.site-footer__credits a { font-weight: 600; text-decoration: none; }
.site-footer__credits a:hover { text-decoration: underline; }

@media (max-width: 760px) {
  .site-footer__inner { padding: .75rem var(--gutter); }
  .site-footer__text { text-align: left; }
  .site-footer__powered { padding-left: 0; border-left: 0; }
}

/* ── Entrance (login): Granato hero beside the login card ──────────────── */

.entrance {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: stretch;
}
.entrance__hero {
  position: relative;
  overflow: hidden;
  padding: 2.75rem 2.5rem;
  border-radius: var(--radius-lg);
  background: var(--gradient-hero);
  color: var(--text-on-dark);
  box-shadow: var(--shadow-raised);
}
.entrance__hero > :not(.ring) { position: relative; }
.entrance__title { font-size: 2.35rem; font-weight: 700; letter-spacing: -0.025em; max-width: 14ch; margin-bottom: 1rem; }
.entrance__lead { color: var(--text-on-dark-muted); font-size: 1.0625rem; max-width: 48ch; }
.entrance__points { list-style: none; margin: 1.75rem 0 0; padding: 0; display: grid; gap: .6rem; }
.entrance__points li { display: flex; gap: .65rem; align-items: baseline; }
.entrance__points li::before {
  content: '';
  width: .55rem;
  height: .55rem;
  border-radius: 50%;
  border: 2px solid var(--crema);
  flex: none;
  transform: translateY(-1px);
}
.entrance__card { align-self: center; padding: 2.25rem; }
.entrance__note { margin: 1.25rem 0 0; }

@media (max-width: 860px) {
  .entrance { grid-template-columns: 1fr; gap: 1.25rem; }
  .entrance__hero { padding: 2rem 1.5rem; }
  .entrance__title { font-size: 1.75rem; }
  .entrance__points { display: none; }
  .entrance__card { padding: 1.5rem; }
}
