/* =========================================================
   01. Variabili globali ATS
========================================================= */

:root {
  --ats-primary: #274B7A;
  --ats-primary-dark: #0b2c4c;
  --ats-green: #297a38;
  --ats-green-dark: #1f662c;
  --ats-warning: #f59d0c;
  --ats-danger: #b42318;
  --ats-text: #333333;
  --ats-muted: #333333;
  --ats-bg-soft: #f5f5f5;
  --ats-white: #ffffff;
  --ats-border: rgba(0, 107, 122, 0.16);
  --ats-border-dark: rgba(18, 52, 59, 0.18);
  --ats-shadow-soft: 0 14px 38px rgba(18, 52, 59, 0.06);
  --ats-shadow-card: 0 24px 70px rgba(18, 52, 59, 0.08);
  --ats-radius-sm: 16px;
  --ats-radius-md: 24px;
  --ats-radius-lg: 32px;
  --ats-text-lg: clamp(19px, 1.4vw, 23px);
  --ats-title-lg: clamp(42px, 6vw, 65px);
  --ats-title-md: clamp(30px, 4vw, 47px);
}

a:focus {
  outline: none!important;
}

h1{
    margin: 0 0 22px !important;
  font-weight: 700!important;
  line-height: 1.05;
  font-family: Montserrat,sans-serif!important;
  line-height: 0.95 !important;
  letter-spacing: -0.045em!important;
}

/* =========================================================
   ATS Bergamo Custom - Area enti / form / menu
========================================================= */

  /* ATS - Header buttons
========================= */

/* Icona Area enti */
.w-nav #menu-item-2228.menu-item.ats-menu-icon-area > a {
height: 50px;
  padding: 0 20px 0 20px !important;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  background: #274B7A;
  border: 1px solid #274B7A;
  color: #fff !important;
  font-weight: 700;
  line-height: 1 !important;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  transition: 200ms !important;
  font-size: clamp(22px,1.5vw,28px) !important;
  text-transform: capitalize;
  margin-inline: 0;
}

/*
.w-nav .menu-item.ats-menu-icon-area > a::before {
  content: "\f007";
  font-family: "fontawesome";
  font-weight: 700;
  font-size: 26px;
  line-height: 1;
  color: #297a38;
}
*/

.w-nav .menu-item.ats-menu-icon-area > a:hover {
  background: #0b2c4c;
  color: #ffffff !important;
  border-color: #0b2c4c;
}

@media screen and (max-width: 1400px) {
    .w-nav .menu-item-2228.menu-item.ats-menu-icon-area > a::before {
      color: #f5f5f5;
    }
    
    #menu-item-2228 {
        margin: 10px 0;
        padding: 0 .7rem;
        display: flex;
    }
    
    .w-nav.type_mobile .w-nav-anchor.level_1:not(.w-btn) {
      margin-inline: 0;
    }
    
    #menu-item-2228 .w-nav-anchor.level_1{
    height: 50px;
      padding: 0 20px 0 20px !important;
      border-radius: 999px;
      align-items: center;
      background: #274B7A !important;
      border: 1px solid #274B7A;
      color: #f5f5f5 !important;
      font-weight: 700;
      line-height: 1 !important;
      position: relative;
      overflow: hidden;
      transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s;
      width: fit-content;
      transition: 200ms;
    }
    
    #menu-item-2228 .w-nav-anchor.level_1 {
      font-size: 1.2rem !important;
    }
}


/* =========================
   ATS - Pulsante Nuovo evento
========================= */

.w-nav .menu-item.menu-nuovo-evento > a {
  height: 50px;
  padding: 0 10px 0 20px !important;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  background: #297a38;
  border: 1px solid #297a38;
  color: #ffffff !important;
  font-weight: 700;
  line-height: 1 !important;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
	margin: 0 15px;
	transition: 200ms!important;
}

@media screen and (max-width: 1400px) {
    #menu-item-2229 {
      margin: 10px 0;
      padding: 0 .7rem;
    }
}



.w-nav .menu-item.menu-nuovo-evento > a:hover {
  background: #21672e;
  border-color: #21672e;
  color: #ffffff !important;
  transform: translateY(-2px);
}

.w-nav .menu-item.menu-nuovo-evento > a:active {
  transform: translateY(0) scale(0.98);
}

/* Wrapper interno */
.w-nav .menu-item.menu-nuovo-evento .ats-menu-btn-evento__content {
  height: 100%;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  color: inherit;
  line-height: 1 !important;
}

/* Testo */
.w-nav .menu-item.menu-nuovo-evento .ats-menu-btn-evento__text {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  color: inherit;
  padding-right: 10px;
}

/* Area icona + separatore */
.w-nav .menu-item.menu-nuovo-evento .ats-menu-btn-evento__plus {
  align-self: stretch;
  min-width: 50px;
  padding-left: 10px;
  padding-right: 0;
  border-left: 1px solid #f5f5f5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: inherit;
}

/* Icona */
.w-nav .menu-item.menu-nuovo-evento .ats-menu-btn-evento__plus i {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: clamp(19px,1.4vw,23px);
  line-height: 1;
  transition:
    transform 0.35s cubic-bezier(.2,.8,.2,1),
    background 0.25s ease,
    box-shadow 0.25s ease;
}

.w-nav .menu-item.menu-nuovo-evento > a:hover .ats-menu-btn-evento__plus i {
  transform: rotate(90deg);
  background: rgba(255, 255, 255, 0.28);
}

/* Mobile */
@media (max-width: 900px) {
  .w-nav .menu-item.menu-nuovo-evento > a {
    width: 100%;
    height: 56px;
    min-height: 56px;
    padding: 0 8px 0 24px !important;
  }

  .w-nav .menu-item.menu-nuovo-evento .ats-menu-btn-evento__content {
    width: 100%;
  }

  .w-nav .menu-item.menu-nuovo-evento .ats-menu-btn-evento__text {
    flex: 1;
    justify-content: center;
    padding-right: 20px;
  }

  .w-nav .menu-item.menu-nuovo-evento .ats-menu-btn-evento__plus {
    min-width: 58px;
    padding-left: 20px;
  }

  .w-nav .menu-item.menu-nuovo-evento .ats-menu-btn-evento__plus i {
    width: 30px;
    height: 30px;
    font-size: 15px;
  }
}

.no-touch .w-nav.type_desktop .hover_underline .w-nav-item.level_1:hover .w-nav-title::after {
  bottom: -2px;
  opacity: 1;
}

.no-touch .ush_menu_1 .w-nav-item.level_1.opened > a:not(.w-btn), .no-touch .ush_menu_1 .w-nav-item.level_1:hover > a:not(.w-btn) {
  background: #1f662c;
}

.no-touch .w-nav.type_desktop .hover_underline #menu-item-2229.w-nav-item.level_1:hover .w-nav-title::after {
  bottom: -2px;
  opacity: 0;
}

.ush_menu_1 .w-nav-item.level_1.current-menu-item > a:not(.w-btn) {
  background: none !important;
}

.ush_menu_1 .menu-item-2229.w-nav-item.level_1.current-menu-item > a:not(.w-btn) {
  background: #1f662c !important;
}

.no-touch .ush_menu_1 .menu-item-2229.w-nav-item.level_1:hover > a:not(.w-btn) {
  background: #1f662c !important;
  transition: 200ms;
}

.no-touch .ush_menu_1 #menu-item-2228.w-nav-item.level_1:hover > a:not(.w-btn) {
background: #0b2c4c !important;
	border-color: #0b2c4c;
  color: #ffffff !important;
  transform: translateY(-2px);
  transition: 200ms;
}

.no-touch .ush_menu_1 #menu-item-2228.w-nav-item.level_1:hover .w-nav-title::after {
  opacity: 0;
}

@media screen and (max-width: 1280px) {
    .no-touch .ush_menu_1 #menu-item-2228.w-nav-item.level_1:hover > a:not(.w-btn) {
      background: #0b2c4c!important;
      border-color: #0b2c4c!important;
      color: #ffffff !important;
      transform: translateY(-2px);
      transition: 200ms;
    }
        .no-touch .ush_menu_1 #menu-item-2228.w-nav-item.level_1:hover .w-nav-title::after {
      opacity: 0;
    }
}

#menu-item-36 .w-nav-anchor.level_1 {
  background: none !important;
}


/* Animazione menu footer condivisa */
.menu-footer li {
  transition: transform 300ms ease;
}

.menu-footer li:hover {
  transform: translateX(5px);
}
