/* ============================================================
   KEEPON LIVE FEST '26 — PWA APP STYLES
   Design "Pass / Backstage" • palette ufficiale
   ============================================================ */
:root{
  --kp-cream:#F6F1EB; --kp-cream2:#F1E9DD; --kp-paper:#FFFFFF;
  --kp-ink:#1C232B; --kp-muted:#6B7280; --kp-line:#ECE3D5;
  --kp-orange:#EE5A24; --kp-terra:#D83A00; --kp-amber:#F7941D;
  --kp-c-talk:#F7941D; --kp-c-work:#3F9D7A; --kp-c-plen:#7A5CC9; --kp-c-live:#D83A00;
  --kp-c-day17:#EE5A24; --kp-c-day18:#7A5CC9; --kp-c-day19:#3F9D7A;
}
*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }
.kofp-body{
  background:var(--kp-cream); color:var(--kp-ink);
  font-family:'Archivo',system-ui,-apple-system,Segoe UI,Roboto,sans-serif;
  -webkit-font-smoothing:antialiased;
  padding-bottom:env(safe-area-inset-bottom);
}
.kol-prog{ width:100%; margin:0 auto; }
.kol-prog-main{ max-width:1160px; margin:0 auto; padding:24px 16px 0; }
button{ cursor:pointer; font-family:inherit; }
.kp-hidden{ display:none !important; }

/* ---- HEADER APP (hero brandizzato, full-bleed) ---- */
.kofp-header{
  background:var(--kp-cream); border-bottom:1px solid rgba(238,90,36,.2);
  padding:22px 16px 0; margin:0 0 0;
  position:relative; overflow:hidden;
}
.kofp-header-inner{
  max-width:1160px; margin:0 auto;
  display:flex; flex-direction:column; gap:18px;
}
@media(min-width:768px){ .kofp-header-inner{ flex-direction:row; justify-content:space-between; align-items:flex-start; } }

/* blocco logo + sottotitolo (sinistra) */
.kofp-logo-row{ display:flex; align-items:center; gap:12px; }
.kofp-logo-mark{
  width:48px; height:48px; border-radius:12px; border:2px solid var(--kp-orange); background:#fff;
  display:flex; align-items:center; justify-content:center; font-weight:900; font-size:15px;
  letter-spacing:-.03em; color:var(--kp-ink); flex-shrink:0;
}
.kofp-logo-mark b{ color:var(--kp-orange); font-size:19px; margin-right:1px; }
.kofp-logo-sub{ font-size:11px; text-transform:uppercase; letter-spacing:.12em; font-weight:700; line-height:1.3; }
.kofp-logo-sub .accent{ color:var(--kp-orange); }
.kofp-datechip{ margin-top:10px; display:flex; align-items:center; gap:8px; }
.kofp-datechip .city{ background:var(--kp-orange); color:#fff; font-weight:700; font-size:11px; text-transform:uppercase; letter-spacing:.06em; padding:4px 10px; border-radius:4px; }
.kofp-datechip .date{ font-weight:800; font-size:12px; text-transform:uppercase; letter-spacing:.04em; }

/* titolo (destra) */
.kofp-title-block{ text-align:left; }
@media(min-width:768px){ .kofp-title-block{ text-align:right; } }
.kofp-title-block h1{ font-weight:900; text-transform:uppercase; font-size:clamp(26px,6vw,46px); line-height:.95; letter-spacing:-.02em; margin:0; }
.kofp-title-block h1 .accent{ color:var(--kp-orange); }
.kofp-title-block .claim{ font-size:12px; font-weight:600; text-transform:uppercase; letter-spacing:.04em; color:var(--kp-muted); margin-top:8px; max-width:420px; }
.kofp-title-block .claim strong{ color:var(--kp-ink); }
.kofp-title-block .meta{ margin-top:8px; display:flex; gap:10px; align-items:center; font-family:'Space Mono',monospace; font-size:11px; color:var(--kp-muted); flex-wrap:wrap; }
@media(min-width:768px){ .kofp-title-block .meta{ justify-content:flex-end; } }
.kofp-title-block .meta .hash{ background:rgba(238,90,36,.1); color:var(--kp-orange); font-weight:700; padding:2px 8px; border-radius:4px; }
.kofp-title-block .meta a{ color:var(--kp-orange); font-weight:700; text-decoration:none; }
.kofp-title-block .meta a:hover{ text-decoration:underline; }

/* arco decorativo hero (a strati, slanciato) */
.kofp-arch{ max-width:1160px; margin:22px auto 0; height:46px; display:flex; justify-content:center; align-items:flex-end; opacity:.85; pointer-events:none; }
.kofp-arch > div{ display:flex; justify-content:center; align-items:flex-end; border-radius:999px 999px 0 0; }
.kofp-arch .l1{ width:min(760px,92%); height:46px; background:#D83A00; padding-top:3px; }
.kofp-arch .l2{ width:88%; height:40px; background:#E64A19; padding-top:3px; }
.kofp-arch .l3{ width:80%; height:34px; background:#EE5A24; padding-top:3px; }
.kofp-arch .l4{ width:68%; height:27px; background:#F7941D; padding-top:3px; }
.kofp-arch .l5{ width:56%; height:21px; background:#F9B233; padding-top:3px; }
.kofp-arch .l6{ width:42%; height:15px; background:#FCE4C8; padding-top:2px; }
.kofp-arch .l7{ width:26%; height:8px; background:var(--kp-cream); }

.kofp-install{
  display:inline-flex; align-items:center; gap:7px; background:var(--kp-ink); color:#fff; border:0;
  font-size:12px; font-weight:700; padding:9px 14px; border-radius:8px; transition:.18s; align-self:flex-start;
}
.kofp-install:hover{ background:var(--kp-terra); }
.kofp-install-float{
  position:fixed; right:16px; bottom:16px; z-index:99998;
  display:inline-flex; align-items:center; gap:8px; background:var(--kp-orange); color:#fff; border:0;
  font-size:13px; font-weight:700; padding:12px 18px; border-radius:999px; cursor:pointer;
  box-shadow:0 8px 24px rgba(216,58,0,.35); transition:.18s;
}
.kofp-install-float:hover{ background:var(--kp-terra); }

/* ---- BANDA PARTNER / PATROCINI ---- */
.kofp-partners{ background:#fff; border-bottom:1px solid rgba(0,0,0,.06); padding:22px 16px; }
.kofp-partners-inner{ max-width:1160px; margin:0 auto; display:flex; flex-direction:column; align-items:center; gap:14px; }
.kofp-partners-label{ font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.16em; color:var(--kp-muted); text-align:center; }
.kofp-partners-list{ display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:22px 44px; }
.kofp-partner{ display:inline-flex; align-items:center; gap:7px; font-weight:700; font-size:12px; color:#4b5563; text-decoration:none; transition:.18s; opacity:.95; }
.kofp-partner:hover{ opacity:1; color:var(--kp-terra); }
.kofp-partner img{ height:60px; width:auto; max-width:210px; object-fit:contain; display:block; }
.kofp-partner .pfallback{ display:inline-flex; align-items:center; gap:6px; }
.kofp-partner .pfallback i{ color:var(--kp-orange); }
@media(max-width:640px){
  .kofp-partners{ padding:18px 16px; }
  .kofp-partners-list{ gap:18px 28px; }
  .kofp-partner img{ height:46px; max-width:150px; }
}

/* ---- Striscia loghi unica (desktop/mobile) ---- */
.kofp-strip-wrap{ display:flex; justify-content:center; align-items:center; width:100%; }
.kofp-strip{ width:auto; max-width:100%; object-fit:contain; height:var(--strip-h-d,60px); }
.kofp-strip-m{ display:none; }
@media(max-width:640px){
  .kofp-strip-d{ display:none; }
  .kofp-strip-m{ display:block; height:auto; max-height:var(--strip-h-m,130px); }
}

/* ---- FOOTER ---- */
.kofp-footer{ background:var(--kp-ink); color:#fff; padding:34px 16px 28px; margin-top:48px; border-top:4px solid var(--kp-orange); }
.kofp-footer-inner{ max-width:1160px; margin:0 auto; display:flex; flex-direction:column; gap:20px; text-align:center; }
@media(min-width:768px){ .kofp-footer-inner{ flex-direction:row; justify-content:space-between; align-items:center; text-align:left; } }
.kofp-footer h2{ font-weight:800; text-transform:uppercase; font-size:20px; letter-spacing:-.01em; margin:0; }
.kofp-footer h2 .accent{ color:var(--kp-orange); }
.kofp-footer p{ font-size:12px; color:#9ca3af; margin:6px 0 0; max-width:440px; }
.kofp-footer-right{ display:flex; flex-direction:column; gap:5px; font-size:12px; color:#d1d5db; }
@media(min-width:768px){ .kofp-footer-right{ align-items:flex-end; } }
.kofp-footer-right .hash{ font-weight:700; color:var(--kp-orange); text-transform:uppercase; letter-spacing:.14em; }
.kofp-footer-right a{ color:#fff; font-weight:700; text-decoration:underline; }
.kofp-footer-right a:hover{ color:var(--kp-orange); }
.kofp-footer-legal{ max-width:1160px; margin:26px auto 0; border-top:1px solid rgba(255,255,255,.12); padding-top:16px; text-align:center; font-size:10px; text-transform:uppercase; letter-spacing:.14em; color:#6b7280; }

/* ---- Barra controlli ---- */
.kp-controls{ background:var(--kp-paper); padding:16px; border:1px solid var(--kp-line); border-radius:10px; display:flex; flex-direction:column; gap:12px; margin-bottom:24px; }
.kp-controls-top{ display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px; }
.kp-tabs{ display:flex; flex-wrap:wrap; gap:6px; }
.kp-tab{ padding:8px 14px; border-radius:7px; font-size:12px; font-weight:700; border:0; background:var(--kp-cream); color:var(--kp-ink); transition:.18s; }
.kp-tab:hover{ background:var(--kp-cream2); }
.kp-tab.is-active{ background:var(--kp-ink); color:#fff; }

.kp-viewtoggle{ display:flex; gap:4px; background:var(--kp-cream); padding:4px; border-radius:8px; }
.kp-vbtn{ display:inline-flex; align-items:center; gap:6px; padding:6px 11px; border:0; background:transparent; font-size:12px; font-weight:700; color:var(--kp-muted); border-radius:6px; transition:.18s; }
.kp-vbtn.is-active{ background:var(--kp-paper); color:var(--kp-ink); box-shadow:0 1px 3px rgba(0,0,0,.1); }

.kp-controls-bottom{ display:flex; flex-direction:column; gap:12px; }
@media(min-width:768px){ .kp-controls-bottom{ flex-direction:row; align-items:center; justify-content:space-between; } }
.kp-cats{ display:flex; flex-wrap:wrap; align-items:center; gap:6px; }
.kp-cats-label{ font-family:'Space Mono',monospace; font-size:10px; font-weight:700; letter-spacing:.1em; text-transform:uppercase; color:var(--kp-muted); margin-right:2px; }
.kp-cat{ padding:6px 12px; border-radius:999px; font-size:12px; font-weight:600; border:1px solid var(--kp-line); background:var(--kp-paper); color:var(--kp-ink); transition:.18s; }
.kp-cat:hover{ border-color:var(--kp-orange); }
.kp-cat.is-active{ background:var(--kp-ink); color:#fff; border-color:var(--kp-ink); }
.kp-search{ position:relative; min-width:220px; }
.kp-search i{ position:absolute; left:12px; top:50%; transform:translateY(-50%); color:#b7ab98; font-size:12px; }
.kp-search input{ width:100%; padding:9px 14px 9px 34px; font-size:13px; font-family:'Archivo',sans-serif; background:var(--kp-cream); border:1px solid var(--kp-line); border-radius:8px; outline:none; transition:.18s; }
.kp-search input:focus{ border-color:var(--kp-orange); background:var(--kp-paper); }
.kp-metabar{ display:flex; align-items:center; gap:12px; }
.kp-count{ font-family:'Space Mono',monospace; font-size:11px; color:var(--kp-muted); }
.kp-reset{ display:inline-flex; align-items:center; gap:5px; background:none; border:0; font-size:12px; font-weight:700; color:var(--kp-terra); padding:0; }
.kp-reset:hover{ text-decoration:underline; }

/* ---- Header giornata ---- */
.kp-day{ margin-bottom:36px; }
.kp-daybar{ display:flex; align-items:center; gap:14px; margin-bottom:16px; }
.kp-daynum{ flex-shrink:0; display:flex; flex-direction:column; align-items:center; justify-content:center; width:48px; height:48px; background:var(--kp-orange); color:#fff; border-radius:8px; font-weight:800; font-size:22px; line-height:.9; }
.kp-daynum small{ font-family:'Space Mono',monospace; font-size:8px; font-weight:700; letter-spacing:.14em; margin-top:2px; opacity:.9; }
.kp-daytitle{ font-weight:800; text-transform:uppercase; font-size:18px; letter-spacing:.01em; margin:0; line-height:1; }
.kp-daysub{ font-family:'Space Mono',monospace; font-size:10px; letter-spacing:.12em; text-transform:uppercase; color:var(--kp-terra); margin-top:5px; }
.kp-rule{ flex:1; height:2px; background:repeating-linear-gradient(90deg,var(--kp-ink) 0 6px,transparent 6px 12px); opacity:.22; }

/* ---- Griglia + card pass ---- */
.kp-grid{ display:grid; grid-template-columns:1fr; gap:14px; }
@media(min-width:768px){ .kp-grid{ grid-template-columns:1fr 1fr; } }
.kp-card{ position:relative; display:flex; background:var(--kp-paper); border:1px solid var(--kp-line); border-radius:9px; overflow:hidden; transition:.18s; }
.kp-card:hover{ box-shadow:0 6px 18px rgba(216,58,0,.12); }
.kp-stub{ width:34px; flex-shrink:0; position:relative; display:flex; align-items:center; justify-content:center; }
.kp-stub span{ writing-mode:vertical-rl; transform:rotate(180deg); font-family:'Space Mono',monospace; font-size:9px; font-weight:700; letter-spacing:.16em; text-transform:uppercase; color:#fff; white-space:nowrap; }
.kp-stub::after{ content:""; position:absolute; right:-1px; top:0; bottom:0; width:2px; background-image:radial-gradient(circle,var(--kp-paper) 1.5px,transparent 1.6px); background-size:2px 8px; background-repeat:repeat-y; }
.kp-stub.talk{ background:var(--kp-c-talk); } .kp-stub.work{ background:var(--kp-c-work); }
.kp-stub.plen{ background:var(--kp-c-plen); } .kp-stub.live{ background:var(--kp-c-live); }
.kp-body{ padding:15px 17px; flex:1; min-width:0; }
.kp-ctop{ display:flex; justify-content:space-between; align-items:baseline; gap:8px; margin-bottom:6px; }
.kp-cat-lbl{ font-family:'Space Mono',monospace; font-size:10px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--kp-muted); }
.kp-time{ font-family:'Space Mono',monospace; font-size:12px; font-weight:700; color:var(--kp-terra); white-space:nowrap; }
.kp-ctitle{ font-weight:800; font-size:16px; line-height:1.22; margin:0 0 8px; letter-spacing:-.01em; }
.kp-loc{ font-size:12px; font-weight:600; display:flex; align-items:center; gap:6px; }
.kp-loc i{ color:var(--kp-orange); width:13px; }
.kp-spk{ font-size:11.5px; color:var(--kp-muted); margin-top:4px; display:flex; align-items:flex-start; gap:6px; }
.kp-spk i{ color:#c9beac; margin-top:2px; width:13px; }
.kp-desc{ font-size:12.5px; color:#5b6470; line-height:1.5; margin:9px 0 0; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.kp-tags{ display:flex; gap:6px; flex-wrap:wrap; margin-top:10px; }
.kp-conc{ display:inline-flex; align-items:center; gap:5px; font-family:'Space Mono',monospace; font-size:9.5px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--kp-terra); background:rgba(216,58,0,.09); padding:3px 8px; border-radius:4px; }
.kp-star{ display:inline-flex; align-items:center; gap:5px; font-size:10px; font-weight:700; color:var(--kp-amber); background:rgba(247,148,29,.12); padding:3px 8px; border-radius:4px; border:0; }
.kp-star.on{ color:#fff; background:var(--kp-amber); }
.kp-foot{ margin-top:12px; display:flex; justify-content:space-between; align-items:center; gap:8px; }
.kp-foot-left{ display:flex; gap:6px; }
.kp-more{ background:var(--kp-ink); color:#fff; border:0; font-size:11px; font-weight:700; padding:7px 13px; border-radius:6px; transition:.18s; }
.kp-more:hover{ background:var(--kp-terra); }
.kp-iconbtn{ background:var(--kp-cream); border:1px solid var(--kp-line); color:var(--kp-ink); width:30px; height:30px; border-radius:6px; display:inline-flex; align-items:center; justify-content:center; font-size:12px; transition:.18s; }
.kp-iconbtn:hover{ border-color:var(--kp-orange); color:var(--kp-terra); }
.kp-iconbtn.starred{ background:var(--kp-amber); color:#fff; border-color:var(--kp-amber); }

/* ---- Timeline ---- */
.kp-timeline{ position:relative; }
.kp-tl-row{ display:grid; grid-template-columns:78px 1fr; gap:14px; align-items:start; padding:6px 0; }
.kp-tl-time{ font-family:'Space Mono',monospace; font-size:12px; font-weight:700; color:var(--kp-terra); padding-top:16px; text-align:right; }
.kp-tl-time small{ display:block; font-weight:400; color:var(--kp-muted); font-size:10px; }
.kp-tl-track{ position:relative; border-left:2px solid var(--kp-line); padding-left:16px; padding-bottom:6px; }
.kp-tl-dot{ position:absolute; left:-7px; top:20px; width:12px; height:12px; border-radius:50%; background:var(--kp-orange); border:2px solid var(--kp-paper); }
.kp-tl-dot.talk{ background:var(--kp-c-talk); } .kp-tl-dot.work{ background:var(--kp-c-work); }
.kp-tl-dot.plen{ background:var(--kp-c-plen); } .kp-tl-dot.live{ background:var(--kp-c-live); }
.kp-tl-slot{ display:flex; flex-direction:column; gap:8px; }
.kp-tl-conc-wrap{ display:grid; grid-template-columns:1fr 1fr; gap:8px; }
@media(max-width:640px){ .kp-tl-conc-wrap{ grid-template-columns:1fr; } .kp-tl-row{ grid-template-columns:58px 1fr; gap:8px; } }

/* ---- MAPPA ---- */
#kp-map{ width:100%; height:min(70vh,560px); border-radius:12px; border:1px solid var(--kp-line); overflow:hidden; }
.kp-map-legend{ display:flex; flex-wrap:wrap; gap:12px; margin:12px 2px 0; font-size:11px; color:var(--kp-muted); }
.kp-map-legend span{ display:inline-flex; align-items:center; gap:6px; }
.kp-legend-dot{ width:12px; height:12px; border-radius:50%; }
.kp-map-missing{ background:#fff7ed; border:1px solid #fed7aa; color:#7c2d12; padding:14px; border-radius:10px; font-size:13px; margin-bottom:12px; }
/* pin marker */
.kp-pin{ background:none; border:0; }
.kp-pin-inner{ width:38px; height:38px; border-radius:50% 50% 50% 0; transform:rotate(-45deg); border:2px solid #fff; box-shadow:0 2px 6px rgba(0,0,0,.3); display:flex; align-items:center; justify-content:center; }
.kp-pin-inner i, .kp-pin-inner span{ transform:rotate(45deg); color:#fff; font-size:14px; font-weight:800; }
.kp-pin-inner.has-logo{ border-width:3px; }
.kp-pin-inner img{ transform:rotate(45deg); width:26px; height:26px; border-radius:50%; object-fit:contain; background:#fff; padding:1px; }
/* popup */
.leaflet-popup-content-wrapper{ border-radius:12px; }
.kp-pop{ font-family:'Archivo',sans-serif; min-width:190px; }
.kp-pop-head{ display:flex; align-items:center; gap:10px; margin-bottom:6px; }
.kp-pop-head img{ width:38px; height:38px; border-radius:8px; object-fit:cover; border:1px solid var(--kp-line); }
.kp-pop-name{ font-weight:800; font-size:15px; line-height:1.1; }
.kp-pop-addr{ font-size:11.5px; color:var(--kp-muted); margin:2px 0 8px; }
.kp-pop-ev{ font-size:12px; padding:5px 0; border-top:1px dashed var(--kp-line); }
.kp-pop-ev b{ font-family:'Space Mono',monospace; color:var(--kp-terra); font-size:11px; }
.kp-pop-btn{ display:inline-flex; align-items:center; gap:6px; margin-top:8px; background:var(--kp-ink); color:#fff !important; text-decoration:none; font-size:11px; font-weight:700; padding:7px 12px; border-radius:6px; }

/* ---- Empty ---- */
.kp-empty{ background:var(--kp-paper); border:1px solid var(--kp-line); border-radius:10px; padding:44px; text-align:center; }
.kp-empty i{ font-size:32px; color:var(--kp-orange); margin-bottom:10px; }
.kp-empty h3{ font-size:17px; font-weight:800; margin:0; }
.kp-empty p{ font-size:12.5px; color:var(--kp-muted); margin-top:4px; }
.kofp-loading{ text-align:center; padding:60px 20px; color:var(--kp-muted); font-family:'Space Mono',monospace; font-size:13px; }

/* ---- Modale ---- */
.kp-modal{ position:fixed; inset:0; background:rgba(28,35,43,.72); backdrop-filter:blur(4px); z-index:99999; display:flex; align-items:center; justify-content:center; padding:16px; }
.kp-modal-box{ background:var(--kp-paper); border-radius:14px; max-width:640px; width:100%; max-height:90vh; overflow-y:auto; box-shadow:0 20px 50px rgba(0,0,0,.35); border:1px solid var(--kp-line); padding:28px; position:relative; }
.kp-modal-x{ position:absolute; top:16px; right:16px; width:32px; height:32px; border-radius:999px; background:var(--kp-cream); border:0; font-size:14px; font-weight:700; display:flex; align-items:center; justify-content:center; transition:.18s; }
.kp-modal-x:hover{ background:var(--kp-terra); color:#fff; }
.kp-modal-footer{ margin-top:24px; padding-top:16px; border-top:1px solid var(--kp-line); display:flex; justify-content:space-between; gap:10px; flex-wrap:wrap; }
.kp-modal-close{ padding:9px 20px; background:var(--kp-ink); color:#fff; border:0; font-size:12px; font-weight:700; border-radius:7px; transition:.18s; }
.kp-modal-close:hover{ background:var(--kp-terra); }
.kp-m-head{ display:flex; align-items:center; gap:8px; margin-bottom:14px; flex-wrap:wrap; }
.kp-m-cat{ font-family:'Space Mono',monospace; font-size:10px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:#fff; padding:3px 9px; border-radius:5px; }
.kp-m-day{ font-family:'Space Mono',monospace; font-size:11px; font-weight:700; color:var(--kp-terra); text-transform:uppercase; }
.kp-m-title{ font-weight:800; font-size:22px; line-height:1.2; margin:0 0 14px; letter-spacing:-.01em; }
.kp-m-info{ background:var(--kp-cream); border-radius:10px; padding:13px; font-size:12.5px; display:flex; flex-direction:column; gap:8px; border:1px solid var(--kp-line); }
.kp-m-info .kp-mrow{ display:flex; align-items:flex-start; gap:8px; }
.kp-m-info .kp-mrow i{ color:var(--kp-orange); width:15px; margin-top:2px; }
.kp-m-sec{ font-family:'Space Mono',monospace; font-size:10px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--kp-muted); margin:16px 0 8px; }
.kp-m-full{ font-size:14px; color:#374151; line-height:1.6; background:#faf8f4; padding:15px; border-radius:10px; border:1px solid var(--kp-line); white-space:pre-line; }
.kp-m-note{ margin-top:14px; padding:12px; border-radius:8px; background:#fff7ed; border:1px solid #fed7aa; font-size:12px; color:#7c2d12; display:flex; align-items:flex-start; gap:8px; }
.kp-m-note i{ color:var(--kp-orange); margin-top:2px; }
.kp-m-actions{ display:flex; gap:8px; flex-wrap:wrap; }
.kp-m-btn{ display:inline-flex; align-items:center; gap:7px; font-size:12px; font-weight:700; padding:9px 14px; border-radius:7px; border:1px solid var(--kp-line); background:var(--kp-paper); color:var(--kp-ink); text-decoration:none; transition:.18s; cursor:pointer; }
.kp-m-btn:hover{ border-color:var(--kp-orange); color:var(--kp-terra); }
.kp-m-btn.primary{ background:var(--kp-amber); color:#fff; border-color:var(--kp-amber); }
.kp-m-btn.primary.on{ background:var(--kp-terra); border-color:var(--kp-terra); }

/* ---- Popup scelta calendario ---- */
.kp-cal-choice{ position:fixed; inset:0; background:rgba(28,35,43,.6); backdrop-filter:blur(3px); z-index:100001; display:flex; align-items:center; justify-content:center; padding:16px; }
.kp-cal-choice-inner{ background:var(--kp-paper); border-radius:16px; border:1px solid var(--kp-line); padding:20px; width:100%; max-width:320px; box-shadow:0 20px 50px rgba(0,0,0,.35); display:flex; flex-direction:column; gap:10px; }
.kp-cal-choice-title{ font-weight:800; font-size:16px; text-align:center; margin-bottom:4px; }
.kp-cal-opt{ display:flex; align-items:center; justify-content:center; gap:10px; padding:13px 16px; border:1px solid var(--kp-line); border-radius:10px; background:var(--kp-cream); color:var(--kp-ink); font-size:14px; font-weight:700; text-decoration:none; cursor:pointer; transition:.15s; }
.kp-cal-opt:hover{ border-color:var(--kp-orange); background:#fff; color:var(--kp-terra); }
.kp-cal-opt i{ font-size:17px; }
.kp-cal-cancel{ background:none; border:0; color:var(--kp-muted); font-size:13px; font-weight:600; padding:8px; cursor:pointer; margin-top:2px; }
.kp-cal-cancel:hover{ color:var(--kp-ink); }

/* ---- iOS install hint ---- */
.kofp-ios-hint{ position:fixed; left:16px; right:16px; bottom:16px; background:var(--kp-ink); color:#fff; border-radius:12px; padding:14px 16px; font-size:13px; display:flex; gap:10px; align-items:flex-start; z-index:100000; box-shadow:0 8px 30px rgba(0,0,0,.3); }
.kofp-ios-hint i{ color:var(--kp-amber); margin-top:2px; }
.kofp-ios-hint button{ background:none; border:0; color:#fff; opacity:.6; font-size:18px; margin-left:auto; }

/* ---- Print ---- */
@media print{
  .kofp-arch,.kp-controls,.kp-foot,.kofp-ios-hint,#kp-map,.kofp-install{ display:none !important; }
  .kofp-body{ background:#fff; }
  .kofp-header{ padding:8px 0; border-bottom:2px solid var(--kp-orange); }
  .kofp-partners{ padding:6px 0; }
  .kofp-footer{ background:#fff; color:#000; border-top:2px solid var(--kp-orange); margin-top:20px; padding:12px 0; }
  .kofp-footer p,.kofp-footer-right,.kofp-footer-legal{ color:#333 !important; }
  .kofp-footer h2 .accent,.kofp-footer-right .hash{ color:var(--kp-orange) !important; }
  .kofp-footer-right a{ color:#000 !important; }
  .kp-card{ break-inside:avoid; } .kp-day{ break-inside:avoid; }
}

/* ---- Mobile ---- */
@media (max-width:640px){
  .kol-prog{ padding:12px; }
  .kp-controls{ padding:14px; }
  .kp-controls-top{ flex-direction:column; align-items:stretch; }
  .kp-tabs{ display:grid; grid-template-columns:1fr 1fr; width:100%; gap:6px; }
  .kp-tab{ text-align:center; padding:11px 8px; }
  .kp-viewtoggle{ width:100%; } .kp-vbtn{ flex:1; justify-content:center; }
  .kp-cats{ display:grid; grid-template-columns:1fr 1fr; width:100%; gap:6px; }
  .kp-cats-label{ grid-column:1 / -1; } .kp-cat{ text-align:center; }
  .kp-search{ width:100%; min-width:0; }
}
