/* Gestionale Web V0.8 - Archivio Prodotti. Si aggiunge al tema esistente. */
.pro-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-bottom:18px}
.pro-grid label,.pro-filter label {display:flex;flex-direction:column;gap:7px;font-weight:600;min-width:0}
.pro-grid input,.pro-grid select,.pro-grid textarea,.pro-filter input,.pro-filter select {width:100%;max-width:100%;padding:12px;border:1px solid #bfd5df;border-radius:8px;font:inherit;color:#203b4c;background:#fffefa;box-sizing:border-box}
.pro-form h3 {margin-top:28px;margin-bottom:16px}
.pro-filter {display:flex;gap:12px;align-items:end;flex-wrap:wrap;margin-top:18px;margin-bottom:10px}
.pro-filter label {flex:1 1 220px}
.pro-filter button,.pro-filter a {align-self:end}
.pro-actions {display:flex;gap:8px;align-items:center;justify-content:flex-end;flex-wrap:wrap}
.pro-actions form{margin:0}
.pro-actions button {font-size:var(--font-lista)}
.pro-summary {display:grid;grid-template-columns:minmax(0,3fr) minmax(200px,2fr);gap:20px;align-items:start}
.pro-pill {display:inline-block;border-radius:99px;background:#e1eef8;color:#234b6a;font-weight:700;font-size:var(--font-piccolo);padding:5px 9px;margin-right:4px}
.pro-summary h2 {margin-top:14px}
.pro-long {white-space:normal;line-height:1.55;overflow-wrap:anywhere}
.pro-info-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:18px 0}
.pro-info-grid div{display:flex;flex-direction:column;gap:3px;border-bottom:1px solid #dfebee;padding-bottom:8px}
.pro-info-grid small {color:#587b8b;font-size:var(--font-piccolo)}
.pro-info-grid strong{font-size:var(--font-base);overflow-wrap:anywhere}
.pro-costs {background:#f5faf8;padding:12px;border-radius:9px}
.pro-hero {width:100%;max-height:360px;object-fit:contain;background:#f5f8f7;border:1px solid #d6e3e8;border-radius:10px}
.pro-placeholder {display:flex;align-items:center;justify-content:center;min-height:260px;background:#f0f6f7;border:1px dashed #b6cdd5;border-radius:10px;color:#6c8796}
.pro-gallery {display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:14px;margin:16px 0}
.pro-photo{border:1px solid #d7e7ed;border-radius:9px;padding:9px;background:#fbffff;min-width:0}
.pro-photo img{width:100%;height:150px;object-fit:contain}
.pro-photo small{display:block;font-size:var(--font-lista);min-height:2.5em;overflow-wrap:anywhere}
.pro-thumb{width:50px;height:42px;object-fit:contain;border-radius:5px;background:#edf5f7}
.pro-no-photo{display:inline-flex;color:#9aafb6;font-size:var(--font-grande);padding:4px 12px}
.pro-note {color:#658391;font-size:var(--font-lista);line-height:1.45}
@media(max-width:800px){.pro-grid,.pro-summary,.pro-info-grid{grid-template-columns:1fr}.pro-filter{display:grid;grid-template-columns:1fr}.pro-filter label{width:100%}}
