/* ============================================================
   Stili custom della landing — replica di src/styles/globals.css
   (le utility class Tailwind sono fornite dal Play CDN in index.html)
   ============================================================ */

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Crimson Pro sui titoli: il Play CDN non genera in modo affidabile
   l'utility arbitraria font-[Crimson_Pro], quindi la forziamo qui. */
[class~="font-[Crimson_Pro]"] {
  font-family: 'Crimson Pro', Georgia, serif;
}

/* I caroselli triplicano i loghi: -33.333% = un blocco esatto → loop continuo */
@keyframes scroll-left {
  from { transform: translateX(0); }
  to   { transform: translateX(-33.333%); }
}

@keyframes scroll-right {
  from { transform: translateX(-33.333%); }
  to   { transform: translateX(0); }
}

.animate-scroll-left  { animation: scroll-left  30s linear infinite; }
.animate-scroll-right { animation: scroll-right 30s linear infinite; }

/* Versione lenta per il carosello istituzioni/partner */
.animate-scroll-left-slow  { animation: scroll-left  80s linear infinite; }
.animate-scroll-right-slow { animation: scroll-right 80s linear infinite; }

/* Footer: testo duplicato 2x → -50% per loop continuo */
@keyframes scroll-footer {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.animate-scroll-footer {
  animation: scroll-footer 15s linear infinite;
}

/* Tab "Programma dell'Open Day": stato attivo / inattivo
   (replica le classi condizionali del componente React) */
[data-program-tab] {
  background: #fff;
  border: 2px solid #e5e7eb;
  color: #4b5563;
  cursor: pointer;
}
[data-program-tab]:hover {
  border-color: rgb(0, 118, 204);
}
[data-program-tab].is-active {
  background: rgb(0, 118, 204);
  color: #fff;
  border-color: rgb(0, 118, 204);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  transform: scale(1.05);
}
