/*
 * Refinements del tema Bulma/Jekyll.
 * Regole di base per componente; adattamenti responsive in fondo.
 * Gli stili specifici delle schede People restano in people-styles.html.
 */

/* 01. Variabili, base e accessibilità */

:root {
  --brand: #bb2e29;
  --brand-dark: #8e2528;
  --ink: #26272b;
  --muted: #666970;
  --line: #e7e5e3;
  --surface: #faf9f7;
}

html {
  scroll-behavior: smooth;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.65;
}

main {
  flex: 1;
}

[hidden] {
  display: none !important;
}

h1, h2, h3, p {
  overflow-wrap: break-word;
}

a {
  transition: color .15s ease;
}

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid #e39d31;
  outline-offset: 4px;
}

button, input, select {
  font: inherit;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 2100;
  background: #fff;
  color: var(--brand-dark);
  padding: .7rem 1rem;
  border-radius: 6px;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  max-width: 1152px;
}

summary {
  cursor: pointer;
  color: var(--brand-dark);
  font-size: .87rem;
  font-weight: 600;
}

details > p {
  margin-top: .8rem;
  color: var(--muted);
}

/* 02. Navigazione */

.navbar.is-fixed-top {
  box-shadow: 0 3px 15px #58161a22;
}

.navbar-brand .navbar-item {
  pointer-events: auto;
}

.navbar-item, .navbar-link {
  font-size: .95rem;
}

.navbar-item.is-active {
  background: #ffffff16 !important;
  box-shadow: inset 0 -2px #ffffffb3;
}

.navbar-burger {
  border: none;
  background: transparent;
  color: white;
  cursor: pointer;
}

/* 03. Hero e introduzione */

.hero.is-primary {
  background: linear-gradient(115deg, #991d2b 0%, #bb2e29 70%, #c7452a 100%);
}

.hero.is-primary .title {
  font-family: "Trajan Pro Regular", Georgia, serif;
  margin-bottom: 1rem;
}

.hero.is-primary .subtitle {
  max-width: 780px;
  font-size: 1.05rem;
  line-height: 1.65;
  margin-top: 0;
  color: #ffffffdf;
}

.hero.is-medium .hero-body {
  padding: 7rem 2rem 2.8rem;
}

.home-hero .hero-body {
  padding: 8.5rem 2rem 3rem;
}

.home-hero .title {
  font-size: 4rem;
  font-size: clamp(2.7rem, 5vw, 4rem);
  line-height: 1.2;
}

.eyebrow {
  font-size: .75rem;
  font-weight: 650;
  letter-spacing: .13em;
  text-transform: uppercase;
  margin-bottom: .6rem;
  color: var(--brand-dark);
}

.home-hero .eyebrow {
  color: #ffffffc4;
}

.home-lead {
  font-size: 2.3rem;
  font-size: clamp(1.45rem, 3vw, 2.3rem);
  line-height: 1.3;
  font-weight: 500;
  max-width: 800px;
  margin-bottom: 1.2rem;
}

.home-intro {
  max-width: 740px;
  color: #ffffffe8;
  font-size: 1rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: 1.8rem;
}

.hero-actions .button {
  height: auto;
  padding: .7rem 1.25rem;
  font-weight: 600;
  border-radius: 6px;
}

.hero-primary {
  background: white;
  border-color: white;
  color: var(--brand-dark);
}

.hero-secondary {
  background: transparent;
  border-color: #ffffff80;
  color: white;
}

.hero-secondary:hover {
  background: #ffffff12;
  border-color: white;
  color: white;
}

.research-areas {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  border-top: 1px solid #ffffff38;
  margin-top: 3rem;
  padding-top: 1.6rem;
}

.research-areas h2 {
  font-size: 1.04rem;
  font-weight: 650;
  color: white;
  margin-bottom: .5rem;
}

.research-areas p {
  font-size: .9rem;
  line-height: 1.65;
  color: #ffffffd9;
}

.hero-icon-bg::before {
  left: auto;
  right: -6%;
  transform: none;
  width: 42%;
  height: 100%;
  opacity: .04;
}

/* 04. Layout e componenti condivisi */

.section {
  padding: 3.5rem 2rem;
}

.home-section {
  margin-bottom: 4rem;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.section-heading h2, .people-section > h2 {
  font-size: 1.8rem;
  font-weight: 650;
  line-height: 1.25;
  margin: 0;
}

.text-link {
  color: var(--brand-dark);
  font-size: .95rem;
  font-weight: 600;
}

.text-link:hover, .resource-links a:hover {
  color: var(--brand);
  text-decoration: underline;
}

.highlight-grid, .news-grid, .catalog-grid, .people-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 1.5rem;
}

.resource-links {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  margin-top: .8rem;
  font-size: .86rem;
  font-weight: 600;
}

.resource-links a {
  color: var(--brand-dark);
}

.card {
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
  box-shadow: 0 3px 12px #30282106;
}

.button {
  border-radius: 6px;
}

.button.is-primary {
  background: var(--brand);
}

.button.is-outlined {
  color: var(--brand-dark);
  border-color: var(--brand-dark);
}

/* 05. Ricerca, notizie e spotlight */

.research-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 1.6rem;
}

.venue-tag {
  align-self: start;
  display: inline-block;
  padding: .22rem .65rem;
  background: #bb2e2910;
  color: var(--brand-dark);
  font-size: .77rem;
  font-weight: 650;
  border-radius: 4px;
  white-space: nowrap;
}

.research-card h3 {
  font-size: 1.18rem;
  font-weight: 650;
  line-height: 1.45;
  margin: 1rem 0 .8rem;
}

.research-card > p {
  color: var(--muted);
  font-size: .95rem;
  margin-bottom: 1.5rem;
}

.research-card .resource-links {
  margin-top: auto;
}

.news-card {
  display: flex;
  flex-direction: column;
}

.news-image {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--surface);
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-card .card-content {
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news-card time {
  font-size: .78rem;
  color: var(--muted);
  margin-bottom: .55rem;
}

.news-card h3 {
  font-size: 1.2rem;
  font-weight: 650;
  line-height: 1.35;
  margin-bottom: .75rem;
}

.news-card h3 a {
  color: var(--ink);
}

.news-card .card-content > p {
  font-size: .93rem;
  color: var(--muted);
  margin-bottom: 1.2rem;
}

.news-card .text-link {
  margin-top: auto;
}

.spotlight-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 1.5rem;
}

.compact-card {
  flex-direction: row;
}

.compact-card .news-image {
  flex: 0 0 35%;
  aspect-ratio: auto;
}

.compact-card .news-image img {
  object-fit: contain;
}

.compact-card .card-content > p {
  font-size: .87rem;
}

/* 06. Pannello contatti */

.contact-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.contact-panel h2 {
  font-size: 1.35rem;
  font-weight: 650;
  margin-bottom: .5rem;
}

.contact-panel p {
  color: var(--muted);
}

.contact-panel .eyebrow {
  color: var(--brand-dark);
}

.contact-actions {
  display: flex;
  gap: .7rem;
  flex-shrink: 0;
  flex-wrap: wrap;
}

/* 07. People */

.people-section {
  margin-bottom: 2rem;
}

.people-section > h2 {
  margin-bottom: 1.5rem;
  font-size: 1.4rem;
}

.person-card {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: white;
}

.person-photo {
  display: block;
  width: 128px;
  height: 128px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1.3rem;
  background: var(--surface);
}

.person-card h3 {
  font-size: 1.25rem;
  font-weight: 650;
  line-height: 1.4;
  margin-bottom: .3rem;
}

.person-role {
  color: var(--brand-dark);
  font-size: .9rem;
  font-weight: 600;
}

.person-dates {
  color: var(--muted);
  font-size: .8rem;
  margin: .25rem 0 .8rem;
}

.person-topics {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-top: .8rem;
}

.person-topics span {
  font-size: .76rem;
  padding: .18rem .5rem;
  color: #4c4e53;
  background: #f3f2f0;
  border-radius: 4px;
}

.person-bio {
  margin-top: 1rem;
  font-size: .88rem;
}

.people-section:last-child {
  margin-bottom: 0;
}

body:has(.people-section) #main-content {
  padding-bottom: 1rem;
}

body:has(.people-section) .footer {
  margin-top: 1.5rem;
}

/* 08. Progetti e applicazioni */

.catalog-card {
  display: flex;
  flex-direction: column;
}

.catalog-card .card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
}

.catalog-card h2 {
  font-size: 1.25rem;
  font-weight: 650;
  line-height: 1.4;
  margin-bottom: .8rem;
}

.catalog-card h2 a {
  color: var(--ink);
}

.catalog-summary {
  font-size: .93rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.catalog-authors {
  font-size: .8rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.catalog-card .text-link {
  margin-top: auto;
}

.project-image {
  display: block;
  height: 170px;
  background: var(--surface);
  padding: 1.5rem;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.application-mark {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: #bb2e2908;
  border-bottom: 1px solid var(--line);
}

.application-mark span {
  color: var(--brand-dark);
  font-size: 1.4rem;
  font-weight: 650;
  border: 1px solid #bb2e2930;
  border-radius: 8px;
  padding: .4rem .7rem;
}

.application-mark p {
  color: var(--brand-dark);
  font-size: .75rem;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.service-image {
  object-fit: contain;
}

/* 09. Pubblicazioni */

.publication-toolbar {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  margin-bottom: 1rem;
}

#publication-search {
  width: 100%;
  background: white;
  border: 1px solid #d5d2cf;
  border-radius: 6px;
  padding: .7rem 1rem;
  color: var(--ink);
}

.publication-filters {
  display: flex;
  gap: 1rem;
  align-items: end;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.publication-filters label {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  font-size: .8rem;
  font-weight: 600;
}

.publication-filters select, #reset-publications {
  background: white;
  border: 1px solid #d5d2cf;
  border-radius: 6px;
  padding: .5rem .8rem;
  color: var(--ink);
  font-size: .9rem;
}

#reset-publications {
  cursor: pointer;
}

.publication-counter {
  border: 0;
  background: none;
  text-align: left;
  padding: 0;
  margin-top: 1rem;
  font-size: .85rem;
  color: var(--muted);
}

.previous-works {
  font-size: .88rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

.previous-works a {
  text-decoration: underline;
}

.publication-type-header {
  font: 650 1.4rem/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  margin: 2.5rem 0 1rem;
  padding-bottom: .6rem;
  width: 100%;
}

.publication-item {
  font-family: inherit;
  font-weight: normal;
  color: var(--ink);
  padding: 1.5rem 0;
  margin: 0;
  box-shadow: none;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 110px;
}

.publication-item:hover {
  box-shadow: none;
}

.publication-item:target {
  background: #bb2e2907;
  padding: 1.5rem;
  border-radius: 6px;
}

.publication-title {
  font-size: 1.18rem;
  font-weight: 650;
  color: var(--ink);
  line-height: 1.45;
  margin: 0 0 .55rem;
}

.publication-item .authors {
  font-size: .87rem;
  font-weight: normal;
  line-height: 1.65;
  color: var(--muted);
  margin-bottom: .75rem;
}

.publication-meta {
  display: flex;
  gap: .7rem;
  align-items: baseline;
  flex-wrap: wrap;
}

.venue-description {
  font-size: .8rem;
  color: var(--muted);
}

.publication-abstract {
  margin-top: .9rem;
}

.publication-abstract p {
  font-size: .93rem;
  max-width: 1000px;
}

.award {
  display: block;
  font-size: .86rem;
  color: var(--brand-dark);
  margin-top: .7rem;
}

#publication-empty {
  padding: 2rem 0;
  color: var(--muted);
}

/* 10. Deadlines */

.deadlines-grid > .column:not(.legend-container) {
  display: flex;
}

.deadlines-grid .conference-card {
  flex: 1;
  min-width: 0;
}

.deadlines-grid .conference-card > a {
  display: block;
  height: 100%;
}

.deadlines-grid .conference-card > a > .card {
  height: 100%;
}

body:has(.deadlines-grid) #main-content {
  padding-bottom: 1rem;
}

body:has(.deadlines-grid) .footer {
  margin-top: 0;
}

/* 11. Footer */

.footer {
  position: static !important;
  margin-top: 2rem;
  padding: 2rem !important;
}

.footer-contact {
  margin-top: .5rem;
  font-size: .85rem;
}

.footer-contact a {
  color: white;
  text-decoration: underline;
}

.footer-logo {
  display: block;
  height: 8rem;
  width: auto;
  max-width: 100%;
}

.footer-credit {
  margin-top: .6rem;
  font-size: .75rem;
}

.footer-credit a {
  color: white;
  text-decoration: underline;
}

.footer-contact-label {
  display: none;
}

/* 12. Tablet e menu compatto */

@media (max-width: 1023px) {
  .highlight-grid, .news-grid, .catalog-grid, .people-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }

  .spotlight-grid {
    grid-template-columns: 1fr;
  }

  .navbar-menu {
    background: white;
  }

  .navbar-menu .navbar-item {
    color: var(--ink);
  }

  .navbar-menu .navbar-item.is-active {
    color: var(--brand-dark);
    box-shadow: inset 3px 0 var(--brand);
  }

  .contact-panel {
    align-items: start;
    flex-direction: column;
  }
}

/* 13. Mobile */

@media (max-width: 768px) {
  .section {
    padding: 2.5rem 1.2rem;
  }

  .hero.is-medium .hero-body {
    padding: 7rem 1.2rem 2.5rem;
  }

  .hero.is-primary .title {
    font-size: 2rem;
  }

  .home-hero .hero-body {
    padding: 7.5rem 1.2rem 2.5rem;
  }

  .home-hero .title {
    font-size: 2.8rem;
  }

  .home-lead {
    font-size: 1.5rem;
  }

  .home-intro {
    font-size: .94rem;
  }

  .research-areas {
    grid-template-columns: 1fr;
    gap: 1.2rem;
    margin-top: 2rem;
    padding-top: 1.4rem;
  }

  .highlight-grid, .news-grid, .catalog-grid, .people-grid {
    grid-template-columns: 1fr;
  }

  .home-section {
    margin-bottom: 2.8rem;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
    gap: .6rem;
  }

  .section-heading h2 {
    font-size: 1.6rem;
  }

  .compact-card .news-image {
    flex-basis: 32%;
  }

  .compact-card .card-content {
    padding: 1rem;
  }

  .compact-card h3 {
    font-size: 1.05rem;
  }

  .contact-panel {
    padding: 1.4rem;
  }

  .contact-actions {
    flex-shrink: 1;
  }

  .publication-toolbar {
    padding: 1rem;
  }

  .publication-filters {
    gap: .7rem;
  }

  .publication-filters label {
    flex: 1;
    min-width: 100px;
  }

  .publication-title {
    font-size: 1.08rem;
  }

  .publication-type-header, .publication-item {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  .footer {
    padding: 1.5rem 1.2rem !important;
  }

  .footer .columns {
    flex-wrap: wrap;
  }

  .footer .column.has-text-right {
    flex-basis: 100%;
    text-align: left !important;
  }

  .footer-logo {
    height: 6rem;
  }

  .footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: .75rem;
    margin-top: 1rem;
  }

  .footer-bottom > p {
    margin: 0;
    font-size: .75rem;
    white-space: nowrap;
  }

  .footer-bottom .footer-credit {
    text-align: right;
  }

  .footer-contact-label {
    display: inline;
  }

  .footer .footer-main {
    flex-wrap: nowrap;
    align-items: center;
  }

  .footer .footer-main > .column.is-narrow {
    flex: 0 0 auto;
  }

  .footer .footer-main > .column.has-text-right {
    flex: 1 1 0;
    min-width: 0;
    text-align: right !important;
  }

  .deadlines-grid > .column:not(.legend-container) {
    padding-top: .375rem;
    padding-bottom: .375rem;
  }

  .deadlines-grid .conference-card {
    margin-bottom: 0;
  }

  .deadlines-grid .legend-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .5rem .75rem;
    width: 100%;
    max-width: 100%;
    background: transparent;
    border-radius: 0;
    padding: .5rem .75rem;
    margin-bottom: .75rem;
    text-align: left;
    display: none;
  }

  .deadlines-grid .legend-item {
    width: auto;
    padding: 0;
    margin: 0;
    font-size: .72rem;
    line-height: 1.4;
  }

  .deadlines-grid .legend-color {
    width: 8px;
    height: 8px;
    flex-shrink: 0;
    margin-right: .35rem;
  }

  .people-section {
    margin-bottom: 1.5rem;
  }
}

/* 14. Footer e legenda su desktop */

@media (min-width: 769px) {
  .footer {
    padding: 1.25rem 2rem !important;
  }

  .footer > .container {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 2rem;
    row-gap: .5rem;
    align-items: center;
  }

  .footer .footer-main {
    display: contents;
  }

  .footer .footer-main > .column.is-narrow {
    grid-column: 1;
    grid-row: 1 / span 2;
    padding: 0;
  }

  .footer .footer-logo {
    height: 6rem;
  }

  .footer .footer-main > .column.has-text-right {
    grid-column: 2;
    grid-row: 1;
    padding: 0;
    text-align: right !important;
  }

  .footer .footer-bottom {
    grid-column: 2;
    grid-row: 2;
    display: flex;
    justify-content: flex-end;
    align-items: baseline;
    gap: 1.25rem;
    margin: 0;
  }

  .footer .footer-bottom > p {
    margin: 0;
  }

  .deadlines-grid .legend-container {
    width: 100%;
    max-width: 100%;
    background: transparent;
    border-radius: 0;
    padding: .5rem .75rem;
    margin-bottom: 1rem;
    justify-content: center;
    gap: .75rem 1.5rem;
  }

  .deadlines-grid .legend-item {
    font-size: .8rem;
    margin: 0;
    padding: 0;
    width: auto;
  }
}

/* 15. Accessibilità: movimento ridotto */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 768px) {
  .deadlines-grid {
    display: flex;
    flex-wrap: wrap;
  }

  .deadlines-grid > .column:not(.legend-container) {
    flex: 0 0 50%;
    width: 50%;
    min-width: 0;
    padding: .375rem;
  }

  .deadlines-grid .card-content {
    padding: .75rem;
  }

  .deadlines-grid .conf-title {
    font-size: 1.05rem;
  }

  .deadlines-grid .card-content p {
    font-size: .75rem;
    line-height: 1.5;
  }

  .deadlines-grid .subtopic-tag {
    font-size: .65rem;
    padding: .15rem .3rem;
  }

  .deadlines-grid .conf-description {
    display: none;
  }
}

.deadlines-grid .card-content > p:last-child .mobile-newline {
  display: block;
  width: 100%;
  margin-top: .25rem;
  text-align: left;
}

.deadlines-grid .card {
  display: flex;
  flex-direction: column;
}

.deadlines-grid .card-content {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.deadlines-grid .card-content > * {
  flex-shrink: 0;
}

/* Data in alto nel blocco finale, giorni rimanenti in basso */
.deadlines-grid .card-content > p:last-child {
  margin-top: auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: .2rem;
  row-gap: .25rem;
}

.deadlines-grid .card-content > p:last-child > i {
  grid-column: 1;
  grid-row: 1;
  align-self: start;
}

.deadlines-grid .card-content > p:last-child > strong {
  grid-column: 2;
  grid-row: 1;
  align-self: start;
}

.deadlines-grid .card-content > p:last-child > .mobile-newline {
  grid-column: 1 / -1;
  align-self: end;
  margin-top: 0;
  text-align: right;
}

.deadlines-grid .card-content > p:last-child > i,
.deadlines-grid .card-content > p:last-child > strong {
  align-self: baseline;
}

.deadlines-grid .card-content > .tags {
  margin-top: .25rem !important;
  margin-bottom: 1.25rem;
  gap: .25rem;
  align-items: flex-start;
  align-content: flex-start;
}

.deadlines-grid .tags .tag {
  margin: 0;
}

@media (min-width: 769px) {
  .deadlines-grid .card-content > p:last-child {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .deadlines-grid .card-content > p:last-child > .mobile-newline {
    grid-column: 3;
    grid-row: 1;
    align-self: baseline;
    width: auto;
    margin-top: 0;
    text-align: right;
    white-space: nowrap;
  }
}

@media (max-width: 768px) {
  .deadlines-grid .card-content > p:last-child {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .deadlines-grid .card-content > p:last-child > .mobile-newline {
    grid-column: 1 / -1;
    grid-row: 2;
    align-self: start;
    justify-self: start;
    width: auto;
    margin-top: 0;
    text-align: left;
  }
}

/* Titoli nella fascia rossa di tutte le pagine. */
.hero.is-primary .title {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, Arial, sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: .75rem;
}

/* Sottotitoli più leggeri e leggibili. */
.hero.is-primary .subtitle {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, Arial, sans-serif;
  font-size: clamp(.95rem, 1.3vw, 1.08rem);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: normal;
  color: rgba(255, 255, 255, .9);
  max-width: 52rem;
}

.publication-filters {
  align-items: flex-end;
}

.publication-filters select,
.publication-filters #reset-publications {
  box-sizing: border-box;
  height: 36px;
  font-size: .85rem;
}

.publication-filters #reset-publications {
  width: auto;
  min-width: 0;
  padding: 0 .75rem;
  line-height: 1;
  white-space: nowrap;
  flex: 0 0 auto;
  cursor: pointer;
}

.publication-filters select {
  background: #fff;
  color: var(--ink);
  border: 1px solid #c7ccd2;
  border-radius: 7px;
  padding: 0 2rem 0 .75rem;
  cursor: pointer;
}

.publication-filters select:hover {
  border-color: var(--brand);
}

.publication-filters select:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.publication-filters #reset-publications {
  background: #bb2e290c;
  color: var(--brand-dark);
  border: 1px solid #bb2e2945;
  border-radius: 7px;
  font-weight: 600;
}

.publication-filters #reset-publications:hover {
  background: #bb2e2918;
  border-color: var(--brand);
}

/* Nome esteso centrato verticalmente rispetto all'acronimo. */
.publication-item .publication-meta {
  align-items: center;
}

.publication-meta .venue-tag,
.publication-meta .venue-description {
  margin: 0;
}

/* Icone più vicine alla venue. */
.publication-item .publication-links {
  margin-top: .35rem;
  gap: .65rem;
}

.publication-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  font-size: 1rem;
  text-decoration: none;
}

.publication-links a:hover {
  color: var(--brand);
  background: #bb2e290c;
  border-radius: 5px;
  text-decoration: none;
}

.publication-links:empty {
  display: none;
}

/* Elimina margini aggiuntivi attorno alla venue. */
.publication-item .publication-meta {
  margin: 0;
  padding: 0;
  align-items: center;
}

.publication-meta .venue-tag,
.publication-meta .venue-description {
  margin: 0;
  line-height: 1.35;
}

/* Icone ravvicinate, subito sotto la venue. */
.publication-item .publication-links {
  margin: .1rem 0 0;
  padding: 0;
  gap: .15rem;
  line-height: 1;
}

.publication-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 22px;
  padding: 0;
  margin: 0;
  font-size: .95rem;
  text-decoration: none;
}

/* Sfondo giallo limitato alla label del premio. */
.publication-item .award {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  box-sizing: border-box;
  margin: .4rem 0 0;
  padding: .2rem .55rem;
  border-radius: 5px;
  background: #fff2c6;
  color: #715515;
  font-size: .8rem;
  font-weight: 600;
  line-height: 1.4;
}

/* Un po’ più di spazio tra venue e icone. */
.publication-item .publication-links {
  margin-top: .4rem;
}

/* Su mobile mostra soltanto acronimo e anno. */
@media (max-width: 768px) {
  .publication-item .venue-description {
    display: none;
  }
}

#publication-search:focus {
  border-color: var(--brand);
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  box-shadow: none;
}

.publication-title a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: #bb2e2950;
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
}

.publication-title a:hover {
  color: var(--brand-dark);
  text-decoration-color: currentColor;
}

.publication-title a:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

.publication-paper-arrow {
  color: var(--brand);
  font-size: .85em;
  white-space: nowrap;
}

.publication-item .publication-title {
  margin-bottom: .65rem;
}

.publication-item .authors {
  margin-bottom: .75rem;
}

.publication-item .publication-title {
  margin-bottom: .5rem;
}

.publication-item .authors {
  margin: 0 0 .75rem;
  font-size: .87rem;
  line-height: 1.6;
  color: var(--muted);
}

@media (max-width: 768px) {
  .publication-item .publication-venue-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
  }

  .publication-venue-row .publication-meta {
    min-width: 0;
  }

  .publication-item .publication-venue-row .publication-links {
    margin: 0;
    flex: 0 0 auto;
    flex-wrap: nowrap;
  }
}

.publication-item .publication-links a {
  width: 28px;
  height: 28px;
  font-size: 1.1rem;
}

@media (max-width: 768px) {
  .publication-item .publication-links {
    gap: .1rem;
  }

  .publication-item .publication-links a {
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
    flex: 0 0 44px;
  }

  .publication-item .publication-venue-row {
    flex-wrap: wrap;
  }

  .publication-item .publication-venue-row .publication-links {
    margin-left: auto;
  }
}

.publication-item .venue-tag {
  display: inline-flex;
  align-items: center;
  padding: .3rem .65rem;
  background: #bb2e2914;
  border: 1px solid #bb2e2938;
  border-radius: 6px;
  color: var(--brand-dark);
  font-size: .85rem;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
}

.publication-item .publication-links {
  gap: 0;
}

.publication-item .publication-links a {
  width: 26px;
}

@media (max-width: 768px) {
  .publication-item .publication-links a {
    width: 40px;
    flex: 0 0 40px;
  }
}

.publication-filters #reset-publications {
  background: #f3f4f6;
  color: #4b5563;
  border: 1px solid #d1d5db;
  font-weight: 500;
}

.publication-filters #reset-publications:hover {
  background: #e5e7eb;
  border-color: #9ca3af;
  color: #26313b;
}

/* Venue con sfondo bianco. */
.publication-item .venue-tag {
  background: #fff;
  border-color: #bb2e2945;
  color: var(--brand-dark);
}

/* Pulsanti delle risorse su mobile. */
@media (max-width: 768px) {
  .publication-item .publication-venue-row .publication-links {
    gap: .25rem;
  }

  .publication-item .publication-links a {
    box-sizing: border-box;
    width: 40px;
    height: 44px;
    flex: 0 0 40px;
    border: 1px solid #e0e4e8;
    border-radius: 8px;
    background: #fff;
    color: #59636d;
    font-size: 1.05rem;
    text-decoration: none;
  }

  .publication-item .publication-links a:hover,
  .publication-item .publication-links a:active {
    color: var(--brand-dark);
    border-color: #bb2e2950;
    background: #bb2e2908;
  }
}

@media (max-width: 768px) {
  .publication-item .venue-tag {
    box-sizing: border-box;
    height: 30px;
    padding: 0 .65rem;
    border-radius: 6px;
  }

  .publication-item .publication-links a {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    border-radius: 6px;
    font-size: .95rem;
  }
}

.person-card .person-topics {
  flex-direction: column;
  align-items: flex-start;
  gap: .35rem;
}

.person-card .person-topics span {
  width: fit-content;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
}

@media (min-width: 1024px) {
  .hero.is-primary .subtitle {
    max-width: none;
    width: 100%;
  }
}

.home-hero-top {
  display: block;
}

.home-hero-copy {
  min-width: 0;
}

.home-hero-emblem {
  display: none;
}

/* Elimina il precedente simbolo di sfondo */
.home-hero::before {
  content: none;
}

@media (min-width: 1024px) {
  .home-hero-top {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    align-items: center;
    gap: 3rem;
  }

  .home-hero-emblem {
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
  }

  .home-hero-emblem img {
    display: block;
    width: min(100%, 340px);
    height: auto;
    opacity: .7;
    filter: drop-shadow(0 16px 22px rgba(65, 8, 15, .25));
  }

  .home-hero .home-intro {
    max-width: 620px;
  }
}

@media (max-width: 768px) {
  .catalog-grid.projects-grid,
  .catalog-grid.applications-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: .75rem;
    width: 100%;
  }

  .projects-grid > .catalog-card,
  .applications-grid > .catalog-card {
    width: 100%;
    min-width: 0;
    margin: 0;
  }

  .projects-grid .project-image {
    height: 110px;
    padding: .75rem;
  }

  .projects-grid .card-content,
  .applications-grid .card-content {
    padding: .85rem;
  }

  .projects-grid h2,
  .applications-grid h2 {
    font-size: 1rem;
  }

  .projects-grid .catalog-summary,
  .applications-grid .catalog-summary {
    font-size: .82rem;
    line-height: 1.5;
  }

  .applications-grid .catalog-authors {
    font-size: .75rem;
    overflow-wrap: anywhere;
  }
}

@media (min-width: 1024px) {
  .home-hero-top {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr);
    gap: 4rem;
    align-items: center;
  }

  .home-hero-copy {
    text-align: left;
  }

  .home-hero .home-lead {
    margin-top: 0;
  }
}

@media (min-width: 1024px) {
  .home-hero-top {
    align-items: stretch;
  }

  .home-hero-emblem {
    position: relative;
    min-height: 0;
  }

  .home-hero-emblem img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: contain;
  }
}

/* Logo animato nella home */
.home-logo-stage {
  position: absolute;
  inset: 0;
  opacity: .7;
  filter: drop-shadow(0 16px 22px rgba(65, 8, 15, .25));
}

.home-hero-emblem .home-logo-stage img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  filter: none;
}

.home-hero-emblem .home-logo-towers {
  opacity: 0;
}

.home-hero-emblem .home-logo-complete {
  opacity: 1;
}

.home-logo-voice {
  display: none;
}

@media (min-width: 1024px) {
  .home-hero-top {
    align-items: stretch;
    padding-bottom: 1.5rem;
  }

  .home-hero-emblem {
    position: relative;
    min-height: 0;
    overflow: visible;
  }

  .home-logo-voice {
    display: block;
    position: absolute;
    left: 50%;
    top: 0;
    width: calc(50% + 4rem);
    height: 100%;
    overflow: visible;
    color: rgba(255, 255, 255, .35);
    pointer-events: none;
  }
}

.home-hero .home-hero-top {
  position: relative;
  display: block;
}

.home-hero .home-hero-emblem {
  display: none;
}

.home-hero .home-hero-copy {
  min-width: 0;
  text-align: left;
}

@media (min-width: 1024px) {
  .home-hero .home-hero-top {
    display: grid;
    grid-template-columns: minmax(240px, 330px) minmax(0, 1fr);
    grid-template-areas: "logo copy";
    align-items: stretch;
    column-gap: 3rem;
    max-width: 1080px;
    margin: 0 auto;
    padding-bottom: 2rem;
  }

  .home-hero .home-hero-copy {
    grid-area: copy;
  }

  .home-hero .home-hero-emblem {
    grid-area: logo;
    display: block;
    position: relative;
    min-width: 0;
    min-height: 0;
    overflow: visible;
    pointer-events: none;
  }

  .home-hero .home-logo-stage {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: .7;
  }

  .home-hero .home-logo-stage img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0;
    object-fit: contain;
    object-position: center bottom;
    filter: none;
  }

  .home-hero .home-logo-voice {
    display: block;
    position: absolute;
    left: 50%;
    top: 0;
    width: calc(50% + 3rem);
    height: 100%;
    overflow: visible;
    color: rgba(255, 255, 255, .35);
    pointer-events: none;
  }

  .home-hero .home-lead {
    max-width: none;
    margin: 0 0 1.2rem;
    font-size: clamp(1.6rem, 2.4vw, 2.1rem);
    line-height: 1.35;
  }

  .home-hero .home-intro {
    max-width: none;
  }
}


@media (min-width: 1024px) {
  .home-hero .home-hero-top {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    align-items: center;
    gap: 4rem;
    padding-bottom: 0;
  }

  .home-hero .home-hero-emblem {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .home-hero .home-logo-stage {
    position: relative;
    inset: auto;
    width: 230px;
    height: auto;
    aspect-ratio: 350 / 402;
  }

  .home-hero .home-hero-emblem .home-lead {
    margin: 1.25rem 0 0;
    max-width: 440px;
    font-size: 1.35rem;
    line-height: 1.45;
    text-align: center;
  }
}

/* Mostra lo slogan anche quando il logo è nascosto su mobile */
@media (max-width: 1023px) {
  .home-hero .home-hero-emblem {
    display: block;
    margin-bottom: 1.2rem;
  }

  .home-hero .home-logo-stage {
    display: none;
  }
}

@media (min-width: 1024px) {
  .home-hero .home-hero-top {
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr);
    align-items: center;
    gap: 4rem;
  }

  .home-hero .home-hero-copy {
    width: 100%;
    max-width: 620px;
  }

  .home-hero .home-intro {
    margin: 0;
    font-size: 1rem;
    line-height: 1.7;
  }

  .home-hero .hero-actions {
    margin-top: 1.25rem;
  }

  .home-hero .research-areas {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
  }

  .home-hero .research-areas h2 {
    margin-bottom: .2rem;
    font-size: 1rem;
  }

  .home-hero .research-areas p {
    margin: 0;
    font-size: .87rem;
    line-height: 1.55;
  }
}

@media (min-width: 1024px) {
  .home-hero .home-hero-copy {
    max-width: none;
  }
}

/* Su desktop le aree rimangono visibili come prima */
.home-research-details > summary {
  display: none;
}

@media (max-width: 1023px) {
  .home-hero .hero-body {
    padding: 6.5rem 1.25rem 2rem;
  }

  .home-hero .home-hero-top {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding-bottom: 0;
  }

  .home-hero .home-hero-emblem {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    margin: 0;
  }

  .home-hero .home-logo-stage {
    display: block;
    position: relative;
    inset: auto;
    flex: 0 0 80px;
    width: 80px;
    height: auto;
    aspect-ratio: 350 / 402;
  }

  .home-hero .home-logo-stage img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: contain;
  }

  .home-hero .home-hero-emblem .home-lead {
    flex: 1;
    min-width: 0;
    margin: 0;
    font-size: clamp(1.05rem, 4vw, 1.3rem);
    line-height: 1.4;
    text-align: left;
  }

  .home-hero .home-hero-copy {
    width: 100%;
    max-width: none;
  }

  .home-hero .home-intro {
    margin: 0;
    font-size: .9rem;
    line-height: 1.6;
  }

  .home-hero .hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .6rem;
    margin-top: 1rem;
  }

  .home-hero .hero-actions .button {
    padding: .65rem .4rem;
    font-size: .8rem;
    white-space: normal;
    text-align: center;
  }

  .home-research-details {
    margin-top: 1.25rem;
    border-top: 1px solid #ffffff38;
    padding-top: .85rem;
  }

  .home-research-details > summary {
    display: list-item;
    color: white;
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
  }

  .home-hero .research-areas {
    grid-template-columns: minmax(0, 1fr);
    gap: .85rem;
    margin-top: 1rem;
    padding-top: 0;
    border-top: 0;
  }

  .home-hero .research-areas h2 {
    font-size: .9rem;
    margin-bottom: .2rem;
  }

  .home-hero .research-areas p {
    font-size: .82rem;
    line-height: 1.5;
  }
}

@media (max-width: 768px) {
  .spotlight-grid .compact-card {
    flex-direction: column;
  }

  .spotlight-grid .compact-card .news-image {
    flex: none;
    width: 100%;
    height: 170px;
    padding: .75rem;
  }

  .spotlight-grid .compact-card .news-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
}

.publication-item .venue-tag {
  background-color: #bb2e2912;
  border-color: transparent;
  color: #8e2528;
}

/* Research highlights — home */
.highlight-grid {
  gap: 1.25rem;
  align-items: stretch;
}

.highlight-grid .research-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 1.4rem;
  border: 1px solid #e8e4e3;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(48, 40, 33, .04);
}

.highlight-grid .research-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 1.4rem;
  width: 36px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: #bb2e29;
}

.highlight-grid .venue-tag {
  align-self: flex-start;
  width: fit-content;
  padding: .25rem .6rem;
  border: 0;
  border-radius: 6px;
  background: #bb2e2912;
  color: #8e2528;
  font-size: .78rem;
  font-weight: 700;
  line-height: 1.4;
}

.highlight-grid .research-card h3 {
  margin: .9rem 0 1.1rem;
  color: #26313b;
  font-size: 1.1rem;
  font-weight: 650;
  line-height: 1.45;
}

.highlight-grid .resource-links {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin-top: auto;
  padding-top: .85rem;
  border-top: 1px solid #eeeae8;
}

.highlight-grid .resource-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: .3rem .65rem;
  border-radius: 6px;
  background: #f7f5f4;
  color: #8e2528;
  font-size: .82rem;
  font-weight: 600;
  text-decoration: none;
}

.highlight-grid .resource-links a:hover {
  background: #bb2e2912;
}

@media (hover: hover) {
  .highlight-grid .research-card:hover {
    border-color: #d8b9b6;
    box-shadow: 0 6px 20px rgba(48, 40, 33, .07);
  }
}

/* Mobile — schede più compatte */
@media (max-width: 768px) {
  .highlight-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: .75rem;
  }

  .highlight-grid .research-card {
    padding: 1rem;
    border-radius: 10px;
  }

  .highlight-grid .research-card::before {
    left: 1rem;
    width: 28px;
  }

  .highlight-grid .venue-tag {
    font-size: .73rem;
    padding: .2rem .5rem;
  }

  .highlight-grid .research-card h3 {
    margin: .65rem 0 .75rem;
    font-size: .96rem;
    line-height: 1.4;
  }

  .highlight-grid .resource-links {
    padding-top: .6rem;
  }

  .highlight-grid .resource-links a {
    min-height: 40px;
    padding: .3rem .65rem;
    font-size: .78rem;
  }
}

.highlight-grid .venue-tag {
  padding: .35rem .7rem;
  font-size: .9rem;
  font-weight: 700;
  background: #bb2e291c;
}

.highlight-grid .resource-links a {
  min-height: 0;
  padding: .2rem .45rem;
  font-size: .76rem;
  background: transparent;
}

@media (max-width: 768px) {
  .highlight-grid .venue-tag {
    padding: .3rem .6rem;
    font-size: .85rem;
  }

  .highlight-grid .resource-links a {
    min-height: 32px;
    padding: .15rem .4rem;
    font-size: .74rem;
  }
}

.highlight-grid .research-card::before {
  content: none;
}





/* Animazioni e interazioni */
@media (prefers-reduced-motion: no-preference) {
  .motion-entered {
    animation: site-fade-in .45s ease-out backwards;
    animation-delay: var(--motion-delay, 0ms);
  }

  .research-card.motion-entered,
  .news-card.motion-entered,
  .catalog-card.motion-entered {
    animation-name: site-rise-in;
  }

  .highlight-grid .research-card,
  .news-card,
  .catalog-card {
    transition:
      transform .2s ease,
      box-shadow .2s ease,
      border-color .2s ease;
  }

  .hero-actions .button {
    transition:
      transform .2s ease,
      background-color .2s ease,
      border-color .2s ease;
  }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .highlight-grid .research-card:hover,
  .news-card:hover,
  .catalog-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(48, 40, 33, .08);
  }

  .hero-actions .button:hover {
    transform: translateY(-2px);
  }
}

@keyframes site-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes site-rise-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .motion-entered {
    animation-duration: .3s;
  }
}

@media (prefers-reduced-motion: reduce) {
  .motion-entered {
    animation: none;
  }
}

/* Stato statico: logo completo */
.home-hero .home-logo-stage .home-logo-towers {
  opacity: 0;
  animation: none;
}

.home-hero .home-logo-stage .home-logo-complete {
  opacity: 1;
  animation: none;
}

/* Torri per circa 1 secondo, poi transizione di circa 1 secondo */
@media (prefers-reduced-motion: no-preference) {
  .home-hero .home-logo-stage .home-logo-towers {
    animation: logo-towers-out 3.2s ease-in-out both;
  }

  .home-hero .home-logo-stage .home-logo-complete {
    animation: logo-text-in 3.2s ease-in-out both;
  }
}

@keyframes logo-towers-out {
  0%, 30% {
    opacity: 1;
  }

  62%, 100% {
    opacity: 0;
  }
}

@keyframes logo-text-in {
  0%, 30% {
    opacity: 0;
  }

  62%, 100% {
    opacity: 1;
  }
}

/* Logo statico finché lo script non avvia l’animazione */
.home-hero .home-logo-stage .home-logo-towers {
  opacity: 0;
  animation: none;
}

.home-hero .home-logo-stage .home-logo-complete {
  opacity: 1;
  animation: none;
}

/* Durante il caricamento mostra le torri */
.home-hero .home-logo-stage.logo-loading .home-logo-towers {
  opacity: 1;
}

.home-hero .home-logo-stage.logo-loading .home-logo-complete {
  opacity: 0;
}

/* Parte soltanto quando entrambe le immagini sono pronte */
@media (prefers-reduced-motion: no-preference) {
  .home-hero .home-logo-stage.logo-ready .home-logo-towers {
    animation: home-ready-towers 3s ease-in-out both;
  }

  .home-hero .home-logo-stage.logo-ready .home-logo-complete {
    animation: home-ready-wordmark 3s ease-in-out both;
  }
}

@keyframes home-ready-towers {
  0%, 65% { opacity: 1; }
  80%, 100% { opacity: 0; }
}

@keyframes home-ready-wordmark {
  0%, 30% { opacity: 0; }
  65%, 100% { opacity: 1; }
}

.people-section .person-photo-frame:has(
  img[src*="alessio_cocchieri"]
) {
  background: #f3f2f0;
  isolation: isolate;
}

.people-section .person-photo[src*="alessio_cocchieri"] {
  mix-blend-mode: multiply;
}