/* Pagina manutenzione — allineata allo stile pagina 404 (notice) */

body.notice-page main.notice-main:has(.rh-mt-root) {
  align-items: stretch !important;
}

.rh-mt-root {
  position: relative;
  width: 100%;
  min-height: 100%;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

.rh-mt-scene {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(2rem, 5vw, 3.5rem) 1.5rem;
  max-width: 520px;
  width: 100%;
  margin: 0 auto;
  z-index: 1;
  flex: 1 1 auto;
  min-height: min(100vh, 640px);
}

.rh-mt-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: radial-gradient(circle, #cbd5e1 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.4;
}

.rh-mt-bg {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.rh-mt-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
}

.rh-mt-blob-1 {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, #c7d2fe, #ede9fe);
  top: -100px;
  left: -80px;
}

.rh-mt-blob-2 {
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, #ddd6fe, #fbcfe8);
  bottom: -80px;
  right: -60px;
}

.rh-mt-blob-3 {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, #bae6fd, #c7d2fe);
  top: 40%;
  left: 60%;
  opacity: 0.3;
}

.rh-mt-floats {
  position: relative;
  width: 220px;
  height: 140px;
  margin: 0 auto 2rem;
}

.rh-mt-float-card {
  position: absolute;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(79, 70, 229, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(79, 70, 229, 0.08);
  animation: rh-mt-float 4s ease-in-out infinite;
}

.rh-mt-float-card:nth-child(1) {
  width: 80px;
  height: 80px;
  top: 0;
  left: 20px;
  animation-delay: 0s;
}

.rh-mt-float-card:nth-child(2) {
  width: 64px;
  height: 64px;
  top: 8px;
  right: 10px;
  animation-delay: 0.8s;
}

.rh-mt-float-card:nth-child(3) {
  width: 52px;
  height: 52px;
  bottom: 0;
  left: 70px;
  animation-delay: 1.6s;
}

.rh-mt-float-card i {
  font-size: 1.6rem;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.rh-mt-float-card:nth-child(2) i {
  font-size: 1.3rem;
}

.rh-mt-float-card:nth-child(3) i {
  font-size: 1.1rem;
}

@keyframes rh-mt-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.rh-mt-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #4f46e5;
  background: #eef2ff;
  border: 1px solid rgba(99, 102, 241, 0.2);
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}

.rh-mt-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 0.75rem;
  line-height: 1.25;
}

.rh-mt-divider {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.rh-mt-divider span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  opacity: 0.25;
}

.rh-mt-divider span:nth-child(2) {
  opacity: 0.5;
  width: 10px;
  height: 10px;
}

.rh-mt-divider span:nth-child(3) {
  opacity: 1;
  width: 12px;
  height: 12px;
}

.rh-mt-divider span:nth-child(4) {
  opacity: 0.5;
  width: 10px;
  height: 10px;
}

.rh-mt-divider span:nth-child(5) {
  opacity: 0.25;
  width: 8px;
  height: 8px;
}

.rh-mt-text {
  font-size: 0.92rem;
  color: #64748b;
  line-height: 1.7;
  margin: 0 0 1.75rem;
  max-width: 420px;
}

.rh-mt-window {
  width: 100%;
  max-width: 380px;
  text-align: left;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1rem 1.15rem;
  margin: 0 0 1.75rem;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
}

.rh-mt-window-row {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.5rem 0;
}

.rh-mt-window-row + .rh-mt-window-row {
  border-top: 1px solid #f1f5f9;
  margin-top: 0.25rem;
  padding-top: 0.75rem;
}

.rh-mt-window-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
}

.rh-mt-window-value {
  font-size: 0.95rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #0f172a;
}

.rh-mt-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.rh-mt-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 14px;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: #fff !important;
  text-decoration: none !important;
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(79, 70, 229, 0.35);
  transition: box-shadow 0.22s ease, transform 0.22s ease;
}

.rh-mt-btn-primary:hover {
  box-shadow: 0 8px 30px rgba(79, 70, 229, 0.5);
  transform: translateY(-2px);
  color: #fff !important;
}

/* Dark mode */
html.dark-mode .rh-mt-grid {
  opacity: 0.12;
}

html.dark-mode .rh-mt-blob-1 {
  opacity: 0.2;
}

html.dark-mode .rh-mt-blob-2 {
  opacity: 0.15;
}

html.dark-mode .rh-mt-float-card {
  background: #1e1b4b;
  border-color: rgba(129, 140, 248, 0.15);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

html.dark-mode .rh-mt-title {
  color: #f1f5f9;
}

html.dark-mode .rh-mt-text {
  color: #94a3b8;
}

html.dark-mode .rh-mt-kicker {
  background: rgba(79, 70, 229, 0.2);
  border-color: rgba(129, 140, 248, 0.25);
  color: #a5b4fc;
}

html.dark-mode .rh-mt-window {
  background: rgba(30, 27, 75, 0.6);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

html.dark-mode .rh-mt-window-row + .rh-mt-window-row {
  border-top-color: rgba(255, 255, 255, 0.06);
}

html.dark-mode .rh-mt-window-label {
  color: #94a3b8;
}

html.dark-mode .rh-mt-window-value {
  color: #e2e8f0;
}
