:root{--blue:#0e52e0;--blue-dark:#061f4d;--green:#059957;--orange:#f2840f;--purple:#6e45db;--ink:#091226;--muted:#616d87;--surface:#f4f7fc;--line:#dbe3f0;--white:#fff;--safe-bottom:env(safe-area-inset-bottom,0px)}
*{box-sizing:border-box}html,body{margin:0;background:#edf2f9;color:var(--ink);font-family:-apple-system,BlinkMacSystemFont,"SF Pro Display","Segoe UI",Roboto,Helvetica,Arial,sans-serif;-webkit-font-smoothing:antialiased}button,input,select{font:inherit}button{cursor:pointer}.app-shell{width:100%;max-width:560px;min-height:100dvh;margin:0 auto;background:linear-gradient(#fff,var(--surface));position:relative;box-shadow:0 0 50px rgba(9,18,38,.08)}.app-main{padding:8px 16px calc(94px + var(--safe-bottom));min-height:100dvh}.screen{display:none}.screen.active{display:block}.title-row{display:flex;align-items:center;justify-content:space-between;min-height:66px;padding-top:8px}.title-row h1,.backline h1{font-size:34px;line-height:1.05;margin:0;font-weight:800;letter-spacing:-.8px}.subtitle{margin:6px 0 0;color:var(--muted);font-size:14px}.hero{display:flex;gap:14px;align-items:center;background:linear-gradient(135deg,var(--blue-dark),var(--blue));border-radius:24px;padding:18px;color:white;box-shadow:0 12px 28px rgba(14,82,224,.18)}.hero-icon{width:72px;height:72px;display:grid;place-items:center;border-radius:20px;background:rgba(255,255,255,.15);flex:0 0 auto}.hero-icon svg{width:40px;height:40px;fill:#fff}.hero .eyebrow{font-size:12px;font-weight:700;opacity:.78}.hero h2{font-size:23px;margin:5px 0 4px;line-height:1.08}.hero p{margin:0;font-size:15px;opacity:.83}.section-title{font-size:22px;margin:18px 0 10px}.quick-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.quick-card{position:relative;min-height:192px;border:1px solid rgba(219,227,240,.9);border-radius:20px;background:white;text-align:left;padding:14px 12px 38px;box-shadow:0 6px 18px rgba(9,18,38,.045);color:var(--ink)}.quick-card b{display:block;font-size:17px;line-height:1.12;margin-top:16px}.quick-card small{display:block;font-size:12px;line-height:1.35;color:var(--muted);margin-top:6px}.round{width:48px;height:48px;border-radius:999px;display:grid;place-items:center}.round svg{width:22px;height:22px}.blue{color:var(--blue)}.green{color:var(--green)}.purple{color:var(--purple)}.orange{color:var(--orange)}.round.blue,.mini-icon.blue{background:rgba(14,82,224,.1)}.round.green,.mini-icon.green{background:rgba(5,153,87,.1)}.round.purple,.mini-icon.purple{background:rgba(110,69,219,.1)}.round.orange,.mini-icon.orange{background:rgba(242,132,15,.1)}.round.blue svg,.mini-icon.blue svg{fill:var(--blue)}.round.green svg,.mini-icon.green svg{fill:var(--green)}.round.purple svg,.mini-icon.purple svg{fill:var(--purple)}.round.orange svg,.mini-icon.orange svg{fill:var(--orange)}.go-dot{position:absolute;right:12px;bottom:12px;width:30px;height:30px;border-radius:50%;display:grid;place-items:center;color:#fff;font-size:24px;line-height:1}.go-dot.blue{background:var(--blue)}.go-dot.green{background:var(--green)}.go-dot.purple{background:var(--purple)}.feature-card{width:100%;border:1px solid rgba(219,227,240,.9);border-radius:20px;background:white;display:flex;align-items:center;gap:12px;text-align:left;padding:15px;margin-top:14px;color:var(--ink);box-shadow:0 6px 18px rgba(9,18,38,.045)}.feature-card span:nth-child(2){min-width:0;flex:1}.feature-card b{display:block;font-size:17px;line-height:1.2}.feature-card small{display:block;color:var(--muted);font-size:12px;line-height:1.35;margin-top:3px}.feature-card i{font-style:normal;font-size:28px;color:var(--blue)}.card{background:white;border:1px solid rgba(219,227,240,.9);border-radius:20px;padding:16px;margin-top:14px;box-shadow:0 6px 18px rgba(9,18,38,.045)}.card-heading,.section-head{display:flex;align-items:center;gap:10px}.card-heading>b{font-size:17px}.link-btn{margin-left:auto;border:0;background:transparent;color:var(--blue);font-weight:700}.mini-icon{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;flex:0 0 auto}.mini-icon svg{width:18px;height:18px}.section-head{margin-bottom:14px}.section-head>div{display:flex;flex-direction:column;gap:2px}.section-head b{font-size:18px}.section-head small{color:var(--muted);font-size:12px}.metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:14px 0 4px}.metrics>div{background:white;border:1px solid var(--line);border-radius:16px;padding:12px;text-align:center}.metrics b{display:block;color:var(--blue);font-size:17px}.metrics small{color:var(--muted);font-size:11px}.field{display:block;margin-top:12px}.field>span,.field-label{display:block;font-size:12px;color:var(--muted);font-weight:650;margin:0 0 6px}.field input,.field select,.searchbox input{width:100%;border:1px solid var(--line);background:var(--surface);border-radius:13px;padding:13px 12px;color:var(--ink);outline:none}.field input:focus,.field select:focus,.searchbox:focus-within{border-color:rgba(14,82,224,.65);box-shadow:0 0 0 3px rgba(14,82,224,.08)}.two-cols{display:grid;grid-template-columns:1fr 1fr;gap:12px}.seg-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.seg-grid button{border:1px solid var(--line);background:var(--surface);border-radius:12px;padding:9px 6px;color:var(--ink);font-weight:700}.seg-grid button.selected{background:var(--blue);border-color:var(--blue);color:white}.segmented{display:flex;gap:8px}.segmented button{border:1px solid var(--line);background:var(--surface);color:var(--ink);border-radius:13px;padding:10px 14px;font-weight:700}.segmented button.selected{background:rgba(14,82,224,.1);border-color:transparent;color:var(--blue)}.segmented.sex{margin:10px 0 14px}.segmented.sex button{min-width:108px}.switch-row{display:flex;align-items:center;gap:10px;padding:13px 0;font-weight:600;font-size:14px}.switch-row input{display:none}.switch{margin-left:auto;width:49px;height:29px;border-radius:99px;background:#cad3e1;position:relative;transition:.2s}.switch:after{content:"";position:absolute;width:23px;height:23px;top:3px;left:3px;background:white;border-radius:50%;box-shadow:0 2px 5px rgba(0,0,0,.18);transition:.2s}.switch-row input:checked+.switch{background:var(--blue)}.switch-row input:checked+.switch:after{left:23px}details{margin-top:12px;border-top:1px solid var(--line);padding-top:12px}summary{font-weight:700;font-size:14px;color:var(--ink)}.result-lines>div{display:flex;justify-content:space-between;padding:10px 0;border-bottom:1px solid var(--line)}.result-lines>div:last-child{border-bottom:0}.result-lines span{color:var(--muted)}.result-lines b{color:var(--blue)}.result-lines .emph{font-weight:800;font-size:17px}.score-summary{background:linear-gradient(135deg,var(--blue-dark),var(--blue));color:white;border-radius:22px;padding:18px;margin-top:14px;display:grid;grid-template-columns:1fr auto;gap:5px 12px}.score-summary small{opacity:.8}.score-summary b{font-size:28px}.score-summary span{grid-column:1/-1;opacity:.84;font-size:13px}.green-summary{background:linear-gradient(135deg,#034b2c,var(--green))}.primary,.secondary{width:100%;border:0;border-radius:14px;padding:14px 16px;font-weight:800;margin-top:14px}.primary{background:var(--blue);color:white}.green-btn{background:var(--green)}.secondary{background:var(--surface);color:var(--ink);border:1px solid var(--line)}.danger{color:#c42a2a}.fineprint{color:var(--muted);text-align:center;font-size:11px;line-height:1.45;padding:0 8px}.detail{color:var(--muted);font-size:13px;line-height:1.45}.searchbox{display:flex;align-items:center;gap:10px;background:white;border:1px solid var(--line);border-radius:14px;padding:0 12px;margin:12px 0}.searchbox svg{width:22px;height:22px;fill:var(--ink)}.searchbox input{border:0;background:transparent;padding-left:0;box-shadow:none!important}.region-select{margin:0}.status-card{background:rgba(14,82,224,.06);border:1px solid rgba(14,82,224,.13);color:var(--muted);border-radius:16px;padding:14px;margin-top:14px;font-size:13px;line-height:1.45}.ranking-list{margin-top:12px}.ranking-row{display:grid;grid-template-columns:46px 1fr auto;gap:10px;align-items:center;background:white;border-bottom:1px solid var(--line);padding:12px 10px}.ranking-row:first-child{border-radius:16px 16px 0 0}.ranking-row:last-child{border-radius:0 0 16px 16px;border-bottom:0}.rank-badge{font-weight:800;color:var(--blue)}.ranking-row b{display:block;font-size:14px}.ranking-row small{display:block;color:var(--muted);font-size:11px;margin-top:2px}.ranking-points{text-align:right;font-weight:800}.ranking-points small{font-weight:500}.history-list:empty:before{content:"Nessun calcolo salvato";display:block;color:var(--muted);text-align:center;padding:18px 8px}.history-row{display:flex;align-items:center;gap:10px;padding:10px 0;border-top:1px solid var(--line)}.history-row:first-child{border-top:0}.history-row>span{flex:1}.history-row b{display:block;font-size:13px}.history-row small{color:var(--muted);font-size:11px}.history-row>strong{color:var(--blue);font-size:13px}.backline{display:flex;align-items:center;gap:8px;padding:12px 0 10px}.backline button{border:0;background:transparent;font-size:34px;color:var(--blue);padding:0 6px}.simple-screen .card{margin-top:8px}.app-info{display:flex;gap:12px;align-items:center}.app-info>div:last-child{display:flex;flex-direction:column;gap:2px}.app-info small{color:var(--muted)}.app-badge{width:58px;height:58px;border-radius:16px;display:grid;place-items:center;background:linear-gradient(135deg,var(--blue-dark),var(--blue))}.app-badge svg{width:30px;height:30px;fill:#fff}.icon-button{border:0;background:transparent;color:var(--blue);font-size:28px}.tabbar{position:fixed;z-index:20;left:50%;bottom:0;transform:translateX(-50%);width:min(100%,560px);height:calc(78px + var(--safe-bottom));padding:8px 10px var(--safe-bottom);background:rgba(255,255,255,.96);backdrop-filter:blur(16px);border-top:1px solid rgba(219,227,240,.85);display:grid;grid-template-columns:repeat(5,1fr)}.tabbar button{border:0;background:transparent;color:var(--ink);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;border-radius:14px;font-size:11px}.tabbar button svg{width:23px;height:23px;fill:currentColor}.tabbar button.active{background:rgba(110,69,219,.1);font-weight:700}.tabbar button.active svg{color:var(--blue)}@media(max-width:390px){.app-main{padding-left:12px;padding-right:12px}.quick-grid{gap:7px}.quick-card{padding-left:9px;padding-right:9px}.quick-card b{font-size:15px}.title-row h1,.backline h1{font-size:31px}.hero{padding:15px}.hero-icon{width:62px;height:62px}.hero h2{font-size:21px}}@media(min-width:700px){body{padding:20px 0}.app-shell{border-radius:28px;overflow:hidden;min-height:calc(100dvh - 40px)}.tabbar{bottom:20px;border-radius:0 0 28px 28px}.app-main{min-height:calc(100dvh - 40px)}}
