:root {
  /* Palette dal logo La Mulata: marrone scuro · oro · verde · crema */
  --bg: #f6efe1;
  --card: #ffffff;
  --ink: #3f2e20;          /* marrone testo del logo */
  --muted: #7a6a58;
  --accent: #55402d;       /* marrone scuro per i pulsanti (ottimo contrasto) */
  --accent-dark: #3f2e20;
  --gold: #d9a521;         /* oro del turbante/fiori */
  --gold-soft: rgba(217, 165, 33, 0.18);
  --green: #4f7d33;        /* verde delle foglie */
  --border: #e2d6c2;
  --ok-bg: #eaf3e2;
  --ok-ink: #3a5e22;
  --err-bg: #f6e9dd;
  --err-ink: #97431b;
  --radius: 14px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
}

.card {
  width: 100%;
  max-width: 460px;
  background: var(--card);
  border: 1px solid var(--border);
  border-top: 4px solid var(--green);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 10px 30px rgba(63, 46, 32, 0.10);
}

.card__head {
  margin-bottom: 22px;
  text-align: center;
}

.logo {
  display: block;
  width: 200px;
  max-width: 70%;
  height: auto;
  margin: 0 auto 14px;
}

h1 {
  margin: 0;
  font-size: 1.4rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.subtitle {
  margin: 4px 0 0;
  color: var(--gold);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.field { margin-bottom: 16px; }

.row {
  display: flex;
  gap: 12px;
}
.row .field { flex: 1; }

label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.9rem;
  font-weight: 600;
}

.req { color: var(--gold); }
.opt { color: var(--muted); font-weight: 400; font-size: 0.82rem; }

input, textarea, select {
  width: 100%;
  padding: 11px 12px;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color .15s, box-shadow .15s;
}

select:disabled {
  background: #f2efe9;
  color: var(--muted);
  cursor: not-allowed;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--gold-soft);
}

textarea { resize: vertical; }

.hint {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.8rem;
}

button {
  width: 100%;
  margin-top: 4px;
  padding: 13px 16px;
  font: inherit;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background .15s, opacity .15s;
}

button:hover:not(:disabled) { background: var(--accent-dark); }
button:disabled { opacity: 0.6; cursor: progress; }

.feedback {
  margin-top: 16px;
  padding: 0;
  font-size: 0.92rem;
  border-radius: 10px;
}
.feedback.show {
  padding: 12px 14px;
}
.feedback.ok  { background: var(--ok-bg);  color: var(--ok-ink); }
.feedback.err { background: var(--err-bg); color: var(--err-ink); }

input:invalid.touched, textarea:invalid.touched {
  border-color: var(--accent);
}

/* ---- Aggiunte per il form collegato al CMS (Padova / Reggio) ---- */

[hidden] { display: none !important; }

.banner {
  margin: 0 0 18px;
  padding: 10px 12px;
  background: var(--err-bg);
  color: var(--err-ink);
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  text-align: center;
}

.msg {
  display: block;
  margin-top: 6px;
  color: var(--err-ink);
  font-size: 0.85rem;
  font-weight: 600;
}

.promo {
  margin-top: 10px;
  padding: 10px 12px;
  background: var(--gold-soft);
  border-radius: 10px;
  font-size: 0.88rem;
}

.notice {
  margin: 10px 0 0;
  padding: 10px 12px;
  background: var(--gold-soft);
  border-left: 3px solid var(--gold);
  border-radius: 8px;
  font-size: 0.88rem;
}

.step { margin-bottom: 16px; }

.check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 8px 0 0;
  font-weight: 400;
  font-size: 0.88rem;
  cursor: pointer;
}
.check input {
  width: auto;
  margin: 3px 0 0;
  accent-color: var(--accent);
}

.hint--accent { color: var(--accent); margin-top: 8px; }
.hint--below { margin: -10px 0 16px; }

.row--tel .field--prefisso { flex: 0 0 38%; }
.row--tel select { padding-left: 8px; padding-right: 4px; }

.menu-link {
  margin: 0 0 16px;
  color: var(--green);
  font-weight: 600;
  font-size: 0.92rem;
}
.menu-link a, .privacy a { color: var(--accent); }

.privacy {
  margin-bottom: 18px;
  padding: 12px;
  background: #faf6ee;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.76rem;
  text-align: justify;
  color: var(--muted);
}
.privacy p { margin: 0; }
.privacy .check { font-size: 0.76rem; color: var(--ink); }

.thanks h2 { margin: 0 0 12px; color: var(--green); }
.thanks p { margin: 0 0 10px; }
.button-link {
  display: block;
  margin-top: 18px;
  padding: 13px 16px;
  text-align: center;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border-radius: 10px;
  text-decoration: none;
}

@media (max-width: 420px) {
  body { padding: 12px; }
  .card { padding: 20px 16px; }
}
