/* Fine-tuning after visual review */
.language-switch { display: flex; gap: 8px; align-items: center; border-left: 1px solid var(--line); padding-left: 18px; }
.language-switch a { opacity: .55; padding: 5px; }
.language-switch a[aria-current="page"] { opacity: 1; border-bottom: 2px solid var(--blue); }
@media (min-width: 801px) { .site-header nav { gap: clamp(12px, 2vw, 28px); } }
html[lang="en"] .team-heading > p { white-space: normal; }
html[lang="en"] .progress-list small { white-space: normal; }
@media (min-width: 801px) {
  html[lang="en"] .hero h1 { font-size: clamp(44px, 4.5vw, 68px); }
}
html[lang="en"] .person p { font-size: 13px; }
@media (min-width: 1100px) {
  .technology .technology-heading { grid-template-columns: minmax(0, 1fr) 180px; gap: 20px; }
  .technology-heading h2 { font-size: clamp(38px, 5vw, 72px); }
  .technology-intro { align-self: center; transform: translateX(-35px); }
}
.strategy-descriptions br.caption-newline { display: block; }
.innovation .innovation-partnership { max-width: none; font-size: 21px; line-height: 1.6; border-top: 1px solid #ffffff35; padding-top: 28px; margin: 40px 0 0; }
.contact-partnership { max-width: 820px; font-size: 21px; line-height: 1.6; margin: 30px 0; }
.contact-cta { max-width: 820px; font-size: clamp(24px, 2.8vw, 36px); line-height: 1.25; letter-spacing: -.035em; margin: 35px 0 0; }
.innovation { padding: 85px 0; }
.innovation h2 { max-width: 980px; }
.innovation-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 55px; margin-top: 45px; }
.innovation h3 { font-size: 24px; line-height: 1.25; margin: 0; letter-spacing: -.035em; }
.innovation p { font-size: 16px; margin: 14px 0 20px; }
.innovation-group + .innovation-group { border-top: 1px solid #ffffff35; margin-top: 28px; padding-top: 25px; }
.support-logos { display: flex; align-items: center; gap: 22px; padding: 8px 0; background: transparent; }
.support-logos img { width: calc((100% - 28px)/3); height: 60px; object-fit: contain; }
.support-logos img { background: white; border-radius: 8px; padding: 9px; }
.accelerator-logos { justify-content: center; gap: 16px; width: fit-content; max-width: 100%; background: white; border-radius: 8px; padding: 12px 16px; }
.accelerator-logos img { width: 145px; max-width: calc(50% - 8px); height: 58px; background: transparent; border-radius: 0; padding: 0; }
.award-heading { display: flex; align-items: center; gap: 20px; margin-bottom: 22px; }
.startcup-logo-box { width: 140px; height: 110px; display: grid; place-items: center; background: white; border-radius: 8px; padding: 6px; flex-shrink: 0; }
.startcup-logo-box img { display: block; width: 100%; height: 100%; object-fit: contain; }
.award-heading p { margin: 8px 0 0; font-size: 14px; }
.innovation-award figure { margin: 0; }
.award-photo { display: block; width: 100%; height: auto; max-height: 300px; object-fit: contain; object-position: left center; border-radius: 12px; }
.innovation-award { align-self: start; }
.innovation-award figure { width: min(100%, 400px); }
.innovation-award figcaption { color: #bdd8e5; font-size: 12px; margin-top: 10px; }
@media (max-width: 800px) { .innovation-grid { grid-template-columns: 1fr; gap: 35px; } }
.team-collaboration { display: flex; align-items: center; gap: 22px; margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line); }
.team-collaboration p { font-size: 16px; color: #527084; margin: 0; }
.team-collaboration img { width: 210px; max-width: 55%; height: 65px; object-fit: contain; }
.team { padding-top: 0; padding-bottom: 85px; background: var(--paper); }
.team-heading { display: block; position: relative; isolation: isolate; color: white; padding: 50px 0; margin: 0; }
.team-heading::before { content: ""; position: absolute; z-index: -1; inset-block: 0; left: 50%; width: 100vw; transform: translateX(-50%); background: linear-gradient(125deg, #196ba4, #0c385e); }
.team-heading > p { font-size: clamp(26px, 2.5vw, 32px); line-height: 1.4; max-width: 1000px; margin: 18px 0 0; color: #c7dfeb; }
@media (min-width: 1100px) {
  .team-heading > p { max-width: none; white-space: nowrap; font-size: clamp(23px, 2vw, 29px); }
}
.team-heading h2 { color: white; }
.team-units { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; margin-top: 38px; }
.team-unit { margin-top: 0; padding: 24px 22px; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.sapienza-unit { background: transparent; }
.team-unit-heading { display: grid; grid-template-rows: 85px auto; align-items: center; justify-items: start; gap: 14px; margin-bottom: 20px; min-height: 126px; }
.team-unit-heading > img { width: 190px; height: 58px; object-fit: contain; }
.tor-vergata-unit .team-unit-heading > img { width: 290px; height: 85px; max-width: 100%; }
.team-unit-heading h3 { font-size: 23px; line-height: 1.2; letter-spacing: -.04em; margin: 0; color: #176d8a; }
.sapienza-unit .team-unit-heading h3 { color: #176d8a; }
.people-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 18px; row-gap: 20px; }
.person { display: flex; flex-direction: row; align-items: center; gap: 12px; padding: 8px 0; border-radius: 12px; transition: transform .2s ease; }
.person:hover { transform: translateY(-3px); }
.person > div { min-width: 0; }
.person > img { width: 72px; height: 72px; object-fit: cover; border-radius: 50%; flex-shrink: 0; background: #e7f0f5; border: 3px solid white; box-shadow: 0 0 0 2px #8ccbd7, 0 5px 12px rgba(7,50,87,.1); }
.sapienza-unit .person > img { border-color: white; box-shadow: 0 0 0 2px #afc68b, 0 5px 12px rgba(7,50,87,.1); }
.person h4 { font-size: 19px; line-height: 1.25; margin: 0 0 4px; letter-spacing: -.03em; }
.person p { color: #527084; font-size: 14px; line-height: 1.4; margin: 0; }
@media (max-width: 800px) {
  .team-units { grid-template-columns: 1fr; gap: 35px; }
  .team-unit-heading { min-height: 0; }
  .people-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .person > img { width: 72px; height: 72px; }
  .person h4 { font-size: 19px; }
}
.progress-list .patent-item { align-items: flex-start; }
.patent-item .progress-icon { margin-top: 4px; }
.patent-item > div { min-width: 0; width: 100%; }
.patent-ownership { margin-top: 14px; }
.ownership-bar { display: flex; height: 12px; overflow: hidden; border-radius: 20px; gap: 3px; }
.ownership-bar span:nth-child(1) { width: 40%; background: #4f85ba; }
.ownership-bar span:nth-child(2) { width: 40%; background: #a0be55; }
.ownership-bar span:nth-child(3) { width: 20%; background: #4daec4; }
.ownership-key { margin-top: 7px; }
.ownership-logos > div { display: flex; align-items: center; gap: 8px; margin: 0; height: 54px; }
.ownership-logos .ownership-dot { flex-shrink: 0; margin: 0; }
.ownership-logos strong { font-size: 16px; flex-shrink: 0; }
.ownership-logos img { display: block; width: 190px; height: 64px; object-fit: contain; object-position: center; }
.ownership-logos > div:nth-child(2) img { padding: 8px 17px; }
.ownership-key p { margin: 7px 0; color: #416276; font-size: 14px; line-height: 1.5; }
.ownership-key strong { color: var(--ink); margin-right: 5px; }
.ownership-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 8px; }
.ownership-dot.tor { background: #4f85ba; }
.ownership-dot.sap { background: #a0be55; }
.ownership-dot.ffc { background: #4daec4; }
.ownership-continuation { margin-left: 17px; }
.progress-list li { align-items: center; gap: 22px; padding: 25px 0; }
.progress-list b { font-size: 23px; }
.progress-list small { font-size: 18px; line-height: 1.5; margin-top: 7px; }
.progress-main p { font-size: 20px; line-height: 1.6; }
.progress-main { min-width: 0; }
@media (min-width: 1100px) {
  .progress-main { display: contents; }
  .progress-main h2 { grid-column: 1; grid-row: 1 / 3; transform: translateY(20px); }
  .progress-main p { grid-column: 1; grid-row: 3; max-width: none; margin: 5px 0 0; }
  .progress-grid { grid-template-columns: 1.4fr .85fr; column-gap: 5vw; row-gap: 0; }
  .progress-list { display: contents; }
  .progress-list > li { grid-column: 2; }
  .progress-list > li:nth-child(1) { grid-row: 1; }
  .progress-list > li:nth-child(2) { grid-row: 2; }
  .progress-list > li:nth-child(3) { grid-row: 3; align-self: start; }
}
@media (max-width: 1099px) {
  .progress-copy-break { display: none; }
}
.progress-list small { white-space: nowrap; }
@media (max-width: 380px) {
  .progress-list small { font-size: 16px; }
}
.progress-icon { width: 62px; height: 62px; object-fit: contain; flex-shrink: 0; }
.technology-heading { align-items: start; }
.technology-heading h2 { font-weight: 500; }
.technology-intro { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.trojan-horse { display: block; width: min(100%, 215px); height: auto; }
.technology-intro p { align-self: stretch; font-size: 21px; text-align: center; line-height: 1.55; }
.nowrap { white-space: nowrap; }
.platform-line { font-size: clamp(25px, 2.6vw, 36px); line-height: 1.3; align-items: center; justify-content: flex-start; gap: 28px; }
.growth-icon { width: 88px; height: 88px; flex-shrink: 0; }
@media (max-width: 800px) {
  .growth-icon { width: 52px; height: 52px; }
}
.strategy-diagram { margin: 60px 0 25px; }
.strategy-diagram img { display: block; width: 100%; height: auto; }
.strategy-descriptions { margin-top: 0; border-top: 0; }
.strategy-descriptions .process-step { min-height: 0; padding-top: 0; padding-bottom: 30px; }
.strategy-descriptions .process-step p { font-size: 20px; line-height: 1.6; max-width: none; text-align: center; text-wrap: balance; }
.strategy-descriptions .process-step { padding-left: 10px; padding-right: 10px; }
@media (min-width: 1100px) {
  .technology-heading { grid-template-columns: 1.15fr .85fr; gap: 4vw; }
}
@media (max-width: 1099px) {
  .strategy-descriptions br, .technology-intro br { display: none; }
  .strategy-descriptions p, .technology-intro p { text-wrap: balance; }
}
.challenge-evidence { width: 100%; margin-top: 0; grid-column: 1; grid-row: 2; }
.challenge-grid { align-items: start; column-gap: 6vw; row-gap: 30px; }
.challenge-right { display: contents; }
.challenge-right .challenge-image { grid-column: 2; grid-row: 1; }
.challenge-right .challenge-copy { grid-column: 2; grid-row: 2; padding-top: 0; }
.challenge-statistics .metrics { margin-top: 0; }
.challenge-statistics .metrics div { padding-right: 15px; }
.challenge-statistics .metrics div + div { padding-left: 22px; }
.challenge-image { margin: 0; }
.challenge-image img { display: block; width: 100%; max-width: 370px; height: auto; object-fit: contain; border-radius: 3px; }
.challenge-image figcaption { margin-top: 12px; font-size: 11px; line-height: 1.6; color: #587284; }
.challenge-image a { color: inherit; text-underline-offset: 3px; }
@media (max-width: 800px) {
  .challenge-evidence { width: 100%; margin-top: 35px; }
  .challenge-grid { display: flex; flex-direction: column; }
  .challenge-right { display: block; }
  .challenge-right .challenge-copy { padding-top: 25px; }
}
.challenge .metrics { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 800px) {
  .challenge .metrics { grid-template-columns: 1fr; }
}
.original-slide-step > img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 752 / 772;
  object-fit: contain;
  margin-bottom: 25px;
}
.original-slide-step,
.original-slide-step + .original-slide-step {
  padding: 25px 12px 26px;
}
.brand img {
  width: clamp(220px, 24vw, 320px);
  height: 115px;
}
.brand { flex-shrink: 0; }
.hero { padding-top: 155px; }
html { scroll-padding-top: 145px; }

.site-header { justify-content: space-between; gap: 24px; padding-top: 10px; padding-bottom: 10px; }
.header-sector {
  color: var(--ink);
  font-size: clamp(18px, 1.8vw, 26px);
  font-weight: 800;
  letter-spacing: -.035em;
  text-decoration: none;
}
.university-logos { align-items: center; justify-content: flex-start; gap: 65px; }
.university-logos img { width: 230px; height: 65px; object-fit: contain; }
@media (max-width: 1050px) and (min-width: 801px) {
  .site-header nav { gap: 18px; }
  .site-header nav a { font-size: 13px; }
}
@media (max-width: 800px) {
  .header-sector { order: -1; font-size: 21px; }
  .university-logos { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 20px; }
  .university-logos img { width: min(42%, 200px); height: 55px; }
  .site-header nav { top: 65px; }
}
.site-header nav { gap: 36px; }
.site-header nav a { font-size: 15px; }
.site-header .nav-contact { padding: 11px 16px; }

.hero-logo-panel {
  display: grid;
  place-items: center;
  padding: 9%;
  background: linear-gradient(135deg, #eaf6fb, #8ccce5);
}

@media (min-width: 801px) {
  .hero {
    height: auto;
    min-height: 100svh;
    grid-template-rows: auto;
    column-gap: 20px;
    padding-bottom: 25px;
  }
  .hero-copy { align-self: start; }
  .hero-right { min-width: 0; }
  .hero-logo-panel {
    height: clamp(300px, calc(100svh - 315px), 520px);
    margin: 0 -126px 0 0;
    padding: 0 9%;
    border-bottom-left-radius: 110px;
  }
  .hero-right .university-logos {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 32px;
    padding: 18px 0;
    margin-top: 12px;
    margin-right: -126px;
    border-top: 0;
  }
  .hero-right .university-logos img { width: 33%; height: 70px; }
  .hero-right .university-logos img:first-child { width: 53%; height: 105px; }
}

@media (min-width: 801px) and (max-height: 750px) {
  .site-header { padding-top: 8px; padding-bottom: 8px; }
  .brand img { height: 100px; }
  .hero { padding-top: 135px; }
  .hero-logo-panel { height: clamp(280px, calc(100svh - 265px), 520px); }
}

.hero-logo-panel img {
  width: min(92%, 620px);
  height: auto;
  filter: drop-shadow(0 18px 22px rgba(7, 50, 87, .18));
}

@media (max-width: 800px) {
  .brand img {
    width: 210px;
    height: 95px;
  }

  .site-header nav { top: 115px; }
  .hero { padding-top: 145px; }
  html { scroll-padding-top: 125px; }

  .hero-logo-panel { padding: 12%; }
  .hero-logo-panel img { width: 96%; }
  .hero-right .university-logos { justify-content: center; gap: 24px; }
  .hero-right .university-logos img { width: 36%; height: 60px; }
  .hero-right .university-logos img:first-child { width: 51%; height: 85px; }
}

.mechanism-visual {
  height: 113px;
  margin-top: 32px;
  position: relative;
  display: flex;
  align-items: center;
}

.mechanism-visual img {
  display: block;
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.visual-zinc img:first-child { width: 230px; }
.visual-zinc .zincophore { width: 54px; margin-left: -27px; margin-bottom: 72px; }
.visual-synthesis { gap: 10px; }
.visual-synthesis img:first-child { width: 48px; }
.visual-synthesis img:nth-of-type(2) { width: 47px; }
.visual-synthesis img:last-child { width: 86px; }
.visual-synthesis b { color: var(--lime); font-size: 22px; }
.visual-synthesis i { color: var(--sky); font-style: normal; font-size: 25px; }
.visual-entry img { width: 215px; }

@media (max-width: 800px) {
  .mechanism-visual { height: 105px; margin-top: 20px; }
}

/* Responsive layout: keep desktop art direction, let smaller screens reflow. */
@media (max-width: 1099px) {
  .site-header { padding: 8px 24px; }
  .brand img { width: 190px; height: 80px; }
  .menu-toggle { display: grid; gap: 5px; border: 0; background: none; padding: 12px; cursor: pointer; }
  .menu-toggle span { display: block; width: 25px; border-top: 2px solid var(--ink); }
  .site-header nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper); padding: 22px 24px; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 8px;
    max-height: calc(100svh - 96px); overflow-y: auto;
  }
  .site-header nav.open { display: flex; }
  .site-header nav a { display: inline-block; padding: 10px 0; }
  .site-header .nav-contact { align-self: flex-start; padding: 10px 16px; }
  .language-switch { border-left: 0; border-top: 1px solid var(--line); padding: 8px 0 0; margin-top: 8px; gap: 20px; }
  .language-switch a { min-width: 44px; text-align: center; }
  html { scroll-padding-top: 112px; }
  .hero { padding-top: 125px; }
  .technology-heading h2 br { display: none; }
  .progress-grid { grid-template-columns: 1fr; gap: 32px; }
  .progress-list small { white-space: normal; }
  .progress-list li > div { min-width: 0; }
  .team-units { grid-template-columns: 1fr; }
  .team-unit { min-width: 0; }
}

@media (min-width: 801px) and (max-width: 1099px) {
  .hero { column-gap: 28px; }
  .hero-logo-panel { margin-right: 0; height: 340px; border-bottom-left-radius: 70px; }
  .hero-right .university-logos { margin-right: 0; gap: 16px; }
  .hero-right .university-logos img { width: 36%; height: 55px; }
  .hero-right .university-logos img:first-child { width: 53%; height: 80px; }
}

@media (max-width: 800px) {
  .hero { min-height: auto; padding-bottom: 35px; }
  .hero h1 { font-size: clamp(40px, 11.5vw, 68px); }
  .hero-intro { max-width: none; }
  .hero-logo-panel {
    height: auto; aspect-ratio: 1.3; margin: 32px 0 0;
    padding: 8%; border-bottom-left-radius: 70px;
  }
  .hero-right .university-logos { flex-wrap: nowrap; gap: 16px; margin-top: 14px; }
  .hero-right .university-logos img { width: 36%; height: 60px; }
  .hero-right .university-logos img:first-child { width: 53%; height: 80px; }
  .challenge, .progress { padding-top: 64px; padding-bottom: 64px; }
  .challenge-evidence { margin-top: 0; }
  .challenge .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .challenge .metrics div + div { border-top: 0; border-left: 1px solid var(--line); padding-left: 16px; }
  .challenge .metrics span { font-size: 12px; }
  .source-note { line-height: 1.6; }
  .technology { padding: 64px 0; }
  .technology-heading { grid-template-columns: 1fr; gap: 24px; }
  .technology-heading h2 { font-size: clamp(34px, 8.8vw, 48px); line-height: 1.12; }
  .technology-intro { transform: none; }
  .trojan-horse { width: 145px; }

  /* Reuse the identical diagram artwork, one third per caption, without redrawing it. */
  .strategy-diagram { display: none; }
  .strategy-descriptions { margin-top: 28px; gap: 28px; }
  .strategy-descriptions .process-step,
  .strategy-descriptions .process-step + .process-step { border: 0; padding: 0; min-width: 0; }
  .strategy-descriptions .process-step::before {
    content: ""; display: block; width: min(100%, 390px); aspect-ratio: 660 / 760;
    margin: 0 auto 18px; background-image: url("assets/schema-strategia-iliontech.png");
    background-size: 313.485% 100%; background-repeat: no-repeat; background-position: 3.34% center;
  }
  html[lang="en"] .strategy-descriptions .process-step::before { background-image: url("assets/schema-strategia-iliontech-en.png"); }
  .strategy-descriptions .process-step:nth-child(2)::before { background-position: 50.67% center; }
  .strategy-descriptions .process-step:nth-child(3)::before { background-position: 97.8% center; }
  .strategy-descriptions .process-step p { font-size: 18px; line-height: 1.6; max-width: 38ch; margin: auto; }
  .strategy-descriptions br { display: none; }
  .strategy-descriptions br.caption-newline { display: block; }
  .platform-line { font-size: 23px; gap: 16px; margin-top: 32px; align-items: flex-start; }
  .growth-icon { width: 42px; height: 42px; }
  .platform-line span { min-width: 0; }
  .progress-main p { font-size: 18px; }
  .progress-list li { gap: 14px; padding: 22px 0; }
  .progress-icon { width: 46px; height: 46px; }
  .progress-list b { font-size: 21px; line-height: 1.35; }
  .progress-list small { font-size: 16px; }
  .ownership-logos img { width: min(190px, 100%); min-width: 0; flex-shrink: 1; }
  .ownership-logos > div { gap: 6px; }
  .team { padding-top: 0; padding-bottom: 60px; }
  .team-heading { padding: 35px 0; }
  .team-heading > p { font-size: 22px; line-height: 1.5; }
  .team-units { gap: 26px; margin-top: 24px; }
  .team-unit { padding: 12px 0; }
  .team-unit-heading { grid-template-rows: auto auto; min-height: 0; }
  .team-unit-heading h3 { font-size: 22px; }
  .people-grid { gap: 18px 24px; }
  .person { min-width: 0; gap: 12px; }
  .person h4 { font-size: 18px; overflow-wrap: anywhere; }
  .team-collaboration { flex-wrap: wrap; gap: 12px; }
  .team-collaboration img { max-width: 100%; }
  .innovation { padding: 64px 0; }
  .innovation-grid { min-width: 0; }
  .innovation-support, .innovation-award { min-width: 0; }
  .support-logos { gap: 10px; }
  .support-logos > img { width: calc((100% - 20px) / 3); height: 64px; padding: 6px; }
  .accelerator-logos { gap: 16px; }
  .accelerator-logos > img { width: 125px; height: 58px; padding: 0; }
  .award-heading { gap: 14px; }
  .startcup-logo-box { width: 105px; height: 85px; }
  .award-heading h3 { font-size: 21px; }
  .innovation .innovation-partnership { font-size: 18px; }
  .contact { padding: 64px 0; }
  .contact-note { line-height: 1.7; }
  footer { flex-wrap: wrap; gap: 14px; }
}

@media (max-width: 540px) {
  .people-grid { grid-template-columns: 1fr; gap: 12px; }
  .person h4 { overflow-wrap: normal; }
  .person > img { width: 68px; height: 68px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
