/* HAPPY.FAM · pagina /fam (pubblica) e /fam/pr-<codice> (per i PR). Palette «Notte a colori». */
@font-face { font-family: "Unbounded"; src: url("../assets/fonts/unbounded-black.woff2") format("woff2"); font-weight: 900; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("../assets/fonts/dmsans.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  --nero: #141414;
  --crema: #FFF5E6;
  --arancio: #FF5A1F;
  --arancio-testo: #C23A0B;
  --grigio: #8C857D;
  --testo-scheda: #4A4540;
  --giallo: #FFC300;
  --lime: #2ED573;
  --fucsia: #FF2E7E;
  --blu: #3D5AFE;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--nero);
  color: var(--crema);
  font: 400 17px/1.5 "DM Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--arancio); outline-offset: 3px; }
[hidden] { display: none !important; }

.pagina { width: min(100% - 32px, 1040px); margin: 0 auto; padding: 0 0 48px; }

.testata { display: flex; align-items: center; height: 72px; }
.testata img { height: 24px; width: auto; }

h1, h2 {
  font-family: "Unbounded", system-ui, sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 0;
}
h1 { font-size: clamp(40px, 11vw, 76px); margin-top: 16px; }
.sotto { margin: 16px 0 0; font-size: clamp(18px, 4.6vw, 20px); line-height: 1.45; max-width: 36ch; color: #E9E1D4; }

.schede { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 880px) { .schede { grid-template-columns: 1fr 1fr; gap: 20px; } }

.scheda {
  position: relative;
  background: var(--crema);
  color: var(--nero);
  border-radius: 24px;
  padding: 24px 22px 22px;
  border-top: 8px solid var(--fascia);
  animation: entra .6s ease both;
}
.scheda:nth-child(2) { animation-delay: .08s; }
.scheda:nth-child(3) { animation-delay: .16s; }
.scheda:nth-child(4) { animation-delay: .24s; }
@keyframes entra { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.scheda__testa { display: flex; align-items: center; gap: 14px; }
.icona {
  flex: none;
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--fascia);
  color: var(--su, var(--nero));
  font: 900 18px/1 "Unbounded", system-ui, sans-serif;
}
.scheda h2 { font-size: clamp(22px, 6vw, 28px); }

.locali { margin: 16px 0 0; font-size: 15px; color: var(--testo-scheda); }
.locali strong { color: var(--nero); font-weight: 700; margin-right: 4px; }

.nota { margin: 18px 0 0; font-weight: 700; font-size: 16px; color: var(--nero); }

.btn {
  display: flex; align-items: center; justify-content: center;
  width: 100%; min-height: 52px; margin-top: 18px; padding: 0 20px;
  border: 0; border-radius: 999px;
  background: var(--arancio); color: var(--nero);
  font: 700 16px/1.2 "DM Sans", system-ui, sans-serif;
  text-align: center; text-decoration: none; cursor: pointer;
  transition: transform .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--fantasma { background: transparent; color: var(--nero); box-shadow: inset 0 0 0 2px var(--nero); }

.conferma { margin-top: 16px; padding: 16px; border-radius: 16px; background: #EBDDCB; }
.conferma p { margin: 0 0 4px; font-weight: 700; }
.conferma .btn { margin-top: 10px; }

.piede { margin-top: 48px; padding-top: 20px; border-top: 1px solid rgb(255 245 230 / .16); font-size: 14px; color: var(--grigio); }

@media (prefers-reduced-motion: reduce) {
  .scheda { animation: none; }
  .btn { transition: none; }
}
