
/* Academic Minimal — Samuele Bovo */

:root {
  --bs-primary: #17324d;
  --bs-link-color: #245b85;
  --bs-link-hover-color: #17324d;
}

body {
  font-family: "Segoe UI", Arial, sans-serif;
  color: #34495e;
  line-height: 1.75;
  background-color: #ffffff;
}

h1, h2, h3, h4 {
  color: #17324d;
  font-weight: 600;
  letter-spacing: -0.02em;
}

h1 {
  font-size: 2.7rem;
}

h2 {
  margin-top: 2.8rem;
  margin-bottom: 1.2rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e3e9ef;
}

/* Navigation */

.navbar {
  background-color: #ffffff !important;
  border-bottom: 1px solid #e3e9ef;
}

.navbar .navbar-brand,
.navbar .nav-link {
  color: #17324d !important;
}

/* Main content */

#quarto-content {
  max-width: 1120px;
  margin: 0 auto;
}

p {
  margin-bottom: 1.2rem;
}

a {
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Hero */

.hero-section {
  align-items: center;
  margin-top: 2rem;
  margin-bottom: 3rem;
}

.hero-section h1 {
  margin-top: 0;
  margin-bottom: 1.2rem;
}

.profile-photo {
  width: 100%;
  max-width: 280px;
  height: auto;
  border-radius: 10px;
  display: block;
  margin: 0 auto;
}

/* Research cards */

.research-grid {
  row-gap: 1.5rem;
}

.research-grid > div {
  display: flex;
}

.research-card {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  border: 1px solid #e1e7ed;
  border-radius: 10px;
  padding: 1.6rem;
  background-color: #ffffff;
  transition: border-color 0.2s ease;
}

.research-card:hover {
  border-color: #9aafc0;
}

.research-number {
  display: block;
  color: #64819a;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.research-card h3 {
  color: #17324d;
  font-size: 1.15rem;
  margin-top: 0;
  margin-bottom: 0.8rem;
  padding: 0;
  border: none;
}

.research-card p {
  color: #53677a;
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 0;
}

/* Mobile */

@media (max-width: 768px) {
  h1 {
    font-size: 2.2rem;
  }

  .hero-section {
    margin-top: 1rem;
  }

  .research-card {
    padding: 1.3rem;
  }
}

/* Hide Quarto's automatically generated page title */

header#title-block-header {
  display: none !important;
}


/* Scientific profiles */

#scientific-profiles + p a {
  color: #245b85;
  font-weight: 500;
}

#scientific-profiles + p a:hover {
  color: #17324d;
  text-decoration: underline;
}


/* Research areas grid */

.research-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 28px;
  margin-bottom: 36px;
}

.research-card {
  border: 1px solid #e2e5e9;
  border-radius: 8px;
  padding: 24px;
  background-color: #ffffff;
  transition: border-color 0.2s ease,
              box-shadow 0.2s ease;
}

.research-card:hover {
  border-color: #aab6c2;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

.research-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.4;
  margin-top: 0;
  margin-bottom: 14px;
}

.research-card p {
  font-size: 0.92rem;
  line-height: 1.65;
  color: #555f69;
  margin-bottom: 0;
}

/* Tablet */

@media (max-width: 991px) {
  .research-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Mobile */

@media (max-width: 600px) {
  .research-grid {
    grid-template-columns: 1fr;
  }
}


/* Research card links */

.research-card h3 a {
  color: #17324d;
  text-decoration: none;
}

.research-card h3 a:hover {
  color: #245b85;
  text-decoration: underline;
}


/* Compact publication lists */

.publication-list {
  font-size: 0.80rem;
  line-height: 1.4;
  color: #53677a;
}

.publication-list p {
  margin-bottom: 0.65rem;
}

.publication-list strong {
  color: #34495e;
  font-weight: 600;
}

.publication-list a {
  color: #245b85;
  font-weight: 500;
  text-decoration: none;
}

.publication-list a:hover {
  text-decoration: underline;
}


/* Research Projects — Quarto Listings */

.quarto-grid-item {
  border: 1px solid #e1e7ed !important;
  border-radius: 10px;
  background-color: #ffffff;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.quarto-grid-item:hover {
  border-color: #9aafc0 !important;
}

.quarto-grid-item .card-title {
  color: #17324d;
  font-size: 1.2rem;
  font-weight: 600;
}

.quarto-grid-item .card-title a {
  color: #17324d;
  text-decoration: none;
}

.quarto-grid-item .card-title a:hover {
  color: #245b85;
}

.quarto-grid-item .card-text {
  color: #53677a;
  font-size: 0.92rem;
  line-height: 1.6;
}

.quarto-grid-item .card-body {
  padding: 1.4rem;
}


/* Project logos in Quarto Listings */

.quarto-grid-item .card-img-top {
  height: 115px;
  width: 100%;
  object-fit: contain;
  object-position: center;
  background-color: #ffffff;
  padding: 15px 25px;
  border-bottom: 1px solid #e1e7ed;
}


/* Related projects in Research */

.related-projects {
  margin-top: 1.2rem;
  margin-bottom: 2.5rem;
  padding-top: 0.8rem;
  border-top: 1px solid #e3e9ef;
  font-size: 0.82rem;
  line-height: 1.7;
  color: #718096;
}

.related-projects p {
  margin-bottom: 0.35rem;
}

.related-projects strong {
  color: #53677a;
  font-weight: 600;
}

.related-projects a {
  color: #245b85;
  text-decoration: none;
}

.related-projects a:hover {
  text-decoration: underline;
}


/* Selected publications on homepage */

body:has(.hero-section) .publication-list {
  font-size: 0.88rem;
  line-height: 1.5;
}

body:has(.hero-section) .publication-list p {
  margin-bottom: 1rem;
}


/* Contact cards */

.contact-grid {
  row-gap: 1rem;
  margin-top: 1.2rem;
}

.contact-grid > div {
  display: flex;
}

.contact-card {
  width: 100%;
  height: 100%;
  padding: 1.3rem;
  border: 1px solid #e1e7ed;
  border-radius: 8px;
  background-color: #ffffff;
}

.contact-card h3 {
  font-size: 1rem;
  color: #17324d;
  margin-top: 0;
  margin-bottom: 0.7rem;
}

.contact-card p {
  font-size: 0.88rem;
  line-height: 1.5;
  margin-bottom: 0.5rem;
  overflow-wrap: anywhere;
}

.contact-card a {
  color: #245b85;
  text-decoration: none;
}

.contact-card a:hover {
  text-decoration: underline;
}


/* Academic CV */

.cv-highlights {
  background: #f7f9fb;
  border-left: 3px solid #397ca4;
  padding: 1.3rem 1.6rem;
  margin: 1.5rem 0 2rem;
  border-radius: 4px;
}

.cv-highlights p {
  margin-bottom: 0.65rem;
}

.cv-highlights hr {
  border: 0;
  border-top: 1px solid #dce5ed;
  margin: 1.2rem 0;
}

.cv-timeline {
  border-left: 2px solid #dce5ed;
  padding-left: 1.4rem;
  margin: 1.2rem 0 2rem;
}

.cv-timeline hr {
  border: 0;
  border-top: 1px solid #e3e9ef;
  margin: 1.3rem 0;
}

.cv-timeline p {
  margin-bottom: 0.65rem;
}

.cv-timeline strong {
  color: #17324d;
}

@media (max-width: 768px) {
  .cv-highlights {
    padding: 1rem;
  }

  .cv-timeline {
    padding-left: 1rem;
  }
}



/* Homepage introduction */

.home-hero {
  align-items: center;
  margin-bottom: 0.8rem;
}

.home-hero h1 {
  color: #17324d;
  font-size: 2.5rem;
  margin-top: 0;
}

.msca-highlight {
  background: #f5f8fb;
  border-left: 3px solid #397ca4;
  padding: 1rem 1.4rem;
  margin: 1.5rem 0;
  border-radius: 4px;
  color: #17324d;
}

.msca-highlight p {
  margin-bottom: 0.4rem;
}

.home-intro-cards {
  margin-top: 1.5rem;
  margin-bottom: 2rem;
}

.home-intro-cards > div {
  display: flex;
}

.home-intro-card {
  border: 1px solid #e1e7ed;
  border-radius: 8px;
  padding: 1.3rem;
  width: 100%;
  height: 100%;
  background: #ffffff;
}

.home-intro-card h3 {
  color: #17324d;
  font-size: 1.05rem;
  margin-top: 0;
  margin-bottom: 0.7rem;
}

.home-intro-card p {
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
  .home-hero h1 {
    font-size: 2rem;
  }
}

/* Homepage profile photo — compact layout */

.home-hero {
  align-items: center;
}

.home-hero .profile-photo {
  display: block;
  width: 100%;
  max-width: 215px;
  height: auto;
  margin: 0 0 0 auto;
  border-radius: 10px;
}


/* Homepage — Academic Minimal refined */

/* MSCA fellowship */
.msca-highlight {
  background-color: #f3f7fa;
  border-left: 4px solid #397ca4;
  border-radius: 5px;
  padding: 1.1rem 1.5rem;
}

.msca-highlight strong {
  color: #17324d;
}

/* Scientific Background and Research Approach */
.home-intro-card {
  background-color: #ffffff;
  border: 1px solid #e1e7ed;
  border-top: 3px solid #4f8a83;
  border-radius: 8px;
  padding: 1.4rem;
  transition: border-color 0.2s ease;
}

.home-intro-card h3 {
  color: #17324d;
  font-size: 1.08rem;
  font-weight: 600;
}

.home-intro-card:hover {
  border-color: #b7cbd0;
  border-top-color: #4f8a83;
}



/* Homepage introduction icons */

.msca-title {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.6rem;
}

.msca-title .bi {
  color: #397ca4;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.home-intro-card h3 .bi {
  color: #4f8a83;
  font-size: 1.25rem;
  margin-right: 0.45rem;
  vertical-align: -0.08em;
}

.home-intro-card h3 {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}


/* Linked research area titles */

.research-card h3 a,
.research-area h3 a {
  color: #17324d;
  text-decoration: none;
}

.research-card h3 a:hover,
.research-area h3 a:hover {
  color: #245b85;
}

.research-card h3 a .bi,
.research-area h3 a .bi {
  color: #4f8a83;
  margin-right: 0.5rem;
}



/* Research Areas and Contact icons */

.research-card h3 .bi,
.research-area h3 .bi {
  color: #4f8a83;
  font-size: 1.25rem;
  margin-right: 0.55rem;
  vertical-align: -0.08em;
}

.contact-card h3 .bi {
  color: #397ca4;
  font-size: 1.2rem;
  margin-right: 0.5rem;
  vertical-align: -0.08em;
}

.research-card h3,
.research-area h3,
.contact-card h3 {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}


/* Fix Research Area cards layout */

.research-card,
.research-area {
  display: block !important;
}

/* Title and icon on the same line */
.research-card h3,
.research-area h3 {
  display: block !important;
  margin-top: 0;
  margin-bottom: 0.9rem;
  line-height: 1.4;
}

/* Clickable title */
.research-card h3 a,
.research-area h3 a {
  display: inline;
  color: #17324d;
  text-decoration: none;
}

.research-card h3 a:hover,
.research-area h3 a:hover {
  color: #245b85;
  text-decoration: underline;
}

/* Icon next to title */
.research-card h3 .bi,
.research-area h3 .bi {
  display: inline-block;
  color: #4f8a83;
  font-size: 1.25rem;
  margin-right: 0.5rem;
  vertical-align: middle;
}

/* Description below title */
.research-card p,
.research-area p {
  display: block;
  width: 100%;
  margin-top: 0;
  margin-bottom: 0;
  line-height: 1.6;
}


/* Research page — section heading icons */

#quarto-content h2 .research-icon {
  color: #4f8a83;
  font-size: 1.25rem;
  margin-right: 0.55rem;
  vertical-align: 0.02em;
}


/* Academic CV — heading icons */

#quarto-content h2 .cv-icon {
  color: #4f8a83;
  font-size: 1.3rem;
  margin-right: 0.6rem;
  vertical-align: 0.02em;
}

/* Hide decorative icons from the sidebar TOC */
#TOC .cv-icon,
.sidebar nav .cv-icon {
  display: none;
}





/* =====================================
   EVENTS — Academic Minimal
   ===================================== */

.events-icon {
  color: #4f8a83;
  font-size: 1.3rem;
  margin-right: 0.55rem;
  vertical-align: 0.02em;
}

/* Event cards */

.event-card {
  background: #ffffff;
  border: 1px solid #e1e7ed;
  border-radius: 9px;
  padding: 1.4rem 1.6rem;
  margin: 1.2rem 0;
}

.event-card:hover {
  border-color: #b7cbd0;
}

/* Upcoming event */

.event-upcoming {
  border-left: 4px solid #397ca4;
  background: #f7fafc;
}

/* Event header */

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

.event-heading-text {
  flex: 1;
  min-width: 0;
}

.event-heading h3,
.event-heading h4 {
  color: #17324d;
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 0.4rem;
}

.event-heading-text p {
  color: #53677a;
  font-size: 0.88rem;
  margin: 0;
}

/* Year label */

.event-year {
  background: #edf3f6;
  color: #17324d;
  border-radius: 6px;
  padding: 0.35rem 0.7rem;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
  flex-shrink: 0;
}

/* Event description */

.event-card > p {
  color: #53677a;
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 0.7rem;
}

.event-card > p .bi {
  color: #4f8a83;
  margin-right: 0.35rem;
}

/* Related research and projects */

.event-related {
  border-top: 1px solid #e3e9ef;
  margin-top: 1rem;
  padding-top: 0.85rem;
}

.event-related p {
  color: #718096;
  font-size: 0.8rem;
  line-height: 1.65;
  margin-bottom: 0.35rem;
}

.event-related strong {
  color: #53677a;
}

.event-related a {
  color: #245b85;
  text-decoration: none;
}

.event-related a:hover {
  text-decoration: underline;
}

/* Mobile */

@media (max-width: 768px) {
  .event-card {
    padding: 1rem;
  }

  .event-heading h3,
  .event-heading h4 {
    font-size: 1.05rem;
  }

  .event-year {
    font-size: 0.9rem;
    padding: 0.3rem 0.5rem;
  }
}


/* Project methods and approaches */

.project-methods {
  margin-top: 1rem;
  margin-bottom: 1.5rem;
  padding: 0.85rem 1rem;
  background: #f5f8fa;
  border-left: 3px solid #4f8a83;
  border-radius: 4px;
}

.project-methods p {
  color: #53677a;
  font-size: 0.83rem;
  line-height: 1.6;
  margin-bottom: 0.35rem;
}

.project-methods strong {
  color: #17324d;
  font-weight: 600;
}


/* Research Areas — macro cards */

.research-block {
  background: #ffffff;
  border: 1px solid #e1e7ed;
  border-left: 4px solid #4f8a83;
  border-radius: 9px;
  padding: 1.5rem;
  margin: 2rem 0;
}

/* Area title */
.research-block > h2 {
  color: #17324d;
  font-size: 1.45rem;
  line-height: 1.35;
  margin-top: 0;
  margin-bottom: 1.2rem;
  padding: 0;
  border: none;
}

/* Scientific description */
.research-block > p {
  line-height: 1.7;
  color: #53677a;
}

/* Selected publications */
.research-block .publication-list {
  background: #f5f8fa;
  border-radius: 6px;
  padding: 1rem 1.2rem;
  margin: 1.2rem 0;
}

/* Related projects */
.research-block .related-projects {
  border-top: 1px solid #e3e9ef;
  padding-top: 0.8rem;
  margin-top: 1.2rem;
  margin-bottom: 0;
}

/* Mobile */
@media (max-width: 768px) {
  .research-block {
    padding: 1rem;
  }

  .research-block > h2 {
    font-size: 1.25rem;
  }

  .research-block .publication-list {
    padding: 0.8rem;
  }
}

