/* Modulo Richiedi preventivo — sezioni numerate e foto */
.pv-grid{align-items:start;}
#pvForm{display:flex;flex-direction:column;gap:1.4rem;}
.pv-card{border:2px solid #C3C6BC;border-radius:18px;padding:1.3rem 1.5rem 1.4rem;margin:0;min-width:0;}
.pv-legend{display:flex;align-items:baseline;gap:.7rem;float:left;width:100%;margin-bottom:.6rem;padding:0;font-family:'Big Shoulders Display',sans-serif;font-weight:900;text-transform:uppercase;font-size:1.55rem;line-height:1;}
.pv-legend + *{clear:both;}
.pv-n{color:var(--accent);font-size:2rem;}
.pv-hint{color:var(--muted);font-size:.9rem;margin-bottom:1rem;}
.pv-q{font-weight:600;font-size:.92rem;margin:.4rem 0 .55rem;}
.pv-q small{font-weight:400;color:var(--muted);}
.pv-card .form-group:last-child{margin-bottom:0;}
.pv-row3{grid-template-columns:1fr 1.3fr 1fr;}
@media (max-width:700px){.pv-row3{grid-template-columns:1fr;}}

.pv-chips{display:flex;flex-wrap:wrap;gap:.55rem;margin-bottom:1rem;}
.pv-chips:last-child{margin-bottom:0;}
.pv-chips label{position:relative;cursor:pointer;}
.pv-chips input{position:absolute;opacity:0;width:1px;height:1px;}
.pv-chips span{display:inline-block;padding:.55rem 1rem;border-radius:999px;border:1.5px solid #B9C4C8;background:#fff;font-size:.88rem;transition:all .15s;}
.pv-chips label:hover span{border-color:var(--steel);background:#EEF3F5;}
.pv-chips input:checked + span{background:var(--steel);border-color:var(--steel);color:#fff;box-shadow:0 3px 0 #2A3F48;}
.pv-chips input[type="checkbox"]:checked + span::before{content:"✓ ";}
.pv-chips input:focus-visible + span{outline:2px solid var(--accent);outline-offset:2px;}

.pv-when{margin-top:.4rem;padding-top:1rem;border-top:1px dashed #C9D5DA;}

.pv-drop{position:relative;border:2px dashed #9FB4BC;border-radius:16px;background:#F4F7F8;padding:1.2rem;margin-bottom:1rem;transition:background .15s,border-color .15s;}
.pv-drop.over{background:#E3ECEF;border-color:var(--steel);}
.pv-drop input[type="file"]{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;}
.pv-drop.full input[type="file"]{pointer-events:none;}
.pv-drop-text{display:flex;flex-direction:column;align-items:center;gap:.2rem;text-align:center;padding:.6rem 0;pointer-events:none;}
.pv-drop-text::before{content:"";width:40px;height:40px;margin-bottom:.3rem;background:no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233D5A66' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8a2 2 0 0 1 2-2h2l1.5-2h7L17 6h2a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'/%3E%3Ccircle cx='12' cy='13' r='3.5'/%3E%3C/svg%3E");}
.pv-drop-text b{font-size:.95rem;}
.pv-drop-text span{font-family:'IBM Plex Mono',monospace;font-size:.72rem;color:var(--muted);}
.pv-drop.full .pv-drop-text{display:none;}
.pv-drop-small .pv-drop-text{padding:.2rem 0;}
.pv-thumbs{display:grid;grid-template-columns:repeat(auto-fill,minmax(110px,1fr));gap:.7rem;position:relative;z-index:2;}
.pv-thumbs:empty{display:none;}
.pv-drop:not(.full) .pv-thumbs{margin-top:.8rem;}
.pv-thumb{position:relative;aspect-ratio:1;border-radius:12px;overflow:hidden;background:#fff;border:1px solid #C9D5DA;box-shadow:0 2px 0 #C9D5DA;}
.pv-thumb img{width:100%;height:100%;object-fit:cover;display:block;}
.pv-thumb .pv-size{position:absolute;left:6px;bottom:6px;font-family:'IBM Plex Mono',monospace;font-size:.65rem;background:rgba(30,34,38,.75);color:#fff;padding:.1rem .35rem;border-radius:4px;}
.pv-thumb .pv-del{position:absolute;top:6px;right:6px;width:28px;height:28px;border-radius:50%;border:0;background:#fff;color:#B3261E;font-size:1rem;font-weight:700;cursor:pointer;box-shadow:0 1px 4px rgba(0,0,0,.25);}
.pv-thumb.busy::after{content:"";position:absolute;inset:0;background:rgba(255,255,255,.6) center/28px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='9' fill='none' stroke='%233D5A66' stroke-width='3' stroke-dasharray='40 20'%3E%3CanimateTransform attributeName='transform' type='rotate' from='0 12 12' to='360 12 12' dur='0.8s' repeatCount='indefinite'/%3E%3C/circle%3E%3C/svg%3E");}
.pv-add{display:flex;align-items:center;justify-content:center;aspect-ratio:1;border-radius:12px;border:2px dashed #9FB4BC;color:var(--steel);font-size:2rem;cursor:pointer;background:#fff;}
.pv-err{color:#B3261E;font-size:.82rem;margin-top:.5rem;}

.pv-submit{display:flex;align-items:center;gap:1rem;flex-wrap:wrap;}
.pv-submit .btn{font-size:.9rem;padding:.95rem 1.6rem;}
.pv-submit .btn[disabled]{opacity:.6;cursor:wait;}
.pv-status{font-family:'IBM Plex Mono',monospace;font-size:.8rem;color:var(--steel);}
.pv-side{position:sticky;top:120px;}
.field-err input,.field-err textarea{border-color:#B3261E !important;}
@media (max-width:900px){.pv-side{position:static;}}

/* rev02j: privacy ben visibile e evidenziata se manca */
#pvForm .form-check{padding:.8rem .9rem;border:2px solid #C3C6BC;border-radius:12px;background:#fff;color:var(--ink,#1E2226);cursor:pointer}
#pvForm .form-check input{width:22px;height:22px;flex:0 0 22px;margin-top:0;accent-color:#3D5A66}
#pvForm .form-check.field-err{border-color:#B3261E;background:#FDF1F0}
#pvForm .form-check.field-err span{color:#B3261E}

/* rev02l: modulo Chiedi il prezzo */
.cp-main{display:flex;flex-direction:column;gap:1.4rem;min-width:0;}
.cp-prod{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);padding:0;overflow:hidden;}
.cp-img{background:#fff;border-right:2px solid #D6D8CF;display:flex;align-items:center;justify-content:center;padding:1rem;}
.cp-img img{width:100%;height:auto;max-height:240px;object-fit:contain;}
.cp-info{padding:1.3rem 1.5rem;display:flex;flex-direction:column;}
.cp-info .tag{align-self:flex-start;}
.cp-info h2{font-family:'Big Shoulders Display',sans-serif;font-weight:900;font-size:2.1rem;line-height:1;margin:.2rem 0 .9rem;}
.cp-serie{font-size:.82rem;color:var(--muted);margin:0 0 .8rem;}
.cp-change{font-family:'IBM Plex Mono',monospace;font-size:.75rem;color:var(--steel);margin-top:auto;}
.cp-or{font-family:'IBM Plex Mono',monospace;font-size:.78rem;color:var(--muted);}
.cp-wa{display:inline-flex;align-items:center;gap:.5rem;background:#25D366;color:#fff !important;border:0;font-weight:600;text-decoration:none;box-shadow:0 3px 0 #128C7E;}
.cp-wa:hover{background:#1EBE5A;}
.cp-wa svg{width:20px;height:20px;}
.pv-submit .cp-wa{font-size:.9rem;padding:.95rem 1.4rem;}
.cp-wa-sm{font-size:.8rem;padding:.6rem 1rem;}
#chiedi-prezzo .alert{display:none;}
#chiedi-prezzo .alert.show{display:block;}
#pvForm .form-group.field-err input{border-color:#B3261E !important;}
@media (max-width:700px){.cp-prod{grid-template-columns:1fr;}.cp-img{border-right:0;border-bottom:2px solid #D6D8CF;}}

/* rev02l-b */
.cp-prod{grid-template-columns:1fr;}
.cp-img{border-right:0;border-bottom:2px solid #D6D8CF;}
.cp-img img{max-height:230px;}
.cp-info .tag{display:inline-block;font-family:'IBM Plex Mono',monospace;font-size:.7rem;letter-spacing:.15em;color:var(--steel);border:1px solid var(--steel);border-radius:6px;padding:.15rem .5rem;margin-bottom:.6rem;}
