/* ============================================================
   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;
}
