/**
 * Header — fascia dei punti di forza sopra al logo.
 *
 * La trust strip sostituisce la vecchia top-plus (spedizione / supporto / IVA).
 * La top-header (social + telefoni + ricerca) è tornata in header.php: i suoi
 * stili stanno in ortopedia-migration.css, non qui.
 * Il markup sta in header.php, i colori in tokens.css.
 */

.o24-trust-strip {
  background: #ffffff;
  border-bottom: 1px solid oklch(0.90 0.005 25);
  box-shadow: 0 8px 24px oklch(0 0 0 / 0.04);
}

/* Da mobile la fascia sparisce: il .mobile-spedizione-banner (ortopedia-migration.css)
   copre già il messaggio principale allo stesso breakpoint, e sopra la top-header
   servivano tre fasce impilate prima di arrivare al logo. Stesso 767.98px del banner
   per non lasciare una finestra in cui non si vede né l'una né l'altro. */
@media (max-width: 767.98px) {
  .o24-trust-strip {
    display: none;
  }
}

.o24-trust-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 22px 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.o24-trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-left: 3px solid var(--o24-red);
}

.o24-trust-icon {
  font-size: 1.7rem;
  line-height: 1;
  flex: 0 0 auto;
}

.o24-trust-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--o24-text);
}

.o24-trust-desc {
  font-size: 12px;
  color: var(--o24-muted);
  line-height: 1.35;
  margin: 0;
}

@media (max-width: 900px) {
  .o24-trust-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* --------------------------------------------------------------------------
   Ticker mobile
   Sotto i 600px js/trust-ticker.js aggiunge .is-ticker e mostra una voce alla
   volta. Senza JavaScript la classe non arriva e le voci restano impilate.
   -------------------------------------------------------------------------- */

.o24-trust-dots {
  display: none;
}

@media (max-width: 600px) {
  .o24-trust-grid {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .o24-trust-strip.is-ticker .o24-trust-grid {
    padding: 6px 16px 0;
    gap: 0;
  }

  .o24-trust-strip.is-ticker .o24-trust-item {
    display: none;
    padding: 8px 14px;
  }

  .o24-trust-strip.is-ticker .o24-trust-item.is-current {
    display: flex;
    animation: o24-trust-fade 0.35s ease;
  }

  .o24-trust-strip.is-ticker .o24-trust-icon {
    font-size: 1.25rem;
  }

  .o24-trust-strip.is-ticker .o24-trust-desc {
    display: none;
  }

  .o24-trust-strip.is-ticker .o24-trust-dots {
    display: flex;
    justify-content: center;
    gap: 2px;
    padding-bottom: 2px;
  }
}

.o24-trust-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 18px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.o24-trust-dot::after {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: oklch(0.82 0.005 25);
  transition: background 0.2s, transform 0.2s;
}

.o24-trust-dot.is-current::after {
  background: var(--o24-red);
  transform: scale(1.4);
}

@keyframes o24-trust-fade {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .o24-trust-strip.is-ticker .o24-trust-item.is-current {
    animation: none;
  }

  .o24-trust-dot::after {
    transition: none;
  }
}
