.adf-candidati {
  --adf-navy: #17345a;
  --adf-navy-dark: #0d1f38;
  --adf-red: #e73b1e;
  --adf-red-dark: #c52e14;
  --adf-blue-light: #e8f0f7;
  --adf-blue-mid: #c8dded;
  --adf-white: #fff;
  --adf-muted: rgba(23, 52, 90, .52);
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: clamp(80px, 10vh, 130px) 0;
  background: #f5f9fd;
  overflow: hidden;
  font-family: Poppins, Arial, sans-serif;
}

.adf-candidati *,
.adf-candidati *::before,
.adf-candidati *::after {
  box-sizing: border-box;
}

.adf-candidati a {
  text-decoration: none;
}

.adf-cand-wrap {
  position: relative;
  z-index: 1;
  width: min(100%, 1280px);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 56px);
}

.adf-cand-bg1,
.adf-cand-bg2,
.adf-cand-bg3 {
  position: absolute;
  pointer-events: none;
  border-radius: 999px;
  filter: blur(58px);
  opacity: .65;
  animation: adf-cand-float 10s ease-in-out infinite;
}

.adf-cand-bg1 {
  width: 360px;
  height: 360px;
  top: -130px;
  left: -110px;
  background: rgba(232, 59, 30, .14);
}

.adf-cand-bg2 {
  width: 460px;
  height: 460px;
  right: -160px;
  bottom: -170px;
  background: rgba(23, 52, 90, .13);
  animation-delay: -3s;
}

.adf-cand-bg3 {
  width: 300px;
  height: 300px;
  left: 44%;
  top: 38%;
  background: rgba(200, 221, 237, .36);
  animation-delay: -6s;
}

@keyframes adf-cand-float {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(18px, -22px, 0) scale(1.06);
  }
}

.adf-c-hd {
  max-width: 680px;
  margin: 0 auto clamp(34px, 5vw, 58px);
  text-align: center;
}

.adf-eyebrow {
  display: block;
  margin-bottom: 12px;
  color: var(--adf-red);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 3px;
  line-height: 1.2;
  text-transform: uppercase;
}

.adf-s-title {
  margin: 0;
  color: var(--adf-navy);
  font-size: clamp(34px, 5vw, 62px);
  font-weight: 900;
  line-height: .95;
  text-transform: uppercase;
  letter-spacing: 0;
}

.adf-s-body {
  margin: 18px auto 0;
  max-width: 620px;
  color: var(--adf-muted);
  font-size: clamp(14px, 1.4vw, 17px);
  font-weight: 500;
  line-height: 1.75;
}

.adf-c-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 18px;
}

.adf-ccard {
  display: block;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  background: var(--adf-white);
  border: 0;
  border-radius: 14px;
  box-shadow: 0 2px 14px rgba(23, 52, 90, .07);
  text-align: left;
  transition: transform .3s ease, box-shadow .3s ease;
}

.adf-ccard:hover,
.adf-ccard:focus-visible {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(23, 52, 90, .14);
  outline: none;
}

.adf-cphoto {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: linear-gradient(150deg, var(--adf-navy), #2b3f7e);
}

.adf-cphoto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.adf-cph-ph {
  opacity: .22;
}

.adf-cph-ph svg {
  width: 52px;
  height: 52px;
  fill: var(--adf-white);
}

.adf-cov {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(to top, rgba(23, 52, 90, .88) 0%, transparent 55%);
  transition: opacity .3s ease;
}

.adf-covtxt {
  position: absolute;
  bottom: 14px;
  left: 16px;
  color: var(--adf-white);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 2px;
  line-height: 1.2;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity .3s ease .05s;
}

.adf-ccard:hover .adf-cov,
.adf-ccard:focus-visible .adf-cov,
.adf-ccard:hover .adf-covtxt,
.adf-ccard:focus-visible .adf-covtxt {
  opacity: 1;
}

.adf-cinfo {
  padding: 16px 16px 14px;
}

.adf-cnome {
  margin: 0 0 4px;
  color: var(--adf-navy);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
  text-transform: uppercase;
}

.adf-cforo {
  margin: 0 0 11px;
  color: var(--adf-red);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 1.5px;
  line-height: 1.3;
  text-transform: uppercase;
}

.adf-csocs {
  display: flex;
  gap: 7px;
}

.adf-csb {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: var(--adf-blue-light);
  border: none;
  transition: background .2s ease, transform .25s ease;
}

.adf-csb:hover,
.adf-csb:focus-visible {
  background: var(--adf-red);
  transform: translateY(-3px) scale(1.1);
  outline: none;
}

.adf-csb svg {
  width: 14px;
  height: 14px;
  fill: var(--adf-navy);
  transition: fill .2s ease;
}

.adf-csb:hover svg,
.adf-csb:focus-visible svg {
  fill: var(--adf-white);
}

.adf-mbg {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, .65);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}

.adf-mbg.open {
  opacity: 1;
  pointer-events: all;
}

.adf-mbox {
  position: relative;
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--adf-white);
  border-radius: 20px;
  transform: translateY(22px) scale(.97);
  transition: transform .35s cubic-bezier(.34, 1.56, .64, 1);
}

.adf-mbg.open .adf-mbox {
  transform: none;
}

.adf-mtop {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 26px;
  padding: 28px;
  background: var(--adf-blue-light);
  border-radius: 20px 20px 0 0;
}

.adf-mpic {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 180px;
  height: 220px;
  overflow: hidden;
  background: linear-gradient(150deg, var(--adf-navy), #2b3f7e);
  border-radius: 12px;
}

.adf-mpic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.adf-mpic svg {
  width: 58px;
  height: 58px;
  fill: var(--adf-white);
  opacity: .25;
}

.adf-mbadge {
  display: inline-block;
  margin-bottom: 14px;
  padding: 5px 12px;
  border-radius: 3px;
  background: var(--adf-red);
  color: var(--adf-white);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.5px;
  line-height: 1.2;
  text-transform: uppercase;
}

.adf-mnome {
  margin: 0 0 5px;
  color: var(--adf-navy);
  font-size: clamp(18px, 2.8vw, 26px);
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
}

.adf-mforo {
  margin: 0 0 14px;
  color: var(--adf-red);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  line-height: 1.3;
  text-transform: uppercase;
}

.adf-mshort {
  margin: 0;
  color: var(--adf-muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.65;
}

.adf-msocs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.adf-msoc {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: 1px solid rgba(23, 52, 90, .1);
  border-radius: 7px;
  background: var(--adf-white);
  color: var(--adf-navy);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1.2;
  text-transform: uppercase;
  transition: all .2s ease;
}

.adf-msoc:hover,
.adf-msoc:focus-visible {
  background: var(--adf-navy);
  color: var(--adf-white);
  outline: none;
}

.adf-msoc svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
}

.adf-mbody {
  padding: 28px;
}

.adf-mbody p {
  margin: 0;
  color: var(--adf-muted);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.8;
}

.adf-mx {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--adf-white);
  color: var(--adf-navy);
  box-shadow: 0 2px 12px rgba(0, 0, 0, .12);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: all .2s ease;
}

.adf-mx:hover,
.adf-mx:focus-visible {
  background: var(--adf-red);
  color: var(--adf-white);
  outline: none;
}

.adf-empty {
  max-width: 680px;
  margin: 0 auto;
  padding: 22px;
  border-radius: 14px;
  background: var(--adf-white);
  color: var(--adf-muted);
  font-size: 14px;
  text-align: center;
  box-shadow: 0 2px 14px rgba(23, 52, 90, .07);
}

.adf-candidati-empty {
  padding: 22px;
  border-radius: 14px;
  background: #fff;
  color: rgba(23, 52, 90, .52);
  font-family: Poppins, Arial, sans-serif;
  font-size: 14px;
  text-align: center;
  box-shadow: 0 2px 14px rgba(23, 52, 90, .07);
}

@media (max-width: 1024px) {
  .adf-c-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 760px) {
  .adf-c-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .adf-mtop {
    grid-template-columns: 1fr;
  }

  .adf-mpic {
    width: 100%;
    height: 230px;
  }
}

@media (max-width: 480px) {
  .adf-c-grid {
    grid-template-columns: 1fr !important;
  }

  .adf-cand-wrap {
    padding: 0 20px;
  }

  .adf-mbg {
    padding: 14px;
  }

  .adf-mtop,
  .adf-mbody {
    padding: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .adf-candidati *,
  .adf-candidati *::before,
  .adf-candidati *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
