.mc-radice {
  --mc-fondo: rgba(11, 12, 20, .96);
  --mc-testo: #f5f2f7;
  --mc-tenue: #a5a2b8;
  --mc-linea: rgba(255, 255, 255, .14);
  --mc-magenta: #ff38db;
  --mc-magenta-2: #ff7ae5;
  --mc-cyan: #4de2ff;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2147483000;
  display: none;
  justify-content: center;
  padding: 0 .75rem .75rem;
  pointer-events: none;
  font-family: var(--font-body, system-ui, -apple-system, 'Segoe UI', sans-serif);
}

.mc-radice--aperta {
  display: flex;
}

.mc-scheda {
  pointer-events: auto;
  box-sizing: border-box;
  width: min(100%, 36rem);
  max-height: min(82vh, 42rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  margin: 0;
  padding: 1.1rem 1.2rem 1.2rem;
  color: var(--mc-testo);
  background: var(--mc-fondo);
  border: 1px solid rgba(255, 122, 229, .55);
  border-radius: 18px;
  box-shadow:
    0 0 0 1px rgba(255, 56, 219, .18),
    0 0 28px rgba(255, 56, 219, .28),
    0 18px 48px rgba(0, 0, 0, .6);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  animation: mc-entra .26s cubic-bezier(.22, 1, .36, 1);
}

.mc-titolo {
  margin: 0 0 .5rem;
  font-family: var(--font-display, Oswald, Impact, sans-serif);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  line-height: 1.2;
  color: var(--mc-testo);
}

.mc-testo,
.mc-riga {
  margin: 0 0 .65rem;
  font-size: .92rem;
  line-height: 1.55;
}

.mc-tenue {
  color: var(--mc-tenue);
  font-size: .84rem;
}

.mc-dettagli {
  margin: .5rem 0 .8rem;
  border-top: 1px solid var(--mc-linea);
}

.mc-servizio {
  padding: .75rem .6rem .25rem;
  border-bottom: 1px solid var(--mc-linea);
}

.mc-servizio--richiesto {
  border-radius: 12px;
  background: rgba(255, 56, 219, .08);
  box-shadow: inset 0 0 0 1px rgba(255, 122, 229, .45);
}

.mc-servizio-testa {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .35rem;
}

.mc-nome {
  font-family: var(--font-display, Oswald, Impact, sans-serif);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.mc-etichetta {
  flex: 1;
  cursor: pointer;
}

.mc-elenco {
  margin: 0 0 .65rem;
  padding-left: 1.1rem;
  font-size: .84rem;
  line-height: 1.6;
  color: var(--mc-tenue);
}

.mc-codice {
  font-family: var(--font-mono, ui-monospace, Consolas, monospace);
  font-size: .78rem;
  color: var(--mc-cyan);
  overflow-wrap: anywhere;
}

.mc-link {
  color: var(--mc-magenta-2);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.mc-link:hover {
  color: var(--mc-testo);
}

.mc-interruttore {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  flex: none;
  width: 2.8rem;
  height: 1.5rem;
  margin: 0;
  cursor: pointer;
  border: 1px solid var(--mc-linea);
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  transition: background .16s, border-color .16s, box-shadow .16s;
}

.mc-interruttore::after {
  content: '';
  position: absolute;
  top: 50%;
  left: .2rem;
  width: .95rem;
  height: .95rem;
  margin-top: -.475rem;
  border-radius: 50%;
  background: var(--mc-tenue);
  transition: transform .16s, background .16s;
}

.mc-interruttore:checked {
  background: rgba(255, 56, 219, .35);
  border-color: var(--mc-magenta-2);
  box-shadow: 0 0 14px rgba(255, 56, 219, .45);
}

.mc-interruttore:checked::after {
  transform: translateX(1.28rem);
  background: var(--mc-testo);
}

.mc-barra {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: .5rem;
}

.mc-btn {
  flex: 1 1 auto;
  min-height: 2.6rem;
  padding: .6rem 1rem;
  cursor: pointer;
  font-family: var(--font-display, Oswald, Impact, sans-serif);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .14em;
  line-height: 1;
  text-transform: uppercase;
  color: #06060b;
  background-image: linear-gradient(135deg, #ff38db 0%, #ff7ae5 48%, #f49aa5 100%);
  border: 1px solid rgba(255, 122, 229, .85);
  border-radius: 999px;
  box-shadow: 0 0 16px rgba(255, 56, 219, .35);
  transition: filter .2s, transform .2s;
}

.mc-btn--bordo {
  color: var(--mc-testo);
  background: rgba(255, 255, 255, .04);
  border-color: var(--mc-linea);
  box-shadow: none;
}

.mc-btn:hover {
  filter: brightness(1.1);
}

.mc-btn:active {
  transform: translateY(1px);
}

.mc-btn:focus-visible,
.mc-interruttore:focus-visible,
.mc-link:focus-visible {
  outline: 3px solid var(--mc-cyan);
  outline-offset: 2px;
}

@keyframes mc-entra {
  from {
    opacity: 0;
    transform: translateY(.7rem);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mc-scheda {
    animation: none;
  }
  .mc-interruttore,
  .mc-interruttore::after,
  .mc-btn {
    transition: none;
  }
}

@media (max-width: 560px) {
  .mc-radice {
    padding: 0 .5rem .5rem;
  }
  .mc-scheda {
    padding: 1rem;
    max-height: 86vh;
  }
  .mc-btn {
    flex: 1 1 100%;
  }
}

@media print {
  .mc-radice {
    display: none !important;
  }
}

.cp {
  padding-block: calc(var(--nav-h, 62px) + clamp(2rem, 1rem + 4vw, 4rem)) var(--section-py, 5rem);
}

.cp__corpo {
  display: grid;
  gap: var(--gap-card, 1.25rem);
  max-width: 60rem;
}

.cp__blocco {
  padding: var(--pad-card, 1.5rem);
}

.cp__titolo {
  margin: 0 0 .7rem;
  font-family: var(--font-display, Oswald, Impact, sans-serif);
  font-size: var(--fs-h3, 1.5rem);
  font-weight: 600;
  letter-spacing: var(--ls-title, .03em);
  text-transform: uppercase;
  line-height: 1.2;
}

.cp__testo {
  margin: 0 0 .8rem;
  color: var(--text-muted, #a5a2b8);
  line-height: var(--lh-body, 1.68);
  max-width: var(--content-measure, 68ch);
}

.cp__testo:last-child {
  margin-bottom: 0;
}

.cp__testo a {
  color: var(--mob-magenta-2, #ff7ae5);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cp__testo a:hover {
  color: var(--text, #f5f2f7);
}

.cp__tabella {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-small, .92rem);
}

.cp__tabella th,
.cp__tabella td {
  padding: .65rem .7rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line, rgba(255, 255, 255, .09));
}

.cp__tabella th {
  font-family: var(--font-display, Oswald, Impact, sans-serif);
  font-size: var(--fs-label, .78rem);
  font-weight: 500;
  letter-spacing: var(--ls-label, .16em);
  text-transform: uppercase;
  color: var(--text, #f5f2f7);
}

.cp__tabella td {
  color: var(--text-muted, #a5a2b8);
}

.cp__tabella code {
  font-family: var(--font-mono, ui-monospace, Consolas, monospace);
  font-size: .82em;
  color: var(--mob-cyan, #4de2ff);
  overflow-wrap: anywhere;
}

.cp__scorri {
  overflow-x: auto;
}

.cp__stato {
  margin: 0 0 1rem;
  padding: .7rem .9rem;
  border: 1px solid var(--line-strong, rgba(255, 255, 255, .16));
  border-radius: var(--r-md, 18px);
  background: rgba(255, 255, 255, .03);
  color: var(--text, #f5f2f7);
  font-size: var(--fs-small, .92rem);
  line-height: 1.55;
}

.cp__comandi {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}

@media (max-width: 640px) {
  .cp__tabella thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
  .cp__tabella,
  .cp__tabella tbody,
  .cp__tabella tr,
  .cp__tabella td {
    display: block;
    width: 100%;
  }
  .cp__tabella tr {
    padding: .5rem 0;
    border-bottom: 1px solid var(--line, rgba(255, 255, 255, .09));
  }
  .cp__tabella td {
    padding: .2rem .1rem;
    border: 0;
  }
}

.live__consenso {
  display: grid;
  place-items: center;
  align-content: center;
  gap: .8rem;
  height: 100%;
  min-height: 12rem;
  padding: 1.2rem;
  text-align: center;
  color: var(--text-muted, #a5a2b8);
  font-size: var(--fs-small, .92rem);
  line-height: 1.55;
}

.live__consenso p {
  margin: 0;
  max-width: 24ch;
}
