.kk-gate{--navy:#142b43;--blue:#22658a;--line:#dfe6ec;max-width:540px;margin:16px auto 36px;padding:0 12px;font:15px/1.45 system-ui,sans-serif;color:#142b43}.kk-gate *{box-sizing:border-box}.kk-gate-head{padding:18px 4px 14px}.kk-gate-brand{display:flex;align-items:center;gap:8px;font-size:12px;letter-spacing:.06em;font-weight:650;color:#243f58}.kk-gate-mark{display:inline-grid;place-items:center;background:var(--navy);color:#fff;border-radius:8px;width:30px;height:30px;font-size:18px;letter-spacing:0}.kk-gate-mode{margin-left:auto;color:#6e8191;font-size:10px;letter-spacing:.04em}.kk-gate h1{font-size:clamp(23px,5vw,29px);line-height:1.15;margin:14px 0 4px;color:var(--navy)}.kk-gate-head p{font-size:13px;color:#637689;margin:0}.kk-gate-panel{border:1px solid var(--line);background:#fff;border-radius:15px;padding:16px;margin:10px 0;box-shadow:0 3px 12px #142b4308}.kk-gate label{display:block;font-weight:650;font-size:12px;margin:0 0 6px;color:#40566b}.kk-gate select,.kk-gate input{width:100%;max-width:100%;min-width:0;padding:12px;border:1px solid #ccd8e2;border-radius:9px;font:16px system-ui,sans-serif;background:#fff;color:#142b43}.kk-gate select:focus,.kk-gate input:focus{outline:2px solid #93b8d1;outline-offset:1px}.kk-gate button{border:0;background:var(--navy);color:#fff;border-radius:9px;padding:11px 12px;font:650 13px system-ui,sans-serif;cursor:pointer;min-height:43px}.kk-gate button:focus-visible{outline:3px solid #93b8d1;outline-offset:2px}.kk-gate button.kk-gate-secondary{background:#edf2f6;color:var(--navy)}.kk-gate-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:10px}.kk-gate #kk-gate-status{border-left:3px solid #7ca4bd;background:#f2f6f9;border-radius:5px;padding:9px 10px;font-size:12px;color:#40576a;margin-top:10px}.kk-gate-section-title{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin-bottom:10px}.kk-gate-section-title strong{font-size:15px}.kk-gate-section-title span{font-size:11px;color:#728396}.kk-gate-camera video{display:none;width:100%;max-height:270px;border-radius:10px;background:#122b42;object-fit:cover;margin-bottom:10px}.kk-gate-camera.kk-gate-scanning video{display:block}.kk-gate-camera-button{width:100%;background:var(--blue)!important}.kk-gate-camera p{font-size:12px;color:#687d90;margin:9px 0 14px}.kk-gate-code-row{display:flex;gap:8px}.kk-gate-code-row input{flex:1}.kk-gate-code-row button{flex:0 0 auto}.kk-gate-ok,.kk-gate-bad{padding:15px;border-radius:12px;margin:12px 0;border:1px solid}.kk-gate-ok{background:#edf8f2;color:#155e3d;border-color:#b9dfca}.kk-gate-bad{background:#fff4ee;color:#8a391c;border-color:#f1c9b5}.kk-gate-ok p,.kk-gate-bad p{margin:7px 0}.kk-gate-ok button{margin-top:8px;width:100%}.kk-gate code{overflow-wrap:anywhere}.kk-gate-details{margin:14px 3px;color:#66798b;font-size:12px}.kk-gate-details summary{cursor:pointer;font-weight:650}.kk-gate-privacy{line-height:1.55}.kk-gate #kk-gate-clear{background:#eef2f5;color:#344e63;width:100%;margin-top:5px}@media(max-width:360px){.kk-gate{padding:0 8px}.kk-gate-panel{padding:12px}.kk-gate-mode{display:none}.kk-gate-code-row{flex-direction:column}}
/* 1.9.16 — pagina di accesso compatta, nessun cambiamento alla logica QR */
.kk-gate-entry{box-sizing:border-box;max-width:540px;margin:24px auto 34px;padding:34px 28px;background:#fff;border:1px solid #e0e7ed;border-radius:20px;box-shadow:0 12px 36px #102b4310;color:#152e47;font:15px/1.5 system-ui,sans-serif}.kk-gate-entry *{box-sizing:border-box}.kk-gate-entry-icon{display:grid;place-items:center;width:52px;height:52px;border-radius:14px;background:#edf4f9;color:#205e84;font-size:30px;margin-bottom:19px}.kk-gate-entry-eyebrow{display:block;font-size:11px;font-weight:750;letter-spacing:.12em;color:#53748c}.kk-gate-entry h2{font:750 clamp(24px,4.5vw,31px)/1.16 system-ui,sans-serif;color:#132d47;letter-spacing:-.025em;margin:11px 0 13px}.kk-gate-entry p{color:#586f82;font-size:14px;line-height:1.6;margin:0 0 19px}.kk-gate-entry-features{display:flex;gap:9px 15px;flex-wrap:wrap;margin:0 0 24px}.kk-gate-entry-features span{font-size:12px;font-weight:650;color:#27617f}.kk-gate-entry-btn{display:flex;align-items:center;justify-content:center;gap:9px;min-height:48px;padding:12px 16px;border-radius:10px;background:#152f4b;color:#fff!important;text-decoration:none!important;font-weight:700;font-size:14px}.kk-gate-entry-btn:hover,.kk-gate-entry-btn:focus{background:#255c7d;color:#fff!important}.kk-gate-entry small{display:block;text-align:center;color:#84919d;font-size:11px;margin-top:13px}.kk-gate-entry-alert{background:#fff7ed;color:#81501e;border:1px solid #f1d4a8;border-radius:10px;padding:12px;margin-bottom:15px;font-size:13px}@media(max-width:600px){.kk-gate-entry{margin:12px auto 24px;padding:26px 19px;border-radius:16px}}

/* 1.9.17 - login branded, native WordPress authentication */
.kk-gate-entry .kk-gate-login{margin-top:18px;text-align:left}.kk-gate-login form{margin:0}.kk-gate-login form p{margin:0 0 13px!important;color:#314b64!important}.kk-gate-login form label{display:block;font-size:13px;font-weight:650;margin-bottom:5px;color:#193653}.kk-gate-login input[type=text],.kk-gate-login input[type=password]{width:100%;box-sizing:border-box;min-height:46px;padding:11px 13px;border:1px solid #cbd8e4;border-radius:9px;font-size:16px;color:#17314a;background:#fff}.kk-gate-login input:focus-visible{outline:2px solid #2979a5;outline-offset:2px}.kk-gate-login .login-remember label{display:flex;align-items:center;gap:8px;font-weight:400;font-size:12px}.kk-gate-login .login-submit{margin:12px 0 0!important}.kk-gate-login #wp-submit{display:block;width:100%;min-height:47px;border:0;border-radius:9px;background:#225f82;color:#fff;font-weight:700;cursor:pointer}.kk-gate-login-links{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:12px 0 6px}.kk-gate-login-links a,.kk-gate-entry-alt{font-size:12px;color:#225f82}.kk-gate-entry-alt{display:block;margin-top:12px;text-align:center}.kk-gate-entry .kk-gate-entry-alert{line-height:1.5}

/* 1.9.18 — Gate: one heading, no redundant page chrome */
body.page-id-387 .entry-title,body.page-id-387 .wp-block-post-title,body.page-id-387 h1.page-title,body.page-id-387 .page-header,body.page-id-387 .entry-header,body.page-id-387 .back-link,body.page-id-387 a.back-link{display:none!important}
body.page-id-387 .kk-gate-entry{max-width:410px;margin:clamp(18px,5vh,55px) auto 48px;padding:29px 30px;border:1px solid #e2e8ee;border-radius:16px;box-shadow:0 10px 35px rgba(17,41,66,.055)}
body.page-id-387 .kk-gate-entry h2{font-size:25px;letter-spacing:-.035em;line-height:1.2;margin:0 0 6px}
body.page-id-387 .kk-gate-entry>p{font-size:13px;margin:0 0 18px;color:#607389}
body.page-id-387 .kk-gate-entry .kk-gate-login{margin-top:0}
body.page-id-387 .kk-gate-login form p{margin-bottom:11px!important}
body.page-id-387 .kk-gate-login input[type=text],body.page-id-387 .kk-gate-login input[type=password]{min-height:44px}
body.page-id-387 .kk-gate-login .login-remember{margin-bottom:8px!important}
body.page-id-387 .kk-gate-login .login-submit{margin-top:8px!important}
body.page-id-387 .kk-gate-login-links{justify-content:center;margin:13px 0 0}
body.page-id-387 .kk-gate-entry .kk-gate-entry-btn{margin-top:10px}
@media(max-width:600px){body.page-id-387 .kk-gate-entry{margin:16px auto 28px;padding:24px 19px;max-width:100%}}

.kk-gate-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin-top:12px}.kk-gate-stats>div{border-radius:9px;background:#f1f5f8;padding:10px 7px;text-align:center;min-width:0}.kk-gate-stats strong{display:block;color:#153c58;font-size:23px;line-height:1.1;font-variant-numeric:tabular-nums}.kk-gate-stats span{display:block;color:#587084;font-size:11px;margin-top:5px;line-height:1.25}@media(max-width:350px){.kk-gate-stats strong{font-size:19px}.kk-gate-stats span{font-size:10px}}

.kk-gate-test{border-top:1px solid #dce4eb;padding-top:12px}.kk-gate-test p{font-size:12px}.kk-gate-print-ticket{display:inline-flex;vertical-align:top;flex-direction:column;align-items:center;gap:6px;border:1px solid #dae4eb;border-radius:9px;padding:10px;margin:6px;width:185px;min-height:245px;text-align:center;break-inside:avoid}.kk-gate-print-ticket strong{font-size:13px}.kk-gate-print-ticket span{font-size:10px;color:#64758b}.kk-gate-print-ticket code{font-size:10px;overflow-wrap:anywhere}.kk-gate-print-qr svg{width:135px;height:135px}.kk-gate-print-head{margin:16px 0}.kk-gate-print-head h2{font-size:19px;margin:0}.kk-gate-print-head p{font-size:12px}@media print{@page{size:A4;margin:12mm}body *{visibility:hidden!important}#kk-gate-test-sheet,#kk-gate-test-sheet *{visibility:visible!important}#kk-gate-test-sheet{position:absolute;left:0;top:0;width:100%;background:white!important}#kk-gate-test-sheet .kk-gate-print-ticket{width:30%;margin:1%;border:1px solid #bbb;color:#111!important}#kk-gate-test-sheet svg rect{visibility:visible!important}}

/* 1.9.21: automatic online preparation/sync, manual recovery available in details. */
#kk-gate-prepare,#kk-gate-sync{display:none!important}
