/* Firma Sintesy: piede e scheda. I colori arrivano dal tema del software tramite le variabili --fs-…
   (il software le collega alle sue, vedi LEGGIMI.md); se non lo fa, si usano quelli di riserva qui sotto. by Sintesy */

@font-face {
  font-family: 'Sintesy Firma';
  src: url('sintesy-firma.woff2') format('woff2');   /* Caveat 700, solo le lettere di "Sintesy" (licenza OFL-Caveat.txt) */
  font-weight: 700;
  font-display: swap;
}

.fs-piede, .fs-scheda {
  --fs-sfondo-r: #F2EDE1;     /* scheda */
  --fs-testo-r: #1E1E1E;
  --fs-testo2-r: #6B6B6B;
  --fs-accento-r: #A97E2C;    /* oro: bordo della foto e "Sintesy" */
  --fs-pill-r: #E8DFCB;
}

/* ---------- piede ---------- */
.fs-piede {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 12px;
  padding: 18px 16px 22px; font-size: .8rem; text-align: center;
  color: var(--fs-piede-testo, var(--fs-testo2, var(--fs-testo2-r)));
}
.fs-piede a { color: inherit; }
.fs-apri {
  padding: 0; border: 0; background: none; font: inherit; font-weight: 800; cursor: pointer;
  color: var(--fs-accento, var(--fs-accento-r)); text-decoration: underline; text-underline-offset: 2px;
}

/* ---------- scheda ---------- */
.fs-scheda {
  position: fixed; inset: 0; margin: auto; box-sizing: border-box;
  width: min(440px, calc(100% - 28px)); max-height: calc(100% - 28px); overflow: auto;
  padding: 30px 26px 26px; border: 0; border-radius: 26px; text-align: center;
  background: var(--fs-sfondo, var(--fs-sfondo-r)); color: var(--fs-testo, var(--fs-testo-r));
  box-shadow: 0 18px 50px rgba(0, 0, 0, .35); font-size: 1rem; line-height: 1.55;
  font-family: var(--fs-font, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif);
}
.fs-scheda[open] { animation: fs-entra .25s ease; }
.fs-scheda::backdrop { background: rgba(10, 12, 20, .55); backdrop-filter: blur(3px); }
@keyframes fs-entra { from { opacity: 0; transform: translateY(14px) scale(.98); } }
@media (prefers-reduced-motion: reduce) { .fs-scheda[open] { animation: none; } }

.fs-chiudi {
  position: absolute; top: 12px; right: 14px; width: 38px; height: 38px; border: 0; border-radius: 50%;
  background: transparent; color: var(--fs-testo, var(--fs-testo-r)); font-size: 1.9rem; line-height: 1; cursor: pointer;
}
.fs-chiudi:hover, .fs-chiudi:focus-visible { background: var(--fs-pill, var(--fs-pill-r)); }

.fs-foto {
  display: block; width: 150px; height: 150px; margin: 0 auto 14px; border-radius: 50%; object-fit: cover;
  border: 5px solid var(--fs-accento, var(--fs-accento-r)); box-shadow: 0 8px 22px rgba(0, 0, 0, .25);
}
.fs-scheda p { margin: 0 0 12px; }
.fs-nome { margin: 0 !important; font-size: 1.55rem; font-weight: 800; line-height: 1.2; }
.fs-aka { margin: 2px 0 14px !important; color: var(--fs-testo2, var(--fs-testo2-r)); font-size: 1.05rem; }
.fs-aka span { font-family: 'Sintesy Firma', 'Segoe Script', 'Brush Script MT', cursive; font-weight: 700; font-size: 2rem; color: var(--fs-accento, var(--fs-accento-r)); vertical-align: -3px; margin-left: 4px; }
.fs-ruoli { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 16px !important; }
.fs-ruoli span {
  padding: 5px 14px; border-radius: 999px; font-size: .9rem; font-weight: 700;
  background: var(--fs-pill, var(--fs-pill-r)); color: var(--fs-testo, var(--fs-testo-r));
}
.fs-motto { margin: 16px 0 0 !important; font-style: italic; color: var(--fs-testo2, var(--fs-testo2-r)); }
@media (max-width: 420px) { .fs-scheda { padding: 28px 18px 20px; font-size: .95rem; } }
@media print { .fs-piede, .fs-scheda { display: none !important; } }
