/* Ricerca globale (Ctrl+K) — overlay aperto dalla navbar */
.gs-backdrop { position: fixed; inset: 0; background: rgba(15, 23, 42, .5); z-index: 3000; display: flex; justify-content: center; align-items: flex-start; padding: 8vh 16px 16px; }
.gs-backdrop[hidden] { display: none !important; }
.gs-panel { background: #fff; width: 100%; max-width: 720px; border-radius: 14px; box-shadow: 0 24px 60px rgba(0,0,0,.3); display: flex; flex-direction: column; max-height: 80vh; overflow: hidden; color: #111827; }
.gs-input-row { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid #E5E7EB; }
.gs-input-row i { color: #6B7280; font-size: 1.1rem; }
.gs-input { flex: 1; border: 0; outline: none; font-size: 1.05rem; background: transparent; color: #111827; min-width: 0; }
.gs-kbd { font-size: .7rem; border: 1px solid #D1D5DB; border-radius: 5px; padding: 1px 6px; color: #6B7280; background: #F9FAFB; }
.gs-body { overflow-y: auto; padding: 6px 0 10px; }
.gs-group-title { display: flex; justify-content: space-between; align-items: center; font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #6B7280; padding: 10px 16px 4px; }
.gs-group-title a { text-transform: none; letter-spacing: 0; font-weight: 600; color: #4F46E5; text-decoration: none; }
.gs-item { display: flex; gap: 12px; align-items: flex-start; padding: 8px 16px; color: inherit; text-decoration: none; cursor: pointer; }
.gs-item:hover, .gs-item.active { background: #EEF2FF; color: inherit; }
.gs-item > i { color: #4F46E5; margin-top: 2px; width: 18px; text-align: center; flex: 0 0 auto; }
.gs-item-main { min-width: 0; flex: 1; }
.gs-item-title { font-weight: 600; font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gs-item-sub { font-size: .78rem; color: #6B7280; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gs-item-snip { font-size: .8rem; color: #374151; margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gs-item mark { background: #FEF08A; padding: 0; color: inherit; }
.gs-score { font-size: .7rem; color: #6B7280; flex: 0 0 auto; }
.gs-empty, .gs-loading { padding: 18px 16px; color: #6B7280; font-size: .88rem; }
.gs-foot { border-top: 1px solid #E5E7EB; padding: 8px 16px; display: flex; gap: 14px; flex-wrap: wrap; font-size: .72rem; color: #6B7280; }
.gs-ai { margin: 6px 16px 0; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: linear-gradient(90deg, #EEF2FF, #F5F3FF); color: #3730A3; text-decoration: none; font-size: .88rem; }
.gs-ai:hover, .gs-ai.active { color: #312E81; outline: 2px solid #C7D2FE; }
@media (max-width: 576px) { .gs-backdrop { padding-top: 12px; } .gs-panel { max-height: 92vh; } .gs-foot { display: none; } }
/* Risposta calcolata per le domande sui numeri */
.gs-answer { margin: 6px 16px 4px; padding: 12px 14px; border: 1px solid #C7D2FE; border-radius: 12px; background: #F8FAFF; }
.gs-answer-ko { color: #6B7280; font-size: .85rem; background: #F9FAFB; border-color: #E5E7EB; }
.gs-answer-head { display: flex; gap: 8px; align-items: center; font-weight: 700; font-size: .88rem; color: #3730A3; }
.gs-answer-num { font-size: 2.1rem; font-weight: 800; color: #111827; line-height: 1.2; margin: 4px 0; }
.gs-answer-table { width: 100%; border-collapse: collapse; font-size: .82rem; margin: 8px 0 4px; }
.gs-answer-table th { text-align: left; color: #6B7280; font-weight: 600; border-bottom: 1px solid #E5E7EB; padding: 4px 6px; }
.gs-answer-table td { border-bottom: 1px solid #F3F4F6; padding: 4px 6px; }
.gs-answer .gs-answer-link { margin: 8px -6px -4px; padding: 6px; border-radius: 8px; }
.gs-answer .gs-loading { padding: 4px 0; }
