:root {
  --verde: #1e1922;
  --verde-scuro: #150f19;
  --oro: #c9a44c;
  --crema: #f3e9d2;
  --crema-tenue: rgba(243, 233, 210, 0.72);
  --serif: Georgia, "Noto Serif", "Times New Roman", serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--verde);
  color: var(--crema);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.55;
}

.pagina {
  max-width: 520px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.foto {
  position: relative;
  aspect-ratio: 3 / 3.2;
  overflow: hidden;
}

.foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 6%;
  display: block;
}

.foto::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 38%;
  background: linear-gradient(to bottom, rgba(30, 25, 34, 0), var(--verde));
}

.testo {
  padding: 4px 24px 32px;
  text-align: center;
  flex: 1;
}

.firma {
  margin: 0;
  color: var(--oro);
  font-weight: bold;
  font-size: 15px;
  letter-spacing: 0.06em;
}

.firma span { color: var(--crema-tenue); font-weight: normal; font-style: italic; letter-spacing: 0; }

.filetto {
  width: 96px;
  height: 1px;
  background: var(--oro);
  border: 0;
  margin: 22px auto;
}

h1 {
  font-size: 40px;
  line-height: 1.15;
  font-style: italic;
  font-weight: normal;
  margin: 18px 0 12px;
}

h2 {
  color: var(--oro);
  font-size: 28px;
  font-weight: bold;
  margin: 0 0 4px;
}

.sotto { font-style: italic; margin: 0 0 14px; }

p { margin: 0 0 14px; }

.piccolo { font-size: 14px; color: var(--crema-tenue); }

.bottone {
  display: inline-block;
  min-width: 220px;
  padding: 14px 28px;
  margin: 8px 0 10px;
  background: var(--oro);
  color: var(--verde-scuro);
  font-family: var(--serif);
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  border: 0;
  border-radius: 2px;
  cursor: pointer;
}

.bottone:hover, .bottone:focus-visible { background: #d8b65f; }

.bottone.vuoto {
  background: transparent;
  color: var(--oro);
  border: 1px solid var(--oro);
}

.bottone.vuoto:hover, .bottone.vuoto:focus-visible { background: rgba(201, 164, 76, 0.12); }

a { color: var(--oro); }

.riquadro {
  border: 1px solid rgba(201, 164, 76, 0.55);
  padding: 24px 20px 14px;
  margin: 30px 0 6px;
}

.verdetto {
  font-size: 46px;
  font-weight: bold;
  color: var(--oro);
  margin: 4px 0 16px;
  line-height: 1.1;
}

.etichetta {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 13px;
  color: var(--crema-tenue);
  margin: 18px 0 0;
}

/* quiz */
#quiz[hidden], #inizio[hidden] { display: none; }

.avanzamento {
  font-size: 14px;
  color: var(--crema-tenue);
  letter-spacing: 0.08em;
  margin: 18px 0 6px;
}

.barra {
  height: 2px;
  background: rgba(243, 233, 210, 0.18);
  margin: 0 auto 26px;
  max-width: 220px;
}

.barra div { height: 100%; background: var(--oro); width: 0; transition: width 0.25s ease; }

.domanda {
  font-size: 25px;
  line-height: 1.3;
  font-style: italic;
  min-height: 4.2em;
  margin: 0 0 22px;
}

.scelte { display: flex; gap: 12px; justify-content: center; }

.scelte .bottone { min-width: 0; flex: 1; max-width: 170px; margin: 0; }

footer {
  padding: 22px 24px 30px;
  text-align: center;
  font-size: 13px;
  line-height: 1.5;
  color: var(--crema-tenue);
  border-top: 1px solid rgba(201, 164, 76, 0.25);
}

footer p { margin: 0 0 8px; }

@media (min-width: 560px) {
  .pagina { border-left: 1px solid rgba(201, 164, 76, 0.2); border-right: 1px solid rgba(201, 164, 76, 0.2); }
}

.foto.bassa { aspect-ratio: 3 / 2.45; }

h2.domanda { color: var(--crema); font-weight: normal; outline: none; }

/* Lucius: la striscia porpora della toga */
.pagina { border-top: 5px solid #5d2f74; }
