/* ===== DME Photo Wall — stile condiviso ===== */
:root {
  --dme-blu: #4A90D9;
  --dme-magenta: #E91E8C;
  --dme-oro: #E8C77E;
  --dme-testo: #2b2b33;
  --dme-testo-chiaro: #6b6b76;
  --dme-sfondo: #faf8fb;
  --dme-bianco: #ffffff;
  --dme-ombra: 0 8px 24px rgba(43, 43, 51, 0.10);
  --dme-radius: 18px;
  --dme-gradiente: linear-gradient(135deg, var(--dme-blu) 0%, var(--dme-magenta) 100%);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--dme-sfondo);
  color: var(--dme-testo);
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

.dme-header {
  background: var(--dme-gradiente);
  padding: 22px 16px 26px;
  text-align: center;
  color: white;
  border-radius: 0 0 28px 28px;
  box-shadow: var(--dme-ombra);
}

.dme-header img.logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  background: white;
  border-radius: 16px;
  padding: 8px;
  margin: 0 auto 10px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}

.dme-header h1 {
  font-family: 'Pacifico', cursive;
  font-size: 1.6rem;
  margin: 0 0 4px;
  font-weight: 400;
}

.dme-header p {
  margin: 0;
  opacity: 0.92;
  font-size: 0.95rem;
}

.dme-container {
  max-width: 560px;
  margin: 0 auto;
  padding: 22px 18px 40px;
}

.dme-card {
  background: var(--dme-bianco);
  border-radius: var(--dme-radius);
  box-shadow: var(--dme-ombra);
  padding: 22px;
  margin-bottom: 18px;
}

.dme-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 15px 18px;
  border: none;
  border-radius: 14px;
  font-size: 1.02rem;
  font-weight: 600;
  cursor: pointer;
  background: var(--dme-gradiente);
  color: white;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 6px 16px rgba(233, 30, 140, 0.25);
}
.dme-btn:active { transform: scale(0.97); }
.dme-btn:disabled { opacity: 0.55; cursor: not-allowed; }

.dme-btn.secondary {
  background: white;
  color: var(--dme-magenta);
  border: 2px solid var(--dme-magenta);
  box-shadow: none;
}

.dme-btn.oro {
  background: linear-gradient(135deg, var(--dme-oro) 0%, #d9a94a 100%);
  color: #402d05;
  box-shadow: 0 6px 16px rgba(232, 199, 126, 0.35);
}

.dme-input, .dme-textarea, select.dme-input {
  width: 100%;
  padding: 13px 14px;
  border-radius: 12px;
  border: 1.5px solid #e4e1ea;
  font-size: 1rem;
  font-family: inherit;
  margin-bottom: 14px;
  background: #fff;
}
.dme-textarea { resize: vertical; min-height: 70px; }
.dme-input:focus, .dme-textarea:focus { outline: none; border-color: var(--dme-magenta); }

label.dme-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dme-testo-chiaro);
  margin-bottom: 6px;
}

.dme-footer {
  text-align: center;
  padding: 26px 18px 40px;
  color: var(--dme-testo-chiaro);
  font-size: 0.85rem;
}
.dme-footer .social {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin: 12px 0;
}
.dme-footer .social a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--dme-gradiente);
  color: white;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
  font-size: 1.1rem;
}
.dme-footer .brand {
  font-family: 'Pacifico', cursive;
  font-size: 1.1rem;
  color: var(--dme-testo);
  margin-top: 4px;
}
.dme-footer .tagline {
  font-size: 0.78rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--dme-testo-chiaro);
  margin-top: 2px;
}

.dme-toast {
  position: fixed;
  bottom: 24px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--dme-testo);
  color: white;
  padding: 13px 20px;
  border-radius: 12px;
  font-size: 0.92rem;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
  z-index: 999;
  max-width: 90%;
  text-align: center;
}
.dme-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.dme-toast.error { background: #c0392b; }
.dme-toast.success { background: #27824a; }

.dme-spinner {
  width: 22px; height: 22px;
  border: 3px solid rgba(255,255,255,0.4);
  border-top-color: white;
  border-radius: 50%;
  animation: dme-spin 0.7s linear infinite;
}
@keyframes dme-spin { to { transform: rotate(360deg); } }

.dme-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.3px;
}
.dme-badge.pending { background: #fff3cd; color: #8a6d00; }
.dme-badge.approved { background: #d4edda; color: #1e6b34; }
.dme-badge.rejected { background: #f8d7da; color: #8a1c1c; }

.intro-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  font-size: 0.95rem;
}
.intro-step .num {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--dme-gradiente);
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}
