/* Athlos – Soluzioni Digitali – Custom styles */

/* Animate marquee for logo slider */
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.animate-marquee {
  animation: marquee 30s linear infinite;
  width: max-content;
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.animate-marquee.paused {
  animation-play-state: paused;
}

/* Hide Alpine x-cloak elements until Alpine initialises */
[x-cloak] { display: none !important; }

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Line clamp */
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Prose overrides */
.prose h2 {
  color: #0F172A;
}

.prose a {
  color: #2563EB;
}

/* ── Rich text / legal page body ── */
.richtext-body h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #000216;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid #e5e7eb;
}

.richtext-body h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1e293b;
  margin-top: 1.75rem;
  margin-bottom: 0.6rem;
}

.richtext-body p {
  color: #374151;
  line-height: 1.75;
  margin-bottom: 1rem;
}

.richtext-body ul,
.richtext-body ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
  color: #374151;
}

.richtext-body ul {
  list-style-type: disc;
}

.richtext-body ol {
  list-style-type: decimal;
}

.richtext-body li {
  margin-bottom: 0.4rem;
  line-height: 1.65;
}

.richtext-body a {
  color: #2563EB;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.richtext-body a:hover {
  color: #5967FD;
}

.richtext-body strong {
  font-weight: 600;
  color: #000216;
}

.richtext-body em {
  font-style: italic;
}

.richtext-body h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #1e293b;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.richtext-body hr {
  border: none;
  border-top: 2px solid #e5e7eb;
  margin: 2rem 0;
}

.richtext-body blockquote {
  border-left: 4px solid #5967FD;
  padding-left: 1rem;
  margin: 1.5rem 0;
  color: #6b7280;
  font-style: italic;
}

.richtext-body code {
  background: #f1f5f9;
  border-radius: 4px;
  padding: 0.1rem 0.35rem;
  font-size: 0.875em;
  color: #1e293b;
}

.richtext-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 1.5rem 0;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
}

.richtext-body th {
  background: #f8fafc;
  font-weight: 600;
  color: #000216;
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e5e7eb;
}

.richtext-body td {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid #f1f5f9;
  color: #374151;
  vertical-align: top;
}

.richtext-body tr:last-child td {
  border-bottom: none;
}

.richtext-body tr:hover td {
  background: #f8fafc;
}

/* Focus ring for accessibility */
*:focus-visible {
  outline: 2px solid #60A5FA;
  outline-offset: 2px;
}

.logo {
  max-width: 12rem;
  height: auto;
}

.logo-footer {
  max-width: 16rem;
  height: auto;
}