/**
 * Pagina "Comitato Scientifico" — page-comitato-scientifico.php
 * Tutti i selettori sono annidati sotto .cs-page per non toccare gli stili globali del tema.
 */

.cs-page {
  --cs-navy: #0e2e4f;
  --cs-navy-2: #13314f;
  --cs-teal: #0196ad;
  --cs-teal-dark: #0e6b78;
  --cs-teal-mid: #5abacb;
  --cs-teal-soft: #e9f4f6;
  --cs-magenta: #ec0a7e;
  --cs-magenta-dark: #c80668;
  --cs-slate: #5b6b7a;
  --cs-bg-soft: #f4f7f8;
  --cs-line: #e2eaec;
  --cs-white: #ffffff;
  --cs-font-display: "Montserrat", system-ui, sans-serif;
  --cs-font-body: "Open Sans", system-ui, sans-serif;
  --cs-max-w: 1180px;
  --cs-gutter: 28px;
  --cs-radius: 14px;
  --cs-shadow-card: 0 26px 50px -28px rgba(14, 46, 79, 0.32);
  --cs-shadow-cta: 0 10px 24px -10px rgba(236, 10, 126, 0.6);

  color: var(--cs-navy-2);
  font-family: var(--cs-font-body);
  font-size: 16px;
  line-height: 1.6;
}
.cs-page img, .cs-page svg { display: block; max-width: 100%; }
.cs-page a { color: inherit; }
.cs-page h1, .cs-page h2, .cs-page h3, .cs-page p { margin-top: 0; overflow-wrap: break-word; }
.cs-page h1, .cs-page h2, .cs-page h3 { font-family: var(--cs-font-display); }

.cs-wrap {
  width: min(calc(100% - (var(--cs-gutter) * 2)), var(--cs-max-w));
  margin-inline: auto;
}

.cs-btn {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 15px 28px;
  border: 0;
  border-radius: 6px;
  font-family: var(--cs-font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}
.cs-btn-primary {
  color: var(--cs-white) !important;
  background: var(--cs-magenta);
  box-shadow: var(--cs-shadow-cta);
}
.cs-btn-primary:hover, .cs-btn-primary:focus-visible {
  transform: translateY(-2px);
  background: var(--cs-magenta-dark);
  box-shadow: 0 16px 30px -12px rgba(236, 10, 126, .7);
}

.cs-hero {
  position: relative;
  overflow: hidden;
  color: var(--cs-white);
  background:
    radial-gradient(circle at 83% 84%, rgba(236, 10, 126, .88) 0 88px, transparent 90px),
    radial-gradient(circle at 89% 5%, transparent 0 165px, rgba(255,255,255,.12) 166px 167px, transparent 168px),
    linear-gradient(112deg, #58adbd 0%, #1b6079 51%, #0e2e4f 100%);
}
.cs-hero::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(130deg, transparent 0 66%, rgba(255,255,255,.04) 66% 77%, transparent 77%),
    linear-gradient(167deg, transparent 0 72%, rgba(14,46,79,.34) 72% 100%);
  content: "";
}
.cs-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 530px;
  align-items: center;
  gap: clamp(42px, 7vw, 90px);
  grid-template-columns: minmax(0, 1.18fr) minmax(300px, .82fr);
  padding-block: 74px 82px;
}
.cs-eyebrow {
  display: block;
  margin-bottom: 16px;
  color: var(--cs-white);
  font-family: var(--cs-font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.cs-section-head .cs-eyebrow, .cs-training .cs-eyebrow, .cs-closing .cs-eyebrow { color: var(--cs-teal-dark); }
.cs-closing .cs-eyebrow { color: var(--cs-teal-mid); }
.cs-hero h1 {
  max-width: 720px;
  margin-bottom: 24px;
  color: var(--cs-white);
  font-size: clamp(40px, 4.5vw, 62px);
  font-weight: 300;
  letter-spacing: -.035em;
  line-height: 1.08;
}
.cs-hero-copy p {
  max-width: 680px;
  margin-bottom: 30px;
  color: rgba(255,255,255,.9);
  font-size: clamp(17px, 1.55vw, 20px);
  line-height: 1.65;
}
.cs-hero-seal {
  position: relative;
  display: grid;
  min-width: 0;
  width: min(450px, 100%);
  aspect-ratio: 3 / 2;
  justify-self: center;
  place-items: center;
  padding: 10px;
  border: 1px solid rgba(255,255,255,.42);
  border-radius: var(--cs-radius);
  background: var(--cs-white);
  box-shadow: 0 28px 70px -34px rgba(5,30,54,.72);
}
.cs-hero-logo {
  width: 100%;
  height: 100%;
  border-radius: calc(var(--cs-radius) - 1px);
  object-fit: cover;
  object-position: center 35%;
  filter: drop-shadow(0 16px 26px rgba(5,30,54,.28));
}

.cs-committee {
  padding-block: 90px;
  background: var(--cs-bg-soft);
}
.cs-section-head {
  display: block;
  max-width: 780px;
  margin-bottom: 48px;
}
.cs-section-head h2 {
  margin-bottom: 16px;
  color: var(--cs-navy);
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 400;
  letter-spacing: -.025em;
  line-height: 1.16;
}
.cs-section-head p {
  margin-bottom: 0;
  color: var(--cs-slate);
  font-size: 17px;
}
.cs-committee-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
.cs-profile-card {
  display: flex;
  min-width: 0;
  grid-column: span 2;
  flex-direction: column;
  padding: 30px;
  border: 1px solid var(--cs-line);
  border-radius: var(--cs-radius);
  background: var(--cs-white);
  box-shadow: 0 14px 34px -28px rgba(14,46,79,.32);
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.cs-committee-grid .cs-profile-card:nth-child(4) { grid-column: 2 / span 2; }
.cs-committee-grid .cs-profile-card:nth-child(5) { grid-column: 4 / span 2; }
.cs-profile-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--cs-shadow-card);
}
.cs-profile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
.cs-profile-num {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: var(--cs-white);
  background: linear-gradient(135deg, var(--cs-teal), var(--cs-navy));
  font-family: var(--cs-font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
}
.cs-profile-mark {
  width: 38px;
  height: 3px;
  border-radius: 10px;
  background: var(--cs-magenta);
}
.cs-profile-card h3 {
  margin-bottom: 8px;
  color: var(--cs-navy);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.25;
}
.cs-role {
  min-height: 44px;
  margin-bottom: 20px;
  color: var(--cs-teal-dark);
  font-family: var(--cs-font-display);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}
.cs-bio { flex: 1; }
.cs-bio p {
  margin-bottom: 12px;
  color: var(--cs-slate);
  font-size: 14px;
  line-height: 1.7;
}
.cs-bio p:last-child { margin-bottom: 0; }
.cs-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--cs-line);
}
.cs-tag {
  padding: 5px 10px;
  border-radius: 5px;
  color: var(--cs-teal-dark);
  background: var(--cs-teal-soft);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.cs-training {
    padding-block: 64px;
    background: var(--cs-white);
    border-top: 1px solid var(--cs-line);
    border-bottom: 1px solid var(--cs-line);
    min-height: 50vh;
    display: flex;
    align-content: center;
    align-items: center;
    justify-content: center;
}
.cs-training-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.cs-training-copy { max-width: 620px; }
.cs-training-copy h2 {
  margin-bottom: 10px;
  color: var(--cs-navy);
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 400;
  line-height: 1.25;
}
.cs-training-copy p {
  margin-bottom: 0;
  color: var(--cs-slate);
  font-size: 16px;
}
.cs-training-cta { flex: 0 0 auto; }

.cs-closing {
  position: relative;
  overflow: hidden;
  padding-block: 82px;
  color: var(--cs-white);
  background: var(--cs-navy);
}
.cs-closing::after {
  position: absolute;
  right: -70px;
  bottom: -150px;
  width: 340px;
  height: 340px;
  border: 70px solid rgba(90,186,203,.13);
  border-radius: 50%;
  content: "";
}
.cs-closing-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 44px;
}
.cs-closing-copy { max-width: 750px; }
.cs-closing h2 {
  margin-bottom: 14px;
  color: var(--cs-white);
  font-size: clamp(30px, 3.6vw, 44px);
  font-weight: 400;
  line-height: 1.2;
}
.cs-closing p { margin-bottom: 0; color: rgba(255,255,255,.75); }

@media (max-width: 980px) {
  .cs-hero-inner { grid-template-columns: minmax(0, 1fr); }
  .cs-hero-seal { max-width: 600px; min-height: 270px; }
  .cs-committee-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cs-committee-grid .cs-profile-card,
  .cs-committee-grid .cs-profile-card:nth-child(4),
  .cs-committee-grid .cs-profile-card:nth-child(5) { grid-column: auto; }
  .cs-committee-grid .cs-profile-card:last-child { grid-column: 1 / -1; width: calc(50% - 12px); justify-self: center; }
  .cs-closing-inner,
  .cs-training-inner { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 780px) {
  .cs-page { --cs-gutter: 20px; }
  .cs-hero-inner { min-height: auto; padding-block: 62px; }
  .cs-hero h1 { font-size: clamp(30px, 9vw, 54px); }
  .cs-committee { padding-block: 76px; }
}
@media (max-width: 600px) {
  .cs-hero-seal { min-height: 220px; padding: 30px; display: block; }
  .cs-committee-grid { grid-template-columns: 1fr; }
  .cs-committee-grid .cs-profile-card:last-child { grid-column: auto; width: 100%; }
  .cs-profile-card { padding: 26px 22px; }
  .cs-closing .cs-btn { width: 100%; }
}
