/* ==========================================================================
   NEWS & LAVORA CON NOI — stessi token, raggi e tipografia del resto del tema
   ========================================================================== */

/* ---------- Testate (riuso .sedi-hero-wrapper) ---------- */
.news-hero-inner { position: relative; z-index: 2; max-width: 760px; padding-top: 6px; }
.news-hero .sedi-hero-desc { margin-bottom: 0; }
.news-single-title { font-size: 40px; }
.careers-hero-links { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.careers-hero-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 24px;
  border-radius: var(--radius-btn); border: 2px solid var(--navy);
  font-family: var(--font-heading); font-size: 14px; font-weight: 800; letter-spacing: .04em; text-decoration: none;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .15s ease;
}
.careers-hero-btn--primary { background: var(--navy); color: var(--white); }
.careers-hero-btn--primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: var(--white); transform: translateY(-1px); }
.careers-hero-btn--outline { background: var(--white); color: var(--navy); }
.careers-hero-btn--outline:hover { background: var(--navy); color: var(--white); transform: translateY(-1px); }

/* ---------- Pillole e meta ---------- */
.news-pill {
  display: inline-flex; align-items: center;
  background: var(--primary-light); color: var(--primary-dark);
  font-family: var(--font-main); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: 5px 12px; border-radius: var(--radius-full); text-decoration: none;
}
a.news-pill:hover { background: #DDEFEF; }
.news-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 13px; color: var(--text-muted); }
.news-hero-meta { margin-bottom: 14px; }

/* ---------- Archivio ---------- */
.news-archive-section { padding: 50px 0 80px; }
.news-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.news-filter-pill {
  display: inline-flex; align-items: center; min-height: 40px;
  padding: 8px 18px; border-radius: var(--radius-pill);
  border: 1px solid var(--border-light); background: var(--white);
  font-family: var(--font-heading); font-size: 14px; font-weight: 700; color: var(--navy); text-decoration: none;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.news-filter-pill:hover { border-color: var(--primary); color: var(--primary-dark); }
.news-filter-pill.is-active { background: var(--navy); border-color: var(--navy); color: var(--white); }

.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.news-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--white); border: 1px solid var(--border-light); border-radius: var(--radius-card);
  box-shadow: var(--shadow-card); transition: transform .2s ease, box-shadow .2s ease;
}
.news-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.news-card-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--primary-light); }
.news-card-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-card-body { display: flex; flex-direction: column; gap: 12px; padding: 22px 24px 26px; flex: 1; }
.news-card-title { font-family: var(--font-heading); font-size: 20px; font-weight: 800; line-height: 1.25; color: var(--navy); margin: 0; }
.news-card-title a { color: inherit; text-decoration: none; }
.news-card-title a:hover { color: var(--primary-dark); }
.news-card-excerpt { font-size: 15px; line-height: 1.6; color: var(--text-muted); margin: 0; }
.news-card-link {
  margin-top: auto; display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-heading); font-size: 14px; font-weight: 700; letter-spacing: .03em; color: var(--primary-dark); text-decoration: none;
}
.news-card-link:hover { color: var(--navy); }

.news-pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 46px; }
.news-pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 12px;
  border-radius: var(--radius-btn); border: 1px solid var(--border-light); background: var(--white);
  font-weight: 700; color: var(--navy); text-decoration: none;
}
.news-pagination .page-numbers.current { background: var(--navy); border-color: var(--navy); color: var(--white); }
.news-pagination a.page-numbers:hover { border-color: var(--primary); color: var(--primary-dark); }

.news-empty { text-align: center; padding: 50px 24px; background: var(--white); border: 1px dashed var(--border-light); border-radius: var(--radius-card); }
.news-empty h2, .news-empty h3 { font-family: var(--font-heading); font-size: 22px; color: var(--navy); margin-bottom: 8px; }
.news-empty p { color: var(--text-muted); margin: 0; }

/* ---------- Articolo ---------- */
.news-single-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 40px; align-items: start; padding-top: 46px; padding-bottom: 70px; }
.news-article { background: var(--white); border: 1px solid var(--border-light); border-radius: var(--radius-card); box-shadow: var(--shadow-card); padding: 40px; }
.news-article-figure { margin: 0 0 30px; border-radius: 14px; overflow: hidden; }
.news-article-img { width: 100%; height: auto; display: block; }
.news-article-figure figcaption { font-size: 13px; color: var(--text-muted); padding-top: 8px; }

.news-prose { color: #3F4747; font-size: 17px; line-height: 1.75; }
.news-prose > * + * { margin-top: 1.1em; }
.news-prose h2 { font-family: var(--font-heading); font-size: 26px; font-weight: 800; color: var(--navy); line-height: 1.25; margin-top: 1.6em; }
.news-prose h3 { font-family: var(--font-heading); font-size: 21px; font-weight: 700; color: var(--navy); margin-top: 1.4em; }
.news-prose a { color: var(--primary-dark); text-decoration: underline; text-underline-offset: 3px; }
.news-prose ul, .news-prose ol { padding-left: 1.3em; }
.news-prose li + li { margin-top: .4em; }
.news-prose blockquote { border-left: 4px solid var(--primary); padding: 4px 0 4px 20px; color: var(--navy); font-style: italic; }
.news-prose img { max-width: 100%; height: auto; border-radius: 12px; }

.news-article-footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--border-light); }
.news-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.news-back-link { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-heading); font-weight: 700; color: var(--primary-dark); text-decoration: none; }
.news-back-link:hover { color: var(--navy); }

.news-sidebar { position: sticky; top: 110px; display: flex; flex-direction: column; gap: 22px; }
.news-sidebar-card { background: var(--white); border: 1px solid var(--border-light); border-radius: var(--radius-card); padding: 26px; box-shadow: var(--shadow-card); }
.news-sidebar-card h2 { font-family: var(--font-heading); font-size: 19px; font-weight: 800; color: var(--navy); margin: 0 0 12px; }
.news-sidebar-cta { background: linear-gradient(135deg, var(--navy) 0%, #2B3C7E 100%); border: 0; color: var(--white); }
.news-sidebar-cta h2 { color: var(--white); }
.news-sidebar-cta p { color: rgba(255, 255, 255, .88); font-size: 15px; line-height: 1.55; margin: 0 0 18px; }
.news-sidebar-btn {
  display: flex; justify-content: center; align-items: center; min-height: 46px; padding: 10px 16px;
  background: var(--white); color: var(--navy); border-radius: var(--radius-btn);
  font-family: var(--font-heading); font-weight: 800; font-size: 14px; letter-spacing: .03em; text-decoration: none;
}
.news-sidebar-btn:hover { background: var(--primary-light); }
.news-sidebar-link { display: inline-block; margin-top: 12px; color: var(--white); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.news-latest-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.news-latest-list li { display: flex; flex-direction: column; gap: 3px; padding-bottom: 14px; border-bottom: 1px solid var(--border-light); }
.news-latest-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.news-latest-list a { font-family: var(--font-heading); font-weight: 700; color: var(--navy); text-decoration: none; line-height: 1.3; }
.news-latest-list a:hover { color: var(--primary-dark); }
.news-latest-list time { font-size: 13px; color: var(--text-muted); }

.news-related-section { background: var(--primary-light); padding: 70px 0; }

/* ---------- Lavora con noi ---------- */
.careers-intro-section { padding: 70px 0; }
.careers-intro-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 50px; align-items: center; }
.careers-intro-text .home-section-title { margin-bottom: 18px; }
.careers-intro-media img { width: 100%; height: auto; aspect-ratio: 56 / 38; object-fit: cover; border-radius: var(--radius-card); box-shadow: var(--shadow-lg); display: block; }

.careers-values-section { background: var(--primary-light); padding: 70px 0; }

.careers-positions-section { padding: 70px 0; scroll-margin-top: 90px; }
.careers-jobs-list { display: flex; flex-direction: column; gap: 18px; max-width: 1017px; margin: 0 auto; }
.careers-job-card {
  display: flex; align-items: center; justify-content: space-between; gap: 30px;
  background: var(--white); border: 1px solid var(--border-light); border-radius: var(--radius-card);
  box-shadow: var(--shadow-card); padding: 26px 30px;
}
.careers-job-main { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.careers-job-title { font-family: var(--font-heading); font-size: 22px; font-weight: 800; color: var(--navy); margin: 0; line-height: 1.25; }
.careers-job-desc { color: var(--text-muted); font-size: 15px; line-height: 1.6; margin: 0; }
.careers-job-meta { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; color: var(--navy); font-weight: 600; }
.careers-job-meta i { color: var(--primary-dark); margin-right: 4px; }
.careers-job-cta {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 12px 22px;
  background: var(--navy); color: var(--white); border-radius: var(--radius-btn);
  font-family: var(--font-heading); font-weight: 800; font-size: 14px; letter-spacing: .04em; text-decoration: none;
  transition: background .2s ease, transform .15s ease;
}
.careers-job-cta:hover { background: var(--primary-dark); transform: translateX(2px); }

.careers-form-section { scroll-margin-top: 90px; }
.careers-upload { margin-bottom: 20px; }
.careers-upload-label { display: block; font-size: 11px; font-weight: 700; color: var(--navy); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; }
.careers-upload .careers-upload-box { /* specificità > .form-group-xd label (display:block, maiuscolo) */
  display: flex; align-items: center; gap: 16px; cursor: pointer;
  margin: 0; font-size: 15px; font-weight: 400; letter-spacing: 0; text-transform: none;
  background: var(--primary-light); border: 2px dashed rgba(0, 169, 174, .45); border-radius: 14px; padding: 18px 20px;
  transition: border-color .2s ease, background .2s ease;
}
.careers-upload-box:hover, .careers-upload.is-filled .careers-upload-box { border-color: var(--primary-dark); background: #E3F2F2; }
.careers-upload.is-invalid .careers-upload-box { border-color: #C53030; }
.careers-upload-icon { font-size: 28px; color: var(--primary-dark); }
.careers-upload-text { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; line-height: 1.35; }
.careers-upload-name { font-weight: 700; color: var(--navy); overflow-wrap: anywhere; }
.careers-upload-hint { font-size: 13px; color: var(--text-muted); }
.careers-upload-btn { flex-shrink: 0; align-self: center; padding: 9px 16px; line-height: 1.2; text-transform: uppercase; border-radius: var(--radius-btn); background: var(--navy); color: var(--white); font-family: var(--font-heading); font-weight: 800; font-size: 13px; letter-spacing: .04em; }
/* input nativo visivamente nascosto ma raggiungibile da tastiera e screen reader */
.careers-file-native { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
.careers-file-native:focus-visible + .careers-upload-box,
.careers-upload:focus-within .careers-upload-box { outline: 3px solid #017A7E; outline-offset: 2px; }
.careers-form .privacy-row-xd + .privacy-row-xd { margin-top: -6px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .news-single-layout { grid-template-columns: 1fr; }
  .news-sidebar { position: static; }
}
@media (max-width: 768px) {
  .news-grid { grid-template-columns: 1fr; }
  .news-article { padding: 24px 20px; }
  .news-single-title { font-size: 30px; }
  .news-prose { font-size: 16px; }
  .careers-intro-grid { grid-template-columns: 1fr; gap: 30px; }
  .careers-job-card { flex-direction: column; align-items: flex-start; padding: 22px 20px; gap: 18px; }
  .careers-job-cta { width: 100%; justify-content: center; }
  .careers-upload .careers-upload-box { flex-wrap: wrap; }
  .careers-upload-btn { width: 100%; text-align: center; }
  .careers-hero-btn { width: 100%; }
  .careers-intro-section, .careers-values-section, .careers-positions-section, .news-related-section { padding: 50px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .news-card, .careers-job-cta, .news-filter-pill, .careers-hero-btn { transition: none; }
  .news-card:hover, .careers-job-cta:hover, .careers-hero-btn:hover { transform: none; }
}

/* ==========================================================================
   PRENOTAZIONE DALLA SCHEDA SPECIALISTA (fromWeb.php, una voce per sede)
   ========================================================================== */
.psm-book-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-family: var(--font-heading); font-weight: 700; text-decoration: none; cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.psm-book-btn--small { color: #017A7E; font-size: 13px; padding: 6px 12px; border-radius: 6px; background: #EEF6F6; white-space: nowrap; }
.psm-book-btn--small:hover { background: #DDEFEF; color: var(--navy); }
.psm-book-btn--primary {
  width: 100%; gap: 8px; padding: 14px 20px; border-radius: var(--radius-btn);
  background: #017A7E; color: var(--white); text-transform: uppercase; font-size: 14px; letter-spacing: .03em;
}
.psm-book-btn--primary:hover { background: var(--navy); color: var(--white); }
.psm-book-ext { font-size: 10px; }

.psm-book-menu { position: relative; }
.psm-book-menu--primary { width: 100%; }
.psm-book-menu > summary { list-style: none; }
.psm-book-menu > summary::-webkit-details-marker { display: none; }
.psm-book-caret { font-size: 10px; transition: transform .2s ease; }
.psm-book-menu[open] .psm-book-caret { transform: rotate(180deg); }
.psm-book-panel {
  position: absolute; z-index: 30; right: 0; top: calc(100% + 6px); min-width: 220px;
  background: var(--white); border: 1px solid var(--border-light); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 10px;
}
/* Sotto la foto la card ha overflow:hidden (angoli arrotondati dell'immagine): il pannello si apre nel flusso, non sovrapposto */
.psm-book-menu--primary .psm-book-panel { position: static; margin-top: 8px; min-width: 0; box-shadow: none; border-color: #CDE6E6; background: #F7FBFB; }
.psm-book-panel-title { margin: 2px 8px 6px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); }
.psm-book-panel ul { list-style: none; margin: 0; padding: 0; }
.psm-book-panel a {
  display: flex; align-items: center; gap: 8px; padding: 10px 10px; border-radius: 8px;
  font-weight: 700; font-size: 14px; color: var(--navy); text-decoration: none;
}
.psm-book-panel a span { flex: 1; }
.psm-book-panel a i:first-child { color: #017A7E; }
.psm-book-panel a:hover, .psm-book-panel a:focus-visible { background: #EEF6F6; color: #017A7E; }
@media (max-width: 768px) {
  .psm-book-panel { position: static; margin-top: 8px; box-shadow: none; }
}
@media (prefers-reduced-motion: reduce) { .psm-book-caret { transition: none; } }
