:root {
  --lwp-primary: #1b1464;
  --lwp-primary-dark: #140f4d;
  --lwp-primary-soft: #eef0fa;
  --lwp-text: #1d1d2b;
  --lwp-muted: #5c5b73;
  --lwp-border: #dfe3ef;
  --lwp-shadow: 0 18px 36px rgba(10, 16, 48, 0.08);
  --lwp-shadow-strong: 0 20px 40px rgba(10, 16, 48, 0.14);
  --lwp-focus: rgba(27, 20, 100, 0.24);
}

a:where(:not(.wp-element-button)) {
  text-decoration: none !important;
}

.et_pb_button,
.et_pb_promo_button,
.trova-filiale .dnxt-button-main {
  border-radius: 0 !important;
}

.trova-filiale .dnxt-button-main {
  background: var(--lwp-primary) !important;
  border-color: var(--lwp-primary) !important;
  box-shadow: none !important;
}

.trova-filiale .dnxt-button-main:hover {
  background: var(--lwp-primary-dark) !important;
  border-color: var(--lwp-primary-dark) !important;
}

.annuncio-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 42px;
  row-gap: 10px;
  align-items: center;
  margin-bottom: 0;
  padding: 36px 0 40px;
  border: 0;
  border-bottom: 1px solid #2b2b2b;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.annuncio-card h3 {
  grid-column: 1;
  margin: 0;
  line-height: 1.18;
}

.annuncio-card h3 a {
  color: var(--lwp-primary);
  font-size: clamp(21px, 1.35vw, 27px);
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.annuncio-card h3 a:hover {
  color: var(--lwp-primary-dark);
}

.annuncio-settore {
  display: inline-block;
  margin-bottom: 8px;
  padding: 6px 12px;
  border-radius: 0;
  background: var(--lwp-primary);
  color: #ffffff;
  font-size: 14px;
  text-transform: uppercase;
}

.annuncio-subtitle {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  grid-column: 1;
  margin: 0;
  padding-bottom: 0;
  color: var(--lwp-primary);
  font-size: 17px;
  line-height: 1.4;
}

.annuncio-subtitle span {
  display: inline-flex;
  align-items: center;
}

.annuncio-excerpt {
  margin-top: 22px;
  margin-bottom: 32px;
  color: var(--lwp-text);
  line-height: 1.7;
}

.annuncio-link-detail {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  min-height: 58px;
  padding: 0 28px;
  border-radius: 0;
  background: var(--lwp-primary);
  color: #ffffff;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.annuncio-link-detail:hover {
  background: var(--lwp-primary-dark);
  color: #ffffff;
}

.annuncio-footer {
  display: flex;
  grid-column: 2;
  grid-row: 1 / 3;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}

.annuncio-date {
  margin-left: auto;
  color: var(--lwp-primary);
  font-size: 14px;
  line-height: 1.4;
}

.cerca-lavoro-list .annuncio-settore {
  display: none !important;
}

body.single-offerte-di-lavoro .et-l--body > .et_pb_section:first-child {
  background: var(--lwp-primary) !important;
  padding-top: 64px;
  padding-bottom: 58px;
}

body.single-offerte-di-lavoro
  .et-l--body
  > .et_pb_section:first-child
  .et_pb_row,
body.single-annuncio-di-lavoro
  .et-l--body
  > .et_pb_section:first-child
  .et_pb_row,
body.single-annuncio-di-lavoro
  .et-l--body
  > .et_pb_section:not(:first-child)
  .et_pb_row,
body.single-offerte-di-lavoro
  .et-l--body
  > .et_pb_section:not(:first-child)
  .et_pb_row {
  width: 90%;
  max-width: 1240px;
}

body.single-offerte-di-lavoro
  .et-l--body
  > .et_pb_section:first-child
  .et_pb_heading
  h1 {
  color: #ffffff !important;
  font-size: clamp(36px, 4vw, 54px);
  line-height: 1.08;
  letter-spacing: 0;
}

body.single-offerte-di-lavoro .et-l--body > .et_pb_section:first-child h3 {
  color: #ffffff;
  font-size: clamp(25px, 2.45vw, 36px);
  line-height: 1.16;
  letter-spacing: 0;
}

body.single-offerte-di-lavoro
  .et-l--body
  > .et_pb_section:first-child
  .et_pb_text,
body.single-offerte-di-lavoro
  .et-l--body
  > .et_pb_section:first-child
  .et_pb_text
  p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 16px;
  line-height: 1.62;
}

body.single-offerte-di-lavoro
  .et-l--body
  > .et_pb_section:first-child
  .et_pb_text
  strong {
  color: #ffffff;
}

.ework-single-annuncio-header {
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #ffffff;
  max-width: 860px;
}

.ework-single-annuncio-header__meta-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 26px;
  row-gap: 8px;
}

.ework-single-annuncio-header__meta-row
  + .ework-single-annuncio-header__meta-row {
  margin-top: 6px;
}

.ework-single-annuncio-header__item {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: nowrap;
  color: #ffffff;
  font-size: 15px;
  line-height: 1.35;
}

.ework-single-annuncio-header__icon {
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
  color: #ffffff;
  margin-top: 0;
}

.ework-single-annuncio-header__icon svg,
.ework-single-annuncio-header__icon img {
  width: 100%;
  height: 100%;
  display: block;
}

.ework-single-annuncio-header__icon svg {
  fill: currentColor;
  stroke: currentColor;
}

.ework-single-annuncio-header__icon img {
  filter: brightness(0) invert(1);
}

.ework-single-annuncio-header__label {
  font-weight: 500;
  color: #ffffff;
}

.ework-single-annuncio-header__value {
  color: #ffffff;
  font-weight: 500;
}

.ework-single-annuncio-header__divider {
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  margin: 14px 0 18px;
}

.ework-single-annuncio-header__cta-wrap {
  margin-top: 0;
}

.ework-single-annuncio-header__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 30px;
  border-radius: 0;
  border: none;
  background: #ffffff;
  color: var(--lwp-primary);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 0 rgba(0, 0, 0, 0.18);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.ework-single-annuncio-header__cta:hover {
  background: #ffffff;
  color: var(--lwp-primary);
  transform: translateY(1px);
  box-shadow: 0 7px 0 rgba(0, 0, 0, 0.16);
}

body.single-annuncio-di-lavoro .et-l--body > .et_pb_section:first-child {
  background: var(--lwp-primary) !important;
  padding-top: 72px;
  padding-bottom: 52px;
}

body.single-annuncio-di-lavoro
  .et-l--body
  > .et_pb_section:first-child
  .et_pb_heading
  h1 {
  color: #ffffff !important;
  font-size: clamp(42px, 5vw, 56px);
  line-height: 1.06;
  text-transform: uppercase;
  margin-bottom: 20px;
}

#ework-single-annuncio-logo {
  border: 1px solid var(--lwp-border);
  border-radius: 0;
  background: #ffffff;
  padding: 18px;
  box-shadow: var(--lwp-shadow);
}

.ework-single-annuncio-title {
  color: #ffffff !important;
}

.ework_annunci-search {
  display: flex;
  align-items: stretch;
  gap: 16px;
}

.ework_annunci-search .facetwp-search-wrap {
  flex: 1 1 0;
  min-width: 0;
}

.ework_annunci-search .facetwp-search {
  width: 100%;
  min-height: 54px;
  padding: 0 22px;
  border: none;
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
  box-sizing: border-box;
  color: var(--lwp-primary);
  font-size: 16px;
}

.ework_annunci-search .facetwp-search::placeholder {
  color: rgba(27, 20, 100, 0.68);
}

.ework_annunci-search__button,
.ework_annunci-search .facetwp-search-submit,
.ework_ruolo-luogo-search__actions .ework_ruolo-luogo-search__button {
  min-height: 54px;
  padding: 0 34px;
  border: none;
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
  color: var(--lwp-primary);
  cursor: pointer;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.ework_annunci-search__button:hover,
.ework_annunci-search .facetwp-search-submit:hover,
.ework_ruolo-luogo-search__button:hover {
  background: var(--lwp-primary-soft);
  color: var(--lwp-primary);
}

.ework_annunci-search__button,
.ework_annunci-search .facetwp-search-submit {
  flex: 0 0 clamp(180px, 22%, 250px);
}

.ework_annunci-search__button:focus-visible,
.ework_annunci-search .facetwp-search-submit:focus-visible,
.ework_ruolo-luogo-search__button:focus-visible,
.annuncio-link-detail:focus-visible,
.ework-region-provinces__list a:focus-visible,
.ework-single-annuncio-header__cta:focus-visible {
  outline: 3px solid var(--lwp-focus);
  outline-offset: 2px;
}

@media (max-width: 640px) {
  .ework_annunci-search {
    flex-direction: column;
  }

  .ework_annunci-search__button,
  .ework_annunci-search .facetwp-search-submit {
    width: 100%;
    flex: 1 1 auto;
  }

  .facetwp-facet-ricerca_libera_annuncio_di_lavoro input.facetwp-search {
    min-width: 0 !important;
  }
}

.ework_ruolo-luogo-search {
  width: 100%;
}

.ework_ruolo-luogo-search__form {
  display: flex;
  align-items: stretch;
  gap: 16px;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.ework_ruolo-luogo-search__field {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  background: #ffffff;
}

.ework_ruolo-luogo-search__field label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.ework_ruolo-luogo-search__select {
  width: 100%;
  min-height: 54px;
  padding: 0 48px 0 22px;
  border: none !important;
  background: transparent;
  box-sizing: border-box;
  color: var(--lwp-primary);
  font-size: 16px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.ework_ruolo-luogo-search__select:focus {
  outline: none;
  border-color: var(--lwp-primary);
  box-shadow: none;
}

.ework_ruolo-luogo-search__form.ework-select2-ready
  .ework_ruolo-luogo-search__field::after {
  display: none;
}

.ework_ruolo-luogo-search__form .select2-container {
  width: 100% !important;
}

.ework_ruolo-luogo-search__form
  .select2-container--default
  .select2-selection--single {
  height: 54px;
  border: none;
  border-radius: 0;
  background: #ffffff;
  box-sizing: border-box;
}

.ework_ruolo-luogo-search__form
  .select2-container--default
  .select2-selection--single
  .select2-selection__rendered {
  padding: 0 48px 0 22px;
  color: var(--lwp-primary) !important;
  font-size: 16px;
  line-height: 54px;
}

.ework_ruolo-luogo-search__form
  .select2-container--default
  .select2-selection--single
  .select2-selection__placeholder {
  color: var(--lwp-primary) !important;
  opacity: 0.92;
}

.ework_ruolo-luogo-search__form
  .select2-container--default
  .select2-selection--single
  .select2-selection__arrow {
  height: 54px;
  right: 16px;
}

.ework_ruolo-luogo-search__field::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 0;
  height: 0;
  border-right: 5px solid transparent;
  border-left: 5px solid transparent;
  border-top: 6px solid var(--lwp-primary);
  transform: translateY(-50%);
  pointer-events: none;
}

.ework_ruolo-luogo-search__actions {
  flex: 0 0 clamp(180px, 22%, 250px);
  background: transparent;
}

.ework_ruolo-luogo-search__button {
  width: 100%;
  min-height: 54px;
  min-width: 0;
  padding: 0 34px;
}

@media (max-width: 640px) {
  .ework_ruolo-luogo-search__form {
    flex-direction: column;
  }

  .ework_ruolo-luogo-search__actions {
    flex: 1 1 auto;
    width: 100%;
  }

  .ework_ruolo-luogo-search__button {
    width: 100%;
  }
}

.select2-dropdown {
  border: 1px solid var(--lwp-border);
  border-radius: 0;
  box-shadow: var(--lwp-shadow);
}

.select2-search--dropdown .select2-search__field {
  border: 1px solid var(--lwp-border);
  border-radius: 0;
}

.select2-container--default
  .select2-results__option--highlighted[aria-selected] {
  background: var(--lwp-primary);
  color: #ffffff;
}

/* Fix specifico Select2 ruolo/luogo: evita eredità aggressive del tema su input search */
.select2-dropdown {
  overflow: hidden;
}

.select2-search__field[aria-controls="select2-ework_ruolo-select-results"],
.select2-search__field[aria-controls="select2-ework_luogo-select-results"] {
  width: 100% !important;
  height: 42px !important;
  min-height: 42px !important;
  margin: 0 !important;
  padding: 0 12px !important;
  border: 1px solid var(--lwp-border) !important;
  border-radius: 0 !important;
  background: #ffffff !important;
  box-shadow: none !important;
  color: var(--lwp-primary) !important;
  font-size: 16px !important;
  line-height: 40px !important;
}

.select2-results__options#select2-ework_ruolo-select-results,
.select2-results__options#select2-ework_luogo-select-results {
  max-height: 260px !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow-y: auto !important;
}

#select2-ework_ruolo-select-results .select2-results__option,
#select2-ework_luogo-select-results .select2-results__option {
  min-height: 0 !important;
  padding: 10px 12px !important;
  background: #ffffff !important;
  color: var(--lwp-primary) !important;
  font-size: 16px !important;
  line-height: 1.35 !important;
}

#select2-ework_ruolo-select-results
  .select2-results__option[aria-selected="true"],
#select2-ework_luogo-select-results
  .select2-results__option[aria-selected="true"] {
  background: #f2f4f8;
  color: var(--lwp-primary);
}

#select2-ework_ruolo-select-results
  .select2-results__option--highlighted[aria-selected],
#select2-ework_luogo-select-results
  .select2-results__option--highlighted[aria-selected] {
  background: var(--lwp-primary) !important;
  color: #ffffff !important;
}

.facetwp-facet-ricerca_libera_annuncio_di_lavoro .facetwp-icon {
  display: none;
}

.facetwp-facet-ricerca_libera_annuncio_di_lavoro {
  margin-bottom: 0 !important;
}

.facetwp-facet-ricerca_libera_annuncio_di_lavoro > label,
.facetwp-facet-ricerca_libera_annuncio_di_lavoro .facetwp-label,
.facetwp-facet-ricerca_libera_annuncio_di_lavoro .facetwp-facet-title {
  display: none !important;
}

.facetwp-facet-ricerca_libera_annuncio_di_lavoro input.facetwp-search {
  min-width: 0 !important;
}

.ework-region-provinces {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 0.9fr);
  gap: 32px;
  align-items: center;
  padding: 52px 56px;
  background: var(--lwp-primary);
  color: #ffffff;
}

.ework-region-provinces.ework-region-provinces--no-media {
  grid-template-columns: minmax(0, 1fr);
}

.ework-region-provinces__title {
  margin: 0 0 12px;
  color: #ffffff;
  font-size: 30px;
  line-height: 1.2;
}

.ework-region-provinces__subtitle {
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
}

.ework-region-provinces__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 22px;
  margin: 0;
  padding: 0 !important;
  list-style: none !important;
}

.ework-region-provinces__list a {
  color: #ffffff;
  font-size: 15px;
  text-decoration: underline;
}

.ework-region-provinces__list a:hover {
  color: rgba(255, 255, 255, 0.74);
}

.ework-region-provinces__media {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.ework-region-provinces__image {
  display: block;
  width: 320px;
  max-width: 100%;
  height: auto;
}

@media (max-width: 980px) {
  .annuncio-card {
    column-gap: 28px;
  }

  .annuncio-card h3 a {
    font-size: 23px;
  }

  .annuncio-subtitle {
    font-size: 16px;
  }

  .annuncio-link-detail {
    min-width: 180px;
    min-height: 54px;
    padding: 0 28px;
    font-size: 16px;
  }

  body.single-offerte-di-lavoro .et-l--body > .et_pb_section:first-child {
    padding-top: 56px;
    padding-bottom: 50px;
  }

  .ework-single-annuncio-header__meta-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ework-region-provinces {
    grid-template-columns: 1fr;
    padding: 40px 36px;
  }

  .ework-region-provinces__media {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .annuncio-card {
    grid-template-columns: 1fr;
    row-gap: 18px;
    padding: 30px 0 34px;
  }

  .annuncio-card h3 a {
    font-size: 21px;
  }

  .annuncio-footer {
    grid-column: 1;
    grid-row: auto;
    align-items: stretch;
    justify-content: flex-start;
  }

  .annuncio-link-detail {
    width: 100%;
    min-height: 58px;
    padding: 0 24px;
  }

  .annuncio-date {
    margin-left: 0;
  }

  .ework-single-annuncio-header {
    padding: 0;
  }

  .ework-single-annuncio-header__meta-row {
    grid-template-columns: 1fr;
    column-gap: 16px;
  }

  .ework-region-provinces {
    padding: 30px 20px;
  }

  .ework-region-provinces__title {
    font-size: 24px;
  }

  .ework-region-provinces__list {
    grid-template-columns: 1fr;
  }
}

.ework-facetwp-query {
  display: block;
  margin-bottom: 12px;
}

.cerca-lavoro-title h1 {
  font-size: clamp(36px, 4.4vw, 58px) !important;
  line-height: 1.08 !important;
  letter-spacing: 0 !important;
  padding-bottom: 0 !important;
}

.facetwp-reset {
  border: none !important;
  background: transparent !important;
  font-size: 14px !important;
  font-style: italic !important;
  text-decoration: underline !important;
}

#select2-ework_ruolo-select-container,
#select2-ework_luogo-select-container {
  text-align: left;
}

.lwp-portale-annunci-content-section * {
  color: black !important;
}

.lwp-portale-annunci-content-section h3,
.lwp-annunci-full-width-section h5 {
  margin-top: 0;
  letter-spacing: 0;
}

.lwp-portale-annunci-content-section h3 {
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.16;
}

.lwp-portale-annunci-content-section p {
  font-size: 17px;
  line-height: 1.62;
}

.lwp-annunci-full-width-section h5 {
  margin-bottom: 20px;
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.18;
}

.annuncio-title,
.annuncio-title h1 {
  color: #ffffff !important;
  font-size: clamp(36px, 4.4vw, 58px) !important;
  line-height: 1.08 !important;
  letter-spacing: 0 !important;
}

.lwp-annunci-full-width-section {
  width: min(90%, 1480px);
  max-width: none;
  margin: 0 auto;
}

.background-image-right {
  height: 100%;
}
