/* Base */
:root {
    --conference-width: 1200px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: #111;
    background: #fff;
    font-family: "Poppins", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.55;
}

a {
    color: inherit;
}

.container {
    max-width: var(--conference-width);
}

/* Componenti condivisi: testata, navigazione e footer */
.ispcc-header, .ispcc-footer {
    --brand:#af0061;
    font-family:'Poppins',Arial,sans-serif;
}

.ispcc-header *, .ispcc-footer * {
    box-sizing:border-box;
}

.ispcc-header a, .ispcc-footer a {
    text-decoration:none;
}

.ispcc-header img {
    display:block;
    max-width:100%;
    height:auto;
}

.ispcc-header .fy-container, .ispcc-footer .fy-container {
    width:100%;
    margin:0;
    padding:0 50px;
}

.fy-topbar {
    border-top:4px solid var(--brand);
    background:#fff;
    padding:20px 0;
}

.fy-brand, .fy-main-logos, .fy-patronage {
    display:flex;
    align-items:center;
}

.fy-brand {
    justify-content:space-between;
    gap:20px;
}

.fy-main-logos {
    gap:30px;
}

.fy-patronage {
    gap:12px;
    margin-left:auto;
    white-space:nowrap;
}

.fy-patronage strong {
    font-size:14px;
    font-weight:700;
    color:#666;
    text-transform:uppercase;
    letter-spacing:.08em;
}

.ispcc-header .fy-logo-sci {
    width:auto;
    max-height:70px;
}

.fy-menu-bar {
    background:var(--brand);
    position:relative;
    z-index:30;
}

.fy-menu-bar .fy-container {
    display:flex;
    justify-content:center;
    align-items:center;
    min-height:58px;
}

.fy-toplinks {
    display:flex;
    align-items:center;
    justify-content:center;
    gap:36px;
    min-height:58px;
    list-style:none;
    padding:0;
    margin:0;
}

.fy-toplinks > li {
    display:flex;
    align-items:center;
    position:relative;
    gap:5px;
}

.fy-toplinks a, .fy-nav-label {
    color:#fff;
    font-size:14px;
    font-weight:700;
    letter-spacing:.04em;
    text-transform:uppercase;
}

.fy-toplinks > li > a {
    padding:18px 0;
}

.fy-toplinks a:hover, .fy-toplinks a[aria-current] {
    text-decoration:underline;
    text-underline-offset:5px;
}

.fy-submenu summary {
    color:#fff;
    cursor:pointer;
    padding:10px 5px;
}

.fy-submenu ul {
    position:absolute;
    top:100%;
    left:0;
    min-width:230px;
    max-width:calc(100vw - 36px);
    background:white;
    padding:8px 0;
    margin:0;
    list-style:none;
    border-radius:8px;
    box-shadow:0 14px 40px #0003;
}

.fy-submenu li a {
    display:block;
    color:#111;
    padding:12px 16px;
}

.fy-hamburger {
    display:none;
    width:44px;
    height:44px;
    border:1px solid #ffffff73;
    border-radius:10px;
    background:transparent;
    align-items:center;
    justify-content:center;
}

.fy-hamburger span {
    width:22px;
    height:2px;
    background:white;
    box-shadow:0 -7px white,0 7px white;
}

.ispcc-header :focus-visible, .ispcc-footer :focus-visible {
    outline:3px solid #528cfa;
    outline-offset:4px;
}

.ispcc-footer {
    padding:20px 0 18px;
    background:var(--brand);
    color:#fff;
}

.fy-footer-contact {
    max-width:1280px;
    margin:0 auto;
    text-align:center;
}

.fy-footer-eyebrow {
    margin:20px 0 10px;
    font-size:13px;
    font-weight:700;
    letter-spacing:.08em;
}

.ispcc-footer h2 {
    margin:0 0 36px;
    font-size:32px;
    font-weight:700;
    color:#fff;
}

.fy-footer-form {
    max-width:1250px;
    margin:auto;
}

.fy-footer-form fieldset {
    border:0;
    padding:0;
    margin:0;
    min-width:0;
}

.fy-footer-form-row {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:38px;
    margin-bottom:26px;
}

.fy-footer-form label {
    display:block;
    margin:0;
    min-width:0;
}

.fy-footer-form input, .fy-footer-form textarea {
    width:100%;
    padding:10px 30px;
    border:0;
    border-radius:18px;
    background:#fff;
    color:#111;
    font:21px 'Poppins',Arial,sans-serif;
    opacity:1;
}

.fy-footer-form input::placeholder, .fy-footer-form textarea::placeholder {
    color:#111;
    opacity:1;
}

.fy-footer-form textarea {
    min-height:180px;
    margin-bottom:34px;
    resize:vertical;
}

.fy-footer-form-actions {
    display:flex;
    justify-content:center;
}

.fy-footer-cta {
    border:0;
    min-width:100px;
    min-height:50px;
    padding:10px 30px;
    border-radius:12px;
    background:linear-gradient(90deg,#4b86f5,#5a95ff);
    color:white;
    font:500 21px 'Poppins',Arial,sans-serif;
    box-shadow:0 10px 24px #0002;
}

.fy-footer-cta:disabled {
    cursor:not-allowed;
}

#ispcc-contact-status {
    margin:16px 0 0;
    font-size:13px;
}

.fy-footer-bottom {
    display:flex;
    justify-content:space-between;
    gap:10px;
    flex-wrap:wrap;
    margin-top:36px;
    padding-top:14px;
    border-top:1px solid #ffffff38;
    font-size:12px;
}

.fy-footer-links {
    display:flex;
    flex-wrap:wrap;
    gap:12px;
}

.fy-footer-links a, .fy-footer-links button {
    color:inherit;
}

.fy-footer-links button {
    border:0;
    background:none;
    padding:0;
    font:inherit;
}

/* Homepage ISPCC */
:is(#ispcc-home, #ispcc-committees, #ispcc-generic) {
    font-family:'Poppins', sans-serif;
    color:#111;
    background:#fff;
}

:is(#ispcc-home, #ispcc-committees, #ispcc-generic) .cp-container {
    width:100%;
    max-width:1280px;
    margin:0 auto;
    padding:0 40px;
}

:is(#ispcc-home, #ispcc-committees, #ispcc-generic) .cp-section {
    padding:0 10%;
}

:is(#ispcc-home, #ispcc-committees, #ispcc-generic) .cp-section-white {
    background:#fff;
}

:is(#ispcc-home, #ispcc-committees, #ispcc-generic) .cp-section-light {
    background:var(--light);
}

:is(#ispcc-home, #ispcc-committees, #ispcc-generic) .cp-header {
    max-width:860px;
    margin:0 auto 36px;
    text-align:center;
}

:is(#ispcc-home, #ispcc-committees, #ispcc-generic) .cp-eyebrow {
    display:inline-block;
    margin-bottom:10px;
    font-size:13px;
    font-weight:700;
    letter-spacing:.08em;
    text-transform:uppercase;
    color:var(--brand);
}

:is(#ispcc-home, #ispcc-committees, #ispcc-generic) .cp-title {
    margin:0 0 12px;
    font-size:38px;
    line-height:1.1;
    font-weight:700;
    color:var(--text);
}

:is(#ispcc-home, #ispcc-committees, #ispcc-generic) .cp-subtitle {
    margin:0;
    font-size:17px;
    line-height:1.65;
    color:var(--muted);
}

:is(#ispcc-home, #ispcc-committees, #ispcc-generic) .cp-body-text {
    margin:0 0 22px;
    font-size:14pt;
    line-height:1.8;
    color:#000;
    text-align:left;
}

:is(#ispcc-home, #ispcc-committees, #ispcc-generic) .cp-hero {
    position:relative;
    display:flex;
    align-items:flex-end;
    min-height:560px;
    overflow:hidden;
    background-size:cover;
    background-repeat:no-repeat;
    background-position:center center;
}

:is(#ispcc-home, #ispcc-committees, #ispcc-generic) .cp-main-hero {
    min-height:620px;
}

:is(#ispcc-home, #ispcc-committees, #ispcc-generic) .cp-hero-inner {
    position:relative;
    z-index:2;
    width:100%;
    padding:56px 0;
}

:is(#ispcc-home, #ispcc-committees, #ispcc-generic) .cp-hero-card {
    max-width:1000px;
    padding:28px 30px;
    background:rgba(255,255,255,.50);
    border-left:6px solid var(--brand);
    box-shadow:0 16px 40px rgba(0,0,0,.18);
    backdrop-filter:blur(2px);
}

:is(#ispcc-home, #ispcc-committees, #ispcc-generic) .cp-hero-kicker {
    display:block;
    margin-bottom:12px;
    font-size:14px;
    font-weight:700;
    letter-spacing:.08em;
    text-transform:uppercase;
    color:#dbe8f6;
}

:is(#ispcc-home, #ispcc-committees, #ispcc-generic) .cp-hero-title-logo {
    display:flex;
    align-items:center;
    gap:30px;
    flex-wrap:nowrap;
}

:is(#ispcc-home, #ispcc-committees, #ispcc-generic) .cp-hero-title-logo img {
    flex-shrink:0;
}

:is(#ispcc-home, #ispcc-committees, #ispcc-generic) .cp-hero-title-text {
    font-size:48px;
    line-height:1.05;
    font-weight:700;
}

:is(#ispcc-home, #ispcc-committees, #ispcc-generic) .cp-actions {
    display:flex;
    gap:12px;
    flex-wrap:wrap;
}

:is(#ispcc-home, #ispcc-committees, #ispcc-generic) .cp-btn, :is(#ispcc-home, #ispcc-committees, #ispcc-generic) .cp-btn-alt, :is(#ispcc-home, #ispcc-committees, #ispcc-generic) .cp-internship-cta {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    text-align:center;
}

:is(#ispcc-home, #ispcc-committees, #ispcc-generic) .cp-btn, :is(#ispcc-home, #ispcc-committees, #ispcc-generic) .cp-btn-alt {
    min-height:44px;
    padding:10px 18px;
    border-radius:8px;
    font-size:14px;
    font-weight:700;
    transition:.2s ease;
}

:is(#ispcc-home, #ispcc-committees, #ispcc-generic) .cp-btn {
    background:var(--brand);
    color:#fff;
    border:2px solid #fff;
}

:is(#ispcc-home, #ispcc-committees, #ispcc-generic) .cp-btn:hover {
    background:#fff;
    color:var(--brand);
    border:2px solid var(--brand);
}

:is(#ispcc-home, #ispcc-committees, #ispcc-generic) .cp-btn-alt {
    background:#fff;
    color:var(--brand);
    border:2px solid var(--brand);
}

:is(#ispcc-home, #ispcc-committees, #ispcc-generic) .cp-btn-alt:hover {
    background:var(--brand);
    color:#fff;
    border:2px solid #fff;
}

:is(#ispcc-home, #ispcc-committees, #ispcc-generic) .cp-btn-top {
    margin-top:30px;
}

:is(#ispcc-home, #ispcc-committees, #ispcc-generic) .cp-internship-cta {
    min-width:100px;
    min-height:50px;
    padding:10px 30px;
    border-radius:18px;
    background:var(--brand);
    color:#fff !important;
    line-height:1.3;
    transition:transform .22s ease, box-shadow .22s ease, background-color .22s ease;
}

:is(#ispcc-home, #ispcc-committees, #ispcc-generic) .cp-internship-cta:hover {
    background:var(--brand-dark);
    transform:translateY(-2px);
    box-shadow:0 10px 24px rgba(0,0,0,.14);
}

:is(#ispcc-home, #ispcc-committees, #ispcc-generic) .cp-grid-2 {
    display:grid;
    grid-template-columns:repeat(2, 1fr);
    gap:22px;
    padding:0 40px;
}

:is(#ispcc-home, #ispcc-committees, #ispcc-generic) .cp-card {
    display:flex;
    flex-direction:column;
    margin:0 auto;
    padding:24px;
    background:#fff;
    border:1px solid var(--border);
    border-radius:16px;
    box-shadow:var(--shadow);
    transform:translateY(0);
    transition:transform .24s ease, box-shadow .24s ease, border-color .24s ease, background-color .24s ease;
}

:is(#ispcc-home, #ispcc-committees, #ispcc-generic) .cp-card:hover {
    transform:translateY(-3px);
    background:#fff;
    border-color:var(--brand);
    box-shadow:0 10px 22px rgba(0,0,0,.14);
}

:is(#ispcc-home, #ispcc-committees, #ispcc-generic) .cp-card-center {
    text-align:center;
}

:is(#ispcc-home, #ispcc-committees, #ispcc-generic) .cp-card-icon {
    display:block;
    width:auto !important;
    height:45px !important;
    margin:0 auto 10px;
}

:is(#ispcc-home, #ispcc-committees, #ispcc-generic) .cp-card-copy {
    margin:0;
    font-size:15px;
    line-height:1.65;
    color:var(--muted);
}

:is(#ispcc-home, #ispcc-committees, #ispcc-generic) .cp-box {
    max-width:1280px;
    margin:0 auto 15px;
    padding:30px 30px 20px;
    background:#fff;
    border-radius:24px;
    box-shadow:0 16px 40px rgba(0,0,0,.18);
    transition:transform 180ms ease, box-shadow 180ms ease;
}

:is(#ispcc-home, #ispcc-committees, #ispcc-generic) .cp-box:hover {
    transform:translateY(-3px);
    box-shadow:0 10px 22px rgba(0,0,0,.14);
}

:is(#ispcc-home, #ispcc-committees, #ispcc-generic) .cp-partner-head {
    display:flex;
    align-items:center;
    gap:35px;
    margin-bottom:24px;
}

:is(#ispcc-home, #ispcc-committees, #ispcc-generic) .cp-partner-head img {
    width:250px;
    max-width:35%;
    height:auto;
    flex-shrink:0;
}

:is(#ispcc-home, #ispcc-committees, #ispcc-generic) .cp-partner-head h3 {
    margin:0;
    color:var(--brand);
    font-size:24px;
    line-height:1.2;
}

:is(#ispcc-home, #ispcc-committees, #ispcc-generic) .cp-partner-subtitle {
    display:block;
    margin-top:6px;
    color:var(--brand);
    font-size:18px;
    line-height:1.3;
}

:is(#ispcc-home, #ispcc-committees, #ispcc-generic) .cp-partner-text {
    clear:both;
}

:is(#ispcc-home, #ispcc-committees, #ispcc-generic) .cp-partner-text p {
    font-size:12pt;
    line-height:1.6;
    color:#000;
}

:is(#ispcc-home, #ispcc-committees, #ispcc-generic) {
    --brand:#af0061;
    --brand-dark:#640777;
    --light:#eef4fb;
    --text:#16324a;
    --muted:#4d6478;
    --border:#dbe5f0;
    --shadow:0 12px 28px rgba(0,0,0,.08);
}

:is(#ispcc-home, #ispcc-committees, #ispcc-generic) * {
    box-sizing:border-box;
}

:is(#ispcc-home, #ispcc-committees, #ispcc-generic) img {
    display:block;
    max-width:100%;
    height:auto;
}

:is(#ispcc-home, #ispcc-committees, #ispcc-generic) a {
    text-decoration:none;
}

:is(#ispcc-home, #ispcc-committees, #ispcc-generic) .cp-main-hero {
    background-image:url('/images/ispcc-slider.png');
}

:is(#ispcc-home, #ispcc-committees, #ispcc-generic) .cp-hero-title-text {
    margin:0;
    color:#000;
}

:is(#ispcc-home, #ispcc-committees, #ispcc-generic) .cp-hero-title-text span {
    display:block;
}

:is(#ispcc-home, #ispcc-committees, #ispcc-generic) .cp-hero-title-text .cp-title-accent {
    color:var(--brand);
}

:is(#ispcc-home, #ispcc-committees, #ispcc-generic) .cp-event-details {
    margin-top:50px;
}

:is(#ispcc-home, #ispcc-committees, #ispcc-generic) .cp-event-details h2 {
    margin:0;
    font-size:24px;
    font-weight:700;
    color:#000;
}

:is(#ispcc-home, #ispcc-committees, #ispcc-generic) .cp-event-details .cp-card-copy {
    font-size:18.67px;
}

:is(#ispcc-home, #ispcc-committees, #ispcc-generic) .cp-event-details .cp-card {
    width:100%;
}

:is(#ispcc-home, #ispcc-committees, #ispcc-generic) .cp-section {
    padding-top:64px;
    padding-bottom:64px;
}

:is(#ispcc-home, #ispcc-committees, #ispcc-generic) .cp-section::after {
    content:'';
    display:block;
    clear:both;
}

:is(#ispcc-home, #ispcc-committees, #ispcc-generic) .cp-about-image {
    float:right;
    width:400px;
    margin:0 0 20px 50px;
}

:is(#ispcc-home, #ispcc-committees, #ispcc-generic) .cp-partner-head h3 {
    font-weight:600;
}

:is(#ispcc-home, #ispcc-committees, #ispcc-generic) .cp-partner-actions {
    display:flex;
    flex-wrap:wrap;
    gap:20px;
    margin-top:24px;
}

:is(#ispcc-home, #ispcc-committees, #ispcc-generic) .cp-btn[aria-disabled] {
    opacity:.7;
    cursor:not-allowed;
}

:is(#ispcc-home, #ispcc-committees, #ispcc-generic) :focus-visible {
    outline:3px solid #528cfa;
    outline-offset:4px;
}

/* Committees */
#ispcc-committees .committee-grid{
  max-width:1400px;
  margin:30px auto 60px;
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:24px;
}

#ispcc-committees .committee-card{
  position:relative;
  background:#fff;
  border:1px solid var(--border);
  border-radius:18px;
  padding:26px 22px;
  text-align:center;
  box-shadow:var(--shadow);
  transition:
    transform .24s ease,
    box-shadow .24s ease,
    border-color .24s ease;
}

#ispcc-committees .committee-card:hover{
  transform:translateY(-4px);
  border-color:var(--brand);
  box-shadow:0 12px 26px rgba(0,0,0,.14);
}

#ispcc-committees .committee-card img{
  width:150px;
  height:150px;
  object-fit:cover;
  border-radius:999px;
  display:block;
  margin:0 auto 18px;
}

#ispcc-committees .committee-card h3{
  margin:0 0 10px;
  font-size:20px;
  line-height:1.2;
  font-weight:700;
  color:var(--brand);
}

#ispcc-committees .committee-card p{
  margin:0 0 6px;
  font-size:14px;
  line-height:1.45;
  color:var(--muted);
}

#ispcc-committees .committee-card p strong{
  color:#111;
  font-size:13px;
}

#ispcc-committees .scvsa-team-card-link{
  position:absolute;
  inset:0;
  z-index:2;
  display:block;
  overflow:hidden;
  text-indent:-9999px;
}


/* Speakers: stessa griglia dei comitati, con le varianti del modello. */
#speakers .cp-title {
    color: #000;
    font-size: 32px;
}

#speakers .committee-card {
    background-color: #f8f9fa;
}

/* Pagine generiche: contenuti del modello Programme */
  #ispcc-generic .cp-internship-box {
    max-width: 1280px;
    margin: 0 auto;
    background: var(--brand);
    border-radius: 24px;
    padding: 40px 36px 42px;
  }

  #ispcc-generic .cp-internship-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    align-items: start;
  }

  #ispcc-generic .cp-internship-option {
    background: #fff;
    border: 1px solid #dfe3ea;
    border-radius: 20px;
    padding: 22px 24px 18px;
    min-height: 126px;
  }

  #ispcc-generic .cp-internship-option:nth-child(3) {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc(50% - 14px);
  }

  #ispcc-generic .cp-internship-option h4 {
    margin: 0 0 12px;
    font-size: 23px;
    line-height: 1.15;
    font-weight: 700;
    color: #000;
  }

  #ispcc-generic .cp-internship-option p {
    margin: 0;
    font-size: 18px;
    line-height: 1.2;
    color: #2e3d56;
  }

  #ispcc-generic .zoom-card {
    transform: translateZ(0);
    transition: transform 180ms ease, box-shadow 180ms ease;
  }

  #ispcc-generic .zoom-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, .14);
  }

  /* =========================================================
   TOPICS - SINGLE BOX
   ========================================================= */

  #ispcc-generic .cp-topics-box {
    max-width: 1280px;
    margin: 0 auto 50px;
    padding: 38px 42px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: var(--shadow);
  }

  #ispcc-generic .cp-topics-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 18px;
  }

  #ispcc-generic .cp-topic-item {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 72px;
    padding: 16px 20px;
    background: #f8fafc;
    border: 1px solid #e4eaf1;
    border-radius: 14px;
    transition:
      transform .2s ease,
      border-color .2s ease,
      background-color .2s ease;
  }

  #ispcc-generic .cp-topic-item:hover {
    transform: translateY(-2px);
    border-color: var(--brand);
    background: #fff;
  }

  #ispcc-generic .cp-topic-number {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
  }

  #ispcc-generic .cp-topic-name {
    font-size: 18px;
    line-height: 1.3;
    font-weight: 600;
    color: var(--text);
  }

  /* ultimo elemento centrato se i topic sono dispari */
  #ispcc-generic .cp-topic-item:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    width: calc(50% - 9px);
    justify-self: center;
  }


#ispcc-generic > .cp-section > .cp-header .cp-title { font-size: 32px; }

/* Campo antispam del form contatti. */
.fy-footer-form .contact-honeypot {
    display: none;
}
#ispcc-contact-status:empty {
    display: none;
}
