/* Main CSS for Dorna Service */

html { 
  scroll-behavior: smooth; 
}

.clip-diagonal { 
  clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%); 
}

.clip-diagonal-reverse { 
  clip-path: polygon(0 0, 100% 15%, 100% 100%, 0 100%); 
}

.marquee { 
  animation: marquee 30s linear infinite; 
}

@keyframes marquee { 
  0% { transform: translateX(0); } 
  100% { transform: translateX(-50%); } 
}

/* Marquee più veloce su schermi piccoli */
@media (max-width: 1024px) {
  .marquee {
    animation: marquee 15s linear infinite;
  }
}

@media (max-width: 640px) {
  .marquee {
    animation: marquee 12s linear infinite;
  }
}

.text-outline { 
  -webkit-text-stroke: 2px currentColor; 
  -webkit-text-fill-color: transparent; 
}

.hover-lift { 
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
}

.hover-lift:hover { 
  transform: translateY(-12px) scale(1.02); 
}

.number-giant { 
  font-size: clamp(80px, 15vw, 200px); 
  line-height: 0.85; 
}

.blend-difference { 
  mix-blend-mode: difference; 
}

.grid-pattern { 
  background-image: linear-gradient(rgba(220, 38, 38, 0.03) 1px, transparent 1px), 
                    linear-gradient(90deg, rgba(220, 38, 38, 0.03) 1px, transparent 1px); 
  background-size: 50px 50px; 
}

.dark .grid-pattern { 
  background-image: linear-gradient(rgba(239, 68, 68, 0.05) 1px, transparent 1px), 
                    linear-gradient(90deg, rgba(239, 68, 68, 0.05) 1px, transparent 1px); 
}

/* Texture Background */
.texture-bg {
  position: relative;
  background-color: #fafafa;
}

.dark .texture-bg {
  background-color: #0a0a0a;
}

.texture-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.4;
  background-image: 
    radial-gradient(circle at 1px 1px, rgba(0, 0, 0, 0.15) 1px, transparent 0);
  background-size: 20px 20px;
  pointer-events: none;
}

.dark .texture-bg::before {
  background-image: 
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.05) 1px, transparent 0);
  opacity: 0.3;
}

/* Hero Animations */
@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slide-up {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fade-in 0.8s ease-out;
}

.animate-slide-up {
  animation: slide-up 1s ease-out;
}

.animate-fade-in-delay {
  animation: fade-in 1.2s ease-out 0.3s both;
}

/* Hero Carousel */
.hero-carousel {
  position: relative;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 2s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* FAQ Styles */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.faq-answer:not(.hidden) {
  max-height: 500px;
}

.faq-icon {
  transition: transform 0.3s ease-out;
}

.faq-icon.rotate-180 {
  transform: rotate(180deg);
}

/* Cookie Consent */
#cookie-banner.show {
  transform: translateY(0);
}

#cookie-banner a {
  pointer-events: auto;
}

/* reCAPTCHA v3 badge nascosto: informativa presente nel form */
.grecaptcha-badge {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}


/* Theme Toggle Icons Colors */
#sun-icon path {
  stroke: #eab308;
}

#moon-icon path {
  stroke: #3b82f6;
}

.theme-toggle-btn:hover #sun-icon path {
  stroke: #fbbf24;
}

.theme-toggle-btn:hover #moon-icon path {
  stroke: #60a5fa;
}

/* Navbar Styles */
#navbar.bg-transparent {
  border: none !important;
  border-bottom: none !important;
}

/* Active Nav Link Styles */
#navbar-links a.active,
#mobile-menu a.active {
  position: relative;
  font-weight: 700;
}

#navbar-links a.active::after,
#mobile-menu a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: currentColor;
  border-radius: 2px;
}

#navbar-links a.active {
  text-shadow: 0 0 8px rgba(220, 38, 38, 0.3);
}

#mobile-menu a.active {
  transform: scale(1.05);
}

