/* Integrazione con BeTheme - Variabili CSS */
:root {
  --mfn-woo-body-color: #5f5f5f;
  --mfn-woo-heading-color: #131313;
  --mfn-woo-themecolor: #ff632e;
  --mfn-woo-bg-themecolor: #ff632e;
  --mfn-woo-border-themecolor: #ff632e;
  --mfn-clients-tiles-hover: #ff632e;
  --mfn-sliding-box-bg: #ff632e;
  --mfn-column-gap-left: 12px;
  --mfn-column-gap-bottom: 30px;
}

.aw_pager .pager .pages {
  display: inline-block;
  margin: 20px 30px 0;
  padding: 4px 3px;
  background-color: #f8f8f8;
}

.aw_pager .pager .pages a,
.aw_pager .pager .pages span.page-numbers {
  display: inline-block;
  margin: 0 2px;
  min-width: 30px;
  height: 30px;
  line-height: 30px;
  text-align: center;
}

.aw_pager .pager .pages .current {
  background-color: #0095eb;
  color: #fff;
}

.aw_pager .pager .pages a:hover {
  background-color: #e9e9e9;
  text-decoration: none;
}

.post-urgente {
  background-color: #ff4444;
  color: white;
  padding: 5px 10px;
  display: inline-block;
  margin-bottom: 15px;
  border-radius: 3px;
}

.post-title h1 {
  margin-bottom: 20px;
  font-size: 2em;
}

.post-meta {
  margin-bottom: 30px;
  padding: 15px;
  background-color: #f8f8f8;
  border-radius: 5px;
}

.post-content {
  margin-bottom: 30px;
  line-height: 1.6;
}

.post-external-link {
  margin: 30px 0;
  text-align: center;
}

.share-section {
  margin-top: 30px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 10px;
}

.share-buttons {
  display: flex;
  gap: 15px;
  margin-top: 15px;
}

.share-button {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: white;
  text-decoration: none;
  transition: transform 0.2s;
}

.share-button:hover {
  transform: scale(1.1);
}

.share-button.facebook {
  background-color: #3b5998;
}

.share-button.linkedin {
  background-color: #0077b5;
}

.share-button.twitter {
  background-color: #1da1f2;
}

.related-offers {
  margin-top: 30px;
}

.related-offer-item {
  padding: 15px 0;
  border-bottom: 1px solid #eee;
}

.related-offer-item:last-child {
  border-bottom: none;
}

.related-offer-item h5 {
  margin: 0 0 5px 0;
}

.related-offer-item a {
  color: var(--mfn-woo-themecolor);
  text-decoration: none;
  transition: color 0.3s;
}

.related-offer-item a:hover {
  color: var(--mfn-clients-tiles-hover);
}

.job-header {
  background: linear-gradient(
    135deg,
    var(--mfn-woo-themecolor) 0%,
    var(--mfn-clients-tiles-hover) 100%
  );
  padding: 40px 0;
  margin-bottom: 40px;
}

.job-title-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.job-title {
  font-size: 2.5em;
  color: #fff;
  margin-bottom: 15px;
}

.job-meta {
  display: flex;
  gap: 20px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1em;
}

.job-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.job-meta-item i {
  color: #fff;
}

.source-meta-item {
  width: 140px;
}

.source-meta-item img {
  object-fit: contain;
  width: 100%;
  height: 100%;
}

.job-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
}

.job-main-content {
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
  margin-bottom: 40px;
}

.job-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.job-card {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.job-card h3 {
  color: var(--mfn-woo-themecolor);
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--mfn-woo-themecolor);
}

.job-urgent {
  background: var(--mfn-woo-themecolor);
  color: white;
  padding: 8px 15px;
  border-radius: 5px;
  display: inline-block;
  margin-bottom: 20px;
  font-weight: 500;
}

.job-description {
  line-height: 1.8;
  color: var(--mfn-woo-body-color);
}

.job-requirements {
  margin-top: 30px;
}

.job-requirements h4 {
  color: var(--mfn-woo-themecolor);
  margin-bottom: 15px;
}

.job-requirements ul {
  list-style: none;
  padding: 0;
}

.job-requirements li {
  padding: 8px 0;
  padding-left: 25px;
  position: relative;
}

.job-requirements li:before {
  content: "•";
  color: var(--mfn-woo-themecolor);
  position: absolute;
  left: 0;
}

.job-map-section {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid var(--mfn-tabs-border-color);
}

.job-map-section h3 {
  color: var(--mfn-woo-themecolor);
  margin-bottom: 20px;
}

#map {
  height: 400px;
  border-radius: 10px;
  margin-bottom: 20px;
  border: 1px solid var(--mfn-tabs-border-color);
}

#job-application-form .form-group input,
#job-application-form .form-group textarea {
  width: 100%;
  max-width: 100%;
}

#job-application-form .form-group input[type="checkbox"],
#candidatura-form .form-group input[type="checkbox"] {
  margin-top: 3px !important;
  width: 18px !important;
  height: 18px !important;
  cursor: pointer !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  border: 2px solid #ccc !important;
  border-radius: 4px !important;
  background-color: white !important;
  position: relative !important;
  transition: all 0.2s ease !important;
}

#job-application-form .form-group input[type="checkbox"]:checked,
#candidatura-form .form-group input[type="checkbox"]:checked {
  background-color: var(--mfn-woo-themecolor) !important;
  border-color: var(--mfn-woo-themecolor) !important;
}

#job-application-form .form-group input[type="checkbox"]:checked::after,
#candidatura-form .form-group input[type="checkbox"]:checked::after {
  content: "";
  position: absolute !important;
  left: 12px !important;
  top: 0 !important;
  width: 12px !important;
  height: 25px !important;
  border: solid white !important;
  border-width: 0 2px 2px 0 !important;
  transform: rotate(45deg) !important;
}

.job-apply-form {
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
  margin-bottom: 30px;
  min-width: 300px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #333;
  font-weight: 500;
  font-size: 1em;
}

.form-group input,
.form-group textarea {
  padding: 12px 15px;
  border: 2px solid rgba(95, 95, 95, 0.15) !important;
  border-radius: 8px;
  font-size: 1em;
  transition: all 0.3s ease;
  background-color: #fff;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--mfn-woo-themecolor);
  box-shadow: 0 0 0 3px rgba(var(--mfn-woo-themecolor-rgb), 0.1);
  outline: none;
}

.form-group input.error,
.form-group textarea.error {
  border-color: #dc3545;
  background-color: #fff8f8;
}

.error-message {
  color: #dc3545;
  font-size: 0.85em;
  margin-top: 5px;
  display: block;
}

.form-submit {
  margin-top: 30px;
  text-align: center;
}

.submit-button {
  padding: 12px 30px;
  background: var(--mfn-woo-themecolor);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.submit-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.form-group input[type="file"] {
  padding: 12px;
  border: 2px dashed #e1e1e1;
  background-color: #f8f9fa;
  cursor: pointer;
  transition: all 0.3s ease;
}

.form-group input[type="file"]:hover {
  border-color: var(--mfn-woo-themecolor);
  background-color: #f0f0f0;
}

.form-group small {
  display: block;
  margin-top: 5px;
  color: #666;
  font-size: 0.85em;
}

.form-message {
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 8px;
  font-size: 0.95em;
  animation: slideIn 0.3s ease-out;
  margin-top: 1rem;
}

.form-message.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.form-message.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

@keyframes slideIn {
  from {
    transform: translateY(-10px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Responsive Design */
@media (max-width: 1200px) {
  .job-content {
    max-width: 960px;
  }
}

@media (max-width: 992px) {
  .job-content {
    max-width: 720px;
  }

  .job-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .job-content {
    grid-template-columns: 1fr;
    max-width: 540px;
  }

  .job-main-content.switch {
    order: 2;
  }

  .job-card.switch {
    order: 1;
  }

  .job-meta {
    flex-direction: column;
    gap: 10px;
  }

  #map {
    height: 300px;
  }

  .job-title {
    font-size: 1.8em;
  }

  .job-header {
    padding: 30px 0;
  }

  .job-apply-form {
    padding: 20px;
  }

  .form-group input,
  .form-group textarea {
    padding: 10px;
    font-size: 0.95em;
  }

  .form-group label {
    font-size: 0.9em;
  }

  .submit-button {
    width: 100%;
    padding: 12px 20px;
  }
}

@media (max-width: 576px) {
  .job-content {
    padding: 0 15px;
  }

  .job-main-content.switch {
    order: 2;
  }

  .job-card.switch {
    order: 1;
  }

  .job-main-content,
  .job-card {
    padding: 20px;
  }

  .job-title {
    font-size: 1.6em;
  }

  .job-meta {
    font-size: 1em;
  }

  .share-buttons {
    justify-content: center;
  }
}

/* Stili per il gruppo del telefono */

.phone-input-group {
  display: flex;
  gap: 10px;
}

.phone-prefix {
  width: 120px;
  padding: 12px;
  border: 1px solid var(--mfn-tabs-border-color);
  border-radius: 5px;
  background-color: #fff;
}

.phone-number {
  flex: 1;
}

/* Stili per i select fuori dal form-group */
select:not(.form-group select) {
  width: 100%;
  padding: 12px 18px;
  border: 2px solid rgba(95, 95, 95, 0.15);
  border-radius: 8px;
  background-color: #fff;
  font-size: 15px;
  transition: all 0.3s ease;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 16px;
  padding-right: 45px;
  font-family: inherit;
  color: var(--mfn-woo-body-color);
}

select:not(.form-group select):focus {
  border-color: var(--mfn-woo-themecolor);
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 99, 46, 0.1);
  transform: translateY(-1px);
}

select:not(.form-group select):hover {
  border-color: var(--mfn-clients-tiles-hover);
}

/* Stili per i tooltip */
.tooltip {
  position: relative;
  display: inline-block;
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: 200px;
  background-color: #333;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 10px;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}

/* Responsive per i nuovi campi */
@media (max-width: 768px) {
  .phone-input-group {
    flex-direction: column;
    gap: 10px;
  }

  .phone-prefix {
    width: 100%;
  }

  .radio-group {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .help-link {
    margin-left: 0;
    margin-top: 5px;
  }
}

/* Stili per i campi number */
.form-group input[type="number"] {
  width: 100%;
}

.form-group input[type="number"]::-webkit-inner-spin-button,
.form-group input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.form-group input[type="number"] {
  -moz-appearance: textfield;
}

/* Stili per i campi date */
.form-group input[type="date"] {
  position: relative;
}

.form-group input[type="date"]::-webkit-calendar-picker-indicator {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3crect x='3' y='4' width='18' height='18' rx='2' ry='2'%3e%3c/rect%3e%3cline x1='16' y1='2' x2='16' y2='6'%3e%3c/line%3e%3cline x1='8' y1='2' x2='8' y2='6'%3e%3c/line%3e%3cline x1='3' y1='10' x2='21' y2='10'%3e%3c/line%3e%3c/svg%3e");
  background-size: 16px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.form-group input[type="date"]::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
}

/* Animazione per mostrare/nascondere il campo anni esperienza */
.form-group {
  transition: all 0.3s ease;
}

.form-group:not(:visible) {
  margin: 0;
  padding: 0;
  height: 0;
  opacity: 0;
}

/* Stili per la checkbox della privacy */
.privacy-check {
  margin: 20px 0;
}

.checkbox-label {
  display: flex !important;
  align-items: flex-start !important;
  gap: 10px;
  cursor: pointer;
  font-size: 0.95em !important;
  color: #666 !important;
  line-height: 1.4;
}

.checkbox-label input[type="checkbox"] {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.checkbox-label a {
  color: var(--mfn-woo-themecolor);
  text-decoration: none;
}

.checkbox-label a:hover {
  text-decoration: underline;
}

.checkbox-label input[type="checkbox"]:checked + span {
  color: #333;
}

.checkbox-label input[type="checkbox"]:focus {
  outline: 2px solid var(--mfn-woo-themecolor);
  outline-offset: 2px;
}

.form-submit button {
  max-width: 90%;
}

/* Pagina di completamento candidatura*/
.candidato-form {
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.form-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
  margin-bottom: 30px;
  padding: 40px;
  border-left: 4px solid var(--mfn-woo-themecolor);
  position: relative;
  transition: all 0.3s ease;
  width: 100%;
  max-width: 1200px;
}

.form-card:hover {
  box-shadow: 0 4px 30px rgba(255, 99, 46, 0.15);
  transform: translateY(-2px);
}

.form-card h3 {
  margin-top: 0;
  margin-bottom: 25px;
  color: var(--mfn-woo-heading-color);
  font-size: 1.6em;
  font-weight: 600;
  position: relative;
  padding-bottom: 15px;
}

.form-card h3:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: linear-gradient(
    135deg,
    var(--mfn-woo-themecolor) 0%,
    var(--mfn-clients-tiles-hover) 100%
  );
  border-radius: 2px;
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  margin: calc(var(--mfn-column-gap-left, 12px) * -1);
  align-items: flex-start;
}

.form-col {
  padding: var(--mfn-column-gap-left, 12px);
  flex: 1;
  min-width: 280px;
  box-sizing: border-box;
}

.form-col.col-half {
  flex: 0 0 calc(50% - var(--mfn-column-gap-left, 12px) * 2);
}

.form-col.col-third {
  flex: 0 0 calc(33.333% - var(--mfn-column-gap-left, 12px) * 2);
}

.form-col.col-quarter {
  flex: 0 0 calc(25% - var(--mfn-column-gap-left, 12px) * 2);
}

.form-col.col-full {
  flex: 0 0 calc(100% - var(--mfn-column-gap-left, 12px) * 2);
}

.form-group {
  margin-bottom: 25px;
  position: relative;
}

.form-group label {
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
  color: var(--mfn-woo-heading-color);
  font-size: 15px;
  position: relative;
  transition: color 0.3s ease;
}

.form-group label.required:after {
  content: " *";
  color: var(--mfn-woo-themecolor);
  font-weight: 700;
}

.form-group input,
.form-group select:not([data-select2-id]),
.form-group textarea {
  width: 100% !important;
  padding: 15px 18px !important;
  border: 2px solid rgba(95, 95, 95, 0.15);
  border-radius: 8px !important;
  font-size: 15px !important;
  transition: all 0.3s ease;
  background-color: #fff !important;
  box-sizing: border-box !important;
  font-family: inherit !important;
  color: var(--mfn-woo-body-color) !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
}

/* Stile specifico per le select con freccia personalizzata */
.form-group select:not([data-select2-id]) {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 16px;
  padding-right: 45px;
}

.form-group input:focus,
.form-group select:not([data-select2-id]):focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--mfn-woo-themecolor);
  box-shadow: 0 0 0 3px rgba(255, 99, 46, 0.1);
  transform: translateY(-1px);
}

.form-group input:hover,
.form-group select:not([data-select2-id]):hover,
.form-group textarea:hover {
  border-color: var(--mfn-clients-tiles-hover);
}

/* Assicuriamo che tutti gli input di tipo specifico abbiano lo stesso stile */
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="number"],
.form-group input[type="date"],
.form-group input[type="password"],
.form-group input[type="url"] {
  height: 52px; /* Stessa altezza delle select */
  line-height: 1.4;
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.6;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #999;
  font-style: italic;
  opacity: 0.8;
}

.btn-add {
  background: linear-gradient(
    135deg,
    var(--mfn-woo-themecolor) 0%,
    var(--mfn-clients-tiles-hover) 100%
  );
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 25px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
  margin-top: 20px;
  box-shadow: 0 4px 15px rgba(255, 99, 46, 0.25);
  position: relative;
  overflow: hidden;
}

.btn-add:before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

.btn-add:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 99, 46, 0.35);
}

.btn-add:hover:before {
  left: 100%;
}

.btn-add:active {
  transform: translateY(0);
}

.welcome-title {
  background: linear-gradient(
    135deg,
    var(--mfn-woo-themecolor) 0%,
    var(--mfn-clients-tiles-hover) 100%
  );
  color: white;
  padding: 50px 40px;
  border-radius: 12px;
  margin-bottom: 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(255, 99, 46, 0.25);
  max-width: 1200px;
  width: 100%;
}

.welcome-title:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.05)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.05)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.03)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

.welcome-title h2 {
  margin: 0 0 15px 0;
  font-size: 2.2em;
  font-weight: 300;
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.welcome-title p {
  position: relative;
  z-index: 1;
  font-size: 1.1em;
  opacity: 0.95;
  line-height: 1.5;
}

/* Responsive Design con BeTheme breakpoints */
@media (min-width: 1200px) {
  .candidato-form {
    padding: 0 20px;
  }

  .form-card {
    padding: 50px;
  }

  .form-col {
    min-width: 300px;
  }
}

@media (max-width: 959px) and (min-width: 768px) {
  .form-col.col-half,
  .form-col.col-third,
  .form-col.col-quarter {
    flex: 0 0 calc(50% - var(--mfn-column-gap-left, 12px) * 2);
  }

  .form-card {
    padding: 35px;
  }

  .welcome-title {
    padding: 40px 30px;
  }

  .welcome-title h2 {
    font-size: 1.9em;
  }
}

@media (max-width: 767px) {
  .form-col.col-half,
  .form-col.col-third,
  .form-col.col-quarter {
    flex: 0 0 calc(100% - var(--mfn-column-gap-left, 12px) * 2);
    min-width: auto;
  }

  .form-card {
    padding: 25px 20px;
    margin-bottom: 25px;
  }

  .welcome-title {
    padding: 30px 20px;
    margin-bottom: 30px;
  }

  .welcome-title h2 {
    font-size: 1.6em;
  }

  .welcome-title p {
    font-size: 1em;
  }

  .form-row {
    margin: calc(var(--mfn-column-gap-left, 12px) / -2);
  }

  .form-col {
    padding: calc(var(--mfn-column-gap-left, 12px) / 2);
  }
}

@media (max-width: 480px) {
  .form-row {
    margin: 0;
  }

  .form-col {
    padding: 0;
    padding-bottom: 15px;
  }

  .form-card {
    padding: 20px 15px;
  }

  .welcome-title {
    padding: 25px 15px;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 12px 15px;
    font-size: 14px;
  }

  .btn-add {
    width: 100%;
    padding: 15px 24px;
    border-radius: 8px;
  }
}

/* Animazioni e micro-interazioni */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-card {
  animation: fadeInUp 0.6s ease-out;
  animation-fill-mode: both;
}

.form-card:nth-child(2) {
  animation-delay: 0.1s;
}
.form-card:nth-child(3) {
  animation-delay: 0.2s;
}
.form-card:nth-child(4) {
  animation-delay: 0.3s;
}
.form-card:nth-child(5) {
  animation-delay: 0.4s;
}

/* Stili per icone FontAwesome */
.form-card h3 i {
  margin-right: 12px;
  font-size: 1.1em;
  opacity: 0.9;
}

/* Divisori tra le righe multiple */
.lingua-item:not(:first-child),
.esperienza-item:not(:first-child),
.skill-item:not(:first-child),
.istruzione-item:not(:first-child) {
  margin-top: 30px;
  padding-top: 30px;
  border-top: 2px solid rgba(255, 99, 46, 0.1);
  position: relative;
}

.lingua-item:not(:first-child):before,
.esperienza-item:not(:first-child):before,
.skill-item:not(:first-child):before,
.istruzione-item:not(:first-child):before {
  content: "";
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: linear-gradient(
    135deg,
    var(--mfn-woo-themecolor) 0%,
    var(--mfn-clients-tiles-hover) 100%
  );
  border-radius: 2px;
}

/* Pulsante di cancellazione */
.btn-remove {
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.3s ease;
  margin-left: 10px;
  box-shadow: 0 2px 8px rgba(220, 53, 69, 0.25);
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-remove:before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

.btn-remove:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.35);
}

.btn-remove:hover:before {
  left: 100%;
}

.btn-remove:active {
  transform: translateY(0);
}

.btn-remove i {
  font-size: 11px;
}

/* Container per i pulsanti di azione */
.item-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid rgba(95, 95, 95, 0.1);
  opacity: 0;
  animation: fadeIn 0.3s ease 0.5s forwards;
}

/* Responsive per i pulsanti */
@media (max-width: 767px) {
  .item-actions {
    justify-content: center;
  }

  .btn-remove {
    font-size: 11px;
    padding: 6px 12px;
  }
}

/* Gestione visibilità elementi istruzione */
.minimo-diploma,
.minimo-laurea {
  transition: all 0.3s ease;
  overflow: hidden;
}

.minimo-diploma[style*="display: none"],
.minimo-laurea[style*="display: none"] {
  opacity: 0;
  max-height: 0;
  margin: 0;
  padding: 0;
}

.minimo-diploma[style*="display: block"],
.minimo-laurea[style*="display: block"] {
  opacity: 1;
  max-height: none;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* Select2 - Uniforma allo stile del form */
.form-group .select2-container {
  width: 100% !important;
}

.form-group .select2-container--default .select2-selection--single {
  height: auto !important;
  min-height: 46px !important;
  padding: 10px 15px !important;
  border: 2px solid rgba(95, 95, 95, 0.15) !important;
  border-radius: 8px !important;
  background-color: #fff !important;
  transition: all 0.3s ease !important;
  display: flex !important;
  align-items: center !important;
}

.form-group
  .select2-container--default
  .select2-selection--single
  .select2-selection__rendered {
  line-height: 1.4 !important;
  padding: 0 !important;
  color: var(--mfn-woo-body-color) !important;
  font-size: 14px !important;
  font-family: inherit !important;
}

.form-group
  .select2-container--default
  .select2-selection--single
  .select2-selection__placeholder {
  color: #999 !important;
  font-style: italic !important;
  opacity: 0.8 !important;
  font-size: 14px !important;
}

.form-group
  .select2-container--default
  .select2-selection--single
  .select2-selection__arrow {
  top: 50% !important;
  transform: translateY(-50%) !important;
  right: 10px !important;
  height: auto !important;
}

.form-group
  .select2-container--default.select2-container--open
  .select2-selection--single,
.form-group
  .select2-container--default.select2-container--focus
  .select2-selection--single {
  border-color: var(--mfn-woo-themecolor) !important;
  box-shadow: 0 0 0 3px rgba(255, 99, 46, 0.1) !important;
  outline: none !important;
}

.form-group .select2-container--default .select2-selection--single:hover {
  border-color: var(--mfn-clients-tiles-hover) !important;
}

.select2-container--default
  .select2-results__option--highlighted[aria-selected] {
  background-color: var(--mfn-woo-themecolor) !important;
}

.select2-dropdown {
  border: 2px solid rgba(95, 95, 95, 0.15) !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
  margin-top: 4px !important;
  z-index: 99999 !important;
}

.select2-search--dropdown .select2-search__field {
  padding: 8px 12px !important;
  border: 2px solid rgba(95, 95, 95, 0.15) !important;
  border-radius: 6px !important;
  font-size: 14px !important;
  font-family: inherit !important;
  box-sizing: border-box !important;
}

.select2-search--dropdown .select2-search__field:focus {
  border-color: var(--mfn-woo-themecolor) !important;
  outline: none !important;
}

.select2-results__option {
  padding: 8px 12px !important;
  font-size: 14px !important;
}
