/* ==========================================================
   HEADER
========================================================== */

header {
  position: fixed;

  top: 0;
  left: 0;

  width: 100%;

  z-index: 9999;

  transition: 0.35s;

  background: transparent;
}

/* diventerà attivo con JavaScript */

header.scrolled {
  background: rgba(18, 58, 103, 0.96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* ==========================================================
   NAVBAR
========================================================== */

.navbar {
  width: min(94%, 1280px);
  height: 76px;
  margin: auto;

  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  column-gap: 40px;
}

header.scrolled .navbar {
  background: transparent;
}

.menu {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;

  margin: 0;
  padding: 0;

  list-style: none;
}

.nav-cta {
  justify-self: end;
  margin-left: 0;
  white-space: nowrap;
  padding: 12px 24px;
  margin-left: 35px;
}

/* ==========================================================
   LOGO
========================================================== */

.logo img {
  height: 58px;

  width: auto;
}

/* ==========================================================
   MENU
========================================================== */

.menu a {
  color: white;

  font-weight: 600;

  transition: 0.3s;

  position: relative;
}

.menu a:hover {
  color: #d6007f;
}

.menu a::after {
  content: "";

  position: absolute;

  left: 0;
  bottom: -8px;

  width: 0;

  height: 2px;

  background: #d6007f;

  transition: 0.3s;
}

.menu a:hover::after {
  width: 100%;
}

/* =====================================
   PAGINA ATTIVA
===================================== */

.menu a.active {
  color: #d6007f;
}

.menu a.active::after {
  width: 100%;
}

/* ==========================================================
   HAMBURGER
========================================================== */

.hamburger {
  display: none;

  width: 52px;

  height: 52px;

  border: none;

  background: rgba(255, 255, 255, 0.1);

  backdrop-filter: blur(10px);

  -webkit-backdrop-filter: blur(10px);

  border-radius: 14px;

  cursor: pointer;

  position: relative;

  transition: 0.35s;
}

.hamburger span {
  position: absolute;

  left: 50%;

  width: 24px;

  height: 3px;

  border-radius: 20px;

  background: #ffffff;

  transition: 0.35s;

  transform: translateX(-50%);
}

.hamburger span:nth-child(1) {
  top: 16px;
}

.hamburger span:nth-child(2) {
  top: 24px;
}

.hamburger span:nth-child(3) {
  top: 32px;
}

.hamburger.active span:nth-child(1) {
  top: 24px;

  transform: translateX(-50%) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  top: 24px;

  transform: translateX(-50%) rotate(-45deg);
}

/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 992px) {
  .nav-cta {
    display: none;
  }

  .hamburger {
    display: block;
  }
}

/* ==========================================================
   DROPDOWN MENU
========================================================== */

.dropdown {
  position: relative;
}

.dropdown > a {
  display: flex;

  align-items: center;

  gap: 8px;
}

.dropdown-menu {
  position: absolute;

  top: 100%;

  left: 0;

  min-width: 260px;

  background: #ffffff;

  border-radius: 18px;

  padding: 14px 0;

  list-style: none;

  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);

  opacity: 0;

  visibility: hidden;

  transform: translateY(12px);

  transition: 0.3s;

  z-index: 999;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;

  visibility: visible;

  transform: translateY(0);
}

.dropdown-menu li {
  margin: 0;
}

.dropdown-menu a {
  display: flex;

  flex-direction: column;

  align-items: flex-start;

  padding: 18px 24px;

  color: #143a5a;

  text-decoration: none;

  transition: 0.25s;
}

.dropdown-menu strong {
  font-size: 0.95rem;

  font-weight: 700;

  letter-spacing: 0.5px;

  margin-bottom: 6px;
}

.dropdown-menu span {
  font-size: 0.85rem;

  color: #6b7280;

  line-height: 1.5;
}

.dropdown-menu a:hover {
  background: #f7f9fc;

  color: #e5007d;

  padding-left: 32px;
}
