/* Himera Live — Correzioni 1.1.0 */

/* Orologio: quello del tema (AM/PM con secondi) è sostituito da .hl-orologio */
.theme-display-clock {
  display: none !important;
}

.hl-orologio {
  display: inline-block;
  font-variant-numeric: tabular-nums;
}

/* Etichetta interna visibile in home ("Grande: categoria Prima pagina · tre accanto: In evidenza") */
.hl-home-root .hero-source {
  display: none !important;
}

/* Mercatino dismesso: nasconde eventuali box promozionali rimasti nel tema.
   Selettori ripetuti apposta: il tema li forza con "body.hl-home .wrapper.hl-mercatino-cta-wrap { display:block !important }". */
html body .hl-mercatino-cta-wrap.hl-mercatino-cta-wrap.hl-mercatino-cta-wrap.hl-mercatino-cta-wrap,
html body .hl-mercatino-cta.hl-mercatino-cta.hl-mercatino-cta.hl-mercatino-cta,
html body section.mercatino.mercatino.mercatino.mercatino {
  display: none !important;
}

/* Spazi pubblicitari rimasti vuoti */
.hl-ad-vuoto {
  min-height: 0 !important;
}

/* Banner app: striscia in alto al posto del popup a tutto schermo */
.hl-pwa-sheet {
  position: fixed;
  top: 10px;
  left: 10px;
  right: 10px;
  z-index: 2147483000;
  display: none;
  max-width: 520px;
  margin: 0 auto;
}

.hl-pwa-sheet.is-open {
  display: block;
  animation: hl-pwa-entra 0.3s ease-out;
}

@keyframes hl-pwa-entra {
  from {
    transform: translateY(-120%);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hl-pwa-sheet.is-open {
    animation: none;
  }
}

.hl-pwa-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #fff;
  color: #1a1a1a;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
}

.hl-pwa-icon {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #c4002f;
}

.hl-pwa-copy {
  flex: 1;
  min-width: 0;
}

.hl-pwa-title {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  color: #c4002f;
}

.hl-pwa-text {
  margin: 2px 0 0;
  font-size: 13px;
  line-height: 1.3;
  color: #444;
}

.hl-pwa-actions {
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
}

/* il tema dà ai pulsanti min-height: 88px su mobile: qui va azzerato */
#hl-pwa-sheet .hl-pwa-install,
#hl-pwa-sheet .hl-pwa-later {
  width: auto;
  height: auto;
  min-width: 0;
  min-height: 0 !important;
  margin: 0;
  border: 0;
  border-radius: 999px;
  box-shadow: none;
  font-family: inherit;
  line-height: 1.2;
  text-transform: none;
  letter-spacing: normal;
  cursor: pointer;
  touch-action: manipulation;
}

#hl-pwa-sheet .hl-pwa-install {
  padding: 9px 16px;
  background: #c4002f;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

#hl-pwa-sheet .hl-pwa-later {
  padding: 4px 8px;
  background: none;
  color: #555;
  font-size: 12px;
  font-weight: 400;
}

.hl-pwa-ios {
  margin-top: 6px;
  padding: 8px 12px;
  border-radius: 12px;
  background: #002b5c;
  color: #fff;
  font-size: 13px;
  line-height: 1.4;
}

.hl-pwa-ios p {
  margin: 0;
}

.hl-pwa-ios[hidden] {
  display: none !important;
}

@media (display-mode: standalone) {
  .hl-pwa-sheet {
    display: none !important;
  }
}

/* Barra legale sotto il footer (stessi colori del footer del tema) */
.hl-legal {
  padding: 12px 16px 16px;
  border-top: 1px solid #2a2a2a;
  background: #141414;
  color: #cfcfcf;
  font-size: 13px;
  line-height: 1.7;
  text-align: center;
}

#colophon .hl-legal {
  margin-top: 12px;
}

.hl-legal p {
  margin: 0;
}

.hl-legal__editore {
  margin-right: 10px;
}

.hl-legal a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.hl-legal a:hover,
.hl-legal a:focus-visible {
  color: #ffd0da;
}

.hl-legal__sep {
  margin: 0 7px;
  color: #777;
}

@media (max-width: 900px) {
  .hl-legal {
    padding-bottom: 84px; /* spazio per i pulsanti fissi in basso (WhatsApp, pubblicità) */
  }

  .hl-legal__editore,
  .hl-legal__link {
    display: block;
    margin: 0;
  }
}
