@import url('../natale2026/stile.css');
:root{--pine:#243f35;--gold:#a47b3c;--cream:#f8f4eb;--wine:#702b2a}*{box-sizing:border-box}body{margin:0;background:var(--cream);color:#26352e;font:16px/1.55 system-ui,sans-serif}header{padding:18px max(20px,calc((100vw - 1180px)/2));display:flex;justify-content:space-between;gap:20px;background:var(--pine);color:white}header a{color:inherit}main{max-width:1180px;padding:28px 22px 70px;margin:auto}h1,h2,h3{line-height:1.15}h1{font-family:Georgia,serif;font-size:clamp(34px,5vw,60px);font-weight:500;letter-spacing:-.035em;margin:15px 0 28px}h2{font-size:26px}h3{font-size:20px}.eyebrow{font-size:12px;font-weight:750;letter-spacing:.14em;text-transform:uppercase;color:#806035}.intro{max-width:720px;margin:24px 0 40px}.card{background:white;border:1px solid #dcded5;border-radius:16px;padding:24px;margin:20px 0;box-shadow:0 4px 18px #293e3110}.catalog{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:14px}.product{border:1px solid #ddd6c7;border-radius:12px;padding:20px}.product.special{border:2px solid var(--gold);background:#fff9ec;grid-column:1/-1}.product p{min-height:45px}button,.button{cursor:pointer;min-height:44px;border-radius:8px;border:1px solid #c2c9be;background:white;color:var(--pine);padding:10px 15px;font:inherit;font-weight:650;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:6px}button.primary{background:var(--pine);color:white;border-color:var(--pine)}button:disabled{opacity:.5;cursor:wait}.actions{display:flex;gap:9px;flex-wrap:wrap;margin:12px 0}.grid,.filters{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:16px}label{display:flex;flex-direction:column;gap:7px;font-size:14px;font-weight:600}input,select,textarea{width:100%;min-height:44px;border:1px solid #bfc9bf;border-radius:7px;background:#fff;padding:10px;color:#1c3227;font:inherit}textarea{min-height:78px}.check{flex-direction:row;align-items:start;font-weight:400;margin:16px 0}.check input{width:20px;min-height:20px;margin-top:3px;flex-shrink:0}.line{border:1px solid #d6dcd3;border-radius:10px;padding:18px;margin:20px 0}.line legend{font-size:18px;font-weight:700;padding:0 8px}.quiet{border:0;color:#7c3535;font-size:14px}.alert{background:#fff1d4;color:#70491e;padding:14px;border-radius:9px}.alert:empty{display:none}.summary{padding-left:20px}.summary li{margin:10px 0}.table-wrap{overflow-x:auto}table{border-collapse:collapse;width:100%;font-size:14px}th{text-align:left;background:#edf1e9}th,td{padding:12px;border-bottom:1px solid #dce1d6;vertical-align:top}td strong{display:block}.stats{display:flex;gap:20px;flex-wrap:wrap}.stat{min-width:140px;padding:18px;background:#edf1e9;border-radius:10px}.stat strong{display:block;font:32px Georgia,serif}.tag{display:inline-block;border-radius:20px;padding:3px 10px;background:#f2e8ce;font-size:12px}dialog{width:min(1050px,96vw);max-height:93vh;border:0;border-radius:15px;padding:20px;background:var(--cream)}dialog::backdrop{background:#122419b0}.hero-image{max-width:360px;width:100%;border-radius:12px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}details{margin:18px 0}summary{cursor:pointer;font-weight:700}.calendar-row{display:flex;gap:10px;align-items:end;margin:12px 0}.calendar-row>*{flex:1}.calendar-row button{flex:0}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #d4a54c;outline-offset:3px}@media(max-width:620px){main{padding:20px 14px}.card{padding:18px}.grid{grid-template-columns:1fr}.calendar-row{flex-wrap:wrap}.calendar-row label{flex-basis:40%}header{font-size:13px;padding:14px}.actions>*{flex-grow:1}.product.special{grid-column:auto}dialog{padding:10px}}@media print{header,.actions,button,#notice{display:none}body{background:white}.card{box-shadow:none;break-inside:avoid}main{max-width:none}.intro{display:none}}

pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px}
/* Percorso operativo mobile: azioni esplicite, scelta touch e una sezione per volta. */
h2,h3{font-family:inherit;font-weight:750;letter-spacing:-.02em}h1{font-size:clamp(28px,4vw,44px);margin:10px 0 22px}h2{font-size:24px}h3{font-size:19px}.toolbar,.editor-top,.section-title{display:flex;align-items:center;justify-content:space-between;gap:12px}.toolbar .primary{flex:1;min-height:52px}.tools{margin:12px 0 20px}.tools>summary,.filter-panel>summary{font-size:14px;color:#4d6054}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.stat{min-width:0;padding:14px;border:1px solid #d7dfd2;border-radius:12px}.stat strong{font:750 28px/1.15 system-ui,sans-serif;margin-bottom:5px}.stats .stat span{display:block;border:0;padding:0;font-size:13px;line-height:1.3}.stat-pending{background:#fff0cf;border-color:#ddc284}.stat-confirmed{background:#e7f0e6}.orders{padding:20px}.section-title{margin-bottom:16px}.section-title h2{margin:0}.section-title>span{font-size:13px;color:#586658}.search-label{margin-bottom:12px}.filter-panel{margin:10px 0 16px}.order-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,310px),1fr));gap:12px}.order-card{border:1px solid #d9ded4;border-radius:12px;padding:16px;min-width:0;overflow-wrap:anywhere;background:#fffefa}.order-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}.order-heading h3{margin:3px 0 10px}.order-heading small{font-size:11px;letter-spacing:.04em}.tag{white-space:nowrap;font:700 12px/1.5 system-ui}.tag-confirmed{background:#dcebdd;color:#234e31}.tag-pending{background:#ffebba;color:#735014}.tag-cancelled{background:#eee;color:#555}.order-products{font-weight:650;font-size:14px}.order-card p{font-size:14px;line-height:1.5}.order-bottom{border-top:1px solid #e4e5dc;margin-top:12px;padding-top:12px;display:flex;align-items:center;gap:8px;justify-content:space-between}.order-bottom>span{font-size:12px;color:#596354}.order-bottom button{font-size:13px}.arrangement{padding:8px 10px;background:#fff3da;border-radius:7px}.steps{display:flex;gap:6px;margin:14px 0}.steps button{flex:1;padding:10px 6px;font-size:13px;background:#e9ede4;border-color:transparent;line-height:1.3;min-width:0}.steps button[aria-current]{background:var(--pine);color:white}.steps b{font-size:14px}.editor-top h2{margin:0}.editor-top>button{min-height:40px;font-size:13px}.choice-field{padding:0;border:0;background:none;margin:20px 0}.choice-field legend{padding:0;margin-bottom:10px;font-size:16px}.choice-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(135px,1fr));gap:10px}.choice{position:relative;display:block;min-width:0;cursor:pointer}.choice input[type=radio]{position:absolute;opacity:0;width:1px;height:1px;min-height:0;margin:0}.choice span{display:flex;min-height:54px;align-items:center;justify-content:center;text-align:center;padding:12px;border:1px solid #b9c6b8;border-radius:11px;background:white;font-size:15px;font-weight:700;line-height:1.35}.choice input:checked+span{background:#e1eddf;border:2px solid var(--pine);color:#183b29;box-shadow:inset 0 0 0 1px var(--pine)}.choice input:focus-visible+span{outline:3px solid var(--gold);outline-offset:3px}.line-main{display:flex;gap:20px;align-items:center;flex-wrap:wrap}.line-main>label{flex:1;min-width:160px}.quantity{display:flex;align-items:center;gap:0;margin-top:6px}.quantity button{width:44px;height:46px;font-size:23px;border-radius:8px}.quantity input[type=number]{width:70px;min-height:46px;margin:0 6px;text-align:center;font-size:19px;font-weight:750;padding:5px}.line-footer{display:flex;justify-content:space-between;align-items:center;gap:10px;border-top:1px solid #e2e5dc;padding-top:10px}.line-footer p{margin:0;font-weight:750}.line details{margin:12px 0}.line summary{font-size:13px}.cart-total{padding:14px;border-radius:10px;background:#e9f0e5;font-size:18px;font-weight:750}.empty{padding:20px;text-align:center;color:#5c6b5c}.wizard-nav{display:flex;justify-content:space-between;gap:10px;position:sticky;bottom:0;background:var(--cream);padding:12px 0 4px;border-top:1px solid #ddd;z-index:2}.wizard-nav button{flex:1;min-height:50px}.submit-actions{display:flex;gap:12px;margin-top:20px}.submit-actions button{flex:1;min-height:54px}.state-help{font-size:14px;color:#52634f}#error{scroll-margin-top:20px}.product p{min-height:0;font-size:14px}.catalog{grid-template-columns:repeat(auto-fit,minmax(240px,1fr))}.product.special{grid-column:auto}.product .actions{display:grid;grid-template-columns:repeat(auto-fit,minmax(95px,1fr))}.product .actions button{padding:12px 6px;font-size:14px}.summary{list-style:none;padding:0}.summary li{padding:10px 0;border-bottom:1px solid #e2e5dc}.summary+p{margin-top:16px}
@media(max-width:620px){main{padding:18px 14px 50px}.stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.stat{padding:12px}.card{padding:16px;margin:14px 0}.catalog{grid-template-columns:1fr}.product{padding:14px}.line{padding:12px}.steps button{font-size:12px;display:flex;flex-direction:column;gap:4px}.choice-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.choice span{font-size:14px}.submit-actions{flex-direction:column-reverse}.order-bottom{flex-wrap:wrap}.order-bottom button{margin-left:auto}dialog{width:100%;max-width:100vw;max-height:100dvh;height:100dvh;margin:0;border-radius:0;padding:16px}header{gap:10px}header strong{max-width:65%}}

.product-heading {
 display: grid;
 grid-template-columns: minmax(80px, 40%) minmax(0, 1fr);
 gap: 14px;
 align-items: center;
}
.product-photo {
 display: block;
 width: 100%;
 height: auto;
 aspect-ratio: 23 / 20;
 object-fit: cover;
 border-radius: 8px;
}
.product-heading h3 { margin: 0; overflow-wrap: anywhere; }
.product-heading p { margin: 6px 0 0; }
@media (min-width: 621px) {
 .catalog:has(.product-photo) { grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); }
}
