/* Monitile — stile della pagina "presto disponibile" (default.php).
   Nessuno stile inline: la CSP del sito (.htaccess) ammette solo fogli di stile propri. */

*, *::before, *::after { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: 'Segoe UI', Inter, -apple-system, BlinkMacSystemFont, Roboto, system-ui, sans-serif;
  color: #fff;
  -webkit-font-smoothing: antialiased;
  background-color: #2F4EC8;
  background-image:
    radial-gradient(60% 55% at 85% 10%, rgba(150, 175, 255, 0.55) 0%, rgba(150, 175, 255, 0) 70%),
    radial-gradient(55% 60% at 10% 90%, rgba(20, 30, 90, 0.65) 0%, rgba(20, 30, 90, 0) 70%),
    linear-gradient(135deg, #1E2F86 0%, #3B5BDB 45%, #5C7CFA 100%);
  background-attachment: fixed;
}

/* Griglia di riquadri appena accennata: richiama l'icona senza distrarre. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(70% 70% at 50% 40%, #000 0%, transparent 100%);
  -webkit-mask-image: radial-gradient(70% 70% at 50% 40%, #000 0%, transparent 100%);
}

.stage {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 48px 20px 24px;
  position: relative;
}

.card {
  width: 100%;
  max-width: 560px;
  text-align: center;
  padding: 40px 28px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 24px 60px rgba(10, 20, 70, 0.35);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.logo {
  display: inline-block;
  color: #fff;
  text-decoration: none;
  margin-bottom: 28px;
}
.logo svg {
  width: min(224px, 70vw);
  height: auto;
  display: block;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.25));
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}

h1 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.lead {
  margin: 0 auto 28px;
  max-width: 42ch;
  font-size: 1.08rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
}

.gift { margin: 0 auto 12px; max-width: 42ch; font-size: 0.98rem; color: rgba(255,255,255,0.88); }
.contact.small { margin-top: 18px; font-size: 0.9rem; }

.contact {
  margin: 0;
  font-size: 0.98rem;
  color: rgba(255, 255, 255, 0.85);
}
.mail {
  display: inline-block;
  margin-left: 6px;
  padding: 10px 18px;
  border-radius: 999px;
  background: #fff;
  color: #2F4EC8;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  transition: transform .15s ease, box-shadow .15s ease;
}
.mail:hover, .mail:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
  outline: none;
}

.foot {
  text-align: center;
  padding: 16px 20px 28px;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.72);
  position: relative;
}
.foot p { margin: 4px 0; }
.lang {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.lang:hover { color: #fff; }

@media (max-width: 480px) {
  .card { padding: 32px 20px; }
  .contact { display: flex; flex-direction: column; gap: 10px; align-items: center; }
  .mail { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .mail { transition: none; }
}

/* ---------- modulo licenza in regalo (licenza.php) ---------- */

.card-wide { max-width: 640px; text-align: left; }
.card-wide .logo, .card-wide .eyebrow, .card-wide h1, .card-wide .lead, .card-wide .contact { text-align: center; }
.card-wide .logo { display: block; width: fit-content; margin-left: auto; margin-right: auto; }
.card-wide .lead { margin-left: auto; margin-right: auto; }

.inline { color: #fff; font-weight: 600; text-underline-offset: 3px; }

.form { margin-top: 8px; }
.field { margin: 0 0 18px; padding: 0; border: 0; min-width: 0; }
.field label, .field legend {
  display: block;
  margin: 0 0 6px;
  font-size: 0.92rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}
.field input[type="text"], .field input[type="email"], .field textarea {
  width: 100%;
  padding: 11px 14px;
  font: inherit;
  font-size: 1rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 12px;
  outline: none;
  transition: border-color .15s ease, background .15s ease;
}
.field textarea { resize: vertical; min-height: 84px; }
.field input::placeholder, .field textarea::placeholder { color: rgba(255, 255, 255, 0.55); }
.field input:focus, .field textarea:focus {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.2);
}

.choices { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.choices label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-weight: 500;
  cursor: pointer;
}
.choices input, .consent input { accent-color: #fff; width: 18px; height: 18px; margin: 0; }

.consent label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; line-height: 1.45; cursor: pointer; }
.consent input { flex: none; margin-top: 3px; }

.actions { margin: 24px 0 0; text-align: center; }
button.mail { border: 0; cursor: pointer; font: inherit; font-weight: 600; font-size: 1rem; margin-left: 0; }

.alert {
  margin: 0 0 20px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(255, 214, 102, 0.18);
  border: 1px solid rgba(255, 214, 102, 0.6);
}
.alert p { margin: 0; }
.alert ul { margin: 6px 0 0; padding-left: 18px; }

/* Honeypot: fuori schermo, non "display:none" perché alcuni bot saltano i campi nascosti. */
.hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ---------- pagina di download (download.php) ---------- */

.meta { margin: 10px 0 0; text-align: center; font-size: 0.88rem; color: rgba(255, 255, 255, 0.75); }

.block { margin: 28px 0 0; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.22); }
.block h2 { margin: 0 0 8px; font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; }
.block p { margin: 0 0 10px; line-height: 1.5; color: rgba(255, 255, 255, 0.9); }

.steps { margin: 6px 0 12px; padding-left: 0; list-style: none; counter-reset: step; }
.steps li {
  position: relative;
  padding-left: 40px;
  margin: 0 0 10px;
  line-height: 1.5;
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 1px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  color: #2F4EC8;
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hash, .cmd {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(10, 20, 70, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-family: Consolas, 'Cascadia Mono', ui-monospace, Menlo, monospace;
  font-size: 0.86rem;
  line-height: 1.5;
  color: #fff;
}
.hash { word-break: break-all; }
.cmd { margin: 0 0 10px; white-space: pre; overflow-x: auto; }
