/* HS MasterLab - stili condivisi (palette dal prototipo navigabile 19/11/2026). Tablet 1366x1024, anche in verticale. */
/* Font del prototipo, serviti dal server: in sala non serve internet. Licenza OFL (static/fonts/OFL-*.txt). */
@font-face { font-family: "Montserrat"; src: url("/static/fonts/Montserrat.ttf") format("truetype"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("/static/fonts/Montserrat-Italic.ttf") format("truetype"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/static/fonts/Inter.ttf") format("truetype"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/static/fonts/Inter-Italic.ttf") format("truetype"); font-weight: 100 900; font-style: italic; font-display: swap; }
:root {
  --purple: #5a3fa6; --purple-d: #46308a; --teal: #00697f; --teal-l: #00899f; --olive: #a4b400;
  --mint: #e1f2f1; --mint-d: #cfe7e6; --ink: #12343b; --muted: #5d7f85; --line: #d5e6e6; --white: #fff;
  --warn: #c2570c; --radius: 18px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-h: "Montserrat", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; font-family: var(--font); color: var(--ink); background: var(--mint); overflow: hidden; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3 { font-family: var(--font-h); color: var(--teal); margin: 0; }
.hidden { display: none !important; }

/* logo testuale (sostituibile con l'SVG ufficiale in static/img) */
.logo { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-h); font-weight: 800; line-height: 1; }
.logo .hs { color: var(--olive); font-size: 34px; letter-spacing: -1px; }
.logo .master { color: var(--olive); font-size: 22px; letter-spacing: 0.5px; }
.logo .lab { background: var(--olive); color: #fff; border-radius: 8px; padding: 2px 8px; font-size: 24px; box-shadow: 0 2px 0 #7e8a00; }
.logo-novartis { height: 30px; width: auto; max-width: 100%; display: inline-block; }

/* bottoni */
.btn { border: 0; border-radius: 12px; padding: 14px 26px; font-weight: 700; font-size: 17px; color: #fff; background: var(--purple); box-shadow: 0 8px 18px rgba(90, 63, 166, .28); }
.btn:active { background: var(--purple-d); transform: translateY(1px); }
.btn[disabled] { opacity: .5; box-shadow: none; }
.btn.ghost { background: #fff; color: var(--teal); border: 2px solid var(--teal); box-shadow: none; padding: 10px 18px; font-size: 16px; }
.btn.small { padding: 9px 16px; font-size: 14px; border-radius: 10px; }
.pill { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 5px 12px; font-size: 12px; font-weight: 700; background: #e8f3f3; color: var(--teal); }
.pill.done { background: var(--purple); color: #fff; }

/* testata */
.topbar { height: 82px; background: #fff; display: flex; align-items: center; padding: 0 28px; box-shadow: 0 2px 12px rgba(0, 60, 70, .08); position: relative; z-index: 5; }
.topbar .team { position: absolute; left: 50%; transform: translateX(-50%); text-align: center; border-left: 1px solid var(--line); border-right: 1px solid var(--line); padding: 0 90px; }
.topbar .team small { display: block; font-size: 11px; font-weight: 700; letter-spacing: 1.4px; color: var(--teal); text-transform: uppercase; }
.topbar .team b { font-family: var(--font-h); font-size: 19px; }
.topbar .right { margin-left: auto; display: flex; gap: 12px; }

/* sfondo con onde chiare */
.bg { background: radial-gradient(1200px 500px at 85% 110%, #cfe9ea 0, transparent 60%), radial-gradient(900px 500px at 0 0, #f1fafa 0, transparent 60%), var(--mint); }

.card { background: #fff; border-radius: var(--radius); box-shadow: 0 14px 34px rgba(0, 70, 80, .12); }
.overline { font-size: 12px; font-weight: 800; letter-spacing: 1.6px; color: var(--teal); text-transform: uppercase; }
.num { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--purple); color: #fff; font-family: var(--font-h); font-weight: 800; font-size: 18px; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 22px; border-radius: 12px; font-size: 15px; z-index: 99; box-shadow: 0 10px 24px rgba(0, 0, 0, .25); }
input, textarea { font-family: inherit; font-size: 17px; color: var(--ink); border: 1.5px solid var(--mint-d); border-radius: 12px; padding: 14px 16px; width: 100%; background: #fff; }
input:focus, textarea:focus { outline: 3px solid rgba(90, 63, 166, .25); border-color: var(--purple); }
.footer-note { position: fixed; bottom: 12px; left: 0; right: 0; text-align: center; font-size: 11px; color: var(--muted); pointer-events: none; }
