/* pe-gru-lab-v2 — Horror Movie Challenge */

@import url("https://fonts.googleapis.com/css2?family=Creepster&family=Montserrat:ital,wght@0,400;0,600;0,700;0,800;1,400&display=swap");

body.page-grugliasco-halloween-laboratorio,
body.page-grugliasco-halloween-gestione,
body.page-grugliasco-halloween-monitor,
body.pe-gru-staff-page,
body.pe-gru-live-page,
body.page-grugliasco-halloween-laboratorio .site,
body.page-grugliasco-halloween-gestione .site,
body.page-grugliasco-halloween-monitor .site,
body.pe-gru-staff-page .site,
body.pe-gru-live-page .site,
body.page-grugliasco-halloween-laboratorio #page,
body.page-grugliasco-halloween-gestione #page,
body.page-grugliasco-halloween-monitor #page,
body.pe-gru-staff-page #page,
body.pe-gru-live-page #page,
body.page-grugliasco-halloween-laboratorio .site-main,
body.page-grugliasco-halloween-gestione .site-main,
body.page-grugliasco-halloween-monitor .site-main,
body.pe-gru-staff-page .site-main,
body.pe-gru-live-page .site-main,
body.pe-gru-staff-page .entry-content,
body.pe-gru-live-page .entry-content,
body.pe-gru-staff-page .elementor-widget-container,
body.pe-gru-live-page .elementor-widget-container {
  background: #07040c !important;
}

body.page-grugliasco-halloween-laboratorio .site-header,
body.page-grugliasco-halloween-gestione .site-header,
body.page-grugliasco-halloween-monitor .site-header,
body.pe-gru-live-page .site-header,
body.page-grugliasco-halloween-laboratorio header.elementor-location-header,
body.page-grugliasco-halloween-gestione header.elementor-location-header,
body.page-grugliasco-halloween-monitor header.elementor-location-header,
body.pe-gru-live-page header.elementor-location-header,
body.page-grugliasco-halloween-laboratorio footer.elementor-location-footer,
body.page-grugliasco-halloween-gestione footer.elementor-location-footer,
body.page-grugliasco-halloween-monitor footer.elementor-location-footer,
body.pe-gru-live-page footer.elementor-location-footer,
body.page-grugliasco-halloween-laboratorio .page-header,
body.page-grugliasco-halloween-gestione .page-header,
body.page-grugliasco-halloween-monitor .page-header,
body.pe-gru-live-page .page-header {
  display: none !important;
}

body.page-grugliasco-halloween-laboratorio .entry-title,
body.page-grugliasco-halloween-gestione .entry-title,
body.page-grugliasco-halloween-monitor .entry-title,
body.pe-gru-staff-page .entry-title,
body.pe-gru-live-page .entry-title {
  display: none !important;
}

body.page-grugliasco-halloween-laboratorio .site-main,
body.page-grugliasco-halloween-laboratorio #content,
body.pe-gru-staff-page .site-main,
body.pe-gru-staff-page #content,
body.pe-gru-staff-page .entry-content,
body.pe-gru-live-page .site-main,
body.pe-gru-live-page #content,
body.pe-gru-live-page .entry-content {
  padding: 0 !important;
  margin: 0 !important;
  max-width: none !important;
}

.pe-gru-event {
  position: relative;
  min-height: 100vh;
  padding: 2rem 1rem 3.5rem;
  color: #f5e6ff;
  font-family: "Montserrat", system-ui, sans-serif;
  overflow: hidden;
}

.pe-gru-event__bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(255, 120, 0, 0.35), transparent 55%),
    radial-gradient(circle at 10% 90%, rgba(180, 0, 40, 0.45), transparent 45%),
    radial-gradient(circle at 90% 80%, rgba(120, 0, 180, 0.35), transparent 40%),
    linear-gradient(165deg, #120818 0%, #07040c 45%, #1a0508 100%);
}

.pe-gru-event__veil {
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.12;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}

.pe-gru-shell {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
}

.pe-gru-hero {
  text-align: center;
  margin-bottom: 1.75rem;
}

.pe-gru-logo {
  width: min(200px, 70vw);
  height: auto;
  margin: 0 auto 1rem;
  display: block;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.5));
}

.pe-gru-eyebrow {
  display: inline-block;
  margin: 0 0 0.75rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ffb347;
  background: rgba(255, 120, 0, 0.15);
  border: 1px solid rgba(255, 160, 60, 0.35);
}

.pe-gru-title {
  font-family: "Creepster", system-ui;
  font-size: clamp(2.4rem, 9vw, 3.75rem);
  font-weight: 400;
  line-height: 1.05;
  margin: 0 0 0.65rem;
  color: #fff;
  text-shadow:
    0 0 20px rgba(255, 80, 0, 0.65),
    0 4px 0 #4a0510,
    0 0 60px rgba(180, 0, 60, 0.4);
}

.pe-gru-title span {
  color: #ff6b2c;
}

.pe-gru-tagline {
  margin: 0 auto 1rem;
  max-width: 36rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(245, 230, 255, 0.88);
}

.pe-gru-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.pe-gru-pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.45rem 0.75rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e8d4ff;
}

.pe-gru-rounds-card {
  background: linear-gradient(145deg, rgba(40, 8, 20, 0.85), rgba(20, 6, 30, 0.92));
  border: 1px solid rgba(255, 100, 40, 0.25);
  border-radius: 18px;
  padding: 1.15rem 1.25rem;
  margin-bottom: 1.75rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.pe-gru-rounds-card h2 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #ff9f43;
  margin: 0 0 0.85rem;
}

.pe-gru-round {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 0.65rem 0.85rem;
  align-items: start;
  padding: 0.65rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.pe-gru-round:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.pe-gru-round__num {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  color: #1a0510;
  background: linear-gradient(135deg, #ffc629, #ff6b2c);
  box-shadow: 0 4px 16px rgba(255, 100, 0, 0.35);
}

.pe-gru-round strong {
  display: block;
  color: #fff;
  margin-bottom: 0.2rem;
  font-size: 0.92rem;
}

.pe-gru-round p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: rgba(230, 210, 245, 0.82);
}

.pe-gru-panel {
  background: linear-gradient(160deg, rgba(30, 10, 35, 0.95), rgba(15, 5, 20, 0.98));
  border: 2px solid rgba(255, 140, 50, 0.35);
  border-radius: 22px;
  padding: 1.35rem 1.25rem 1.5rem;
  box-shadow:
    0 0 0 1px rgba(255, 80, 0, 0.15) inset,
    0 24px 60px rgba(0, 0, 0, 0.55);
}

.pe-gru-panel__head {
  text-align: center;
  margin-bottom: 1.25rem;
}

.pe-gru-panel__icon {
  font-size: 2.5rem;
  line-height: 1;
  margin-bottom: 0.35rem;
  filter: drop-shadow(0 0 12px rgba(255, 100, 0, 0.6));
}

.pe-gru-panel__head h2 {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
}

.pe-gru-panel__head p {
  margin: 0;
  font-size: 0.88rem;
  color: rgba(230, 210, 245, 0.75);
}

.pe-gru-countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  max-width: 420px;
  margin: 1rem auto 0;
}

.pe-gru-countdown__unit {
  text-align: center;
  padding: 0.65rem 0.35rem;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 120, 40, 0.35);
}

.pe-gru-countdown__unit span {
  display: block;
  font-size: 1.65rem;
  font-weight: 800;
  color: #ffc629;
  text-shadow: 0 0 16px rgba(255, 180, 0, 0.5);
  font-variant-numeric: tabular-nums;
}

.pe-gru-countdown__unit small {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(230, 210, 245, 0.65);
}

.pe-gru-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.pe-gru-fieldset {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 1rem 1rem 1.1rem;
  margin: 0;
  background: rgba(0, 0, 0, 0.25);
}

.pe-gru-fieldset legend {
  font-weight: 800;
  padding: 0 0.4rem;
  color: #ff9f43;
  font-size: 0.88rem;
}

.pe-gru-grid {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.65rem;
}

@media (min-width: 560px) {
  .pe-gru-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.pe-gru-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(245, 230, 255, 0.92);
}

.pe-gru-form input[type="text"],
.pe-gru-form input[type="email"],
.pe-gru-form input[type="tel"],
.pe-gru-form input[type="number"],
.pe-gru-form select {
  font: inherit;
  font-weight: 500;
  padding: 0.7rem 0.8rem;
  border: 1px solid rgba(255, 140, 60, 0.25);
  border-radius: 12px;
  width: 100%;
  box-sizing: border-box;
  background: rgba(10, 5, 15, 0.85);
  color: #fff;
}

.pe-gru-form input:focus,
.pe-gru-form select:focus {
  outline: none;
  border-color: #ff9f43;
  box-shadow: 0 0 0 3px rgba(255, 140, 60, 0.2);
}

.pe-gru-legal-text {
  font-size: 0.78rem;
  line-height: 1.55;
  color: rgba(220, 200, 235, 0.85);
  max-height: 200px;
  overflow-y: auto;
  padding: 0.65rem 0.75rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  margin: 0.55rem 0;
}

.pe-gru-legal-text a {
  color: #ffb347;
}

.pe-gru-check {
  flex-direction: row !important;
  align-items: flex-start;
  gap: 0.55rem !important;
  font-weight: 500 !important;
  font-size: 0.8rem !important;
}

.pe-gru-check input {
  margin-top: 0.15rem;
  width: auto;
  accent-color: #ff6b2c;
}

.pe-gru-note {
  font-size: 0.75rem;
  color: rgba(200, 180, 220, 0.7);
  margin: 0.35rem 0 0;
}

.pe-gru-submit {
  align-self: stretch;
  padding: 1rem 1.25rem;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #ffc629 0%, #ff6b2c 100%);
  color: #1a0510;
  cursor: pointer;
  box-shadow: 0 8px 28px rgba(255, 100, 0, 0.45);
  transition: transform 0.15s ease, filter 0.15s ease;
}

.pe-gru-submit:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.pe-gru-submit:disabled {
  cursor: not-allowed;
  opacity: 0.72;
  background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
  color: #f3f4f6;
  box-shadow: none;
}

.pe-gru-form--locked {
  margin-top: 1.25rem;
  padding-top: 0.25rem;
  border-top: 1px dashed rgba(255, 160, 60, 0.35);
}

.pe-gru-form--locked.pe-gru-form--unlocked .pe-gru-submit:disabled {
  opacity: 1;
}

.pe-gru-alert {
  border-radius: 14px;
  padding: 1rem 1.1rem;
  margin-bottom: 1.1rem;
  line-height: 1.5;
  font-size: 0.9rem;
}

.pe-gru-alert--info {
  background: rgba(60, 30, 100, 0.5);
  border: 1px solid rgba(180, 120, 255, 0.35);
}

.pe-gru-alert--warn {
  background: rgba(80, 30, 10, 0.55);
  border: 1px solid rgba(255, 140, 60, 0.4);
}

.pe-gru-alert--ok {
  background: rgba(10, 60, 40, 0.55);
  border: 1px solid rgba(80, 220, 140, 0.35);
}

.pe-gru-alert--err {
  background: rgba(80, 10, 20, 0.55);
  border: 1px solid rgba(255, 80, 100, 0.4);
}

.pe-gru-open-badge {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1a0510;
  background: #7dff9a;
  animation: pe-gru-pulse 2s ease-in-out infinite;
}

@keyframes pe-gru-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(125, 255, 154, 0.45);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(125, 255, 154, 0);
  }
}

.pe-gru-hp {
  position: absolute;
  left: -9999px;
  height: 0;
  width: 0;
  opacity: 0;
}

.pe-gru-foot {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.75rem;
  color: rgba(180, 160, 200, 0.55);
}

.pe-gru-foot a {
  color: #ffb347;
}

/* Dashboard animatore — layout autonomo (leggibile anche se il tema resta bianco) */
.pe-gru-staff-app {
  position: relative;
  box-sizing: border-box;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  min-height: 100vh;
  padding: 1.5rem 1rem 3rem;
  color: #f8f4ff;
  font-family: "Montserrat", system-ui, sans-serif;
  overflow: hidden;
}

.pe-gru-staff-app__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 70% 45% at 50% 0%, rgba(255, 120, 0, 0.28), transparent 55%),
    radial-gradient(circle at 0% 100%, rgba(140, 0, 60, 0.35), transparent 50%),
    linear-gradient(165deg, #1a0a24 0%, #0a0612 50%, #120608 100%);
}

.pe-gru-staff-app__veil {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.08;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}

.pe-gru-staff-app__content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
}

.pe-gru-staff-app__logo {
  display: block;
  width: min(140px, 42vw);
  height: auto;
  margin: 0 auto 1rem;
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.45));
}

.pe-gru-staff-app h1,
.pe-gru-staff-app h2,
.pe-gru-staff-app p,
.pe-gru-staff-app label,
.pe-gru-staff-app span,
.pe-gru-staff-app small {
  color: inherit;
}

.pe-gru-staff {
  color: #f8f4ff;
}

.pe-gru-staff-login {
  background: #1e1028;
  border: 2px solid rgba(255, 159, 67, 0.55);
  border-radius: 20px;
  padding: 1.5rem 1.25rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.pe-gru-staff-login h1 {
  margin: 0 0 0.5rem;
  font-family: "Creepster", cursive;
  font-size: 1.75rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: #ffc629;
  text-shadow: 0 2px 12px rgba(255, 100, 0, 0.35);
}

.pe-gru-staff-login > p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: #e8dcf5;
}

.pe-gru-staff-login label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin: 1.15rem 0 0.75rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
}

.pe-gru-staff-login input[type="password"] {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 2px solid rgba(255, 159, 67, 0.45);
  background: #0d0614;
  color: #fff;
  font-size: 1.05rem;
  letter-spacing: 0.12em;
}

.pe-gru-staff-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.15rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 159, 67, 0.25);
}

.pe-gru-staff-head h1 {
  margin: 0;
  font-family: "Creepster", cursive;
  font-size: 1.65rem;
  font-weight: 400;
  color: #ffc629;
  letter-spacing: 0.03em;
}

.pe-gru-staff-head p {
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
  color: #e0d4ef;
}

.pe-gru-staff-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1.35rem;
}

.pe-gru-staff-stats div {
  background: #1a1022;
  border: 2px solid rgba(255, 198, 41, 0.35);
  border-radius: 14px;
  padding: 0.85rem 0.75rem;
  text-align: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.pe-gru-staff-stats strong {
  display: block;
  font-size: 2rem;
  line-height: 1.1;
  color: #ffc629;
}

.pe-gru-staff-stats span {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #c9b8dc;
}

.pe-gru-staff-h2 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #ff9f43;
  margin: 1.35rem 0 0.75rem;
}

.pe-gru-staff-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pe-gru-staff-chip {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  padding: 0.55rem 0.75rem;
  border-radius: 12px;
  background: #221530;
  border: 2px solid rgba(200, 170, 230, 0.35);
  color: #fff;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.25;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.pe-gru-staff-chip small {
  font-weight: 600;
  font-size: 0.72rem;
  color: #ffc629;
}

.pe-gru-staff-chip:hover {
  border-color: #ff9f43;
  background: #2a1a38;
}

.pe-gru-staff-chip.is-active {
  border-color: #ffc629;
  background: linear-gradient(145deg, #3d2418, #2a1830);
  box-shadow: 0 0 0 1px rgba(255, 198, 41, 0.25);
}

.pe-gru-staff-card {
  background: #1a1022;
  border: 2px solid rgba(200, 170, 230, 0.22);
  border-radius: 16px;
  padding: 1rem 1.05rem;
  margin-bottom: 0.85rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.pe-gru-staff-card.is-checked {
  border-color: rgba(100, 220, 140, 0.65);
  background: linear-gradient(160deg, #142018 0%, #1a1022 100%);
}

.pe-gru-staff-card__top {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.82rem;
  margin-bottom: 0.45rem;
  color: #c9b8dc;
}

.pe-gru-staff-card__top strong {
  color: #ffc629;
  font-size: 0.85rem;
}

.pe-gru-staff-card__name {
  margin: 0 0 0.35rem;
  font-weight: 800;
  font-size: 1.08rem;
  color: #fff;
}

.pe-gru-staff-card__parent,
.pe-gru-staff-card__contact,
.pe-gru-staff-card__meta {
  margin: 0 0 0.3rem;
  font-size: 0.86rem;
  color: #e8dcf5;
  line-height: 1.4;
}

.pe-gru-staff-card__contact a {
  color: #ffb347;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.pe-gru-staff-card__form {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px dashed rgba(255, 159, 67, 0.35);
}

.pe-gru-staff-check {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.55rem;
  color: #fff;
}

.pe-gru-staff-check input {
  width: 1.15rem;
  height: 1.15rem;
  accent-color: #ffc629;
}

.pe-gru-staff-card__form textarea {
  width: 100%;
  box-sizing: border-box;
  margin: 0.35rem 0 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  border: 2px solid rgba(255, 159, 67, 0.35);
  background: #0d0614;
  color: #fff;
  font: inherit;
  line-height: 1.4;
}

.pe-gru-staff-card__form textarea::placeholder {
  color: rgba(200, 180, 220, 0.55);
}

.pe-gru-staff-btn {
  display: inline-block;
  padding: 0.7rem 1.15rem;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #ffc629 0%, #ff6b2c 100%);
  color: #1a0510;
  font-weight: 800;
  font-size: 0.88rem;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(255, 107, 44, 0.35);
}

.pe-gru-staff-btn--ghost {
  background: transparent;
  border: 2px solid rgba(255, 198, 41, 0.55);
  color: #ffc629;
  box-shadow: none;
}

.pe-gru-staff-msg {
  padding: 0.7rem 0.9rem;
  border-radius: 12px;
  font-size: 0.88rem;
  color: #fff;
}

.pe-gru-staff-msg--err {
  background: #4a1520;
  border: 2px solid rgba(255, 120, 120, 0.55);
}

.pe-gru-staff-msg--ok {
  background: #153526;
  border: 2px solid rgba(100, 220, 140, 0.45);
}

.pe-gru-staff-empty {
  font-size: 0.92rem;
  color: #e8dcf5;
  padding: 0.75rem 0;
}

.pe-gru-staff-refresh {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-top: 1.25rem;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  font-size: 0.8rem;
  line-height: 1.45;
  color: #d4c4e8;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 159, 67, 0.2);
}

.pe-gru-staff-live {
  flex-shrink: 0;
  width: 0.55rem;
  height: 0.55rem;
  margin-top: 0.35rem;
  border-radius: 50%;
  background: #5cff8a;
  box-shadow: 0 0 8px rgba(92, 255, 138, 0.75);
  animation: pe-gru-staff-pulse 1.6s ease-in-out infinite;
}

@keyframes pe-gru-staff-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.55;
    transform: scale(0.85);
  }
}

/* Monitor live — posti liberi (TV / schermo evento) */
.pe-gru-live {
  position: relative;
  box-sizing: border-box;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  min-height: 100vh;
  padding: clamp(1rem, 2vw, 2rem) clamp(1rem, 3vw, 2.5rem) 1.5rem;
  color: #f8f4ff;
  font-family: "Montserrat", system-ui, sans-serif;
  overflow: hidden;
}

.pe-gru-live__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 90% 55% at 50% -5%, rgba(255, 110, 0, 0.32), transparent 58%),
    radial-gradient(circle at 100% 100%, rgba(160, 0, 80, 0.28), transparent 45%),
    linear-gradient(160deg, #1c0a28 0%, #08040f 55%, #140508 100%);
}

.pe-gru-live__veil {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}

.pe-gru-live__inner {
  position: relative;
  z-index: 1;
  max-width: 1400px;
  margin: 0 auto;
}

.pe-gru-live__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-bottom: clamp(1rem, 2.5vw, 1.75rem);
}

.pe-gru-live__brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.pe-gru-live__logo {
  width: clamp(72px, 8vw, 110px);
  height: auto;
  filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.45));
}

.pe-gru-live__eyebrow {
  margin: 0;
  font-size: clamp(0.75rem, 1.2vw, 0.9rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffb347;
}

.pe-gru-live__title {
  margin: 0.15rem 0 0;
  font-family: "Creepster", cursive;
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 400;
  line-height: 1;
  color: #ffc629;
  text-shadow: 0 4px 24px rgba(255, 100, 0, 0.35);
}

.pe-gru-live__meta {
  text-align: right;
}

.pe-gru-live__clock {
  margin: 0 0 0.45rem;
  font-size: clamp(1.5rem, 3.5vw, 2.35rem);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #fff;
  letter-spacing: 0.04em;
}

.pe-gru-live__pill {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.pe-gru-live__pill--open {
  background: rgba(92, 255, 138, 0.15);
  border: 2px solid rgba(92, 255, 138, 0.55);
  color: #9dffb8;
}

.pe-gru-live__pill--before {
  background: rgba(255, 198, 41, 0.12);
  border: 2px solid rgba(255, 198, 41, 0.5);
  color: #ffc629;
}

.pe-gru-live__pill--after {
  background: rgba(255, 100, 100, 0.12);
  border: 2px solid rgba(255, 120, 120, 0.45);
  color: #ffb0b0;
}

.pe-gru-live__hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: clamp(1rem, 2vw, 1.5rem);
}

@media (max-width: 720px) {
  .pe-gru-live__hero {
    grid-template-columns: 1fr;
  }
}

.pe-gru-live__total-wrap,
.pe-gru-live__cta {
  background: rgba(0, 0, 0, 0.35);
  border: 2px solid rgba(255, 159, 67, 0.35);
  border-radius: 20px;
  padding: clamp(1rem, 2vw, 1.35rem) clamp(1.1rem, 2.5vw, 1.5rem);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.pe-gru-live__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(0.75rem, 2vw, 1.25rem);
}

.pe-gru-live__cta-text {
  flex: 1;
  min-width: 0;
}

.pe-gru-live__cta-qr {
  flex-shrink: 0;
  text-align: center;
}

.pe-gru-live__cta-qr-img {
  display: block;
  width: clamp(108px, 14vw, 152px);
  height: auto;
  margin: 0 auto;
  padding: 8px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.4);
}

.pe-gru-live__cta-qr-cap {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ffc629;
}

.pe-gru-live__total-label {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #d4c4e8;
}

.pe-gru-live__total {
  margin: 0.35rem 0 0;
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.pe-gru-live__total-num {
  font-size: clamp(3rem, 10vw, 5.5rem);
  font-weight: 800;
  line-height: 1;
  color: #ffc629;
  text-shadow: 0 0 40px rgba(255, 198, 41, 0.35);
}

.pe-gru-live__total-num.is-pop {
  animation: pe-gru-live-pop 0.45s ease;
}

.pe-gru-live__total-of {
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  font-weight: 600;
  color: #c9b8dc;
}

.pe-gru-live__cta-label {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #ffb347;
}

.pe-gru-live__cta-url {
  margin: 0.35rem 0 0.65rem;
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  font-weight: 800;
  color: #fff;
  word-break: break-word;
}

.pe-gru-live__cta-link {
  display: inline-block;
  padding: 0.55rem 1rem;
  border-radius: 12px;
  background: linear-gradient(135deg, #ffc629, #ff6b2c);
  color: #1a0510;
  font-weight: 800;
  font-size: 0.85rem;
  text-decoration: none;
}

.pe-gru-live__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.65rem, 1.5vw, 1rem);
}

@media (max-width: 960px) {
  .pe-gru-live__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .pe-gru-live__grid {
    grid-template-columns: 1fr;
  }
}

.pe-gru-live-card {
  background: #1a1022;
  border: 2px solid rgba(200, 170, 230, 0.28);
  border-radius: 18px;
  padding: clamp(0.75rem, 1.5vw, 1rem);
  text-align: center;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.pe-gru-live-card.is-hot {
  border-color: rgba(255, 159, 67, 0.75);
  box-shadow: 0 0 24px rgba(255, 120, 0, 0.25);
  animation: pe-gru-live-glow 2s ease-in-out infinite;
}

.pe-gru-live-card.is-full {
  border-color: rgba(255, 100, 100, 0.45);
  background: linear-gradient(165deg, #2a1018 0%, #1a1022 100%);
  opacity: 0.92;
}

.pe-gru-live-card.is-bump {
  animation: pe-gru-live-bump 0.55s ease;
}

.pe-gru-live-card__time {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin-bottom: 0.65rem;
  font-weight: 800;
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  color: #fff;
}

.pe-gru-live-card__sep {
  color: #ff9f43;
  font-weight: 700;
}

.pe-gru-live-card__seats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem;
  margin-bottom: 0.65rem;
}

.pe-gru-live-seat {
  width: clamp(14px, 2.2vw, 20px);
  height: clamp(14px, 2.2vw, 20px);
  border-radius: 4px;
  transition: background 0.35s ease, transform 0.35s ease;
}

.pe-gru-live-seat.is-free {
  background: linear-gradient(145deg, #ffc629, #ff9f43);
  box-shadow: 0 0 8px rgba(255, 198, 41, 0.35);
}

.pe-gru-live-seat.is-taken {
  background: #3a2a48;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.pe-gru-live-card__status {
  margin: 0;
  line-height: 1.2;
}

.pe-gru-live-card__num {
  display: block;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: #ffc629;
}

.pe-gru-live-card__label {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #e0d4ef;
}

.pe-gru-live-card__full {
  display: block;
  font-size: clamp(1.1rem, 2.5vw, 1.45rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ff8080;
}

.pe-gru-live__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1.25rem;
  margin-top: clamp(1rem, 2vw, 1.35rem);
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 159, 67, 0.2);
  font-size: 0.78rem;
  color: #c9b8dc;
}

.pe-gru-live__pulse {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #5cff8a;
  box-shadow: 0 0 10px rgba(92, 255, 138, 0.8);
  animation: pe-gru-staff-pulse 1.5s ease-in-out infinite;
}

.pe-gru-live__hint {
  margin-left: auto;
  opacity: 0.85;
}

@media (max-width: 640px) {
  .pe-gru-live__hint {
    margin-left: 0;
    width: 100%;
  }
}

@keyframes pe-gru-live-pop {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.08);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes pe-gru-live-bump {
  0% {
    transform: scale(1);
  }
  35% {
    transform: scale(1.03);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes pe-gru-live-glow {
  0%,
  100% {
    box-shadow: 0 0 18px rgba(255, 120, 0, 0.2);
  }
  50% {
    box-shadow: 0 0 28px rgba(255, 160, 60, 0.45);
  }
}

/* Monitor incorporato in pagina iscrizioni */
.pe-gru-shell .pe-gru-live--embed {
  width: 100%;
  max-width: none;
  margin: 2rem 0 0;
  min-height: 0;
  padding: 1.25rem 0 0.5rem;
  border-top: 1px solid rgba(255, 159, 67, 0.25);
}

.pe-gru-live--embed .pe-gru-live__inner {
  max-width: 820px;
}

.pe-gru-live--embed .pe-gru-live__hero {
  grid-template-columns: 1fr;
}

.pe-gru-live--embed .pe-gru-live__total-num {
  font-size: clamp(2.25rem, 8vw, 3.5rem);
}

.pe-gru-live__title--embed {
  margin: 0;
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 1.15rem !important;
  font-weight: 800 !important;
  color: #ffc629 !important;
  text-shadow: none;
}

.pe-gru-live__hint--link {
  margin-left: auto;
  color: #ffb347;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}
