.idh-sp-host { position: relative; }
/* Campo di ricerca nell'header: pillola alta 44px come il pulsante «Segnala una notizia» */
.idh-sp-host { width: 380px; max-width: 100%; }
.idh-sp-host .bde-search-form { width: 100%; }
.idh-sp-host .search-form__container { padding: 0 8px 0 6px; }
.idh-sp-host .bde-search-form .search-form__container, .idh-sp-host .bde-search-form form { height: 44px !important; }
.idh-sp-host .bde-search-form .search-form__field { height: 44px !important; font-size: 14px !important; font-weight: 700 !important; color: var(--igdp-ink, #0F1D2D); padding: 0 8px; }
.idh-sp-host .search-form__field::placeholder { color: var(--igdp-ink, #0F1D2D); opacity: .55; font-weight: 700; }
.idh-sp-host .bde-search-form .search-form__button { width: 40px; height: 44px !important; }
.idh-sp-host .search-form__button svg { width: 18px; height: 18px; }
.idh-sp { position: absolute; z-index: 1000; top: calc(100% + 10px); right: 0; width: min(540px, calc(100vw - 32px)); max-height: 80vh; overflow: auto;
  background: #fff; color: var(--igdp-ink, #0F1D2D); border: 1px solid var(--igdp-line, #E3DBCF); border-radius: 16px; box-shadow: 0 18px 50px rgba(15, 29, 45, .22);
  font-family: var(--igdp-font-sans), system-ui, sans-serif; font-size: 15px; text-align: left; }
.idh-sp[hidden] { display: none; }
.idh-sp a { color: inherit; text-decoration: none; }
.idh-sp-tabs { display: flex; gap: 6px; flex-wrap: wrap; padding: 14px 16px; border-bottom: 1px solid var(--igdp-line, #E3DBCF); }
.idh-sp-tab { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--igdp-line, #E3DBCF);
  background: #fff; color: var(--igdp-ink, #0F1D2D); font: inherit; font-weight: 600; font-size: 13px; cursor: pointer; }
.idh-sp-tab.on { background: var(--igdp-ink, #0F1D2D); border-color: var(--igdp-ink, #0F1D2D); color: #fff; }
.idh-sp-cnt { font-size: 12px; font-weight: 500; opacity: .6; }
.idh-sp-sec { padding: 14px 16px; border-bottom: 1px solid var(--igdp-line, #E3DBCF); }
.idh-sp-h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; font-size: 11px; font-weight: 800; letter-spacing: .08em; color: var(--igdp-muted, #6B5F55); }
.idh-sp-h a { font-size: 12px; letter-spacing: 0; color: var(--igdp-lava-text, #B4471B); font-weight: 700; }
.idh-sp-art, .idh-sp-ent { display: flex; align-items: center; gap: 14px; padding: 8px 0; }
.idh-sp-art:hover .idh-sp-title, .idh-sp-ent:hover .idh-sp-title { text-decoration: underline; }
.idh-sp-thumb { flex: 0 0 56px; width: 56px; height: 56px; border-radius: 8px; overflow: hidden; background: var(--igdp-sand, #EFE8DE); }
.idh-sp-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.idh-sp-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.idh-sp-eyebrow { font-size: 11px; font-weight: 800; letter-spacing: .06em; color: var(--igdp-lava-text, #B4471B); }
.idh-sp-title { font-weight: 500; line-height: 1.3; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.idh-sp-title strong { font-weight: 800; }
.idh-sp-sub { font-size: 13px; color: var(--igdp-muted, #6B5F55); }
.idh-sp-ic { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--igdp-sand, #EFE8DE); }
.idh-sp-av { border-radius: 50%; background: var(--igdp-blue, #19314C); color: #fff; font-weight: 800; font-size: 15px; }
.idh-sp-n { font-size: 13px; font-weight: 700; color: var(--igdp-muted, #6B5F55); white-space: nowrap; }
.idh-sp-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.idh-sp-chip { padding: 5px 10px; border-radius: 999px; background: var(--igdp-sand, #EFE8DE); font-weight: 700; font-size: 13px; }
.idh-sp-more { display: block; margin: 4px 16px 14px; min-height: 40px; width: calc(100% - 32px); border-radius: 999px; border: 1px solid var(--igdp-line, #E3DBCF);
  background: #fff; color: var(--igdp-ink, #0F1D2D); font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; }
.idh-sp-more:hover:not(:disabled) { background: var(--igdp-sand, #EFE8DE); }
.idh-sp-more:disabled { opacity: .6; cursor: default; }
.idh-sp-empty { margin: 0; padding: 20px 16px; color: var(--igdp-muted, #6B5F55); }
.idh-sp-foot { display: flex; justify-content: space-between; padding: 12px 16px; font-size: 12px; color: var(--igdp-muted, #6B5F55); }
/* Input di ricerca in header: stessa altezza dei bottoni grandi (52px).
   Il CSS minificato di Breakdance scrive --searchformsize in minuscolo ma usa var(--searchFormSize): la variabile risulta
   indefinita e il campo collassa. Qui la ridefiniamo col nome giusto, su #igdp-search (vale anche prima che parta il JS). */
#igdp-search .bde-search-form { --searchFormSize: 52px; height: 52px; }
#igdp-search .bde-search-form .search-form__container { height: 52px; min-height: 52px; }
#igdp-search .bde-search-form .search-form__field,
#igdp-search .bde-search-form input[name="s"] { height: 52px; min-height: 52px; font-size: 16px; }
#igdp-search .bde-search-form .search-form__button { width: 52px; height: 52px; }

/* Titoli del sito (anche in sidebar): massimo tre righe, sillabazione automatica */
.igdp-card-title, .igdp-col-item-title, .igdp-last-title, .igdp-last-title-h, .igdp-lead-title, .igdp-lead-title-link,
.igdp-ra-title, .igdp-top-title, .igdp-top-t, .igdp-art-title, .igdp-also-title, .igdp-side :is(h2, h3, h4, h5) {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden;
  hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
.igdp-top-t, .igdp-last-title { min-width: 0; }

/* Loader nel campo di ricerca e skeleton dei contenuti caricati via Ajax */
.idh-sp-spin { position: absolute; top: 50%; right: 56px; width: 18px; height: 18px; margin-top: -9px; border-radius: 50%; pointer-events: none;
  border: 2px solid var(--igdp-line, #E3DBCF); border-top-color: var(--igdp-lava-text, #B4471B); animation: idh-sp-rot .7s linear infinite; }
.idh-sp-spin[hidden] { display: none; }
.idh-sp-sk { display: block; background: linear-gradient(90deg, var(--igdp-sand, #EFE8DE) 25%, #f8f4ee 50%, var(--igdp-sand, #EFE8DE) 75%); background-size: 200% 100%;
  animation: idh-sp-shimmer 1.3s ease-in-out infinite; border-radius: 6px; }
.idh-sp-sk-thumb { flex: 0 0 56px; width: 56px; height: 56px; border-radius: 8px; }
.idh-sp-sk-round { border-radius: 50%; }
.idh-sp-sk-line { height: 14px; width: 90%; }
.idh-sp-sk-short { height: 10px; width: 35%; }
.idh-sp-sk-chip { width: 84px; height: 26px; border-radius: 999px; }
.idh-sp-skel .idh-sp-txt { gap: 8px; }
.idh-sp-more-busy { opacity: .6; }
@keyframes idh-sp-rot { to { transform: rotate(360deg); } }
@keyframes idh-sp-shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .idh-sp-spin, .idh-sp-sk { animation: none; } }
