/* Global Styles */
:root {
  --primary-color: #d0d0d0;  /* Grigio chiaro */
  --secondary-color: #909090;  /* Grigio medio */
  --background-dark: #0a0a0a;  /* Nero */
  --background-light: #1a1a1a;  /* Grigio molto scuro */
  --text-color: #f0f0f0;  /* Bianco sporco */
  --text-light: #ffffff;  /* Bianco puro */
  --text-muted: #909090;  /* Grigio */
  --accent-color: #808080;  /* Grigio medio per accenti */
  --border-color: #333333;  /* Grigio scuro per bordi */
  --transition: all 0.3s ease;
}

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

/* Base Styles */
body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  animation: pageFadeIn 0.6s ease-out;
}

@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

a {
  text-decoration: none;
  color: var(--text-light);
  transition: var(--transition);
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Wave Animation */
.wave-animation {
  position: relative;
  top: -1px; /* Sovrappone leggermente la navbar */
  left: 0;
  width: 100%;
  z-index: 999;
  pointer-events: none;
  margin-bottom: 1rem; /* Spazio sotto l'onda */
}

.wave-animation svg {
  width: 100%;
  height: 40px;
  display: block;
  animation: wave 8s linear infinite;
  transform-origin: center;
}

@keyframes wave {
  0% { transform: scaleY(1); }
  50% { transform: scaleY(0.7); }
  100% { transform: scaleY(1); }
}

/* Navbar Styles */
.navbar {
  background: rgba(20, 20, 20, 0.95);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  backdrop-filter: blur(16px) saturate(180%);
  margin: 0 auto;
  max-width: 1200px;
  width: calc(100% - 40px);
  padding: 0 25px;
  border: 1px solid rgba(100, 100, 100, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 20px rgba(100, 100, 100, 0.1);
  border-radius: 50px;
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  height: 70px;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  transition: all 0.3s ease;
}

.navbar:hover {
  background: rgba(20, 20, 20, 0.95);
  box-shadow: 0 8px 40px rgba(100, 100, 100, 0.2), 0 0 25px rgba(100, 100, 100, 0.15);
  border: 1px solid rgba(100, 100, 100, 0.2);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 100%;
}

.nav-links {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  margin-left: auto;
  padding: 0;
  list-style: none;
}

.nav-link {
  font-weight: 500;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
  transition: var(--transition);
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  text-decoration: none;
  border: none;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  margin: 0 0.2rem;
  letter-spacing: 0.5px;
  cursor: pointer;
}

/* Global Link Reset */
a, a:hover, a:focus, a:active, a:visited {
  text-decoration: none;
  border: none;
  box-shadow: none;
  outline: none;
  background: transparent;
  color: inherit;
}

/* Navbar Links */
.navbar a,
.navbar a:hover,
.navbar a:focus,
.navbar a:active,
.navbar a:visited {
  text-decoration: none;
  border: none;
  box-shadow: none;
  outline: none;
  background: transparent;
}

/* Remove pseudo-elements */
.nav-link::after,
.nav-link::before,
.nav-link:focus::after,
.nav-link:active::after {
  content: none;
  display: none;
}

/* Footer Styles */
.footer {
  background: #0a0a0a;
  color: #fff;
  padding: 2rem 0 0;
  margin: 3rem 0 0;
  font-size: 0.7rem;
  position: relative;
  min-height: 100px;
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(100, 100, 100, 0.1);
}

.footer-content {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.footer-brand {
  margin-right: 1rem;
  display: flex;
  align-items: flex-start;
  padding-top: 0.25rem;
  min-height: 120px;
}

.footer-logo-img {
  height: 100px;
  width: auto;
  max-width: 300px;
  margin: 0.5rem 0 0.5rem 0;
  display: block;
}

.footer-tagline {
  color: #a0a0a0;
  margin: 0;
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.3px;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-link {
  color: #ffffff;
  background: rgba(150, 150, 150, 0.1);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: var(--primary-color);
  transform: translateY(-3px);
}

.social-link i {
  font-size: 1.2rem;
}

.footer-links h3 {
  color: #ffffff;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  position: relative;
  padding-bottom: 0.25rem;
}

.footer-links h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: #808080;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: #a0aec0;
  transition: color 0.3s ease;
  display: inline-block;
  padding: 0.25rem 0;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  width: 100%;
  padding: 1.5rem 0;
  background: rgba(5, 10, 20, 0.95);
  text-align: center;
  font-size: 0.8rem;
  color: #64748b;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  bottom: 0;
  z-index: 100;
  margin-top: 2rem;
}

.footer-bottom p {
  margin: 0;
  padding: 0.5rem 1rem;
}

/* Logo adjustments */
.logo-container {
  display: flex;
  align-items: flex-start;
  height: 100%;
  padding: 5px 0 5px 5px; /* Reduced left padding to move more left */
  margin-top: 0;
  margin-left: -10px; /* Added negative margin to pull more to the left */
}

.logo-img {
  height: 75px; /* Increased height */
  width: auto;
  max-width: 220px; /* Slightly wider */
  transition: transform 0.3s ease;
  margin-top: 0; /* Removed top margin */
  object-fit: contain;
  position: relative;
  left: -10px; /* Moved further to the left */
}

.logo-img:hover {
  transform: scale(1.05);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .logo-img {
    height: 55px; /* Slightly smaller on tablets */
  }
  
  .navbar {
    padding: 0 10px;
    height: 60px;
    width: calc(100% - 20px);
  }
  
  .nav-links {
    gap: 0.6rem;
    margin-left: 1.5rem;
  }
}

@media (max-width: 480px) {
  .logo-img {
    height: 50px; /* Even smaller on mobile */
    max-width: 160px;
  }
  
  .navbar {
    padding: 0 8px;
    height: 56px;
    width: calc(100% - 16px);
  }
  
  .nav-links {
    gap: 0.4rem;
    margin-left: 1rem;
  }
  
  .nav-link {
    padding: 0.5rem 1.2rem;
    font-size: 0.9rem;
  }
}


.nav-link:hover {
  background: transparent !important;
  color: var(--text-light) !important;
  transform: translateY(-1px);
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

.nav-link.active {
  color: var(--text-light) !important;
  background: linear-gradient(135deg, #d0d0d0 0%, #a0a0a0 100%) !important;
  -webkit-background-clip: text;
  -moz-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  border: none !important;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(200, 200, 200, 0.2);
  transform: translateY(-2px);
  text-shadow: none;
  padding: 0.6rem 1.8rem;
  position: relative;
  overflow: hidden;
}

/* Rimozione completa dell'effetto ripple */
.nav-link:after {
  display: none !important;
}

/* Rimozione dell'effetto di focus predefinito */
.nav-link:focus {
  outline: none !important;
  box-shadow: none !important;
}

/* Rimozione dell'effetto di attivazione al click */
.nav-link:active {
  transform: translateY(0) !important;
  background: transparent !important;
}

.nav-link.active::after {
  display: none;
}

/* Rimozione di ogni effetto di sottolineatura su hover/focus */
.nav-link:hover,
.nav-link:focus,
.nav-link:active {
  color: var(--primary-color) !important;
  background: transparent !important;
  text-decoration: none !important;
  box-shadow: none !important;
  outline: none !important;
  border: none !important;
  transform: translateY(-1px);
  text-shadow: 0 0 8px rgba(200, 200, 200, 0.5);
}

/* Hero Section */
.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 100vh;
  padding: 8rem 1rem 4rem;
  position: relative;
  overflow: hidden;
  will-change: transform, opacity;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* Rimosso il gradiente circolare */

@keyframes heroBreathe {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.06); opacity: 1; }
}

/* Futuristic hero FX */
.hero-fx { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.fx-ribbons { position: absolute; inset: -20% -10% 0 -10%; filter: blur(18px); opacity: 0.9; }
.fx-ribbon { position: absolute; left: -10%; right: -10%; height: 180px; background: linear-gradient(90deg, rgba(200,200,200,0.0) 0%, rgba(200,200,200,0.15) 20%, rgba(180,180,180,0.1) 50%, rgba(150,150,150,0.12) 80%, rgba(150,150,150,0.0) 100%); transform: skewY(-8deg); mix-blend-mode: screen; }
.fx-ribbon.r1 { top: 35%; animation: ribbonDrift 14s ease-in-out infinite; }
.fx-ribbon.r2 { top: 55%; height: 140px; animation: ribbonDrift 16s ease-in-out -3s infinite; }
.fx-ribbon.r3 { top: 20%; height: 120px; animation: ribbonDrift 18s ease-in-out -6s infinite; }

@keyframes ribbonDrift {
  0%, 100% { transform: translateX(0) skewY(-8deg); opacity: 0.75; }
  50% { transform: translateX(12px) skewY(-6deg); opacity: 1; }
}

.fx-grid { position: absolute; inset: auto 0 0 0; height: 55%; background-image: linear-gradient(rgba(150,150,150,0.12) 1px, transparent 1px), linear-gradient(90deg, rgba(150,150,150,0.12) 1px, transparent 1px); background-size: 32px 32px, 32px 32px; mask-image: linear-gradient(to top, rgba(0,0,0,0.6), transparent 70%); -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,0.6), transparent 70%); animation: gridScan 8s linear infinite; opacity: 0.28; }

@keyframes gridScan { 0% { background-position: 0 0, 0 0; } 100% { background-position: 0 32px, 32px 0; } }

.hero-content {
  max-width: 800px;
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero-buttons {
  display: flex;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  background: linear-gradient(90deg, #ffffff, #d0d0d0);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  color: var(--text-muted);
  max-width: 600px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  border: none;
  outline: none;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary {
  background: linear-gradient(90deg, #d0d0d0, #909090);
  color: #0a0a0a;
  box-shadow: 0 4px 15px rgba(100, 100, 100, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(128, 128, 128, 0.4);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #909090, #d0d0d0);
  opacity: 0;
  transition: var(--transition);
  z-index: -1;
}

.btn-primary:hover::before {
  opacity: 1;
}

/* ===========================================
   RESET GENERALE PER LE ICONE
   =========================================== */
/* Disabilita tutti i cerchi e sfondi */
*,
*::before,
*::after {
  --fa-display: inline-block !important;
  --fa-inverse: transparent !important;
  --fa-primary-color: #b0b0b0 !important;
  --fa-secondary-color: transparent !important;
  --fa-border-color: transparent !important;
  --fa-border-width: 0 !important;
  --fa-border-radius: 0 !important;
  --fa-border-style: none !important;
  --fa-border: none !important;
  --fa-padding: 0 !important;
  --fa-margin: 0 !important;
}

/* ===========================================
   STILI PER TUTTE LE ICONE
   =========================================== */
/* Stili per tutti i tipi di icone */
i[class*="fa-"],
[class*="fa-"],
[class^="icon-"],
[class*=" icon-"],
.material-icons,
.feature-icon,
.feature-card i,
.feature-card [class*="fa-"],
.feature-card [class^="icon-"],
.feature-card [class*=" icon-"],
.feature-card .material-icons {
  /* Reset completo */
  all: unset;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  
  /* Stili base */
  display: inline-block !important;
  font-family: 'Material Icons' !important;
  font-style: normal !important;
  font-weight: normal !important;
  font-size: 40px !important;
  line-height: 1 !important;
  color: #b0b0b0 !important;
  margin: 0 0 1.5rem 0 !important;
  padding: 0 !important;
  text-align: center !important;
  text-rendering: optimizeLegibility !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  word-wrap: normal !important;
  white-space: nowrap !important;
  direction: ltr !important;
  
  /* Rimozione forzata di sfondi e bordi */
  background: none !important;
  background-color: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  text-shadow: none !important;
  -webkit-text-stroke: 0 !important;
  
  /* Rimozione di qualsiasi effetto */
  filter: none !important;
  -webkit-filter: none !important;
  -webkit-backface-visibility: hidden !important;
  backface-visibility: hidden !important;
  -webkit-transform: translateZ(0) !important;
  transform: translateZ(0) !important;
}

/* Rimozione forzata di qualsiasi cerchio */
.feature-card i::before,
.feature-card i::after,
.feature-card .material-icons::before,
.feature-card .material-icons::after,
.feature-card [class^="icon-"]::before,
.feature-card [class*=" icon-"]::before,
.feature-card [class^="icon-"]::after,
.feature-card [class*=" icon-"]::after {
  display: none !important;
  content: '' !important;
  background: none !important;
  width: 0 !important;
  height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  box-shadow: none !important;
}

/* Rimozione forzata di qualsiasi cerchio o sfondo */
.feature-card {
  position: relative;
  overflow: visible !important;
}

.feature-card *,
.feature-card *:hover,
.feature-card *:focus,
.feature-card *:active {
  background: none !important;
  background-color: transparent !important;
  box-shadow: none !important;
  text-shadow: none !important;
  -webkit-text-stroke: 0 !important;
  outline: none !important;
  border: none !important;
}

.feature-card::before,
.feature-card::after,
.feature-card *::before,
.feature-card *::after,
.feature-card *:hover::before,
.feature-card *:hover::after,
.feature-card *:focus::before,
.feature-card *:focus::after {
  display: none !important;
  content: '' !important;
  background: none !important;
  width: 0 !important;
  height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  box-shadow: none !important;
}

.section {
  padding: 6rem 0;
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
  background: linear-gradient(90deg, #ffffff, #d0d0d0);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.feature-card {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 15px;
  padding: 2rem;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
  border-color: rgba(100, 100, 100, 0.3);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* Footer */
.footer {
  background: rgba(10, 10, 10, 0.98);
  padding: 4rem 0 0;
  position: relative;
  min-height: auto;
  display: flex;
  flex-direction: column;
  margin-top: 4rem;
  border-top: 1px solid rgba(100, 100, 100, 0.2);
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--text-muted), transparent);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  margin-bottom: 0;
  padding: 2rem 0;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

.footer-logo {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  display: inline-block;
  background: linear-gradient(90deg, #b0b0b0, #d0d0d0);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-about p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-light);
  font-size: 1.2rem;
  transition: var(--transition);
}

.social-link:hover {
  background: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(100, 100, 100, 0.3);
}

.footer-links h3 {
  font-size: 1.1rem;
  margin: 0 0 0.75rem 0;
  color: var(--text-light);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-links h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 1px;
  background: var(--primary-color);
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.footer-links ul li a {
  color: #94a3b8;
  font-size: 1rem;
  transition: var(--transition);
  display: block;
  padding: 0.15rem 0;
}

.footer-links a:hover {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fadeInUp {
  animation: fadeInUp 0.6s ease-out forwards;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero p {
    font-size: 1.1rem;
  }
  
  .nav-links {
    display: none;
  }
  
  .menu-toggle {
    display: block;
  }
}

/* Particles Background */
#particles-js {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 0;
}

/* Remove background stripes but keep connection animation */
.fx-ribbons,
.fx-ribbon {
  display: none !important;
}

/* ===========================================
   IMAGE PROTECTION - Prevent image theft
   =========================================== */

/* Disable right-click on all images */
img {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  pointer-events: none;
}

/* Allow pointer events on logo images for navigation */
.logo-img,
.footer-logo-img {
  pointer-events: auto;
}

/* Prevent drag and drop on images */
img {
  -webkit-user-drag: none;
}

/* Overlay protection for images */
img::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  pointer-events: none;
}

/* Prevent image selection */
img {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
