@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Familjen+Grotesk:ital,wght@0,400..700;1,400..700&display=swap');

/* --- Base Customizations: Architectural Clean --- */
:root {
  --primary-blue: #0284C7;   /* Electric Sign Blue (Marco Spazzacamino) */
  --accent-green: #70A83B;   /* Fresh Sign Olive Green ("l'amico della tua casa") */
  --accent-blue: #0369A1;    /* Deep Sign Blue */
  --gray-dark: #0F172A;      /* Dark Charcoal Slate */
  --gray-medium: #475569;    /* Muted Slate */
  --gray-light: #F8FAFC;     /* Light Slate bg */
  --white: #FFFFFF;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'DM Sans', sans-serif;
  overflow-x: hidden;
  background-color: var(--white);
  color: var(--gray-dark);
}

h1, h2, h3, h4, .font-display {
  font-family: 'Familjen Grotesk', sans-serif;
  letter-spacing: -0.02em;
}

/* Professional Clean Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--gray-light);
}
::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-blue);
}

/* --- Fixed Top Header Navigation --- */
#main-header {
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  transform: none !important;
  width: 100% !important;
}

/* --- Clean UI Cards & Structure --- */
.card-hover {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid #E2E8F0;
  border-radius: 0.75rem;
  background-color: var(--white);
}

.card-hover:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px -6px rgba(15, 23, 42, 0.08);
  border-color: #94A3B8;
}

/* Timeline Animation (Clean & Structural, Zero Neon) */
.timeline-item {
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
}

.timeline-dot {
  transition: all 0.3s ease;
}

.timeline-step-num {
  transition: all 0.4s ease;
}

/* Scroll-Triggered Text Highlight (Clean Fade & Scale, Zero Neon Glow) */
.reveal-highlight-text {
  display: inline-block;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), color 0.8s ease, opacity 0.8s ease;
  transform: scale(0.96);
  opacity: 0.6;
  will-change: transform, color, opacity;
}

.reveal-highlight-text.is-visible {
  transform: scale(1);
  opacity: 1;
  color: #ffffff !important;
}

/* Infinite Marquee Animation (Clean Frosted Glass) */
.marquee-wrapper {
  display: flex;
  gap: var(--gap);
  overflow: hidden;
  user-select: none;
}

.marquee-content {
  display: flex;
  flex-shrink: 0;
  gap: var(--gap);
  align-items: center;
  justify-content: space-around;
  min-width: 100%;
  animation: scroll var(--duration) linear infinite;
}

@keyframes scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-100% - var(--gap)));
  }
}
