/* Il foglio A4 del preventivo. Questo file vale sia nell'editor sia nel PDF: non metterci niente che riguardi l'editor. */
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400 700; font-display: block; src: url("font/instrument-sans-latin-wght-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-style: italic; font-weight: 400 700; font-display: block; src: url("font/instrument-sans-latin-wght-italic.woff2") format("woff2"); }
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 200 800; font-display: block; src: url("font/newsreader-latin-wght-normal.woff2") format("woff2"); }

.foglio {
  --k: 1;
  --testo: #1f1f1f;
  --tenue: #555;
  --linea: #dcdcdc;
  --accento: #3f5246;
  width: 210mm;
  min-height: 297mm;
  box-sizing: border-box;
  padding: 10mm 21mm;
  background: #fff;
  color: var(--testo);
  font-family: "Instrument Sans", "Segoe UI", Arial, sans-serif;
  font-size: calc(9.5pt * var(--k));
  line-height: 1.36;
  font-kerning: normal;
  text-rendering: geometricPrecision;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
  overflow-wrap: break-word;
}
.foglio *, .foglio *::before { box-sizing: border-box; margin: 0; padding: 0; }
.foglio strong { font-weight: 600; }

.foglio .testa { display: flex; justify-content: space-between; align-items: flex-end; gap: 6mm; border-bottom: 1px solid var(--linea); padding-bottom: calc(3.5mm * var(--k)); }
.foglio .testa > div { min-width: 0; }
.foglio .etichetta { font-size: calc(9.3pt * var(--k)); letter-spacing: 0.08em; text-transform: uppercase; color: var(--accento); }
.foglio h1 { font-family: "Newsreader", Georgia, serif; font-weight: 400; font-size: calc(20pt * var(--k)); line-height: 1.15; margin-top: calc(1mm * var(--k)); }
.foglio .meta { font-size: calc(9.3pt * var(--k)); color: var(--tenue); text-align: right; flex: none; max-width: 60mm; }

.foglio .blocco { break-inside: avoid; }
.foglio .b-totale { margin-top: calc(4.5mm * var(--k)); padding: calc(1mm * var(--k)) 0 calc(1mm * var(--k)) 6mm; border-left: 3px solid var(--testo); }
.foglio .cifra { font-family: "Newsreader", Georgia, serif; font-weight: 400; font-size: calc(31pt * var(--k)); line-height: 1.05; font-variant-numeric: lining-nums; }
.foglio .sotto-cifra { margin-top: calc(2mm * var(--k)); }

.foglio .b-sezione { margin-top: calc(4.2mm * var(--k)); }
.foglio h2 { font-family: "Newsreader", Georgia, serif; font-weight: 400; font-size: calc(14.5pt * var(--k)); line-height: 1.25; color: var(--accento); margin-bottom: calc(1.5mm * var(--k)); font-variant-numeric: lining-nums; }
.foglio .numero { font-weight: 500; margin-right: 2.5mm; }
.foglio .intro { margin-bottom: calc(1.5mm * var(--k)); }
.foglio .dopo { margin-top: calc(1.5mm * var(--k)); }
.foglio ul { list-style: none; }
.foglio li { position: relative; padding-left: 4mm; margin-bottom: calc(0.4mm * var(--k)); }
.foglio li::before { content: ""; position: absolute; left: 0; top: 0.66em; width: 1.6mm; height: 1px; background: var(--accento); }

.foglio .b-paragrafo { margin-top: calc(3mm * var(--k)); }
.foglio .b-separatore { margin-top: calc(4.2mm * var(--k)); }
.foglio .b-separatore hr { border: 0; border-top: 1px solid var(--linea); }
.foglio .b-separatore + .blocco { margin-top: calc(3.2mm * var(--k)); }

.foglio .b-rate { margin-top: calc(3mm * var(--k)); }
.foglio table { width: 100%; border-collapse: collapse; }
.foglio td { padding: calc(0.7mm * var(--k)) 0; border-bottom: 1px solid var(--linea); vertical-align: baseline; }
.foglio tr:last-child td { border-bottom: 0; }
.foglio td.perc { width: 14mm; font-weight: 600; color: var(--accento); white-space: nowrap; }
.foglio td.importo { text-align: right; white-space: nowrap; font-weight: 600; padding-left: 3mm; font-variant-numeric: tabular-nums; }
