:root {
  --sfondo: #fbf6ee;
  --testo: #3a2a1a;
  --tenue: #6b5a48;
  --bordo: #e6dccb;
  --scheda: #ffffff;
  --verde: #12804a;
  --verde-premuto: #0d6b38;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--sfondo);
  color: var(--testo);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 18px;
  line-height: 1.5;
}

main {
  max-width: 520px;
  margin: 0 auto;
  padding: 16px 16px 48px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

header { text-align: center; }
.marchio { margin: 0; font-size: 15px; color: var(--tenue); }
h1 { margin: 2px 0 0; font-family: Georgia, "Times New Roman", serif; font-weight: normal; font-size: 26px; }

canvas {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  border-radius: 14px;
  background: #efe4d2;
}

.stato { margin: 8px 0 0; min-height: 1.5em; text-align: center; color: var(--tenue); }
.stato:empty { display: none; }

.campo-nome { display: flex; flex-direction: column; gap: 6px; font-size: 16px; color: var(--tenue); }

input {
  font: inherit;
  font-size: 20px;
  padding: 12px 14px;
  border: 1px solid var(--bordo);
  border-radius: 10px;
  background: #fff;
  color: var(--testo);
}

button {
  font: inherit;
  font-size: 20px;
  min-height: 56px;
  border-radius: 12px;
  cursor: pointer;
}

.principale { background: var(--verde); color: #fff; border: none; font-weight: 600; }
.principale:active { background: var(--verde-premuto); }
.secondario { background: #fff; color: var(--testo); border: 1px solid var(--bordo); }

.scheda { background: var(--scheda); border: 1px solid var(--bordo); border-radius: 14px; padding: 14px 16px; }
.scheda h2 { margin: 0 0 4px; font-size: 15px; font-weight: 600; color: var(--tenue); }
.scheda p { margin: 0; }
.scheda button { width: 100%; margin-top: 12px; }
#tela-preghiera { aspect-ratio: 4 / 5; margin-top: 8px; }
