/*
 * ListMonk — CSS pagine pubbliche (form iscrizione, opt-in, gestione)
 * Incollare in: Admin ListMonk → Settings → Appearance → Public → Custom CSS
 *
 * Impostazioni consigliate nella stessa schermata:
 *   Logo URL:    https://iotsrl.it/immagini/iot_contour.png
 *   Favicon URL: https://iotsrl.it/favicon.ico
 *   Site name:   IOT Srl
 */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600&display=swap');

html,
body {
  min-height: 100%;
  background: #03030a;
  background-image:
    linear-gradient(rgba(79, 140, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79, 140, 255, 0.04) 1px, transparent 1px),
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(79, 140, 255, 0.12), transparent),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(157, 122, 255, 0.08), transparent);
  background-size: 40px 40px, 40px 40px, 100% 100%, 100% 100%;
  color: #e5e7eb;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.6;
}

h1,
h2,
h3,
h4 {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #ffffff;
}

a {
  color: #7eb3ff;
  text-decoration-color: rgba(126, 179, 255, 0.35);
  transition: color 0.2s ease;
}

a:hover {
  color: #c4b5fd;
}

label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #9ca3af;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
}

.container {
  margin: 48px auto 24px;
  max-width: 520px;
  padding: 0 20px;
}

.wrap {
  background: rgba(20, 25, 40, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 40px 36px;
  box-shadow:
    0 24px 48px -12px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(79, 140, 255, 0.08);
}

.header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 24px;
  margin-bottom: 28px;
  text-align: center;
}

.header .logo img {
  max-width: 180px;
  height: auto;
  filter: drop-shadow(0 0 24px rgba(79, 140, 255, 0.25));
}

.header h2 {
  margin-top: 20px;
  font-size: 1.75rem;
  background: linear-gradient(135deg, #4f8cff 0%, #9d7aff 50%, #ff7ab8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section {
  margin-bottom: 28px;
}

.row {
  margin-bottom: 18px;
}

input[type='text'],
input[type='email'],
input[type='password'],
select {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px 18px;
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  box-shadow: none;
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
}

input[type='text']:focus,
input[type='email']:focus,
input[type='password']:focus,
select:focus {
  outline: none;
  border-color: rgba(79, 140, 255, 0.5);
  background: rgba(79, 140, 255, 0.05);
  box-shadow: 0 0 0 3px rgba(79, 140, 255, 0.12);
}

input::placeholder {
  color: rgba(255, 255, 255, 0.28);
}

input:focus::placeholder {
  color: transparent;
}

input[disabled] {
  opacity: 0.45;
}

.lists {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
}

.lists li {
  margin: 0 0 12px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  transition: border-color 0.25s, background 0.25s;
}

.lists li:hover {
  border-color: rgba(79, 140, 255, 0.25);
  background: rgba(79, 140, 255, 0.06);
}

.lists li label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  text-transform: none;
  letter-spacing: 0;
  font-size: 15px;
  font-weight: 500;
  color: #f3f4f6;
  margin: 0;
}

.lists input[type='checkbox'] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: #4f8cff;
  flex-shrink: 0;
}

.lists .description {
  margin: 6px 0 0 28px;
  font-size: 13px;
  line-height: 1.45;
  color: #9ca3af;
}

.button,
button.button,
input.button[type='submit'] {
  display: inline-block;
  width: 100%;
  min-width: unset;
  margin-top: 8px;
  padding: 16px 28px;
  border: none;
  border-radius: 9999px;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #ffffff !important;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 0 30px rgba(79, 140, 255, 0.35);
  transition: transform 0.2s, box-shadow 0.3s, filter 0.2s;
}

.button:hover,
button.button:hover {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 0 40px rgba(79, 140, 255, 0.45);
  filter: brightness(1.05);
}

.button.button-outline {
  background: transparent;
  border: 1px solid rgba(79, 140, 255, 0.45);
  color: #93c5fd !important;
  box-shadow: none;
}

.button.button-outline:hover {
  background: rgba(79, 140, 255, 0.1);
  border-color: #7c3aed;
  color: #ffffff !important;
}

.error {
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: 12px;
  padding: 12px 16px;
}

.small {
  font-size: 0.875rem;
  color: #9ca3af;
}

.center {
  text-align: center;
}

.archive {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.archive .date {
  color: #6b7280;
}

footer.container {
  margin-top: 32px;
  padding-bottom: 40px;
  text-align: center;
  color: #4b5563;
  font-size: 12px;
}

footer.container a {
  color: #6b7280;
}

footer.container a:hover {
  color: #9ca3af;
}

@media screen and (max-width: 650px) {
  .wrap {
    padding: 28px 22px;
    border-radius: 20px;
  }

  .header h2 {
    font-size: 1.45rem;
  }
}
