/* TerniZERO 18.1 — Layout responsive pagina La mia attività e vetrina pubblica */
#dashboard,#dashboard .content,#dashboard .panel,#storeForm,.tz17-panel,.tz17-panel .form,.tz17-panel .field{min-width:0;max-width:100%;box-sizing:border-box}
#dashboard .content{width:100%;overflow-wrap:anywhere}
#dashboard .panel{overflow:hidden}
#dashboard .field input,#dashboard .field select,#dashboard .field textarea{max-width:100%;min-width:0;box-sizing:border-box}
#dashboard .field input[type=file]{width:100%;font-size:.85rem}
#dashboard img:not(.appbar img){max-width:100%;height:auto}
.tz17-panel{margin-top:20px}
.tz17-panel .form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.tz17-panel .field.full{grid-column:1/-1}
.tz17-panel h2{line-height:1.25;overflow-wrap:anywhere}
.tz17-panel #tzMap{min-width:0;width:100%;overflow:hidden;border-radius:12px}
.tz17-panel #tzMap iframe{display:block;max-width:100%}
/* Galleria: tre foto su ogni riga desktop */
#tzGallery,.tz17-public .tz17-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:14px!important;width:100%;min-width:0;max-width:100%;align-items:start}
#tzGallery>div{position:relative;min-width:0;width:100%;max-width:100%;margin:0;overflow:hidden;background:#f7f9f8;border:1px solid #dfe5e0;border-radius:13px;padding:7px;display:flex;flex-direction:column;gap:8px}
#tzGallery>div>img,#tzGallery img{display:block!important;width:100%!important;min-width:0!important;max-width:100%!important;height:auto!important;aspect-ratio:4/3!important;object-fit:cover!important;object-position:center!important;border-radius:9px;background:#eef0ef}
#tzGallery button{display:block;width:100%;min-width:0;max-width:100%;border:1px solid #e7c9cd;background:#fff5f6;color:#a31329;border-radius:8px;padding:7px;font-size:.85rem;font-weight:600}
/* Marchi: card compatte, loghi proporzionati */
#tzBrands{width:100%;min-width:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:12px 0}
#tzBrands .tz17-brand{display:flex;flex-direction:column;align-items:stretch;justify-content:space-between;min-width:0;margin:0;padding:10px;border:1px solid #e1e6e2;border-radius:13px;background:#fff;gap:8px}
#tzBrands .tz17-brand img{display:block;width:100%!important;max-width:100%!important;height:90px!important;object-fit:contain!important;flex:none}
#tzBrands .tz17-brand input{width:100%;min-width:0;max-width:100%;box-sizing:border-box}
#tzBrands .tz17-brand button{width:100%;padding:8px;border-radius:8px}
/* Sito pubblico: foto ritagliate uniformemente, loghi contenuti */
.tz17-public{min-width:0;max-width:100%;overflow:hidden}
.tz17-public .tz17-grid>img{display:block!important;width:100%!important;min-width:0;max-width:100%;height:auto!important;aspect-ratio:4/3;object-fit:cover!important;border-radius:12px;background:#f1f4f2}
.tz17-public .tz17-grid>div{min-width:0;max-width:100%;padding:12px;border:1px solid #e1e6e2;border-radius:12px;text-align:center;overflow:hidden}
.tz17-public .tz17-grid>div>img{display:block;width:100%!important;max-width:100%;height:100px!important;object-fit:contain!important;margin:auto}
.tz17-public .tz17-grid p{overflow-wrap:anywhere}
@media(max-width:950px){#tzGallery,.tz17-public .tz17-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}#tzBrands{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.tz17-panel .form{grid-template-columns:minmax(0,1fr)}.tz17-panel .field{grid-column:1/-1}#tzGallery,.tz17-public .tz17-grid{grid-template-columns:minmax(0,1fr)!important}#tzBrands{grid-template-columns:minmax(0,1fr)}.tz17-hour{align-items:flex-start}.tz17-hour>span{max-width:100%;display:flex;align-items:center;flex-wrap:wrap}}
