body, button, input, select, optgroup, textarea {
    color: #4a4a4a;
    font-family: 'Open Sans', sans-serif;
    font-size: 13px;
    line-height: 1.5;
}

/* Nasconde il badge categoria (es. ESTERI) dalla thumbnail hero in homepage */
.home .jeg_heroblock .jeg_post_category,
.home .jeg_hero_style_1 .jeg_post_category,
.home .jeg_hero_style_2 .jeg_post_category,
.home .jeg_hero_style_3 .jeg_post_category,
.home .jeg_hero_style_4 .jeg_post_category,
.home .jeg_hero_style_5 .jeg_post_category,
.home .jeg_hero_style_6 .jeg_post_category,
.home .jeg_hero_style_7 .jeg_post_category,
.blog .jeg_heroblock .jeg_post_category,
.blog [class*="jeg_hero"] .jeg_post_category {
    display: none !important;
}

.live-blog{border:none;padding:0}
.live-blog__header{
  background:#e11d48;
  color:#fff;
  padding:10px 14px;
  border-radius:10px;
  display:flex;
  align-items:center;
  justify-content:center;   /* center the LIVE text and dot */
  gap:8px;
  font-weight:700;
  text-align:center;
}
.live-blog__header .dot{width:8px;height:8px;border-radius:50%;background:#fff;display:inline-block;animation:blink 1s steps(2, start) infinite}
@keyframes blink{0%,100%{opacity:1;box-shadow:0 0 6px 3px rgba(220,38,38,0.6)}50%{opacity:.4;box-shadow:0 0 2px 1px rgba(220,38,38,0.2)}}

/* IN DIRETTA label (sopra la timeline) */
.live-blog__live-updates-label{
  display:inline-flex;align-items:center;gap:6px;
  background:#dc2626;color:#fff;
  font-weight:700;font-size:0.75rem;
  text-transform:uppercase;letter-spacing:0.08em;
  padding:6px 14px;border-radius:4px;
  margin-top:12px;margin-bottom:8px;
  line-height:1;
}
.live-blog__live-dot{
  width:8px;height:8px;border-radius:50%;
  background:#fff;display:inline-block;flex-shrink:0;
  animation:lbs-pill-pulse 1.5s ease-in-out infinite;
}

/* "di Autore" in basso a sinistra della card */
.live-blog__di-author{
  display:flex;align-items:center;gap:5px;
  margin-top:14px;padding-top:10px;
  border-top:1px solid #f0f0f0;
  font-size:0.82rem;color:#111;
  font-weight:500;line-height:1;
}
.live-blog__di-author svg{
  color:#0d9488;flex-shrink:0;
}
.live-blog__author-link{
  color:#111;text-decoration:none;transition:color 0.2s, text-decoration 0.2s;
}
.live-blog__author-link:hover{
  color:#0d9488;text-decoration:underline;
}

/* Blockquote summary - Green style */
#live-blog .live-blog__blockquote {
    border-left: 4px solid #10b981 !important;
    background: #ecfdf5 !important;
    padding: 16px 20px !important;
    margin: 20px 0 24px 0 !important;
    border-radius: 4px !important;
    border-right: none !important;
    border-top: none !important;
    border-bottom: none !important;
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    box-shadow: none !important;
    quotes: none !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}
#live-blog .live-blog__blockquote::before,
#live-blog .live-blog__blockquote::after {
    content: none !important;
    display: none !important;
}
#live-blog .live-blog__blockquote p {
    margin: 0 0 8px 0 !important;
    padding: 0 !important;
    color: #065f46 !important;
    font-size: 15px !important;
    line-height: 1.6 !important;
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    font-weight: 400 !important;
    font-style: normal !important;
    text-align: left !important;
    border: none !important;
    background: transparent !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    text-decoration: none !important;
    word-spacing: normal !important;
}
#live-blog .live-blog__blockquote p:last-child {
    margin-bottom: 0 !important;
}
#live-blog .live-blog__blockquote p::before,
#live-blog .live-blog__blockquote p::after {
    content: none !important;
    display: none !important;
}

/* Font style variants */
#live-blog .live-blog__blockquote--bold p,
#live-blog .live-blog__blockquote--bold li {
    font-weight: 700 !important;
    font-style: normal !important;
}
#live-blog .live-blog__blockquote--italic p,
#live-blog .live-blog__blockquote--italic li {
    font-style: italic !important;
    font-weight: 400 !important;
}
#live-blog .live-blog__blockquote--normal p,
#live-blog .live-blog__blockquote--normal li {
    font-style: normal !important;
    font-weight: 400 !important;
}

/* Bullet list with green dots */
#live-blog .live-blog__blockquote-list {
    list-style: none !important;
    margin: 8px 0 0 0 !important;
    padding: 0 0 0 20px !important;
}
#live-blog .live-blog__blockquote-list li {
    position: relative !important;
    color: #065f46 !important;
    font-size: 15px !important;
    line-height: 1.6 !important;
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    margin-bottom: 4px !important;
    padding-left: 0 !important;
}
#live-blog .live-blog__blockquote-list li::before {
    content: "" !important;
    position: absolute !important;
    left: -16px !important;
    top: 0.55em !important;
    width: 8px !important;
    height: 8px !important;
    background: #10b981 !important;
    border-radius: 50% !important;
    display: block !important;
}

/* Color variants: Red */
#live-blog .live-blog__blockquote--red {
    border-left-color: #e11d48 !important;
    background: #fef2f2 !important;
}
#live-blog .live-blog__blockquote--red p,
#live-blog .live-blog__blockquote--red li { color: #9f1239 !important; }
#live-blog .live-blog__blockquote--red .live-blog__blockquote-list li::before { background: #e11d48 !important; }

/* Color variants: Blue */
#live-blog .live-blog__blockquote--blue {
    border-left-color: #2563eb !important;
    background: #eff6ff !important;
}
#live-blog .live-blog__blockquote--blue p,
#live-blog .live-blog__blockquote--blue li { color: #1e3a8a !important; }
#live-blog .live-blog__blockquote--blue .live-blog__blockquote-list li::before { background: #2563eb !important; }

/* Color variants: Custom (uses CSS variables) */
#live-blog .live-blog__blockquote--custom {
    border-left-color: var(--bq-border, #10b981) !important;
    background: var(--bq-bg, #ecfdf5) !important;
}
#live-blog .live-blog__blockquote--custom p,
#live-blog .live-blog__blockquote--custom li { color: var(--bq-text, #065f46) !important; }
#live-blog .live-blog__blockquote--custom .live-blog__blockquote-list li::before { background: var(--bq-border, #10b981) !important; }


.live-blog__timeline{
    --tl-x: 10px;
    position: relative;
    margin: 24px 0 0 0;
    padding-left: 0;
    --line-start: calc(0.6em + 6px); /* Start from center of first pulsating dot (12px height) */
}

/* Timeline line - green vertical line */
.live-blog__timeline:before{
    content:"";
    position:absolute;
    left:var(--tl-x);
    top: var(--line-start);
    bottom:0;
    width:1px;
    background:#d1d5db;
}

/* Items layout - single column with circle on the left */
.live-blog__item {
    position: relative;
    margin: 0 0 32px 0;
    padding-left: 40px;
}

/* Hide line below last item's dot */
.live-blog__item:last-child::after {
    content: "";
    position: absolute;
    left: var(--tl-x);
    top: calc(0.6em + 10px); /* Start from center of last dot */
    bottom: 0;
    width: 1px;
    background: #fff;
    z-index: 1;
}

/* Tick per new parameters */



/* Latest update tick (bigger + dark red) */



/* Date label - above the card */
.live-blog__metaout {
    display: block;
    color: #5a5a5a;
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 10px 0;
    letter-spacing: -0.01em;
}

/* Card - light background */
.live-blog__card{
    background:#fdfdfd;
    border:1px solid #e5e7eb;
    border-radius:6px;
    padding:18px 20px;
}
.live-blog__meta{font-size:.875rem;color:#ff0000;margin:0 0 10px}
.live-blog__title{font-weight:700;margin:0 0 12px 0; font-size: 18px; color:#111827; line-height: 1.4;}


.live-blog__body{line-height:1.55; font-size: 15px;}

.live-blog__image{max-width:100%;height:auto;border-radius:10px;margin:8px 0;display:block}
.live-blog__status{margin-top:8px;font-size:.875rem;opacity:.8}

/* Polling indicator */
.live-blog__poll-indicator{
  display:flex;align-items:center;gap:6px;
  margin-top:12px;padding:8px 14px;
  font-size:.8rem;font-weight:600;color:#374151;
  background:#f3f4f6;border:1px solid #e5e7eb;border-radius:8px;
  width:fit-content;
}
.lbs-poll-dot{width:8px;height:8px;border-radius:50%;display:inline-block;flex-shrink:0}
.lbs-poll-dot--on{background:#10b981;box-shadow:0 0 0 3px rgba(16,185,129,.25);animation:poll-blink 2s infinite}
.lbs-poll-dot--off{background:#9ca3af}
@keyframes poll-blink{0%,100%{opacity:1}50%{opacity:.4}}


/* Stronger specificity to override theme styles */
#live-blog .live-blog__title{ font-size: 17px !important; }
#live-blog .live-blog__body{ font-size: 15px !important; line-height: 1.6; }
#live-blog .live-blog__body p{ font-size: inherit !important; line-height: inherit; }


/* Default ticks: solid green circle */
#live-blog .live-blog__tick{
  position:absolute;
  left: calc(var(--tl-x) - 5px);
  top: 0.6em;
  width: 10px;
  height: 10px;
  background: #d1d5db;
  border: 2px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px #d1d5db;
  z-index: 2;
}

/* Latest tick ONLY: red pulsating with expanding ring */
#live-blog .live-blog__item.is-latest .live-blog__tick{
  width: 12px;
  height: 12px;
  background: #ef4444;
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 1px #ef4444;
  animation: tick-pulse 2s infinite ease-in-out;
}

@keyframes tick-pulse {
  0% { 
    box-shadow: 0 0 0 2px #ffffff, 0 0 0 3px #ef4444, 0 0 0 0 rgba(239, 68, 68, 0.7);
  }
  50% { 
    box-shadow: 0 0 0 2px #ffffff, 0 0 0 3px #ef4444, 0 0 0 10px rgba(239, 68, 68, 0);
  }
  100% { 
    box-shadow: 0 0 0 2px #ffffff, 0 0 0 3px #ef4444, 0 0 0 0 rgba(239, 68, 68, 0);
  }
}


.live-blog__featured-image {
    margin-bottom: 2rem;
    border-radius: 0.5rem;
    overflow: hidden;
}
.live-blog__featured-img {
    width: 100%;
    height: auto;
    display: block;
}

/* Live Badge on Thumbnails */
.live-thumbnail-wrapper {
    position: relative !important;
    display: inline-block;
    width: 100%;
    overflow: visible !important;
}
/* Force JNews thumbnail containers to allow badge overflow */
.jeg_thumb .thumbnail-container,
.jeg_thumb .animate-lazy,
.jeg_thumb .size-500,
.jeg_thumb a {
    overflow: visible !important;
}
.live-badge-overlay {
    position: absolute !important;
    top: var(--lbs-badge-top, auto) !important;
    bottom: var(--lbs-badge-bottom, 10px) !important;
    left: var(--lbs-badge-left, 10px) !important;
    right: var(--lbs-badge-right, auto) !important;
    z-index: 999 !important;
    pointer-events: none;
    overflow: visible !important;
}
.live-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #dc2626;
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 5px 12px;
    border-radius: 4px;
    line-height: 1;
    white-space: nowrap;
}
.live-badge-pill__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
    display: inline-block;
    flex-shrink: 0;
    animation: lbs-pill-pulse 1.5s ease-in-out infinite;
}
@keyframes lbs-pill-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}
.lbs-live .post-thumbnail,
.lbs-live .entry-thumbnail,
.lbs-live a.post-thumbnail,
.lbs-live figure.wp-block-post-featured-image,
.lbs-live .wp-block-post-featured-image,
.lbs-live .thumbnail,
.lbs-live .news-thumb,
.lbs-live .jeg_thumb,
.lbs-live .jeg_post_thumbnail,
.lbs-live .jeg_featured,
.lbs-live .jeg_thumb_wrapper,
.lbs-live [class*="jeg_thumb"] {
    position: relative;
}
/* Fallback CSS ::after — mostrato SOLO se il JS non ha iniettato .live-badge-overlay */
.lbs-live .jeg_thumb:not(:has(.live-badge-overlay))::after,
.lbs-live .jeg_post_thumbnail:not(:has(.live-badge-overlay))::after,
.lbs-live .post-thumbnail:not(:has(.live-badge-overlay))::after,
.lbs-live .thumbnail:not(:has(.live-badge-overlay))::after,
.lbs-live figure.wp-block-post-featured-image:not(:has(.live-badge-overlay))::after,
.lbs-live [class*="jeg_thumb"]:not(:has(.live-badge-overlay))::after {
    content: "● IN DIRETTA";
    position: absolute;
    top: var(--lbs-badge-top, auto);
    bottom: var(--lbs-badge-bottom, 10px);
    left: var(--lbs-badge-left, 10px);
    right: var(--lbs-badge-right, auto);
    background: #dc2626;
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 5px 12px;
    border-radius: 4px;
    line-height: 1;
    white-space: nowrap;
    z-index: 999;
    pointer-events: none;
}
/* Fallback per articoli .lbs-live senza alcun container thumbnail trovato dal JS */
.lbs-live:not(:has(.live-badge-overlay)):not(:has(.jeg_thumb)):not(:has(.post-thumbnail)):not(:has(.thumbnail))::before {
    content: "● IN DIRETTA";
    position: absolute;
    top: var(--lbs-badge-top, auto);
    bottom: var(--lbs-badge-bottom, 10px);
    left: var(--lbs-badge-left, 10px);
    right: var(--lbs-badge-right, auto);
    background: #dc2626;
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 5px 12px;
    border-radius: 4px;
    line-height: 1;
    white-space: nowrap;
    z-index: 999;
    pointer-events: none;
}
.lbs-live:not(:has(.live-badge-overlay)):not(:has(.jeg_thumb)):not(:has(.post-thumbnail)):not(:has(.thumbnail)) {
    position: relative;
}

/* Badge inline vicino alla data nei listing */
.lbs-inline-live{
    display:inline-flex;align-items:center;gap:4px;
    background:#dc2626;color:#fff;
    font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
    font-size:0.6rem;font-weight:700;text-transform:uppercase;
    letter-spacing:0.08em;padding:3px 8px;border-radius:3px;
    line-height:1;white-space:nowrap;vertical-align:middle;
}
.lbs-inline-live::before{
    content:"";width:6px;height:6px;border-radius:50%;
    background:#fff;display:inline-block;flex-shrink:0;
    animation:lbs-pill-pulse 1.5s ease-in-out infinite;
}
.lbs-inline-before{margin-right:6px}
.lbs-inline-after{margin-left:6px}

/* Scritta "IN AGGIORNAMENTO" per la home */
.lbs-live-text{display:inline-block;color:#ff0000;font-weight:700;font-size:0.9em;text-transform:uppercase;letter-spacing:0.5px;margin-bottom:8px}

/* Scritta in home, allineata a sinistra sotto la data */
.home .lbs-live .posted-on, .blog .lbs-live .posted-on, .archive .lbs-live .posted-on{display:block;text-align:left}
.home .lbs-live .posted-on::after, .blog .lbs-live .posted-on::after, .archive .lbs-live .posted-on::after{
  content:"IN AGGIORNAMENTO";
  display:block;
  margin-top:4px;
  color:#ff0000;font-weight:700;font-size:0.85em;text-transform:uppercase;letter-spacing:.5px;white-space:normal;margin-left:0;text-align:left
}
/* Fallback: se il tema non ha .posted-on, prova su .entry-meta */
.home .lbs-live .entry-meta, .blog .lbs-live .entry-meta, .archive .lbs-live .entry-meta{display:block;text-align:left}
.home .lbs-live .entry-meta::after, .blog .lbs-live .entry-meta::after, .archive .lbs-live .entry-meta::after{
  content:"IN AGGIORNAMENTO";
  display:block;
  margin-top:4px;
  color:#ff0000;font-weight:700;font-size:0.85em;text-transform:uppercase;letter-spacing:.5px;white-space:normal;margin-left:0;text-align:left
}

/* Gutenberg block themes: aggiungi la scritta dopo il blocco data */
.home .lbs-live .wp-block-post-date::after,
.blog .lbs-live .wp-block-post-date::after,
.archive .lbs-live .wp-block-post-date::after{
  content:"IN AGGIORNAMENTO";
  color:#ff0000;font-weight:700;font-size:0.85em;text-transform:uppercase;letter-spacing:.5px;display:block;margin-top:4px;text-align:left;margin-left:0
}

/* Inserisci la scritta all'inizio dell'excerpt (sopra il paragrafo) */
.home .lbs-live .wp-block-post-excerpt__excerpt::before,
.blog .lbs-live .wp-block-post-excerpt__excerpt::before,
.archive .lbs-live .wp-block-post-excerpt__excerpt::before,
.home .lbs-live .entry-summary p:first-child::before,
.blog .lbs-live .entry-summary p:first-child::before,
.archive .lbs-live .entry-summary p:first-child::before{
  content:"IN AGGIORNAMENTO";
  color:#ff0000;font-weight:700;font-size:0.9em;text-transform:uppercase;letter-spacing:.5px;display:block;margin-bottom:6px
}

/* Fallback: aggiungi la scritta sotto la data per markup generici con <time> */
.home .lbs-live time.entry-date::after,
.blog .lbs-live time.entry-date::after,
.archive .lbs-live time.entry-date::after,
.home .lbs-live time::after,
.blog .lbs-live time::after,
.archive .lbs-live time::after{
  content:"IN AGGIORNAMENTO";
  display:block;
  margin-top:4px;
  color:#ff0000;font-weight:700;font-size:0.85em;text-transform:uppercase;letter-spacing:.5px;text-align:left;margin-left:0
}

/* Fallback excerpt per builder (GenerateBlocks ecc.): inserisci sopra il primo paragrafo del teaser */
.home .lbs-live .gb-text p:first-child::before,
.blog .lbs-live .gb-text p:first-child::before,
.archive .lbs-live .gb-text p:first-child::before{
  content:"IN AGGIORNAMENTO";
  display:block;
  margin-bottom:6px;
  color:#ff0000;font-weight:700;font-size:0.9em;text-transform:uppercase;letter-spacing:.5px
}

/* Toast notification */
.lbs-toast{
  position:fixed;bottom:24px;left:50%;transform:translateX(-50%) translateY(20px);
  display:flex;align-items:center;gap:8px;
  padding:12px 20px;
  background:#111827;color:#fff;
  font-size:.875rem;font-weight:600;
  border-radius:10px;
  box-shadow:0 8px 24px rgba(0,0,0,.2);
  opacity:0;transition:opacity .3s,transform .3s;
  z-index:9999;pointer-events:none;
  white-space:nowrap;
}
.lbs-toast--visible{opacity:1;transform:translateX(-50%) translateY(0);pointer-events:auto}
.lbs-toast__dot{width:8px;height:8px;border-radius:50%;background:#10b981;flex-shrink:0;animation:poll-blink 1.5s infinite}

/* Liveblog badges (breaking / developing) */
.liveblog-badge{
  display:inline-block;
  padding:2px 8px;
  border-radius:3px;
  font-size:11px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:0.5px;
  margin-bottom:6px;
  line-height:1.4;
}
.liveblog-badge--breaking{
  background-color:#dc2626;
  color:#ffffff;
}
.liveblog-badge--developing{
  background-color:#f59e0b;
  color:#ffffff;
}

/* Mini-timeline updates in listings (Al Jazeera style) */
.lbs-mini-updates{
  margin-top:12px;
  padding:0;
  border-top:1px solid #e5e7eb;
}
.lbs-mini-updates__header{
  display:flex;align-items:center;gap:6px;
  color:#e11d48;font-weight:700;font-size:0.84em;
  text-transform:uppercase;letter-spacing:0.5px;
  padding:10px 0 6px 0;
}
.lbs-mini-updates__dot{
  width:12px;height:12px;border-radius:50%;
  background:#ef4444;display:inline-block;
  animation:blink 1.2s ease-in-out infinite;
  flex-shrink:0;
  box-shadow:0 0 8px 3px rgba(239,68,68,0.6);
  border:1.5px solid rgba(255,255,255,0.5);
}
.lbs-mini-updates__list{
  list-style:none !important;
  margin:0 !important;padding:0 !important;
}
.lbs-mini-updates__item{
  display:flex;align-items:baseline;gap:8px;
  padding:5px 0;font-size:0.89em;line-height:1.4;
  border-bottom:none;
}
.lbs-mini-updates__item-dot{
  width:8px;height:8px;min-width:8px;border-radius:50%;
  background:#ef4444;display:inline-block;
  margin-top:0.35em;flex-shrink:0;
  box-shadow:0 0 6px 2px rgba(239,68,68,0.55);
}
.lbs-mini-updates__time{
  color:#6b7280;font-size:0.94em;white-space:nowrap;
  min-width:60px;
}
.lbs-mini-updates__title{
  color:#111827;text-decoration:none;font-weight:500;
}
.lbs-mini-updates__title:hover{
  color:#e11d48;text-decoration:underline;
}

/* ==========================================
   OVERLAY style: card bianca stile Google/BBC
   ========================================== */
.lbs-mini-updates--overlay{
  margin-top: 0;
  padding:16px 20px 12px;
  background:#ffffff !important;
  border-radius:10px;
  box-shadow:0 4px 20px rgba(0,0,0,0.12), 0 1px 4px rgba(0,0,0,0.08);
  border-top:none;
  position:relative;
  z-index:10;
  margin-left:16px;
  margin-right:16px;
}
.lbs-mini-updates--overlay .lbs-mini-updates__header{
  color:#dc2626;
  font-size:0.82em;
  letter-spacing:0.08em;
  padding:0 0 10px 0;
  border-bottom:1px solid #f3f4f6;
  margin-bottom:6px;
}
.lbs-mini-updates--overlay .lbs-mini-updates__dot{
  width:10px;height:10px;
  box-shadow:0 0 6px 2px rgba(220,38,38,0.5);
}
.lbs-mini-updates--overlay .lbs-mini-updates__list{
  display:flex !important;
  flex-direction:column !important;
  overflow:visible !important;
}
.lbs-mini-updates--overlay .lbs-mini-updates__item{
  display:flex;align-items:baseline;gap:8px;
  padding:6px 0;font-size:0.93em;line-height:1.4;
  flex:none !important;
  scroll-snap-align:unset !important;
  background:transparent !important;
  border-radius:0 !important;
  min-width:0;
}
.lbs-mini-updates--overlay .lbs-mini-updates__item + .lbs-mini-updates__item{
  border-top:1px solid #f9fafb;
}
.lbs-mini-updates--overlay .lbs-mini-updates__item-dot{
  width:8px;height:8px;min-width:8px;
  background:#ef4444;
  box-shadow:none;
  margin-top:0.35em;
}
.lbs-mini-updates--overlay .lbs-mini-updates__time{
  color:#9ca3af;font-size:0.96em;
  min-width:55px;font-weight:400;
}
.lbs-mini-updates--overlay .lbs-mini-updates__title{
  color:#111827;font-weight:600;font-size:1.03em;
}
.lbs-mini-updates--overlay .lbs-mini-updates__title:hover{
  color:#dc2626;
}

/* Overlay: DOPO hero/primo piano — si sovrappone all'immagine dall'esterno */
.jeg_postbig + .lbs-mini-updates--overlay,
.jeg_heroblock + .lbs-mini-updates--overlay,
[class*="jeg_hero"] + .lbs-mini-updates--overlay{
  background:#ffffff !important;
  box-shadow:0 4px 8px rgba(0,0,0,0.12), 0 1px 4px rgba(0,0,0,0.08);
  margin-top: var(--lbs-overlay-offset, -60px);
  margin-bottom: 33px;
  margin-left:20px;
  margin-right:20px;
  position: relative;
  z-index: 10;
  transform: none;
}
/* Fallback: overlay ancora dentro hero (vecchio markup) */
.jeg_postbig .lbs-mini-updates--overlay,
.jeg_heroblock .lbs-mini-updates--overlay,
[class*="jeg_hero"] .lbs-mini-updates--overlay{
  background:#ffffff !important;
  box-shadow:0 4px 8px rgba(0,0,0,0.12), 0 1px 4px rgba(0,0,0,0.08);
  margin-top: 0;
  transform: translateY(var(--lbs-overlay-offset, -60px));
  margin-bottom: var(--lbs-overlay-offset, -60px);
  margin-left:20px;
  margin-right:20px;
}
/* Container hero deve avere position relative per z-index overlay */
.jeg_postbig,
.jeg_heroblock,
[class*="jeg_hero"]{
  position:relative;
  z-index:1;
  overflow:visible !important;
}
.jeg_postbig .jeg_thumb,
.jeg_heroblock .jeg_thumb,
[class*="jeg_hero"] .jeg_thumb{
  position:relative;
  overflow:visible !important;
}
/* Force overflow visible on ALL parent containers that may clip the overlay */
.jeg_postbig .jeg_inner_content,
.jeg_heroblock .jeg_inner_content,
[class*="jeg_hero"] .jeg_inner_content,
.jeg_postbig .jeg_thumb_wrapper,
.jeg_heroblock .jeg_thumb_wrapper,
[class*="jeg_hero"] .jeg_thumb_wrapper,
.jeg_postbig .thumbnail-container,
.jeg_heroblock .thumbnail-container,
[class*="jeg_hero"] .thumbnail-container,
.jeg_postbig .jeg_featured,
.jeg_heroblock .jeg_featured,
[class*="jeg_hero"] .jeg_featured{
  overflow:visible !important;
}

/* ==========================================
   GLOBAL hero title/badge fixes — prevent JNews
   from truncating at ANY viewport width
   ========================================== */

/* Force overflow visible ONLY on specific containers that need it for badge/overlay */
/* DO NOT use wildcard * — it breaks hero layout and causes content to overflow onto news below */

/* Titolo hero: visibile al 100%, no troncamento a QUALSIASI risoluzione */
.jeg_postbig .jeg_post_title,
.jeg_heroblock .jeg_post_title,
[class*="jeg_hero"] .jeg_post_title,
.jeg_postbig .jeg_post_title a,
.jeg_heroblock .jeg_post_title a,
[class*="jeg_hero"] .jeg_post_title a{
  display: block !important;
  overflow: visible !important;
  -webkit-line-clamp: unset !important;
  -webkit-box-orient: unset !important;
  max-height: none !important;
  height: auto !important;
  text-overflow: unset !important;
  white-space: normal !important;
  word-break: break-word !important;
}

/* Post info: overflow visibile sempre */
.jeg_postbig .jeg_post_info,
.jeg_heroblock .jeg_post_info,
[class*="jeg_hero"] .jeg_post_info{
  overflow: visible !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-end !important;
}

/* Titolo e meta sopra il gradient */
.jeg_postbig .jeg_post_title,
.jeg_heroblock .jeg_post_title,
[class*="jeg_hero"] .jeg_post_title,
.jeg_postbig .jeg_post_meta,
.jeg_heroblock .jeg_post_meta,
[class*="jeg_hero"] .jeg_post_meta{
  position: relative !important;
  z-index: 2 !important;
}

/* Mini-timeline su sfondo scuro (Primo Piano / Hero con overlay) — CLASSIC only */
.jeg_postbig .lbs-mini-updates--classic,
.jeg_heroblock .lbs-mini-updates--classic,
[class*="jeg_hero"] .lbs-mini-updates--classic{
  border-top-color:rgba(255,255,255,0.25);
}
.jeg_postbig .lbs-mini-updates--classic .lbs-mini-updates__header,
.jeg_heroblock .lbs-mini-updates--classic .lbs-mini-updates__header,
[class*="jeg_hero"] .lbs-mini-updates--classic .lbs-mini-updates__header{
  color:#fff;
}
.jeg_postbig .lbs-mini-updates--classic .lbs-mini-updates__time,
.jeg_heroblock .lbs-mini-updates--classic .lbs-mini-updates__time,
[class*="jeg_hero"] .lbs-mini-updates--classic .lbs-mini-updates__time{
  color:rgba(255,255,255,0.7);
}
.jeg_postbig .lbs-mini-updates--classic .lbs-mini-updates__title,
.jeg_heroblock .lbs-mini-updates--classic .lbs-mini-updates__title,
[class*="jeg_hero"] .lbs-mini-updates--classic .lbs-mini-updates__title{
  color:#fff;
}
.jeg_postbig .lbs-mini-updates--classic .lbs-mini-updates__title:hover,
.jeg_heroblock .lbs-mini-updates--classic .lbs-mini-updates__title:hover,
[class*="jeg_hero"] .lbs-mini-updates--classic .lbs-mini-updates__title:hover{
  color:#fca5a5;
}

/* Lazy load: hidden items */
.lbs-lazy-hidden{display:none !important}

/* Fade-in animation for revealed items */
@keyframes lbs-fade-in{
  from{opacity:0;transform:translateY(12px)}
  to{opacity:1;transform:translateY(0)}
}
.lbs-lazy-reveal{animation:lbs-fade-in .4s ease-out both}

/* Lazy load sentinel / spinner */
.lbs-lazy-sentinel{
  text-align:center;padding:24px 0;color:#6b7280;font-size:.875rem;
  display:flex;align-items:center;justify-content:center;gap:8px;
}
.lbs-lazy-spinner{
  width:20px;height:20px;border:2px solid #e5e7eb;border-top-color:#10b981;
  border-radius:50%;display:inline-block;animation:lbs-spin .6s linear infinite;
}
@keyframes lbs-spin{to{transform:rotate(360deg)}}

/* ========================================
   RESPONSIVE: Tablet (≤768px)
   ======================================== */
@media (max-width: 768px){
  /* Live Blog Timeline */
  .live-blog__timeline{
    --tl-x: 8px;
  }
  .live-blog__item{
    padding-left: 32px;
    margin-bottom: 24px;
  }
  .live-blog__metaout{
    font-size: 0.875rem;
  }
  #live-blog .live-blog__tick{
    left: calc(var(--tl-x) - 4px);
    width: 8px;
    height: 8px;
  }
  .live-blog__card{
    padding: 14px 16px;
  }
  .live-blog__title{
    font-size: 16px !important;
  }
  .live-blog__body{
    font-size: 14px !important;
  }
  .live-blog__header{
    padding: 8px 12px;
    font-size: 0.9rem;
  }

  /* Mini-timeline in listings */
  .lbs-mini-updates{
    margin-top: 10px;
  }
  .lbs-mini-updates__header{
    font-size: 0.73em;
    padding: 8px 0 4px 0;
  }
  .lbs-mini-updates__item{
    padding: 4px 0;
    font-size: 0.81em;
    gap: 6px;
  }
  .lbs-mini-updates__time{
    min-width: 42px;
    font-size: 0.86em;
  }
  .lbs-mini-updates__title{
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.35;
  }
  .lbs-mini-updates__item-dot{
    width: 7px;
    height: 7px;
    min-width: 7px;
    margin-top: 0.4em;
    box-shadow:0 0 4px 1px rgba(220,38,38,0.4);
  }
}

/* ========================================
   RESPONSIVE: Mobile (≤480px)
   ======================================== */
@media (max-width: 480px){
  /* Live Blog Timeline - extra compact */
  .live-blog__timeline{
    --tl-x: 6px;
    margin-top: 16px;
  }
  .live-blog__item{
    padding-left: 26px;
    margin-bottom: 20px;
  }
  .live-blog__metaout{
    font-size: 0.8rem;
    margin-bottom: 6px;
  }
  #live-blog .live-blog__tick{
    left: calc(var(--tl-x) - 3px);
    width: 6px;
    height: 6px;
  }
  #live-blog .live-blog__item.is-latest .live-blog__tick{
    width: 8px;
    height: 8px;
  }
  .live-blog__card{
    padding: 12px 14px;
    border-radius: 4px;
  }
  .live-blog__title{
    font-size: 15px !important;
    line-height: 1.35 !important;
    margin-bottom: 8px !important;
  }
  .live-blog__body{
    font-size: 13px !important;
    line-height: 1.5 !important;
  }
  .live-blog__meta{
    font-size: 0.8rem;
    margin-bottom: 6px;
  }
  .live-blog__header{
    padding: 7px 10px;
    font-size: 0.85rem;
    border-radius: 8px;
  }
  .live-blog__image{
    border-radius: 6px;
    margin: 6px 0;
  }

  /* Mini-timeline - mobile optimized: horizontal swipe */
  .lbs-mini-updates{
    margin-top: 8px;
    padding-top: 0;
    border-top: none;
  }
  .lbs-mini-updates__header{
    font-size: 0.66em;
    padding: 6px 0 3px 0;
    gap: 4px;
    letter-spacing: 0.3px;
  }
  .lbs-mini-updates__dot{
    width: 8px;
    height: 8px;
    box-shadow:0 0 5px 2px rgba(220,38,38,0.5);
  }
  .lbs-mini-updates__list{
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 10px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 4px !important;
  }
  .lbs-mini-updates__list::-webkit-scrollbar{
    display: none;
  }
  .lbs-mini-updates__item{
    padding: 6px 10px;
    font-size: 0.76em;
    gap: 5px;
    align-items: flex-start;
    flex: 0 0 75%;
    scroll-snap-align: start;
    background: rgba(0,0,0,0.04);
    border-radius: 6px;
    min-width: 0;
    box-sizing: border-box;
  }
  /* Limit to 3 items on small screens */
  .lbs-mini-updates__item:nth-child(n+4){
    display: none;
  }
  .lbs-mini-updates__item-dot{
    width: 6px;
    height: 6px;
    min-width: 6px;
    margin-top: 0.45em;
    box-shadow:0 0 3px 1px rgba(220,38,38,0.45);
  }
  .lbs-mini-updates__time{
    min-width: 36px;
    font-size: 0.83em;
    flex-shrink: 0;
  }
  .lbs-mini-updates__title{
    display: block;
    overflow: visible;
    white-space: normal;
    line-height: 1.3;
    word-break: break-word;
  }

  /* Overlay style: keep vertical on mobile, no horizontal swipe */
  .lbs-mini-updates--overlay{
    margin-top: 0;
    transform: none;
    margin-bottom: 12px;
    margin-left: 10px;
    margin-right: 10px;
    padding: 12px 14px 8px;
    border-top: none;
  }
  .lbs-mini-updates--overlay .lbs-mini-updates__list{
    display: flex !important;
    flex-direction: column !important;
    overflow: visible !important;
    scroll-snap-type: none !important;
    gap: 0 !important;
  }
  .lbs-mini-updates--overlay .lbs-mini-updates__item{
    flex: none !important;
    scroll-snap-align: unset !important;
    background: transparent !important;
    border-radius: 0 !important;
    padding: 5px 0;
    font-size: 0.82em;
  }
  .lbs-mini-updates--overlay .lbs-mini-updates__item:nth-child(n+4){
    display: flex;
  }
  .lbs-mini-updates--overlay .lbs-mini-updates__title{
    -webkit-line-clamp: 1;
  }

  /* === Hero / Primo Piano mobile — layout ottimizzato per iPhone 16 Pro (390px) === */

  /* CRITICAL: force overflow visible on ALL hero ancestors to prevent title clipping */
  .jeg_postbig,
  .jeg_heroblock,
  [class*="jeg_hero"],
  .jeg_postbig .jeg_thumb,
  .jeg_heroblock .jeg_thumb,
  [class*="jeg_hero"] .jeg_thumb,
  .jeg_postbig .jeg_thumb a,
  .jeg_heroblock .jeg_thumb a,
  [class*="jeg_hero"] .jeg_thumb a,
  .jeg_postbig .jeg_inner_content,
  .jeg_heroblock .jeg_inner_content,
  [class*="jeg_hero"] .jeg_inner_content{
    overflow: visible !important;
  }

  /* Post info: full height, gradient covers entire image, content at bottom */
  .jeg_postbig .jeg_post_info,
  .jeg_heroblock .jeg_post_info,
  [class*="jeg_hero"] .jeg_post_info{
    padding: 0 10px 6px 10px !important;
    min-height: auto !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
    overflow: hidden !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 2 !important;
  }

  /* Gradient overlay: full image coverage */
  .jeg_postbig .jeg_thumb .jeg_post_info::before,
  .jeg_heroblock .jeg_thumb .jeg_post_info::before,
  [class*="jeg_hero"] .jeg_thumb .jeg_post_info::before{
    content: '' !important;
    position: absolute !important;
    inset: 0 !important;
    background: linear-gradient(0deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.7) 40%, rgba(0,0,0,0.3) 70%, transparent 100%) !important;
    pointer-events: none !important;
    z-index: 1 !important;
  }

  /* Ensure all post_info children are above gradient */
  .jeg_postbig .jeg_post_info > *,
  .jeg_heroblock .jeg_post_info > *,
  [class*="jeg_hero"] .jeg_post_info > *{
    position: relative !important;
    z-index: 2 !important;
  }

  /* Categoria badge (es. ESTERI) — nascosta su mobile per risparmiare spazio */
  .jeg_postbig .jeg_post_category,
  .jeg_heroblock .jeg_post_category,
  [class*="jeg_hero"] .jeg_post_category{
    display: none !important;
  }

  /* Titolo: COMPATTO, font piccolo per stare dentro l'immagine */
  .jeg_postbig .jeg_post_title,
  .jeg_heroblock .jeg_post_title,
  [class*="jeg_hero"] .jeg_post_title,
  .jeg_postbig .jeg_post_title a,
  .jeg_heroblock .jeg_post_title a,
  [class*="jeg_hero"] .jeg_post_title a{
    font-size: 0.85rem !important;
    line-height: 1.2 !important;
    padding: 0 !important;
    margin: 0 0 3px 0 !important;
    order: 1 !important;
    display: block !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    max-height: calc(0.85rem * 1.2 * 3) !important;
    text-overflow: ellipsis !important;
    white-space: normal !important;
    word-break: break-word !important;
  }

  /* Autore/meta: compatto */
  .jeg_postbig .jeg_post_meta,
  .jeg_heroblock .jeg_post_meta,
  [class*="jeg_hero"] .jeg_post_meta{
    font-size: 0.65em !important;
    margin: 0 0 3px 0 !important;
    order: 2 !important;
  }

  /* Badge LIVE: inline, compatto */
  .jeg_postbig .live-badge-overlay,
  .jeg_heroblock .live-badge-overlay,
  [class*="jeg_hero"] .live-badge-overlay{
    position: relative !important;
    top: auto !important;
    left: auto !important;
    display: inline-block !important;
    margin-bottom: 3px !important;
    overflow: visible !important;
    order: 3 !important;
  }
  .jeg_postbig .live-badge-pill,
  .jeg_heroblock .live-badge-pill,
  [class*="jeg_hero"] .live-badge-pill{
    font-size: 0.55rem !important;
    padding: 3px 8px !important;
  }

  /* Mini-timeline CLASSIC dentro hero: ULTRA compatta */
  .jeg_postbig .lbs-mini-updates--classic,
  .jeg_heroblock .lbs-mini-updates--classic,
  [class*="jeg_hero"] .lbs-mini-updates--classic{
    order: 4 !important;
    margin-top: 2px !important;
    padding: 0 0 4px 0 !important;
    overflow: visible !important;
  }
  .jeg_postbig .lbs-mini-updates--classic .lbs-mini-updates__header,
  .jeg_heroblock .lbs-mini-updates--classic .lbs-mini-updates__header,
  [class*="jeg_hero"] .lbs-mini-updates--classic .lbs-mini-updates__header{
    font-size: 0.6em !important;
    padding: 2px 0 !important;
  }
  .jeg_postbig .lbs-mini-updates--classic .lbs-mini-updates__list,
  .jeg_heroblock .lbs-mini-updates--classic .lbs-mini-updates__list,
  [class*="jeg_hero"] .lbs-mini-updates--classic .lbs-mini-updates__list{
    gap: 6px !important;
  }
  .jeg_postbig .lbs-mini-updates--classic .lbs-mini-updates__item,
  .jeg_heroblock .lbs-mini-updates--classic .lbs-mini-updates__item,
  [class*="jeg_hero"] .lbs-mini-updates--classic .lbs-mini-updates__item{
    padding: 4px 6px !important;
    font-size: 0.65em !important;
    background: rgba(0,0,0,0.5) !important;
    backdrop-filter: blur(6px) !important;
    -webkit-backdrop-filter: blur(6px) !important;
    border: 1px solid rgba(255,255,255,0.15) !important;
    border-radius: 5px !important;
    flex: 0 0 65% !important;
  }
  .jeg_postbig .lbs-mini-updates--classic .lbs-mini-updates__time,
  .jeg_heroblock .lbs-mini-updates--classic .lbs-mini-updates__time,
  [class*="jeg_hero"] .lbs-mini-updates--classic .lbs-mini-updates__time{
    color: rgba(255,255,255,0.9) !important;
    font-weight: 700 !important;
    min-width: 34px !important;
    font-size: 0.85em !important;
  }
  .jeg_postbig .lbs-mini-updates--classic .lbs-mini-updates__title,
  .jeg_heroblock .lbs-mini-updates--classic .lbs-mini-updates__title,
  [class*="jeg_hero"] .lbs-mini-updates--classic .lbs-mini-updates__title{
    -webkit-line-clamp: 1 !important;
    line-height: 1.25 !important;
    font-size: 0.85em !important;
    color: #fff !important;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5) !important;
  }
  .jeg_postbig .lbs-mini-updates--classic .lbs-mini-updates__item-dot,
  .jeg_heroblock .lbs-mini-updates--classic .lbs-mini-updates__item-dot,
  [class*="jeg_hero"] .lbs-mini-updates--classic .lbs-mini-updates__item-dot{
    background: #ff3333 !important;
    width: 6px !important;
    height: 6px !important;
    min-width: 6px !important;
    box-shadow: 0 0 4px 1px rgba(255,51,51,0.55) !important;
  }

  /* Mini-timeline OVERLAY dopo Hero - mobile (nuovo markup: sibling) */
  .jeg_postbig + .lbs-mini-updates--overlay,
  .jeg_heroblock + .lbs-mini-updates--overlay,
  [class*="jeg_hero"] + .lbs-mini-updates--overlay{
    margin-top: var(--lbs-overlay-offset-hero, var(--lbs-overlay-offset, -60px));
    margin-left: 12px;
    margin-right: 12px;
    padding: 10px 12px 8px;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 6px 24px rgba(0,0,0,0.15);
  }
  /* Fallback: overlay dentro Hero - mobile (vecchio markup) */
  .jeg_postbig .lbs-mini-updates--overlay,
  .jeg_heroblock .lbs-mini-updates--overlay,
  [class*="jeg_hero"] .lbs-mini-updates--overlay{
    margin-top: 0;
    transform: translateY(var(--lbs-overlay-offset-hero, var(--lbs-overlay-offset, -60px)));
    margin-bottom: var(--lbs-overlay-offset-hero, var(--lbs-overlay-offset, -60px));
    margin-left: 12px;
    margin-right: 12px;
    padding: 10px 12px 8px;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 6px 24px rgba(0,0,0,0.15);
    overflow: visible;
  }
  .jeg_postbig + .lbs-mini-updates--overlay .lbs-mini-updates__header,
  .jeg_heroblock + .lbs-mini-updates--overlay .lbs-mini-updates__header,
  [class*="jeg_hero"] + .lbs-mini-updates--overlay .lbs-mini-updates__header,
  .jeg_postbig .lbs-mini-updates--overlay .lbs-mini-updates__header,
  .jeg_heroblock .lbs-mini-updates--overlay .lbs-mini-updates__header,
  [class*="jeg_hero"] .lbs-mini-updates--overlay .lbs-mini-updates__header{
    color: #dc2626;
    font-size: 0.65em;
    padding: 0 0 6px 0;
  }
  .jeg_postbig + .lbs-mini-updates--overlay .lbs-mini-updates__time,
  .jeg_heroblock + .lbs-mini-updates--overlay .lbs-mini-updates__time,
  [class*="jeg_hero"] + .lbs-mini-updates--overlay .lbs-mini-updates__time,
  .jeg_postbig .lbs-mini-updates--overlay .lbs-mini-updates__time,
  .jeg_heroblock .lbs-mini-updates--overlay .lbs-mini-updates__time,
  [class*="jeg_hero"] .lbs-mini-updates--overlay .lbs-mini-updates__time{
    color: #9ca3af;
    font-weight: 400;
  }
  .jeg_postbig + .lbs-mini-updates--overlay .lbs-mini-updates__title,
  .jeg_heroblock + .lbs-mini-updates--overlay .lbs-mini-updates__title,
  [class*="jeg_hero"] + .lbs-mini-updates--overlay .lbs-mini-updates__title,
  .jeg_postbig .lbs-mini-updates--overlay .lbs-mini-updates__title,
  .jeg_heroblock .lbs-mini-updates--overlay .lbs-mini-updates__title,
  [class*="jeg_hero"] .lbs-mini-updates--overlay .lbs-mini-updates__title{
    color: #111827;
    text-shadow: none;
    -webkit-line-clamp: 2;
    font-size: 0.88em;
  }
  .jeg_postbig + .lbs-mini-updates--overlay .lbs-mini-updates__item-dot,
  .jeg_heroblock + .lbs-mini-updates--overlay .lbs-mini-updates__item-dot,
  [class*="jeg_hero"] + .lbs-mini-updates--overlay .lbs-mini-updates__item-dot,
  .jeg_postbig .lbs-mini-updates--overlay .lbs-mini-updates__item-dot,
  .jeg_heroblock .lbs-mini-updates--overlay .lbs-mini-updates__item-dot,
  [class*="jeg_hero"] .lbs-mini-updates--overlay .lbs-mini-updates__item-dot{
    background: #ef4444;
    box-shadow: none;
  }


  /* Blockquote summary - mobile */
  #live-blog .live-blog__blockquote{
    padding: 12px 14px !important;
    margin: 14px 0 18px 0 !important;
  }
  #live-blog .live-blog__blockquote p{
    font-size: 13px !important;
    line-height: 1.5 !important;
  }

  /* Polling indicator - mobile */
  .live-blog__poll-indicator{
    padding: 6px 10px;
    font-size: 0.72rem;
  }

  /* Toast - mobile */
  .lbs-toast{
    font-size: 0.8rem;
    padding: 10px 16px;
    bottom: 16px;
    max-width: calc(100vw - 32px);
  }

  /* Lazy sentinel */
  .lbs-lazy-sentinel{
    padding: 16px 0;
    font-size: 0.8rem;
  }

  /* Badge overlay - mobile */
  .live-badge-overlay{
    top: auto !important;
    bottom: 6px !important;
    left: 6px !important;
  }
  .live-badge-pill{
    font-size: 0.6rem;
    padding: 4px 10px;
  }
  .lbs-inline-live{
    font-size: 0.55rem;
    padding: 2px 6px;
  }
}

/* ========================================
   RESPONSIVE: Small phones (≤360px)
   ======================================== */
@media (max-width: 360px){
  .live-blog__item{
    padding-left: 22px;
    margin-bottom: 16px;
  }
  .live-blog__card{
    padding: 10px 12px;
  }
  .live-blog__title{
    font-size: 14px !important;
  }
  .live-blog__body{
    font-size: 12.5px !important;
  }
  .lbs-mini-updates__item{
    font-size: 0.7em;
  }
  .lbs-mini-updates__time{
    min-width: 32px;
  }
  .lbs-mini-updates__title{
    -webkit-line-clamp: 1;
  }

  /* Overlay su schermi ≤360px — margini più stretti, offset ridotto */
  .lbs-mini-updates--overlay{
    margin-left: 6px;
    margin-right: 6px;
    padding: 10px 10px 6px;
    margin-top: 0;
    transform: translateY(max(var(--lbs-overlay-offset, -50px), -40px));
    margin-bottom: max(var(--lbs-overlay-offset, -50px), -40px);
  }
  .lbs-mini-updates--overlay .lbs-mini-updates__item{
    padding: 4px 0;
    font-size: 0.72em;
  }
  .lbs-mini-updates--overlay .lbs-mini-updates__header{
    font-size: 0.68em;
    padding-bottom: 6px;
  }
  /* Nuovo markup: sibling */
  .jeg_postbig + .lbs-mini-updates--overlay,
  .jeg_heroblock + .lbs-mini-updates--overlay,
  [class*="jeg_hero"] + .lbs-mini-updates--overlay{
    margin-left: 8px;
    margin-right: 8px;
    margin-top: max(var(--lbs-overlay-offset-hero, -40px), -35px);
  }
  /* Fallback: dentro hero */
  .jeg_postbig .lbs-mini-updates--overlay,
  .jeg_heroblock .lbs-mini-updates--overlay,
  [class*="jeg_hero"] .lbs-mini-updates--overlay{
    margin-left: 8px;
    margin-right: 8px;
    margin-top: 0;
    transform: translateY(max(var(--lbs-overlay-offset-hero, -40px), -35px));
    margin-bottom: max(var(--lbs-overlay-offset-hero, -40px), -35px);
  }

  /* === Hero / Primo Piano - schermi molto stretti (≤360px) === */

  /* Force overflow visible on hero ancestors */
  .jeg_postbig,
  .jeg_heroblock,
  [class*="jeg_hero"],
  .jeg_postbig .jeg_thumb,
  .jeg_heroblock .jeg_thumb,
  [class*="jeg_hero"] .jeg_thumb,
  .jeg_postbig .jeg_thumb a,
  .jeg_heroblock .jeg_thumb a,
  [class*="jeg_hero"] .jeg_thumb a{
    overflow: visible !important;
  }

  /* Post info: full height, overflow hidden to contain content */
  .jeg_postbig .jeg_post_info,
  .jeg_heroblock .jeg_post_info,
  [class*="jeg_hero"] .jeg_post_info{
    padding: 0 8px 4px 8px !important;
    min-height: auto !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
    overflow: hidden !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 2 !important;
  }

  /* Gradient */
  .jeg_postbig .jeg_thumb .jeg_post_info::before,
  .jeg_heroblock .jeg_thumb .jeg_post_info::before,
  [class*="jeg_hero"] .jeg_thumb .jeg_post_info::before{
    content: '' !important;
    position: absolute !important;
    inset: 0 !important;
    background: linear-gradient(0deg, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.8) 35%, rgba(0,0,0,0.4) 65%, transparent 100%) !important;
    pointer-events: none !important;
    z-index: 1 !important;
  }

  .jeg_postbig .jeg_post_info > *,
  .jeg_heroblock .jeg_post_info > *,
  [class*="jeg_hero"] .jeg_post_info > *{
    position: relative !important;
    z-index: 2 !important;
  }

  /* Hide category on tiny screens */
  .jeg_postbig .jeg_post_category,
  .jeg_heroblock .jeg_post_category,
  [class*="jeg_hero"] .jeg_post_category{
    display: none !important;
  }

  /* Titolo: compatto, max 3 righe */
  .jeg_postbig .jeg_post_title,
  .jeg_heroblock .jeg_post_title,
  [class*="jeg_hero"] .jeg_post_title,
  .jeg_postbig .jeg_post_title a,
  .jeg_heroblock .jeg_post_title a,
  [class*="jeg_hero"] .jeg_post_title a{
    font-size: 0.78rem !important;
    line-height: 1.2 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    max-height: calc(0.78rem * 1.2 * 3) !important;
    margin: 0 0 2px 0 !important;
    order: 1 !important;
  }

  /* Meta */
  .jeg_postbig .jeg_post_meta,
  .jeg_heroblock .jeg_post_meta,
  [class*="jeg_hero"] .jeg_post_meta{
    font-size: 0.6em !important;
    margin: 0 0 2px 0 !important;
    order: 2 !important;
  }

  /* Badge LIVE */
  .jeg_postbig .live-badge-overlay,
  .jeg_heroblock .live-badge-overlay,
  [class*="jeg_hero"] .live-badge-overlay{
    position: relative !important;
    top: auto !important;
    left: auto !important;
    display: inline-block !important;
    margin-bottom: 2px !important;
    overflow: visible !important;
    order: 3 !important;
  }
  .jeg_postbig .live-badge-pill,
  .jeg_heroblock .live-badge-pill,
  [class*="jeg_hero"] .live-badge-pill{
    font-size: 0.5rem !important;
    padding: 2px 6px !important;
  }

  /* Mini-timeline CLASSIC — ultra compatta */
  .jeg_postbig .lbs-mini-updates--classic,
  .jeg_heroblock .lbs-mini-updates--classic,
  [class*="jeg_hero"] .lbs-mini-updates--classic{
    order: 4 !important;
    margin-top: 2px !important;
    padding-bottom: 2px !important;
  }
  .jeg_postbig .lbs-mini-updates--classic .lbs-mini-updates__header,
  .jeg_heroblock .lbs-mini-updates--classic .lbs-mini-updates__header,
  [class*="jeg_hero"] .lbs-mini-updates--classic .lbs-mini-updates__header{
    font-size: 0.5em !important;
    padding: 2px 0 !important;
  }
  .jeg_postbig .lbs-mini-updates--classic .lbs-mini-updates__item,
  .jeg_heroblock .lbs-mini-updates--classic .lbs-mini-updates__item,
  [class*="jeg_hero"] .lbs-mini-updates--classic .lbs-mini-updates__item{
    padding: 3px 5px !important;
    font-size: 0.58em !important;
    flex: 0 0 72% !important;
  }
  .jeg_postbig .lbs-mini-updates--classic .lbs-mini-updates__title,
  .jeg_heroblock .lbs-mini-updates--classic .lbs-mini-updates__title,
  [class*="jeg_hero"] .lbs-mini-updates--classic .lbs-mini-updates__title{
    -webkit-line-clamp: 1 !important;
    font-size: 0.8em !important;
  }

  /* Overlay hero - schermi molto stretti */
  .jeg_postbig + .lbs-mini-updates--overlay .lbs-mini-updates__header,
  .jeg_heroblock + .lbs-mini-updates--overlay .lbs-mini-updates__header,
  [class*="jeg_hero"] + .lbs-mini-updates--overlay .lbs-mini-updates__header,
  .jeg_postbig .lbs-mini-updates--overlay .lbs-mini-updates__header,
  .jeg_heroblock .lbs-mini-updates--overlay .lbs-mini-updates__header,
  [class*="jeg_hero"] .lbs-mini-updates--overlay .lbs-mini-updates__header{
    font-size: 0.6em !important;
  }
  .jeg_postbig + .lbs-mini-updates--overlay .lbs-mini-updates__title,
  .jeg_heroblock + .lbs-mini-updates--overlay .lbs-mini-updates__title,
  [class*="jeg_hero"] + .lbs-mini-updates--overlay .lbs-mini-updates__title,
  .jeg_postbig .lbs-mini-updates--overlay .lbs-mini-updates__title,
  .jeg_heroblock .lbs-mini-updates--overlay .lbs-mini-updates__title,
  [class*="jeg_hero"] .lbs-mini-updates--overlay .lbs-mini-updates__title{
    -webkit-line-clamp: 1 !important;
    font-size: 0.82em !important;
  }
}

/* ═══════════════════════════════════════════════════
   Core Web Vitals Optimizations
   ═══════════════════════════════════════════════════ */

/* CSS Containment: riduce il costo di layout/paint per card della timeline */
.live-blog__item {
    contain: content;
}

/* Riserva spazio per il badge overlay (previene CLS) */
.live-thumbnail-wrapper {
    contain: layout style;
}

/* Hero title above: riserva spazio minimo per evitare CLS al caricamento JS */
.lbs-hero-title-above {
    min-height: 2.5em;
    contain: layout style;
}

/* Immagini nella timeline: dimensioni riservate per prevenire CLS */
.live-blog__image {
    aspect-ratio: 16/9;
    width: 100%;
    height: auto;
    object-fit: cover;
    background-color: #f3f4f6;
}

/* Mini-timeline: contieni reflow */
.lbs-mini-updates {
    contain: layout style;
}

/* Animazioni: usa will-change solo su elementi animati, rimuovi dopo */
.live-badge-pill__dot,
.live-blog__live-dot,
.lbs-poll-dot--on {
    will-change: opacity;
}

/* Riduci costo paint per card fuori viewport */
.lbs-lazy-hidden {
    content-visibility: auto;
    contain-intrinsic-size: 0 200px;
}

/* Ottimizza il rendering delle card già visibili */
.live-blog__card {
    contain: layout style;
}
