/* Shared by the Italian and English editions. No external fonts or scripts. */
:root {
  --ink: #182e40;
  --teal: #245b64;
  --paper: #f8f7f3;
  --surface: #fff;
  --muted: #59656d;
  --line: #d7dcd9;
  --accent: #a16c3b;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --content: 1160px;
  --gutter: clamp(22px, 4.4vw, 64px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.75 var(--sans); overflow-wrap: break-word; }
img { max-width: 100%; }
a { color: var(--teal); text-underline-offset: .22em; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
p { margin: 0 0 1.25em; }
h1, h2, h3 { text-wrap: balance; }
h1, h2 { font-family: var(--serif); font-weight: 400; }
h1 { margin: 0 0 36px; font-size: clamp(40px, 5.2vw, 66px); line-height: 1.1; letter-spacing: -.045em; }
h2 { margin: 46px 0 18px; font-size: clamp(28px, 3vw, 36px); line-height: 1.25; letter-spacing: -.025em; }
h3 { margin: 0 0 14px; font-size: 20px; line-height: 1.35; }
li { padding-left: 4px; margin-bottom: 12px; }
li::marker { color: var(--teal); }
.skip { position: absolute; z-index: 10; left: 20px; top: -100px; padding: 12px 18px; background: var(--surface); }
.skip:focus { top: 12px; }

/* Header: navigation stays visible at every screen size. */
.top { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 14px 28px; max-width: calc(var(--content) + 2 * var(--gutter)); margin: auto; padding: 25px var(--gutter) 0; }
.name { grid-column: 1; grid-row: 1; color: var(--ink); font-size: 18px; font-weight: 650; letter-spacing: -.02em; text-decoration: none; }
.top > nav { grid-column: 1 / -1; grid-row: 2; display: flex; flex-wrap: wrap; gap: 2px 30px; border-bottom: 1px solid var(--line); }
nav a { position: relative; padding: 11px 0 16px; color: var(--muted); font-size: 14px; text-decoration: none; }
nav a:hover, nav a[aria-current] { color: var(--ink); }
nav a[aria-current]::after { position: absolute; bottom: -1px; left: 0; right: 0; height: 2px; background: var(--teal); content: ''; }
.language { grid-column: 2; grid-row: 1; display: flex; gap: 4px; align-items: center; font-size: 12px; }
.language a, .language span { display: inline-flex; min-height: 44px; align-items: center; padding: 5px 11px; text-decoration: none; }
.language span { color: var(--ink); background: #e9ece8; border-radius: 3px; }
.language a { color: var(--muted); }
.language a:hover { background: #eeefeb; }

/* Home: an editorial title and a portrait with a consistent crop. */
.hero { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(36px, 5vw, 72px); max-width: calc(var(--content) + 2 * var(--gutter)); margin: 48px auto 42px; padding: 0 var(--gutter); }
.eyebrow { display: flex; align-items: center; gap: 13px; margin: 0 0 22px; color: var(--teal); font-size: 11px; font-weight: 650; letter-spacing: .15em; text-transform: uppercase; }
.eyebrow::before { width: 28px; height: 1px; flex: 0 0 28px; background: currentColor; content: ''; }
.intro h1 { margin: 0 0 22px; font-size: clamp(62px, 6.6vw, 91px); line-height: .98; letter-spacing: -.055em; }
.intro h1 span { display: block; }
.hero-deck { max-width: 510px; margin: 0 0 24px; font-family: var(--serif); font-size: clamp(23px, 2.2vw, 29px); line-height: 1.35; letter-spacing: -.02em; }
.intro > p:not(.hero-deck) { max-width: 490px; color: var(--muted); font-size: 15px; line-height: 1.8; margin-bottom: 16px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 27px; }
.actions a { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; padding: 10px 20px; background: var(--ink); color: white; font-size: 13px; font-weight: 600; text-decoration: none; border: 1px solid var(--ink); border-radius: 2px; }
.actions a:hover { background: var(--teal); border-color: var(--teal); }
.actions a + a { background: transparent; color: var(--ink); border-color: #aebbbd; }
.actions a + a:hover { background: #e9ece8; }
.portrait { position: relative; margin: 0; }
.portrait img { display: block; width: 100%; height: auto; aspect-ratio: 5 / 6; object-fit: cover; object-position: 38% center; background: #dde4e1; }
.portrait figcaption { margin-top: 10px; text-align: right; color: var(--muted); font-size: 10px; letter-spacing: .08em; }

/* Institutional marks keep their original proportions. */
.ribbon { display: grid; grid-template-columns: repeat(3, 1fr); max-width: var(--content); margin: 0 auto; padding: 27px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ribbon a { display: flex; flex-direction: column; gap: 10px; align-items: center; justify-content: center; min-width: 0; padding: 0 20px; text-align: center; text-decoration: none; }
.ribbon a + a { border-left: 1px solid var(--line); }
.ribbon img { display: block; width: 144px; height: 64px; object-fit: contain; mix-blend-mode: multiply; }
.ribbon .infn-logo { width: 100px; }
.ribbon .lincei-logo { width: 188px; }
.ribbon span { color: var(--muted); font-size: 11px; }

.home-section, .home-content { max-width: var(--content); margin: 70px auto; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.section-heading .eyebrow { margin-bottom: 13px; }
.section-heading h2 { margin: 0; font-size: clamp(32px, 3.5vw, 43px); }
.section-heading > a { flex-shrink: 0; font-size: 13px; }
.projects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.project { display: grid; grid-template-columns: 150px 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: 2px; overflow: hidden; }
.project > img { display: block; width: 100%; height: 100%; min-height: 220px; object-fit: cover; }
.project-body { padding: 27px 25px; }
.project h3 { font-family: var(--serif); font-size: 27px; font-weight: 400; letter-spacing: -.025em; }
.project p { margin-bottom: 18px; color: var(--muted); font-size: 14px; line-height: 1.75; }
.project a { font-size: 12px; font-weight: 600; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.card { border-top: 2px solid var(--teal); padding: 24px 0 0; font-size: 14px; color: var(--muted); }
.card h3 { margin-bottom: 15px; color: var(--ink); font-size: 18px; font-weight: 600; }
.card p { margin: 0; }
.section-links { display: flex; flex-wrap: wrap; gap: 16px 28px; padding-top: 25px; margin-top: 30px; border-top: 1px solid var(--line); font-size: 13px; }
.home-quote { max-width: var(--content); margin: 70px auto 80px; padding: 40px 52px; background: #ecefe9; border-left: 2px solid var(--teal); }
.home-quote blockquote { margin: 0; max-width: 940px; }
.home-quote blockquote p { font-family: var(--serif); font-size: clamp(23px, 2.4vw, 31px); line-height: 1.5; letter-spacing: -.015em; margin: 0 0 23px; text-wrap: pretty; }
.home-quote figcaption { color: var(--muted); font-size: 12px; }
.home-quote figcaption span { display: block; font-size: 11px; margin-top: 2px; }

/* Internal pages share a comfortable reading width. */
main.article { max-width: 900px; min-height: 65vh; margin: auto; padding: 66px var(--gutter) 80px; }
.article > h1 { padding-bottom: 30px; border-bottom: 1px solid var(--line); }
.article > h1 + h2 { margin-top: 0; font-size: 27px; color: var(--teal); }
.article p, .article li { font-size: 16px; }
.article > ul { padding-left: 21px; }
.article > ul > li { padding-bottom: 13px; border-bottom: 1px solid #e2e5e0; }
.article > ul > li:last-child { border-bottom: 0; }
.page-trail { display: flex; flex-wrap: wrap; gap: 20px; margin: 0 0 30px; font-size: 13px !important; }
.page-trail a { text-decoration: none; }
.page-trail a[aria-current] { color: var(--ink); text-decoration: underline; }
details { padding: 20px 24px; margin: 32px 0; background: var(--surface); border: 1px solid var(--line); border-radius: 2px; }
summary { cursor: pointer; font-weight: 600; font-size: 15px; }
details[open] summary { margin-bottom: 20px; }
details p, details li { font-size: 14px !important; }
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin: 35px 0 46px; }
.contact-card { padding: 27px; background: var(--surface); border: 1px solid var(--line); border-top: 2px solid var(--teal); }
.contact-card h2 { margin: 0 0 22px; font-size: 27px; }
.contact-card p { font-size: 14px; }
.contact-card p:last-child { margin-bottom: 0; }
footer { display: grid; grid-template-columns: 1fr auto; gap: 10px 28px; max-width: calc(var(--content) + 2 * var(--gutter)); margin: auto; padding: 28px var(--gutter) 38px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
footer > span:first-child { color: var(--ink); }
.last-updated { grid-column: 1 / -1; font-size: 10px; letter-spacing: .02em; }
.preview { padding: 6px 20px; text-align: center; font-size: 12px; background: #e9ece8; }

.ribbon, .home-section, .home-content, .home-quote { width: calc(100% - 2 * var(--gutter)); }
@media (max-width: 1000px) {
  .top > nav { column-gap: 24px; }
  .hero { gap: 32px; }
  .intro h1 { font-size: 70px; }
  .portrait img { aspect-ratio: 4 / 5; }
  .project { grid-template-columns: 108px 1fr; }
  .project-body { padding: 23px 20px; }
  .project h3 { font-size: 24px; }
  .cards { gap: 24px; }
  footer { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .top { padding-top: 15px; gap: 9px 10px; }
  .name { font-size: 16px; }
  .language { gap: 0; font-size: 11px; }
  .language a, .language span { padding: 4px 8px; }
  .top > nav { column-gap: 22px; row-gap: 0; }
  nav a { min-height: 44px; padding: 9px 0 11px; font-size: 13px; }
  .hero { grid-template-columns: 1fr; gap: 32px; margin-top: 36px; margin-bottom: 30px; }
  .intro h1 { font-size: clamp(60px, 12vw, 85px); }
  .intro h1 span { display: inline; }
  .hero-deck { font-size: 26px; max-width: 560px; }
  .intro > p:not(.hero-deck) { max-width: 580px; }
  .portrait img { aspect-ratio: 3 / 2; object-position: center; }
  .ribbon { padding: 22px 0; }
  .ribbon a { padding: 0 12px; }
  .ribbon img { height: 47px; width: 120px; }
  .ribbon .infn-logo { width: 75px; }
  .ribbon .lincei-logo { width: 145px; }
  .ribbon span { font-size: 10px; }
  .home-section, .home-content { margin-top: 48px; margin-bottom: 48px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 14px; }
  .projects { gap: 18px; }
  .project { display: flex; flex-direction: column; }
  .project > img { height: 140px; min-height: 0; object-position: center; }
  .project-body { padding: 22px; }
  .cards { grid-template-columns: 1fr; gap: 26px; }
  .card { padding-top: 18px; }
  .card h3 { margin-bottom: 10px; }
  .home-quote { margin-top: 48px; margin-bottom: 48px; padding: 30px; }
  main.article { padding-top: 40px; padding-bottom: 50px; }
  .contact-grid { grid-template-columns: 1fr; }
  footer { padding-top: 24px; padding-bottom: 28px; }
}
@media (max-width: 460px) {
  .name { max-width: 130px; line-height: 1.25; }
  .top > nav { column-gap: 20px; }
  .intro h1 { font-size: 65px; }
  .intro h1 span { display: block; }
  .hero-deck { font-size: 25px; }
  .eyebrow { font-size: 10px; }
  .ribbon { grid-template-columns: 1fr; padding: 10px 0; }
  .ribbon a { flex-direction: row; justify-content: space-between; gap: 20px; padding: 15px 8px; }
  .ribbon a + a { border-left: 0; border-top: 1px solid var(--line); }
  .ribbon img { flex-shrink: 0; height: 46px; width: 122px; }
  .ribbon .infn-logo { width: 122px; padding: 0 23px; }
  .ribbon .lincei-logo { width: 122px; }
  .ribbon span { text-align: right; font-size: 11px; }
  .projects { grid-template-columns: 1fr; }
  .project { display: grid; grid-template-columns: 105px 1fr; }
  .project > img { height: 100%; min-height: 205px; }
  .project-body { padding: 22px 18px; }
  .project p { font-size: 13px; }
  .home-quote { padding: 25px; }
  .home-quote blockquote p { font-size: 24px; }
  .contact-card { padding: 23px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
@media print {
  .top > nav, .language, .skip, .actions, .section-links { display: none; }
  body { background: white; font-size: 11pt; }
  .top { display: block; padding: 0 0 12px; border-bottom: 1px solid var(--line); }
  main.article { max-width: none; min-height: 0; padding: 30px 0; }
  h1 { font-size: 32pt; }
  h2 { break-after: avoid; font-size: 20pt; }
  a { color: inherit; }
  .hero { margin: 25px 0; padding: 0; gap: 30px; grid-template-columns: 1.2fr 1fr; }
  .intro h1 { font-size: 46pt; }
  .hero-deck { font-size: 18pt; }
  .intro > p:not(.hero-deck) { font-size: 10pt; }
  .ribbon, .home-section, .home-content, .home-quote { margin: 25px 0; }
  .ribbon img { height: 40px; }
  .projects, .cards { display: block; }
  .project, .card, .home-quote, .contact-card { break-inside: avoid; margin-bottom: 20px; }
  .project { display: grid; }
  .project > img { min-height: 0; max-height: 170px; }
  .home-quote { padding: 20px; background: none; }
  .home-quote blockquote p { font-size: 16pt; }
  footer { padding: 15px 0; }
}
