:root{color-scheme:dark}*{box-sizing:border-box}body{margin:0;padding:2rem 1rem;background:#12100e;color:#e9dfca;font:1.05rem/1.75 Georgia,serif}.certificate{max-width:780px;margin:auto;border:1px solid #786347;background:#211b16;box-shadow:0 18px 60px #0008}.frame{display:block;width:100%;height:auto}.cert-content{padding:1rem clamp(1.5rem,6vw,4rem) 2rem;text-align:center}.cert-brand{letter-spacing:.12em;text-transform:uppercase;color:#d0ac75;font-size:.85rem}h1,h2{font-weight:400;line-height:1.3}h1{font-size:clamp(1.8rem,6vw,2.7rem)}h2{font-size:1.8rem;color:#d9b77c}.cert-date{color:#c7b79f}.cert-image{width:100%;max-width:430px;max-height:500px;object-fit:contain;border:1px solid #796342;margin:1.5rem auto;display:block;background:#15110e}.cert-owner{font-size:1.5rem}.cert-description{text-align:left;white-space:pre-line;overflow-wrap:anywhere;border-top:1px solid #79634266;padding-top:1.5rem}.seal{max-width:120px;width:25%;height:auto;margin:1rem}.cert-footer{color:#bead92;font-size:.9rem}.draft{color:#e4b77d;border:1px solid #90724f;padding:.5rem}.print-button{display:block;margin:1rem auto;color:#e9dfca;background:#33291d;border:1px solid #927447;padding:.75rem 1.5rem;font:inherit;cursor:pointer}@media print{:root{color-scheme:light}body{padding:0;background:white;color:#211b16}.certificate{box-shadow:none;border-color:#555;background:white}.cert-content{padding:1rem 2rem}.cert-brand,h2,.cert-date,.cert-footer{color:#473519}.print-button{display:none}.cert-image{max-height:330px}.cert-description{break-inside:avoid}}

/* Corpo continuo della cornice originale, anche con descrizioni lunghe. */
.certificate{border:0;background:#100e0b;overflow:hidden}.cert-content{background-image:url('../../certificati/template/bgcert-content.png');background-repeat:repeat-y;background-size:100% auto;padding:1rem 14% 2rem;margin-top:-1px;margin-bottom:-1px}.frame{position:relative;z-index:1}.cert-image{max-width:100%}.cert-description{line-height:1.8}.cert-owner{overflow-wrap:anywhere}
@media(max-width:480px){body{padding:.75rem .25rem}.cert-content{padding:1rem 14%}h1{font-size:1.7rem}h2{font-size:1.5rem}.cert-owner{font-size:1.25rem}.cert-description{font-size:1rem}}@media print{.certificate,.cert-content{-webkit-print-color-adjust:exact;print-color-adjust:exact}.certificate{background:#100e0b}.cert-content{color:#eee4d3}.cert-brand,h2,.cert-date,.cert-footer{color:#d9b77c}}
