/* Pagina delle cartelle da stampare */

.pagina-stampa { max-width: 1100px; margin: 0 auto; padding: 0 16px 8px; padding-top: env(safe-area-inset-top); }
.generatore { display: grid; gap: 20px; }
.titolo-generatore {
  margin: 8px 0 0;
  font-family: var(--font-display);
  font-weight: 850; font-stretch: 105%;
  font-size: clamp(1.9rem, 8vw, 2.6rem);
  line-height: 1.05;
}
[data-tema="estate"] .titolo-generatore { font-weight: 400; color: #1F3FA6; }

.opzioni {
  display: grid; gap: 16px;
  background: #FFFCF4; color: #2A1A12;
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 12px 26px rgba(0,0,0,.25);
  color-scheme: light;
}
[data-tema="estate"] .opzioni { background: #FFFFFF; color: #142B78; box-shadow: 0 0 0 1px #D3DBF1, 0 10px 24px rgba(20,43,120,.12); }
.opzioni fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; }
.opzioni legend { font-weight: 700; padding: 0; margin-bottom: 8px; }
.scelte.quattro { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.scelte.quattro label { font-family: var(--font-display); font-weight: 800; font-stretch: 90%; font-size: 1.3rem; }
[data-tema="estate"] .scelte.quattro label { font-weight: 400; }
.aiuto { margin: 0; font-size: .9rem; opacity: .8; }
.opzioni .interruttore input { accent-color: #C62828; }
.scarica {
  min-height: 60px;
  border: 0; border-radius: 16px;
  background: #C62828; color: #FFF6E6;
  font-family: var(--font-display);
  font-weight: 800; font-stretch: 115%;
  font-size: 1.35rem;
  box-shadow: 0 5px 0 #8E1B16;
}
.scarica:active { transform: translateY(3px); box-shadow: 0 2px 0 #8E1B16; }
.scarica:disabled { opacity: .6; }
[data-tema="estate"] .scarica { background: #1F3FA6; color: #FFFFFF; box-shadow: 0 5px 0 #142B78; font-weight: 400; }

.anteprima { display: grid; gap: 12px; }
.anteprima-testa { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.anteprima-testa h3 { margin: 0; font-size: 1.1rem; }
.rimescola {
  min-height: 44px; padding: 0 16px;
  border-radius: 12px;
  border: 2px solid currentColor; background: transparent;
  font-weight: 700;
}
.anteprima .casella { height: 40px; }

@media (min-width: 900px) {
  .generatore { grid-template-columns: 360px 1fr; align-items: start; column-gap: 32px; }
  .titolo-generatore { grid-column: 1 / -1; }
  .anteprima .elenco-cartelle { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
