/* Correzioni responsive aggiuntive per i contenuti generati dal tema. */
#cv-sociale-pronto-intervento {
  width: 100%;
  min-width: 0;
}

/* Popup corso volontari novembre 2026. */
body.cv-popup-open {
  overflow: hidden;
}

.cv-recruitment-popup[hidden] {
  display: none !important;
}

.cv-recruitment-popup {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.cv-recruitment-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 23, 48, .82);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.cv-recruitment-popup__panel {
  position: relative;
  z-index: 1;
  width: min(92vw, 620px);
  max-height: calc(100dvh - 2rem);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .42);
  overflow: hidden;
  animation: cv-popup-enter .24s ease-out both;
}

.cv-recruitment-popup__link {
  display: block;
  line-height: 0;
}

.cv-recruitment-popup__link img {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(100dvh - 2rem);
  object-fit: contain;
  background: #fff;
}

.cv-recruitment-popup__close {
  position: absolute;
  z-index: 2;
  top: .65rem;
  right: .65rem;
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 2px solid #17324d;
  border-radius: 999px;
  background: rgba(255, 255, 255, .96);
  color: #17324d;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .24);
  padding: 0;
  line-height: 0;
}

.cv-recruitment-popup__close svg {
  display: block;
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  fill: none;
  pointer-events: none;
}

.cv-recruitment-popup__close:hover {
  background: #17324d;
  color: #fff;
}

.cv-popup-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes cv-popup-enter {
  from {
    opacity: 0;
    transform: translateY(12px) scale(.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 640px) {
  .cv-recruitment-popup {
    padding: .55rem;
  }

  .cv-recruitment-popup__panel {
    width: min(96vw, 520px);
    max-height: calc(100dvh - 1.1rem);
    border-radius: 8px;
  }

  .cv-recruitment-popup__link img {
    max-height: calc(100dvh - 1.1rem);
  }

  .cv-recruitment-popup__close {
    top: .4rem;
    right: .4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cv-recruitment-popup__panel {
    animation: none;
  }
}

#cv-sociale-pronto-intervento .cv-social-card {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

#cv-sociale-pronto-intervento .cv-social-card h2,
#cv-sociale-pronto-intervento .cv-social-card p,
#cv-sociale-pronto-intervento .cv-social-card a {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: normal;
  white-space: normal;
}

@media (max-width: 640px) {
  #cv-sociale-pronto-intervento .cv-social-card {
    padding: 1.1rem;
  }

  #cv-sociale-pronto-intervento .cv-social-card .kicker {
    font-size: .69rem;
    line-height: 1.35;
    letter-spacing: .14em;
  }

  #cv-sociale-pronto-intervento .cv-social-card h2 {
    font-size: 1.25rem;
    line-height: 1.3;
  }

  #cv-sociale-pronto-intervento .cv-social-card p:not(.kicker) {
    font-size: .9375rem;
    line-height: 1.55;
  }

  #cv-sociale-pronto-intervento .cv-social-card a {
    font-size: .9375rem;
    line-height: 1.4;
  }
}
