/* PIODA POSTER 1.6.5 — Le classi .woocommerce e .pioda-poster-v16 sono entrambe sul body nelle schede WooCommerce.
   Non richiedere un secondo wrapper .woocommerce interno: i 117 selettori non corrispondevano al DOM. */
/* PIODA CORE 1.6.0 — Poster Engine. Solo prodotti variabili Poster / Plottaggi */
body.pioda-poster-v16 {--poster-gold:#b9852e;--poster-ink:#17232e;--poster-light:#f8f6f2;--poster-border:#e5e6e9;--poster-muted:#78818b}
body.pioda-poster-v16 div.product{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.95fr);align-items:start;column-gap:30px;row-gap:20px;max-width:1320px;margin-inline:auto}
body.pioda-poster-v16 div.product::before,body.pioda-poster-v16 div.product::after{content:none;display:none}
body.pioda-poster-v16 div.product>.pioda-poster-hero{grid-column:1/-1;width:100%;float:none;margin:0 0 9px}
.pioda-poster-hero{display:flex;align-items:end;justify-content:space-between;gap:30px;padding:26px 0 28px;border-bottom:1px solid var(--poster-border)}
.pioda-poster-eyebrow{font-family:Inter,system-ui,sans-serif;font-size:11px!important;font-weight:750;letter-spacing:.13em;color:var(--poster-gold);text-transform:uppercase;margin:0 0 12px!important}
.pioda-poster-hero h1{font-family:'DM Serif Display',Georgia,serif;color:var(--poster-ink);font-size:clamp(31px,3.6vw,55px);line-height:1.1;margin:0 0 16px;font-weight:400}
.pioda-poster-hero p:not(.pioda-poster-eyebrow){max-width:680px;color:#59636e;font-size:15px;line-height:1.65;margin:0}
.pioda-poster-hero__price{padding:18px 24px;border-radius:13px;background:var(--poster-light);min-width:190px;white-space:nowrap}
.pioda-poster-hero__price small{display:block;color:var(--poster-muted);font-size:12px;margin-bottom:4px}
.pioda-poster-hero__price strong{font-size:21px;color:var(--poster-gold);font-weight:700}
body.pioda-poster-v16 div.product div.summary{grid-column:1;float:none;width:auto;min-width:0;margin:0;padding:26px;border:1px solid var(--poster-border);border-radius:15px;background:#fff}
body.pioda-poster-v16 div.product .pioda-poster-preview{grid-column:2;float:none;margin:0;min-width:0;position:sticky;top:22px}
.pioda-poster-config-intro h2,.pioda-poster-preview h2{font:400 30px/1.18 'DM Serif Display',Georgia,serif;color:var(--poster-ink);margin:0 0 9px}
.pioda-poster-config-intro>p:last-child,.pioda-poster-preview__head>p:last-child{color:var(--poster-muted);font-size:14px;margin:0 0 18px}
.pioda-poster-config-intro{margin-bottom:22px}
.pioda-poster-step{display:flex;gap:12px;align-items:flex-start;margin:22px 0 16px}
.pioda-poster-step__number{display:flex;align-items:center;justify-content:center;width:30px;height:30px;flex-shrink:0;border-radius:50%;background:#f5e8cc;color:var(--poster-gold);font-weight:700}
.pioda-poster-step h3{font:400 21px/1.25 'DM Serif Display',Georgia,serif;margin:1px 0 6px;color:var(--poster-ink)}
.pioda-poster-step p{font-size:13px;color:#77818c;line-height:1.65;margin:0}
body.pioda-poster-v16 div.product form.cart{display:block;margin:0}
body.pioda-poster-v16 div.product form.cart .variations{width:100%;margin:0 0 14px;border:0;border-collapse:collapse}
body.pioda-poster-v16 div.product form.cart .variations tr{display:block}
body.pioda-poster-v16 div.product form.cart .variations th,body.pioda-poster-v16 div.product form.cart .variations td{display:block;width:100%;padding:0;border:0;background:none;text-align:left}
body.pioda-poster-v16 div.product form.cart .variations label{font-weight:650;color:var(--poster-ink);font-size:14px;display:block;margin-bottom:8px}
body.pioda-poster-v16 div.product form.cart .variations select{width:100%;max-width:none;border:1px solid #dce0e4;background:#fff;color:var(--poster-ink);border-radius:9px;height:48px;padding:0 14px;font-size:14px}
body.pioda-poster-v16 div.product form.cart .variations a.reset_variations{display:inline-block;margin-top:7px;color:var(--poster-gold);font-size:12px}
.pioda-poster-upload{border-top:1px solid var(--poster-border);margin-top:22px;padding-top:2px}
.pioda-poster-drop{border:1.5px dashed #cbb38a;background:#fcfaf6;border-radius:12px;min-height:155px;padding:22px 17px;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;cursor:pointer;color:var(--poster-ink)}
.pioda-poster-drop svg{width:30px;height:30px;color:var(--poster-gold)}
.pioda-poster-drop strong{font-size:15px}
.pioda-poster-drop span{font-size:12px;color:#808791}
.pioda-poster-drop input[type=file]{display:block;max-width:100%;margin:10px 0 0;color:var(--poster-ink);font-size:12px}
.pioda-poster-drop input[type=file]::file-selector-button{padding:9px 12px;border:1px solid #d4bc8f;background:#fff;border-radius:7px;color:#8e641d;cursor:pointer;margin-right:10px}
.pioda-poster-validation{margin:12px 0;border-radius:8px;background:#f4f5f6;border:1px solid #e2e6e8;color:#697682;padding:11px 12px;font-size:13px;line-height:1.5}
.pioda-poster-validation.is-ok{background:#edf7ef;border-color:#b6dfc2;color:#23623a}
.pioda-poster-validation.is-error{background:#fff2f0;border-color:#fac8c0;color:#9b3a32}
.pioda-poster-validation.is-pending{background:#fff8e9;border-color:#f1d6a2;color:#84570f}
.pioda-poster-consent{display:flex;gap:9px;align-items:flex-start;font-size:12.5px;line-height:1.65;color:#43505e;cursor:pointer;margin:13px 0}
.pioda-poster-consent input{flex:0 0 auto;margin:4px 0 0}
.pioda-poster-footnote{font-size:11.5px;line-height:1.6;color:#87909a;margin:12px 0 0}
body.pioda-poster-v16 div.product form.cart .single_variation_wrap{display:block}
body.pioda-poster-v16 div.product form.cart .woocommerce-variation-price{font-size:16px;font-weight:700;color:var(--poster-gold);margin:10px 0}
body.pioda-poster-v16 div.product form.cart .woocommerce-variation-add-to-cart{display:flex;align-items:center;gap:14px;flex-wrap:wrap;border-top:1px solid var(--poster-border);padding-top:20px;margin-top:16px}
body.pioda-poster-v16 div.product form.cart .quantity{float:none;margin:0}
body.pioda-poster-v16 div.product form.cart button.single_add_to_cart_button{background:linear-gradient(100deg,#ac7b27,#d6a64c);border:0;border-radius:9px;min-height:49px;padding:11px 26px;color:#fff;float:none;flex:1;transition:opacity .2s}
body.pioda-poster-v16 div.product form.cart button.single_add_to_cart_button:disabled{opacity:.43;cursor:not-allowed}
.pioda-poster-preview{border:1px solid var(--poster-border);border-radius:15px;overflow:hidden;background:white}
.pioda-poster-preview__head{padding:25px 25px 0}
.pioda-poster-scene{padding:0 26px 0;background:linear-gradient(#f0ece5 0 85%,#dfd5c9 85%)}
.pioda-poster-scene__wall{display:flex;align-items:center;justify-content:center;flex-direction:column;min-height:400px;position:relative;padding:35px 0 25px}
.pioda-poster-scene__art{aspect-ratio:var(--pioda-poster-ratio, .708);width:min(70%,300px);max-height:420px;box-shadow:0 16px 30px #29231a2e,0 0 0 7px #fff,0 0 0 9px #a98a63;position:relative;background:#fff;overflow:hidden;transition:aspect-ratio .25s,width .25s}
.pioda-poster-scene__empty{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:18px;text-align:center;color:#8893a0;background:linear-gradient(155deg,#fcfcfc,#e9edf2)}
.pioda-poster-scene__empty svg{width:48px;height:48px;color:#b9852e}
.pioda-poster-scene__empty strong{color:#43505d;font-size:14px}
.pioda-poster-scene__empty small{font-size:11px}
.pioda-poster-scene__art iframe{display:none;position:absolute;inset:0;width:100%;height:100%;border:0;background:white;pointer-events:none}
.pioda-poster-scene__art.has-pdf iframe{display:block}
.pioda-poster-scene__art.has-pdf .pioda-poster-scene__empty{display:none}
.pioda-poster-scene__rail{height:4px;width:160px;border-radius:40%;background:#8e806f33;margin-top:31px}
.pioda-poster-scene__floor{height:28px;background:#dad0c1;box-shadow:inset 0 3px 5px #c4b9aa6a;margin-inline:-26px}
.pioda-poster-preview__notes{display:flex;flex-direction:column;gap:11px;padding:20px 24px;border-bottom:1px solid var(--poster-border)}
.pioda-poster-preview__notes div{display:flex;align-items:center;gap:9px;font-size:12px;color:#566371}
.pioda-poster-preview__notes svg{color:var(--poster-gold);width:19px;height:19px;flex:0 0 auto}
.pioda-poster-preview__disclaimer{font-size:11px;color:#89939a;padding:14px 24px 18px;line-height:1.65;margin:0}
body.pioda-poster-v16 div.product .woocommerce-tabs,body.pioda-poster-v16 div.product .related{grid-column:1/-1}
@media(max-width:1000px){body.pioda-poster-v16 div.product{grid-template-columns:minmax(0,1fr) minmax(0,.9fr);gap:16px}body.pioda-poster-v16 div.product div.summary{padding:18px}.pioda-poster-scene{padding-inline:16px}.pioda-poster-scene__wall{min-height:340px}}
@media(max-width:767px){body.pioda-poster-v16 div.product{grid-template-columns:1fr;gap:16px}body.pioda-poster-v16 div.product>.pioda-poster-hero,body.pioda-poster-v16 div.product div.summary,body.pioda-poster-v16 div.product .pioda-poster-preview{grid-column:1}body.pioda-poster-v16 div.product .pioda-poster-preview{position:static}.pioda-poster-hero{flex-direction:column;align-items:flex-start;padding:12px 0 16px;gap:16px}.pioda-poster-hero h1{font-size:34px}.pioda-poster-hero__price{width:100%;padding:13px 17px}.pioda-poster-preview__head{padding:18px 18px 0}.pioda-poster-scene__wall{min-height:325px}.pioda-poster-scene__art{max-height:315px}.pioda-poster-config-intro h2,.pioda-poster-preview h2{font-size:27px}}
@media(max-width:380px){body.pioda-poster-v16 div.product div.summary{padding:14px}.pioda-poster-scene__art{width:68%}}
/* Evita che larghezza 100% + padding del prezzo allarghi la pagina mobile. */
body.pioda-poster-v16 div.product .pioda-poster-hero__price{box-sizing:border-box;max-width:100%}

.pioda-poster-preview__open{display:block;margin:0;padding:12px 24px;background:#faf7f0;color:#8c631d;text-decoration:underline;font-size:12px;font-weight:650;text-align:center;border-bottom:1px solid #eee5d7}
.pioda-poster-preview__open[hidden]{display:none!important}

/* 1.6.2 — UI formati visivi, riepilogo acquisto e prodotti correlati */
body.pioda-poster-v16 .pioda-poster-hero__heading{display:flex;align-items:center;gap:16px;margin-bottom:15px}
body.pioda-poster-v16 .pioda-poster-hero__heading h1{margin:0}
.pioda-poster-hero__icon{height:52px;width:52px;flex:0 0 52px;border:1px solid #ebdeca;border-radius:14px;background:#fcf8f0;color:var(--poster-gold);display:flex;align-items:center;justify-content:center}
.pioda-poster-hero__icon svg{height:30px;width:30px}
body.pioda-poster-v16 div.product div.summary{margin-top:12px}
body.pioda-poster-v16 .pioda-poster-config-intro{margin:0 0 30px;padding-top:20px}
body.pioda-poster-v16 .pioda-poster-config-intro .pioda-poster-eyebrow{margin-bottom:10px!important}
/* Progressive enhancement: le card sono sempre visibili; il select nativo rimane come fallback finché il JS non collega le varianti. */
body.pioda-poster-v16 div.product .pioda-poster-format-cards{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin:8px 0 21px}
body.pioda-poster-v16 div.product .pioda-poster-formats-fallback{font-size:12px;color:#6b7580;margin:-9px 0 19px}
body.pioda-poster-v16 div.product form.cart.pioda-poster-cards-ready .pioda-poster-formats-fallback{display:none}
body.pioda-poster-v16 div.product form.cart.pioda-poster-cards-ready table.variations{position:absolute!important;left:-10000px!important;top:auto!important;width:1px!important;height:1px!important;overflow:hidden!important;clip-path:inset(50%)!important}
body.pioda-poster-v16 .pioda-poster-format-card{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:5px;min-width:0;width:100%;min-height:206px;padding:12px 5px 11px;background:linear-gradient(#fff,#fbfaf7);border:1.5px solid #e1e3e7;border-radius:11px;box-shadow:none;color:var(--poster-ink);text-align:center;cursor:pointer;transition:border-color .18s,box-shadow .18s,background .18s,transform .18s;font:inherit;line-height:1.3;white-space:normal}
body.pioda-poster-v16 .pioda-poster-format-card:hover{border-color:#cda75f;box-shadow:0 5px 18px #b9852e1a;transform:translateY(-2px)}
body.pioda-poster-v16 .pioda-poster-format-card:focus-visible{outline:3px solid #b9852e;outline-offset:3px}
body.pioda-poster-v16 .pioda-poster-format-card.is-selected{border:2px solid var(--poster-gold);padding:11.5px 4.5px 10.5px;background:#fffaf1;box-shadow:0 4px 16px #b9852e17}
.pioda-poster-format-card__figure{height:86px;max-width:100%;display:flex;align-items:flex-end;justify-content:center}
.pioda-poster-format-card__sheet{display:block;box-sizing:border-box;width:var(--poster-sheet-width);height:var(--poster-sheet-height);background:linear-gradient(125deg,#fff,#f4f3f0);border:1px solid #c5bcaf;box-shadow:2px 3px 4px #17232e18;position:relative}
.pioda-poster-format-card__sheet::after{content:'';position:absolute;inset:7px 6px;border-top:1px solid #e0d8c8;border-bottom:1px solid #e0d8c8}
.pioda-poster-format-card__title{font-family:Inter,system-ui,sans-serif;font-weight:800;font-size:17px;color:var(--poster-ink);margin-top:2px}
.pioda-poster-format-card__dims{font-size:10px;font-weight:500;color:#74808c;min-height:26px;display:flex;align-items:center;justify-content:center}
.pioda-poster-format-card__price{font-size:12px;line-height:1.2;font-weight:750;color:var(--poster-gold)}
.pioda-poster-format-card__price .woocommerce-Price-amount{font-size:12px;color:inherit}
.pioda-poster-format-card__check{display:none;align-items:center;justify-content:center;position:absolute;top:7px;right:7px;width:19px;height:19px;border-radius:50%;background:var(--poster-gold);color:#fff}
.pioda-poster-format-card__check svg{width:13px;height:13px}
.pioda-poster-format-card.is-selected .pioda-poster-format-card__check{display:flex}
/* Importo e acquisto in continuità con il configuratore Tesi */
body.pioda-poster-v16 div.product form.cart .single_variation_wrap{min-width:0}
body.pioda-poster-v16 div.product form.cart .woocommerce-variation.single_variation{margin:18px 0 0;border:1px solid #e8e4da;background:#faf8f3;border-radius:11px;padding:14px 17px;min-height:50px;box-sizing:border-box}
body.pioda-poster-v16 div.product form.cart .woocommerce-variation-price{margin:0;color:var(--poster-gold);font-family:'DM Serif Display',Georgia,serif;font-size:29px;line-height:1.2;font-weight:400}
body.pioda-poster-v16 div.product form.cart .woocommerce-variation-price .price{color:var(--poster-gold)}
body.pioda-poster-v16 div.product form.cart .woocommerce-variation-price .woocommerce-Price-amount{color:var(--poster-gold);font-family:'DM Serif Display',Georgia,serif;font-weight:400;font-size:29px}
body.pioda-poster-v16 div.product form.cart .woocommerce-variation-add-to-cart{margin-top:11px;padding:0;border:0;display:grid;grid-template-columns:minmax(128px,auto) minmax(0,1fr);gap:12px;align-items:stretch}
body.pioda-poster-v16 div.product form.cart .quantity{display:flex;align-items:center;justify-content:center;border:1px solid #dfe1e4;border-radius:9px;background:#fff;overflow:hidden;margin:0;min-height:54px;width:auto;max-width:185px}
body.pioda-poster-v16 div.product form.cart .quantity input.qty{font-size:16px;color:var(--poster-ink);background:transparent;border:0!important;box-shadow:none;min-width:44px;width:54px;text-align:center;margin:0;padding:0 4px;min-height:52px;appearance:textfield;-moz-appearance:textfield}
body.pioda-poster-v16 div.product form.cart .quantity input.qty::-webkit-inner-spin-button,body.pioda-poster-v16 div.product form.cart .quantity input.qty::-webkit-outer-spin-button{appearance:none;margin:0}
body.pioda-poster-v16 .pioda-poster-qty__button{width:41px;min-width:41px;height:52px;background:#fff;color:#17232e;border:0;box-shadow:none;cursor:pointer;font-size:20px;padding:0}
body.pioda-poster-v16 .pioda-poster-qty__button:first-child{border-right:1px solid #ececef}
body.pioda-poster-v16 .pioda-poster-qty__button:last-child{border-left:1px solid #ececef}
body.pioda-poster-v16 .pioda-poster-qty__button:hover{background:#faf6ee;color:var(--poster-gold)}
body.pioda-poster-v16 div.product form.cart button.single_add_to_cart_button{box-sizing:border-box;width:100%;min-height:54px;padding:12px 18px;border-radius:9px;font-size:14px;font-weight:750;text-transform:none;letter-spacing:0;background:linear-gradient(95deg,#aa7625,#d4a44b);color:#fff;box-shadow:0 3px 10px #b9852e1b}
body.pioda-poster-v16 div.product form.cart button.single_add_to_cart_button:not(:disabled):hover{filter:brightness(.95)}
body.pioda-poster-v16 div.product form.cart button.single_add_to_cart_button:disabled{opacity:.48}
/* Eliminazione definitiva delle tab WooCommerce su soli poster, anche in presenza di altri hook tema. */
body.pioda-poster-v16 div.product .woocommerce-tabs{display:none!important}
/* Prodotti correlati */
body.pioda-poster-v16 div.product section.related.products{clear:both;width:100%;margin:27px 0 36px;padding:27px 0 0;border-top:1px solid #e4e7e9;min-width:0}
body.pioda-poster-v16 div.product section.related.products>h2{font:400 clamp(26px,2.6vw,35px)/1.2 'DM Serif Display',Georgia,serif;color:var(--poster-ink);margin:0 0 20px}
body.pioda-poster-v16 div.product section.related.products ul.products{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin:0!important;padding:0!important;list-style:none!important;overflow:visible}
body.pioda-poster-v16 div.product section.related.products ul.products::before,body.pioda-poster-v16 div.product section.related.products ul.products::after{display:none!important;content:none!important}
body.pioda-poster-v16 div.product section.related.products ul.products li.product{float:none!important;width:auto!important;min-width:0!important;max-width:none!important;clear:none!important;margin:0!important;padding:13px 13px 16px!important;border:1px solid #e4e6e9;border-radius:14px;background:#fff;overflow:hidden;box-shadow:0 3px 13px #17232e08;transition:transform .18s,box-shadow .18s}
body.pioda-poster-v16 div.product section.related.products ul.products li.product:hover{transform:translateY(-2px);box-shadow:0 9px 24px #17232e16}
body.pioda-poster-v16 div.product section.related.products li.product a img{width:100%;max-height:235px;object-fit:contain;display:block;margin:0 0 12px!important;border-radius:9px;background:#f6f4f1}
body.pioda-poster-v16 div.product section.related.products li.product h2.woocommerce-loop-product__title{font-family:Inter,system-ui,sans-serif;font-size:15px;font-weight:700;line-height:1.45;color:var(--poster-ink);margin:5px 0 8px;padding:0}
body.pioda-poster-v16 div.product section.related.products li.product .price{font-size:15px;font-weight:750;color:var(--poster-gold);margin-bottom:13px}
body.pioda-poster-v16 div.product section.related.products li.product .price .amount{color:var(--poster-gold)}
body.pioda-poster-v16 div.product section.related.products li.product a.button{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;font-size:13px;font-weight:750;line-height:1.3;background:#b9852e;color:white;border:0;border-radius:8px;min-height:38px;padding:9px 17px;margin:2px 0 0}
body.pioda-poster-v16 div.product section.related.products li.product a.button:hover{background:#95691f}
@media(max-width:1100px){.pioda-poster-format-cards{grid-template-columns:repeat(3,minmax(0,1fr))}body.pioda-poster-v16 div.product section.related.products ul.products{gap:14px}}
@media(max-width:767px){body.pioda-poster-v16 .pioda-poster-hero__heading{gap:11px}.pioda-poster-hero__icon{width:42px;height:42px;flex-basis:42px;border-radius:11px}.pioda-poster-hero__icon svg{width:25px;height:25px}body.pioda-poster-v16 .pioda-poster-config-intro{padding-top:13px;margin-bottom:23px}.pioda-poster-format-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}body.pioda-poster-v16 .pioda-poster-format-card{min-height:191px}body.pioda-poster-v16 div.product section.related.products ul.products{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}body.pioda-poster-v16 div.product section.related.products ul.products li.product{padding:10px!important}body.pioda-poster-v16 div.product section.related.products li.product h2.woocommerce-loop-product__title{font-size:13px}}
@media(max-width:480px){body.pioda-poster-v16 div.product form.cart .woocommerce-variation-add-to-cart{grid-template-columns:115px minmax(0,1fr);gap:8px}body.pioda-poster-v16 div.product form.cart .quantity{max-width:115px}body.pioda-poster-v16 div.product form.cart .quantity input.qty{min-width:30px;width:35px}body.pioda-poster-v16 .pioda-poster-qty__button{min-width:32px;width:32px}body.pioda-poster-v16 div.product form.cart button.single_add_to_cart_button{padding:9px;font-size:12px}body.pioda-poster-v16 div.product section.related.products ul.products{grid-template-columns:1fr 1fr}}
/* Prezzo e pulsante correlati in righe separate anche se altri CSS WooCommerce li forzano inline. */
body.pioda-poster-v16 div.product section.related.products li.product .price{display:block!important;line-height:1.45;margin:8px 0 13px!important}
body.pioda-poster-v16 div.product section.related.products li.product a.button{display:inline-flex!important;max-width:100%;box-sizing:border-box}

/* In assenza di inizializzazione i pulsanti restano disabilitati ma il select WooCommerce è utilizzabile. */
body.pioda-poster-v16 .pioda-poster-format-card:disabled{cursor:default;opacity:.58;box-shadow:none;transform:none}
body.pioda-poster-v16 .pioda-poster-format-card:not(:disabled){opacity:1}
/* La griglia dei formati conserva le stesse proporzioni al variare della larghezza. */
@media (max-width:1100px){
  body.pioda-poster-v16 div.product .pioda-poster-format-cards{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (max-width:767px){
  body.pioda-poster-v16 div.product .pioda-poster-format-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
}


/* 1.6.4 — Priorità rispetto a temi/GeneratePress, layout desktop a 5 card */
body.pioda-poster-v16 div.product form.variations_form.cart .pioda-poster-format-cards,
body.pioda-poster-v16 div.product form.cart .pioda-poster-format-cards {
  display:grid!important;
  grid-template-columns:repeat(5,minmax(0,1fr))!important;
  grid-auto-flow:row!important;
  gap:12px!important;
  width:100%!important;
  max-width:none!important;
  margin:12px 0 28px!important;
  padding:0!important;
  box-sizing:border-box;
  clear:both;
}
body.pioda-poster-v16 div.product form.cart .pioda-poster-format-cards > .pioda-poster-format-card {
  display:flex!important;
  grid-column:auto!important;
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  margin:0!important;
  float:none!important;
  box-sizing:border-box;
  align-self:stretch;
  justify-self:stretch;
  min-height:195px;
  padding-inline:5px;
}
/* Riepilogo acquisto: prezzo, copie e CTA WooCommerce nello stile Tesi */
body.pioda-poster-v16 div.product form.cart .single_variation_wrap {
  display:block!important;
  width:100%;max-width:100%;min-width:0;
  padding:19px 20px 22px;
  border:1px solid #e4e6e9;
  border-radius:14px;
  background:#fff;
  margin-top:24px;
  box-sizing:border-box;
}
body.pioda-poster-v16 div.product form.cart .woocommerce-variation.single_variation {
  margin:0 0 14px!important;
  padding:13px 16px!important;
  min-height:0;
  background:#faf8f3!important;
  border:1px solid #eee6d9!important;
  border-radius:10px;
  box-sizing:border-box;
}
body.pioda-poster-v16 div.product form.cart .woocommerce-variation-add-to-cart,
body.pioda-poster-v16 div.product form.cart .woocommerce-variation-add-to-cart-enabled,
body.pioda-poster-v16 div.product form.cart .woocommerce-variation-add-to-cart-disabled {
  display:grid!important;
  grid-template-columns:160px minmax(0,1fr)!important;
  align-items:stretch!important;
  gap:12px!important;
  width:100%;max-width:100%;
  float:none!important;
  margin:12px 0 0!important;
  padding:0!important;
  border:0!important;
  box-sizing:border-box;
}
body.pioda-poster-v16 div.product form.cart .quantity.pioda-poster-qty {
  display:flex!important;
  flex-direction:row!important;
  flex-wrap:nowrap!important;
  align-items:stretch!important;
  justify-content:center!important;
  grid-column:1;
  width:160px!important;max-width:160px!important;
  min-width:0!important;
  height:54px!important;min-height:54px!important;
  margin:0!important;padding:0!important;
  border:1px solid #dfe1e4!important;
  border-radius:9px!important;
  box-shadow:none!important;
  overflow:hidden!important;
  float:none!important;
  box-sizing:border-box;
  position:relative;
}
/* I pulsanti del tema vengono rimossi dalla presentazione, senza modificarne gli hook. */
body.pioda-poster-v16 div.product form.cart .quantity :is(.minus,.plus,input[type="button"],a.button):not(.pioda-poster-qty__button),
body.pioda-poster-v16 div.product form.cart .quantity > button:not(.pioda-poster-qty__button) {
  display:none!important;
}
body.pioda-poster-v16 div.product form.cart .quantity.pioda-poster-qty input.qty {
  display:block!important;
  box-sizing:border-box!important;
  flex:1 1 44px!important;
  order:2;
  min-width:0!important;max-width:none!important;
  width:44px!important;
  height:52px!important;min-height:52px!important;
  padding:0 2px!important;
  border:0!important;border-radius:0!important;
  background:#fff!important;
  box-shadow:none!important;
  text-align:center!important;
  font-size:17px!important;
  line-height:52px!important;
  margin:0!important;
  appearance:textfield;
}
body.pioda-poster-v16 div.product form.cart .quantity.pioda-poster-qty > .pioda-poster-qty__button {
  display:flex!important;
  align-items:center!important;justify-content:center!important;
  flex:0 0 49px!important;
  width:49px!important;min-width:49px!important;max-width:49px!important;
  height:52px!important;min-height:52px!important;
  margin:0!important;padding:0!important;
  color:#17232e!important;background:#fff!important;
  border:0!important;border-radius:0!important;
  box-shadow:none!important;float:none!important;
  font:500 21px/1 Inter,system-ui,sans-serif!important;
  cursor:pointer;
}
body.pioda-poster-v16 div.product form.cart .quantity.pioda-poster-qty > .pioda-poster-qty__button:first-of-type{order:1;border-right:1px solid #ececef!important}
body.pioda-poster-v16 div.product form.cart .quantity.pioda-poster-qty > .pioda-poster-qty__button:last-of-type{order:3;border-left:1px solid #ececef!important}
body.pioda-poster-v16 div.product form.cart .woocommerce-variation-add-to-cart button.single_add_to_cart_button {
  display:flex!important;align-items:center;justify-content:center;
  grid-column:2;
  width:100%!important;min-width:0!important;
  min-height:54px!important;
  margin:0!important;padding:12px 15px!important;
  float:none!important;
  font:700 15px/1.3 Inter,system-ui,sans-serif!important;
  color:#fff!important;
  background:linear-gradient(95deg,#ac7929,#d2a147)!important;
  border:0!important;border-radius:9px!important;
  box-sizing:border-box!important;
  text-transform:none!important;
  letter-spacing:0!important;
}
body.pioda-poster-v16 div.product form.cart .woocommerce-variation-add-to-cart button.single_add_to_cart_button:disabled{opacity:.45!important}
/* Spazio netto tra mockup/anteprima e prodotti correlati, card compatte */
body.pioda-poster-v16 div.product section.related.products {
  grid-column:1/-1!important;
  margin:72px 0 42px!important;
  padding:34px 0 0!important;
  border-top:1px solid #e5e7ea!important;
  clear:both!important;
}
body.pioda-poster-v16 div.product section.related.products ul.products {
  display:grid!important;
  grid-template-columns:repeat(auto-fit,minmax(220px,290px))!important;
  justify-content:start!important;
  gap:22px!important;
}
body.pioda-poster-v16 div.product section.related.products ul.products li.product {
  display:flex!important;
  flex-direction:column!important;
  width:100%!important;
  max-width:290px!important;
  height:100%;
  margin:0!important;
}
body.pioda-poster-v16 div.product section.related.products ul.products li.product img {
  max-height:210px!important;
  object-fit:contain!important;
}
@media(max-width:1100px) {
 body.pioda-poster-v16 div.product form.cart .pioda-poster-format-cards{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}
@media(max-width:767px) {
 body.pioda-poster-v16 div.product form.cart .pioda-poster-format-cards{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
 body.pioda-poster-v16 div.product form.cart .single_variation_wrap{padding:14px 12px 16px}
 body.pioda-poster-v16 div.product section.related.products{margin-top:44px!important;padding-top:25px!important}
 body.pioda-poster-v16 div.product section.related.products ul.products{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}
 body.pioda-poster-v16 div.product section.related.products ul.products li.product{max-width:none!important}
}
@media(max-width:460px) {
 body.pioda-poster-v16 div.product form.cart .woocommerce-variation-add-to-cart,
 body.pioda-poster-v16 div.product form.cart .woocommerce-variation-add-to-cart-enabled,
 body.pioda-poster-v16 div.product form.cart .woocommerce-variation-add-to-cart-disabled{grid-template-columns:1fr!important;gap:10px!important}
 body.pioda-poster-v16 div.product form.cart .quantity.pioda-poster-qty{grid-column:1;justify-self:start}
 body.pioda-poster-v16 div.product form.cart .woocommerce-variation-add-to-cart button.single_add_to_cart_button{grid-column:1}
 body.pioda-poster-v16 div.product section.related.products ul.products{grid-template-columns:1fr 1fr!important}
}

/* Controlli Pioda ordinati anche quando GeneratePress antepone i propri +/- */
body.pioda-poster-v16 div.product form.cart .quantity.pioda-poster-qty > .pioda-poster-qty__button--minus {
 order:1!important;border-right:1px solid #ececef!important;border-left:0!important;
}
body.pioda-poster-v16 div.product form.cart .quantity.pioda-poster-qty > .pioda-poster-qty__button--plus {
 order:3!important;border-left:1px solid #ececef!important;border-right:0!important;
}
/* Non racchiudere anche il caricamento PDF nel riquadro acquisto. */
body.pioda-poster-v16 div.product form.cart .single_variation_wrap {
 margin-top:0!important;padding:0!important;border:0!important;
 background:transparent!important;border-radius:0!important;
}
body.pioda-poster-v16 div.product form.cart .woocommerce-variation.single_variation {
 margin:19px 0 0!important;padding:16px 18px!important;
}
body.pioda-poster-v16 div.product form.cart .woocommerce-variation-add-to-cart {
 margin-top:0!important;
 border:1px solid #e4e6e9!important;
 border-radius:0 0 12px 12px!important;
 border-top:0!important;
 padding:15px!important;
 background:#fff!important;
}
body.pioda-poster-v16 div.product form.cart .woocommerce-variation.single_variation:has(+ .woocommerce-variation-add-to-cart) {
 border-radius:12px 12px 0 0!important;
}
@media(max-width:460px){
 body.pioda-poster-v16 div.product form.cart .woocommerce-variation-add-to-cart{padding:12px!important}
}
/* Ulteriori plugin quantità: nascondi soltanto i controlli esterni al componente Pioda. */
body.pioda-poster-v16 div.product form.cart .quantity.pioda-poster-qty :is(.quantity-nav,.quantity-button,.qty-minus,.qty-plus,.qty-nav,.qty-button){display:none!important}

/* 1.8.9 — Conferma esplicita in caso di verifica PDF manuale. */
body.pioda-poster-v16 .pioda-poster-manual{display:flex;align-items:flex-start;gap:10px;margin:10px 0 13px;padding:13px 14px;background:#fff8e9;border:1px solid #e8d3a8;border-radius:9px;color:#775314;font:500 13px/1.6 Inter,system-ui,sans-serif;cursor:pointer}
body.pioda-poster-v16 .pioda-poster-manual[hidden]{display:none!important}
body.pioda-poster-v16 .pioda-poster-manual input{flex:0 0 auto;margin:4px 0 0;accent-color:#b9852e}
