/* Generali */
body {
  font-family: 'Poppins', sans-serif;
  scroll-behavior: smooth;
  background-color: #0b0b0b;
}

section {
  padding-top: 6rem;
  padding-bottom: 6rem;
}

.bg-black-subtle {
    background-color: #121212;
}

/* Navbar Glassmorphism */
.navbar {
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  background-color: rgba(0, 0, 0, 0.8) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 1rem 0;
}

.navbar-brand {
  letter-spacing: 2px;
  color: #0d6efd !important;
}

/* Hero Section */
#home {
  position: relative;
  min-height: 100vh;
  background-image: url('1725193888989.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
}

#home::before {
  content: "";
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(180deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.5) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.profile-img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #0d6efd;
  box-shadow: 0 0 25px rgba(13, 110, 253, 0.4);
  transition: transform 0.4s ease;
}

.profile-img:hover {
    transform: scale(1.05) rotate(5deg);
}

/* Titoli e Testi */
.section-title {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  position: relative;
  display: inline-block;
  margin-bottom: 3rem;
}

.section-title::after {
  content: "";
  position: absolute;
  width: 50%;
  height: 3px;
  background-color: #0d6efd;
  bottom: -10px;
  left: 25%;
}

/* Card e Form */
.card {
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    border-color: #0d6efd !important;
}

.badge {
    padding: 0.6em 1em;
    font-weight: 500;
    background-color: #212529 !important;
    border: 1px solid #343a40;
}

form .form-control {
  padding: 0.75rem;
  transition: all 0.3s;
}

form .form-control:focus {
  background-color: #1a1a1a !important;
  border-color: #0d6efd;
  box-shadow: 0 0 15px rgba(13, 110, 253, 0.2);
  color: white !important;
}

/* Footer */
footer a {
  transition: color 0.3s;
}

footer a:hover {
  color: #0d6efd !important;
}

/* Responsive */
@media (max-width: 768px) {
  #home h1 { font-size: 2.5rem; }
  .profile-img { width: 130px; height: 130px; }
}
