/* Stile base v2 (placeholder funzionale).
   In fase di rifinitura verrà allineato all'aspetto pubblico legacy (style2.css, font Sora). */
:root {
  --green: #4a8b2c;
  --green-dark: #356b1c;
  --text: #243018;
  --muted: #6b7280;
  --border: #d7ddd1;
  --bg: #f6f8f3;
  --err: #c0392b;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: "Sora", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 15px; line-height: 1.5;
}
a { color: var(--green-dark); }
.topbar {
  background: #fff; border-bottom: 1px solid var(--border);
  padding: 12px 20px; display: flex; align-items: center; justify-content: space-between;
}
.topbar .brand { font-weight: 700; color: var(--green-dark); }
.container { max-width: 880px; margin: 28px auto; padding: 0 16px; }
.card {
  background: #fff; border: 1px solid var(--border); border-radius: 10px;
  padding: 22px; margin-bottom: 18px;
}
.card h1, .card h2 { margin-top: 0; }
.auth-wrap { max-width: 420px; margin: 60px auto; }
label { display: block; font-weight: 600; margin: 12px 0 4px; }
input[type=text], input[type=email], input[type=password], input[type=tel],
select, textarea {
  width: 100%; padding: 9px 11px; border: 1px solid var(--border);
  border-radius: 7px; font: inherit; background: #fff;
}
textarea { min-height: 90px; resize: vertical; }
.row { display: flex; gap: 14px; flex-wrap: wrap; }
.row > .col { flex: 1 1 220px; }
.btn {
  display: inline-block; background: var(--green); color: #fff; border: 0;
  padding: 10px 18px; border-radius: 7px; font: inherit; font-weight: 600; cursor: pointer;
}
.btn:hover { background: var(--green-dark); }
.btn.secondary { background: #eef1ea; color: var(--text); }
.btn[disabled] { opacity: .6; cursor: not-allowed; }
.field-error { color: var(--err); font-size: 13px; margin-top: 3px; }
.alert { padding: 10px 14px; border-radius: 7px; margin: 12px 0; }
.alert.ok { background: #e8f5e0; color: var(--green-dark); }
.alert.err { background: #fcebe9; color: var(--err); }
.muted { color: var(--muted); }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px; }
.checks label { font-weight: 400; margin: 0; display: flex; gap: 7px; align-items: center; }
.nav-links a { margin-right: 16px; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 8px; border-bottom: 1px solid var(--border); }
.banner-impersonate { background: #fff4d6; border: 1px solid #e6cf7a; }

/* Fase 2a: admin multi-conferenza */
.container.wide { max-width: 1080px; }
.tag { display: inline-block; padding: 2px 8px; border-radius: 10px; background: #eef1ea; font-size: 12px; }
.tag.warn { background: #fff4d6; }
.tag.ok { background: #e8f5e0; color: var(--green-dark); }
.ctxbar { background: #eef5e8; border: 1px solid var(--border); }
.inline { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.inline > div { flex: 0 0 auto; }
.matrix select { padding: 5px 7px; min-width: 110px; }
.matrix th, .matrix td { vertical-align: middle; }
.nav-links a.active { font-weight: 700; }
