@page { size: A4; margin: 10mm; }
* { box-sizing: border-box; }
body { margin: 0; font-family: "Helvetica Neue", Arial, sans-serif; color: #111; background: #eee; }
.flyer__tools { text-align: center; padding: 12px; display: flex; justify-content: center; align-items: center; gap: 12px; flex-wrap: wrap; }
.flyer__tools button { font: inherit; font-weight: 700; padding: 10px 22px; border-radius: 4px; border: 0; background: #0745b5; color: #fff; cursor: pointer; }
.flyer__tools > a { color: #333; }
.flyer__switch { display: inline-flex; border: 1.5px solid #c4c9d1; border-radius: 4px; overflow: hidden; background: #fff; }
.flyer__mode { padding: 8px 14px; text-decoration: none; color: #333; font-weight: 700; font-size: 13px; }
.flyer__mode.is-active { background: #111; color: #fff; }
.flyer__page { width: 190mm; min-height: 277mm; margin: 0 auto 24px; background: #fff; padding: 10mm; display: flex; flex-direction: column; box-shadow: 0 4px 24px rgba(0,0,0,.12); }
.flyer__head { margin: 0; text-align: center; font-size: 46pt; line-height: 1; font-weight: 900; letter-spacing: .02em; color: #fff; background: #c8102e; padding: 6mm 4mm; border-radius: 4mm; text-transform: uppercase; }
.flyer--trovato .flyer__head { background: #1b7a36; }
.flyer--avvistato .flyer__head { background: #9a5b00; }
.flyer--adozione .flyer__head { background: #0745b5; }
.flyer--ritrovato .flyer__head { background: #111; }
.flyer__photo { display: block; width: 100%; height: 105mm; object-fit: cover; border-radius: 4mm; margin: 6mm 0 4mm; }
.flyer__photo--portrait { object-fit: contain; background: #f4f5f7; }
.flyer--linguette .flyer__photo { height: 78mm; margin: 4mm 0 3mm; }
.flyer--linguette .flyer__head { font-size: 38pt; padding: 4.5mm 4mm; }
.flyer--linguette .flyer__title { font-size: 18pt; margin-bottom: 3mm; }
.flyer--linguette .flyer__contact { padding: 3mm 5mm; margin-top: 3mm; }
.flyer--linguette .flyer__tel { font-size: 24pt; }
.flyer--linguette .flyer__qr img, .flyer--linguette .flyer__qr canvas { width: 28mm !important; height: 28mm !important; }
.flyer__title { margin: 0 0 4mm; font-size: 20pt; text-align: center; }
.flyer__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5mm 8mm; margin: 0 0 4mm; font-size: 12pt; }
.flyer__facts div { display: flex; gap: 2mm; border-bottom: 1px dotted #bbb; padding-bottom: 1mm; }
.flyer__facts dt { color: #555; }
.flyer__facts dd { margin: 0; font-weight: 700; }
.flyer__desc { font-size: 12pt; line-height: 1.45; margin: 0 0 auto; }
.flyer__contact { display: flex; justify-content: space-between; align-items: center; gap: 6mm; border: 3px solid #111; border-radius: 4mm; padding: 4mm 6mm; margin-top: 5mm; }
.flyer__call { margin: 0; font-size: 13pt; }
.flyer__tel { margin: 1mm 0; font-size: 30pt; font-weight: 900; letter-spacing: .02em; }
.flyer__url { margin: 0; font-size: 10pt; word-break: break-all; color: #333; }
.flyer__qr img, .flyer__qr canvas { width: 34mm !important; height: 34mm !important; }
.flyer__foot { text-align: center; font-size: 9pt; color: #666; margin: 3mm 0 0; }
.flyer__tabs { display: grid; grid-template-columns: repeat(8, 1fr); margin-top: 4mm; border-top: 1.5px dashed #333; border-bottom: 1px dashed #888; border-left: 1px dashed #888; border-right: 1px dashed #888; border-radius: 0 0 4mm 4mm; overflow: hidden; }
.flyer__tab { height: 42mm; padding: 2.5mm 1mm; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1mm; writing-mode: vertical-rl; transform: rotate(180deg); text-align: center; border-left: 1px dashed #666; font-size: 9.5pt; line-height: 1.15; }
.flyer__tab:last-child { border-left: 0; }
.flyer__tab-lbl { font-size: 8.5pt; color: #444; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.flyer__tab-val { font-size: 10pt; font-weight: 900; word-break: break-all; }
@media print {
	body { background: #fff; }
	.flyer__tools { display: none; }
	.flyer__page { box-shadow: none; margin: 0; width: auto; min-height: 0; height: 277mm; }
	.flyer__head { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
