@import url('https://fonts.googleapis.com/css2?family=Saira+Condensed:wght@400;700;800&family=Saira+Semi+Condensed:wght@400;600;700&display=swap');

:root{
  font-family:"Saira SemiCondensed",Arial,sans-serif;
  --pce-blue:#0f4171;
  --pce-orange:#f8ad15;
  --pce-dark:#373737;
  --pce-light:#e1e1e1;
  --bg:#f4f6f7;
  --surface:#ffffff;
  --surface-soft:#f0f3f5;
  --surface-hover:#f8f9fa;
  --text:#373737;
  --muted:#66727c;
  --border:#dfe3e6;
  --link:#0f4171;
  --shadow:0 10px 30px rgba(15,65,113,.09);
  --focus:0 0 0 3px rgba(248,173,21,.28);
  --success-bg:#edf8f5;
  --success-border:#73b9a9;
  --error-bg:#fff1ed;
  --error-border:#d18773;
}
html[data-theme="dark"]{
  --bg:#071827;
  --surface:#0d2942;
  --surface-soft:#123653;
  --surface-hover:#173d5b;
  --text:#f5f7f8;
  --muted:#b9c7d1;
  --border:#2c506c;
  --link:#90cdf4;
  --shadow:0 12px 34px rgba(0,0,0,.26);
  --success-bg:#103b35;
  --success-border:#55cdb3;
  --error-bg:#4a261f;
  --error-border:#d87861;
}
*{box-sizing:border-box}
html{background:var(--bg);color-scheme:light}
html[data-theme="dark"]{color-scheme:dark}
body{margin:0;background:var(--bg);color:var(--text);min-height:100vh}
body:before{content:"";display:block;height:5px;background:var(--pce-orange)}
a{color:var(--link)}
.wrap,.container{max-width:1040px;margin:0 auto;padding:28px 18px 48px}
.site-head,.card,.panel{background:var(--surface);border:1px solid var(--border);border-radius:6px;box-shadow:var(--shadow)}
.site-head{position:relative;overflow:hidden;padding:24px 30px;margin-bottom:22px;border-bottom:4px solid var(--pce-blue)}
.site-head:after{content:"";position:absolute;right:-30px;top:-35px;width:175px;height:175px;background:repeating-linear-gradient(-10deg,transparent 0 9px,rgba(248,173,21,.18) 9px 11px);pointer-events:none}
.brand{display:flex;align-items:center;gap:24px;position:relative;z-index:1}
.logo-plate{background:#fff;padding:8px 12px;border-radius:3px;min-width:235px;max-width:310px;border-bottom:2px solid var(--pce-orange)}
.logo-plate img,.logo{display:block;max-width:100%;height:auto}
.brand-copy{min-width:0;flex:1}
.brand h1,.brand-title{font-family:"Saira Condensed",Arial,sans-serif;font-size:28px;line-height:1.05;font-weight:800;text-transform:uppercase;margin:0 0 4px;color:var(--text);letter-spacing:.15px}
.sub,.brand-sub{color:var(--muted);margin:0}
.head-actions{display:flex;gap:8px;align-items:center;margin-left:auto}
.theme-toggle,.home-link{border:1px solid var(--border);background:var(--surface-soft);color:var(--text);border-radius:4px;padding:9px 12px;font:inherit;font-weight:700;text-decoration:none;white-space:nowrap;cursor:pointer}
.theme-toggle:hover,.home-link:hover{border-color:var(--pce-orange);box-shadow:var(--focus)}
.card,.panel{padding:28px;margin-bottom:20px}
h1,h2,h3{font-family:"Saira Condensed",Arial,sans-serif;color:var(--text)}
h2{font-size:25px;line-height:1.1;margin:0 0 14px;font-weight:800}
h2:after{content:"";display:block;width:58px;height:2px;background:var(--pce-orange);margin-top:8px}
h3{font-size:20px;margin:18px 0 10px;font-weight:800}
p{color:var(--muted);line-height:1.55}
.intro{margin:0 0 24px}
.choices{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.choice{display:flex;flex-direction:column;min-height:255px;padding:24px;border:1px solid var(--border);border-radius:5px;text-decoration:none;color:inherit;background:var(--surface);transition:.16s ease;position:relative;overflow:hidden}
.choice:before{content:"";position:absolute;left:0;top:0;bottom:0;width:5px;background:var(--pce-orange)}
.choice:hover{transform:translateY(-2px);border-color:rgba(15,65,113,.55);box-shadow:0 12px 25px rgba(15,65,113,.12)}
.icon{width:52px;height:52px;display:flex;align-items:center;justify-content:center;background:var(--pce-blue);color:#fff;font-family:"Saira Condensed",Arial,sans-serif;font-size:29px;font-weight:800;margin-bottom:17px;border-radius:3px}
.choice h3{margin:0 0 9px;font-size:23px;text-transform:uppercase}
.choice p{margin:0 0 20px;flex:1}
.button,.btn,button.primary{display:inline-block;text-align:center;background:var(--pce-blue);color:#fff;font:inherit;font-weight:700;padding:12px 16px;border:0;border-radius:4px;text-decoration:none;cursor:pointer;transition:.15s ease}
.button:hover,.btn:hover,button.primary:hover{background:#0b355e}
.note{padding-top:18px;border-top:1px solid var(--border);font-size:14px}
.grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.group{margin-bottom:16px}
label{display:block;font-size:12px;font-weight:700;margin-bottom:6px;text-transform:uppercase;letter-spacing:.25px;color:var(--text)}
input,textarea,select{width:100%;padding:12px;border:1px solid var(--border);border-radius:4px;background:var(--surface);color:var(--text);font:inherit;font-size:14px}
textarea{min-height:95px;resize:vertical}
input:focus,textarea:focus,select:focus,button:focus-visible,a:focus-visible{outline:none;border-color:var(--pce-orange);box-shadow:var(--focus)}
.form-submit{width:100%;padding:14px;font-size:15px}
.notice{padding:15px;border-radius:4px;margin-top:16px;display:none;color:var(--text)}
.ok{background:var(--success-bg);border-left:5px solid var(--success-border)}
.err{background:var(--error-bg);border-left:5px solid var(--error-border)}
.hidden{display:none!important}
.current{background:var(--surface-soft);border-left:5px solid var(--pce-orange);padding:16px;border-radius:3px;margin:16px 0}
.item{display:block;clear:both;border-left:4px solid var(--pce-blue);padding:13px 15px;margin:12px 0;background:var(--surface-soft)}
.item strong,.item .muted,.item p{display:block}
.item p{margin:8px 0 0;white-space:pre-line;color:var(--text)}
.muted{color:var(--muted);font-size:13px}
.status-card{margin-top:18px}
.status-card h2{font-size:26px}
.status-card>p{margin:6px 0}
.tracking-form input,.tracking-form button{margin:6px 0 12px}
.tracking-form button{width:100%}
.back-row{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:14px}
.small-link{font-size:13px;font-weight:700;text-decoration:none}

.label-toolbar{max-width:150mm;margin:0 auto;padding:12px;display:flex;gap:8px;flex-wrap:wrap;justify-content:center;align-items:center;color:var(--text)}
.label-toolbar button{padding:11px 16px;border:0;border-radius:4px;background:var(--pce-blue);color:#fff;font-weight:700;cursor:pointer}
.label-toolbar .help{width:100%;font-size:12px;color:var(--muted);text-align:center}

@media(max-width:760px){
  .wrap,.container{padding:16px 12px 32px}
  .site-head,.card,.panel{padding:20px}
  .brand{align-items:flex-start;flex-direction:column;gap:13px}
  .logo-plate{min-width:0;width:min(290px,85%)}
  .head-actions{margin-left:0;width:100%;justify-content:flex-start;flex-wrap:wrap}
  .brand h1,.brand-title{font-size:25px}
  .choices,.grid{grid-template-columns:1fr}
  .choice{min-height:0}
}

/* RMA-WEB 0.5 - foto stato */
.status-photos{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:10px;margin-top:12px}.status-photos a{display:block;background:#fff;border:1px solid var(--border);border-radius:4px;overflow:hidden;aspect-ratio:4/3}.status-photos img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .15s ease}.status-photos a:hover img{transform:scale(1.025)}
