/* Versione 3.0: affinamento fedele al mockup, responsive e accessibile */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Nunito+Sans:wght@400;500;600;700;800&family=Playfair+Display:ital,wght@1,500;1,600&display=swap');
:root{--navy:#062b59;--yellow:#ffcc00}
body{font-family:'DM Sans',Arial,sans-serif}
.site-header{position:relative}
.header-inner{gap:19px;min-height:76px}
.brand{gap:10px}
.brand-envelope{width:96px;height:56px}
.brand-type{font-family:'Nunito Sans',Arial,sans-serif;font-size:clamp(16px,1.8vw,27px);font-weight:700;letter-spacing:-.85px;line-height:1.12}
.brand-white{color:#fff}.brand-yellow{color:var(--yellow)}.brand-type small{font-size:.72em;color:#fff;letter-spacing:-.25px;font-weight:600}
.header-tagline{font-family:'Playfair Display',Georgia,serif;font-size:clamp(12px,1.12vw,16px);font-weight:500;white-space:nowrap}
.main-nav a{font-size:14px}
.hero{height:375px;overflow:hidden}
.hero-inner{width:min(1430px,94%)}
.hero-text{padding-top:36px;max-width:760px}
.hero h1{font-family:'Nunito Sans',Arial,sans-serif;font-size:clamp(36px,4.2vw,61px);line-height:1.06;letter-spacing:-1.6px;font-weight:800;margin:0 0 16px;color:#fff;max-width:770px}
.hero p{font-family:'Playfair Display',Georgia,serif;font-size:clamp(16px,1.45vw,22px);line-height:1.5;font-weight:600;font-style:italic;color:var(--yellow);max-width:650px;text-shadow:0 2px 5px #001a3e55}
.hero-envelope{top:34px;right:-1%;width:min(47%,680px);height:285px;object-position:center right}
.search-section{margin-top:-56px}
.search-panel{position:relative}
.benefits{margin-top:34px;margin-bottom:30px}
.benefit{gap:14px}
.benefit-symbol{width:58px;min-width:58px;height:62px;display:grid;place-items:center;color:#063481;filter:drop-shadow(0 5px 5px #173b7730)}
.benefit-symbol svg{width:47px;height:47px;display:block}
.benefit strong{font-family:'Nunito Sans',Arial,sans-serif;font-weight:800;font-size:clamp(13px,1.25vw,18px)}
.benefit small{font-size:clamp(11px,1.05vw,15px)}
.faq-content{width:min(1460px,95%);padding:25px 0 90px;margin:0 auto}
.faq-header{text-align:left;margin:8px 0 25px}
.faq-header>span{font-size:11px;letter-spacing:1.5px}
.faq-header h2{font-family:'Nunito Sans',Arial,sans-serif;font-size:clamp(27px,2.6vw,35px);margin:4px 0}
.faq-header p{font-size:14px;margin:5px 0}
.faq-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px 18px;align-items:start}
.faq-item{border:1px solid #d5e1f2;background:linear-gradient(110deg,#fff,#f8fbff);border-radius:17px;overflow:hidden;box-shadow:0 4px 14px #092c5910;scroll-margin-top:90px;transition:border-color .2s,box-shadow .2s}
.faq-item:hover,.faq-item.open{border-color:#a7c8f3;box-shadow:0 8px 22px #092c5918}
.faq-question{padding:20px 21px;font-family:'Nunito Sans',Arial,sans-serif;font-size:16px;line-height:1.4}
.faq-question span{background:#e7f0ff;color:#063b8a}
.faq-answer p{padding:0 21px;font-size:14px;line-height:1.7}
.faq-item.open .faq-answer p{padding-bottom:20px}
.site-footer{position:relative;background:linear-gradient(180deg,#073765 0%,#052850 40%,#031b3c 100%);padding:105px 0 28px;margin-top:12px;overflow:hidden}
.site-footer:before{content:"";position:absolute;left:-4%;top:-44px;width:108%;height:92px;border-radius:0 0 50% 50%;background:#fff;box-shadow:0 13px 0 #bedbff,0 21px 0 #3b78b8}
.footer-inner{position:relative;z-index:1;width:min(1370px,92%);display:grid;grid-template-columns:minmax(250px,1fr) minmax(290px,1fr);align-items:start;gap:65px}
.footer-inner strong{font-family:'Nunito Sans',Arial,sans-serif;font-size:20px;color:#fff}
.footer-inner p{font-size:13px;line-height:1.75;max-width:460px}
.footer-inner nav{justify-content:flex-end;gap:14px 22px;line-height:1.7}
.footer-inner nav a{font-size:13px;color:#e3edfa}
.footer-bottom{position:relative;z-index:1;border-top:1px solid #ffffff24;width:min(1370px,92%);margin:42px auto 0;padding-top:18px}
/* Semaforo: icone distinte e testo sempre presente, senza deduzioni sulla certezza. */
.result{border-radius:18px;padding:20px 22px}
.result-head{justify-content:flex-start;align-items:center;flex-wrap:wrap;gap:12px 20px}
.result h3{flex:1 1 260px}
.level-pill{display:inline-flex;align-items:center;gap:9px;padding:9px 12px;font-size:11px;letter-spacing:.15px;line-height:1.35;text-align:left}
.level-icon{width:26px;height:26px;flex:none;display:inline-flex;align-items:center;justify-content:center}
.level-icon svg{width:26px;height:26px;display:block}
.green .level-icon{color:#16854c}.yellow .level-icon{color:#bd8500}.red .level-icon{color:#d33238}
@media(max-width:1350px){.brand-envelope{width:82px}.brand-type{font-size:clamp(17px,2vw,24px)}.header-inner{gap:14px}.hero-text{max-width:700px}.hero h1{font-size:clamp(36px,4.2vw,54px)}.hero p{max-width:570px}.hero-envelope{width:49%;top:55px}.benefit-symbol{width:50px;min-width:50px}.benefit-symbol svg{width:42px;height:42px}}
@media(max-width:1050px){.header-tagline,.header-divider{display:none}.hero{height:385px}.hero-text{max-width:650px}.hero h1{font-size:clamp(36px,5vw,50px)}.hero p{font-size:19px;max-width:540px}.hero-envelope{top:90px;right:-6%;width:51%;opacity:.88}.search-section{margin-top:-50px}.benefit{padding:0 12px}.faq-content{padding-top:25px}}
@media(max-width:700px){.header-inner{min-height:67px;gap:6px}.brand-envelope{width:58px;height:40px}.brand-type{font-size:clamp(12px,3.4vw,18px);letter-spacing:-.55px}.brand-type small{font-size:.75em}.hero{height:415px}.hero-text{padding-top:23px;max-width:100%}.hero h1{font-size:clamp(32px,8.2vw,46px);line-height:1.09;letter-spacing:-.9px;margin-bottom:13px}.hero h1 br{display:none}.hero p{font-size:clamp(15px,4vw,18px);line-height:1.48;max-width:95%}.hero-envelope{width:72%;top:210px;right:-10%;opacity:.73;height:190px}.search-section{margin-top:-35px}.benefits{margin-top:25px}.benefit-symbol{min-width:43px;width:43px;height:49px}.benefit-symbol svg{width:37px;height:37px}.faq-content{width:94%;padding:30px 0 65px}.faq-list{grid-template-columns:1fr;gap:12px}.faq-question{font-size:15px;padding:17px}.faq-answer p{padding:0 17px;font-size:13px}.faq-item.open .faq-answer p{padding-bottom:17px}.site-footer{padding:85px 0 25px}.site-footer:before{top:-31px;height:70px}.footer-inner{grid-template-columns:1fr;gap:24px}.footer-inner nav{justify-content:flex-start;gap:10px 20px}.footer-bottom{margin-top:25px}}
@media(max-width:390px){.brand-envelope{width:47px}.brand-type{font-size:12px}.hero{height:440px}.hero h1{font-size:31px}.hero p{font-size:15px}.hero-envelope{top:245px;width:78%}}

/* v4.0 — Semaforo ad alta visibilità e nuova ricerca, solo nel box risultati */
.result.show{padding:0;overflow:hidden;border-radius:20px;box-shadow:0 10px 24px #102b5018;background:#fff;border:1px solid #dbe5f0;color:#132849}
.result .status-panel{display:flex;align-items:center;gap:18px;padding:19px 22px;border-bottom:1px solid #dce8f1}
.result.green .status-panel{background:linear-gradient(105deg,#e8f9ee,#f6fdf9)}
.result.yellow .status-panel{background:linear-gradient(105deg,#fff3ce,#fffaf0)}
.result.red .status-panel{background:linear-gradient(105deg,#ffeaeb,#fff8f8)}
.status-graphic{width:68px;height:68px;min-width:68px;display:grid;place-items:center;border-radius:18px;background:#fff;box-shadow:0 4px 14px #12304c16}
.status-graphic svg{width:56px;height:56px;display:block}
.status-copy{display:flex;flex-direction:column;gap:3px;min-width:0}
.status-eyebrow{text-transform:uppercase;font-weight:800;font-size:11px;letter-spacing:1px}
.green .status-eyebrow{color:#147c45}.yellow .status-eyebrow{color:#996800}.red .status-eyebrow{color:#bc2732}
.status-copy strong{font-size:clamp(16px,1.7vw,21px);line-height:1.3;color:#122a4c}
.status-caption{font-size:13px;line-height:1.5;color:#52647a}
.result-content{padding:21px 24px 5px}
.result-content .result-head h3{font-size:clamp(17px,1.65vw,22px);margin:0 0 6px}
.result-content .matched{font-size:12px;margin:3px 0 14px;color:#546780}
.result-content p{font-size:14px;line-height:1.65}
.result-details{background:#f6f9fd;border:1px solid #e4ebf4;border-radius:12px;padding:12px 17px;margin:15px 0}
.result-details h4{margin:0 0 7px;font-size:14px;color:#19375d}
.result-details ul{margin:0;padding-left:20px;line-height:1.7}
.result-content .result-disclaimer{border-left:3px solid #a4b8cf;padding:9px 13px;background:#f7f9fc;border-radius:0 8px 8px 0;margin:15px 0}
.result-actions{padding:12px 24px 23px;display:flex;justify-content:flex-end}
.new-search-button{display:inline-flex;align-items:center;justify-content:center;gap:10px;border:2px solid #0754b9;border-radius:12px;background:#fff;color:#07499c;padding:12px 18px;font-size:14px;font-weight:800;cursor:pointer;transition:background .18s,color .18s,transform .18s}
.new-search-button:hover,.new-search-button:focus-visible{background:#0754b9;color:#fff;transform:translateY(-1px)}
.new-search-button svg{width:21px;height:21px;flex-shrink:0}
.result.error .result-head{padding:20px 24px 0}
.result.error>p{padding:0 24px;font-size:14px;line-height:1.6}
@media(max-width:650px){.result .status-panel{padding:16px;gap:12px}.status-graphic{width:54px;height:54px;min-width:54px;border-radius:14px}.status-graphic svg{width:45px;height:45px}.status-copy strong{font-size:16px}.status-caption{font-size:12px}.result-content{padding:17px 17px 3px}.result-actions{padding:12px 17px 18px}.new-search-button{width:100%}}
@media(prefers-reduced-motion:reduce){.new-search-button{transition:none}}
