:root{--bg:#f3f9f0;--card:#fcfefa;--ink:#102b1b;--green:#096325;--muted:#52645a;--line:#dce9dc;--accent:#096325;--hero:url(day.png?v=13)}@media(prefers-color-scheme:dark){:root{--bg:#03291c;--card:#15392b;--ink:#f4faf4;--green:#126a32;--muted:#c4d5ca;--line:#315244;--accent:#d9f58c;--hero:url(night.png?v=13)}}body{background:var(--bg);font-family:system-ui,-apple-system,sans-serif}main{max-width:760px;padding:12px 12px 100px}header{min-height:84px;gap:12px;padding:8px 10px}header>img{width:90px;object-fit:contain;border-radius:0}header h1{font-size:clamp(22px,5.4vw,32px);line-height:1.04;letter-spacing:-.7px;max-width:270px;margin:0}#account{flex-shrink:0;width:38px;height:38px}#account img{width:38px;height:38px}.hero{background-image:linear-gradient(0deg,#00170edb 0%,#00170e15 85%),var(--hero);background-size:cover;background-position:center;min-height:220px;aspect-ratio:1.8;display:flex;flex-direction:column;justify-content:flex-end;border-radius:18px;padding:20px;margin:4px 0 14px;box-shadow:none}.hero h2{font-size:26px;margin:0 0 4px}.hero p{font-size:16px;line-height:1.35;opacity:1;margin:0}.grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:0 3px}.tile{min-height:126px;padding:12px 3px;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;border-radius:13px;border:1px solid var(--line);box-shadow:0 3px 7px #163c1710;gap:5px;font-size:clamp(11px,3.3vw,16px);line-height:1.1}.tile:after{display:none}.tile svg{width:39px;height:39px;color:var(--accent);margin-bottom:5px}.tile small{font-weight:400;font-size:11px;line-height:1.2;color:var(--muted)}nav{background:var(--bg);gap:0;border-top:1px solid var(--line);border-radius:18px 18px 0 0;padding:9px 5px max(12px,env(safe-area-inset-bottom))}nav button{display:flex;flex-direction:column;align-items:center;gap:4px;padding:4px 0;color:var(--muted);background:transparent;font-weight:400;min-width:0}nav svg{width:25px;height:25px}nav small{font-size:11px}nav .active{color:var(--accent);font-weight:700}.panel{border:1px solid var(--line);border-radius:14px;padding:16px;box-shadow:0 3px 8px #00000008}button,input,textarea,select{border-color:var(--line)}.panel button,#form button{background:var(--green);color:white;border:0}body:not([data-page=home]):not([data-page=auth]) header{background:#095a25;color:white;border-radius:16px 16px 0 0}body:not([data-page=home]):not([data-page=auth]) #back{margin:0;width:100%;text-align:left;background:#095a25;color:white;border-radius:0 0 14px 14px;padding:12px 16px}#app>h2{font-size:23px;margin:18px 4px 12px}body[data-page=profile] #app>img.photo{display:block;width:105px;height:105px;object-fit:cover;border-radius:50%;margin:12px auto}body[data-page=people] .panel img.photo{width:52px;height:52px;object-fit:cover;border-radius:50%;float:left;margin-right:14px}body[data-page=people] .panel{min-height:82px} .menu button{display:flex;width:100%;align-items:center;gap:12px;background:transparent;color:var(--ink);border-bottom:1px solid var(--line);border-radius:0;text-align:left}.menu svg{width:24px;height:24px;color:var(--accent)}.menu b{margin-left:auto}@media(min-width:650px){.hero{max-height:320px}.tile{min-height:150px}.tile svg{width:48px;height:48px}}@media(max-width:350px){header>img{width:65px}.tile svg{width:30px;height:30px}}
/* V1.2 — layout mobile del riferimento */
:root{--bg:#f1f8ed;--card:#fdfefc;--ink:#102219;--line:#dce9d9;--accent:#086124;--muted:#43534a;--green:#096325} @media(prefers-color-scheme:dark){:root{--bg:#03291c;--card:#15392b;--ink:#fff;--line:#315244;--accent:#d9f58c;--muted:#c4d5ca;--green:#126a32}}
body{font-family:Arial,system-ui,sans-serif}main{max-width:620px;padding:0 12px 94px;min-height:100dvh}header{min-height:96px;padding:12px 10px;justify-content:center;gap:8px}header>img{width:105px;height:68px;object-fit:contain}header h1{font-size:clamp(23px,6.1vw,30px);max-width:190px;line-height:1.04;flex:1}#account{width:34px;height:34px;flex:none;margin-left:auto}#account img{width:34px;height:34px}.hero{height:clamp(205px,55vw,300px);min-height:0;aspect-ratio:auto;margin:0 0 15px;border-radius:20px;padding:20px;background-position:center;background-size:cover}.hero h2{font-size:27px}.hero p{font-size:16px;line-height:1.3}.grid{gap:10px;padding:0 3px}.tile{min-height:126px;padding:12px 3px;border-radius:12px;gap:5px;font-size:clamp(11px,3.5vw,16px);box-shadow:0 3px 6px #16451b14}.tile svg{width:39px;height:39px;stroke-width:1.8}.tile strong{max-width:100%;overflow-wrap:normal}.tile small:empty{display:none}.tile small{font-size:11px}nav{max-width:620px;margin:auto;background:var(--card);border-radius:16px 16px 0 0;padding-top:10px;padding-bottom:max(14px,env(safe-area-inset-bottom));box-shadow:none}nav button{font-size:11px}nav svg{width:25px;height:25px}#sectionTitle{display:none}body:not([data-page=home]):not([data-page=auth]) main{padding-top:0}body:not([data-page=home]):not([data-page=auth]) header{display:none}body:not([data-page=home]):not([data-page=auth]) #sectionTitle{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-height:112px;background:linear-gradient(135deg,#07531f,#0b672a);color:white;margin:0 -12px;padding:16px 52px 20px;text-align:center;font-size:21px;border-radius:0 0 18px 18px}#sectionTitle svg{width:34px;height:34px}body:not([data-page=home]):not([data-page=auth]) #back{position:absolute;top:20px;width:auto;background:transparent;padding:10px;color:white;font-size:0;z-index:2}#back:before{content:'‹';font-size:32px;line-height:1}body:not([data-page=home]):not([data-page=auth]) #app>h2{display:none}body:not([data-page=home]):not([data-page=auth]) #app{padding-top:12px}.panel{padding:14px;border-radius:13px;margin:8px 0}.panel p{margin:8px 0}body[data-page=people] .panel{border:0;border-bottom:1px solid var(--line);border-radius:0;box-shadow:none;margin:0;min-height:76px;padding:12px}body[data-page=people] .panel p{font-size:13px;color:var(--muted);margin:5px 0}.initials{display:inline-grid;place-items:center;width:52px;height:52px;border-radius:50%;background:#148335;color:white;font-weight:700;float:left;margin-right:12px}.profilehead{display:flex;flex-direction:column;align-items:center;gap:8px;padding:16px}.profilehead .photo,.profilehead .initials{width:100px;height:100px;object-fit:cover;border-radius:50%;margin:0;font-size:30px}.profilehead small{color:var(--muted)}#app>button:first-of-type{background:var(--green);color:white;border:0;border-radius:24px;padding:12px 18px}#records article{border-radius:12px}#msg:not(:empty){font-size:14px} @media(min-width:650px){main{max-width:620px}.tile{min-height:145px}.hero{height:290px}} 
