/* Cookie consent — Il Giornale Edile (mobile-first, zero dipendenze) */
.ge-cb {
  position: fixed; z-index: 9999;
  left: 0; right: 0; bottom: 0;
  background: #111111; color: #e8e8e8;
  padding: 16px 18px calc(16px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -4px 24px rgba(0,0,0,.35);
  font-family: "Source Sans 3", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 14px; line-height: 1.5;
  transform: translateY(110%);
  transition: transform .28s ease;
}
.ge-cb.ge-cb-visible { transform: translateY(0); }
.ge-cb-inner { max-width: 1240px; margin: 0 auto; }
.ge-cb p { margin: 0 0 12px; color: #cfcfcf; }
.ge-cb p strong { color: #fff; }
.ge-cb a { color: #ff8fa3; text-decoration: underline; text-underline-offset: 2px; }
.ge-cb-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.ge-cb button {
  font: inherit; font-weight: 700; cursor: pointer; border-radius: 4px;
  padding: 11px 18px; border: 1px solid transparent; min-height: 44px;
}
.ge-cb-accept { background: #C8102E; color: #fff; flex: 1 1 auto; }
.ge-cb-accept:hover { background: #9d0c24; }
.ge-cb-reject { background: transparent; color: #e8e8e8; border-color: #555 !important; }
.ge-cb-reject:hover { border-color: #999 !important; }
.ge-cb-custom { background: transparent; color: #bdbdbd; text-decoration: underline; padding: 11px 6px; }
.ge-cb-prefs { display: none; margin: 12px 0 14px; border-top: 1px solid #333; padding-top: 12px; }
.ge-cb.ge-cb-show-prefs .ge-cb-prefs { display: block; }
.ge-cb-pref { display: flex; align-items: flex-start; gap: 12px; padding: 8px 0; }
.ge-cb-pref input { width: 22px; height: 22px; margin-top: 2px; accent-color: #C8102E; flex-shrink: 0; }
.ge-cb-pref label { color: #e8e8e8; font-weight: 700; }
.ge-cb-pref small { display: block; color: #9a9a9a; font-weight: 400; font-size: 12.5px; }
.ge-cb-save { background: #C8102E; color: #fff; }
.ge-cb-reopen {
  position: fixed; z-index: 9998; left: 12px; bottom: 12px;
  background: #111; color: #fff; border: 1px solid #444; border-radius: 999px;
  font: 700 12.5px "Source Sans 3", "Segoe UI", Roboto, sans-serif;
  padding: 10px 16px; min-height: 44px; cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,.3);
}
.ge-cb-reopen:hover { background: #C8102E; border-color: #C8102E; }

@media (min-width: 720px) {
  .ge-cb {
    left: 24px; right: auto; bottom: 24px;
    max-width: 430px; border-radius: 8px;
    padding: 20px 22px;
    transform: translateY(130%);
  }
  .ge-cb-actions { flex-wrap: nowrap; }
  .ge-cb-accept { flex: 0 1 auto; }
}
