:root {
  --cream: #fff4df;
  --paper: #fffaf0;
  --ink: #1b0c0a;
  --wine: #861e2c;
  --orange: #f36b21;
  --yellow: #f7bf26;
  --aqua: #46c3b1;
  --font-display: "Arial Black", "Arial Narrow", Arial, sans-serif;
  --font-body: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-accent: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
}
a { color: inherit; }
.wrap {
  width: min(720px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 80px;
}
.eyebrow {
  margin: 0 0 16px;
  color: var(--wine);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}
h1 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 8vw, 3.6rem);
  letter-spacing: -0.06em;
  line-height: 0.95;
  text-transform: uppercase;
}
h1 em {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 400;
  text-transform: none;
}
.lead { margin: 0 0 28px; font-size: 1.1rem; line-height: 1.5; }
.card {
  padding: clamp(24px, 4vw, 40px);
  border: 3px solid var(--ink);
  border-radius: 28px;
  background: #fff;
  box-shadow: 13px 15px 0 var(--aqua);
}
label {
  display: block;
  margin-bottom: 20px;
  font-size: 0.69rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
input, textarea, select {
  width: 100%;
  margin-top: 8px;
  padding: 13px 2px;
  border: 0;
  border-bottom: 2px solid var(--ink);
  border-radius: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 1rem;
  text-transform: none;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--orange);
  box-shadow: 0 4px 0 -2px var(--orange);
}
.check {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  text-transform: none;
  letter-spacing: 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
}
.check input {
  width: 28px;
  height: 28px;
  min-width: 28px;
  margin: 2px 0 0;
  flex-shrink: 0;
  accent-color: var(--wine);
  cursor: pointer;
}
.check.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.check.is-disabled input {
  cursor: not-allowed;
}
.button {
  display: inline-flex;
  min-height: 54px;
  width: 100%;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
  padding: 15px 22px;
  border: 0;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 900;
  box-shadow: 0 10px 0 rgba(0,0,0,.22);
  cursor: pointer;
}
.button:hover { transform: translateY(-2px) rotate(-1deg); }
.note { margin-top: 16px; color: #6f5a52; font-size: 0.78rem; text-align: center; }
.msg { margin-top: 16px; padding: 12px; border-radius: 12px; font-weight: 700; }
.msg.ok { background: #e7f7d8; }
.msg.err { background: #fde0e3; color: var(--wine); }
.nav { display: flex; gap: 16px; margin-bottom: 28px; font-size: 0.8rem; font-weight: 800; }
.nav a { text-decoration: none; border-bottom: 2px solid var(--yellow); }
.closed-panel {
  display: none;
  margin-top: 8px;
  padding: 28px 24px 26px;
  text-align: left;
}
.closed-panel.is-visible { display: block; }
body.is-closed .closed-panel { display: block; }
.closed-panel .closed-kicker {
  margin: 0 0 10px;
  font-size: 0.69rem; font-weight: 900; letter-spacing: 0.11em; text-transform: uppercase;
  color: var(--wine);
}
.closed-panel h2 {
  margin: 0 0 14px;
  font-family: var(--font-display); font-weight: 950; font-size: clamp(1.8rem, 5vw, 2.6rem);
  line-height: 0.92; letter-spacing: -0.06em; text-transform: uppercase;
}
.closed-panel h2 em {
  font-family: var(--font-accent); font-style: italic; font-weight: 400;
  text-transform: none; letter-spacing: 0; color: var(--wine);
  border-bottom: 4px solid var(--orange);
}
.closed-panel .closed-copy {
  margin: 0 0 10px;
  font-size: 1.05rem; line-height: 1.5; color: #6f5a52;
}
.closed-panel .closed-copy strong { color: var(--ink); }
.closed-panel .button {
  display: inline-flex; width: auto; margin-top: 18px; text-decoration: none;
}

/* Footer credit D-Service — una riga, tutte le pagine */
.dev-footer {
  margin-top: 28px;
  padding: 12px 0 6px;
  border-top: 1px solid rgba(27, 12, 10, 0.12);
  text-align: center;
}
.dev-footer a {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  color: #6f5a52;
  white-space: nowrap;
  max-width: 100%;
}
.dev-footer .dev-by {
  margin: 0;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  flex-shrink: 0;
}
.dev-footer img {
  height: 20px;
  width: auto;
  display: block;
  opacity: 0.92;
  flex-shrink: 0;
}
.dev-footer .dev-url {
  font-size: 0.7rem;
  font-weight: 800;
  border-bottom: 1px solid var(--yellow);
  flex-shrink: 0;
}
body.page-dark .dev-footer {
  border-top-color: rgba(255, 244, 223, 0.18);
}
body.page-dark .dev-footer a {
  color: rgba(255, 244, 223, 0.75);
}
body.page-dark .dev-footer .dev-url {
  border-bottom-color: var(--yellow);
}

