body {
  background-color: #F2F6EC;
}

html {
  scroll-behavior: smooth;
}

#hero {
  animation: fadeIn 2s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

#particle-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  pointer-events: none;
  z-index: 10;
}

.hero-overlay {
  background: linear-gradient(180deg, rgba(9, 69, 33, 0.48) 0%, rgba(9, 69, 33, 0.68) 100%);
  z-index: 5;
}

.hero-content {
  animation: fadeUpOpacity 1s ease-out 0.5s both;
}

@keyframes fadeUpOpacity {
  from { opacity: 0; }
  to { opacity: 1; }
}

.azienda-bg {
  background-image: url('../img/aziendabg.jpeg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.azienda-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

.azienda-bg .container {
  position: relative;
  z-index: 1;
}

#hero h1 {
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45), 0 4px 16px rgba(0, 0, 0, 0.35);
}

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

.hero-bg-slider {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  animation: heroFade 16s infinite;
}

.hero-slide:nth-child(1) {
  animation-delay: 0s;
}

.hero-slide:nth-child(2) {
  animation-delay: 4s;
}

.hero-slide:nth-child(3) {
  animation-delay: 8s;
}

.hero-slide:nth-child(4) {
  animation-delay: 12s;
}

@keyframes heroFade {
  0% { opacity: 0; }
  6% { opacity: 1; }
  25% { opacity: 1; }
  31% { opacity: 0; }
  100% { opacity: 0; }
}

#menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  color: #F2F6EC;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(242, 246, 236, 0.28);
  border-radius: 0.5rem;
  line-height: 0;
}

#menu-toggle svg {
  stroke: currentColor;
}

#menu-toggle:hover,
#menu-toggle:focus-visible {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(242, 246, 236, 0.44);
}

#mobile-menu {
  position: relative;
  z-index: 60;
  border-top: 1px solid rgba(242, 246, 236, 0.15);
}

#mobile-menu a {
  color: #F2F6EC;
  border-radius: 0.5rem;
}

#mobile-menu a:hover,
#mobile-menu a:focus-visible {
  color: #A3C986;
  background: rgba(0, 0, 0, 0.16);
}

#hero {
  min-height: 100vh;
  padding-top: 4.75rem;
  padding-bottom: 0;
}

#hero .hero-content {
  position: absolute;
  top: 48%;
  left: 50%;
  z-index: 20;
  width: min(calc(100% - 2rem), 58rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transform: translate(-50%, -50%);
}

@media (max-width: 767px) {
  #hero {
    min-height: 100svh;
    padding-top: 4.5rem;
  }

  #hero .hero-content {
    top: 46%;
    width: min(calc(100% - 1.5rem), 58rem);
  }
}

nav ul {
  list-style: none;
  margin: 0;
  padding-left: 0;
}

#mobile-menu ul {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  padding-top: 0.35rem;
  padding-bottom: 0.75rem;
}

#mobile-menu li + li {
  margin-top: 0.25rem;
}

#mobile-menu a {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}
