/* Shared styles for the redesigned pages.
   Loaded on every page after the theme's base CSS; everything is scoped to
   the classes below so older templates are unaffected.

   1. Page frame and header (.pg, .pg-hero)
   2. Section headings and body text (.pg-body)
   3. Cards (.cards, .card) and chips (.chips)
   4. Stats row, call-out banner, buttons
   5. Page-specific: impact, team, news, publications, teaching, about, join */

/* ============ 1. Page frame and header ============ */

section.pg {
  width: 960px;
}

.pg-hero {
  padding-bottom: 1.8rem;
  margin-bottom: .5rem;
  border-bottom: 1px solid #e6e6e6;
}
.pg-kicker {
  margin: 0 0 .6rem;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--myorange);
}
.pg-hero .titolo {
  margin: 0 0 1.1rem;
  font-size: 44px;
  line-height: 1.1;
  letter-spacing: -.01em;
}
.pg-lede {
  max-width: 760px;
  font-size: 19px;
  line-height: 1.55;
}
.pg-lede p {
  margin: 0 0 .8rem;
}
.pg-lede p:last-child {
  margin-bottom: 0;
}

/* ============ 2. Section headings and body ============ */

.pg-body {
  font-size: 16px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.pg-body > p,
.pg-body > ul,
.pg-body > ol {
  max-width: 760px;
}
.pg-body h2 {
  margin: 3rem 0 1.3rem;
  padding-bottom: .6rem;
  font-size: 28px;
  font-weight: 500;
  color: var(--h1textcolor);
  border-bottom: 1px solid #e6e6e6;
  scroll-margin-top: 90px;
}
.pg-body ul {
  padding-left: 1.1em;
}
.pg-body li {
  margin-bottom: .45rem;
}
.pg-body li::marker {
  color: var(--myorange);
}
.pg-body .highlight pre {
  padding: 18px 20px;
  font-size: 14px;
  background-color: #f7f7f7 !important;
  border: 1px solid #e6e6e6;
  border-radius: 2px;
}

/* ============ 3. Cards and chips ============ */

.cards {
  display: grid;
  gap: 18px;
  margin: 0 0 1.4rem;
}
.cards-1 { grid-template-columns: 1fr; }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.cards-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  padding: 20px 22px 14px;
  background: #fff;
  border: 1px solid #e6e6e6;
  border-left: 3px solid var(--myorange);
  border-radius: 2px;
  transition: box-shadow .15s ease;
}
.card:hover {
  box-shadow: 0 4px 18px rgba(0, 0, 0, .07);
}
.card h3 {
  margin: 0 0 .7rem;
  font-size: 19px;
  font-weight: 500;
  line-height: 1.25;
  color: var(--h1textcolor);
}
.card h3 a {
  font-weight: inherit;
  color: inherit;
}
.card h3 a:hover {
  color: var(--myorange);
}
.card h3 .fa {
  width: 1.3em;
  color: var(--myorange);
}
.card p,
.card ul {
  margin: 0 0 .7rem;
  font-size: 15px;
}
.card li {
  margin-bottom: .35rem;
}
.cards-1 .card > p,
.cards-1 .card > ul {
  max-width: 800px;
}
.card-tag {
  margin: 0 0 .4rem !important;
  font-size: 12px !important;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #999;
}

/* List variant: no accent, list rows separated by rules */
.card-list {
  border-left-width: 1px;
}
.card-list ul {
  padding-left: 0;
  list-style: none;
}
.card-list li {
  margin: 0;
  padding: .55rem 0;
  border-top: 1px solid #efefef;
}
.card-list li:first-child {
  border-top: 0;
  padding-top: 0;
}

/* Dark variant, echoing the site header */
.card-dark {
  background: var(--header_background_color);
  border-color: var(--header_background_color);
  border-left-color: var(--myorange);
  color: #ececec;
}
.card-dark h3,
.card-dark strong { color: #fff; }
.card-dark .card-tag { color: var(--myorange); }

/* Chips: a markdown list, or Hugo's TableOfContents, shown as pills */
.chips ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}
.chips li {
  margin: 0;
}
.chips ul ul { display: none; }
.chips li,
.chips a {
  font-size: 14px;
}
.chips li:not(:has(a)),
.chips a {
  display: inline-block;
  padding: 6px 14px;
  color: var(--textcolor);
  border: 1px solid #d9d9d9;
  border-radius: 999px;
}
.chips a:hover {
  color: #fff;
  background: var(--myorange);
  border-color: var(--myorange);
}
.pg-toc {
  margin-top: 1.4rem;
}

/* ============ 4. Stats, call-out, buttons ============ */

.pg-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 1.6rem 0 0;
}
.pg-stat {
  padding: 18px 20px;
  background: #f7f7f7;
  border-top: 3px solid var(--myorange);
}
.pg-stat-value {
  display: block;
  font-size: 34px;
  font-weight: 500;
  line-height: 1.1;
  color: var(--h1textcolor);
}
.pg-stat-label {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.35;
}

.pg-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 3rem 0 1rem;
  padding: 24px 28px;
  color: #ececec;
  background: var(--header_background_color);
  border-left: 3px solid var(--myorange);
}
.pg-cta p {
  margin: 0;
  font-size: 16px;
}
.pg-cta strong {
  display: block;
  margin-bottom: 4px;
  font-size: 20px;
  font-weight: 500;
  color: #fff;
}
.pg-cta a { color: #fff; text-decoration: underline; }
.pg-cta a.pg-cta-btn {
  flex: 0 0 auto;
  padding: 10px 20px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  color: #fff;
  background: var(--myorange);
  border-radius: 2px;
}
.pg-cta a.pg-cta-btn:hover {
  background: var(--myorangeover);
}

/* Small link pills (paper links: arxiv, doi, code…) */
.pill {
  display: inline-block;
  margin: 0 6px 4px 0;
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--textcolor);
  border: 1px solid #d9d9d9;
  border-radius: 999px;
}
.pill:hover {
  color: #fff;
  background: var(--myorange);
  border-color: var(--myorange);
}

/* ============ 5a. Impact ============ */

.pg-impact .pg-body {
  counter-reset: impact-section;
}
.pg-impact .pg-body h2 {
  counter-increment: impact-section;
}
.pg-impact .pg-body h2::before {
  content: counter(impact-section, decimal-leading-zero);
  margin-right: .7rem;
  font-size: 18px;
  font-weight: 500;
  color: var(--myorange);
  vertical-align: 3px;
}

/* ============ 5b. Team ============ */

.team-group {
  margin: 1.8rem 0 1rem;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #999;
}
.team-group span {
  display: inline-block;
  min-width: 1.6em;
  margin-left: .4rem;
  padding: 1px 6px;
  font-size: 12px;
  text-align: center;
  color: #fff;
  background: var(--myorange);
  border-radius: 999px;
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 1rem;
}
.person-card {
  display: flex;
  gap: 14px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 2px;
  transition: box-shadow .15s ease, border-color .15s ease;
}
.person-card:hover {
  border-color: #d6d6d6;
  box-shadow: 0 4px 18px rgba(0, 0, 0, .07);
}
.person-avatar {
  flex: 0 0 44px;
  height: 44px;
  font-size: 15px;
  font-weight: 500;
  line-height: 44px;
  text-align: center;
  letter-spacing: .03em;
  color: #fff;
  background: var(--header_background_color);
  border-radius: 50%;
}
.person-card:hover .person-avatar {
  background: var(--myorange);
}
.person-body {
  min-width: 0;
}
.person-body h3 {
  margin: 2px 0 4px;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.25;
  color: var(--h1textcolor);
}
.person-body h3 a {
  font-weight: inherit;
  color: inherit;
}
.person-body h3 a:hover {
  color: var(--myorange);
}
.person-body p {
  margin: 0 0 3px;
  font-size: 14px;
  line-height: 1.4;
}
.person-meta {
  color: #888;
}
.person-meta span {
  display: block;
}
.person-note {
  font-style: italic;
  color: #888;
}
.person-now {
  margin-top: 8px !important;
  padding-top: 8px;
  border-top: 1px solid #efefef;
}
.person-now span {
  display: block;
  margin-bottom: 2px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--myorange);
}

/* ============ 5c. Teaching (timeline) ============ */

.timeline {
  position: relative;
  margin-top: 2rem;
  max-width: 820px;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 118px;
  width: 2px;
  background: #ececec;
}
.tl-item {
  position: relative;
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 44px;
  padding-bottom: 2.2rem;
}
.tl-item::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 112px;
  width: 10px;
  height: 10px;
  background: #fff;
  border: 2px solid var(--myorange);
  border-radius: 50%;
}
.tl-item:hover::before {
  background: var(--myorange);
}
.tl-years {
  padding-top: 2px;
  font-size: 18px;
  font-weight: 500;
  text-align: right;
  color: var(--myorange);
}
.tl-body h3 {
  margin: 0 0 .35rem;
  font-size: 21px;
  font-weight: 500;
  line-height: 1.25;
  color: var(--h1textcolor);
}
.tl-body h3 a {
  font-weight: inherit;
  color: inherit;
  border-bottom: 1px solid var(--myorange);
}
.tl-body h3 a:hover {
  color: var(--myorange);
}
.tl-where {
  margin: 0 0 .7rem;
  font-size: 15px;
  color: #888;
}
.tl-body .chips ul {
  margin-top: .3rem;
}

/* ============ 5d. About ============ */

.card.cols2 ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 36px;
}
.card.cols2 li:nth-child(2) {
  border-top: 0;
  padding-top: 0;
}
.pg-about .card-dark p {
  font-size: 16px;
}
.pg-about .card-dark a {
  color: #fff;
  border-bottom: 1px solid var(--myorange);
}

/* ============ 5e. Two-column pages with a sticky sidebar (news, publications) ============ */

.pg-with-side {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 48px;
  align-items: start;
}
.pg-with-side > * {
  min-width: 0;
}
.pg-side {
  position: sticky;
  top: 80px;
  margin-top: 3rem;
}
.pg-side-title {
  margin: 0 0 .8rem;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #999;
}
.pg-side-scroll {
  max-height: calc(100vh - 160px);
  overflow-y: auto;
  padding-right: 8px;
}
.pg-count {
  margin-left: .6rem;
  font-size: 15px;
  font-weight: 400;
  color: #a0a0a0;
}

.chips-small a {
  padding: 3px 10px !important;
  font-size: 12.5px !important;
}
.chips-small a span {
  margin-left: 2px;
  color: #aaa;
}
.chips-small a:hover span {
  color: #fff;
}

/* ============ 5f. Papers (publications, keyword pages, news) ============ */

.paper {
  padding: 0 0 18px;
}
.paper h3 {
  margin: 0 0 3px;
  font-size: 16.5px;
  font-weight: 500;
  line-height: 1.32;
}
.paper h3 a {
  font-weight: inherit;
  color: var(--h1textcolor);
}
.paper h3 a:hover {
  color: var(--myorange);
}
.paper p {
  margin: 0 0 1px;
  line-height: 1.42;
}
.paper-authors {
  font-size: 15px;
  font-weight: 400;
  color: #4d5156;
}
.paper-authors strong {
  font-weight: 700;
  color: var(--h1textcolor);
}
.paper-venue {
  font-size: 14.5px;
  font-weight: 400;
  color: #13803b;
}
.paper-snippet {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 3px !important;
  font-size: 14px;
  color: #6b6f73;
}
.paper-links {
  margin-top: 3px !important;
  font-size: 13.5px;
}
.paper-links a {
  font-weight: 400;
  color: var(--linkazure);
}
.paper-links a:hover {
  color: var(--linkazureover);
}
.paper-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 9px;
}
.paper-links-sep {
  color: #bdbdbd;
}
.paper-links a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.paper-links a > i {
  font-size: 1.05em;
}
.paper-links-lg {
  gap: 6px 12px;
  font-size: 15.5px !important;
}
.pg-body h2 + .paper {
  padding-top: 2px;
}
.paper-note {
  margin: 0 0 .6rem;
  font-size: 15px;
}
.pill-lg {
  padding: 5px 14px;
  font-size: 13px;
}
.pg-hero .paper-links {
  margin-top: 1rem !important;
}
.pg-hero .pg-kicker a {
  font-weight: inherit;
  color: inherit;
}
.pg-hero .pg-kicker a:hover {
  text-decoration: underline;
}
.pg-publication-single .titolo,
.pg-single .titolo {
  font-size: 36px;
  max-width: 860px;
}
.pg-publication-single .pg-body {
  max-width: 760px;
}

/* ============ 5g. News feed ============ */

.news-item {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 22px;
  padding: 26px 0;
  border-bottom: 1px solid #ececec;
  scroll-margin-top: 80px;
}
.news-date {
  padding-top: 2px;
  text-align: right;
}
.news-day {
  display: block;
  font-size: 30px;
  font-weight: 500;
  line-height: 1;
  color: var(--h1textcolor);
}
.news-month {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #999;
}
.news-body h3 {
  margin: 0 0 .5rem;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--h1textcolor);
}
.news-body h3 a {
  font-weight: inherit;
  color: inherit;
}
.news-body h3 a:hover {
  color: var(--myorange);
}
.news-label {
  display: inline-block;
  margin: 0 0 .5rem;
  padding: 2px 9px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #fff;
  background: var(--myorange);
  border-radius: 2px;
}
.news-abstract {
  margin: .4rem 0 0;
  font-size: 15px;
  line-height: 1.55;
  color: #666;
}
.news-more {
  white-space: nowrap;
}
.news-content > *:last-child {
  margin-bottom: 0;
}
.news-content img {
  max-width: 100%;
  height: auto;
}
.news-fig {
  margin: 1rem 0 0;
}
.news-fig img {
  max-width: 100%;
  max-height: 320px;
  border: 1px solid #ececec;
}
.news-fig figcaption {
  margin-top: 6px;
  font-size: 13px;
  font-style: italic;
  color: #888;
}

/* Sidebar index of all news */
.news-index-year {
  margin: 1rem 0 .3rem;
  font-size: 15px;
  font-weight: 500;
  color: var(--myorange);
}
.news-index-year:first-child {
  margin-top: 0;
}
.news-index {
  margin: 0;
  padding: 0;
  list-style: none;
}
.news-index li {
  margin: 0;
}
.news-index a {
  display: block;
  padding: 4px 0;
  font-size: 13px;
  font-weight: 300;
  line-height: 1.3;
  color: var(--textcolor);
  border-bottom: 1px solid #f3f3f3;
}
.news-index a span {
  display: inline-block;
  width: 48px;
  color: #aaa;
}
.news-index a:hover {
  color: var(--myorange);
}

/* Single news / talk / event page */
.single-meta {
  margin: 0;
  font-size: 16px;
  color: #888;
}

/* ============ 5h. Long-form text (news posts, paper pages) ============ */

.prose {
  margin-top: 2.2rem;
  font-size: 17px;
  line-height: 1.7;
  color: #3f4448;
}
.prose > p,
.prose > ul,
.prose > ol {
  margin: 0 0 1.1rem;
}
.prose h2,
.prose h1.orange {
  margin: 2.4rem 0 1rem;
  padding: 0 0 .5rem;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.25;
  color: var(--h1textcolor);
  border-bottom: 1px solid #e6e6e6;
}
.prose h3 {
  margin: 2rem 0 .7rem;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--h1textcolor);
}
.prose h4 {
  margin: 1.6rem 0 .5rem;
  font-size: 17px;
  font-weight: 500;
}
.prose h3 strong,
.prose h2 strong {
  font-weight: inherit;
}
.prose > *:first-child {
  margin-top: 0;
}
.prose strong {
  font-weight: 500;
  color: var(--h1textcolor);
}
.prose .orange {
  margin: 0;
}
.prose a {
  text-decoration: underline;
  text-decoration-color: rgba(70, 193, 255, .35);
  text-underline-offset: 3px;
}
.prose a:hover {
  text-decoration-color: currentColor;
}
.prose ul,
.prose ol {
  padding-left: 1.3em;
}
.prose li {
  margin-bottom: .5rem;
}
.prose blockquote {
  margin: 1.4rem 0;
  padding: 14px 20px;
  color: #555;
  background: #fafafa;
  border-left: 3px solid var(--myorange);
}
.prose blockquote p:last-child {
  margin-bottom: 0;
}
.prose img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1.6rem 0;
  padding: 0 !important;
  border: 1px solid #e6e6e6 !important;
  border-radius: 4px;
}
.prose td img {
  margin: 0;
}
.prose .blcaption,
.prose figcaption {
  margin-top: -1rem;
  font-size: 14px;
  font-style: italic;
  color: #888;
}
.prose table {
  width: 100%;
  margin: 1.4rem 0;
  font-size: 15px;
  line-height: 1.5;
  border-collapse: collapse;
  overflow-wrap: normal;
}
.prose td {
  overflow-wrap: break-word;
}
.prose td:last-child {
  white-space: nowrap;
}
.prose th,
.prose td {
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #ececec;
}
.prose th {
  font-weight: 500;
  color: var(--h1textcolor);
  border-bottom: 2px solid #e0e0e0;
}
.prose hr {
  margin: 2rem 0;
  border: 0;
  border-top: 1px solid #e6e6e6;
}
.prose .divider {
  display: none;
}
.prose pre {
  font-size: 14px;
  line-height: 1.5;
}

/* Sidebar and older/newer links on single posts */
.single-side .pg-side-title {
  margin-top: 1.6rem;
}
.single-side .pg-side-title:first-child {
  margin-top: 0;
}
.single-side-date {
  margin: 0;
  font-size: 15px;
}
.single-side-all {
  margin: .6rem 0 0;
  font-size: 14px;
}
.single-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e6e6e6;
}
.prose a.single-nav-link {
  display: block;
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
  text-decoration: none;
  color: var(--h1textcolor);
  border: 1px solid #e6e6e6;
  border-radius: 2px;
}
.prose a.single-nav-link:hover {
  color: var(--myorange);
  border-color: var(--myorange);
}
.single-nav-link span {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #999;
}
.single-nav-next {
  text-align: right;
}

/* Pagination on the redesigned pages */
.pg .pagination ul {
  margin-top: 2rem;
  background: none;
  border: 0;
}
.pg .pagination li {
  margin-right: 6px;
  border: 1px solid #d9d9d9;
  border-radius: 2px;
}
.pg .pagination li.active {
  border-color: var(--myorange);
}

/* ============ 6. Smaller screens ============
   The base theme is laid out for a 1250px-wide window with a 150px left offset.
   These rules adapt it (and the redesigned pages) to laptops, tablets and phones. */

/* Laptops and small desktop windows: shrink the left offset */
@media screen and (max-width: 1250px) {
  .wrapper {
    width: auto;
    margin-left: 40px;
    margin-right: 40px;
  }
  section.pg {
    width: auto;
    max-width: 960px;
    float: none;
  }
}

/* Tablets and phones */
@media screen and (max-width: 1000px) {
  html, body {
    width: 100%;
    min-width: 0;
  }
  body {
    margin-left: 0;
    left: 0;
    font-size: 16px;
  }

  /* Content column */
  .wrapper {
    width: auto;
    margin: 0;
    padding: 0 16px;
  }
  section,
  section.pg {
    width: auto;
    float: none;
    margin-top: 28px;
  }
  .push {
    height: 60px;
  }
  pre {
    overflow-x: auto;
  }
  iframe,
  video {
    max-width: 100%;
  }

  /* Page header */
  .pg-hero .titolo,
  .titolo {
    font-size: 32px;
  }
  .pg-publication-single .titolo,
  .pg-single .titolo {
    font-size: 26px;
  }
  .pg-lede {
    font-size: 17px;
  }
  .pg-body h2 {
    margin-top: 2.2rem;
    font-size: 24px;
  }

  /* Grids collapse to one column */
  .cards-2,
  .cards-3,
  .team-grid,
  .pg-with-side {
    grid-template-columns: 1fr;
  }
  .pg-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .pg-stat-value {
    font-size: 28px;
  }
  .card.cols2 ul {
    grid-template-columns: 1fr;
  }
  .card.cols2 li:nth-child(2) {
    border-top: 1px solid #efefef;
    padding-top: .55rem;
  }
  .card {
    padding: 16px 16px 10px;
  }
  .prose {
    font-size: 16px;
  }
  .prose table {
    display: block;
    overflow-x: auto;
  }
  .single-nav {
    grid-template-columns: 1fr;
  }
  .pg-cta {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
  }

  /* Sidebars: keywords move below the list; the full news index is hidden */
  .pg-side {
    position: static;
    margin-top: 2rem;
  }
  .pg-side-scroll {
    max-height: none;
    overflow: visible;
  }
  .pg-news .pg-side {
    display: none;
  }

  /* News feed: narrower date column */
  .news-item {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 14px;
    padding: 20px 0;
  }
  .news-day {
    font-size: 24px;
  }
  .news-month {
    font-size: 10.5px;
  }
  .news-body h3 {
    font-size: 18px;
  }

  /* Teaching timeline: line on the left, years above titles */
  .timeline::before {
    left: 5px;
  }
  .tl-item {
    grid-template-columns: 1fr;
    gap: 2px;
    padding: 0 0 1.8rem 28px;
  }
  .tl-item::before {
    left: 0;
  }
  .tl-years {
    text-align: left;
    font-size: 15px;
  }

}

/* ============ 7. Home page ============ */

.pg-home .pg-hero .titolo {
  max-width: 820px;
  font-size: 40px;
  line-height: 1.15;
}
.home-actions {
  margin: 1.6rem 0 0;
}
.home-btn {
  display: inline-block;
  margin: 0 10px 8px 0;
  padding: 10px 20px;
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  background: var(--myorange);
  border: 1px solid var(--myorange);
  border-radius: 2px;
}
.home-btn:hover {
  color: #fff;
  background: var(--myorangeover);
  border-color: var(--myorangeover);
}
.home-btn-ghost {
  color: var(--h1textcolor);
  background: transparent;
  border-color: #cfcfcf;
}
.home-btn-ghost:hover {
  color: #fff;
  background: var(--header_background_color);
  border-color: var(--header_background_color);
}
.home-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.home-cols h2,
.pg-home .pg-body h2 {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.home-more {
  font-size: 14px;
  font-weight: 400;
}
.home-news {
  margin: 0;
  padding: 0 !important;
  list-style: none;
}
.home-news li {
  margin: 0;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}
.home-news span {
  display: block;
  margin-bottom: 2px;
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #999;
}
.home-news a {
  font-size: 16px;
  font-weight: 500;
  color: var(--h1textcolor);
}
.home-news a:hover {
  color: var(--myorange);
}
a.home-card {
  display: block;
  font-weight: inherit;
  color: var(--textcolor);
}
a.home-card:hover h3 {
  color: var(--myorange);
}
.home-card-more {
  margin-top: .2rem !important;
  font-size: 14px !important;
  font-weight: 400;
  color: var(--linkazure);
}

/* Open-position banner */
a.home-open {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 16px;
  margin: 1.8rem 0 0;
  padding: 16px 22px;
  font-weight: inherit;
  color: #fff;
  background: var(--header_background_color);
  border-left: 3px solid var(--myorange);
}
a.home-open:hover {
  color: #fff;
  background: #3f3e3e;
}
.home-open-tag {
  padding: 2px 9px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  background: var(--myorange);
  border-radius: 2px;
}
.home-open-title {
  flex: 1 1 auto;
  font-size: 17px;
  font-weight: 500;
}
.home-open-date {
  font-size: 14px;
  color: #ddd;
}

/* Selected papers: figure + text cards */
a.home-paper {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-weight: inherit;
  color: var(--textcolor);
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 2px;
  transition: box-shadow .15s ease;
}
a.home-paper:hover {
  box-shadow: 0 4px 18px rgba(0, 0, 0, .08);
}
.home-paper-fig {
  display: block;
  height: 190px;
  padding: 12px;
  background: #fafafa;
  border-bottom: 1px solid #efefef;
}
.home-paper-fig img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.home-paper-body {
  display: block;
  padding: 16px 20px 18px;
}
.home-paper-venue {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #999;
}
.home-paper-title {
  display: block;
  margin-bottom: 6px;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--h1textcolor);
}
a.home-paper:hover .home-paper-title {
  color: var(--myorange);
}
.home-paper-authors {
  display: block;
  font-size: 14px;
  line-height: 1.4;
}
.home-paper-authors strong {
  font-weight: 500;
}

/* Team strip */
.home-team {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 16px;
  margin: 0;
  padding: 0 !important;
  list-style: none;
}
.home-team li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 7px 0;
}
.home-team .person-avatar {
  flex: 0 0 34px;
  height: 34px;
  font-size: 12px;
  line-height: 34px;
}
.home-team li > span:last-child {
  font-size: 12.5px;
  line-height: 1.3;
  color: #888;
}
.home-team strong {
  display: block;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--h1textcolor);
}
.home-team-join {
  margin-top: 1rem;
  font-size: 15px;
}
@media screen and (max-width: 1000px) {
  .home-cols,
  .home-team {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .pg-home .pg-hero .titolo {
    font-size: 30px;
  }
}

/* ============ 8. Top bar (header), home identity card, footer ============ */

/* Content offset shared by the top bar, the page column and the footer */
:root {
  --page-left: 150px;
  --page-width: 960px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  width: auto;
  margin: 0;
  padding: 0;
  text-align: left;
  background: var(--header_background_color);
  border-bottom: 3px solid var(--myorange);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: var(--page-width);
  height: 62px;
  margin-left: var(--page-left);
}
a.topbar-brand {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
  font-weight: inherit;
  color: #fff;
}
.topbar-photo {
  width: 38px;
  height: 38px;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, .85);
  border-radius: 50%;
}
.topbar-name {
  font-size: 19px;
  font-weight: 500;
  letter-spacing: .01em;
}
a.topbar-brand:hover .topbar-name {
  color: var(--myorange);
}
.topbar-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
a.topbar-link {
  padding: 7px 14px;
  font-size: 15.5px;
  font-weight: 400;
  line-height: 1.2;
  color: #e6e6e6;
  border-radius: 999px;
  transition: background-color .15s ease, color .15s ease;
}
a.topbar-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, .12);
}
a.topbar-link.is-current,
a.topbar-link.is-current:hover {
  color: #fff;
  font-weight: 500;
  background: var(--myorange);
}

/* Less space above page content now that the header is slim */
body {
  margin-top: 0;
}
.wrapper {
  padding-top: 0;
}
section {
  margin-top: 44px;
}

/* Home page: hero text + identity card */
.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 44px;
  align-items: start;
}
.home-id {
  padding: 22px 22px 16px;
  background: #fff;
  border: 1px solid #e6e6e6;
  border-top: 3px solid var(--myorange);
  border-radius: 2px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .06);
}
.home-id-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.home-id-photo {
  flex: 0 0 76px;
  width: 76px;
  height: 76px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 0 0 3px #fff, 0 0 0 4px #e6e6e6;
}
.home-id-name {
  margin: 0 0 3px;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--h1textcolor);
}
.home-id-role {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.35;
  color: #777;
}
.home-id a {
  font-weight: 400;
  color: var(--textcolor);
}
.home-id a:hover {
  color: var(--myorange);
}
.home-id-main {
  display: flex;
  gap: 8px;
  margin: 0 0 14px;
  padding: 10px 12px;
  font-size: 14px;
  line-height: 1.35;
  background: #f7f7f7;
  border-radius: 2px;
}
.home-id-main .fa {
  margin-top: 2px;
  color: var(--myorange);
}
.home-id-main a {
  font-weight: 500;
  color: var(--h1textcolor);
}
.home-id-label {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #999;
}
ul.home-id-affil {
  margin: 0;
  padding: 0;
  list-style: none;
}
.home-id-affil li {
  position: relative;
  margin: 0;
  padding: 3px 0 3px 14px;
  font-size: 13.5px;
  line-height: 1.4;
}
.home-id-affil li::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 0;
  width: 5px;
  height: 5px;
  background: var(--myorange);
  border-radius: 50%;
}
.home-id-icons {
  display: flex;
  justify-content: space-between;
  margin: 16px 0 0;
  padding-top: 12px;
  border-top: 1px solid #ececec;
}
.home-id-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  font-size: 17px;
  color: #666;
  border-radius: 50%;
}
.home-id-icons a:hover {
  color: #fff;
  background: var(--myorange);
}
.icon-svg {
  width: 1em;
  height: 1em;
  vertical-align: -0.125em;
}

/* Footer */
footer.site-footer {
  position: static;
  left: 0;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
  color: #c9c9c9;
  background: var(--header_background_color);
  background-image: none;
  border-top: 3px solid var(--myorange);
}
.site-footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  width: var(--page-width);
  margin-left: var(--page-left);
  padding: 40px 0 28px;
}
.site-footer-name {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  color: #fff;
}
.site-footer-role {
  margin: 2px 0 12px;
  font-size: 14px;
}
ul.site-footer-affil {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13.5px;
  line-height: 1.75;
}
.site-footer-affil li {
  margin: 0;
}
.site-footer-email {
  margin: 10px 0 0;
  font-size: 13.5px;
}
.site-footer-email .fa {
  margin-right: 6px;
  color: var(--myorange);
}
.site-footer a {
  color: #e8e8e8;
}
.site-footer a:hover {
  color: var(--myorange);
}
.site-footer-title {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #9a9a9a;
}
.site-footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-footer-links li {
  margin: 0;
}
.site-footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 300;
}
.site-footer-links a > i,
.site-footer-links a > svg {
  width: 16px;
  text-align: center;
  color: var(--myorange);
}
.site-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  width: var(--page-width);
  margin-left: var(--page-left);
  padding: 14px 0 22px;
  font-size: 12.5px;
  color: #9a9a9a;
  border-top: 1px solid rgba(255, 255, 255, .12);
}
.push {
  height: 80px;
}

@media screen and (max-width: 1250px) {
  :root {
    --page-left: 40px;
    --page-width: auto;
  }
  .topbar-inner,
  .site-footer-inner,
  .site-footer-bottom {
    margin-right: 40px;
  }
}

@media screen and (max-width: 1000px) {
  :root {
    --page-left: 16px;
  }
  .topbar-inner {
    flex-wrap: wrap;
    gap: 0;
    height: auto;
    margin-right: 0;
    padding: 10px 0 0;
  }
  .topbar-nav {
    width: 100%;
    height: auto;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }
  .topbar-nav {
    padding: 8px 0 10px;
  }
  a.topbar-link {
    flex: 0 0 auto;
    padding: 6px 12px;
    font-size: 14.5px;
  }
  .topbar-name {
    font-size: 17px;
  }
  .topbar-photo {
    width: 32px;
    height: 32px;
  }
  section,
  section.pg {
    margin-top: 26px;
  }
  .home-hero {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .site-footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-right: 16px;
    padding-top: 30px;
  }
  .site-footer-bottom {
    margin-right: 16px;
  }
}

/* "Cite" button in publication links (copies BibTeX); styled like the other links */
button.paper-cite {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  padding: 0;
  font: inherit;
  font-weight: 400;
  color: var(--linkazure);
  background: none;
  border: 0;
  cursor: pointer;
}
button.paper-cite:hover {
  color: var(--linkazureover);
}
button.paper-cite .fa {
  font-size: .9em;
}
button.paper-cite.is-copied {
  color: #13803b;
}
