/* Pagine del sito playtest (iscrizione, conferma, password, informativa, admin).
   Stessa identità della schermata di accesso del simulatore: fondo teal dipinto, Cinzel Decorative per i titoli,
   Quicksand per il testo, avorio, ocra per l'azione principale. */
:root {
  --deep: #0f1b1c;
  --panel-a: rgba(47, 74, 76, .95);
  --panel-b: rgba(24, 40, 42, .97);
  --ivory: #efe8d6;
  --mist: #c3cbc5;
  --dim: #8fa09c;
  --ochre: #e2aa52;
  --ochre-ink: #1d1408;
  --rose: #ec8f90;
  --leaf: #8fd19e;
  --line: rgba(159, 184, 184, .3);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  min-height: 100vh; font-family: 'Quicksand', 'Segoe UI', system-ui, sans-serif; font-weight: 500; color: var(--ivory);
  background: radial-gradient(120% 90% at 50% 30%, rgba(35, 57, 59, .82) 0%, rgba(16, 27, 28, .93) 62%, rgba(10, 18, 19, .97) 100%), url(sfondo.jpg) center / cover fixed, var(--deep);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body.embed { min-height: 0; background: var(--deep); }
.wrap { width: min(460px, 100%); margin: 0 auto; padding: 28px 16px 40px; }
body.embed .wrap { padding: 18px 14px 22px; }
.wrap.wide { width: min(1180px, 100%); }
.brand { display: block; width: min(250px, 70%); margin: 0 auto 6px; }
.brand img { width: 100%; display: block; filter: invert(1) brightness(1.05) sepia(.08); }

h1 { font-family: 'Cinzel Decorative', Georgia, serif; font-weight: 700; font-size: 23px; line-height: 1.25; text-align: center; margin: 14px 0 8px; }
h2 { font-family: 'Cinzel Decorative', Georgia, serif; font-weight: 700; font-size: 17px; margin: 26px 0 10px; }
.lead { color: var(--mist); font-size: 15px; line-height: 1.55; text-align: center; max-width: 38ch; margin: 0 auto; }
a { color: var(--ochre); text-underline-offset: 3px; }

.panel {
  margin-top: 22px; padding: 20px 18px; border-radius: 20px; border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--panel-a), var(--panel-b)); box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
}
.field { margin-bottom: 15px; }
.field label, .lab { display: block; font-family: 'Cinzel Decorative', Georgia, serif; font-weight: 700; font-size: 14.5px; margin-bottom: 7px; }
.hint { display: block; color: var(--dim); font-size: 12.5px; margin-top: 6px; line-height: 1.45; }
input[type=email], input[type=text], input[type=password], input[type=search], textarea {
  width: 100%; min-width: 0; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: rgba(8, 14, 15, .5);
  color: var(--ivory); padding: 0 14px; font: inherit; font-weight: 600; font-size: 16px;
}
textarea { height: auto; min-height: 120px; padding: 12px 14px; line-height: 1.5; resize: vertical; }
input:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--ochre); outline-offset: 2px; }
.pw { display: flex; gap: 8px; }
.eye { flex: none; width: 76px; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: rgba(239, 232, 214, .05); color: var(--mist); font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; }

.check { display: flex; gap: 11px; align-items: flex-start; margin: 12px 0; font-size: 14px; line-height: 1.5; color: var(--mist); cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; margin-top: 1px; accent-color: var(--ochre); }
.check b { color: var(--ivory); font-weight: 600; }

.go {
  display: flex; align-items: center; justify-content: center; margin-top: 16px; width: 100%; height: 50px; border: 0; border-radius: 999px;
  background: var(--ochre); color: var(--ochre-ink); font: inherit; font-weight: 700; font-size: 16px; cursor: pointer; text-decoration: none;
}
.go:hover { filter: brightness(1.06); }
.go.ghost { background: transparent; color: var(--ivory); border: 1px solid var(--line); }
.msg { margin-top: 14px; padding: 11px 13px; border-radius: 12px; font-size: 14px; line-height: 1.5; }
.msg.bad { background: rgba(236, 143, 144, .12); color: #f5b7b7; border: 1px solid rgba(236, 143, 144, .35); }
.msg.good { background: rgba(143, 209, 158, .1); color: #c4ecce; border: 1px solid rgba(143, 209, 158, .3); }
.below { margin-top: 18px; text-align: center; font-size: 14px; color: var(--mist); line-height: 1.9; }
.fine { margin-top: 16px; font-size: 12.5px; color: var(--dim); line-height: 1.5; text-align: center; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Il lasciapassare: l'unico momento vistoso, quando l'accesso è pronto */
.pass {
  position: relative; margin-top: 22px; padding: 26px 22px 22px; border-radius: 18px; text-align: center; color: var(--ivory);
  background: linear-gradient(180deg, #33504f, #1b2d2e); box-shadow: 0 24px 60px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(226, 170, 82, .55), inset 0 0 0 6px #22393a, inset 0 0 0 7px rgba(226, 170, 82, .35);
}
.pass .kind { font-size: 13px; color: var(--mist); }
.pass .who { font-family: 'Cinzel Decorative', Georgia, serif; font-weight: 700; font-size: clamp(26px, 8vw, 34px); line-height: 1.15; margin: 8px 0 4px; overflow-wrap: anywhere; }
.pass .mail { font-size: 13.5px; color: var(--dim); overflow-wrap: anywhere; }
.pass .cut { position: relative; margin: 20px -22px 18px; border-top: 2px dashed rgba(226, 170, 82, .35); }
.pass .cut::before, .pass .cut::after { content: ''; position: absolute; top: -12px; width: 22px; height: 22px; border-radius: 50%; background: var(--deep); }
.pass .cut::before { left: -11px; } .pass .cut::after { right: -11px; }
.pass p { color: var(--mist); font-size: 14.5px; line-height: 1.55; text-align: left; }
.pass p + p { margin-top: 8px; }
@media (prefers-reduced-motion: no-preference) {
  .pass { animation: stamp .55s cubic-bezier(.2, .9, .3, 1.2) both; }
  @keyframes stamp { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }
}

/* Informativa */
.doc { margin-top: 18px; line-height: 1.6; color: var(--mist); font-size: 15px; }
.doc h2 { color: var(--ivory); }
.doc p, .doc ul { margin-bottom: 10px; }
.doc ul { padding-left: 20px; }
.doc .todo { background: rgba(226, 170, 82, .18); color: var(--ivory); padding: 0 4px; border-radius: 4px; }

/* Admin */
.bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin: 10px 0 4px; }
.bar h1 { margin: 0; text-align: left; font-size: 21px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-top: 16px; }
.stat { padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: rgba(8, 14, 15, .45); }
.stat b { display: block; font-size: 26px; font-weight: 700; }
.stat span { color: var(--mist); font-size: 13px; }
.tablewrap { margin-top: 12px; overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: rgba(8, 14, 15, .45); }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th, td { padding: 9px 10px; text-align: left; border-bottom: 1px solid rgba(159, 184, 184, .15); vertical-align: top; white-space: nowrap; }
th { color: var(--mist); font-weight: 600; font-size: 12.5px; }
td.mail { white-space: normal; overflow-wrap: anywhere; min-width: 180px; }
.tag { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 12px; border: 1px solid var(--line); color: var(--mist); }
.tag.ok { color: #c4ecce; border-color: rgba(143, 209, 158, .4); }
.tag.warn { color: #f3d19a; border-color: rgba(226, 170, 82, .45); }
.tag.bad { color: #f5b7b7; border-color: rgba(236, 143, 144, .45); }
.mini { display: inline; }
.btn-s { display: inline-block; text-decoration: none; }
.mini button, .btn-s { background: none; border: 1px solid var(--line); color: var(--ivory); border-radius: 999px; padding: 4px 10px; font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.mini button.danger { color: #f5b7b7; border-color: rgba(236, 143, 144, .45); }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 14px; }
.cols .panel { margin-top: 14px; }
.search { display: flex; gap: 8px; margin-top: 18px; }
.search input { flex: 1; }
.search .btn-s { height: 46px; padding: 0 16px; }

/* Lingua (dalla R07): bandiera e sigla in cima alle pagine, la stessa scelta del simulatore */
.lang-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0 0 14px; }
.lang-chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px 0 8px; border-radius: 999px; border: 1px solid var(--line);
  color: var(--mist); font-size: 11.5px; font-weight: 700; letter-spacing: .07em; text-decoration: none; background: rgba(8, 14, 15, .3); }
.lang-chip:hover { border-color: rgba(239, 232, 214, .45); color: var(--ivory); }
.lang-chip[aria-current="true"] { border-color: var(--ochre); background: rgba(226, 170, 82, .13); color: #f5cd82; }
.flag { width: 19px; height: 13px; border-radius: 2.5px; flex: none; box-shadow: 0 0 0 1px rgba(239, 232, 214, .3); }
body.embed .lang-row { margin-bottom: 8px; }
@media (max-width: 420px) { .lang-row { gap: 4px; } .lang-chip { padding: 0 8px 0 6px; gap: 5px; } }
