/* ════════ single-staff.css — Profilo staff ════════ */

.profilo-hero { padding: 56px 0; background: var(--bg-soft); border-bottom: 1px solid var(--border); }
.profilo-back {
  font-size: 13px;
  font-weight: 500;
  color: var(--teal);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 24px;
}
.profilo-back:hover { color: var(--teal-d); }

.profilo-photo-wrap {
  position: relative;
  width: 260px;
  flex-shrink: 0;
}
.profilo-photo {
  width: 260px;
  height: 320px;
  object-fit: cover;
  object-position: top;
  border-radius: var(--radius-xl);
  border: 4px solid white;
  box-shadow: var(--shadow-lg);
}
.profilo-photo-placeholder {
  width: 260px;
  height: 320px;
  background: var(--bg-teal);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-head);
  font-size: 64px;
  font-style: italic;
  font-weight: 700;
  color: var(--teal);
}
.profilo-avail {
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
}

.profilo-info { flex: 1; }
.profilo-ruolo { font-size: 14px; color: var(--ink-light); font-weight: 500; margin-bottom: 4px; }
.profilo-name { font-family: var(--ff-head); font-size: 36px; font-weight: 700; color: var(--ink); margin-bottom: 12px; }
.profilo-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 20px; }
.profilo-bio-short { font-size: 17px; line-height: 1.8; color: var(--ink-mid); max-width: 560px; }

/* Contenuto profilo */
.profilo-body { padding: var(--section-py) 0; }
.profilo-content p { font-size: 18px; line-height: 1.8; color: var(--ink-mid); margin-bottom: 18px; }
.profilo-content h2 { font-size: 22px; margin-top: 36px; margin-bottom: 12px; }

/* Sidebar */
.profilo-sidebar { position: sticky; top: 88px; }
.profilo-contact-box {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 16px;
}
.profilo-cta-box {
  background: var(--teal-d);
  border-radius: var(--radius-lg);
  padding: 24px;
}

/* Formazione */
.profilo-formazione { padding: var(--section-py-sm) 0; background: var(--bg-soft); border-top: 1px solid var(--border); }

/* Servizi erogati */
.profilo-servizi { padding: var(--section-py) 0; }
.profilo-servizi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

@media (max-width: 991px) {
  .profilo-hero .d-flex { flex-direction: column; }
  .profilo-photo-wrap { margin: 0 auto; }
  .profilo-info { text-align: center; }
  .profilo-chips { justify-content: center; }
  .profilo-bio-short { margin: 0 auto; }
  .profilo-sidebar { position: static; }
  .profilo-servizi-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  .profilo-photo { width: 200px; height: 240px; }
  .profilo-photo-placeholder { width: 200px; height: 240px; }
  .profilo-name { font-size: 28px; }
  .profilo-servizi-grid { grid-template-columns: 1fr; }
}

/* ════════ Widget Elementor: iq_staff_hero ════════ */

.iq-staff-hero { background-color: #EAF5F0; }

.staff-photo-wrap { position: relative; }

.staff-photo-lg {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 16px;
  display: block;
}

.staff-photo-placeholder-lg {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  background: var(--bg-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-head);
  font-size: 56px;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: -2px;
}

.staff-badge-avail,
.staff-badge-full {
  position: absolute;
  bottom: 16px;
  left: 16px;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 100px;
}

.staff-badge-avail { background: #22c55e; color: #fff; }
.staff-badge-full  { background: var(--orange); color: #fff; }

.staff-hero-name {
  font-family: var(--ff-head);
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.15;
}

.staff-hero-role {
  font-size: 17px;
  font-weight: 400;
  color: var(--teal-d);
}

.staff-hero-bio {
  font-size: 17px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--ink-mid);
  max-width: 560px;
}

/* ════════ Widget Elementor: iq_staff_bio ════════ */

.iq-staff-bio-wrap { background-color: #fff; }

.staff-bio-text {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.85;
  color: var(--ink-mid);
}
.staff-bio-text p { margin-bottom: 1.2em; }
.staff-bio-text p:last-child { margin-bottom: 0; }

.staff-formation-item {
  display: flex;
  gap: 20px;
  padding-bottom: 24px;
  padding-left: 24px;
  border-left: 2px solid var(--teal-pale);
  position: relative;
}
.staff-formation-item:last-child { padding-bottom: 0; }

.staff-formation-item::before {
  content: '';
  position: absolute;
  left: -6px;
  top: 5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--teal);
  border: 2px solid #fff;
}

.staff-formation-year {
  font-size: 12px;
  font-weight: 700;
  color: var(--teal);
  white-space: nowrap;
  min-width: 36px;
  margin-top: 2px;
  flex-shrink: 0;
}

.staff-formation-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
  line-height: 1.3;
}

.staff-formation-institute {
  font-size: 13px;
  color: var(--ink-light);
}

/* ════════ Widget Elementor: iq_staff_services ════════ */

.iq-staff-svc-wrap { background-color: #F5F5F3; }

.staff-svc-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  border: 1px solid var(--teal-pale);
  height: 100%;
  transition: box-shadow .2s ease, transform .2s ease;
}
.staff-svc-card:hover {
  box-shadow: 0 8px 28px rgba(31,107,87,.12);
  transform: translateY(-3px);
  text-decoration: none;
}

.staff-svc-thumb {
  height: 160px;
  background-color: var(--bg-teal);
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}
.staff-svc-thumb--empty { background-color: var(--bg-teal); }

.staff-svc-body {
  padding: 20px 22px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.staff-svc-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
  line-height: 1.3;
}

.staff-svc-desc {
  font-size: 13px;
  color: var(--ink-light);
  line-height: 1.6;
  margin-bottom: 0;
  flex: 1;
}

.staff-svc-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
}

/* ════════ Hero: blocco contatti rapidi ════════ */

.staff-hero-contacts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 24px;
  padding: 14px 20px;
  background: rgba(255, 255, 255, .65);
  backdrop-filter: blur(4px);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.staff-hero-contact-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  transition: color .15s;
}
.staff-hero-contact-item svg { color: var(--teal); flex-shrink: 0; }
.staff-hero-contact-item:hover { color: var(--teal-d); }

/* Riga icone social nell'hero */
.staff-hero-social {
  display: flex;
  align-items: center;
  gap: 6px;
}
.staff-hero-social-link {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--bg-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  text-decoration: none;
  transition: background .15s, color .15s;
}
.staff-hero-social-link:hover { background: var(--teal); color: white; }

@media (max-width: 575px) {
  .staff-hero-contacts { gap: 10px 16px; padding: 12px 16px; }
  .staff-hero-contact-item { font-size: 13px; }
}

/* ════════ Widget Staff Contatti Info: riga social ════════ */

.staff-contatti-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.staff-contatti-social-link {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--bg-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  text-decoration: none;
  transition: background .15s, color .15s;
}
.staff-contatti-social-link:hover { background: var(--teal); color: white; }
