/* Stile minimale provvisorio */

/* AUTHENTIC Sans — SIL Open Font License (fonts/LICENSE-AUTHENTIC-Sans.txt) */
@font-face {
  font-family: "AUTHENTIC Sans";
  src: url("fonts/AUTHENTICSans-90.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "AUTHENTIC Sans";
  src: url("fonts/AUTHENTICSans-130.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "AUTHENTIC Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.5;
  color: #222;
  background: #fff;
}
main { max-width: 640px; margin: 0 auto; padding: 24px 16px 64px; }
header { text-align: center; }
h1 { margin-top: 8px; margin-bottom: 20px; }
.foto { display: block; width: 100%; max-width: 480px; height: auto; margin: 0 auto; }
.descrizione { max-width: 480px; margin: 16px auto 0; text-align: center; }
#sezione-form h2 { margin-top: 12px; }

form label { display: block; margin-bottom: 14px; }
input:not([type=radio]):not([type=checkbox]), textarea {
  display: block; width: 100%; margin-top: 4px; padding: 8px;
  font: inherit; border: 1px solid #bbb; border-radius: 4px; background: #fff;
}
textarea { resize: none; }
.info-sconto { display: block; margin-top: 4px; font-size: .9em; color: #3a8fd0; }
.nota-sconto { font-size: .75em; color: #666; }
fieldset { border: 1px solid #ddd; border-radius: 4px; margin: 0 0 14px; padding: 10px 14px; }
fieldset[hidden] { display: none; }
label.opzione { margin-bottom: 6px; }
label.disabilitata { color: #aaa; }
.riga { display: grid; grid-template-columns: 1fr 2fr 70px; gap: 10px; }
.hp { position: absolute; left: -9999px; }

.totale { font-size: 1.2em; }
#totale { font-weight: normal; }
.errore { color: #b00020; }
button {
  font: inherit; padding: 10px 20px; border: 0; border-radius: 4px;
  background: #222; color: #fff; cursor: pointer;
}
button:disabled { opacity: .6; cursor: wait; }

.box-pagamento { border: 2px solid #ddd; border-radius: 4px; padding: 4px 16px 12px; background: #fff; }
.box-ritiro {
  margin-top: 16px; padding: 4px 16px 12px; border: 1px solid #3a8fd0;
  border-radius: 4px; background: #eef6fd;
}
.box-ritiro h3 { color: #3a8fd0; }
.ritiro-info { font-weight: bold; }
/* Pagina informativa privacy */
.testo { max-width: 680px; }
.testo h1 { text-align: left; margin-top: 16px; }
.testo h2 { font-size: 1.15em; margin: 28px 0 6px; }
.testo ul { padding-left: 20px; }
.aggiornamento { margin-top: 32px; color: #777; font-size: .9em; }
a { color: inherit; }
.mono { letter-spacing: .03em; }
/* Pulsante nello stile dei pulsanti ufficiali PayPal (giallo "gold", logo blu) */
.btn-paypal {
  display: flex; align-items: center; justify-content: center;
  width: 100%; max-width: 260px; height: 38px; margin: 8px 0; border-radius: 4px;
  background: #ffc439; text-decoration: none;
  font: italic bold 19px/1 Verdana, "DejaVu Sans", Arial, sans-serif; letter-spacing: -.5px;
}
.btn-paypal:hover { filter: brightness(.95); }
.btn-paypal:focus-visible { outline: 2px solid #003087; outline-offset: 2px; }
.pp-pay { color: #003087; }
.pp-pal { color: #009cde; }

/* --- Sfondo decorativo (scorre con la pagina) --- */
body { position: relative; }
main { position: relative; z-index: 1; }
.sfondo {
  position: absolute; inset: 0; z-index: 0;
  overflow: hidden; pointer-events: none;
}
.sfondo .el { position: absolute; height: auto; opacity: .55; }

/* colonna sinistra (top in % dell'altezza della pagina) */
.el-costellazione { width: 22vw; top: 2%;  left: 2vw;  transform: rotate(-8deg); }
.el-cometa1       { width: 12vw; top: 30%; left: 12vw; transform: rotate(10deg); }
.el-orbite        { width: 20vw; top: 60%; left: -3vw; transform: rotate(6deg); }

/* colonna destra */
.el-stelline      { width: 20vw; top: 1%;  right: 3vw; }
.el-cometa3       { width: 6vw;  top: 24%; right: 20vw; }
.el-ellisse       { width: 22vw; top: 42%; right: -4vw; transform: rotate(-10deg); }
.el-cometa2       { width: 10vw; top: 80%; right: 14vw; transform: rotate(-15deg); }

/* schermi stretti: elementi più piccoli e tenui dietro al contenuto */
@media (max-width: 900px) {
  .sfondo .el { opacity: .25; }
  .el-costellazione, .el-stelline, .el-orbite, .el-ellisse { width: 40vw; }
  .el-cometa1, .el-cometa2 { width: 25vw; }
  .el-cometa3 { width: 14vw; }
}
