/* --- RESET & VARIABLES --- */
:root {
  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --nav-bg: rgba(15, 23, 42, 0.8);
  --font-main: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--font-main);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(-45deg, #020617, #0f172a, #1e3a8a, #0f172a);
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
ul { list-style: none; }

@keyframes gradientBG {
  0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; }
}
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes float { 0% { transform: translateY(0px); } 50% { transform: translateY(-10px); } 100% { transform: translateY(0px); } }

/* --- NAVBAR --- */
.navbar {
  position: fixed; top: 0; width: 100%; z-index: 1000;
  padding: 1.5rem 0; background: var(--nav-bg);
  backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.container {
  max-width: 1200px; margin: 0 auto; padding: 0 1.5rem;
  display: flex; justify-content: space-between; align-items: center;
}
.logo { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; display: flex; align-items: center; gap: 0.5rem; }
.logo span { color: var(--primary); }
.nav-menu { display: flex; align-items: center; gap: 2.5rem; }
.nav-link { font-size: 0.95rem; font-weight: 500; color: var(--text-muted); position: relative; }
.nav-link:hover { color: white; }
.nav-link::after { content: ''; position: absolute; width: 0; height: 2px; bottom: -4px; left: 0; background-color: var(--primary); transition: width 0.3s; }
.nav-link:hover::after { width: 100%; }

.swipe-hover-effect {
  position: relative; background: rgba(255,255,255,0.05); border: 1px solid rgba(231, 235, 252, 0.5);
  overflow: hidden; transition: border-color 0.3s; z-index: 1;
}
.swipe-hover-effect::before {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(59, 130, 246, 0.1); border: 2px solid var(--primary); box-sizing: border-box;
  clip-path: inset(0 100% 0 0); transition: clip-path 0.4s cubic-bezier(0.25, 1, 0.5, 1); z-index: -1;
}
.swipe-hover-effect:hover { border-color: transparent; }
.swipe-hover-effect:hover::before { clip-path: inset(0 0 0 0); }

.lang-btn { display: flex; align-items: center; gap: 0.5rem; padding: 0.4rem 0.8rem; border-radius: 4px; font-size: 0.8rem; font-weight: 600; color: rgb(231, 235, 252); cursor: pointer; }
.lang-btn::before { border-radius: 4px; }

.btn-outline { display: flex; align-items: center; gap: 0.5rem; padding: 0.9rem 2rem; font-weight: 600; font-size: 1rem; color: white; border-radius: 40px; cursor: pointer; }
.btn-outline::before { border-radius: 40px; }

.menu-toggle { display: none; cursor: pointer; z-index: 1100;}
.menu-toggle span { display: block; width: 25px; height: 2px; background: white; margin: 6px 0; transition: 0.3s; }
.menu-toggle.active span:nth-child(1) { transform: rotate(-45deg) translate(-6px, 5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(45deg) translate(-6px, -5px); }

/* --- HERO SECTION --- */
.hero-section {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  /* MODIFICA: Aumentato padding top base */
  padding-top: 160px;
  padding-bottom: 60px;
  width: 100%;
}

.bg-glow {
  position: absolute; width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, rgba(0,0,0,0) 70%);
  border-radius: 50%; top: 50%; left: 50%; transform: translate(-50%, -50%);
  z-index: -1; pointer-events: none;
}

.hero-content { max-width: 800px; width: 100%; padding: 0 1rem; }

.profile-container {
  width: 180px; height: 180px; margin: 0 auto 2rem auto; border-radius: 50%; padding: 5px;
  background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2); box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  opacity: 0; animation: fadeInUp 0.8s ease-out forwards, float 6s ease-in-out infinite 1s;
}
.profile-img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: #cbd5e1; display: block; }

.hero-name {
  font-size: 3.5rem; font-weight: 800; margin-bottom: 0.5rem; line-height: 1.1;
  background: linear-gradient(to right, #fff, #94a3b8); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  opacity: 0; animation: fadeInUp 0.8s ease-out 0.2s forwards;
}
.hero-title { font-size: 1.5rem; color: var(--primary); font-weight: 600; margin-bottom: 0.5rem; opacity: 0; animation: fadeInUp 0.8s ease-out 0.4s forwards; }
.hero-role { font-family: var(--font-mono); font-size: 0.9rem; color: var(--text-muted); margin-bottom: 2.5rem; display: flex; align-items: center; justify-content: center; gap: 0.5rem; opacity: 0; animation: fadeInUp 0.8s ease-out 0.6s forwards; }

.cta-group { display: flex; gap: 1.5rem; justify-content: center; opacity: 0; animation: fadeInUp 0.8s ease-out 0.8s forwards; }
.btn { padding: 0.9rem 2rem; font-weight: 600; font-size: 1rem; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); display: flex; align-items: center; gap: 0.5rem; }
.btn-primary { padding: 0.9rem 2rem; border-radius: 50px; background: var(--primary); color: white; box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4); font-weight: 600; font-size: 1rem; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); display: flex; align-items: center; gap: 0.5rem; }
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6); }

/* --- FOOTER STYLES --- */
.landing-footer {
  width: 100%;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  z-index: 10;
  opacity: 0;
  animation: fadeInUp 1s ease-out 1.2s forwards;
  background: transparent;
}

.location-text { font-family: var(--font-mono); font-size: 0.9rem; color: var(--text-main); display: flex; align-items: center; gap: 0.5rem; font-weight: 500; }
.copyright-text { font-size: 0.8rem; color: var(--text-muted); opacity: 0.7; }

@media (max-width: 768px) {
  .hero-name { font-size: 2.5rem; }
  .hero-title { font-size: 1.2rem; }
  .nav-menu { position: fixed; top: 0; right: 0; width: 100%; height: 100vh; background: #0f172a; flex-direction: column; justify-content: center; transform: translateX(100%); transition: 0.4s ease-in-out; }
  .nav-menu.active { transform: translateX(0); }
  .menu-toggle { display: block; }
  .cta-group { flex-direction: column; width: 100%; max-width: 300px; margin: 0 auto; }
  .btn { width: 100%; justify-content: center; }

  /* MODIFICA: Aumentato significativamente il padding top su mobile per distanziare */
  .hero-section { padding-top: 150px; }
}
