:root {
  --blu: #153f6d;
  --blu-scuro: #0b2948;
  --rosso: #b32025;
  --arancione: #ef8617;
  --testo: #17233c;
  --grigio: #667085;
  --bordo: #d9e1eb;
  --sfondo: #f3f6f9;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--testo);
  background: var(--sfondo);
  font-family:
    "Inter Tight",
    Arial,
    sans-serif;
}

.header-dashboard {
  color: white;
  background:
    linear-gradient(
      110deg,
      var(--blu-scuro),
      var(--blu) 62%,
      var(--rosso)
    );
  box-shadow:
    0 5px 18px
    rgba(11,41,72,.20);
}

.header-inner {
  width: min(1250px, calc(100% - 32px));
  min-height: 92px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 17px;
}

.brand img {
  width: 65px;
  max-height: 72px;
  object-fit: contain;
}

.brand small {
  color: #ffe1bd;
  font-weight: 900;
  letter-spacing: .8px;
}

.brand h1 {
  margin: 3px 0 0;
  font-size: 25px;
}

.utente-header {
  display: flex;
  align-items: center;
  gap: 18px;
  text-align: right;
}

.utente-header strong,
.utente-header span {
  display: block;
}

.utente-header span {
  margin-top: 3px;
  color: #dcebf7;
  font-size: 12px;
}

.utente-header button {
  padding: 10px 16px;
  border: 1px solid
    rgba(255,255,255,.4);
  border-radius: 9px;
  color: white;
  background:
    rgba(255,255,255,.10);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.dashboard {
  width: min(1250px, calc(100% - 32px));
  margin: 30px auto 70px;
}

.hero-dashboard {
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  border-radius: 18px;
  color: white;
  background:
    linear-gradient(
      120deg,
      var(--blu-scuro),
      var(--blu)
    );
  box-shadow:
    0 15px 35px
    rgba(11,41,72,.15);
}

.badge-dashboard {
  display: inline-flex;
  padding: 7px 11px;
  border-radius: 999px;
  background:
    linear-gradient(
      90deg,
      var(--arancione),
      var(--rosso)
    );
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .7px;
}

.hero-dashboard h2 {
  margin: 14px 0 8px;
  font-size: 34px;
}

.hero-dashboard p {
  margin: 0;
  color: #dcebf7;
  line-height: 1.5;
}

.categorie-utente {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.categorie-utente span {
  padding: 9px 12px;
  border: 1px solid
    rgba(255,255,255,.3);
  border-radius: 999px;
  background:
    rgba(255,255,255,.12);
  font-size: 13px;
  font-weight: 800;
}

.sezione {
  margin-top: 38px;
}

.titolo-sezione span {
  color: var(--rosso);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1px;
}

.titolo-sezione h2 {
  margin: 5px 0 18px;
  color: var(--blu-scuro);
  font-size: 25px;
}

.griglia {
  display: grid;
  grid-template-columns:
    repeat(
      auto-fit,
      minmax(245px, 1fr)
    );
  gap: 17px;
}

.card {
  min-height: 205px;
  padding: 25px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--bordo);
  border-radius: 15px;
  color: inherit;
  background: white;
  text-decoration: none;
  box-shadow:
    0 9px 24px
    rgba(17,45,76,.07);
  transition:
    transform .18s ease,
    box-shadow .18s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow:
    0 16px 32px
    rgba(17,45,76,.13);
}

.card-principale {
  border-top:
    5px solid var(--rosso);
}

.card-report {
  border-top:
    5px solid var(--arancione);
}

.numero {
  color: var(--arancione);
  font-size: 13px;
  font-weight: 900;
}

.card h3 {
  margin: 13px 0 10px;
  color: var(--blu-scuro);
  font-size: 21px;
}

.card p {
  margin: 0 0 22px;
  color: var(--grigio);
  line-height: 1.5;
}

.card strong {
  margin-top: auto;
  color: var(--rosso);
}

.link-pubblico {
  display: inline-flex;
  padding: 14px 18px;
  border-radius: 10px;
  color: white;
  background: var(--blu);
  font-weight: 850;
  text-decoration: none;
}

@media (max-width: 720px) {
  .header-inner,
  .hero-dashboard {
    align-items: flex-start;
    flex-direction: column;
  }

  .header-inner {
    padding: 18px 0;
  }

  .utente-header {
    width: 100%;
    justify-content: space-between;
    text-align: left;
  }

  .categorie-utente {
    justify-content: flex-start;
  }
}
