:root{ --bg:#FFF8E7; --ink:#111; --muted:#6b6b6b; --accent:#FF6B35; --accent2:#2EC4B6; --card:#fff; --ui:"Arial Black",Haettenschweiler,Impact,sans-serif; --sans: "Nunito","Segoe UI",system-ui,sans-serif; }
*{box-sizing:border-box;margin:0;padding:0}
html,body{height:100%;background:var(--bg);color:var(--ink);font-family:var(--sans)}
.top{ display:flex; align-items:center; justify-content:space-between; padding:14px 16px; gap:12px; position:sticky; top:0; background:var(--bg); z-index:5; }
.brand{ font-family:var(--ui); letter-spacing:.06em; font-size:20px; }
.top-actions{ display:flex; gap:8px; align-items:center; }
.pill{ border:1.5px solid #111; background:#fff; padding:6px 10px; border-radius:999px; font-weight:800; cursor:pointer; }
.pill.small{ padding:6px 10px; }
.pill.hidden, .icon-btn.hidden{ display:none !important; }
.icon-btn{ border:1.5px solid #111; background:#fff; width:36px; height:36px; border-radius:50%; cursor:pointer; display:grid; place-items:center; font-size:18px; }
.view{ max-width:980px; margin:0 auto; padding:12px 16px 32px; }
.hero h1{ font-family:var(--ui); font-size:clamp(28px,6vw,48px); line-height:.95; }
.hero .sub{ color:var(--muted); margin-top:6px; }
.doors{ display:grid; grid-template-columns:1fr 1fr; gap:14px; margin-top:18px; }
@media (max-width:720px){ .doors{ grid-template-columns:1fr; } }
.door{ border:3px solid #111; border-radius:16px; background:var(--card); padding:16px; display:flex; flex-direction:column; gap:10px; }
.door.primary{ background:#111; color:#fff; border-color:#111; }
.door.primary .door-desc,.door.primary .door-meta{ color:#fff; opacity:.85; }
.door.disabled{ opacity:.62; }
.door-head{ display:flex; align-items:center; justify-content:space-between; gap:8px; }
.door-head h2{ font-family:var(--ui); font-size:22px; }
.badge{ padding:4px 10px; border-radius:999px; font-weight:900; font-size:12px; letter-spacing:.04em; text-transform:uppercase; }
.badge.soon{ background:#fff; color:#111; border:1.5px solid #111; }
.badge.live{ background:var(--accent); color:#fff; }
.cta{ border:0; background:var(--accent); color:#fff; font-family:var(--ui); padding:12px 16px; border-radius:999px; cursor:pointer; text-transform:uppercase; letter-spacing:.04em; box-shadow:0 6px 0 #111; }
.cta:active{ transform:translateY(3px); box-shadow:0 3px 0 #111; }
.ghost{ border:1.5px solid #111; background:#fff; color:#111; padding:10px 14px; border-radius:999px; font-weight:900; cursor:pointer; }
.ghost.danger{ border-color:#C1121F; color:#C1121F; }
.ghost.file{ display:inline-grid; place-items:center; cursor:pointer; }
.week{ margin-top:18px; display:grid; gap:10px; }
.week h3{ font-family:var(--ui); font-size:18px; }
.day{ border:2px solid #111; border-radius:14px; background:#fff; padding:12px; display:flex; justify-content:space-between; align-items:center; gap:10px; cursor:pointer; min-height:56px; }
.day div:first-child{ flex:1; min-width:0; overflow-wrap:anywhere; }
.day.today{ background:#FFF0D6; }
.day .meta{ color:var(--muted); font-size:13px; white-space:nowrap; flex-shrink:0; }
.view.hidden{ display:none !important; }
.card{ border:2px solid #111; border-radius:14px; background:#fff; padding:14px; display:grid; gap:12px; }
#view-allena{ display:block; }
#view-allena.hidden{ display:none !important; }
#allena-list{ display:grid; gap:10px; }
#allena-empty{ margin-top:10px; }
@media (min-width: 900px){ #view-allena .day{ padding:14px 16px; } }
/* Impostazioni — overlay su tutta la pagina */
#view-settings{
  position:fixed; inset:0; z-index:20;
  background:var(--bg);
  max-width:none; margin:0; padding:20px 16px calc(20px + env(safe-area-inset-bottom));
  overflow-y:auto; -webkit-overflow-scrolling:touch;
  display:flex; flex-direction:column; gap:16px;
}
#view-settings.hidden{ display:none !important; }
#view-settings h2{ font-family:var(--ui); font-size:clamp(24px,5vw,36px); }
#view-settings .card{ max-width:720px; width:100%; margin:0 auto; }
#view-settings #btn-settings-back, #view-settings #btn-back-home{ max-width:720px; width:100%; margin:0 auto; padding:12px 16px; font-size:16px; }
.row{ display:flex; gap:8px; flex-wrap:wrap; }
.tiny{ font-size:12px; color:var(--muted); line-height:1.4; }
.toast{ position:fixed; left:50%; bottom:16px; transform:translateX(-50%); background:#111; color:#fff; padding:10px 14px; border-radius:999px; font-weight:800; z-index:20; }
.toast.hidden{ display:none; }
a{ color:inherit; }
code{ background:#F0E6CC; padding:1px 6px; border-radius:6px; }
