@font-face { font-family: 'Baloo 2'; font-style: normal; font-weight: 400 900; font-display: swap; src: url(/demo/movie-night/fonts/Baloo2-ExtraBold.ttf) format('truetype'); }

    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    :root {
      --blue: #005687;
      --blue-light: #7fb8e0;
      --cream-bg: #050b16;
      --card-bg: #0d1b32;
      --soft: #22344f;
      --text: #dce7f7;
      --danger: #ef6b5e;
      --success: #35c48c;
    }
    html { background: var(--cream-bg); }
    body {
      background:
        radial-gradient(ellipse 620px 420px at 50% -6%, rgba(47, 143, 214, 0.22), transparent 65%),
        radial-gradient(ellipse 900px 700px at 50% 120%, rgba(0, 86, 135, 0.14), transparent 60%),
        var(--cream-bg);
      color: var(--text);
      font-family: Roboto, 'Segoe UI', Arial, sans-serif;
      min-height: 100vh;
      min-height: 100dvh;
    }
    nav {
      background: rgba(13, 27, 50, 0.75);
      border-bottom: 1px solid var(--soft);
      padding: 0.9rem 1.5rem;
      display: flex; align-items: center; justify-content: space-between;
      backdrop-filter: blur(6px);
    }
    .nav-brand { display: flex; align-items: center; gap: 0.6rem; }
    .nav-brand img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
    .nav-brand span { font-family: 'Baloo 2', 'Segoe UI', sans-serif; font-weight: 700; font-size: 1.4rem; color: #ffffff; text-shadow: 1px 2px 0 var(--blue); }
    .nav-brand span b { font-size: 0.95rem; color: var(--blue-light); font-family: 'Roboto', sans-serif; font-weight: 500; margin-left: 0.35rem; text-shadow: none; }
    nav a { color: #dce7f2; text-decoration: none; font-size: 0.83rem; font-weight: 600; }
    main { max-width: 1240px; margin: 1.5rem auto; padding: 0 1rem; }
    .sess-card, .table-card {
      background: var(--card-bg);
      border: 1px solid var(--soft);
      border-radius: 20px;
      padding: 1.35rem;
      margin-bottom: 1.4rem;
      box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
    }
    .sess-card h2, .table-header h2 {
      font-family: 'Baloo 2', 'Segoe UI', sans-serif;
      font-weight: 700;
      font-size: 1.6rem;
      color: #ffffff;
      text-shadow: 1.5px 2px 0 var(--blue);
      margin-bottom: 0.9rem;
    }
    .form-row { display: flex; gap: 0.8rem; margin-bottom: 0.85rem; }
    .form-row > div { flex: 1; }
    @media (max-width: 768px) {
      .form-row { flex-direction: column; }
    }
    label {
      display: block;
      font-size: 0.62rem;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: #9fb6d6;
      margin-bottom: 0.35rem;
      font-weight: 600;
    }
    input[type="text"], input[type="date"] {
      width: 100%;
      background: #142744;
      border: 1px solid #263b61;
      border-radius: 10px;
      padding: 0.72rem 0.8rem;
      color: #eef4fb;
      font-family: Roboto, 'Segoe UI', Arial, sans-serif;
      font-size: 0.88rem;
      outline: none;
      height: 2.8rem;
      -webkit-appearance: none;
      appearance: none;
    }
    input:focus { border-color: #8fb5e3; box-shadow: 0 0 0 3px rgba(143,181,227,0.26); }
    .btn-row { display: flex; gap: 0.55rem; flex-wrap: wrap; }
    .btn {
      padding: 0.72rem 1.1rem;
      border: none;
      border-radius: 10px;
      font-family: Roboto, 'Segoe UI', Arial, sans-serif;
      font-size: 0.78rem;
      font-weight: 600;
      cursor: pointer;
      transition: transform 0.15s ease, opacity 0.2s;
      white-space: nowrap;
      touch-action: manipulation;
    }
    .btn:hover { transform: translateY(-1px); opacity: 0.95; }
    .btn-primary { background: var(--blue); color: #fff; }
    .btn-danger  { background: #2d3550; color: #d6e4f9; border: 1px solid #4d6188; }
    .btn-gold    { background: linear-gradient(145deg, #00415f, #005687); color: #eef5ff; font-weight: 700; }
    .btn-green   { background: #182c4a; color: #dce7f7; border: 1px solid #3d5680; }
    .btn:focus-visible {
      outline: 3px solid rgba(143,181,227,0.4);
      outline-offset: 2px;
    }
    .btn-sm { padding: 0.4rem 0.7rem; font-size: 0.74rem; }
    .sess-attiva-info {
      background: linear-gradient(145deg, #00415f, #005687);
      border: 1px solid rgba(255,255,255,0.08);
      color: #ecf2f7;
      border-radius: 14px;
      padding: 1rem 1.2rem;
      margin-bottom: 0.9rem;
      font-size: 0.92rem;
      line-height: 1.6;
    }
    .sess-attiva-info strong { color: #fff; font-family: 'Segoe UI', Arial, sans-serif; font-weight: 600; font-size: 1.04rem; }
    .table-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; flex-wrap: wrap; gap: 0.8rem; }
    .count-badge {
      background: #005687;
      color: white;
      border-radius: 20px;
      padding: 0.2rem 0.55rem;
      font-size: 0.72rem;
      font-family: 'Roboto', sans-serif;
      font-weight: 600;
      text-shadow: none;
      vertical-align: middle;
      margin-left: 0.4rem;
    }
    .controls { display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; }
    select {
      background: #142744;
      border: 1px solid #263b61;
      color: #e9f0f8;
      padding: 0.4rem 0.7rem;
      font-family: Roboto, 'Segoe UI', Arial, sans-serif;
      font-size: 0.76rem;
      border-radius: 10px;
      outline: none;
      max-width: 250px;
    }
    select option { color: #e9f0f8; background: #142744; }
    .session-link-wrap {
      margin-top: 0.9rem;
      border: 1px dashed #3a4f72;
      border-radius: 12px;
      padding: 0.9rem;
      background: #152746;
    }
    .session-link-wrap code {
      color: #d9e7f4;
      word-break: break-all;
      display: block;
      margin-bottom: 0.5rem;
      font-size: 0.8rem;
      background: #142744;
      padding: 0.45rem 0.6rem;
      border-radius: 8px;
      border: 1px solid #263b61;
    }
    #cookie-banner {
      position: fixed; left: 1rem; right: 1rem; bottom: 1rem;
      max-width: 480px; margin: 0 auto;
      background: var(--card-bg); border: 1px solid var(--soft);
      border-radius: 16px;
      padding: 1.1rem 1.2rem; z-index: 9999; display: none;
      box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
    }
    #cookie-banner .inner { display: flex; flex-direction: column; gap: 0.9rem; }
    #cookie-banner .cookie-text { display: flex; gap: 0.6rem; align-items: flex-start; }
    #cookie-banner .cookie-icon { font-size: 1.25rem; line-height: 1; flex-shrink: 0; }
    #cookie-banner p { margin: 0; font-size: 0.85rem; color: var(--text); line-height: 1.5; }
    #cookie-banner a { color: var(--blue-light); font-weight: 600; }
    .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    table {
      width: 100%;
      border-collapse: separate;
      border-spacing: 0;
      font-size: 0.82rem;
      min-width: 600px;
      background: #0d1b32;
      border-radius: 12px;
      overflow: hidden;
    }
    th {
      padding: 0.64rem 0.78rem;
      text-align: left;
      font-size: 0.6rem;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: #9fb6d6;
      border-bottom: 1px solid #263b61;
      font-weight: 700;
    }
    td {
      padding: 0.78rem;
      border-bottom: 1px solid #263b61;
      font-size: 0.78rem;
      color: #e7eef6;
    }
    tr:hover td { background: #172b49; }
    .empty { text-align: center; padding: 2rem; color: #8ea6c6; font-style: italic; }
    #msg-sessione, #msg-attestato { margin-top: 0.8rem; font-size: 0.84rem; min-height: 1rem; font-weight: 600; }
    .policy-footer {
      max-width: 960px;
      margin: 0 auto 1.3rem;
      padding: 0 1rem;
      color: #8ea6c6;
      font-size: 0.84rem;
      text-align: center;
    }
    .policy-footer a {
      color: #8fb5e3;
      font-weight: 600;
      text-underline-offset: 2px;
    }
    .policy-footer a:hover { color: #cfe1f8; }
    @media (max-width: 700px) {
      .form-row { flex-direction: column; }
      .btn-row { flex-direction: column; }
      .btn { text-align: center; width: 100%; }
      .controls { flex-direction: column; align-items: flex-start; }
      select { max-width: 100%; width: 100%; }
      .sess-card h2, .table-header h2 { font-size: 1.5rem; }
      nav { padding: 0.75rem 1rem; flex-wrap: wrap; gap: 0.6rem; }
      .table-wrap { margin: 0 -0.2rem; }
      #cookie-banner .inner { align-items: flex-start; }
    }
  
/* ===== Anteprima dimostrativa ===== */
.demo-ribbon { text-align: center; background: #005687; color: #fff; font-weight: 700; letter-spacing: .08em; font-size: .72rem; padding: 7px 12px; }
.demo-body { pointer-events: none; user-select: none; }
.session-link-wrap { display: block; }
.session-link-wrap .lead { margin-bottom: 0.4rem; }
.cell-num { color: #888; }
.cell-mono { font-family: monospace; }
.cell-muted { color: #8ea6c6; }
.cell-pdf { color: var(--blue-light); font-size: 0.8rem; font-weight: 600; }
.flex2 { flex: 2; }
