@font-face {
  font-family: 'YanoneKaffeesatz';
  src: url('fonts/YanoneKaffeesatz-Regular.eot');
  src: url('fonts/YanoneKaffeesatz-Regular.eot?#iefix') format('embedded-opentype'),
       url('fonts/YanoneKaffeesatz-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

body {
  margin: 0;
  font-family: 'YanoneKaffeesatz', sans-serif;
  background: #ffffff;
  color: #222;
  line-height: 1.5;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: #f8f8f8;
  border-bottom: 2px solid #eaeaea;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo-img {
  max-height: 64px;
  width: auto;
   aspect-ratio: 1 / 1;
  display: block;
}

.logo-text {
  font-size: 1.4rem;
}

.logo-text span {
  color: #c40000;
  font-weight: 700;
}

.subtitle {
  font-size: 1.15rem;
  color: #555;
  margin-top: 4px;
}

nav a {
  margin-left: 1rem;
  text-decoration: none;
  color: #222;
  font-weight: bold;
}

.hero {
  text-align: center;
  padding: 2rem;
}

.hero img {
  max-width: 60%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

.hero figure {
  margin: 0;
  text-align: center;
}

.hero .caption {
  font-size: 0.85rem;
  font-style: italic;
  color: #555;
  margin-top: 0.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.motto {
  font-size: 1.4rem;
  margin-top: 0.75rem;
}

.motto span {
  color: #c40000;
  font-weight: 700;
}

.content {
  max-width: 980px;
  margin: 2rem auto;
  padding: 0 1rem;
}

h1 {
  font-size: 1.9rem;
  margin-bottom: 0.5rem;
}

.accordion-item {
  border-bottom: 1px solid #e6e6e6;
  padding: 8px 0;
}

.accordion-title {
  cursor: pointer;
  padding: 0.6rem 0;
  font-size: 1.2rem;
  transition: color .25s;
}

.accordion-title:hover {
  color: #c40000;
}

.accordion-title .initial {
  color: #c40000;
  font-weight: 700;
}

.accordion-content {
  display: none;
  padding: 0.6rem 0 1.2rem 0;
  color: #444;
}

.accordion-content.open {
  display: block;
}
.accordion-title {
  position: relative;
  cursor: pointer;
  padding: 0.6rem 0;
  font-size: 1.2rem;
  transition: color .25s;
}

.accordion-title::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  color: #c40000;
  transition: transform 0.3s ease;
}

.accordion-title.open::after {
  content: '−';
  transform: translateY(-50%) rotate(180deg);
}
footer {
  background: #f8f8f8;
  text-align: center;
  padding: 1.5rem;
  margin-top: 2rem;
  font-size: 0.95rem;
  border-top: 2px solid #eaeaea;
}

@media (max-width: 1024px) {
  .hero img {
    max-width: 100%;
      aspect-ratio: 4/ 3; /* Imposta la proporzione dell'immagine */
       height: auto;
  }
}

@media (max-width: 640px) {
  header {
    padding: 0.8rem 1rem;
  }

  .logo-text {
    font-size: 1.05rem;
  }

  .subtitle {
    display: none;
  }

  .hero img {
    max-width: 90%;
  }
}
/* Stili per la pagina Chi Siamo */
.intro-text {
  margin-bottom: 2rem;
  font-size: 1.1rem;
  line-height: 1.6;
}

.projects-section {
  margin-bottom: 2.5rem;
}

.projects-section h2 {
  font-size: 1.5rem;
  color: #c40000;
  margin-bottom: 1rem;
}

.projects-section ul {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.projects-section li {
  margin-bottom: 0.5rem;
}

.profiles-section {
  margin-bottom: 2.5rem;
}

.profile-card {
  margin-bottom: 2.5rem;
  padding: 1.5rem;
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  background: #fafafa;
}

.profile-header h3 {
  font-size: 1.4rem;
  margin-bottom: 0.3rem;
}

.name-highlight {
  color: #c40000;
  font-weight: 700;
}

.birth-info {
  color: #666;
  font-style: italic;
  margin-bottom: 1rem;
}

.education, .experience {
  margin-bottom: 1.5rem;
}

.education h4, .experience h4 {
  font-size: 1.2rem;
  color: #c40000;
  margin-bottom: 0.8rem;
}

.education ul {
  padding-left: 1.2rem;
}

.education li {
  margin-bottom: 0.6rem;
}

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

.publications-section h2 {
  font-size: 1.5rem;
  color: #c40000;
  margin-bottom: 1rem;
}

.publications-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.publication {
  padding: 1rem;
  border-left: 3px solid #c40000;
  background: #f9f9f9;
}

.publication h4 {
  margin: 0 0 0.5rem 0;
  font-size: 1.1rem;
}

.publication p {
  margin: 0;
  color: #666;
  font-style: italic;
}

@media (max-width: 640px) {
  header {
    padding: 0.8rem 1rem;
  }

  .logo-text {
    font-size: 1.05rem;
  }

  .subtitle {
    display: none;
  }

  .hero img {
    max-width: 90%;
  }
  
  .profile-card {
    padding: 1rem;
  }
  
  .publications-list {
    gap: 0.8rem;
  }
  
  .publication {
    padding: 0.8rem;
  }
  
  nav a {
    margin-left: 0.5rem;
    font-size: 0.9rem;
  }
}